blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
112df351942fd6b1192e8e855ac9f1a4df780e1b
e710a2758e511239b4b37566ca78d9302ddbecc6
/seventeenthPage/849_MaximizeDistancetoClosestPerson.py
3896cfb7f3486289f8fde07918d240cc3c25470e
[]
no_license
jiangshshui/leetcode
4d93fb5610446ca2d5ecfbe0312d4f3d74e50761
7aea885dfbb9bd157ce2c78b6e4e8af14afcb5b8
refs/heads/master
2021-03-27T18:59:51.110466
2018-11-07T06:20:45
2018-11-07T06:20:45
99,470,712
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
class Solution: def maxDistToClosest(self, seats): """ :type seats: List[int] :rtype: int """ seated=[] for i,seat in enumerate(seats): if seat!=0: seated.append(i) ans=0 ans=max([ans,seated[0]-0,len(seats)-1-seated[-1]]) ...
[ "30767399+jiangshshui@users.noreply.github.com" ]
30767399+jiangshshui@users.noreply.github.com
c60ebdb8493c520620b00a7500176196eafdd5a6
302ceac8466ef14d42d525170eb2f7719ec1a3d3
/Introdução à programação com Python/aula08_contador_letras.py
7140a0f24d5284154befc34beaddf01496b5ebe3
[]
no_license
rgrtorres/cursos_python
64eac8e88736a220bdd790dffd790f0a396c32a9
19addbbedca6e8c372e9c3c88d828606790f6820
refs/heads/master
2023-03-21T07:53:05.662439
2021-03-13T14:15:44
2021-03-13T14:15:44
346,204,587
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
def contar_letras(lista_palavra): contador = [] for x in lista_palavra: quantidade = len(x) contador.append(quantidade) return contador def teste(): return 'teste' if __name__ == '__main__': lista = ['cachorro', 'gato'] print(contar_letras(lista))
[ "rgrtorres@hotmail.com" ]
rgrtorres@hotmail.com
f35bf08db192b2f12f1b4ff64bf4c6e9c9c0086e
bb6058b4850aac4c48a3c800b61606d868ffd9fa
/mysite/orders/migrations/0002_auto_20200601_1557.py
1a29226dc6ff504e4171c5ad10da80fbd004cbf1
[]
no_license
AlexanderSobolevskiy/project1
e3354f0bc56bb113b199ef64a6deb429cb297a77
9a2af271aa6b8bc25e6fc97109ebc3029496dd2c
refs/heads/master
2022-11-07T22:28:19.691327
2020-06-23T21:28:06
2020-06-23T21:28:06
273,778,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
# Generated by Django 3.0.5 on 2020-06-01 12:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0001_initial'), ] operations = [ migrations.AddField( model_name='order', name='customer_add...
[ "sobolevskiy.1@mail.ru" ]
sobolevskiy.1@mail.ru
5ae9fa71d6f0b5042f1b82d4235414e8ab85f2b8
ec9a17a21a7c7de586093b9dc9cbae44e427e6cb
/Vulnerabilties/SSL Logjam Attack/ssl_logjam_attack.py
fd7ed07f3722246daa77c87953c1a5cd32c998e1
[]
no_license
zflemingg1/Testing-For-SSL-Vulnerabilities-Misconfigurations
6f7b1d5b69afef5f8a43045f6f09ef0b90f90ae1
49301587c1d68ae18cc469ede4d811819d3e10ea
refs/heads/master
2020-03-18T23:40:30.951609
2018-05-31T09:39:46
2018-05-31T09:39:46
135,418,339
2
1
null
null
null
null
UTF-8
Python
false
false
6,892
py
#!../../Custom_Python/build/bin/python2 # Description: This script will test to see if the target site is vulnerable to sweet 32 attacks # Author: Zach Fleming # Date: 18/04/2018 # Import The Relevant Libraries import socket # connecting to hosts import ssl # ssl protocols from termcolor import colored # needed for c...
[ "Zach.f@edgescan.com" ]
Zach.f@edgescan.com
ec7f35863a5fdd22a268819767e01e4dac4a06b1
b44d094093d8852839eb715fafa7a3d2f41da582
/wr_pintar_master/wizard/master_custom_import.py
110451813ad0f8f3cdf3845dc776b3c657f06fbe
[]
no_license
sharibar/wr_pintar_recruitment
4ab52a4185e9fb775f5275cd2c40f14c295efb15
24c1007c5fe90d08290f4c6ffdeec37d301c002c
refs/heads/master
2020-04-18T23:00:40.026791
2019-01-28T06:00:23
2019-01-28T06:00:23
167,810,468
0
0
null
null
null
null
UTF-8
Python
false
false
4,433
py
# -*- coding: utf-8 -*- from odoo import fields, models, api, _, sql_db from odoo.tools import DEFAULT_SERVER_DATE_FORMAT from odoo.exceptions import UserError import tempfile import base64 from datetime import datetime import xlrd from xlrd import open_workbook import threading class MasterCustomImport(models.Transi...
[ "syarifudin@portcities.net" ]
syarifudin@portcities.net
12f1dc25839f93fc337543a1efe4d02aee854533
24899d6a3f14e7c4459194dac503b3b461f405ce
/PythonPrograms/regularExpression/mobile.py
1d4a51b9a114b403246014d98b2795e232bba451
[]
no_license
joysjohney/Luminar_Python
73cb09a0211db39f808a70f9252866461267b30d
4774fc7c492cae16b89e74006c9164d76160eedb
refs/heads/master
2023-01-07T02:57:42.419864
2020-11-08T06:41:01
2020-11-08T06:41:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
# Validate mobile number from re import * rule="/d{10}" mobno=input("Enter mobile number : ") matcher=fullmatch(rule,mobno) if(matcher !=None): print("Valid mobile no") else: print("Invalid mobile no!")
[ "44256029+joysjohny@users.noreply.github.com" ]
44256029+joysjohny@users.noreply.github.com
b47a6d66fa27cdee16eb131e2432067dc963a979
ef5f527476503657635243e3ec1f280877cedb26
/Genie.py
5f464da23226674e8ac64035a1579f291a3bfeb9
[]
no_license
dcgmechanics/GenieVA
dd77ee454e695c1a50ab8c341f6764f00e7043d4
259512a3a987ba9c2ad347f01c90c5aac1a40529
refs/heads/master
2023-01-29T19:38:53.281655
2020-12-08T08:18:35
2020-12-08T08:18:35
288,934,818
2
0
null
null
null
null
UTF-8
Python
false
false
20,687
py
import os import pyttsx3 print("Welcome To Genie Windows Assistant Version 0.1\n") pyttsx3.speak("Welcome To Genie Windows Assistant Version 0.1") print("Please Before Using This Program Open 'Read Me' Text File for Better Understanding Of Features of This Program.\n") pyttsx3.speak("Please Before Using This P...
[ "noreply@github.com" ]
dcgmechanics.noreply@github.com
379d72d48e0202729e8fdc829e1b3293850a6f72
1c829b9f786a544f4cd715072af49b05f2aca545
/indicators/trend.py
a683722cca0b4137586f4cb5a4f98eeb7d2f7bf2
[]
no_license
Colman/Trading
05f5a32b85ee927151b6a1948e5cac61021c48ac
71cd5da318d3c56b763605b91a456b3cfaacd479
refs/heads/master
2020-12-26T23:50:30.702411
2020-02-01T23:56:50
2020-02-01T23:56:50
237,694,213
0
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
def getSMA(candles, period, index=4): if len(candles) < period: raise ValueError('Not enough candles for the specified period') SMA = list() for i in range(period - 1): SMA.append(None) for i in range(period - 1, len(candles)): total = 0 for j in range(period - 1, -1, -1): total += candles[i...
[ "noreply@github.com" ]
Colman.noreply@github.com
b043023374ed31f1daee522d606925932e11d97f
d50e9b2a52cb4a5519ee972de1384bffa4fcefe2
/tp3/prueba.py
267fb84b8231552b4f700310bf37a05e6543faa6
[]
no_license
LisandroRobles/tps_dsp
b2e3724bb3b569de2d8d244b6dddf116796bbcae
b46423a9f5b78835305ad6acae8e62cf67d23659
refs/heads/master
2020-04-09T06:20:15.682176
2019-05-05T15:15:37
2019-05-05T15:15:37
160,106,843
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 7 10:00:20 2018 @author: lisandro """ #Paquetes import numpy as np import matplotlib.pyplot as plt import scipy.signal as signal import pdsmodulos.signal_generator as gen import pdsmodulos.spectrum_analyzer as sa #Testbench def testbench(): ...
[ "LisandroRobles1@gmail.com" ]
LisandroRobles1@gmail.com
19e2826616e1dd3444926f89dbc7a7816a07236e
5acbf224c36f812075b899320c74f0e47b448ad9
/CNN_on_cifar_ByPytorch/12_WideResNet.py
51f2233f95bce9d09529613f61c00b1a3f78cc76
[]
no_license
lovecodestudent/Classification_model
a5b190a3788ed6b5ca28ea89e68e8814db382fd4
62b6849080da3f9033dcf01a9e16b0d35c371c45
refs/heads/master
2022-07-10T01:56:27.608340
2020-05-13T04:41:27
2020-05-13T04:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,135
py
import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F import numpy as np import sys def conv_init(m): classname = m.__class__.__name__ if classname.find('Conv') != -1: init.xavier_uniform(m.weight, gain=np.sqrt(2)) init.constant(m.bias, 0) elif clas...
[ "gyt0713@126.com" ]
gyt0713@126.com
1013785aa4623094ca872c97f462ebf477bb6274
0dfcb900d11918b85a3e1791983babd47a5080e2
/notif_sender.py
e703821b51abba488277e9a7e23fe834f102a63c
[ "MIT" ]
permissive
redwanc12/DMV_APPOINTMENT_FINDER
216207541f53eec36f8b92c51168764c5c216894
702142d26d5da63c30785941455c47cd6e524fdd
refs/heads/master
2020-05-21T03:03:43.961592
2019-07-30T13:29:27
2019-07-30T13:29:27
185,891,905
1
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
"""class to send notifications""" import smtplib import requests from bs4 import BeautifulSoup r = requests.get('http://127.0.0.1:8000/polls/open') soup = BeautifulSoup(r.text, 'html.parser') emails = soup.find_all('h1') days = soup.find_all('p') emailList = [] for each in range(len(emails)): emailList.append({ ...
[ "redwanc12@gmail.com" ]
redwanc12@gmail.com
b1bfad68ea410fdf790ec776a13e25ffff1072e4
d9ec3e1a75df988a4ec905436b9a8db1ebf3cb97
/school/views.py
30210af4aa751831b654addabe142e8702e08bea
[]
no_license
shivamrvgupta/JBEHS
1a7339b42118e0355abb2b49515f443ec9658b27
06e2e84a56f6a880b107d4fb5f5946744f92d797
refs/heads/master
2022-12-15T21:53:21.081889
2020-09-14T14:21:30
2020-09-14T14:21:30
295,432,337
0
0
null
null
null
null
UTF-8
Python
false
false
2,325
py
from django.shortcuts import render, redirect, HttpResponseRedirect, get_object_or_404 from django.contrib import messages from .forms import SchoolRegistration, SchoolUpdate from .models import School from django.contrib.auth.decorators import login_required # Create your views here. """ School Operations """ @log...
[ "shivamgupta@Shivams-Mac-mini.local" ]
shivamgupta@Shivams-Mac-mini.local
0b34ee5faf9aba369b362c1b0725e0011a94a098
7bf906c992b9c79179fa52f6ba975b5e0f3505dc
/TT/Cuts.py
1080e69c599d6e71b0e4dee6a196d524b3624df4
[]
no_license
skyriacoCMS/Analysis
1fe04028deee1953232dc8bf8b24924d2f73d6d1
a74775120ac2b127698f52ca876dc8f77c0ab6a1
refs/heads/master
2020-03-13T23:47:31.451352
2018-04-27T21:37:53
2018-04-27T21:37:53
131,335,393
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
import os import sys i = sys.argv[1] cmnd = 'root -b -q -l "CUTS.C('+i+',5,-1,-1,-1)"' os.system('cp ../Templates/CUTS.C .') os.system('cp ../Templates/xsecs.h .') os.system(cmnd)
[ "savvasphy@gmail.com" ]
savvasphy@gmail.com
91991f5a8611d5ea0c34e7e190b6f2f689575618
e35c318b38e0d359f4c9597d7b6f62f48475b3ec
/tests/common/test_utils_logger.py
ec51c65f3b1d9e854a10ab5f49f6914cdf5717d1
[ "MIT" ]
permissive
jongwonKim-1997/bayeso
fddca24c98ef90fdc74f24bcc35040ab064ff5e3
f6f290c5ed33340beaf8dfa27a71d1dbce121e33
refs/heads/main
2023-05-10T12:25:04.353385
2021-04-19T00:32:25
2021-04-19T00:32:25
375,925,113
0
0
MIT
2021-06-11T06:21:42
2021-06-11T06:21:41
null
UTF-8
Python
false
false
6,730
py
# # author: Jungtaek Kim (jtkim@postech.ac.kr) # last updated: September 24, 2020 # """test_utils_logger""" import logging import pytest import numpy as np from bayeso.utils import utils_logger as package_target def test_get_logger_typing(): annos = package_target.get_logger.__annotations__ assert annos['s...
[ "jtkim@postech.ac.kr" ]
jtkim@postech.ac.kr
5133a8fd1104ede5dd291548ccb3839973b70b67
f6cb84f876f77a995b6fa1b37002d17fc7d71072
/src/preprocessing.py
a01d670b9fca92e68c89aae45fbb6a9f7963d6a9
[ "CC0-1.0" ]
permissive
roshande/ml-framework-template
d86870085acd7c104cfa3e0afc9979779140a740
154605edd0ed6459a4704d557a93e2b49da65018
refs/heads/main
2023-05-31T03:17:40.439194
2021-07-11T17:58:10
2021-07-11T17:58:10
382,545,091
0
0
null
null
null
null
UTF-8
Python
false
false
1,892
py
from scipy.stats import mode import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils.validation import check_is_fitted __all__ = ['Numeric', 'FillNa'] class Numeric(BaseEstimator, TransformerMixin): def __init__(self, errors="coerce", fillna_value=0, dt...
[ "roshanhande116@gmail.com" ]
roshanhande116@gmail.com
e2d70ea6765a4d2275d7fe4d41337de6d45d5449
8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b
/enthought/traits/ui/qt4/key_binding_editor.py
12c440438d2c61dd566c494f787af54b63d61666
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
enthought/etsproxy
5660cf562c810db2ceb6b592b6c12274bce96d73
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
refs/heads/master
2023-03-27T04:51:29.297305
2020-12-02T09:05:18
2020-12-02T09:05:18
1,632,969
3
1
NOASSERTION
2020-12-02T09:05:20
2011-04-18T22:29:56
Python
UTF-8
Python
false
false
61
py
# proxy module from traitsui.qt4.key_binding_editor import *
[ "ischnell@enthought.com" ]
ischnell@enthought.com
75b71b1a3e7b2cc7b6f4ff915a2785ed4ba5b44e
bd1b126c0460e0df5a086000451642d198122939
/projects/gmail/test.py
3fadcc997c76a2170020a3f0918bea73d2722fbc
[]
no_license
anvesh001/page-object-model
bf749a6c19e7c43c111f7458974f8c531da6385d
4e528b90b4a85db0173f0f66bca56905081029aa
refs/heads/master
2020-05-21T07:08:45.614092
2019-05-10T08:41:14
2019-05-10T08:41:14
185,952,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
from selenium import webdriver import time import unittest from projects.gmail.pages.login_page import LoginPage from projects.gmail.pages.home_page import HomePage import sys import os sys.path.append(os.path.join(os.path.dirname(__file__),"..",'..')) #print('test completed') class test_login(unittest.TestCase): @cla...
[ "anveshkumarnaidu402@gmail.com" ]
anveshkumarnaidu402@gmail.com
0b44bb79faf29315ec66647b0981dec1ae31298b
1674905f0ced7f6fe9b3ca1a40855eca6c49416f
/SRC/sampler.py
fcc2b506556e7526c5e48fe95fffcab07016778f
[ "Apache-2.0" ]
permissive
cyrilgalitzine/SDE_inference
304a5dd6ed93bc198f8fde70160ab869f65814de
e64e9c5cdf4c13bf3ba67071949c71b0a1b6d8fe
refs/heads/master
2020-03-19T00:07:23.502582
2018-05-30T14:38:07
2018-05-30T14:38:07
135,454,563
1
0
null
null
null
null
UTF-8
Python
false
false
2,722
py
import numpy as np from scipy.stats import norm import pandas as pd import pathlib #Define an equation class class sampler: def __init__(self,name,param,param_infer,sd,output_freq): self.name = name self.param_new = param #has to be a numpy array self.param_old = param self.Ndim = param.size #Should always b...
[ "c.galitzine@neu.edu" ]
c.galitzine@neu.edu
58fffd1a4a3bc143d14f8ded6ee0c3af6f36b4a1
0c66d794765282400ba8f72c8f086d8a40fec16f
/Instruments/Blank/python/Blank.py
bb60cfa24b23d1af4a8cf9aefff64690e77b7346
[]
no_license
collaborative-music-lab/NIME
14940598d61c64d2c63db3380f0e48ad59515a06
38ffc312f41b11376a5409c3038cf8a59d790fb3
refs/heads/master
2023-05-26T10:42:10.931069
2023-05-08T19:24:57
2023-05-08T19:24:57
197,260,152
10
2
null
2022-02-09T22:42:49
2019-07-16T20:07:33
C++
UTF-8
Python
false
false
2,845
py
#Blank.py #Ian Hattwick #Mar 1, 2023 PACKET_INCOMING_SERIAL_MONITOR = 0 CUR_PYTHON_SCRIPT = "Blank.py" import serial, serial.tools.list_ports, socket, sys, asyncio,struct,time, math from pythonosc import osc_message_builder from pythonosc import udp_client from pythonosc.osc_server import AsyncIOOSCUDPServer fro...
[ "ian@ianhattwick.com" ]
ian@ianhattwick.com
6e20ae8fccb33dc8bfa57f0dddb4a970d2d6e487
7cc1d37d8383ac16f8ac2bb5dec753d558f39e71
/HastaAkriti/manage.py
b06580e5298af2f329141861ddc1fd0d8e5fbdfe
[]
no_license
internshipdeco/HastiaAkriti
57e45f2cd5db217c6f6c41ca163a5705b200ed63
ce5cca6a77e4d031d38c7bc3f3913d3ccb2ec439
refs/heads/master
2023-01-02T02:47:24.237434
2020-10-22T12:09:17
2020-10-22T12:09:17
306,059,261
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HastaAkriti.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "kissna.yadav7@gmail.com" ]
kissna.yadav7@gmail.com
f2db845f6ed0455eb72a111058ae787634caf967
181e9cc9cf4e52fcc6e9979890cc5b41e7beb756
/Module 1/02_Codes/miscellaneous/4-TenSecondCameraCapture.py
ffe0427cfa69b339ad2ddf078ae4c70f2d0dfbde
[ "MIT" ]
permissive
PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python
ace8576dce8d5f5db6992b3e5880a717996f78cc
45a9c695e5bb29fa3354487e52f29a565d700d5c
refs/heads/master
2023-02-09T14:10:42.767047
2023-01-30T09:02:09
2023-01-30T09:02:09
71,112,659
96
72
null
null
null
null
UTF-8
Python
false
false
515
py
import cv2 cameraCapture = cv2.VideoCapture(0) fps = 30 # an assumption size = (int(cameraCapture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)), int(cameraCapture.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT))) videoWriter = cv2.VideoWriter( 'MyOutputVid.avi', cv2.cv.CV_FOURCC('I','4','2','0'), fps, size) success, frame = ...
[ "prasadr@packtpub.com" ]
prasadr@packtpub.com
07008e999f02c35e6a8c414d9321c124e90b441c
1127be36a03677a9bf7226c87c4f6aec0b5a4fd7
/pocdb.py
df443d329c92b598262c214df108ab1d4563081d
[]
no_license
chriskcl/AngelSword
b44de0194502a6a3e3d38b7fd0f949747f697b63
f2dc09ee41422ef07c43b64a0aba523378cb7667
refs/heads/master
2021-05-14T00:44:28.175262
2018-01-04T08:11:32
2018-01-04T08:11:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,189
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: 漏洞字典 referer: unknow author: Lucifer description: 引入main接口 ''' from cms.cmsmain import * from system.systemmain import * from industrial.industrialmain import * from hardware.hardwaremain import * from information.informationmain import * class pocdb_pocs: def...
[ "297954441@qq.com" ]
297954441@qq.com
b54f081a9d6b7446d1e5993745d42b278ed93235
d9bfc35e34659220c5695360a4282293ad2ac74a
/flask_demo/get_post_demo/venv/bin/python-config
922fdf1460d00dec2a904253b0e13926a33a7269
[]
no_license
Carrie999/practiceHtmlDemo
c9e387b18f8b6ad9736631f104332445175a3a2e
3e59843e2a15233c9ad086f8aff4db83bdfd886f
refs/heads/master
2023-02-20T04:25:20.518659
2018-08-25T08:51:38
2018-08-25T08:51:38
128,219,772
3
0
null
2023-02-15T17:52:52
2018-04-05T14:41:41
Python
UTF-8
Python
false
false
2,357
#!/Users/orion/Desktop/get_post_demo/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.ve...
[ "pangyajing@ainirobot.com" ]
pangyajing@ainirobot.com
a82007d69c6f4e2df88bcdfd604ab7c5667cb165
e581edf33f2d9c376f96e2c1658292e1af25809a
/docx_simple_service.py
5cef8283f90f32e787ede5205a4400bf572dc312
[]
no_license
Nissinko/AutoArticle
0d9d2b6518e5d31a1337a8adceb3ab5339ec69bb
af6ef79453f133ac02206aae573095bd0e156a5d
refs/heads/master
2020-03-27T15:26:21.045716
2018-10-18T07:18:42
2018-10-18T07:18:42
146,717,972
0
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # SimpleDocService # python-doxに関する簡単なサービスを提供します。 # まぁ docxライブラリを理解するためのコードですね。 # from docx import Document from docx.shared import RGBColor from docx.shared import Inches from docx.shared import Pt class SimpleDocxService: def __init__(self): self.docum...
[ "akiyama.takanori@unipro.co.jp" ]
akiyama.takanori@unipro.co.jp
82753cf6b64dc98cdf65535e4818c0755652d67d
8ac75ee9dcb850c966a05a72bdfaf34fcf35965d
/Company_ques/Avg.py
066f2fbc121c96c00299bf439e3ccc92c855e13d
[]
no_license
mathankrish/Python-Programs
3f7257ffa3a7084239dcc16eaf8bb7e534323102
2f76e850c92d3126b26007805df03bffd603fcdf
refs/heads/master
2020-05-01T04:27:00.943545
2019-10-07T18:57:41
2019-10-07T18:57:41
177,274,558
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
# Average of two numbers def Avg(num1, num2): Total = num1 + num2 average = Total / 2 return average num1 = int(input()) num2 = int(input()) print("The average of {0} and {1} is {00} ".format(num1, num2, Avg(num1, num2)))
[ "noreply@github.com" ]
mathankrish.noreply@github.com
97144af185424ea27a240b90f0c63e9326295721
5f19c7590f5639f0ec4e97c8e80c9cb9f4c30025
/xgboost_logistic.py
6150f2d3527cb86cce44394148be0a3567e27d0e
[]
no_license
PXPX11/Quantitative-Finance
37448a3fa6a1b659fd83b01050c9cfb8344e639c
fc598ae75bbf54a660bd88f9a14e680d6a8890d0
refs/heads/master
2023-04-12T16:04:59.010704
2021-05-10T11:01:58
2021-05-10T11:01:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,192
py
import pandas as pd import numpy as np import xgboost as xgb from xgboost.sklearn import XGBClassifier from sklearn import cross_validation, metrics from sklearn.grid_search import GridSearchCV from sklearn.cross_validation import train_test_split import matplotlib.pylab as plt from sklearn.preprocessing import...
[ "noreply@github.com" ]
PXPX11.noreply@github.com
855d10a127d4561780c68cd68a89ac02f14a8a10
d79778a02e752879b337c9bfe567617e910befb9
/model/all_data_representation.py
9c2ba3323b47c526965496e37085a4f489f9c9e8
[]
no_license
SubrataTech/fulfil_data_loader
fb38e47872c78976e4928ed2b47f650917b566d0
33418bf3901146df38fe38950cebd2a7bc57b0ce
refs/heads/master
2022-09-28T21:55:42.047813
2019-11-17T21:00:56
2019-11-17T21:00:56
222,309,372
0
0
null
2022-09-16T18:12:56
2019-11-17T20:43:07
HTML
UTF-8
Python
false
false
308
py
from configuration_file import db class UserTable(db.Model): __tablename__ = 'user_data' id = db.Column('id', db.Integer, primary_key=True) u_name = db.Column('u_name', db.String(50)) u_sku = db.Column('u_sku', db.String(10)) u_description = db.Column('u_description', db.String(1500))
[ "subratakamila2@gmail.com" ]
subratakamila2@gmail.com
601df3ddcbd225d79671f80264b633e771676761
5cfbe2f43cc50930d1116992be542c50f297c7f8
/mysite/settings.py
11e9a043d9f57bb0ea7c9fa4244eecab60fd4c4b
[]
no_license
NataliTomilina/my-ferst-blog
e059fa6b562a62725bfc9168fa9a3685f2dfcd9d
7e75be17a66419dec66d36288d9e058d163cd96d
refs/heads/master
2020-03-21T13:03:02.766961
2018-06-25T11:16:42
2018-06-25T11:16:42
137,742,059
0
0
null
null
null
null
UTF-8
Python
false
false
3,201
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.6. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # ...
[ "tomilina.95@mail.ru" ]
tomilina.95@mail.ru
380e3c97f6cccfca0561f610fa9bacc68b1ea1d2
4f50a8a320e89fa60147ae21949168f9929a24ea
/wafweb/wafwebapp/classes/neo_classes/neoquery.py
f65b3097df5ad75b7eb91396b9c09fcb95da2ac8
[]
no_license
hubaym/waf
78732b3d42054b0bc608912a37bed3e78bd750f0
a51ec7331c0c80841de3a52b325fb42708e38a6d
refs/heads/master
2021-04-15T03:52:02.586070
2016-08-24T22:18:15
2016-08-24T22:18:15
65,689,380
0
0
null
null
null
null
UTF-8
Python
false
false
4,883
py
from neo4jrestclient import client import classes.constant.wafconnection as con from neo4jrestclient.client import GraphDatabase from classes.constant.waflog import WafLog import classes.utils.status as status class NeoQuery(): def __init__(self): self.db = GraphDatabase(con.NEO_HOST, username=con.NEO_USER,...
[ "hubaymarton@Hubay-MacBook-Air.local" ]
hubaymarton@Hubay-MacBook-Air.local
060e1ed423ff462c6643f90cb80ce36b0a84492e
af69291cc1c9000aff3ac754d8dcc053abc278bc
/old_versions/0.7.1/example.py
7e97b467ca59815895092a2e48462c2bbf58c525
[]
no_license
dcbmariano/BioSVD-GA
ae06e22a69770dfa19e9737c6a93e2133665ace4
a8a1c11790a528387bfffeefa400ad08b47e3d55
refs/heads/master
2021-01-12T19:52:56.197803
2016-08-24T13:05:15
2016-08-24T13:05:15
44,193,085
0
0
null
null
null
null
UTF-8
Python
false
false
6,012
py
#!/usr/bin/python # Program: biosvd.py # Function: Implementa o metodo de svd para classificacao de proteinas # Description: inclui: delaunay.py e sort.py - Por enquanto estamos limitado a 23 cores no plot assim so podemos ter 23 familas diferentes. Isso sera revisado(Por Thiago) # Author: Thiago da Silva C...
[ "diogohenks@hotmail.com" ]
diogohenks@hotmail.com
cd2174a9a924b6f860c2f48bc90d09a586d060ec
395344ba5e342ba441eb1f157848bd91ee3d4bf6
/stack_code.py
fbf12ac59cfb4f353ad325db703f885ed8d36556
[]
no_license
i4seeu/my_learning_tools
b75588fec1d71ab00b7a307acbef055d0aacabe0
392ca66eba808ba8552c021d98e25a5137d97980
refs/heads/master
2021-03-25T14:18:31.469076
2020-03-16T19:47:43
2020-03-16T19:47:43
247,625,862
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
class Stack: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self.items) - 1] def size(self): ...
[ "noordinmalango@gmail.com" ]
noordinmalango@gmail.com
38e91d4d664c61c222b744872c51c349b5c6d785
c74a140b434941e05978582b41ca6cdcc5ea8989
/leetcode/editor/cn/[剑指 Offer 22]链表中倒数第k个节点 LCOF.py
c2a1ddadf9ff231c1947dbe047c4ab502521c31c
[]
no_license
Switch-vov/leet_code
61e5ff781aba923971e294d9210c70088c6340a2
c9dd9c1bf0213b12c499fbeccada5d0fd758fce1
refs/heads/master
2023-07-29T15:32:06.130178
2021-09-12T11:52:38
2021-09-12T11:52:38
396,201,812
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
# English description is not available for the problem. Please switch to Chinese # . Related Topics 链表 双指针 # 👍 220 👎 0 class ListNode: def __init__(self, x): self.val = x self.next = None # leetcode submit region begin(Prohibit modification and deletion) # Definition for singly-linked list. #...
[ "switchvov@163.com" ]
switchvov@163.com
a256b033d5114fc08cddeaa6625a4ef957040c9e
c0d75e3f8c0383f528fbca434414185aa77b1de3
/ceyrek_altin.py
6c2390431f87d547088bd17a9b52c0f014e19e7b
[]
no_license
borayuret/yfscraper
9339c9d5215f1a10f27aac21a9f368bbdb119604
ad57f7e2826936473dad78ac4b729fadeb4d02ba
refs/heads/main
2023-03-31T23:49:17.951674
2021-04-03T10:05:59
2021-04-03T10:05:59
347,348,393
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# hurriyet.com.tr den dolar fiyatı çekelim. import requests from bs4 import BeautifulSoup hisse_url = "https://bigpara.hurriyet.com.tr/altin/" html_kod = requests.get(hisse_url) soup = BeautifulSoup(html_kod.content, 'lxml') bilgi_bar = soup.find('div', class_='dovizBar mBot10').find_all('a')[1].find_all('span')[6...
[ "bora.yuret@bilgeadam.com" ]
bora.yuret@bilgeadam.com
6bec3ddf43308f97381ac98d3aed4324806e4ca7
99c977d54eea4e56ebe363e52d6317daf8214ea3
/reverie/apps/core/models.py
36b8257d21d69d477724f46941b6ef23cf4e22ad
[]
no_license
ternus/reverie
2fb89d64132b4801705f8096aefb6ccc4ba31348
ed1740bf7fe93db39e341a280d948c625d525aeb
refs/heads/master
2016-09-16T13:31:44.193021
2011-11-26T20:15:11
2011-11-26T20:15:11
2,828,374
0
0
null
null
null
null
UTF-8
Python
false
false
2,026
py
from datetime import datetime from django.contrib.gis.db import models from django.contrib.gis.geos import Point from const import Skills, LogTypes from couchdbkit.ext.django.schema import * DEFAULT_LOCATION=Point(42.359140, -71.093548) # 77 Mass Ave class Character(models.Model): name = models.CharField(max_leng...
[ "ternus@mit.edu" ]
ternus@mit.edu
49cc7ab24fcf653315ed8b0a0c768e7420905965
4a2eac368e3e2216b0cd1dd70224da3ca4ee7c5e
/SecretManager/owlbot.py
50c7c9bb3fb0bdd3f2138665e345cd50407ebd4c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
googleapis/google-cloud-php
856a940eee158eafa6f2443f8d61813779216429
ad50f749431287e7074279e2b4fa32d6d6c2c952
refs/heads/main
2023-09-06T05:48:31.609502
2023-09-05T20:27:34
2023-09-05T20:27:34
43,642,389
642
330
Apache-2.0
2023-09-13T22:39:27
2015-10-04T16:09:46
PHP
UTF-8
Python
false
false
1,871
py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "noreply@github.com" ]
googleapis.noreply@github.com
2a2ed39cccfc804911fb565d6e90e37ab53ccb77
8ed9296cf14cbd48ad6c6ba977a4eddfb6158ec3
/lib/examples/basic_radiation-LITE.py
98e58e33c081925056c326049a5fdf5e1c07f745
[ "BSD-3-Clause" ]
permissive
JoyMonteiro/CliMT
51191c8e44eef28057971dd29de8e40c0bd3ef97
0949ed3a3a125638072351d7277ae4b956956d35
refs/heads/master
2021-04-09T17:45:56.369908
2016-10-28T08:32:26
2016-10-28T08:32:26
28,734,117
2
0
null
2015-01-03T03:45:23
2015-01-03T03:45:22
null
UTF-8
Python
false
false
1,298
py
# # Set up realistic tropical temperature and moisture profiles # and compute radiative fluxes # from numpy import * import climt_lite #--- instantiate radiation module r = climt_lite.radiation() #--- initialise T,q # Surface temperature Ts = 273.15 + 30. # Strospheric temp Tst = 273.15 - 80...
[ "rca@misu046.misu.su.se" ]
rca@misu046.misu.su.se
ad2fc3768caa165399299cbe9e9557c3e1406c60
c4cba3a520eccfb60350cfd8bead6a434061bb4d
/projects_lpthw/gothonweb/gothonweb/app.py
179976e2710ae3eff790a6d2a4498bebefa832ae
[]
no_license
thedoubl3j/python_playground
bb119e971e5a8d5e5118a6c788d8f140f8a8fb97
b25cfdf3bbe337b46fbf350e785b8d13e129a6f6
refs/heads/master
2021-12-15T03:38:27.462891
2021-12-13T21:48:04
2021-12-13T21:48:04
128,975,263
0
1
null
2019-01-22T17:12:03
2018-04-10T18:02:37
Python
UTF-8
Python
false
false
241
py
from flask import Flask from flask import render_template app = Flask(__name__) @app.route("/") def index(): greeting = "Hello World" return render_template('index.html', greeting=greeting) if __name__ == "__main__": app.run()
[ "jljacks93@gmail.com" ]
jljacks93@gmail.com
c8046c7484e23639cd6e983dfa5d597d5f603db9
17baed99ca2fb30a0578c89961addcab89c143f2
/restful/settings.py
33bb65320132b4ca50c9a961dfe40346b3984b82
[]
no_license
newhuaszh/restful
151ec4855177dee6ef497364e887cdaa4e40f7a0
d1616c6c2d00dffcb5f2d15ff1b8935f60383095
refs/heads/master
2021-01-11T13:55:55.662099
2017-06-20T14:21:02
2017-06-20T14:21:02
94,899,574
0
0
null
null
null
null
UTF-8
Python
false
false
3,249
py
""" Django settings for restful project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # B...
[ "szhhzs@sina.com" ]
szhhzs@sina.com
2c23cac30eb794b54b016245d2b1078ebafd21bd
0febefe0a6813a6828a9e8b5301b7e583a5b7c4e
/lab1_app/migrations/0001_initial.py
f1a193ac4a33f09b1f2f45d9116e78a02c38f3df
[]
no_license
vrekeda/django-lab1
117348c8162e50e0a0570dcdf9bd0bd8479fcd7f
e23047cffa0f0123fe4d4c22faf0c70de2e15b57
refs/heads/main
2023-05-09T01:37:05.214751
2021-05-28T20:43:44
2021-05-28T20:43:44
364,990,925
0
2
null
null
null
null
UTF-8
Python
false
false
888
py
# Generated by Django 3.2.2 on 2021-05-06 20:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Language', fields=[ ...
[ "vladimir.rekeda@beeper.ru" ]
vladimir.rekeda@beeper.ru
ea7e309f7c49d75e513aa4e6d215df4c6ab155c4
48227bebe295925f7063d58521f3fd16273b1706
/02/printing.py
e297ebec74e242204327d903a63f85909f0de936
[]
no_license
akarneliuk/CEX
b8ffff64d57699fd17b4a7bfb52c64534bfb1ce8
c869fb8c1f497933c8227e3c41b0f295a6dad3b2
refs/heads/master
2020-12-27T21:01:28.722083
2020-08-10T12:45:12
2020-08-10T12:45:12
238,052,880
0
3
null
null
null
null
UTF-8
Python
false
false
113
py
#!/usr/local/bin/python3.8 print('Hello, new network automation mate! This exciting world is waiting for you.')
[ "akarneliuk@gmail.com" ]
akarneliuk@gmail.com
1ac2383f4356c4123f3f0424f2d41eeb4d65eef7
e00d41c9f4045b6c6f36c0494f92cad2bec771e2
/multimedia/sound/celt/actions.py
ebbc7ace073cda6de994f48d6de40b6054304d7d
[]
no_license
pisilinux/main
c40093a5ec9275c771eb5fb47a323e308440efef
bfe45a2e84ea43608e77fb9ffad1bf9850048f02
refs/heads/master
2023-08-19T00:17:14.685830
2023-08-18T20:06:02
2023-08-18T20:06:02
37,426,721
94
295
null
2023-09-14T08:22:22
2015-06-14T19:38:36
Python
UTF-8
Python
false
false
407
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools def setup(): autotools.configure("--disable-static") def build(): autotools.ma...
[ "ayhanyalcinsoy@pisilinux.org" ]
ayhanyalcinsoy@pisilinux.org
a2ab289aae0d3b78772cbe37bf8afadf36646cfe
99bc3defc34f3bc2854523c5c4a7c907c45233ec
/shanxingapi/testacse/case1.py
7d450c4b89f91d66be2356aae370b0fec8e4d081
[]
no_license
huangchunhui521/shanxing
5ebc1ca0d30228bb19809e45aff0ac73bab0f538
8d26d3c5e41daab547799d28fb6071969500dde9
refs/heads/master
2021-05-21T13:35:02.883479
2020-04-03T12:04:33
2020-04-03T12:04:34
252,668,538
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
# -*- coding: utf-8 -*- # @File: # @Time : # @Author : # @Detail : import unittest from shanxingapi.testFile import fux_api from shanxingapi.testFile.fux_api import Consumer class ConsumerTestCase(unittest.TestCase): __doc__ = "TestCase" _classSetupFailed = True _cookies = None _shop_id = None...
[ "53180380+huangchunhui521@users.noreply.github.com" ]
53180380+huangchunhui521@users.noreply.github.com
09027e22728fd2c90a2f9e1cff4543b34182fa2d
2113e5eac65f527e86eefcc5001d978c0a3e64a6
/server.py
917de850a3b7d86c2b1821dac7615abfab8110da
[]
no_license
Oksvol/D2-10-Homework
42c0b8bd6873e8ee428f847b173448a0f6bef05b
4f211da25a05137e8b7ea5c9419143782439bbfa
refs/heads/main
2023-02-18T20:03:32.557687
2021-01-13T18:05:03
2021-01-13T18:05:03
329,385,301
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
import os import sentry_sdk from bottle import run, route, HTTPResponse from sentry_sdk.integrations.bottle import BottleIntegration from userconf import USER_DSN sentry_sdk.init( dsn=USER_DSN, integrations=[BottleIntegration()] ) @route("/") def hello_page(): return HTTPResponse(status=200, body="Пр...
[ "noreply@github.com" ]
Oksvol.noreply@github.com
9a725f41172d9ade05875dcb65efc8a1736e28a6
009851177d04a441141113189125a91a26f4dc74
/nodejs-mobile/deps/openssl/config/archs/linux-x32/no-asm/openssl.gypi
cf044b5b7feea81208deb55bcc6f1b1ad4e9f131
[ "MIT", "LicenseRef-scancode-unicode", "Zlib", "ISC", "LicenseRef-scancode-public-domain", "NAIST-2003", "BSD-3-Clause", "BSD-2-Clause", "Artistic-2.0", "LicenseRef-scancode-unknown-license-reference", "NTP", "LicenseRef-scancode-openssl", "ICU" ]
permissive
xuelongqy/cnode
a967f9e71315b10d3870192b4bbe2c341b196507
ac256264d329e68b6c5ae3281b0e7bb5a95ae164
refs/heads/master
2023-01-30T11:23:41.485647
2020-03-25T05:55:13
2020-03-25T05:55:13
246,811,631
0
1
MIT
2023-01-07T15:54:34
2020-03-12T10:58:07
C++
UTF-8
Python
false
false
25,516
gypi
{ 'variables': { 'openssl_sources': [ 'openssl/ssl/bio_ssl.c', 'openssl/ssl/d1_lib.c', 'openssl/ssl/d1_msg.c', 'openssl/ssl/d1_srtp.c', 'openssl/ssl/methods.c', 'openssl/ssl/pqueue.c', 'openssl/ssl/record/dtls1_bitmap.c', 'openssl/ssl/record/rec_layer_d1.c', '...
[ "59814509@qq.com" ]
59814509@qq.com
f1e0cce2582fadbf805d801d420991f393e8ca75
0728138c0c59305b410f1687ba3d32c656990ad3
/social/backends/persona.py
c6ab197365f4b9367db6d30473a4ca871f4df107
[ "BSD-2-Clause" ]
permissive
rhookie/flask_reveal
82b2dd2f53ca03fc5f4a07f1c12c8d8680fc8eb4
5c8c26c8686b4ee9a952a92a8150a18995dc778b
refs/heads/master
2021-05-07T05:04:43.887058
2017-10-10T16:52:49
2017-10-10T16:52:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
""" BrowserID support """ from social.backends.base import BaseAuth from social.exceptions import AuthFailed, AuthMissingParameter class PersonaAuth(BaseAuth): """BrowserID authentication backend""" name = 'persona' def get_user_id(self, details, response): """Use BrowserID email as ID""" ...
[ "ciici123@hotmail.com" ]
ciici123@hotmail.com
3d03517f3547f991cdc1626ffa4deed8f3f04736
6f47b0cc1b80d9fe5cdbab9f54def092050d87f7
/A05-09/validators/validators.py
0f8febe2f1c47b83fef1bfa529b710397a150a3f
[]
no_license
alexovidiupopa/Fundamentals-of-Programming-
024cb4d20be2bab3372714bbf2aa493ce5193082
9d557a0b82ef87e46a716a3506939aaf9a5f5ffb
refs/heads/master
2020-03-31T09:01:05.685430
2019-01-17T15:04:08
2019-01-18T11:59:25
152,080,329
0
2
null
null
null
null
UTF-8
Python
false
false
2,515
py
from errors.errors import ValidError import datetime class StudentValidator(object): ''' the class to validate if a student is correctly inputted ''' def validateStudent(self,student): errors = "" if student.getID()<0: errors+="Invalid id" if student.get...
[ "popaalexovidiu@gmail.com" ]
popaalexovidiu@gmail.com
ef1dee427fd1886305f8a5488e392f4572706fde
bc9cb3f0f104778026ca6f3a07595dd5d6ce840f
/DIA_01/introducao_python/aula/linguagem_python/05_conversao_de_tipos/exemplo_03.py
ba7db84a4bd8944411f327a1af919b84d29843a2
[]
no_license
JohnRhaenys/escola_de_ferias
ff7a5d7f399459725f3852ca6ee200486f29e7d4
193364a05a5c7ccb2e5252c150745d6743738728
refs/heads/master
2023-01-12T11:30:46.278703
2020-11-19T14:59:10
2020-11-19T14:59:10
314,278,831
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
# Convertendo float para string real = 1.23 print(real) print(type(real)) print() string = str(real) print(string) print(type(string))
[ "joao.estrela@sga.pucminas.br" ]
joao.estrela@sga.pucminas.br
09b2b9ce9f10a6ff28cd54739a2cd1fa4975567f
d0ec18e7111bd96cf4a5ed5336c4878a17f13255
/config.py
cdd9028d4c01177b55efe73cc336e149b9772f29
[]
no_license
elCalmo/Buddylift
21e310d604ee5d49bd86ca4bd2834e9bc646fcad
7beac9facc5b2ddb369103322293ba00a88d8fb2
refs/heads/master
2020-05-01T00:16:53.682749
2019-03-22T15:35:03
2019-03-22T15:35:03
177,165,302
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) secret_key = "~Xl\x84A\x95\xec\xca\x0c\x18\x86`%\\\xef\xa0\xd8\tV\xd8\xc3\xf2\x1dd" class Config(object): SECRE...
[ "noreply@github.com" ]
elCalmo.noreply@github.com
bf066b0c96bc34015aad76b1865d66ea72737187
ba527be278797cf60d7c34bd8dae7c56ceb35820
/scripts/model_tuning.py
91b654dca0e95496b245d8f2b1f3b5d4ea90f9e1
[]
no_license
bl-m/HomeCredit
a9ee23675bc9adb3ff981e91dcc2a86ccad11d0f
e60e02a4e54861981b7491a26ad3d5489376cbcc
refs/heads/master
2022-12-27T04:10:30.429719
2020-09-19T09:54:26
2020-09-19T09:54:26
296,838,836
0
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
"""Model tuning scripti calistiginda hyperparameters klasörüne iki sonuc uretecek: hyperparameters.pkl lightgbm_model.pkl """ import os import pickle from lightgbm import LGBMClassifier import pandas as pd from sklearn.model_selection import GridSearchCV lgbm = LGBMClassifier() lgbm_params = {"learning_rat...
[ "m.vahitkeskin@gmail.com" ]
m.vahitkeskin@gmail.com
688b77feb6f806d7f71b863600adf9b1853ed15a
20496b6f0e3b89e1d68d8f062cd0e62d32a1a1ad
/assn2/countchar.py
5aaa5a7729676d8cd2a85d27b3719c6f11ef9fd4
[]
no_license
sushil246/myfirstrepo
9a5636dd4b1475fb21009b6a336d5fc450c52789
3b76be6c3c348188f82d92eae065b7fafef2a829
refs/heads/master
2020-07-05T20:00:50.573268
2019-09-17T13:14:35
2019-09-17T13:14:35
202,757,980
0
0
null
2019-08-16T16:38:35
2019-08-16T15:59:14
HTML
UTF-8
Python
false
false
290
py
dictc = {} inp = raw_input ("Enetr the String for Char to be counted \n") def charcount(inp): for i in inp: if i in dictc.keys(): dictc[i] +=1 else: dictc[i]= 1 for k ,v in dictc.items(): print (k , v) print(dictc) charcount(inp)
[ "test@xyz.com" ]
test@xyz.com
bbf650f23013a510fc45f9db197e856f4b58345a
c47f5ce7cc9b4ab5bc1640c5cc7457b239a17bb4
/project_counter/urls.py
e2e842c6db0ee0a0dbcada7f70f3e5190ad4e353
[]
no_license
Nathan-B21/django_counter
97e7b2a8f63c58efebd3f341a3f24bcc11effb46
83f4bb49fcd47101434184c494f301a0b1c69c78
refs/heads/main
2023-03-21T11:03:34.601541
2021-03-18T22:08:54
2021-03-18T22:08:54
349,229,866
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
"""project_counter URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
[ "nathanbludworth@gmail.com" ]
nathanbludworth@gmail.com
19b229e6e52bf90036dbd810bcd8227145b3ad0a
764d2597021f3bb39a4076a96cb976e44b12b3d8
/chatbot.py
220b52f2fd8e72e676214aad08002ed7dbe6c53e
[]
no_license
tristanbriseno/chatbot.py
50ef213ae2e928254b86319907f16a910737b38d
c395ad8501d8478a98d1d55eb9bc765e75841e68
refs/heads/master
2022-12-18T05:09:37.388849
2020-09-22T21:10:04
2020-09-22T21:10:04
297,402,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
from random import choice #I basically used the example that was provided for this project as a blueprint for my chat bot. #what is happening here is that the code is using a psudo-code called random that acts as an rng and selects amoungst the choices provided. def get_rude_bot_response(user_response): #Here I am defi...
[ "noreply@github.com" ]
tristanbriseno.noreply@github.com
2bb80d3e76ad8eeb95f106c44017b8529377a982
b715c79f52cf2c95927c19edf8f6d64f5322bf7d
/PJLink/start_kernel.py
94e029381f90239bda03ffb6c2dba92292df92be
[ "MIT" ]
permissive
sunt05/PJLink
4d6805b07070c0a2c7452464358ebcf075eeabb0
cd623efebf4ddae8c5ea75b3ee08fe9819e78b40
refs/heads/master
2020-03-29T05:46:10.707576
2018-09-20T07:36:51
2018-09-20T07:36:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,842
py
"""start_kernel is a convenience script for starting a kernel thread in python """ import sys, os, argparse sys.stdout.flush() true_file = os.path.abspath(__file__) sys.path.insert(0, os.path.dirname(os.path.dirname(true_file))) from PJLink import * ### I should do a lot more argparsing... but I don't parser = ...
[ "b3m2a1@gmail.com" ]
b3m2a1@gmail.com
eec70be6f1347e0c67b92c7a3a0234739131b6ec
41d579a0e17b9fb6b1994168f1a1857788e850c2
/part03-e08_almost_meeting_lines/src/almost_meeting_lines.py
ac63d387528cda8632354b0e60ff99788a96fd4e
[]
no_license
clementeqp/Analisis_de_Datos_Python_2021
9daac062e8b64357d56592d65bdbd2cfb79eecc3
7c1025b974fde8ffee755d63a72329b84c965813
refs/heads/master
2023-06-19T03:25:44.346580
2021-07-11T07:00:14
2021-07-11T07:00:14
383,727,665
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
#!/usr/bin/python3 import numpy as np def almost_meeting_lines(a1, b1, a2, b2): return [] def main(): a1=1 b1=2 a2=-1 b2=0 (x, y), exact = almost_meeting_lines(a1, b1, a2, b2) if exact: print(f"Lines meet at x={x} and y={y}") a1=a2=1 b1=2 b2=-2 (x, y), exact = al...
[ "clementeqp@hotmail.com" ]
clementeqp@hotmail.com
98fd062a3240a90df5b99feb6e74d4d6a0896bba
a6dc4a3fca7b55c7db4054dd38c30769ce0b1f93
/ap_flow/validation/__init__.py
cbe591f09ed712045bc95d0c57fd640dd73e052f
[]
no_license
paolostyle/assignpro-api
e989493275db82176f810da86faf068f62983be2
04e4907398661bf585dbb4e447a1100d652b222f
refs/heads/master
2020-04-13T08:53:28.392281
2019-01-27T16:09:49
2019-01-27T16:09:49
163,095,122
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
from .request_validator import get_request_validator
[ "tuptus95@gmail.com" ]
tuptus95@gmail.com
86ca70ec064a1b497a8d74d0e3d0844b4fa7c668
3e1d9a25426e2a157a69f3c4c6c41b5216deb8de
/LeetCode/Python/Easy/Heaters.py
749d9559b5c23d9ae2cfa22db847e1981c3ed067
[]
no_license
jashansudan/Data-Structures-and-Algorithms
4e420586bc773c5fc35b7ce7be369ca92bf51898
e38cfb49b3f9077f47f1053207f4e44c7726fb90
refs/heads/master
2021-01-12T10:47:05.754340
2018-02-13T01:01:50
2018-02-13T01:01:50
72,697,093
3
0
null
null
null
null
UTF-8
Python
false
false
412
py
class Solution(object): def findRadius(self, houses, heaters): houses.sort() heaters.sort() i, maxDistance = 0, 0 for house in houses: while (i < len(heaters) - 1 and abs(heaters[i] - house) >= abs(heaters[i + 1] - house)): i += 1 ...
[ "jashansudan@gmail.com" ]
jashansudan@gmail.com
d7844833faffeeb6ea09e3c6a4e91c845c8bcd78
b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a
/examples/pwr_run/checkpointing/new_short/feedback/job13.py
70a3df461607c82369d2bf42af52327b64207e16
[ "MIT" ]
permissive
boringlee24/keras_old
3bf7e3ef455dd4262e41248f13c04c071039270e
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
refs/heads/master
2021-11-21T03:03:13.656700
2021-11-11T21:57:54
2021-11-11T21:57:54
198,494,579
0
0
null
null
null
null
UTF-8
Python
false
false
7,222
py
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
[ "baolin.li1994@gmail.com" ]
baolin.li1994@gmail.com
a21e3c1b3fbe2d9f2cafe1555c7569238f005b50
6486ff37959925d992cb34c46635665ebcfd4bb7
/BookmarkServer.py
cd6fdb05990048f088298ce652728e30a48af675
[]
no_license
erichcharlwassermann/ecw-fswb-part-2-lesson-13
5546fc58e3279d73104fc64671bcea5e69075acd
6547299c7cd829e8bcb8dad2ddd555658da19429
refs/heads/master
2021-01-01T16:28:00.169335
2017-07-20T13:29:31
2017-07-20T13:29:31
97,838,639
0
0
null
null
null
null
UTF-8
Python
false
false
3,402
py
#!/usr/bin/env python3 # # A *bookmark server* or URI shortener. import http.server import requests from urllib.parse import unquote, parse_qs import os memory = {} form = '''<!DOCTYPE html> <title>Bookmark Server</title> <form method="POST"> <label>Long URI: <input name="longuri"> </label> <br> ...
[ "erichcharlwassermann@gmail.com" ]
erichcharlwassermann@gmail.com
28289127ec177ea4e6a063f782b3673fbfdb47c9
f6f2576e54f3c4ff9e46be9e97bfe639e5c495cc
/migrations/0002_auto_20160311_2158.py
3ff3016d7094a8742d8de8fb90d1550ae6907e36
[ "MIT" ]
permissive
mback2k/django-app-comments
2bd77fbec50fe37eb1dca10b45f76de7c46c23bb
01ba89bf6c59e908a837a48c92575cc2c9f64d1a
refs/heads/master
2021-01-17T07:10:07.325462
2019-04-27T18:17:27
2019-04-27T18:17:27
24,798,829
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comments', '0001_initial'), ] operations = [ migrations.CreateModel( name='Attachment', fields=[ ...
[ "info@marc-hoersken.de" ]
info@marc-hoersken.de
4cf487e4b92d1e27036830b85c8d01462301077d
b88c7025dac49cf9e933074062c47b04e75a7f42
/test/test_imports.py
be0f39e81206a9504e567f7d43826cd2241231f5
[ "MIT" ]
permissive
theendsofinvention/elib_logging
2e45b574e30f2267266dfcda6af6762fc94f89f1
35f5830830ebe90d48c44a008850b2fd5bb9971c
refs/heads/master
2020-03-20T19:25:52.157944
2018-06-17T14:34:30
2018-06-17T14:34:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
# coding=utf-8 """ Dummy test to make sure everything is importable """ import glob import pytest @pytest.mark.nocleandir @pytest.mark.parametrize('module_', glob.glob('./elib_logging/**/*.py', recursive=True)) def test_imports(module_): module_ = module_[2:-3].replace('\\', '.') __import__(module_) @pyte...
[ "132nd-etcher@daribouca.net" ]
132nd-etcher@daribouca.net
71ab02075251ae94585f95c3374a589be9d31c19
fc0ceb3a10511108d476ace8bf2c9479c72f5802
/pinhole_model/calibrate.py
c4db5d22e4384350ced9a01360375ad3405cb8e6
[]
no_license
robotique-ecam/new_camera_calibration
a824b7e2b1e0878925e65019808870e4be93b7bc
dd0f6d4a4a6e2ea9ae4b847f263cee3a2a607e0b
refs/heads/main
2023-04-23T16:07:03.727814
2021-04-24T17:05:13
2021-04-24T17:05:13
355,595,934
0
0
null
null
null
null
UTF-8
Python
false
false
2,342
py
#!/usr/bin/env python import cv2 import numpy as np import os import glob def get_repo_directory(): return os.path.dirname(os.path.dirname(os.path.realpath(__file__))) # Defining the dimensions of checkerboard CHECKERBOARD = (6, 9) criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) # Cr...
[ "phileas.lambert@gmail.com" ]
phileas.lambert@gmail.com
7ed5b3f8029f75a015c05cd27144545db043b37a
265321bc3ea58920eb6237c999f6d82b3182a96f
/movie-similarity.py
9ec947fdcfc4443ff4e5774e71536929bc1791dd
[]
no_license
redhood95/Spark-with-python
b7681fe12c4f43494ec0db97d4633103e06af2b8
3b5a8372e7d14012e999fed6d9cd537c85705c84
refs/heads/master
2020-03-30T02:19:32.266448
2019-01-04T12:28:14
2019-01-04T12:28:14
150,625,917
0
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
import sys from pyspark import SparkConf, SparkContext from math import sqrt def loadMovieNames(): movieNames = {} with open("ml-100k/u.ITEM", encoding='ascii', errors='ignore') as f: for line in f: fields = line.split('|') movieNames[int(fields[0])] = fields[1] return movi...
[ "yashup1997@gmail.com" ]
yashup1997@gmail.com
d8f1320a6a3259202b7d914635b62a8fcab53267
ce66eb9242372126801a0558dde167a664f6a79c
/rl/tictactoe/player.py
3695a25916d4f61ee6650c39677ed26878dda084
[]
no_license
teerapat-ch/ReinforcementLearningUdemy
3d631a9d2d3d1c20361be31e79faa97d2344045c
aaa4d7d23b228289b362e281c8a721f8c88843ab
refs/heads/master
2022-04-05T20:56:39.650689
2020-02-01T03:41:39
2020-02-01T03:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
import random class Player: def __init__(self, p_index): self.player_character = p_index def play_game(self, board): print(board.get_board()) x, y = [int(x) for x in input("Enter x, y: ").split()] return board.update_game(x, y, self.player_character) def update_state_hist...
[ "teerapat.time12@gmail.com" ]
teerapat.time12@gmail.com
4a738705797adc3d81470876dc1684833b3268cf
8fac5766c811e4758887195094436879abbce69d
/springframework/beans/factory/xml/MockXmlParser.py
b61be6b663eed1134a7ada973012ed88ee2e6d7d
[]
no_license
j40903272/spring-webmvc-python
ac2be1a417006e645f216f9280d0b50d8beb2df0
13c122ab972a6f63bac360f3d9bc7872503a88f3
refs/heads/master
2023-02-13T03:55:18.108152
2021-01-07T19:11:31
2021-01-07T19:11:31
327,655,108
4
0
null
null
null
null
UTF-8
Python
false
false
3,188
py
import xml.etree.ElementTree as ET import importlib class MockXmlParser: def __init__(self, xml_path): self.xml_path = xml_path self.root = ET.parse(xml_path).getroot() self.namespace = self._get_namespace() self.class_ = self._get_bean_instance() def _get_namespace(self): ...
[ "jason.tsai@appier.com" ]
jason.tsai@appier.com
c250ce17de3d4b5cc6706f63c1977f4f2fcee481
d6d20681f41102df3feb2b438ef80569bd73730f
/Uge4-numpy/.history/exercises_20200218170520.py
ca2f210387343db0503dbab4b0b5f8b7d2cf8f1b
[]
no_license
MukHansen/pythonAfleveringer
d0ad2629da5ba2b6011c9e92212949e385443789
4107c3c378f757733961812dd124efc99623ff2e
refs/heads/master
2020-12-22T13:27:19.135138
2020-05-22T11:35:52
2020-05-22T11:35:52
236,796,591
0
0
null
null
null
null
UTF-8
Python
false
false
3,046
py
import numpy as np import matplotlib.pyplot as plt from collections import OrderedDict filename = './befkbhalderstatkode.csv' data = np.genfromtxt(filename, delimiter=',', dtype=np.uint, skip_header=1) neighb = {1: 'Indre By', 2: 'Østerbro', 3: 'Nørrebro', 4: 'Vesterbro/Kgs. Enghave', 5: 'Valby', 6: 'Vanløse',...
[ "cph-mh752@cphbusiness.dk" ]
cph-mh752@cphbusiness.dk
0f5d3af5d770a5812d29d823b50998f95cf288d8
4ce576791c7b3bc0154889143ea4f390417b6411
/dataExecute_machineLearning/weka/chinauincom_pro1/test5/recommed_2.py
9995fec7717dfcb5b7289fe73f713a38fff0ba3f
[]
no_license
wagaman/MachineLearning
847b3b83cc986b26499f31335363d21727e2711b
1fac4f973a75d0207864087dfd01be684d79dc8e
refs/heads/master
2021-01-25T12:49:46.417404
2017-12-21T12:30:45
2017-12-21T12:30:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,110
py
import codecs __author__ = 'sss' ''' 理论: http://www.cnblogs.com/luchen927/archive/2012/02/01/2325360.html 输入的数据: 数据id,用户id, 付费标签类型,信用等级,流量(通过length(num)等级处理),基站,品牌,时间戳 计算每条数据的相似度,根据用户id获取该条数据下一次购买什么品牌的手机 ''' def loadDataSet(filename): dataMat = [] fr = codecs.open(filename, "r", "utf-8") ...
[ "34733853+chinaunicomdandanxu@users.noreply.github.com" ]
34733853+chinaunicomdandanxu@users.noreply.github.com
c4c89d5d3e1fb32817d68cc87ca65704daa85c9b
65595da35fa2fce4526bd811116056e81c02df78
/Create a Blockchain/blockchain.py
59d7adba3e436bcf89d890da8d989a10ce882c18
[]
no_license
tany09/Blockchain
fbddab07b17b476e45910efcc805800998adc16c
18c9dad4c2e3c4faabf9d4c608c4571f2d8561f5
refs/heads/master
2020-03-23T12:35:17.288766
2018-07-19T11:20:24
2018-07-19T11:20:24
141,568,414
0
0
null
null
null
null
UTF-8
Python
false
false
3,254
py
# Module 1 Create Blockchain import datetime import hashlib import json from flask import Flask, jsonify # Part 1 BBuilding a Blockchain class Blockchain: def __init__(self): self.chain = [] self.create_block(proof =1, previous_hash = '0') def create_block(self, proof, previous_ha...
[ "34600671+tany09@users.noreply.github.com" ]
34600671+tany09@users.noreply.github.com
aa34e99e6688b816416a6cb3f0f75eb072591f17
57c8da3715d5c096f9ab1b9fb03f9a3388b74162
/Tracker/models.py
e3acef1131b6727d2116ece6778299c27ae30175
[]
no_license
SRI-VISHVA/HealthX
b269ef3b74248c9f24eda46d37fed5c80251900e
94f8c7d876946ed35262147d214cadcafe1bb613
refs/heads/master
2022-12-30T06:21:05.562037
2020-10-26T05:51:52
2020-10-26T05:51:52
288,995,999
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
from django.db import models from django.utils import timezone from django.contrib.auth.models import User class Meal(models.Model): userfk = models.ForeignKey(User, on_delete=models.CASCADE) name = models.CharField(max_length=15) quantity = models.FloatField() kcal = models.FloatField() date = mo...
[ "srivishvaelango@gmail.com" ]
srivishvaelango@gmail.com
28d18640e9a68b93724b6d7c3ec1fab763060fd7
7567b2e455495f84127f02a4a9d9b837734fdbed
/lab1/z18.py
b34725fa768fb3f2fba209e1360c7d6e7a043f47
[]
no_license
lildauni/python_labs
a473dc6f2be61d8292e1d42a95ea090cae9ab128
0222ab148058f62475102b5b8943057af92b3771
refs/heads/master
2022-09-11T13:24:10.743185
2020-06-04T11:00:48
2020-06-04T11:00:48
263,330,776
1
0
null
2020-05-12T12:50:45
2020-05-12T12:32:03
Python
UTF-8
Python
false
false
133
py
a=input("Введите коефициент А: ") b=input("Введите коефициент В: ") print("x =",-1*int(b)/int(a))
[ "dan.chobulda@gmail.com" ]
dan.chobulda@gmail.com
0b3755e3bd3b34d0e22b926ac2b98f4a59c61376
d19adc3664f65bb529c45e4aceb49a0ac4c49c5e
/Keyblind.py
f812c92afe31f336afd98c79577de3e62357c1cf
[]
no_license
Nikhil-Sudhan/KeyBinds
e04dae9027d493ca43305e6ca23429c2b2351a5c
823b2d912f1e9a411d23d21dff4b460554cd8d87
refs/heads/main
2023-06-05T10:41:15.615211
2021-06-27T15:25:07
2021-06-27T15:25:07
380,772,598
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
import pyautogui as pya import pyperclip import time import keyboard import webbrowser lst = [] def copy_clipboard(): pyperclip.copy("") pya.hotkey('ctrl','c') time.sleep(.1) return pyperclip.paste() def double_click_copy(): pya.doubleClick(pya.position()) pya.click(pya.positi...
[ "noreply@github.com" ]
Nikhil-Sudhan.noreply@github.com
0b932e715a494e4c49568f1ef587818d13da9347
dc197104eb160fbeae1d2b62ec3cb909714b0152
/COMET/misc_plugins/Ueye_camera/pyueye_gui.py
141316d645e8bd951c00c22309973b7dd3816a0f
[ "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only" ]
permissive
Chilldose/COMET
810ecec6f0fe7f544ae8207c25b2176a0145f56b
121e5c0530f5195a8f7c6b8de96a1653322f6e48
refs/heads/master
2021-06-04T10:07:08.830370
2021-05-11T07:37:09
2021-05-11T07:37:09
143,392,965
0
2
MIT
2020-06-05T07:51:01
2018-08-03T07:22:11
Python
UTF-8
Python
false
false
4,915
py
#!/usr/bin/env python # ------------------------------------------------------------------------------ # PyuEye example - gui application modul # # Copyright (c) 2017 by IDS Imaging Development Systems GmbH. # All rights reserved. # # Redistribution and use in source and binary forms, with or without #...
[ "dominic.bloech@oeaw.ac.at" ]
dominic.bloech@oeaw.ac.at
10db9f571de7104e695842119b89770f6cba2767
44e6cd0127f9bf9487ab9c0e4c46222876b45e42
/modele/model_02.py
a073f6721bf5e1a74979ae3622b17c65d2792a5a
[]
no_license
andreimardare05/python-lab-2020
e6f143c69377307e52c8730eb50219928703e651
06e225d3bcc0c1553492e748aeb581062604fbbf
refs/heads/master
2022-11-13T09:34:18.176453
2020-07-15T22:04:56
2020-07-15T22:04:56
279,989,747
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
import re import socket import urllib import hashlib from urllib import request import json import zipfile import os def problema2(url, cheie): result = json.loads(request.urlopen(url).read().decode()) return result[cheie][-1] print(problema2("https://pastebin.com/raw/PzM422T2", "abc")) def problema4(list...
[ "andreimardare05@outlook.com" ]
andreimardare05@outlook.com
3867bbbc7662fb1349d72bd81ecf53cca464d716
004c631d021403efd85febadd8371a60780a7a82
/Perceptron.py
263a22e30eafb34997f2f760e9b03c8f2b3ea672
[]
no_license
toderesa97/NeuralNetworkRepo
d4c0cccbe2925f31e747256c87f2dcd60fc94db7
569a695d61612941021197bcbda13444741412c7
refs/heads/master
2021-04-15T15:30:07.910614
2018-03-25T12:30:32
2018-03-25T12:30:32
126,158,241
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
# This is the most basic example but crucial to have a # firm grasp about what's going in the background when using NNs # This models establish a line to separate two kind of samples import numpy as np # defining the dataset to be used x_data = [[0, 0], [10, 0], [0, 10], [10, 10]] y_dat...
[ "toderesa97@gmail.com" ]
toderesa97@gmail.com
954f7db8ba47c3b81338c42b66bf38e685e12494
ef30c9dd420059da03787352e6def4196b25d762
/6/test.py
01ba5859268599c86783a4a8228957f38c53b206
[]
no_license
drahcirD/adventofcode2020
960e4c93c7bf315399ab48ed09413d7e2fb62cb9
7ed94896fa40e4941273dd55eeee8e5b4face385
refs/heads/main
2023-02-07T17:26:48.369991
2020-12-20T22:01:52
2020-12-20T22:01:52
318,323,247
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
import pytest import pathlib from main import get_result, get_result2 def test_1(): data = [line for line in pathlib.Path("input_test.txt").read_text().split("\n\n")] assert get_result(data) == 11 def test_2(): data = [line for line in pathlib.Path("input_test.txt").read_text().split("\n\n")] assert...
[ "richard.ericsson@outlook.com" ]
richard.ericsson@outlook.com
3be13651bbed4a538066d92ec783895a05376b2a
34f608b301355749f8578ea21f078b0f0642a065
/utils/misc/__init__.py
b2a3996cc82034798d9ea66b7f4a8939766fd909
[]
no_license
memew1se/TelegramBot
cc3d146fad171e829db45382a51ac02696de961d
36152a156055a9a2cae6cf396635bc0a6c6a30f3
refs/heads/master
2023-03-10T20:26:56.591407
2021-02-25T20:06:27
2021-02-25T20:06:27
273,334,468
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
from .notify_admins import on_startup_notify from . import parcer __all__ = ["on_startup_notify"]
[ "63961428+memew1se@users.noreply.github.com" ]
63961428+memew1se@users.noreply.github.com
738217bc077d05965d8fd80fd34250cc875ad0d4
d6d6b8148d41082baf2458d74d3377ad0d93e4af
/python/src/infoflow/solver/pathedge.py
b988e45175385aafa40b32e7551aa3983af028c6
[]
no_license
kordood/jpype-example
58363694ae4a46d7d59a2ca1299c7f19077d006b
109cabc2de30f2a29073c2d45fa6c2f0f3dcc365
refs/heads/main
2023-08-28T12:53:34.169025
2021-10-20T04:08:12
2021-10-20T04:08:12
398,946,369
1
1
null
2021-09-22T08:16:17
2021-08-23T02:05:15
Python
UTF-8
Python
false
false
163
py
class PathEdge: def __init__(self, d_source, target, d_target): self.target = target self.d_source = d_source self.d_target = d_target
[ "gigacms@gmail.com" ]
gigacms@gmail.com
694c27356be2599a64a8f60afce851dbb984aa19
11c2e1b6fada746b71e0bd9575f5936a352f14df
/Compare.py
d815227a2fcbf91b0d4faed9af68ce50ace23ec5
[]
no_license
Eglopez/Python-GUI
6e3e49f25ebb9f60b41d1981c46d6852f5a5eb51
05d7c71206d293aea2e8a32a21809f06d9fdcb2c
refs/heads/master
2020-07-05T08:34:26.338755
2019-08-20T00:55:45
2019-08-20T00:55:45
202,592,236
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
class Compare(): def __init__(self): self.alphabet = "!@#$%&/()=?¡¿¡[]{*}012345678890abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVwXYZáéíóúÁÉÍÓÚüÜ" def compare(self,obj1,obj2): obj_1 = "" obj_2 = "" if(type(obj1) == 'int'): obj_1 = "%s" % obj1 i...
[ "eduardolopezlainez2001@gmail.com" ]
eduardolopezlainez2001@gmail.com
9fee9893560dd85c45e7f6e69482defc369f6656
918dbe6a4840e46bae0207d0bb62b8563db595c0
/setup.py
0fbc3dbf0f87014563a70114aee186fd26cee2c2
[ "MIT" ]
permissive
leaprovenzano/yabump
1846ea87346eeed1805c4ff4e0099116f231b610
ceab6ffdd36167e511c3bd7b6b064346e3ce3e2e
refs/heads/master
2020-12-03T07:05:09.728621
2020-01-01T20:06:12
2020-01-01T20:06:12
231,236,247
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('requirements.txt') as f: requirements = f.read().splitlines() test_requirements = ['pytest'] setup( author="...
[ "leaprovenzano@gmail.com" ]
leaprovenzano@gmail.com
5d978145f8d58e4ca97c9537773c5ee11431fccb
539f531d07faf4d86ccc548e2b6dae706056a906
/Environnement/dags/Batch_Longueur_Chaine.py
baf53e3917fcb9dd10dc3761bebaa8cf8db98556
[]
no_license
Allan06/TPT-Airflow
f9c7202982fcd63a402584ae6569254b1cf43cfe
8461684e8f6c6c1923d1681e417e483a20a67a9b
refs/heads/master
2023-04-10T23:40:36.397472
2021-04-18T01:19:02
2021-04-18T01:19:02
350,856,214
0
0
null
null
null
null
UTF-8
Python
false
false
5,546
py
from airflow import DAG from airflow.operators.python import PythonOperator from airflow.operators.bash import BashOperator from airflow.utils.dates import days_ago from airflow.providers.mysql.operators.mysql import MySqlOperator import pandas as pd import numpy as np import glob import os # ======================...
[ "allanpajany@hotmail.fr" ]
allanpajany@hotmail.fr
4d7a7650d95d9418c7a99e03149894a0c5c686dc
bbe447a740929eaee1955bd9c1517cf760dd5cb9
/keygrabber/adwords/adwords_api_python_14.2.1/adspygoogle/adwords/zsi/v200909/CampaignService_services.py
f1101c95aafb53ba4c75e90dcf48c195df9f883f
[ "Apache-2.0" ]
permissive
MujaahidSalie/aranciulla
f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893
34197dfbdb01479f288611a0cb700e925c4e56ce
refs/heads/master
2020-09-07T02:16:25.261598
2011-11-01T21:20:46
2011-11-01T21:20:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,176
py
################################################## # CampaignService_services.py # generated by ZSI.generate.wsdl2python ################################################## from CampaignService_services_types import * import urlparse, types from ZSI.TCcompound import ComplexType, Struct from ZSI import client import...
[ "vincenzo.ampolo@gmail.com" ]
vincenzo.ampolo@gmail.com
d3200416507538355822402d48c6102e6eac1710
db1872a7014cc9422a233df843a705380fdc3d5c
/neural_network.py
aa619c462fdea8ea056ea56150652777cbf911d3
[]
no_license
Mithul/bot-bot
2a9c57b912fd16bfc17ab435ced73efb08b37f45
53cbfd63cac51f87e24cf5838d369ed30638819c
refs/heads/master
2021-06-16T14:23:52.917258
2017-05-10T20:19:43
2017-05-10T20:19:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,086
py
""" This module implements the neural network class and all components necessary to modularize the build/use process of the neural network. """ import numpy as np import pickle import os import h5py # create NN using Keras from keras.models import Sequential, load_model from keras.layers import Activation from keras.o...
[ "shriya.sasank@gmail.com" ]
shriya.sasank@gmail.com
25c0e065a6e294880f37e9b19cf3dcd53692e8bd
d9dc062bac568fd2df5ad327a74049d21dce8dcf
/app/modify.py
3cc743d190ada0a8c9ed3328e6c0b550d9108715
[]
no_license
saschavv/ProjectExplorer
7975f0bbe0425d354e3f6b996f1e2d5b9f452477
6d5853c6dbec1097b0bdbe56d5a136dc502131cb
refs/heads/master
2022-07-13T16:03:02.748821
2020-09-22T08:12:06
2020-09-22T08:12:06
190,183,702
0
1
null
2021-03-20T01:06:29
2019-06-04T10:56:19
JavaScript
UTF-8
Python
false
false
833
py
import shutil from app.models import * def copyTestOutput( locator, test ): srcDir = locator.srcdir tstDir = locator.testdir baseTest = test.split('/')[-1] srcFile = os.path.join( tstDir, test + ".dir/" + baseTest + ".new" ) destFile = os.path.join( srcDir, test + ".res" ) copyTxt = 'cp ' + srcFile + ...
[ "saschavv@gmail.com" ]
saschavv@gmail.com
a209476fece09e7ebc9fe98d6643923482690a0d
4fad94751f12ca0a0665a15e47a51c2273a94f18
/Artificial Intelligence/Lab_2_3-2019/app.py
991daeb13d70895241d56a8a968ed54b59e45fbb
[]
no_license
andreihaivas6/University
9354a0f2208b32ffd259d093fea2b4ea56d62a54
dc24608cffce80cd4b285d586747cb5f12f618f9
refs/heads/master
2023-06-16T15:56:21.373371
2021-07-11T23:24:46
2021-07-11T23:24:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,843
py
import random import time import copy MOD = 1000000007 def pow_mod(val, pow, mod): if pow == 0: return 1 if pow % 2 == 1: return (val * pow_mod((val * val) % mod, pow // 2, mod)) % mod return pow_mod((val * val) % mod, pow // 2, mod) pow_31 = [pow_mod(31, i, MOD) for i in range(1, 7)] ...
[ "alexoloieri2014@gmail.com" ]
alexoloieri2014@gmail.com
06987544b5a7feb1dbbc7995c0edfea534eb7a34
34fb963c4c942d7d9e64d91deb97f58136f32861
/resources/viewmodels.py
5826fdc12d9d76b81598bc85be256eef22c9d94a
[]
no_license
dalelicious/iwantremote
180ca95429fdf9af305c40aeaaf43c0bce5ac52c
70509125e9981a2624c4d05f8de60ead194db154
refs/heads/master
2023-06-01T08:40:42.238496
2021-06-24T10:37:03
2021-06-24T10:37:03
209,974,773
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# Django from django.utils import timezone # Resources from . models import Resources class ResourcesViewModel(): def get_blog_by_name(self, blogTitle): """ Get blog by id """ blog = Resources.objects.get(slugTitle=blogTitle) return blog def get_blog_list(self): """ Get all blog """ blog_li...
[ "dale.torre@ubiquitygs.com" ]
dale.torre@ubiquitygs.com
bed65b63e3e76b76da344efd1ac584c64822f539
ab8b338fe5c7b522241feb4f7bb71950509c7a06
/python/p61.py
e93fb6ba564833d919ab32cc86b9422c44f872a5
[]
no_license
amomin/proje
5d111fa413a493809356cafecb3a2c017bc29f21
480f08b028cd56eb99a1c3426508d69ffe578f05
refs/heads/master
2016-09-06T18:18:28.652006
2015-02-28T20:26:28
2015-02-28T20:26:28
24,754,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
# only need to check the octagonal numbers from 19 to 58 import math def getPoly(symbol,i): if symbol==3: return i*(i+1)/2 if symbol==4: return i*i if symbol==5: return i*(3*i-1)/2 if symbol==6: return i*(2*i-1) if symbol==7: return i*(5*i-3)/2 if symbol==8: return i*(3*i-2) def inRange(f,x): if (...
[ "amomin@evermight.com" ]
amomin@evermight.com
720d8fc3a3dbf99624038092d53a52d7a9ca4d0b
3b8341161e841e8ccce8b5065e1c0a8b028f44b5
/taskapp/views.py
ac9ec5c0550039042628f20dfde8e567d7b73fd5
[]
no_license
zendergo2/task-manager
fbe793f708f70d1fd7109ccc9dbac51316d2b725
648db5d27b5eaccfcf5fd0cf1b2117b662c1402b
refs/heads/master
2020-06-02T13:24:16.680838
2015-04-08T16:43:40
2015-04-08T16:43:40
32,353,086
0
0
null
null
null
null
UTF-8
Python
false
false
2,796
py
from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.shortcuts import render, get_object_or_404 from taskapp.models import Category, Project from taskapp.forms import AddCategoryForm, AddTaskForm, AddProjectForm, AddProjectTaskForm def index (request): category_list ...
[ "jbabb@mail.bradley.edu" ]
jbabb@mail.bradley.edu
4a98bbe875ea92033cf4104a4afb702dc69a4f41
8873755db1c83c077921f13dc2ce2af54326861c
/neuralNetwork.py
da687d60ac4250d1f9c600f7fa3c459ce1933f36
[]
no_license
sgandhi101/TSLA_Prediction
72de42c18a505e3e083329099655e45460472599
cc5f664d302c1e1d421e96d3d89655cbc79b178b
refs/heads/master
2023-01-22T01:52:25.138625
2020-11-30T19:05:09
2020-11-30T19:05:09
316,622,961
0
0
null
null
null
null
UTF-8
Python
false
false
2,039
py
# DO *NOT* RUN ON LOCAL COMPUTER, SEE NOTE BELOW BEFORE ATTEMPTING import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.neural_network import MLPClassifier from sklearn.metrics import classification_report, confusion_matrix, accuracy_sco...
[ "sugandhi@iu.edu" ]
sugandhi@iu.edu
5f4ec956ecc9f97de26bd14d818836655e018107
ba9d6e33133709eb8ef9c643e50646596f8ab98b
/utils/image_drawer.py
31b9ccd24961ea020c922262bd1a61d9c0f6e9bd
[]
no_license
otniel/computer-vision
2eb5588d7662ada0999001083e5562e3c3e69fd1
82430fd60c21d3f6c6609b429b051b25526b0102
refs/heads/master
2021-01-25T07:07:51.592712
2015-05-18T17:29:10
2015-05-18T17:29:10
29,542,857
1
0
null
null
null
null
UTF-8
Python
false
false
879
py
from Tkinter import Tk, Canvas, Frame, BOTH, NW import Image import ImageTk class ImageDrawer(Frame): def __init__(self, window, image_path): Frame.__init__(self, window) self.window = window self.image = Image.open(image_path) self.image_width, self.image_height = self.image.size...
[ "otnieel.aguilar@gmail.com" ]
otnieel.aguilar@gmail.com
f338508b43ff286c18818c649354e6ab8c88919d
c87727a77d17eef2afebc72c29e3ee347d05737c
/task3_1.py
930e5fa01a350f9dbb1fc7fb34787ec805a133bf
[]
no_license
ikosolapov1983/Homework3
5331d8e2afec69e2752b74317187ddb0883e81d0
20482824f134fae66e46a8b03a48c0df486d4de5
refs/heads/master
2020-08-05T00:45:59.740475
2019-10-05T12:14:08
2019-10-05T12:14:08
212,337,544
0
0
null
null
null
null
UTF-8
Python
false
false
56
py
x = 0 while x <= 10: print(str(x) + "!") x += 1
[ "ikosolapov@hotmail.com" ]
ikosolapov@hotmail.com
1134bd350cd0de3c935b8bc8e1ae7403c7749842
5de046cc4849f52a5737c2591b2c0144b9981103
/policy_gradient.py
b724c24eca9a498c044fd4cd71ec650f38370df7
[]
no_license
lionelblonde/cartpole-pg-intro-tf
36300d015c1e328103b45d5c76283f4249424dfa
1c896c991d6b758a379685708f6348ffc1115537
refs/heads/master
2020-03-06T18:48:44.028750
2018-03-27T16:31:15
2018-03-27T16:31:15
126,859,614
0
0
null
null
null
null
UTF-8
Python
false
false
8,489
py
import gym # from gym import wrappers # import math import random import numpy as np import tensorflow as tf # since we now use gradients import matplotlib.pyplot as plt # This function is useless here: tf provides tf.nn.softmax() def softmax(x): # x is a vector # substract by the max for num stability - mathem...
[ "lionel.blonde@gmail.com" ]
lionel.blonde@gmail.com
7c856f3effb8ea92ca241b2013673a63a53dd7ef
dfdb55ae1a05edada92d3840c67dec7e2d4da1e9
/realEstate/listings/views.py
171dc2333876d55e475fbc872e423f7d2047e42a
[ "MIT" ]
permissive
OmarSalah95/Django-Toy
17ee3646665c9e1bcc8ecbb354142f8dadd74ed5
4899b5f9e30dae0623aa9a3a134e375cacccea10
refs/heads/master
2023-04-27T12:06:05.813683
2019-11-18T00:49:59
2019-11-18T00:49:59
222,306,035
0
0
MIT
2023-04-21T20:47:56
2019-11-17T20:15:03
CSS
UTF-8
Python
false
false
281
py
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'listings/listings.html') def listing(request): return render(request, 'listings/listing.html') def search(request): return render(request, 'listings/search.html')
[ "42569856+OmarSalah95@users.noreply.github.com" ]
42569856+OmarSalah95@users.noreply.github.com
ca13d2b3191f5ff4ffcec89c122903e1a5f6e3c7
1ee27a7d9d01d707f0a61b6f3aab7c5c88cd8e20
/9/OPcenter-verifyCode/webmoni/migrations/0004_auto_20180509_1134.py
7fd30d54c41c527bab0803efd4f9378b14f557c1
[]
no_license
lin-zh-cn/1test
6dbdd9a042b70d6131dec3ab1b980ee8c6a917bf
1e6ccdde7b5d18c70bba06a79f186952f6f02072
refs/heads/master
2020-03-19T07:42:00.634669
2018-06-21T10:34:57
2018-06-21T10:34:57
136,140,954
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2018-05-09 11:34 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webmoni', '0003_auto_20180509_1031'), ] operations = [ migrations.RenameField( ...
[ "scr_memory@foxmail.com" ]
scr_memory@foxmail.com
fdd25e91bdb09e58d4f219ef3803e81fd78e0545
6493bc4fdf2618b401c7c2acf6e04567a27a1b00
/klearn/kernels/__init__.py
1a14748333710a3cb0f1405360498e01722b3acd
[]
no_license
mpharrigan/klearn
75dc5bfea65ed7018fd42d7eb502b32c4ff7a007
697e62993cf3a42444cc9115f8fea0425950fec2
refs/heads/master
2021-01-16T00:31:34.616280
2014-05-21T22:50:10
2014-05-21T22:50:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from .baseclasses import AbstractKernel from .dotproduct import DotProduct from .polynomial import Polynomial from .gaussian import Gaussian
[ "schwancr@stanford.edu" ]
schwancr@stanford.edu
305be6d509218ff7f44913a393a6d3dd1e53e492
9d8ab91c052ec637b396d07862225d331b3084e3
/find_uid.py
d4122bff071adcfc72a9c1d04f092405b1b5f916
[]
no_license
yazdipour/security-assignments
13ed50cf2b081ad63bd11920491dc00995e2c30d
30b49442bc0bb5b415f200e1202e4b0f40439a57
refs/heads/master
2022-11-29T02:30:53.200737
2020-08-03T14:03:09
2020-08-03T14:03:09
261,142,088
0
0
null
null
null
null
UTF-8
Python
false
false
198
py
import struct import subprocess uid = subprocess.check_output('id -ur', shell=True) iuid = int(uid) xuid = hex(iuid) print xuid ##0x3e8 buid = struct.pack("I", iuid) #'\xe8\x03\x00\x00' print buid
[ "shahriar.yazdipour@outlook.com" ]
shahriar.yazdipour@outlook.com
26654af914453d575f2b21bbae4b6a0ee5ba6035
a49acc754f99706a74270ba867d11b7851131160
/apps/users/models.py
378b91f30f559ed736d1cc026a3438ef59ff4d9f
[]
no_license
xr1627119275/MxOnline
ff45dc4c2b116bad6c9609b7b636ee15827609de
d22296ef7d79a62b835f2349b71791d11772910e
refs/heads/master
2021-07-21T07:00:23.608556
2017-10-30T07:39:38
2017-10-30T07:39:38
108,816,759
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
# _*_ encoding:utf-8 _*_ from __future__ import unicode_literals from datetime import datetime from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class UserProfile(AbstractUser): nick_name = models.CharField(max_length=50,verbose_name=u"昵称",default='') ...
[ "1627119275@qq.com" ]
1627119275@qq.com
c63339a1a53f68331bf60b14c7938e6240219f5a
826e10209af5462022e3aff1511f1e48842d32a4
/promoterz/representation/oldschool.py
99a894122cd5eb447a3eeae0a2347854961cdb4b
[ "MIT" ]
permissive
IanMadlenya/japonicus
0309bbf8203525770e237b2b385844ef4a3610ae
112aabdd3362ca6259ddbe57440cdd583a674022
refs/heads/master
2021-04-15T12:06:15.027249
2018-03-20T22:23:43
2018-03-20T22:23:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
#!/bin/python import random import json import os from copy import deepcopy from .import Creator from deap import base from deap import tools from deap import algorithms import numpy as np from .import Creator from . .import parameterOperations def constructPhenotype(stratSettings, individue): # THIS FUNCTION...
[ "gabriel_scf@hotmail.com" ]
gabriel_scf@hotmail.com
1a90032ae1d4bb24c7395045105044791c01642b
81f73066919c22cb5649a9095233d2edf92f4a1b
/data_process/data_process/data_process.py
afdb638cd5e3ec846c817eb74167fb8e5288886d
[]
no_license
jity16/Campus_Network_Management
20d4ea2d2ae29f1bad9f3dfe1c85e7158ec7c371
bff5f8897dc7fa36e96bc963d22524a9cd2bbcde
refs/heads/master
2020-06-17T12:30:39.428441
2019-07-09T03:30:03
2019-07-09T03:30:03
195,925,194
1
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
class Host(): def __init__(self): self.state = "" self.ip = "" self.portlist = [] class Port(): def __init__(self): self.id = "" self.state = "" self.name = "" import os import pickle from xml.dom import minidom def get_attrvalue(node, attrname): return n...
[ "jity16@mails.tsinghua.edu.cn" ]
jity16@mails.tsinghua.edu.cn
56799809ff84f9be3ec51a12f546d1c89424b975
d305e9667f18127e4a1d4d65e5370cf60df30102
/tests/ut/python/dataset/test_random_crop_and_resize_with_bbox.py
2727325e007ba40b6bb6c02558a5846a078903a1
[ "Apache-2.0", "MIT", "Libpng", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "IJG", "Zlib", "MPL-1.1", "BSD-3-Clause", "BSD-3-Clause-Open-MPI", "MPL-1.0", "GPL-2.0-only", "MPL-2.0", "BSL-1.0", "LicenseRef-scancode-unknow...
permissive
imyzx2017/mindspore_pcl
d8e5bd1f80458538d07ef0a8fc447b552bd87420
f548c9dae106879d1a83377dd06b10d96427fd2d
refs/heads/master
2023-01-13T22:28:42.064535
2020-11-18T11:15:41
2020-11-18T11:15:41
313,906,414
6
1
Apache-2.0
2020-11-18T11:25:08
2020-11-18T10:57:26
null
UTF-8
Python
false
false
9,546
py
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "513344092@qq.com" ]
513344092@qq.com
6c6dfcc9661470d7e551972b314a494d43f7f4b6
01082af86cad0824cbc33b87320adea3eef6ac11
/classstatd/admin.py
7ad1845474bee7eb57607c77f98e1cd6ad0263d4
[]
no_license
hanul500/dreamy
224f259665aed64db05ad773d3b1403899c59183
26927c771ec3735d07363696153d4e4fa23ce56b
refs/heads/master
2020-12-04T22:34:25.100751
2020-01-05T19:07:38
2020-01-05T19:07:38
231,923,912
0
0
null
2020-01-10T17:31:54
2020-01-05T13:47:14
JavaScript
UTF-8
Python
false
false
189
py
from django.contrib import admin # Register your models here. from .models import * admin.site.register(Classstatinfo) admin.site.register(stat_mat_rel) admin.site.register(stat_tool_rel)
[ "hanul500@naver.com" ]
hanul500@naver.com
a582cff63bfa1208999424ac532f639d57e4946c
ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a
/AtCoder/Grand 039/A.py
2ec2212c13eebe7ef3a938d8513f35a3b69c6e01
[]
no_license
cormackikkert/competitive-programming
f3fa287fcb74248ba218ecd763f8f6df31d57424
3a1200b8ff9b6941c422371961a127d7be8f2e00
refs/heads/master
2022-12-17T02:02:40.892608
2020-09-20T11:47:15
2020-09-20T11:47:15
266,775,265
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
S = input() K = int(input()) import random import string def count(string): total = 0 i = 1 while i < len(string): if string[i-1] == string[i]: total += 1 i += 1 i += 1 return total if S == len(S) * S[0]: res = (K * len(S)) // 2 elif S[0] == S[-1]: ...
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au