repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hchiam/pythonSandbox | 687,194,779,789 | 2719ec993a9dc1b74548ba756a040fc3a58f3281 | 7e23f6a252ef6d80d0612bcb666f093e435a8c0e | /string_to_args_list.py | a07acacb65a42dd85335fd913b099d2cfc30a728 | [] | no_license | https://github.com/hchiam/pythonSandbox | cb75036e2cdfd6ad2b5d588ab2353b466ac6042f | cd2585c18ef20d31f90941920bee6003478654f6 | refs/heads/master | 2020-06-29T23:16:55.723874 | 2020-05-10T04:50:37 | 2020-05-10T04:50:37 | 74,406,379 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # http://stackoverflow.com/questions/2921847/what-does-the-star-operator-mean
# http://stackoverflow.com/questions/20263839/python-convert-a-string-to-arguments-list
# http://www.python-course.eu/passing_arguments.php
def f(a,b):
print(a)
print(b)
x='argument-one argument-two'
args = x.split(' ')
print (args)
f... | UTF-8 | Python | false | false | 327 | py | 55 | string_to_args_list.py | 50 | 0.733945 | 0.688073 | 0 | 10 | 31.8 | 87 |
momoAix/python_programming | 13,615,046,357,167 | 8c941e96e6990ca69a03d38ab18591dbe459554f | 0fdcb32301725ff43fff534b4f6f79a8c546c960 | /courses_code/coursera/Ass2_3.py | b8c5984190613e57eb8d803871cb39ed7d8b3c35 | [] | no_license | https://github.com/momoAix/python_programming | c37827f16a53b204529bbd805ab7d9b872a4cc7b | 309e06d5669e89dea45703ae73b2cf9f0ab3b3a3 | refs/heads/master | 2021-01-10T06:10:01.423831 | 2016-02-25T21:53:34 | 2016-02-25T21:53:34 | 52,558,822 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # This first line is provided for you
inp=raw_input ("Enter Hours:")
hours=float(inp)
inp=raw_input ("Enter Rate:")
rate=float(inp)
pay= hours*rate
print pay | UTF-8 | Python | false | false | 160 | py | 123 | Ass2_3.py | 98 | 0.71875 | 0.71875 | 0 | 8 | 19.125 | 37 |
hotsukai/HigaCoffeeDBBack | 3,100,966,393,811 | a15a79b21c20ccf191c5f1c17ef12faa9000d52e | b678c316d2437339ffe614ee63ee97ba19dd7b47 | /src/tests/test_utils.py | e9da82aaf76ef35ed6470c95110cd03cf02fcf8f | [
"MIT"
] | permissive | https://github.com/hotsukai/HigaCoffeeDBBack | 4ec3d0253fa4537a2d119874766071e1432377be | 20db785e291857339c82cb45d616b521328b2734 | refs/heads/main | 2023-04-08T16:46:24.316465 | 2021-03-04T14:46:37 | 2021-03-04T14:46:37 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from datetime import datetime, timezone
from src.app import bcrypt
from src.database import db
from src.models.models import User
def add_sample_users():
user1 = User(
name="テストユーザー1",
encrypted_password=bcrypt.generate_password_hash("password").decode(
'utf-8'),
)
user2 = User... | UTF-8 | Python | false | false | 711 | py | 5 | test_utils.py | 4 | 0.647145 | 0.63104 | 0 | 25 | 26.32 | 78 |
Flaac/DT2118-Deep-Learning-Project | 4,337,916,974,936 | 8837761025e8022c967ceaac4f8ab0fde21f34b0 | 5f428bab97d1261883b56759b91653cf61cfadec | /source_separation/neural_network/DNN.py | 798f35e02080a60e31a63c892ec15c79e3e7c638 | [] | no_license | https://github.com/Flaac/DT2118-Deep-Learning-Project | bdf9a9f157f586419c017297c2f108833646876c | f7e73b97ef6f74b8adde475c01b975822c2a7bcf | refs/heads/master | 2021-01-11T02:45:47.894708 | 2016-05-30T00:25:00 | 2016-05-30T00:25:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from keras.models import Sequential, model_from_json
from keras.layers import Dense
from output_layer import Output_Layer
from mask_data_callback import Mask_Data_Callback
from loss_function import source_separation_loss_function
import matplotlib.pyplot as pl
from source_separation.utils.plotter imp... | UTF-8 | Python | false | false | 2,923 | py | 30 | DNN.py | 23 | 0.645912 | 0.637017 | 0 | 76 | 37.460526 | 94 |
thomas-li-67/ctf-bugku2018 | 3,204,045,638,793 | 1cb331bb7eb19a3e8f3cacce856e21dc25eb0f4b | 611293390710a27a86330eadb2e202ece951b828 | /sqlinject/sqlencoder.py | 898596b1fc23051ba97d73d6e419169610969b96 | [] | no_license | https://github.com/thomas-li-67/ctf-bugku2018 | 12b2e4ef33bdf037fc8ecebb3527c437552c8874 | 42a4ec2b765f450fd5fc21113b901656a5f78961 | refs/heads/master | 2020-03-26T22:42:39.727274 | 2018-08-20T23:44:21 | 2018-08-20T23:44:21 | 145,481,532 | 4 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | def encoder(string):
subs = []
values = {“ “: “%50”, “SELECT”: “HAVING”, “AND”: “&&”, “OR”: “||”}
originalstring = “' UNION SELECT * FROM Users WHERE username =
'admin' OR 1=1 AND username = 'admin'”
secondoriginalstring = originalstring
for key, value in values.iteritems():
if key in originalstring:
newstring = origin... | UTF-8 | Python | false | false | 570 | py | 67 | sqlencoder.py | 48 | 0.737828 | 0.730337 | 0 | 16 | 32.4375 | 66 |
adikolsur/Django | 10,256,381,930,002 | 22f495f680926659a7a8e2d1ff1dc38fddab769d | 7d062d837a96a8b10fa2b07c0b0a44a62261c857 | /level3_forms/formApp/forms.py | dcbc9acab8190190ea8ec9a236953d34a1ab086a | [] | no_license | https://github.com/adikolsur/Django | 81370baa15a26d87471e96675f6b4c827c7619d2 | bd69b108dfdcc98e6db1dca6644e2dd0ed8c572b | refs/heads/master | 2021-06-28T12:37:26.844526 | 2020-09-30T18:37:29 | 2020-09-30T18:37:29 | 167,184,745 | 0 | 0 | null | false | 2020-09-30T18:37:31 | 2019-01-23T13:05:59 | 2019-10-01T03:28:36 | 2020-09-30T18:37:30 | 10,249 | 0 | 0 | 0 | Python | false | false | from django import forms
from formApp.models import User
from django.core import validators
# def check_begin_a(value):
# if value[0].lower()!='a':
# raise forms.ValidationError("Must begin with the letter a/A")
class FormModel(forms.ModelForm):
class Meta:
model = User
fields = '__al... | UTF-8 | Python | false | false | 1,205 | py | 21 | forms.py | 14 | 0.636515 | 0.634025 | 0 | 36 | 32.472222 | 80 |
argux/server | 15,281,493,669,950 | 5f7fd6f742a7d02e9c3ab90ce32c1e3a89b6ed88 | 589e5d16bf11cc1cc64c5cf9e750bde122b9e0b5 | /argux_server/monitors/SNMPMonitor.py | 6d740c91b94d09f36a41ed31e15a61f73379f919 | [
"Apache-2.0"
] | permissive | https://github.com/argux/server | 38a2efc26782aaa9a2920d0230029acec46d47ab | e469521c037ecadc21a0527bce6a0cdba5cffcf2 | refs/heads/master | 2020-04-05T23:47:49.921547 | 2016-11-26T12:50:30 | 2016-11-26T12:50:30 | 44,723,415 | 0 | 1 | null | false | 2016-05-29T21:22:35 | 2015-10-22T05:10:18 | 2016-01-13T06:37:29 | 2016-05-29T21:22:15 | 1,439 | 0 | 1 | 16 | Python | null | null | """SNMPMonitor module."""
import time
import re
import subprocess
from datetime import datetime
from .ExternalMonitor import ExternalMonitor
import transaction
class SNMPMonitor(ExternalMonitor):
"""SNMPMonitor class.
Queries Monitor dao and schedules monitoring actions.
"""
def __init__(self,... | UTF-8 | Python | false | false | 789 | py | 194 | SNMPMonitor.py | 135 | 0.626109 | 0.626109 | 0 | 43 | 17.348837 | 57 |
bobquest33/testRestFlask | 18,193,481,468,345 | c713022a8f8c192a752c001732193ef1bcf59995 | f8480a6ecd0c140703999eb4f760995bd375b2a1 | /testRestFlask/testRestFlask/apps/testRest/views.py | fe7e858d8f9be8d74d57fd6cb7b5756ebf7a110d | [] | no_license | https://github.com/bobquest33/testRestFlask | 72f0b6bf17eb333d057d00a0c05918beb1e9bc67 | 0d518ceecd63747c2325324b7e103ce422a4f621 | refs/heads/master | 2016-08-11T20:25:00.495819 | 2016-03-17T19:08:18 | 2016-03-17T19:08:18 | 54,085,511 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from flask import render_template,jsonify,current_app,g
from flask import Blueprint
from flask_restful import reqparse, abort, Api, Resource,marshal
from flask.ext.httpauth import HTTPBasicAuth
from models import *
testRest = Blueprint('testRest', __name__,url_prefix='/api')
api = Api()
api.i... | UTF-8 | Python | false | false | 1,969 | py | 6 | views.py | 4 | 0.690706 | 0.684104 | 0 | 68 | 27.955882 | 67 |
ASWATHIV98/Luminarpythonproject | 5,617,817,232,114 | 36f130d1d8f7e46bc2b35418e27d32b30c9d7e73 | 4f8017615a86d1dfa10718d06606999bd4f6ae24 | /testword/operation_function.py | af1a2cf8f0ed5e91f54da3d1c07dd0f3acb536f8 | [] | no_license | https://github.com/ASWATHIV98/Luminarpythonproject | d2b2c840bb4c29223d85a7a4a5973f82de99afe7 | 53f07060442f24b6ffed2104ef63c43884ab6fc8 | refs/heads/master | 2023-03-06T10:45:07.875145 | 2021-02-12T05:28:59 | 2021-02-12T05:28:59 | 333,320,955 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # import function.module#function is a directory and module is an .py file in same directory.
#
# addres=function.module.add(100,200)
# print(addres)
#or
import function.module as np
addres=np.add(100,300)
print(addres)
# from function.module import *
# addres=add(200,100)
# subres=sub(200,50)
# print(addres)
# print... | UTF-8 | Python | false | false | 328 | py | 45 | operation_function.py | 45 | 0.740854 | 0.670732 | 0 | 15 | 20.933333 | 93 |
fortuno/mutanome-project | 11,828,339,965,348 | df9cb6b0c64f8d9adcd53f7acb468681545f23d8 | d3fad47cfbe00058c906afe1b584031f923e5a4b | /variants_functions.py | 8b79d3246c3d0d11b7c0de5509256aed6720b510 | [] | no_license | https://github.com/fortuno/mutanome-project | 45090b35478b4b50aa65190f895e7d30cc3d93c6 | 24493b29b4c986cf602cd4c7fe54b10a641f84f1 | refs/heads/master | 2020-03-21T23:38:56.979987 | 2018-06-29T22:24:50 | 2018-06-29T22:24:50 | 139,199,404 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
import gzip
import glob
import os.path
import urllib
import urllib2
import httplib
import pprint
import string
import math
import random
import copy
from classes.protein_info import PDB
from Bio import SwissProt
from Bio import SeqIO
from Bio import pairwise2
from Bio.PDB import *
from Bio.SubsMat import Matr... | UTF-8 | Python | false | false | 11,622 | py | 4 | variants_functions.py | 3 | 0.542592 | 0.535192 | 0 | 330 | 34.218182 | 156 |
tominozh/GalleryProject | 10,746,008,206,728 | 2bbf0f2690faeb33fd4c41399f601bf238de1d30 | 963204c1f74dbcbd843ec216475b9c034d7dac56 | /gallerydb_V6/tickets/tickets_year_to_mysql.py | f9d46621fdd5361d9ff62f2e9a525046cc962ee3 | [] | no_license | https://github.com/tominozh/GalleryProject | 0b44c90641fbe059733e82a5518b93bf68352f83 | 6967a3300b4e1c80dfbe2dfa9f625b613912cff7 | refs/heads/master | 2017-10-08T08:12:53.330838 | 2017-06-23T09:40:32 | 2017-06-23T09:40:32 | 81,877,313 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 30 22:45:53 2017
@author: Tomas & Aoibh
"""
import csv
import MySQLdb
def read_csv():
db = MySQLdb.connect(host="127.0.0.1",user="root",passwd="",db="artgallery")
mCursor = db.cursor()
insert = '''INSERT INTO Ticket(Ticket_Visitor_ID,Ticket_TimeStamp) VALUES (%s,%s);'... | UTF-8 | Python | false | false | 900 | py | 24 | tickets_year_to_mysql.py | 22 | 0.614444 | 0.584444 | 0 | 34 | 25.117647 | 86 |
Kawser-nerd/CLCDSA | 9,397,388,464,356 | 8fe6b15aaf6e731b9262760f10ac4ed31509ff9d | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc004/D/4664663.py | 2e96bed94defbe237a820b51cdbe7bf1bf553e19 | [] | no_license | https://github.com/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 | null | null | null | null | null | null | null | null | null | import sys
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().spl... | UTF-8 | Python | false | false | 952 | py | 63,031 | 4664663.py | 40,589 | 0.528361 | 0.50105 | 0 | 37 | 23.783784 | 68 |
jinxmirror13/bnp-vae | 9,234,179,722,720 | 6a4a764b096e5f02a7ffa768ade84d7b2983a793 | b6fc764629f7779e9a0bdb35b377d83db8333f9e | /src/var_inf.py | 09fb3ac5555fb57c435efb9f61210caafd5bd2b6 | [] | no_license | https://github.com/jinxmirror13/bnp-vae | 83b15afd67e4483cdbde0e0f96d1d0c4684a2a20 | b0bcbb02c2cef6faba697583fc09d285547ad524 | refs/heads/master | 2022-11-30T00:27:27.947368 | 2020-08-06T15:50:15 | 2020-08-06T15:50:15 | 278,445,959 | 0 | 0 | null | true | 2020-07-09T18:52:28 | 2020-07-09T18:52:27 | 2020-06-18T14:43:28 | 2018-03-09T04:24:16 | 1,592 | 0 | 0 | 0 | null | false | false | from util import *
from copy import deepcopy
from scipy.special import digamma
from datetime import datetime
import sys
from node import Node
from util import *
import cPickle
from sklearn.cluster import MiniBatchKMeans
from sklearn.metrics import silhouette_samples
####################################################... | UTF-8 | Python | false | false | 23,081 | py | 11 | var_inf.py | 9 | 0.585503 | 0.580737 | 0 | 829 | 26.841978 | 95 |
adelineROATTA/ThreaDNA | 9,363,028,748,444 | 80af646df84309a374279151ae1176884bd1851f | 15e5b7b0f5cfbf1beb69e6df9416e4f0fe8445f8 | /seqmotifs.py | c5b8224c76f9e06613cb43f58608dd76b4d82ed0 | [] | no_license | https://github.com/adelineROATTA/ThreaDNA | a75d0f8e6fbee68d59520242d53aa596f3d19687 | 3c8e793d443f5b4ce9922eceb273e2d987d4f571 | refs/heads/master | 2021-01-11T16:31:58.155440 | 2017-09-02T15:51:23 | 2017-09-02T15:51:23 | 80,102,042 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# coding: utf8
import sys
import argparse
def seqpen(seqn,seq,char,pos,l,f,ref):
i=0
s=""
while i<len(seq)-l+1:
f.write(seqn+"\t"+str(ref+i)+"\t"+str(int(seq[i+pos-1]==char))+"\n")
i+=1
def main(args):
if args.reference==None:
args.reference=(args.l+1)/2
f... | UTF-8 | Python | false | false | 1,985 | py | 35 | seqmotifs.py | 25 | 0.634761 | 0.62267 | 0 | 44 | 44.113636 | 314 |
judith600/advent_of_code_2020 | 335,007,467,574 | 604347663f4fdef30f31a45790370ccda5a97ff6 | 4fa8e983f98ad6757aee11dca749ab9a4a09d541 | /advent/year2020/src/part_two/day_9/day_9.py | e0709a350b859ab996b8fdbb6f5c0f6652127ce0 | [] | no_license | https://github.com/judith600/advent_of_code_2020 | 0d824047338f160895a674c13f42a29e3c5023e6 | 8f78bd2d7e5e7b98c019e6d04357a0c82c58124f | refs/heads/main | 2023-01-28T06:47:26.395377 | 2020-12-11T07:09:46 | 2020-12-11T07:09:46 | 315,248,625 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from copy import deepcopy
from typing import List
from file_opener import getInputFileLinesAsList
def getInputNumerical(fileName):
numberStrings = getInputFileLinesAsList(fileName)
return [int(line) for line in numberStrings]
def isCurrentNumberValid(current: int, scope: List[int]):
for index, firstNum... | UTF-8 | Python | false | false | 1,653 | py | 23 | day_9.py | 22 | 0.664852 | 0.650938 | 0 | 64 | 24.828125 | 59 |
emiludenz/liveness_analysis | 14,869,176,800,805 | 1f3b1f0deef3ee556b7ffaa4a6ff2ac306b89a4b | ce02b18411c2bd3fec07ca01fd662292654c462a | /main.py | 075ac82cc9b0eccf86659d82a43da1902aa93ef7 | [
"MIT"
] | permissive | https://github.com/emiludenz/liveness_analysis | fdd0d18c966ac78c21c6611ab5a6e4185ff9923c | ce3fdb47be54767eb13eee032091471917b6bfc1 | refs/heads/master | 2022-12-02T17:38:17.025691 | 2020-08-20T10:33:29 | 2020-08-20T10:33:29 | 288,209,515 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from lib_live import *
def main():
gen_set = get_kill(ex7,True)
fp_set = fp_iteration(gen_set,True)
ex = ["0: LABEL begin",
"1: z := a+b",
"2: a := z+b",
"3: IF y < x THEN end ELSE begin",
"4: LABEL end"]
ex2 = ["1: z := 0",
"2: LABEL begin",
"3: a := x + 7",
"4: y := y + a",
"5: b := y % 3",
"6: x := x... | UTF-8 | Python | false | false | 1,483 | py | 4 | main.py | 3 | 0.425489 | 0.354012 | 0 | 92 | 15.130435 | 36 |
mario5698/Course-2020-2021 | 6,871,947,719,002 | b4e9dd5331fdc5b82c0befaeb196d2bd26cae46d | e332ab085f575fae376f5b43759c4b5c7fdad075 | /S2AM/Code/Aprender python/UF-1-Resuelto/ICB0M03U01I03/act4.py | 2179f8d05a98eb96fb59bb67765f1329980441d6 | [] | no_license | https://github.com/mario5698/Course-2020-2021 | 9bdfc3b09be56e78a9da17e358ff321c5174f338 | 35333297f4ff6f387296c55897221640ee605e4f | refs/heads/main | 2023-04-26T09:45:29.961490 | 2021-05-28T15:16:42 | 2021-05-28T15:16:42 | 371,736,741 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
print ("Transport public :")
preu_transport=float(input ())
print ("KM :")
km=float(input ())
print ("Preu KM :")
preu_KM=float(input ())
preu_kma=km*preu_KM
minim= min([preu_transport,preu_kma ])
print(round(minim,2))
| UTF-8 | Python | false | false | 233 | py | 342 | act4.py | 14 | 0.678112 | 0.67382 | 0 | 11 | 20.090909 | 38 |
sagarbrptr/library_management | 4,028,679,324,166 | 4e2b8b288565baa291583dcd0d08d65e1036f67f | 4d49137de5a8ecc194e9611a754902f90893accf | /proj1/app/migrations/0002_auto_20180723_1812.py | 9aba99c08fd6ed5f311e99f77113ebfb2b1b4807 | [] | no_license | https://github.com/sagarbrptr/library_management | 7bf85c856055426cb1784ab92e89aa0adddfe464 | 43971e03aca28ad3ae6a1d9c0112c750a48d992d | refs/heads/master | 2020-03-24T17:29:31.031094 | 2018-07-30T11:06:34 | 2018-07-30T11:06:34 | 142,860,711 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-23 18:12
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AddField(
... | UTF-8 | Python | false | false | 710 | py | 9 | 0002_auto_20180723_1812.py | 6 | 0.592958 | 0.511268 | 0 | 26 | 26.307692 | 99 |
zhudaxia666/alicomp | 2,508,260,917,991 | ed49eecd150c142c646924707597b7d36361ab61 | 86ec0dca6e8c8b642f813f4dbd0a54014d238c30 | /zhu/xgboost_copy.py | 4a2069fc4069aa365050fe3d34c60ac82d09ae29 | [] | no_license | https://github.com/zhudaxia666/alicomp | fd890413f669ccec5e4ddbadb73550b773ef9603 | 50e98f9db19837eed9ced1c24b46340ba4b32ee8 | refs/heads/master | 2020-04-30T06:47:20.289814 | 2019-03-20T06:52:46 | 2019-03-20T06:52:46 | 176,662,800 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/python
import numpy as np
import xgboost as xgb
import h5py
import numpy as np
import os
import operator
# from keras.utils import to_categorical
import csv
import random
base_dir = "./../data"
path_training = os.path.join(base_dir, "training.h5")
path_test = os.path.join(base_dir, "test.h5")
path_validati... | UTF-8 | Python | false | false | 5,071 | py | 29 | xgboost_copy.py | 24 | 0.621347 | 0.592336 | 0 | 147 | 30.421769 | 160 |
fedesevle/Ventura | 15,281,493,655,679 | f7833d45d4367e69e1ccf489fe220adb6a6591e9 | 995ce02bedb4defdcfa15934dfc374e3c9c3fe85 | /RK4/RK4_exponencial.py | 07c1568fa0db877490756241c3a4e270801e2656 | [] | no_license | https://github.com/fedesevle/Ventura | 95848894b56ea0ec2fa5e9608e0d61bc1104662d | 4b75041784245a63884538751f36e4f1d9e26afe | refs/heads/master | 2020-03-10T15:09:47.338319 | 2018-06-05T17:38:27 | 2018-06-05T17:38:27 | 129,442,759 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed May 16 10:44:04 2018
@author: USUARIO
"""
import numpy as np #importa el paquete que permite usar funciones matemáticas
import pylab as plb #importa pquete que nos permite hacer gráficos
def int_rk4(f,x,dt,params):
k_1 = f(x,params)
k_2 = f(x+dt*... | UTF-8 | Python | false | false | 1,950 | py | 9 | RK4_exponencial.py | 6 | 0.648425 | 0.623129 | 0 | 60 | 29.633333 | 128 |
nkelava/WebApplications | 927,712,978,204 | 43991c0b6a3e7384c28619a5d8875410c2cf0661 | bd7838f6fecce9998eda98dc79c4e24d5607d8bb | /UploadFiles/session.py | eab58f6c3038b4b7c98b2228bb3e7e2738700609 | [] | no_license | https://github.com/nkelava/WebApplications | 5009a99246bf3683ddc6e1a55e670062fcaa58d2 | 44ee28684bc32639e0ddbf4540b23744e63adc11 | refs/heads/main | 2023-02-26T12:09:54.633272 | 2021-02-07T12:53:14 | 2021-02-07T12:53:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! C:\Users\Nikola Kelava\AppData\Local\Programs\Python\Python38-32\python.exe
from os import environ
from http import cookies
import database
def create_session():
session_id = database.create_session()
print(f'Set-Cookie: session_id = {session_id}')
return session_id
def get_session_id():
http_coo... | UTF-8 | Python | false | false | 1,455 | py | 24 | session.py | 23 | 0.662543 | 0.651546 | 0 | 55 | 25.418182 | 119 |
xaviranik/HackerRank | 12,369,505,824,533 | 269bf8be120710a3d2e631333a005b47d146da37 | 5a60d1717e18e5ca61f7b739ae8222a09620c1ff | /python/basic/lists.py | 6479aba260d17afd1202a3332e22d6e0cb6efe61 | [] | no_license | https://github.com/xaviranik/HackerRank | 69b177d4e4586bab990a60930a3f905a9dfc5bea | 31c999c711e583c9c4d73199930657713daaa6a5 | refs/heads/master | 2022-02-23T15:45:16.473865 | 2019-08-14T09:06:42 | 2019-08-14T09:06:42 | 198,211,947 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
L = []
no_of_inp = int(input())
for i in range(no_of_inp):
inputs = input()
lst_of_input = [i for i in inputs.split()]
if lst_of_input[0] == 'insert':
L.insert(int(lst_of_input[1]), int(lst_of_input[2]))
elif lst_of_input[0] == 'print':
print (L)
elif lst_of_input[0] == 'remove':
... | UTF-8 | Python | false | false | 598 | py | 27 | lists.py | 26 | 0.523411 | 0.505017 | 0 | 21 | 27.47619 | 60 |
duwei19961021/pythonxx | 2,551,210,597,413 | 0e4dac24845e3ae89f6b9dbfb2b5e4f74c513419 | 517389abde6df26d9ef8ba57a76b18bccf34a5fc | /Mysql.py | c32269f1480c7daf0e1137d970324e163bc86f8b | [] | no_license | https://github.com/duwei19961021/pythonxx | bac34ef8f412a5096e1cf21766972cda289474b1 | 072c8f8d31909ffe2e6c07ec8e219aceb0774095 | refs/heads/master | 2021-06-25T02:39:46.651233 | 2021-02-07T03:17:18 | 2021-02-07T03:17:18 | 190,140,601 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymysql
def chushihua():
connection = pymysql.connect(host='',
port=3306,
user='python',
password='123456',
charset='utf8')
cursor = connection.cursor()
sql1 = "create ... | UTF-8 | Python | false | false | 577 | py | 49 | Mysql.py | 49 | 0.544194 | 0.504333 | 0 | 13 | 43.384615 | 178 |
taguz91/python-p | 9,534,827,425,384 | b018f0e9650435ff59e094009dec11376fd895b4 | 264f26e174f89da5a9f1b72be779be4f23465c9c | /Ejercicios 2/Palabra_repite.py | 1d2fc47c31ef4fb84c95e99baed9847847c136c7 | [] | no_license | https://github.com/taguz91/python-p | 8248485a66867479e97f9c47af4a6cb5fa4017fb | a6f772cf924bbf44d42a48c8c4de103c7a5bfcda | refs/heads/master | 2022-03-15T05:01:51.773680 | 2019-11-23T22:53:43 | 2019-11-23T22:53:43 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | capitulo = """Letter 1
TO Mrs. Saville, England
St. Petersburgh, Dec. 11th, 17-
You will rejoice to hear that no disaster has accompanied the
commencement of an enterprise which you have regarded with such
evil forebodings. I arrived here yesterday, and my first task is
to assure my dear sister of my welfare and i... | UTF-8 | Python | false | false | 41,812 | py | 58 | Palabra_repite.py | 58 | 0.792548 | 0.791902 | 0 | 762 | 53.872703 | 78 |
kelly-vacasa/django-jwtauth | 16,389,595,243,652 | 233009d73805c9ad29a8a2b1121259fde04575ed | 9a6cf71002d3634dddc0931a057518c81fd3cc95 | /tests/test_commands.py | aabc6a16ed5707693e58e508e22286fc48658836 | [
"MIT"
] | permissive | https://github.com/kelly-vacasa/django-jwtauth | 916eb34846d22f445c2db0e726d72a9b6334aded | 56f658c3c5f15cba184b415c494ca8f76abfe926 | refs/heads/master | 2020-04-18T04:56:14.063078 | 2019-03-19T00:51:38 | 2019-03-19T00:51:38 | 167,257,801 | 0 | 0 | MIT | true | 2019-03-18T23:40:45 | 2019-01-23T21:35:20 | 2019-02-02T00:09:32 | 2019-03-18T23:40:45 | 56 | 0 | 0 | 0 | Python | false | null | from io import StringIO
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from django.contrib.auth import get_user_model
from django_jwtauth.utils import setup_keys, verify_token, get_private_key
OUT = StringIO()
class GenerateToke... | UTF-8 | Python | false | false | 1,943 | py | 5 | test_commands.py | 2 | 0.65929 | 0.65929 | 0 | 53 | 35.660377 | 91 |
Ckoelewyn/maplistCod4 | 10,642,928,993,627 | 3761b6cb10f0389cb4d6f415f684ac1dbd2e5475 | fcd68b72ff7ac3e3953b7b4a621575479f8d74bc | /ftpmaplist.py | d12fb4d257243cf58bd69cbe15b4b7783fdd76e8 | [
"MIT"
] | permissive | https://github.com/Ckoelewyn/maplistCod4 | 5f934e56dfd65bc4fde5ad1934dc55346e557dc1 | da692caab7b7c7e54b11caf60cfb5470515b1c86 | refs/heads/master | 2018-12-22T17:18:25.300237 | 2018-10-01T02:30:23 | 2018-10-01T02:30:23 | 151,027,246 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# Clanmate wanted to have a way to see what maps were currently in the server,
# A quick python script which pulls the mapfolder directory from ftp and
# returns a json structure to be passed to a website.
# json should have each map and the date the website was updated.
import os
from ftplib import... | UTF-8 | Python | false | false | 1,712 | py | 4 | ftpmaplist.py | 1 | 0.587033 | 0.58528 | 0 | 57 | 28 | 89 |
avpan/SFOfficeAssessor-Recorder | 7,765,300,905,119 | 12cba64b14330a653a46e4b12542d8dd37d9babd | d14e1043315995303fcb206881025e8f0c371b84 | /question2.py | 2acf7a9075029acbbdfa2885c99e51ef555e533d | [] | no_license | https://github.com/avpan/SFOfficeAssessor-Recorder | 2d2adb428619f11e8354fee3905188bfdb325d84 | 56def99fa009b14e647d8fcb8176ec4d0706503b | refs/heads/master | 2021-01-16T22:15:37.215755 | 2016-07-19T00:21:40 | 2016-07-19T00:21:40 | 63,646,051 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import pandas as pd
import time
import operator
def getFraction(prop_code):
classcode = {}
N = len(prop_code)
for el in prop_code:
if el in classcode:
classcode[el] = classcode[el] + 1
else:
classcode[el] = 1
maxcode = max(classcode.values())
fraction = maxcode/float(N)
print 'Fractio... | UTF-8 | Python | false | false | 1,280 | py | 1 | question2.py | 1 | 0.623438 | 0.6125 | 0 | 60 | 20.166667 | 92 |
PINTO0309/TinyYolo | 2,954,937,537,065 | 876ffe368d9aaede18488dc83418a1e3a1ec2045 | 415afcfbe0046d9a675c5c2e9361635b6051c094 | /detectionExample/MultiStick.py | f2ccf86af69c58d3ec6272abe3a9806be3217c40 | [
"MIT"
] | permissive | https://github.com/PINTO0309/TinyYolo | 2ed5c8e0a2133b8f0a580b6f09343fe44a06244c | eaa0ebcba302c1da06b03d475c2dff5d58dc09fe | refs/heads/master | 2020-03-07T12:44:41.793598 | 2018-03-31T13:10:43 | 2018-03-31T13:10:43 | 127,484,726 | 6 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
graph_folder="./"
if sys.version_info.major < 3 or sys.version_info.minor < 4:
print("Please using python3.4 or greater!")
exit(1)
if len(sys.argv) > 1:
graph_folder = sys.argv[1]
from mvnc import mvncapi as mvnc
import numpy as np
import cv2
from os import system
import io, time
from os.path i... | UTF-8 | Python | false | false | 6,785 | py | 8 | MultiStick.py | 6 | 0.611643 | 0.579956 | 0 | 250 | 26.14 | 157 |
AKoushikReddy/Django-WebApplication-2 | 18,184,891,550,854 | 982230ab71494486071eb6a86c41059993c2ac56 | 0de12c35f8a187b40ae7da824d0fe5dd608f6a17 | /Equipment/migrations/0004_auto_20181002_1729.py | fe6fc7c74c01963f6b7b8e7312c45ae6f2537952 | [] | no_license | https://github.com/AKoushikReddy/Django-WebApplication-2 | 3a59acb7639c630e7ea851616ad1427b69e3f44b | 079155622c3d41ba1faa63b92213d7f7a4a9eeb2 | refs/heads/master | 2020-04-08T02:06:33.510495 | 2018-11-24T10:13:06 | 2018-11-24T10:13:06 | 158,922,817 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.0.2 on 2018-10-02 11:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Equipment', '0003_auto_20180930_1038'),
]
operations = [
migrations.RenameField(
model_name='sensoralarm',
old... | UTF-8 | Python | false | false | 394 | py | 24 | 0004_auto_20181002_1729.py | 14 | 0.555838 | 0.477157 | 0 | 18 | 19.888889 | 49 |
yumilr/simulacion-de-datos | 2,439,541,427,441 | 021d5bc18f8bc8f0292571cc777c4a971c1d9c73 | f845aacbe7ff988633a622a8707f7a5c7d3ab3d2 | /process/generators.py | 1bec5cf9217a3ae4879f0a863906bb485963d204 | [] | no_license | https://github.com/yumilr/simulacion-de-datos | 092922ece32245cfa57d7f435b33927cbff19517 | 26965aed333a219a2446b96da4a5b7378855d078 | refs/heads/main | 2023-02-02T18:49:56.121058 | 2020-12-11T21:43:51 | 2020-12-11T21:43:51 | 320,689,869 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
from random import randint
from random import randrange
from datetime import timedelta
from datetime import datetime
from data import *
import random as rd
def random_date(start, end):
"""
This function will return a random datetime between two datetime
objects.
"""
delta = end - start
... | UTF-8 | Python | false | false | 8,551 | py | 9 | generators.py | 8 | 0.607439 | 0.577611 | 0 | 219 | 38.041096 | 219 |
tristan-salles/book-python | 5,111,011,093,197 | 97cc66f155205c9a9a409418499a73f0d593f870 | 3d8ac133cb4908af5ec69e03014dd925c252d2ae | /concurrency/solution/threading_timer.py | 9c2e052e072f4d2ff3855236eb30d09aaaab1a52 | [
"MIT"
] | permissive | https://github.com/tristan-salles/book-python | 7b2afaf44d6a7887a802991a211b53b38d46e91f | 5e1dbbb58fb03fb5c6936ec331ec1f907e42037f | refs/heads/master | 2020-06-22T21:50:29.843279 | 2019-07-18T14:06:51 | 2019-07-18T14:06:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import subprocess
from shlex import shlex
from queue import Queue
from threading import Timer
TIMEOUT = 2.0
DELAY = 5.0
TODO = [
'ping python.astrotech.io',
'ls -la',
'echo "hello world"',
'cat /etc/passwd',
]
work_queue = Queue()
def run():
while True:
cmd = work_queue.get()
cmd... | UTF-8 | Python | false | false | 721 | py | 205 | threading_timer.py | 129 | 0.624478 | 0.618915 | 0 | 43 | 15.72093 | 60 |
songzhenhe/NSHA2018 | 13,219,909,355,977 | 233127a08c5ad928f6d6d46e48c8df66302b88f0 | ef354f79c1833a68ce149373b2e20d5f857e63ea | /source_models/faults/build_national_fsm_collapsed_rates.py | 33e63684e537a476d23720d9d2dec7645f9a583a | [] | no_license | https://github.com/songzhenhe/NSHA2018 | 29995caf5cc560faa924ad9bfe3d9e2efb72ad9c | 86df6654318461055b0d36124bf8a91d10a9869f | refs/heads/master | 2021-07-08T20:58:33.660905 | 2017-10-05T04:52:48 | 2017-10-05T04:52:48 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Code for building the fault source model with rates from
collapsed logic tree branches
Jonathan Griffin
Geoscience Australia
April 2017
"""
#module use ~access/modules
#module load pythonlib/basemap
import os, sys
import numpy as np
from NSHA2018.source_models.faults.shapefile2nrml import shapefile_2_simplefault... | UTF-8 | Python | false | false | 18,482 | py | 489 | build_national_fsm_collapsed_rates.py | 9 | 0.622768 | 0.608809 | 0 | 349 | 51.95702 | 110 |
sinishadj/dj-txmoney | 19,670,950,230,068 | f16edcfac1b552fe9a9bac34b54cf8ec16d81353 | cf1a898cfba062ba42506e73e4251236032858f1 | /txmoney/settings.py | 7f6216c711b8e3a6d9673248c8441416ca2aa8e1 | [] | no_license | https://github.com/sinishadj/dj-txmoney | 1e9a92a6a387655bd9ea4ea91b9c85eae69e5789 | 7d0d3e3ef94b0c1a65f2bf8430dd75140de1afdf | refs/heads/master | 2020-03-28T22:59:21.810399 | 2016-07-07T10:29:42 | 2016-07-07T10:29:42 | 149,269,560 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding=utf-8
"""
This module is largely inspired by django-rest_framework-framework settings.
Settings for txdmoney are all namespaced in the TXDMONEY setting.
For example your project's `settings.py` file might look like this:
TXDMONEY = {
'DEFAULT_BACKEND': 'txdmoney.backends.OpenExchangeBackend',
'BASE_C... | UTF-8 | Python | false | false | 3,687 | py | 27 | settings.py | 23 | 0.664226 | 0.659615 | 0 | 119 | 29.983193 | 114 |
hichamkettani6/computer-sciences | 6,554,120,094,935 | c04acdcc18d0474341e603c4b1afe257216ba5a7 | 5be916e4a6e36a204b7a05bfb673fd56e7369010 | /Python/src/2020-21/20201221_lab11-6_3.py | 1ddd7d760eaceabe17f83e727b3111bd53d064ea | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | https://github.com/hichamkettani6/computer-sciences | ccd27c058f65a0b79950d7d92b64ddbb9ce6d384 | 07c59e4269eae3efbf4f771c36a67e7b1ea09a57 | refs/heads/master | 2023-08-16T05:14:51.383989 | 2021-10-22T12:43:47 | 2021-10-22T12:43:47 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ###### /=================================================\
# ####### | CLASS EXAMPLE FOR "COMPUTER SCIENCES" (07JCJ**) |
# #### \ | https://github.com/squillero/computer-sciences |
# ###G c\ | |
# ## _\ | © 2020 Giovanni Squi... | UTF-8 | Python | false | false | 1,737 | py | 68 | 20201221_lab11-6_3.py | 67 | 0.509793 | 0.501152 | 0 | 50 | 33.72 | 99 |
connordlee/data-533-lab-4-Akash-and-Connor | 4,277,787,465,195 | cf7fa22a28441f8c554fded8cf50b4e23d2e7da1 | 4dbd4b0f18720609b124612374852997ed8aabfc | /TestMemberTypes.py | 5f362692cb31f54004fdf776d316e184438166e6 | [] | no_license | https://github.com/connordlee/data-533-lab-4-Akash-and-Connor | 9dbc9c7c73b57e4159bf3aeb8575a4e2aa4cab27 | 9bec8e8a1d972a71b84343e2ac1add75700f9e17 | refs/heads/master | 2020-09-25T09:00:56.247119 | 2019-12-13T00:12:53 | 2019-12-13T00:12:53 | 225,969,308 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from club import club
from club.member.membertypes import player, staff
class TestMemberTypes(unittest.TestCase):
@classmethod
def setUpClass(cls):
# Initializing Staff for testing
cls.zidane = staff('Zinedine Zidane', 'France', 5500000, 9, 'Skipper')
cls.vazquez = staff... | UTF-8 | Python | false | false | 4,330 | py | 27 | TestMemberTypes.py | 14 | 0.668129 | 0.64388 | 0 | 91 | 46.593407 | 88 |
parsaroohi/eshop | 3,358,664,439,785 | 6c41d588802217a25383c6bfa0d66949ce2fcb61 | f11e23deb3dc2a6fe8cc045d4f55e39f163f5ab5 | /eshop_product_category/models.py | 2c1ab2d2851c6d5ebb087094d5366690924fb45a | [] | no_license | https://github.com/parsaroohi/eshop | 2f99ecf7b433f959a8d4978a1e338587bacb0d73 | 139acb9945737a8b3e6e2b147614912074b3eca9 | refs/heads/main | 2023-08-12T16:55:48.193121 | 2021-10-17T15:37:00 | 2021-10-17T15:37:00 | 418,174,675 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
# Create your models here.
class ProductCategory(models.Model):
title=models.CharField(max_length=150,verbose_name='عنوان')
name=models.CharField(max_length=150,verbose_name='عنوان در url')
class Meta:
verbose_name='دسته بندی'
verbose_name_plural='دسته بندی ها... | UTF-8 | Python | false | false | 401 | py | 52 | models.py | 45 | 0.687332 | 0.671159 | 0 | 14 | 25.571429 | 69 |
dominicgomez/fighter | 10,651,518,901,893 | 3ae22bbd2001133e3f9427a04a029547e8dcc45f | 6a131b6554797f5024afcb330cd80edeb18a3207 | /src/util.py | 1b172948dcccb57b85ec8745d115a984580fb9c1 | [] | no_license | https://github.com/dominicgomez/fighter | fb1cb70be97e34850772145b525b4ddfb35b1908 | aba27551d4be3ed4df8a47cfe14b8475cbbc9c52 | refs/heads/master | 2020-05-26T13:33:11.746375 | 2017-03-19T08:41:50 | 2017-03-19T08:41:50 | 85,002,140 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'Dominic Gomez'
__email__ = 'DominicAnthonyGomez@gmail.com'
"""Miscellaneous functions that make life easier."""
import operator
BLACK = (0,0,0)
def tupadd(lhs, rhs):
"""Componentwise addition of tuples.
lhs ((int,int)): The first tuple.
rhs ((int,int)): The second tuple.
"""
retu... | UTF-8 | Python | false | false | 993 | py | 7 | util.py | 7 | 0.628399 | 0.623364 | 0 | 33 | 29.090909 | 81 |
maverick2789/Sherlock | 15,607,911,196,399 | fdc51aee79be2542787143a1ade3a4d906f76339 | 22ece3d0e592351fe9d8ca7a9c1b20f7be63b960 | /Manisha/pipeline3.py | c602f536958d329dcd0e23d51ee2da7f8af736de | [] | no_license | https://github.com/maverick2789/Sherlock | 0f0fadb7e9784f7cf0667bca0636e18c7a4e5b8d | bcc5970ea174c60344b08ad84170a21131a63f04 | refs/heads/master | 2016-09-13T17:29:12.383598 | 2016-05-01T11:21:30 | 2016-05-01T11:21:40 | 56,921,648 | 0 | 0 | null | false | 2016-05-01T10:14:34 | 2016-04-23T13:51:46 | 2016-04-23T16:42:07 | 2016-05-01T10:14:34 | 24 | 0 | 0 | 0 | Python | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 30 02:48:03 2016
@author: Salazar
"""
def leaves(tree):
"""Finds NP (nounphrase) leaf nodes of a chunk tree."""
for subtree in tree.subtrees(filter = lambda t: t.label()=='NP'):
yield subtree.leaves()
def normalise(word):
"""Normalises words to lowerc... | UTF-8 | Python | false | false | 3,135 | py | 11 | pipeline3.py | 8 | 0.613078 | 0.604147 | 0 | 102 | 29.617647 | 92 |
kellnett/code_class_project_2020 | 2,491,081,061,917 | e62fcf58a38e94e45ab816cae01695ed7172ab29 | 2d083340548b283f3eb885472faae331dcd86252 | /fun.py | c3acffeb7f2f80db89eabffb25a4e22725044a5e | [] | no_license | https://github.com/kellnett/code_class_project_2020 | 0b2bd1ff2b3f0f1908749a10fdeb39ff3c27d097 | 172e9529e3134772267dd7a76d53b3b2f5ee3b38 | refs/heads/master | 2022-05-24T15:04:50.470092 | 2020-05-01T16:57:17 | 2020-05-01T16:57:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #codes the functions necessary to run 'runProject.py'
#define main monitor screen as 'testMonitor' in PsychoPy
from psychopy import visual, event, core, misc
from psychopy.hardware import keyboard
import numpy
import random
#define global variables
win=None
fix=None
rect=None
kb=None
mouse=None
log_file=None
thre... | UTF-8 | Python | false | false | 16,025 | py | 4 | fun.py | 2 | 0.58727 | 0.566115 | 0 | 646 | 23.806502 | 111 |
kws/jekyll-sharepoint | 549,755,826,671 | d295cec59e0d7a2cd8e1c41bf8e55244bb30c087 | a460bb06a9e26e5f000c83e68c898fe2372021ed | /jekpoint/commands/show.py | 360e9537f430b45a8940263cef5f63eab00e7425 | [
"MIT"
] | permissive | https://github.com/kws/jekyll-sharepoint | 87361eb21404531e02b4eee731c2aa387d6267aa | e2f5a3ff41152476eb2b3735a5308ba302ec62ca | refs/heads/main | 2023-04-16T01:54:17.840976 | 2021-04-25T09:29:18 | 2021-04-25T09:29:18 | 357,247,594 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from bs4 import BeautifulSoup, Comment
from jekpoint.api import SharePointApi
def add_arguments(parser):
parser.add_argument('page_name', type=str, help='Site-relative path to page')
def run(args, config):
api = SharePointApi(config.client, f"{config.site_url}{config.site_prefix}/", f"{config.site_prefix}/{... | UTF-8 | Python | false | false | 759 | py | 15 | show.py | 12 | 0.673254 | 0.669302 | 0 | 21 | 35.095238 | 127 |
johnalt/python-project-lvl1 | 1,838,246,021,624 | 239a36993dc7189049f582dfb25a41f6f0ddf625 | 514f279a0357997091303f321728fd7bd727c4d9 | /brain_games/games/prime_game.py | f671074608489dbd8b0ef281b6433e5038a9f078 | [] | no_license | https://github.com/johnalt/python-project-lvl1 | 044affbb55b864e1305d78a0a0ef986caac0bda3 | 30fbae2d7fd69950c94644042bcb50461f2dc400 | refs/heads/master | 2020-09-27T17:02:24.002010 | 2020-04-30T11:15:59 | 2020-04-30T11:15:59 | 226,564,669 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
import math
RULE_TEXT = 'Answer "yes" if given number is prime. Otherwise answer "no".'
ANSWER_PATTERN = 'yes|no'
def prime_check(number):
if number == 2:
return 'yes'
divider = int(math.sqrt(number))
while number % divider != 0:
divider -= 1
if divider == 1:
re... | UTF-8 | Python | false | false | 521 | py | 13 | prime_game.py | 12 | 0.606526 | 0.591171 | 0 | 25 | 19.84 | 75 |
SinethG/HDCBIS18.2F-018 | 1,546,188,263,647 | e6c354071e09a9daeadb0aa209fb384ab0daa56f | 07a5e91df8e5035501a238ef7bcb7081b54a6aef | /01_ceasarDecrypt.py | 6a0a440c11003680e56343f9b5ed43e68ecd594c | [] | no_license | https://github.com/SinethG/HDCBIS18.2F-018 | 056a3244357b8db1e343acff124284a793bae824 | 7b08799131fb7f28ec4d0bc2e750b35192c858c2 | refs/heads/master | 2020-04-04T14:30:31.149793 | 2018-11-28T08:40:31 | 2018-11-28T08:40:31 | 156,000,954 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | text=input("Input Text:")
alphabet="abcdefghijklmnopqrstuvwxyz"
k=3
cipher=""
for c in text:
if c in alphabet:
cipher +=alphabet[(alphabet.index(c)-k)%(len(alphabet))]
print('Your Decrypted Message is '+ cipher) | UTF-8 | Python | false | false | 225 | py | 3 | 01_ceasarDecrypt.py | 3 | 0.693333 | 0.688889 | 0 | 8 | 26.25 | 60 |
arzzon/PythonLearning | 7,078,106,121,138 | f4ea00cf6a4ee837c3eae894bb7f03ce11473d74 | 260efc49d90d8117336072e9e8a1e8351aa89199 | /PythonInbuilts/Collections/Dictionaries/OrderedDict/ordereddict.py | d7ea1305cdc79b8a797768d7fc5a2d46d0ac1fba | [] | no_license | https://github.com/arzzon/PythonLearning | c0af9b9640baf3f155a07df947aef331cc808519 | 2a23d40e0cef91a5547810dd8e45d598f6576391 | refs/heads/master | 2022-12-07T23:43:52.688186 | 2020-08-22T16:03:04 | 2020-08-22T16:03:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
DESCRIPTION:
An OrderedDict is a dict that remembers the order that keys were first inserted.
If a new entry overwrites an existing entry, the original insertion position is
left unchanged. Deleting an entry and reinserting it will move it to the end.
NOTE:
1. By default it follows LIFO prin... | UTF-8 | Python | false | false | 2,525 | py | 15 | ordereddict.py | 15 | 0.599208 | 0.587327 | 0 | 81 | 30.185185 | 90 |
EitanRosenzvaig/mio | 17,463,337,061,353 | 8140bf6eec9a03768943888badc03cf61fba6a7f | d3f1a3d6975aa8ee7aa852de0b9a2b75a4cecbe1 | /saleor/core/models.py | b81d57ba040e1cc0d171ebda2c5b95151a81ae4d | [
"BSD-3-Clause"
] | permissive | https://github.com/EitanRosenzvaig/mio | 4ccbca00a270c52c3a7aa06009182d0e70908260 | 5e11b29ccb1724cae6b49ceef7350dcbc986083c | refs/heads/master | 2018-10-16T18:51:53.709289 | 2018-09-03T18:09:55 | 2018-09-03T18:09:55 | 136,364,366 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf import settings
from django.db import models
from django.db.models import F, Max
from django.utils.timezone import now
from django.contrib.postgres.fields import ArrayField
class BaseNote(models.Model):
user = models.ForeignKey(
settings.AUTH_USER_MODEL, blank=True, null=True,
on_... | UTF-8 | Python | false | false | 1,807 | py | 24 | models.py | 19 | 0.671278 | 0.668511 | 0 | 53 | 33.113208 | 77 |
bilibileam/BeamPythonBench | 13,950,053,805,158 | 89b1a9125819f2695e82ef5d2e224befe6b9e492 | 438356f47fc8ce0c625fc8b252298f0949bb564a | /src/thinkbayes/priceIsRight.py | 5f9b6eb02a0277f69d73291d3c688af8e942bbfe | [] | no_license | https://github.com/bilibileam/BeamPythonBench | d81f84f4b5a274edd57d21a09cfa8ee587959849 | 966f1a6e2ba7f7d2a58b2e3f20591f37ffbaf3a6 | refs/heads/master | 2018-12-12T16:14:03.866281 | 2018-11-14T02:37:06 | 2018-11-14T02:37:06 | 142,291,220 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import scipy
class EstimatedPdf(Pdf):
def __init__(self, sample):
self.kde = scipy.stats.gaussian_kde(sample)
def Density(self, x):
return self.kde.evaluate(x)
prices = ReadData()
pdf = thinkbayes.EstimatedPdf(prices)
low, high = 0, 75000
n = 101
xs = numpy.linspace(low, high, n)
pmf = pdf... | UTF-8 | Python | false | false | 332 | py | 34 | priceIsRight.py | 32 | 0.659639 | 0.63253 | 0 | 14 | 22.785714 | 51 |
DanielWeidinger/Skyn | 3,427,383,937,484 | 24d66c4512c437101abb3ea785a8fda3459a345f | bf225e44bce22bf355e28af66faf91e03d918b50 | /Mask/meta/meta_data.py | 9d2535eb5f98aa822c93bd41688ac1b67cc08fc9 | [
"MIT"
] | permissive | https://github.com/DanielWeidinger/Skyn | 1b0911ed558689f68fb106ee55a9214d63b272be | 0503a6f07aadf580ba8390818b7cd674e29625ba | refs/heads/master | 2023-02-12T11:16:32.914031 | 2021-01-06T14:38:02 | 2021-01-06T14:38:02 | 297,622,631 | 0 | 0 | MIT | true | 2020-10-27T14:57:26 | 2020-09-22T11:06:15 | 2020-10-25T14:32:51 | 2020-10-27T14:57:25 | 1,316 | 0 | 0 | 0 | Python | false | false | class Metadata:
'''
Metadata:
Contain everything about an image
- Mask
- Image
- Description
'''
def __init__(self, meta, dataset, img, mask):
self.meta = meta
self.dataset = dataset
self.img = img
self.type = meta["clinical"]["benign_mali... | UTF-8 | Python | false | false | 375 | py | 13 | meta_data.py | 11 | 0.536 | 0.536 | 0 | 14 | 25.785714 | 78 |
fulfill2/project2 | 9,216,999,853,614 | d3bb19cacdbc71245c7cd2bfd42740a936649c69 | 7c008b3d9aa67f106a4afb5b68a06cc648028be3 | /app.py | a2ddc3eef1d642401fa43b33efef03496a14484b | [] | no_license | https://github.com/fulfill2/project2 | f13a63b97cc0348459904ffa529505e32cf289d0 | 5fe9e4c37ffb06aba84e2422d23dafa31d66aa3f | refs/heads/master | 2022-04-22T08:59:44.936545 | 2020-04-24T08:12:53 | 2020-04-24T08:12:53 | 258,447,400 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import pymysql
from datetime import datetime
from flask import Flask, render_template
from flask import request, redirect, abort, session, jsonify
app = Flask(__name__,
static_folder="static",
template_folder="views")
app.config['ENV'] = 'development'
app.config['DEBUG'] = True
app.s... | UTF-8 | Python | false | false | 7,126 | py | 4 | app.py | 2 | 0.457386 | 0.451627 | 0 | 228 | 29.464912 | 76 |
piyushbhadauriya/WJU_OS | 9,191,230,044,153 | 465a2d966d43c4e638b92e8d87974b8e86194b18 | e2eefb2da7f1a113e44bde5c09074bc8c368e94f | /mprocess/wprocess2.py | 8a4df215bfd3421b26a9a41190f81b71111946af | [] | no_license | https://github.com/piyushbhadauriya/WJU_OS | 88c73001c30c116f8f59b587ad27ade33561137d | 7d70f23bcb0485abe91abceaedb4a41c3e911e4f | refs/heads/master | 2020-03-28T22:10:25.391954 | 2019-01-15T01:00:55 | 2019-01-15T01:00:55 | 149,210,169 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import multiprocessing as mp
def foo(q):
q.put('hello')
q.put([42,None,'hello'])
if __name__ == '__main__':
ctx =
q = ctx.Queue()
p = ctx.Process(Target=foo,args=(q,))
p.start()
print(q.get())
print(q.get())
print(q.get())
p.join() | UTF-8 | Python | false | false | 275 | py | 48 | wprocess2.py | 47 | 0.512727 | 0.505455 | 0 | 15 | 17.4 | 41 |
Vignesh-Nswamy/DCGAN | 9,363,028,716,828 | e2da6df104467dd214f47d4c7af3584fcb629aa5 | 9cbf0fbe160663cd4ede3afdf91bee54254f8369 | /models/generator.py | 1dc62ccf0b95d5b3c6054d1d966843d8da191910 | [] | no_license | https://github.com/Vignesh-Nswamy/DCGAN | fa8086982e2e875b8efed4ae801064b822f179d1 | 6cb83ecec875453773557273b5cf47848ee5b9e4 | refs/heads/master | 2022-09-22T11:58:36.347796 | 2020-05-27T14:12:18 | 2020-05-27T14:12:18 | 241,244,915 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import tensorflow as tf
from tensorflow.keras.layers import Conv2DTranspose
from tensorflow.keras.layers import LeakyReLU
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Reshape
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import load_model
... | UTF-8 | Python | false | false | 2,555 | py | 8 | generator.py | 6 | 0.545205 | 0.530724 | 0 | 61 | 40.868852 | 103 |
dfreshreed/iron_bank | 12,137,577,607,037 | d9c75ba09843c1ba8f3e4f33c4cc75907f6e4223 | 13c5a979c34158e4f2a387ca0519715c4d4b71a4 | /bank_app/bank/admin.py | 0b2e10c122eda20a797a79580a505a1a02ddd07d | [] | no_license | https://github.com/dfreshreed/iron_bank | bc66dd8ff83110ea9b1e60bfeffd0a659ef41133 | 143b65b083bcbaa95c124291c55b66ce17855b76 | refs/heads/master | 2021-06-11T00:56:56.702086 | 2016-10-31T03:30:06 | 2016-10-31T03:30:06 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from bank.models import Transaction, Profile
# Register your models here.
admin.site.register([Transaction, Profile])
| UTF-8 | Python | false | false | 152 | py | 8 | admin.py | 5 | 0.809211 | 0.809211 | 0 | 5 | 29.4 | 44 |
hamidzr/kodi-extras | 1,864,015,843,533 | d270ea7341bfd8476d9faaccfe2149e2760008ba | 669cd831b30f29cd928042ca57d5c65d746cab44 | /playYtSearch.py | f1349f730eb1f4264f36338f8e4494f368d9c768 | [
"MIT"
] | permissive | https://github.com/hamidzr/kodi-extras | cf1128f92217e105b3aad8f5d227e66cf19a0090 | 3c3fd11ddcaa112080878ffc79d195fa88984f4f | refs/heads/master | 2022-12-13T17:06:34.604494 | 2018-08-09T13:59:21 | 2018-08-09T13:59:21 | 92,514,772 | 2 | 0 | MIT | false | 2022-12-08T02:24:13 | 2017-05-26T13:45:07 | 2018-11-11T17:29:16 | 2022-12-08T02:24:12 | 25 | 1 | 0 | 3 | Python | false | false | #!/usr/bin/env python3
from utils.kodiBasics import *
from utils.youtube import *
itemCount = int(sys.argv[1]) # number of results to add for each search query
for query in sys.argv[2:]:
# search youtube and create a list of urls
searchResultsJson = ytSearch(query);
urls = []
for idx, res in enumerat... | UTF-8 | Python | false | false | 806 | py | 13 | playYtSearch.py | 11 | 0.609181 | 0.604218 | 0 | 26 | 30 | 101 |
Bkdeets/FOREX-Trading | 4,200,478,044,869 | a98dc792bf33011f3bc09d3c4829a48d879f7b0d | c9908a61d12ea90c2681199f93e2e14250a3b6ce | /Trade.py | 9b904338451e8a857af090c288ea9288551d1c30 | [] | no_license | https://github.com/Bkdeets/FOREX-Trading | 5fc1427dfcea337641b186797ef73fa48f5659b2 | 56add2075b43ca52456c56395cb4ed4e966697b5 | refs/heads/master | 2020-04-04T18:03:50.599322 | 2019-01-27T18:48:38 | 2019-01-27T18:48:38 | 156,148,330 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class Trade:
isOpen = False
isLong = False
isWin = False
entryPrice = None
exitPrice = None
startIndex = 0
endIndex = 0
pctChange = 0
def __init__(self, startIndex, endIndex=0, isOpen=False, isLong=False, entryPrice=None, exitPrice=None):
self.isOpen = isOpen
self... | UTF-8 | Python | false | false | 2,692 | py | 30 | Trade.py | 27 | 0.608098 | 0.605869 | 0 | 109 | 23.66055 | 108 |
jojojoseph94/lc-practice | 16,690,242,949,250 | fe7426fb9946643b46cb0739aa4538c7d3b09f3f | 31b0a4b3dd26e5efe48950a7ef5a4876f6e5bef2 | /strings/Candy Crush.py | 9dcedf9cf5589fb4019e2935bb0b2a27713b0282 | [] | no_license | https://github.com/jojojoseph94/lc-practice | 2355a9e21ee353b39a5419593061ec04c10f841b | f61d1573c8963b8b813c662a6c1ef4f7dda64146 | refs/heads/main | 2023-02-16T06:16:15.912965 | 2021-01-08T07:32:30 | 2021-01-08T07:32:30 | 320,364,262 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
This question is about implementing a basic elimination algorithm for Candy Crush.
Given a 2D integer array board representing the grid of candy, different positive integers board[i][j] represent different types of candies. A value of board[i][j] = 0 represents that the cell at position (i, j) is empty. The given ... | UTF-8 | Python | false | false | 4,070 | py | 66 | Candy Crush.py | 65 | 0.473464 | 0.411302 | 0 | 90 | 44.233333 | 406 |
acid-n/GeekBrains | 326,417,547,343 | 3d714565a9f57d8e87deba93fb121294fe3cea68 | 066f2d36f8406212d0ce6adeb78042766c39007e | /Messenger/part_2/lesson_2/logs/config_client_log.py | 7419f7d63fd596c6f6beef971b4fbdb1395ffb9b | [] | no_license | https://github.com/acid-n/GeekBrains | c919b3d4f7a72718f30f08f6c72b26122193b535 | bc66f411104ff34dbb912ebcdc383bed9a0a7ba5 | refs/heads/master | 2021-07-10T23:03:21.691131 | 2021-03-09T14:00:45 | 2021-03-09T14:00:45 | 233,423,738 | 0 | 0 | null | false | 2021-03-20T03:15:47 | 2020-01-12T16:37:39 | 2021-03-09T14:01:04 | 2021-03-20T03:15:47 | 17,334 | 0 | 0 | 1 | Python | false | false | # Конфиг клиентского логгера
import sys
import os
import logging
from logging.handlers import TimedRotatingFileHandler
sys.path.append('../')
from common.variables import LOGGING_LEVEL
# Настраиваем формат логов
CLIENT_FORMATTER = logging.Formatter('%(asctime)s - %(levelname)s - %(filename)s - %(message)s')
# Занос... | UTF-8 | Python | false | false | 1,327 | py | 219 | config_client_log.py | 146 | 0.764388 | 0.76259 | 0 | 37 | 29.054054 | 96 |
XiaoxuanHEI/Link_Invalidation | 17,841,294,160,355 | 77030c85b5fdcedae40c9c6bc49b5225bb79ff4c | 40126990d5560b6ea2e325bc73e3bb5666cf87e6 | /main.py | 23c637bcec30edac80e425bc7e27f90e990250b8 | [] | no_license | https://github.com/XiaoxuanHEI/Link_Invalidation | 6d9a5646af9ecc1d943cadb7cc7f8a45724a34f4 | e9d4742e74e19c14f35a7e5e1621e4e03610ca25 | refs/heads/master | 2022-11-04T07:30:57.960346 | 2020-06-15T22:24:28 | 2020-06-15T22:24:28 | 272,555,994 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from ontology import Ontology
from measures import changeBirthDate
from measures import changeGender
from measures import changeReligion
if __name__ == '__main__':
refalignrdfToTsv = True
source = Ontology("data/000/onto.owl")
target = Ontology("data/001/onto.owl")
subjList = source.uniqueSubjects... | UTF-8 | Python | false | false | 795 | py | 3 | main.py | 3 | 0.605031 | 0.593711 | 0 | 32 | 23.8125 | 73 |
NasSilverBullet/NumPy-training | 10,814,727,692,187 | 19ffcd42f3840b2fdf99ea2436cfdf9fba8704cd | 29426a9177d3159e55c7cf31d91a6464f4a4c2be | /script/day1.py | 92088f916a0c23a3c806902ac970677e544fd7dc | [] | no_license | https://github.com/NasSilverBullet/NumPy-training | 22d9543c9f93cfabac2704d6404bbe93c5a1d2b1 | 1946de79dd4c952f47480a8b835152c3d1ace6e5 | refs/heads/master | 2020-04-10T00:39:06.816883 | 2018-12-15T12:58:56 | 2018-12-15T12:58:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
print(np.__version__)
np.show_config()
Z = np.zeros(10)
print(Z)
Z = np.zeros((10, 10))
print(f"{Z.size * Z.itemsize} bytes")
Z = np.zeros(10)
Z[4] = 1
print(Z)
Z = np.arange(10, 50)
print(Z)
Z = np.arange(50)
Z = Z[::-1]
print(Z)
nz = np.nonzero([1, 2, 0, 0, 4, 0])
print(nz)
Z = np.eye(3)
p... | UTF-8 | Python | false | false | 593 | py | 3 | day1.py | 2 | 0.576728 | 0.50253 | 0 | 43 | 12.790698 | 62 |
devilfishcn/tornado | 16,398,185,144,773 | ef0ddf75101784ccaae01cf7ef832fdbe3397663 | b0cd39db083ff345a7959571441806f23f4c5459 | /redirect.py | bb4f12f61f3b770b863d3901a27423d5daa6a1d7 | [] | no_license | https://github.com/devilfishcn/tornado | 97d9cf60cc06dbbf6d12d87bb3c0ecd2f4e7adda | 4321393a66a8aa02b4522c386fba4cf7d6872e51 | refs/heads/master | 2021-09-01T09:34:28.647296 | 2017-12-26T08:13:17 | 2017-12-26T08:13:17 | 108,522,971 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
name = self.get_argument('name')
self.write(name)
self.write('\n')
age = self.get_argument('age')
self.write(age)
self.write('\n')
self.redirect('/maint')
... | UTF-8 | Python | false | false | 681 | py | 11 | redirect.py | 10 | 0.578561 | 0.563877 | 0 | 27 | 24.259259 | 47 |
kjaeschwartz/pygubuapp | 12,841,952,262,758 | 69013ef1d6214d5e41b12f39bd6a7cec071e6261 | 2aed28602825c7254e9f59c4a0e1d1d7a60944ed | /pyautoguiADVANCEDv3.py | e2250303fc77e33b52ed49ccfa615ba0346b905b | [] | no_license | https://github.com/kjaeschwartz/pygubuapp | a52a4c9aa3f89db44511e593d053025f1dba390a | 4d5b6a687daf61a758702b2c7af10ffdabe02397 | refs/heads/main | 2023-07-26T19:32:43.059351 | 2021-09-08T15:07:01 | 2021-09-08T15:07:01 | 404,389,737 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import time
import tkinter as tk
import tkinter.ttk as ttk
import webbrowser
from tkinter.scrolledtext import ScrolledText
from datetime import date
import datetime
import shutil
import openpyxl
import pyautogui
#start py running pygubu-designer.exe
import pygubu
PROJECT_PATH = os.path.abspat... | UTF-8 | Python | false | false | 30,387 | py | 17 | pyautoguiADVANCEDv3.py | 13 | 0.601408 | 0.565011 | 0 | 516 | 56.893411 | 147 |
songyw0517/Diary | 19,069,654,814,345 | c3da3b352d2c2837e15664d4edb56159ccf433d2 | 7bb4404a7f55e390980da44bcf6db357f3e65b9a | /DB/database_management.py | efef70b5a1db3ae70a40bc7b7e2b3779336869bf | [] | no_license | https://github.com/songyw0517/Diary | 98444f1913131fa7a718172a1aaf98b1335e5afb | 8ab9b9ac00becb2c2a9dd320d9ab978b6b411860 | refs/heads/master | 2021-01-05T02:58:50.988962 | 2020-07-22T07:58:16 | 2020-07-22T07:58:16 | 240,853,010 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import request
import pymysql
def login_validation(db, value):
with db.cursor() as cursor:
query = "SELECT ID FROM test_login WHERE ID=%s and PW=%s"
cursor.execute(query, value)
data = (cursor.fetchall())
cursor.close()
for row in data:
data = row[0]
... | UTF-8 | Python | false | false | 406 | py | 9 | database_management.py | 6 | 0.542714 | 0.540201 | 0 | 15 | 25.533333 | 65 |
djzwns/single-bungle-hwagok-imageprocessing | 6,038,724,031,156 | 97b1d8b049ff422aeaedd75e6c237d2946b31409 | 31c160311463302f3dd714af3ff746e5f1c576de | /practice code/Code04-02 붓꽃 머신러닝 2(기학습된 모데 사용).py | 94fcf5cf7336f8005b517469ddfd5b7a58cf4755 | [] | no_license | https://github.com/djzwns/single-bungle-hwagok-imageprocessing | 3c86efef5d94426db20b74bc4e1349e1e9dfb416 | 3a7fe002f7336c25dd6a26a5c53c2b243afd7e58 | refs/heads/master | 2023-09-04T06:54:42.263919 | 2021-10-18T10:19:18 | 2021-10-18T10:19:18 | 415,910,164 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 기 학습된 모델(Pre-Trained Model)을 불러와서 예측하기
import joblib
clf = joblib.load("iris_150_KNN3_96.dmp")
myData = [4.8, 3.3, 1.3, 0.3]
result = clf.predict([myData])
print("이 꽃은 %s 입니다." % (result[0]))
| UTF-8 | Python | false | false | 237 | py | 43 | Code04-02 붓꽃 머신러닝 2(기학습된 모데 사용).py | 40 | 0.646154 | 0.569231 | 0 | 7 | 26.857143 | 41 |
JoseRivas1998/Snake-pygame | 16,982,300,707,782 | 95a47481ee5e3b1134d5d1e19de7118f5e032bdb | e1a6082207c7b16637479ffea69ad7074ec36f69 | /app.py | 73cc6166d6a07083f6144394ec3443d4252286af | [] | no_license | https://github.com/JoseRivas1998/Snake-pygame | d6d8ac247016b91ad2accfbe1dcbd811a283c8e3 | e22dee003c0c1f52aa8b0a9cfe4658431c1599e0 | refs/heads/master | 2020-07-01T10:44:35.903962 | 2019-08-08T05:20:28 | 2019-08-08T05:20:28 | 201,151,104 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import Tuple
import pygame
from pygame.surface import Surface
from gamestatemanager import GameStateManager
from gamestatetype import GameStateType
from input import MyInput, MyInputProcessor
# CONSTANTS
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
class App:
size: Tuple[float, float]
running: bool... | UTF-8 | Python | false | false | 1,873 | py | 17 | app.py | 16 | 0.609717 | 0.596903 | 0 | 68 | 26.544118 | 66 |
maxvonhippel/S3CAMX | 15,307,263,477,307 | fa80bc176c8ff96360925bd71290da0b51a15cd8 | e4fb5d5b74926250f6730bfa3995e52ea55e4dc4 | /src/configparser.py | 5f39d39366a51bf9f8984998f999f82b4e06b5ce | [
"BSD-2-Clause"
] | permissive | https://github.com/maxvonhippel/S3CAMX | 7629225410eaae455148e7ec0512c9575829b17c | 03f63f84e6e1e18598edff52a901f669c2fee342 | refs/heads/master | 2022-12-07T09:44:14.519479 | 2016-06-21T05:21:27 | 2016-06-21T05:21:27 | 292,167,603 | 0 | 0 | null | true | 2020-09-02T03:20:25 | 2020-09-02T03:20:24 | 2020-01-22T06:05:39 | 2017-05-16T14:52:06 | 3,969 | 0 | 0 | 0 | null | false | false | #!/usr/bin/python
# -*- coding: utf-8 -*-
import logging
logger = logging.getLogger(__name__)
def parse_config(description_str):
output_dict = {}
# ##!!##logger.debug('parsing abstraction parameters')
# split the description into lines by breaking at "\n"
description_arr = description_str.splitlin... | UTF-8 | Python | false | false | 853 | py | 130 | configparser.py | 77 | 0.61313 | 0.608441 | 0 | 37 | 22.054054 | 70 |
haxmanster/Hornet2 | 1,099,511,676,427 | bef202eb186d2802b7360317a26641a5e8c3a298 | 0263bd70831758133ee317de39f59221d1338844 | /functions.py | 1f9b92d36b2828ab462da75dc1e118a06053f6d6 | [] | no_license | https://github.com/haxmanster/Hornet2 | c752748105c1a6743e0d773b165bcfb0dba210a1 | e2638749d46127f5043c6aeac66c2b503e2aadcc | refs/heads/master | 2022-12-11T05:30:15.613383 | 2019-06-14T15:05:57 | 2019-06-14T15:05:57 | 146,297,914 | 0 | 0 | null | false | 2022-12-08T02:52:35 | 2018-08-27T12:59:34 | 2019-06-14T15:13:39 | 2022-12-08T02:52:32 | 105,001 | 0 | 0 | 9 | HTML | false | false | import sqlite3
import hashlib
from flask import flash
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'jpg', 'png', 'jpeg', 'gif', 'doc', 'rar'}
def db_connect():
with sqlite3.connect("static/user.db") as db:
cursor = db.cursor()
cursor.execute('SELECT * FROM users, dzieci')
data = cursor.fetchall()
... | UTF-8 | Python | false | false | 2,067 | py | 13 | functions.py | 7 | 0.549855 | 0.53969 | 0 | 72 | 27.694444 | 100 |
Yuanmu93/ImgSpider | 18,107,582,140,755 | 05be7363e3830d86313bc33d9461a2a0f932eca0 | 6582678251e0430b55468afeda7c204dbfb6da43 | /jandanspiderB.py | b3dcce7e58dc68f06a3e13e2462612a52b39fed5 | [] | no_license | https://github.com/Yuanmu93/ImgSpider | 7883ba058081daaef28c5fa613993ed7b0440472 | 1c7cc7a9fddb455dbd8f9a166af604abd4af5ea5 | refs/heads/master | 2021-06-20T21:17:54.463642 | 2017-08-03T11:39:10 | 2017-08-03T11:39:10 | 94,325,322 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #CrawJandanSpider
import re
import os
import time
import threading
from multiprocessing import Pool, cpu_count
import requests
from bs4 import BeautifulSoup
import random
headers = {'X-Requested-With': 'XMLHttpRequest',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gec... | UTF-8 | Python | false | false | 2,517 | py | 2 | jandanspiderB.py | 1 | 0.558602 | 0.54271 | 0 | 101 | 23.861386 | 103 |
frank038/MFM2 | 10,909,216,957,270 | bba9163fd11dc19fd4f78a0fa949b8193763e3df | 15724a67370f79534311959b5a99657cf4ad94c4 | /mfm2/modules_menu/sz_extract.py | 5f5a3dc473693040cf8ef96bf562a80be29f53f4 | [] | no_license | https://github.com/frank038/MFM2 | 0b3209cfcc9a9c72fadd1b0f702733fc0a6642f4 | 2506095a967352f3d4ea49997ad110c308653e5d | refs/heads/main | 2023-07-01T12:42:48.006163 | 2021-08-03T09:54:31 | 2021-08-03T09:54:31 | 335,981,794 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
"""
module for extract compressed files also with password
"""
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Gio
import subprocess
import os
# 1 = on selected item(s); 2 = on background; 3 = both
mtype = 1
# this name appears in the menu
name = "Extract here..."
... | UTF-8 | Python | false | false | 6,596 | py | 29 | sz_extract.py | 25 | 0.57641 | 0.566859 | 0 | 181 | 35.441989 | 153 |
archeranimesh/python_devu_in | 8,461,085,620,902 | ec614fd33e69be6bb0cfaeebf90a8f872f40a3db | 180ed6c8ff26b365e56c63d878a69c2e9d9b8c54 | /code/practice/12_square.py | 79bb348be9fc9bbe64dad2602f01c3c130cf3a4f | [] | no_license | https://github.com/archeranimesh/python_devu_in | 9af46503b07f82a137d4b820920fa72f96a5067b | 3d77e9e7b150aae15375b236e3de7f573da4bdce | refs/heads/master | 2020-06-08T21:22:24.329530 | 2019-07-14T11:22:55 | 2019-07-14T11:22:55 | 193,308,932 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # WAP to get a dict of letters and their count from a given word.
def squares(sides):
return sides ** 2
print(squares(30))
| UTF-8 | Python | false | false | 131 | py | 41 | 12_square.py | 35 | 0.687023 | 0.664122 | 0 | 8 | 15.375 | 65 |
MaddTheSane/dim3 | 3,487,513,477,853 | 9fbce5bda8a2bbd0bf3204cb5809b5f379b7821f | 828214bbbfacf7e8d9702db2a9da1aafdff5d285 | /unixBuild/SConstruct | dcabf90c7d9e58ac47f047709ee37848162cb5eb | [] | no_license | https://github.com/MaddTheSane/dim3 | fb347c09e025decd702b89e826b48723fdcd67ca | 17d8f06b0e554fbb2b4e927231938a3412b97823 | refs/heads/master | 2020-04-13T22:21:22.353678 | 2018-12-29T05:24:35 | 2018-12-29T05:24:35 | 163,477,051 | 1 | 0 | null | true | 2018-12-29T04:54:16 | 2018-12-29T04:54:16 | 2018-10-11T09:17:34 | 2009-07-10T17:14:24 | 26,688 | 0 | 0 | 0 | null | false | null | import os, string
env = Environment()
env.Append(CCFLAGS = ['-Wall', '-W', '-Wno-unused-parameter'])
env.Append(CPPPATH = ['/usr/local/include/SDL2','/usr/include/webkitgtk-1.0','/usr/include/freetype2','/usr/include/webkitgtk-1.0/JavaScriptCore'])
env.Append(CPPDEFINES = {'D3_PCH': 1})
env.Append(LIBS = [
'SDL2',... | UTF-8 | Python | false | false | 1,097 | 606 | SConstruct | 1 | 0.604376 | 0.578851 | 0 | 28 | 38.178571 | 154 | |
ryan22s/Python3 | 15,685,220,599,769 | aad3e8b64f1e28e7767c7104fbccac314a04593a | fadac33e94923f35229805c9b87fbcb837a5565c | /5.2.2.py | d58d734f254fed4e73f6e2d41b7095213d5f2858 | [] | no_license | https://github.com/ryan22s/Python3 | 9c4e5fafbff973e67ab414317139bd8655284624 | 8b2d7ecb22ec520ea0ea21bffd03572fadf3ab66 | refs/heads/master | 2020-03-24T06:31:23.006978 | 2019-07-24T18:11:19 | 2019-07-24T18:11:19 | 142,531,725 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | user_num = -1
while not user_num < 1:
user_num = user_num/2
print(user_num)
| UTF-8 | Python | false | false | 90 | py | 38 | 5.2.2.py | 38 | 0.566667 | 0.533333 | 0 | 5 | 16 | 25 |
tytx/BusFareCalculator | 15,693,810,533,367 | 02efd8a00bd4d8a1be9f926e78cd3c6ad2a315d1 | 43ac688e2c5754c9c0a6e2b24acf2dfa08b0ddfb | /admin.py | b39b2398b6cbb102d436440010fd7cc2392adab0 | [] | no_license | https://github.com/tytx/BusFareCalculator | 26abe59f30350932536938459f296d2a693b4fd3 | cf9388a55a73473482ec4b666e264dfa7e160b18 | refs/heads/master | 2020-06-29T05:28:18.502821 | 2017-12-12T10:32:48 | 2017-12-12T10:32:48 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from config import *
from sync_database import *
def admin():
while(True):
print("//----------admin----------//")
print("1.Ticket\n2.Discount\n3.Age Limits\n4.Exit")
admin_opt = check_input("enter the choice :", 3)
if (admin_opt == 1):
ret=get_source_dest()
... | UTF-8 | Python | false | false | 4,810 | py | 6 | admin.py | 5 | 0.454886 | 0.446362 | 0 | 93 | 50.612903 | 93 |
excellencemichel/progrk | 6,055,903,933,760 | 84c163a407c4b6d975acd28a61d9b51421410be0 | b0365a11976fc19e350ba3c448b2bc3720c3eb73 | /project/qt3/printerDialog.py | 24ba9a26fa56cd9b446c96e673cb62a49f9900ea | [] | no_license | https://github.com/excellencemichel/progrk | bd4e6797c21ed921ce4a3d75378ca752cece459d | e3144f78d9313ca9e2c836dcf53cf1bc4b3f10b8 | refs/heads/master | 2021-04-15T07:54:06.240231 | 2018-12-29T03:42:10 | 2018-12-29T03:42:10 | 116,013,431 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/python
#-*-coding:utf-8-*-
from PyQt5 import QtGui
from PyQt5.QtPrintSupport import (
QPrintDialog,
QPrinter,
QPrintPreviewDialog,
)
from PyQt5.QtWidgets import (
QApplication,
QMainWindow,
QPushButton,
QTextEdit,
)
class Window(QMainWindow):
"""
Cette classe nous montre qu'on peu... | UTF-8 | Python | false | false | 1,800 | py | 216 | printerDialog.py | 135 | 0.712535 | 0.682451 | 0 | 97 | 17.474227 | 69 |
fsundstedt-ff/ATP-JSON-Reader | 13,477,607,415,684 | 4a99732b0e96f93653fc0040843359f83de14306 | 8cff5800097926f5a08264ac92a800678ad97727 | /script-csv.py | 3b1f47f7b1a528ca7d24a194222c1154e3bb1889 | [] | no_license | https://github.com/fsundstedt-ff/ATP-JSON-Reader | 60c6b4cc4f6b90db7c6cf1a7067a6fbac9e4a482 | 7a8d3c539cf687f28343be7e311a7e3eb76e838c | refs/heads/main | 2023-03-03T13:51:34.099199 | 2021-02-10T22:52:26 | 2021-02-10T22:52:26 | 337,240,918 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
from parse_json import parseJSON
from utilities import dateString
# Opens input file selection window, parses JSON, and outputs as python array of arrays.
# Results are as follows: [[column titles],[data]]
results = parseJSON()
# Creates and writes output file as csv
with open(f"output-{dateString()}.csv",... | UTF-8 | Python | false | false | 442 | py | 4 | script-csv.py | 3 | 0.71267 | 0.708145 | 0 | 15 | 28.533333 | 88 |
BITCS-Information-Retrieval-2020/search-rattailcollagen1 | 18,124,762,006,064 | fa685bf5c0dcec5d2e6da78163bdbb5dd394349a | 4023900dfbebff3ebf9422472393c87ad5006188 | /ScienceSearcher/DatabaseAccess.py | c4731dfed476bea3f79256d1f278b890ba3ea6b5 | [
"MIT"
] | permissive | https://github.com/BITCS-Information-Retrieval-2020/search-rattailcollagen1 | b6a1b9af8e777b880699c25f394c4ad9d31999d0 | 2f8e52cde2b1ec825e6bac56428e3abd3e297b0e | refs/heads/master | 2023-02-13T08:21:59.826726 | 2021-01-17T02:11:12 | 2021-01-17T02:11:12 | 321,301,480 | 10 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymongo
import json
from pymongo.errors import BulkWriteError
class DatabaseAccess:
"""
DatabaseAccess
"""
DEFAULT_SERVICE_PATH = 'mongodb://127.0.0.1:27017'
DEFAULT_SERVICE_NAME = 'mongodb'
DEFAULT_COLLECTION_NAME = 'papers'
def __init__(self,
service_path=DE... | UTF-8 | Python | false | false | 6,222 | py | 19 | DatabaseAccess.py | 12 | 0.594881 | 0.588908 | 0 | 153 | 37.300654 | 114 |
ndmarinin/2021-1-MAILRU-SDET-Python-N-MARININ | 15,126,874,829,073 | 31389007ffad7ef39b5c18c4d67be4312e87a6e0 | ff9082f081e2aa737c53c3ed764bf99d50e1d2cb | /SDET-Python-homework-4/code/ui/locators/locators_android.py | 69007694a002427b71c831ee33e57653e3531537 | [] | no_license | https://github.com/ndmarinin/2021-1-MAILRU-SDET-Python-N-MARININ | d301873489f1d2a51dab263fee173365f82c83aa | c0b4605fac4512f1ae36a5a06892789b31139f72 | refs/heads/main | 2023-07-16T03:29:13.924090 | 2021-08-17T14:55:31 | 2021-08-17T14:55:31 | 351,865,567 | 0 | 0 | null | false | 2021-08-17T14:55:32 | 2021-03-26T17:45:19 | 2021-08-02T10:33:03 | 2021-08-17T14:55:31 | 24,891 | 0 | 0 | 0 | Python | false | false | from selenium.webdriver.common.by import By
from appium.webdriver.common.mobileby import MobileBy
class BasePageANDROIDLocators:
pass
class MainPageANDROIDLocators(BasePageANDROIDLocators):
ALLOW_BUTTON = (By.ID, 'com.android.packageinstaller:id/permission_allow_button')
KEYBOARD = (MobileBy.ID, 'ru.ma... | UTF-8 | Python | false | false | 1,898 | py | 53 | locators_android.py | 41 | 0.744409 | 0.744409 | 0 | 33 | 55.878788 | 96 |
nathanle89/geocoding-service | 4,303,557,256,862 | e21df12fba464c48ae88a966b1f6beb8007e7a6f | ae5ba5f9566ea8455a25f61794324a4cbfcd728b | /geocoding/app/views/helpers/custom_exceptions.py | 772758a5a1010978b013de23f1596c51987f27ae | [] | no_license | https://github.com/nathanle89/geocoding-service | 7290c08076b797574296b68b8d5d8d86a46ebcd5 | 6ded8175734bd4ff05ea93a2327e3550f7f35d70 | refs/heads/master | 2021-08-22T04:11:34.526244 | 2018-11-04T01:29:05 | 2018-11-04T01:29:05 | 155,804,387 | 0 | 0 | null | false | 2021-06-10T20:56:49 | 2018-11-02T02:38:06 | 2018-11-04T01:29:27 | 2021-06-10T20:56:49 | 37 | 0 | 0 | 4 | Python | false | false | from rest_framework.exceptions import APIException
class ServiceUnavailable(APIException):
status_code = 503
default_detail = 'Service temporarily unavailable, try again later.'
default_code = 'service_unavailable'
class ServerError(APIException):
status_code = 500
default_detail = 'Oops something... | UTF-8 | Python | false | false | 746 | py | 19 | custom_exceptions.py | 16 | 0.719839 | 0.699732 | 0 | 26 | 27.692308 | 72 |
neilmacintyre/Trends-in-Higher-Education | 18,339,510,365,758 | 713ff8ee3352b6042f52ce8ede430c759a58dee9 | faec5ac1ace7fd162faa10bc5b905c580de207f6 | /Parser/ClemsonDownloader.py | fdb46f9813dcbd3aab6f59ff9008e6ca318aeb24 | [] | no_license | https://github.com/neilmacintyre/Trends-in-Higher-Education | f7b33ce7ea79db225a3a63a226dec52dd2f65ba9 | 565373359142c0e04de50997a063bfc074234ef2 | refs/heads/master | 2020-07-18T19:58:12.527341 | 2019-09-22T18:29:39 | 2019-09-22T18:29:39 | 206,303,984 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
url_base = 'https://career.sites.clemson.edu/data_analytics/table_cmd.php?action=getCollege&year='
url_terminal = '&college=All&mode=false°_bac=true°_mas=true°_doc=true&csv=true'
start_year = 2009
end_year = 2016
for year in range(start_year, end_year):
# urls are of the format... | UTF-8 | Python | false | false | 639 | py | 28 | ClemsonDownloader.py | 24 | 0.643192 | 0.621283 | 0 | 17 | 35.705882 | 99 |
cavieres/Documents | 11,166,914,975,247 | c1705c631fe354e0a7165d3b0e28bdf72296eb79 | d8cfd1271434e943befe33a25c1f526fee953f99 | /ADP/adp.latamautomation.chile.expert/expert/pages/login_page.py | bb3b19be329c85f306803ea2abcf0104e4c442a6 | [] | no_license | https://github.com/cavieres/Documents | 6fa3249d5db5b140602b354b159b652563e454fc | 4d8e8547af738c89d3b9945b34c7a05531b8c303 | refs/heads/master | 2021-01-20T08:10:18.445173 | 2019-03-20T02:06:05 | 2019-03-20T02:06:05 | 90,109,077 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from expert.catalogs import login_catalog
from scriptize.components.page_element import PageObjects
class LoginPage(PageObjects):
"""
La clase 'LoginPage' es responsable por la interacción con los componentes de la página de login_action.
"""
def click_desplegar_cuenta(self):
"""
clic... | UTF-8 | Python | false | false | 2,490 | py | 242 | login_page.py | 143 | 0.640468 | 0.640468 | 0 | 73 | 32.986301 | 108 |
OutlierLi/Python_Mooc_Code | 12,678,743,474,948 | 1b0473d40a1da3659a20e0ffd591d3bf28dcc7f8 | 7bc4186d790ec4402063ee5cf0678290f4c3d6d3 | /8、正则表达式与JSON/c10.py | bb74b261b247d3819da79f811886fb6262e41d0a | [] | no_license | https://github.com/OutlierLi/Python_Mooc_Code | 240be1547aa02987cf8b22f198b25af21d5a8f6b | 4cff0cb70b3aef023ddcbfeee9d640cb6d6c43f8 | refs/heads/master | 2023-03-04T02:53:00.442464 | 2021-02-16T10:02:27 | 2021-02-16T10:02:27 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
s = 'life is short, i use python'
r = re.search('life(.*)pyth(\w)n', s)
print(r.group(0))
print(r.group(1))
print(r.group(0,1)) # 返回是一个元组
print(r.groups())
# r = re.findall('life(.*)pyth(.)n', s)
# print(r) # 列表中的一个元组
| UTF-8 | Python | false | false | 263 | py | 68 | c10.py | 67 | 0.600858 | 0.583691 | 0 | 11 | 19.909091 | 39 |
kailashbuki/predator | 8,933,532,015,428 | 5e0635278a2372edea77c8ff9bb01228b4cf6e4d | be3c008ee5ab918efa5cccee6a55e3c37e7ce370 | /installed/webserver/views/contrib/validating.py | f7aa5e2ddac3cc3900b82935f6b12a63f2d19ea3 | [
"MIT"
] | permissive | https://github.com/kailashbuki/predator | 611526f0ca3fd0826ac1af05bba8751fe53e5042 | f9e702e821858ed1cb3f53dd47d01c0c6979e8bc | refs/heads/master | 2022-02-15T01:33:06.703315 | 2022-02-01T18:48:27 | 2022-02-01T18:48:27 | 2,400,498 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | def is_valid_file(filename):
if filename.endswith('.pdf'):
return True
return False
| UTF-8 | Python | false | false | 101 | py | 52 | validating.py | 40 | 0.633663 | 0.633663 | 0 | 4 | 24 | 33 |
Elnurhan/python-oop | 5,944,234,787,211 | 3b124963e22a6a4d5f8b93c03424700b47682924 | 8ef5c5248b9c50443f8be944449f1b968ba3809e | /week4/chain_of_responsobility/ex1.py | 4f365deaae1c98a65d481518c0e1776b898ae083 | [] | no_license | https://github.com/Elnurhan/python-oop | b8c8a0a08f3209a303425f76b73e358a135164a9 | 2b8c807c1f4d57b9065b1f80c734df87197dbab4 | refs/heads/master | 2022-06-13T20:57:26.165056 | 2020-05-09T17:47:50 | 2020-05-09T17:47:50 | 261,805,968 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Character:
def __init__(self):
self.name = "Arg"
self.xp = 0
self.passed_quests = set()
self.taken_quests = set()
def add_quest_speak(char):
quest_name = "Поговорить с фермером"
xp = 100
if quest_name not in (char.passed_quests | char.taken_quests):
print(f... | UTF-8 | Python | false | false | 2,268 | py | 2 | ex1.py | 2 | 0.631779 | 0.627022 | 0 | 75 | 27.026667 | 73 |
RumenKotsew/PythonPlayground | 2,774,548,921,250 | 68de7e9cd0b3fea74d852f0639aaefba5b7961cb | 514cf12e403ca2dadb1dd9c6166576329ac98eed | /MoneyInTheBank/money_in_the_bank/sql_manager.py | cbb941e1d76d18988786c269bea41a189121d95c | [] | no_license | https://github.com/RumenKotsew/PythonPlayground | 7b2331a740048e3162209c6826880a0469a17ee1 | 81086d56b27d4c6b7efb3470502f173fd184f4de | refs/heads/master | 2021-01-12T18:16:16.105391 | 2017-10-22T19:23:02 | 2017-10-22T19:23:02 | 71,358,417 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
from datetime import datetime
from client import Client
from decorators.login import strong_password, hash_password
from exceptions import PasswordNotStrongEnoughException, UserAndPasswordDontMatchException
conn = sqlite3.connect("bank.db")
cursor = conn.cursor()
def create_clients_table():
creat... | UTF-8 | Python | false | false | 2,686 | py | 48 | sql_manager.py | 48 | 0.655622 | 0.65041 | 0 | 79 | 33 | 150 |
omar-Fouad/3D_scene_rec_CNNs | 11,201,274,731,602 | 2aa22daae4414b82d62ed4f1ca7eb5590e02e268 | de967d28501ecbebbbe19e1d1165462303f73d37 | /utils.py | 2e3327a673ef0be9ea98dd07f1de1ca339eb8ea3 | [] | no_license | https://github.com/omar-Fouad/3D_scene_rec_CNNs | 1cbf051f548aba7a6622475238b26ab75001b80c | dfb1db57b6f9eaa98eba14c5f48f1ebf3c6a9d2d | refs/heads/master | 2020-07-07T04:53:42.195257 | 2019-05-13T21:03:29 | 2019-05-13T21:03:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
import cv2
import numpy as np
from torchvision import transforms
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from colormap import rgb2hex
HEIGHT = 320
WIDTH = 320
CLASSES = {0: "invalid", 1: "flat", 2: "constructions", 3: "street furnitures",
4: "vegetation", 5: "sky... | UTF-8 | Python | false | false | 6,742 | py | 3 | utils.py | 2 | 0.560664 | 0.521507 | 0 | 198 | 33.050505 | 103 |
VirtusLab/git-machete | 7,662,221,692,703 | 9559c0473be51c12e8b11b2469b8b07e917f7534 | 9071dc219693bde591ad12fb31c43c635f3a3f5e | /tests/test_add.py | 3eb5950be3b4f2bf2102e6df40260e37051c6f15 | [
"MIT"
] | permissive | https://github.com/VirtusLab/git-machete | 67f51e49d44601daee4cc40fa27de87ecc029af6 | dca261b0f8c56edb65557d178321a21177872b05 | refs/heads/master | 2023-08-17T07:58:32.883018 | 2023-08-12T14:52:48 | 2023-08-12T14:52:48 | 122,743,101 | 711 | 45 | MIT | false | 2023-09-08T07:39:27 | 2018-02-24T13:32:07 | 2023-09-06T12:31:25 | 2023-09-08T07:39:26 | 4,404 | 721 | 39 | 74 | Python | false | false | from pytest_mock import MockerFixture
from .base_test import BaseTest
from .mockers import (assert_failure, assert_success, mock_input_returning,
mock_input_returning_y, rewrite_branch_layout_file)
class TestAdd(BaseTest):
def test_add(self, mocker: MockerFixture) -> None:
(
... | UTF-8 | Python | false | false | 6,323 | py | 211 | test_add.py | 118 | 0.555907 | 0.555433 | 0 | 176 | 34.926136 | 124 |
xghjbvvg/economic-analysis | 3,341,484,590,422 | 479979c3ee3ac19eba9d3cd6bbfe068a6ef2cac1 | ac787253b4b44c91afefb5e630281d37ca5c5e8d | /main/dto/userDto.py | d19d05a215ea1a709dcbbc70e0781a3a5c71d09f | [] | no_license | https://github.com/xghjbvvg/economic-analysis | 14f3e580f433583ff57dc77def38e9561d8eb02b | 197ad32148acbd9a7fe1d6a7dc39e02de821dc70 | refs/heads/main | 2023-01-13T13:15:23.648461 | 2020-11-28T13:06:27 | 2020-11-28T13:06:27 | 311,667,694 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import OrderedDict
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
Base = declarative_base()
class UserDto(Base):
# def __init__(self, id, name, password):
# self.id = id
# self.name = name
# self.password = password
... | UTF-8 | Python | false | false | 609 | py | 16 | userDto.py | 15 | 0.607553 | 0.600985 | 0 | 18 | 32.833333 | 55 |
js345/AutomaticQA | 11,407,433,149,437 | b13a20dccb30a7682d23641cbc1e598872d3017e | ed28b14733e6f4dd5b923da9beb9b6517fd8780b | /main.py | 101711d9298dad692a7664182e0e4ce45999ffe5 | [
"MIT"
] | permissive | https://github.com/js345/AutomaticQA | dfcc3a75e691b75d206e5d63323cb8d86d2bdba5 | 4552a63e01c0d521f93159baacc0cff5f525d595 | refs/heads/master | 2020-06-21T13:51:27.766513 | 2016-12-14T04:16:20 | 2016-12-14T04:16:20 | 74,786,121 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
AutomaticQA main
Created on 11/25/16
@author: xiaofo
'''
from src.AutomaticQA import AutomaticQA
from util.Dataloader import load
from util.PrintFunctions import show_relevant_questions
path = 'data/QueryResults.csv'
data = load(path)
automaticQA = AutomaticQA(data, 50)
#automaticQA.train()
#automaticQA.save_inf... | UTF-8 | Python | false | false | 584 | py | 13 | main.py | 11 | 0.782534 | 0.758562 | 0 | 24 | 23.333333 | 86 |
doutriaux1/uvcdat | 9,474,697,867,007 | 1b403f6a97d0e81d1ac6a5c5e2fea0c09483c403 | 638af6b8c580eeae23fc1034882c4b514195137a | /Packages/vcs/Lib/textcombined.py | 4286b951afc246588c5f41f2c621bb9c97c6c9d5 | [] | no_license | https://github.com/doutriaux1/uvcdat | 83684a86b514b8cac4d8900a503fc13d557fc4d2 | 37e9635f988696c346b4c3cdb49144d1e21dab5d | refs/heads/master | 2021-01-17T07:57:22.897539 | 2015-02-02T22:52:12 | 2015-02-02T22:52:12 | 14,878,320 | 1 | 0 | null | true | 2015-02-19T20:54:25 | 2013-12-02T23:44:46 | 2015-02-02T22:52:25 | 2015-02-19T20:54:25 | 291,913 | 0 | 0 | 0 | C | null | null | import vcs
# Adapted for numpy/ma/cdms2 by convertcdms.py
"""
# Text Combined (Tc) module
"""
###############################################################################
# #
# Module: textcombined (Tc) module ... | UTF-8 | Python | false | false | 31,346 | py | 1,284 | textcombined.py | 685 | 0.458272 | 0.450871 | 0 | 673 | 45.576523 | 125 |
nunezpaul/MNIST | 2,216,203,176,232 | 17dcbcf5ac106ba77a5176a8ed1d65ecd5985489 | ea9b8da85febe980d9155f8799d5dd4abd15bad8 | /MoS_model.py | 7a5e8ca9bcd3bef99d80765b239feb2d1e28e49d | [
"MIT"
] | permissive | https://github.com/nunezpaul/MNIST | e18406b9a3df822975738b5b96435b467dd2b373 | 6d6accb80a2c1614fee93515c38f88c849937c01 | refs/heads/master | 2020-03-29T01:28:11.128460 | 2019-01-27T00:38:56 | 2019-01-27T00:38:56 | 149,391,035 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tensorflow as tf
from basic_model import BasicModel, TrainLoss, TrainRun
from cnn_model import CNNModel
from config import Config
class MOSModel(CNNModel):
def __init__(self):
super(MOSModel, self).__init__()
self.num_components = 3
self.name = 'MoS'
self.dense_mixture_weig... | UTF-8 | Python | false | false | 3,951 | py | 8 | MoS_model.py | 7 | 0.641863 | 0.633257 | 0 | 90 | 42.9 | 120 |
git-disl/LRBench | 10,780,367,948,258 | 1d5075563ec8fb1a572f40f71a08c4071a16319d | 6473994584abcd49c775f30ec0311b2338002e8e | /LRBench/database/DBDriver.py | 53599255eddad0538109a63fd5c07cbdf7460b98 | [
"Apache-2.0"
] | permissive | https://github.com/git-disl/LRBench | e045e50bb2a81caec18be597ca85f129b82a6a2f | c1e541b48bf1b48a34f401dbbe7db96c2c6de7a4 | refs/heads/master | 2023-05-27T19:24:28.099679 | 2023-05-19T18:18:47 | 2023-05-19T18:18:47 | 201,529,964 | 16 | 2 | null | false | 2023-05-19T18:12:24 | 2019-08-09T19:37:58 | 2023-03-23T04:29:13 | 2023-05-19T18:12:23 | 11,532 | 18 | 1 | 0 | Python | false | false | # DeepLR Database Module
class DBDriver(object):
def __init__(self, _dbName, _dbUser, _dbAddr, _dbPasswd):
self.__dbName__ = _dbName
self.__dbUser__ = _dbUser
self.__dbAddr__ = _dbAddr
self.__dbPasswd__ = _dbPasswd
self.__dbStatus__ = 'init'
self.__dbCursor__ = None
... | UTF-8 | Python | false | false | 720 | py | 48 | DBDriver.py | 31 | 0.606944 | 0.606944 | 0 | 26 | 26.692308 | 61 |
MinhNghiaD/Smart_building | 2,216,203,134,111 | 29149742dc54fe0d89347d50690fe97693ebe845 | 110dc86ca5869f359593e6aade349e63fcd77f52 | /ThingAdaptor/mqtt_adapter.py | 4cac0d5292ace584cf06aa66682c143a1f705616 | [] | no_license | https://github.com/MinhNghiaD/Smart_building | 7d05f0dee8db0e54f313de4386133cd12fa056d3 | 83604e593215c853d8d7e12721f9460220ee6bc4 | refs/heads/master | 2020-04-11T18:52:43.978724 | 2019-06-17T19:36:51 | 2019-06-17T19:36:51 | 162,014,804 | 1 | 0 | null | false | 2019-01-10T07:33:18 | 2018-12-16T15:30:33 | 2018-12-16T15:43:14 | 2019-01-10T07:33:18 | 12 | 0 | 0 | 0 | C++ | false | null | import paho.mqtt.client as mqtt
import threading
import time
def on_connect(client, userdata, returnCode):
if returnCode == 0:
self.client.connected_flag = True
print("connected")
else:
print("bad connection, return code: {}".fromat(returnCode))
def on_disconnect(client, userdata, retu... | UTF-8 | Python | false | false | 3,528 | py | 18 | mqtt_adapter.py | 5 | 0.663265 | 0.659864 | 0 | 96 | 35.75 | 129 |
sn94/learn-python | 1,322,849,940,086 | f2ced38eda7054f44a56ad874342fe3b7c473059 | fa7ad04e29325c69a49a8cf068f144f6eacb1e91 | /VC/image-proccesing/image-treatment/canal_rojo.py | 4fbc59ee9cb566a7c0d467f879216c98c13e64e9 | [] | no_license | https://github.com/sn94/learn-python | d9ac60ffa1d9e95b81285efb5415bc6b53ff3f40 | aadcdb82208497e615ed3d3cbf87d727c2fd3281 | refs/heads/master | 2020-03-23T02:48:07.149647 | 2018-12-09T01:15:51 | 2018-12-09T01:15:51 | 140,992,842 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from scipy import misc
import numpy as np
face= misc.imread( '../../imagenes/Fruit/pera/260px-Pera.jpg' )
#np.set_printoptions( threshold= np.NaN)
print( face[:,:,2] ) | UTF-8 | Python | false | false | 172 | py | 70 | canal_rojo.py | 50 | 0.686047 | 0.662791 | 0 | 7 | 23.714286 | 65 |
leblowl/terraform-example | 13,743,895,364,125 | da984957be383e1c927ab6f129c87b52d105d1f5 | 74738a6d6f4c371e6c6b068ba8328d8c3d455d82 | /update-circleci-env.py | 5de8f58ca7546cc7b7419454f347fc031ef47b09 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | https://github.com/leblowl/terraform-example | 4f754d2fcdd06db82e80deeae37c13bf30600ee5 | fa166659078284f9b8bbd4bc0a2c9bd43431b5ba | refs/heads/master | 2021-05-01T03:23:41.170471 | 2016-10-27T12:33:54 | 2016-10-27T12:33:54 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import requests
import argparse
import json
import yaml
address = "https://circleci.com/api/v1.1/project/github/xxx"
def set_env_var_for_project(token, project, name, value):
api_request = "{}/{}/envvar?circle-token={}".format(address, project, token)
var = {'name': name, 'value': valu... | UTF-8 | Python | false | false | 995 | py | 104 | update-circleci-env.py | 30 | 0.641206 | 0.639196 | 0 | 33 | 29.151515 | 102 |
pomodorox/forch | 7,095,285,990,130 | 24ccf30c3670335117c089b655083c503bb41cf4 | a1b97d8b702d466fd0e1fbf8b66243de24f73b4a | /forch/device_report_server.py | 8ded668364865cb3e824218b1de82525066d8238 | [
"Apache-2.0"
] | permissive | https://github.com/pomodorox/forch | a1ae7bcd4e007bee696ac20062b88fb0261a9663 | 13816a4b29b34cb6e6994c22f2f3b35b7ba7e482 | refs/heads/master | 2023-07-20T02:18:07.187923 | 2021-05-11T05:09:53 | 2021-05-11T05:09:53 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """gRPC server to receive devices state"""
from concurrent import futures
from queue import Queue
import threading
import grpc
from forch.base_classes import DeviceStateReporter
from forch.utils import get_logger
import forch.proto.grpc.device_report_pb2_grpc as device_report_pb2_grpc
from forch.proto.shared_constan... | UTF-8 | Python | false | false | 6,134 | py | 12 | device_report_server.py | 8 | 0.621128 | 0.618357 | 0 | 165 | 36.175758 | 97 |
wangkai111/supermarket | 13,091,060,353,944 | 18520aef84fd623661f96d6f9e00ccf2ed307aa9 | dbbbc7adc2973acdd0825b7958dc3c3403435807 | /market/apps/order/migrations/0001_initial.py | 9f6fcb03404cf5d82484f615aa14256cfc7784c7 | [] | no_license | https://github.com/wangkai111/supermarket | 56f8ab68d785a791b6854dc031aae054e201151d | e795a2f5012be1fb72fa98aef8577e1f321140af | refs/heads/master | 2020-04-07T04:34:45.333666 | 2018-12-17T07:54:02 | 2018-12-17T07:54:02 | 158,058,367 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-30 19:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Transpor... | UTF-8 | Python | false | false | 1,171 | py | 39 | 0001_initial.py | 28 | 0.559428 | 0.541555 | 0 | 32 | 33.96875 | 114 |
eronekogin/leetcode | 7,146,825,604,182 | 0b13f52ce0f50c4612220180ffd66324276696a9 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2021/insufficient_nodes_in_root_to_leaf_paths.py | 86fa1ce095421fb2f3e2133ab5e106814fdc6ca2 | [] | no_license | https://github.com/eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | false | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | 2021-09-09T12:04:01 | 2021-09-09T12:03:58 | 3,671 | 0 | 0 | 0 | Python | false | false | """
https://leetcode.com/problems/insufficient-nodes-in-root-to-leaf-paths/
"""
from test_helper import TreeNode
class Solution:
def sufficientSubset(self, root: TreeNode, limit: int) -> TreeNode:
if not root.left and not root.right: # A leaf node.
if root.val < limit:
retur... | UTF-8 | Python | false | false | 755 | py | 1,456 | insufficient_nodes_in_root_to_leaf_paths.py | 1,454 | 0.618543 | 0.618543 | 0 | 26 | 28.038462 | 76 |
TravisN959/Rally | 16,441,134,823,297 | a7f13053247e2c13117a90b3d7caddfd1043b74d | 2ebea0cff7136f8d811b621c4df9dafaead097ee | /accounts.py | a4d9063a4bde36a82cd058b8a2f7179291c195d7 | [] | no_license | https://github.com/TravisN959/Rally | 290255efd26d31f4cd846ffc6fd2d09f8206a227 | 68d6ba9c5a048995c709982932af3818b0e5c7db | refs/heads/main | 2023-03-04T06:06:56.258504 | 2021-02-20T00:40:14 | 2021-02-20T00:40:14 | 339,605,626 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pymongo
import mongoKEYS
client = pymongo.MongoClient(mongoKEYS.getKEY())
# from boto.s3.connection import S3Connection
# client = S3Connection(os.environ['MONGO_KEY'])
database = client["Rally"]
collection = database["AccountLogin"]
def checkDuplicateUsername(username):
query = {
"username" : user... | UTF-8 | Python | false | false | 870 | py | 20 | accounts.py | 7 | 0.63908 | 0.631034 | 0 | 38 | 21.894737 | 56 |
alvinwan/Puhjiii | 14,980,845,943,721 | 24b7ee30907f2ca55ea786087eac044a52cfa365 | 028ef598a1da5e865691db12a92a7e894d6a20ed | /server/__init__.py | 5c1c8bea10d9478b789f64fb259724a2ddf75620 | [] | no_license | https://github.com/alvinwan/Puhjiii | e051b39f236525cb8e3cfbdc24fe4bb243708996 | bf633015fe13a7a60cd1137b16b8d2cec6b09d39 | refs/heads/master | 2021-01-22T09:47:55.058092 | 2015-07-10T17:49:43 | 2015-07-10T17:49:43 | 37,454,548 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask
from flask_mongoengine import MongoEngine
from flask_login import LoginManager
from flask_bcrypt import Bcrypt
from flask_kvsession import KVSessionExtension
from simplekv.db.mongo import MongoStore
from simplekv import KeyValueStore
import config
# Create and name app
app = Flask(__name__,
... | UTF-8 | Python | false | false | 1,316 | py | 107 | __init__.py | 68 | 0.783435 | 0.783435 | 0 | 53 | 23.849057 | 50 |
rchicoli/ispycode-python | 14,259,291,461,186 | a89481f068717aa4032d2100258999db06c99fc0 | f7c07caa1210d2a08e8433cdd854b1232efa88e3 | /Date-And-Time-Modules/Calendar-Module/Iterate-Days-In-A-Month.py | 446e24504e6bc818c8d301ed2d0561617037c16e | [] | no_license | https://github.com/rchicoli/ispycode-python | c2fbecc28bf32933150986d24f77b7297f50b78e | fa27f2377943ac2e4d983065406578151091e3f5 | refs/heads/master | 2020-03-20T11:34:59.698618 | 2018-06-14T21:14:02 | 2018-06-14T21:14:02 | 137,407,150 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import calendar
c = calendar.Calendar()
for date in c.itermonthdates(2016, 7):
print(date)
| UTF-8 | Python | false | false | 100 | py | 663 | Iterate-Days-In-A-Month.py | 663 | 0.69 | 0.64 | 0 | 5 | 17.8 | 38 |
eunice730711/Data-Analysis-with-Python | 11,579,231,863,547 | 3409e0c3806781893d29d0a63d40ad13ba221ebe | 5113f5a8b1d8777b637c20dbf2270fba7fa12ec2 | /semi-conductor data analysis/q5.py | 7fb079d0e74edf1062fc3dcefed06574c13e642c | [] | no_license | https://github.com/eunice730711/Data-Analysis-with-Python | a13bdd46f22a370c6d53da79f2533ece6e882872 | 8a5e5f8fbe18057df22113cc0b72cc2ee213172b | refs/heads/master | 2020-05-25T14:55:38.444201 | 2017-02-14T14:51:49 | 2017-02-14T14:51:49 | 69,885,482 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import csv
def check(filename):
f = open(filename,"r")
csvreader = csv.reader(f)
tool = list(sorted(csvreader, key=lambda row: row[7]))
#tool = list(csvreader)
number = 0
maxn = 0
s = set()
for items in tool:
if items[8] == "TOOL_PM_START":
number = len(s)
s.clear()
if number > m... | UTF-8 | Python | false | false | 555 | py | 24 | q5.py | 23 | 0.605405 | 0.587387 | 0 | 30 | 17.533333 | 55 |
qfxlcyc/nn-depency-parser | 15,702,400,451,850 | 0ef9c998d9b263514e84a351f8f1fd4ba84a5838 | fad029294ccc1c7e58e4ac643eb7d6fc1de4a3e1 | /preprocess.py | 7f87afdcb6b94ef0bab328bab6ce744e27071402 | [
"Apache-2.0"
] | permissive | https://github.com/qfxlcyc/nn-depency-parser | 60e5e587da965c0517e163b9d9dddf4ec29b90d0 | add939442d75f54609324b4871a94d677b8e41ce | refs/heads/master | 2020-05-27T23:01:04.999863 | 2018-10-08T23:20:25 | 2018-10-08T23:20:25 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tensorflow as tf
import numpy as np
import argparse
import trainer.data_helper as data_helper
from trainer.parser import Parser
import os
OOV = "--OOV--"
NULL = "--NULL--"
def load_data(path):
""" example of a record:
1 The _ DET DT _ 4 det _ _
2 complex _ ADJ JJ _ 4 amod _ ... | UTF-8 | Python | false | false | 9,755 | py | 11 | preprocess.py | 9 | 0.560943 | 0.540236 | 0 | 254 | 37.377953 | 118 |
michalj11121/Wd-155280 | 12,025,908,466,597 | 6778765c274f271b752acf06039946cc64551bf6 | e1ec811a380d624b3c3c95c88f6369248862ca52 | /matplotlib/Zadanie 10.py | 3e302c4e27853840e5206662458cd1a724384e08 | [] | no_license | https://github.com/michalj11121/Wd-155280 | ac53e138de089d9a53fc287582052ccd9ed224a2 | 7eee6bf2334c39ddf0eb93a555df40f1c241ea1a | refs/heads/master | 2022-08-21T16:27:27.506633 | 2020-05-31T17:43:01 | 2020-05-31T17:43:01 | 245,125,036 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
x=np.arange(1,21)
fig, ax = plt.subplots()
ax.plot(x,1/x,label='f(x) = 1/x')
ax.annotate('f(5)=0.2',
xy=(5, 0.2), xycoords='data',
xytext=(5,0.6), textcoords='data',
arrowprops=dict(facecolor=... | UTF-8 | Python | false | false | 1,294 | py | 52 | Zadanie 10.py | 52 | 0.567233 | 0.527048 | 0 | 49 | 24.44898 | 66 |
phamtienthanhcong/Python_beginer | 1,108,101,604,101 | 84e1a6e6f44baa5370d6ef5c35b6c3e6eea19c44 | 6dbcecb35c51285aa40248e8135611c83b12e37c | /app_suport_beginer/app auto/auto_post_fb/LoginFaceBook.py | 4a4502f54e391d5ace5f1a55aa2cf608d3a52fbf | [] | no_license | https://github.com/phamtienthanhcong/Python_beginer | 203972928310a08d28a858fbe542b1671c5702df | 11640bbbf8e2f2b7a825bfd51fb873f9c17e552c | refs/heads/master | 2023-08-08T05:54:26.384383 | 2022-11-08T10:28:45 | 2022-11-08T10:28:45 | 399,650,614 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium import webdriver
from time import sleep
from selenium.webdriver.common import keys
from selenium.webdriver.common.keys import Keys
from extend.data import*
import pyautogui as df
def setup():
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--start-maximized")
prefs = {... | UTF-8 | Python | false | false | 3,487 | py | 44 | LoginFaceBook.py | 30 | 0.630915 | 0.613995 | 0 | 99 | 34.232323 | 224 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.