blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
f5931a74c29d4b0695b883e6047712225254bafe
7750b9250ac1ec5c4ad16aed4a2a83f51eeb3b84
/htmlConstructorDiff.py
794547a32af396115fc2cf6639e2a550117882ff
[]
no_license
testerman77/somecode
a65e3da54663d5108cfca80ba2ea8b3a60e1de4c
0a908943c982eb1e895a87222ba9e3100f938a09
refs/heads/master
2021-01-13T05:16:40.479578
2017-02-08T09:30:45
2017-02-08T09:30:45
81,310,864
0
0
null
null
null
null
UTF-8
Python
false
false
3,914
py
htmlConstructorDiff.py
# coding=utf-8 import bs4 from bs4 import BeautifulSoup as bs doc = """ <div style="position:relative;top:1px;font-weight:700;float:left;width:550px;font-size:20px;border-radius:8px;overflow:hidden;box-shadow:0 0 2px 0 rgba(0,0,0,.3);" class="panel panel-default" data-reactid=".0.0.0.1.0.1.0"> <div class="panel-he...
cb04b5b1f4554149d0e0c1fb40851d202a06a408
d61b4adc7b3b1f5accd33ae8a98d724bc124d9e3
/Scripts/Ejercicios resueltos tema 3.py
586c492172f5104c9535074806039f248799852f
[]
no_license
gamersnautas/python3-course-backup
8f75654558fb3438a261d2afef8d324faf410e59
aafea62290aa3a5e49d8154a556b027ee1db234b
refs/heads/master
2020-08-29T17:19:13.277925
2019-10-28T17:59:48
2019-10-28T17:59:48
218,108,399
0
0
null
null
null
null
UTF-8
Python
false
false
5,052
py
Ejercicios resueltos tema 3.py
#!/usr/bin/env python # coding: utf-8 # # Tema 03: Control de flujo (Enunciados) # *Nota: Estos ejercicios son optativos para hacer al final de la unidad y están pensados para apoyar tu aprendizaje*. # **1) Realiza un programa que lea dos números por teclado y permita elegir entre 3 opciones en un menú:** # * Mostra...
c42bb122e9ce0d7d18d9133c8ca4d700d5e38f15
b4317fe96d7368e37e55724349f29e45d3294fa0
/Chapter 5 - If Statements/tiy_5_2_more_conditional_tests.py
167c1aa4d97e079c50d8f79ce7a049000dc11e78
[]
no_license
youngcyberop/PythonCrashCourse
096844319205c8b37d1cf2fc9c2425c26818abe5
e4274eedb98e5e85cc63b0bdf3021824553b2c0b
refs/heads/master
2023-01-10T00:58:41.147704
2020-11-10T13:25:45
2020-11-10T13:25:45
230,657,573
0
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
tiy_5_2_more_conditional_tests.py
''' 5-2. More Conditional Tests: You don’t have to limit the number of tests you create to ten. If you want to try more comparisons, write more tests and add them to conditional_tests.py. Have at least one True and one False result for each of the following: • Tests for equality and inequality with strings • Tests usin...
023e2fafcb9c7169a30e9a2eb3ce7b7a014f284b
e8608c6f68a3e7556d4de70c5ad7fa264983bcf6
/chord_rhythm_melody_lstm/model.py
054c1b73327486478ef407d88447657427941c51
[]
no_license
cedricdeboom/lead-sheet-generation
424a3fd6fab56e29ab8b9443b09b7bfed111aad7
abcf0b2d0eb50e499a40997f50df1f209419622e
refs/heads/master
2020-07-08T19:14:08.753336
2019-06-20T08:50:56
2019-06-20T08:50:56
203,751,197
0
0
null
null
null
null
UTF-8
Python
false
false
9,627
py
model.py
import numpy as np import pickle import sys import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, Dataset # Pytorch RNN axes: # 1. The first axis is the sequence itself, # 2. the second indexes instances in the mini-batch, # 3. and the ...
9f5e50038db15eae83c82f478e7db46dd518ee0e
780f3e7b8695c926333b3067e9c0fbdd210398f7
/fb_cooldude/apps.py
b83961d95923bbcf738560c87f80a6fe0b37083c
[]
no_license
THATISAIPRASEN/cooldude
1a7ff23deb29fff5f535d574bffdd0c3567d6eae
7eaae435fb0adba2b61d1d3d521fefaaeb8601d1
refs/heads/master
2020-06-20T01:27:58.024470
2017-06-13T08:40:24
2017-06-13T08:40:24
94,189,901
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
apps.py
from django.apps import AppConfig class FbCooldudeConfig(AppConfig): name = 'fb_cooldude'
5952ddec28fcad289fbdcefa2619921db74b059c
d7fa1960ecf3c20a202179c70cacc322f7cefed8
/visualization.py
f64cdc186fb0eef3f745f36c031d3d45f85e56cd
[]
no_license
andrianhevalo/Decision_Making_Ad_fontes
249cc51e9f93118b6725b2735d84440fd415ed09
258a95d7d7acdf37662a011e7972d7dfd883aded
refs/heads/master
2020-07-02T18:59:55.869405
2019-08-10T13:08:10
2019-08-10T13:08:10
160,660,704
0
2
null
null
null
null
UTF-8
Python
false
false
159
py
visualization.py
from golden_rule import main from matplotlib.pyplot import plot def create_plot(): x, y = main() plot(x, y, 'go--', linewidth = 2) create_plot()
e5cc4b1a76e969c5c5ba016e03514091bdf5cb0f
595da3d15912074ed3b12ec0c8a68268a6c9d6be
/upload.py
e26fde265795dd6ee41d8fac60a87179d7ddfa6f
[ "BSD-2-Clause" ]
permissive
stefan-kaestle/SunnyUpload
cf646c351ebe9685c26cfc8e40b42cf3e4b98dd7
07f87535022468e57c3c0f0499aeb04767f17960
refs/heads/master
2020-07-02T00:54:38.110673
2013-11-04T22:42:00
2013-11-04T22:42:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
upload.py
#!/usr/bin/env python3 """ The purpose of this script is to make the current status of solar panels as reported by a SMA Sunny WebBox available online without exposing its Web front-end (with the login form) to the users. Additional benefits are that the web front-end can collect all individual measurements of the bo...
5b6f4cca6091800d86ac2e0bc02030038aaee0a1
df9e52b832798359d84fa35f70cd73dbd008b433
/chromedriver.py
e6959b5d2f5b93766f6e97f7be8a7a121dd1c77f
[ "MIT" ]
permissive
Terkiss/Koromo-Copy
5ee235b3304828f39bafc35d7b0d141df89e22ab
823cc933a64d09ade19794c1e05acd830df55ab3
refs/heads/master
2022-12-10T15:21:47.830705
2019-10-14T04:49:35
2019-10-14T04:49:35
214,948,276
0
0
MIT
2022-12-08T02:08:08
2019-10-14T04:31:33
C#
UTF-8
Python
false
false
521
py
chromedriver.py
### # # Koromo Copy - Chromdriver downloader # # Copyright (C) 2018. dc-koromo. All rights reserved. # ### import io import zipfile from contextlib import closing import requests #https://stackoverflow.com/questions/22340265/python-download-file-using-requests-directly-to-memory requests.get("https://chromedriver....
7cb3d8fc47d0cfe915d7770e21d17f8b0085769a
328a192bca4b9c5c593a45778a782c2ac8cacbc1
/server.py
4d0b672b0ada674089b0affe6e9d395b7982d15c
[]
no_license
thommoor/ML_project
85f1916284302a95175e9526ed7426ca63cc08f6
e5f9ab07ca3a8b6fadf43dfa4aa3bf66e24ed6cd
refs/heads/main
2023-04-13T01:15:59.696334
2021-04-23T15:20:15
2021-04-23T15:20:15
344,889,600
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
server.py
from flask import Flask from flask import jsonify import connexion from joblib import load #load the model #my_model = load('svc_model.pkl') # Create the application instance app = connexion.App(__name__, specification_dir="./") # Read the yaml file to configure the endpoints app.add_api("master.yaml") # create a ...
5eee1bfdaf8e6ca1f27f1f535d319f328594d905
697481fab0d6c5a8db904f24838ce2a297653a1e
/Utilities/SeriesPredictor.py
5a0b7e2091d2d5e39e5406527767e14421c09e65
[]
no_license
paulmattheww/Original-Projects
4663e35163fe8db8d6fc920c9c501737f0cf4a3f
7e8de4eae037be721e1bc1616581633d6761ba2b
refs/heads/master
2021-01-24T09:49:03.423904
2018-11-10T18:43:29
2018-11-10T18:43:29
37,742,526
2
3
null
null
null
null
UTF-8
Python
false
false
2,328
py
SeriesPredictor.py
import tensorflow as tf from tensorflow.contrib import rnn import numpy as np class SeriesPredictor: def __init__(self, input_dim, seq_size, hidden_dim=10): ## Inspired from Machine Learning with TensorFlow by Nishant Shukla self.input_dim = input_dim self.seq_size = seq_size self.h...
03916d8c9dbe00e4bf82108edc4c95608cabe080
5754e080348df0fc7f1fffe46c6909edf681ee79
/list/sample5.py
7ff3672cd38ad9dde9c2a01fc4453ddd7458a1da
[]
no_license
biao111/learn_python
57e373d62979096b94b9ea96664dec3b7d88dfce
609a6a9634a37ecd1c59fa639fcca1eaa6472bfd
refs/heads/master
2023-01-05T23:15:39.670105
2020-11-08T05:23:57
2020-11-08T05:23:57
310,991,572
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
sample5.py
#列表的写操作 persons = ['张三' , '赵六' , '李四' , '王五' , '赵六' , '钱七' , '孙八'] #列表的追加 persons.append("杨九" ) print(persons) #列表的插入 persons.insert(2 , '刘二') print(persons) persons.insert(len(persons),'侯大') print(persons) #列表的更新 persons[2] = '宋二' print(persons) #列表的取值“左闭右开 persons[3:5] = ['王五' , '李四' ]#表示3到内按顺序替换 p...
4edde9debe15486f8d722d5988286fe7afd243f9
1b7a06fd29b450846842eb2eefed88b67c13e05e
/src/greeting_ops.py
9140c50b588db4bd099257abb4000f3d2461b2fe
[ "MIT" ]
permissive
thomasmburke/PersonalizedGreeter
d5a114529d8c8d5615a1b02eb5eba45457cdc28d
3d8c1958b61a584f268b23076e3b335de14d59ba
refs/heads/master
2022-07-20T05:59:19.787954
2021-07-23T01:19:50
2021-07-23T01:19:50
184,111,818
0
0
MIT
2022-06-21T21:59:36
2019-04-29T17:09:19
Python
UTF-8
Python
false
false
9,086
py
greeting_ops.py
#import redis import logging import datetime import os import holidays from dateutil.easter import easter import random # Set logger logger = logging.getLogger(__name__) class GreetingOps: """ GreetingOps: This module is responsible for creating a connection with the redis cache hosted on Google compu...
7bc31251061f3f190cba5856d88abe5c4a687f95
185cd434c5fd1610439ca973ae8b2b717338bbec
/data/mrr.py
23c79656d6a9e03a525ff88aea5b9504c0a4af6c
[]
no_license
jcarter62/abbui
b7c732a92c5731129998c906c7def1fea26636de
2e7a6a0a825afac23c2a723757c97be88bf9ffac
refs/heads/master
2022-12-25T14:08:49.145843
2020-01-30T00:12:06
2020-01-30T00:12:06
230,999,122
0
0
null
2022-12-08T03:27:38
2019-12-31T00:35:05
Python
UTF-8
Python
false
false
589
py
mrr.py
from .settings import Settings import requests, json class Mrr: def __init__(self): settings = Settings() self.base_url = settings.base_url def get_mrr(self): results = [] url = self.base_url + '/mrr' formdata = {'key': Settings().key} try: data = r...
d7331ac10e95bb8551059a8fb37c895bba187d2c
de3513485c5687ec2dbf97d2affb09826d8066a2
/webapp/solver/forms.py
64861559a5bd85c2542f3c43f97d6d851d341662
[]
no_license
rbarbazz/computorV1
2728d04629dcd259e93761b816c16f9c27c814d4
173fac0ad92bde96f07c6c673921a768d8834c52
refs/heads/master
2023-04-27T22:27:28.154440
2019-07-29T13:22:43
2019-07-29T13:22:43
162,417,939
0
0
null
2023-04-21T20:35:05
2018-12-19T09:57:26
Python
UTF-8
Python
false
false
178
py
forms.py
from django import forms class EquForm(forms.Form): equation = forms.CharField(widget=forms.TextInput(attrs={'max_length' : 1000, 'class' : 'form-control', 'required' : True}))
524f95473c3b7ce3f82ae1610624f929c8fa969e
9846c08d3bcf1f503490839862fb2e359073147d
/messagebox.py
405491eff2a619ffd4f2345e77556510934607d1
[]
no_license
Brunomleguizamon/TKinter
9d394f32ed48634e6ca365aee0b5699f56dc4946
8f77953a82c13907cfab8bb11926c708772c539c
refs/heads/master
2023-07-16T17:09:04.458603
2021-09-10T10:29:29
2021-09-10T10:29:29
389,650,988
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
messagebox.py
from tkinter import * from tkinter import messagebox root = Tk() root.title('Hola Mundo') def click(): # Alerta de alarma messagebox.showwarning('Popup', 'Hola Mundo!') # Alerta de informacion messagebox.showinfo('Popup','Hola') # Alerta de Error messagebox.showerror('Popup','Error') def clic...
3426b9f3ab8828406b2c4d4c8476aab3c9f93391
835577cebfd648ea5c67aa4c7f837f70ac5b101a
/FileLists/python/DarkSUSY_mH_125_mGammaD_0250_ctauExp_2_8TeV-madgraph452_bridge224_LHE_pythia6_537p4_PAT_v1_cff.py
12ac7611477514934a93267f21d208e94d6374e6
[]
no_license
weishi10141993/MuJetAnalysis
616cd5cacb39ca613f93c9cf6d61e2abf08bdc91
d0eec8e7a688d8999f91be16a7707da3af6bfaee
refs/heads/master
2021-06-16T14:15:12.954912
2019-02-19T23:36:00
2019-02-19T23:36:00
202,416,826
0
1
null
2020-11-10T01:22:14
2019-08-14T19:54:04
C
UTF-8
Python
false
false
13,634
py
DarkSUSY_mH_125_mGammaD_0250_ctauExp_2_8TeV-madgraph452_bridge224_LHE_pythia6_537p4_PAT_v1_cff.py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/user/castaned/DarkSU...
e773f028293076d464978bf8d4ab5e938e185f10
586403eca08d2b352db09c937da4342246e5b69a
/crm/migrations/0001_initial.py
0b894d030d5edfffe175d8fafab933d892c5031b
[]
no_license
AlekseiChirkov/alidentcrm
db9dbf5eeb441ac7e2875a99b93e8f2920fc8e1a
9aa6f4a8c34896f2c6ca8625da10e35234ac7962
refs/heads/master
2023-01-09T03:41:28.736437
2020-11-06T06:35:50
2020-11-06T06:35:50
242,917,779
0
0
null
null
null
null
UTF-8
Python
false
false
12,876
py
0001_initial.py
# Generated by Django 3.0 on 2020-06-26 06:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Client', fields=[ ...
8d6329a7500082994bb28bf71c2c583e3c783700
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-130_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467522/source_cfg.py
4f53585c042071ce486fbcbbabd86bed013afaa2
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,514
py
source_cfg.py
###SourceCFG: 99 GoodFiles; 0 BadFiles found in mask; Input prescale factor 1 files = ['/store/cmst3/group/cmgtools/CMG/SUSYGluGluToHToTauTau_M-130_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0/cmgTuple_100_1_2vH.root', '/store/cmst3/group/cmgtools/CMG/SUSYGluGluToHToTauTau_M-130_8TeV-...
5bdb262dc03fc70712293f7be741648e5d3df159
4da855904fea7bf95b666b42828e66c721712d64
/flip.py
b8737f10a1b3e0c8368a91356bcffd50f96576f4
[]
no_license
tzskp1/topre-ergo
d6be22e44e271aa9c10b9d864045f0d6222297b8
5cb093deb8824f971cfe4f7d4795a1e4c72eb188
refs/heads/master
2022-09-28T03:03:17.264518
2020-06-03T01:12:19
2020-06-03T01:12:19
256,368,070
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
flip.py
import pcbnew board = pcbnew.GetBoard() mods = board.GetModules() tracks = board.GetTracks() for m in mods: x, _ = m.GetCenter() m.Move(pcbnew.wxPoint(- 2.0 * x, 0)) # m.Flip(m.GetCenter()) # m.SetOrientationDegrees(m.GetOrientationDegrees() - 180) m.SetOrientationDegrees(180 - m.GetOrientationDegre...
8eecf25bf9b16f0495a15ddbb08de2a11fa221ff
8263c20c0a82f836a29e02162a67e7931d81a151
/models/mtcnn_model.py
ad59be7a6850945e533722a4dd9c905d08b395d9
[]
no_license
BryanPan342/MTCNN
57b3afb8065f3116287f0ad1c53f1abe3857cd55
0ae2ee108dd8d313ee30315be2903cd6fe62e885
refs/heads/master
2020-04-03T17:50:31.191970
2018-10-30T21:56:47
2018-10-30T21:56:47
155,460,905
0
0
null
null
null
null
UTF-8
Python
false
false
8,597
py
mtcnn_model.py
from base.base_model import BaseModel import tensorflow as tf import numpy as np class MtcnnModel(BaseModel): def __init__(self, data_loader, config): super(MtcnnModel, self).__init__(config) # Get the data_loader to make the joint of the inputs in the graph self.data_loader = data_loader ...
46d768a346fbe63eb9142f5202cb8fd5597e3eff
6ec6ff544bc4b9653946d33ba6bca951571256c6
/face_tracking/face_tracking.py
150121a45d9ce3e863f51f3df392a2e9f412200f
[ "MIT", "Apache-2.0" ]
permissive
arshjot/Face-Tracking
9251dbbb718ca226b2b3eec41e9b9d07594b2ac3
2cf3eef8f7b849429ff7eeaae4bd3d5d77ecdf20
refs/heads/master
2022-11-28T11:43:24.514802
2020-08-01T04:17:26
2020-08-01T04:17:26
284,182,833
0
0
null
null
null
null
UTF-8
Python
false
false
9,615
py
face_tracking.py
from __future__ import division import os import cv2 from PIL import Image import face_recognition from .eye import Eye from .calibration import Calibration import torch import torchvision from torchvision import transforms import torch.nn.functional as F from config import Config from .hopenet import Hopenet from .uti...
d4312b61822416f9389269e8385ef686cb52479e
0828839850656f904f7518f008d65b5ac59af6f0
/MainSohbet.py
428bcb6dabaf32946f5fc63d22a090ebd7e4e865
[]
no_license
ykursadd/ChatProgram
c29082a02d86b3ca47f893dd747582a3344ef5f3
6ce97bafbe29b50dbe6188a625237d6ddc5301c4
refs/heads/master
2021-01-01T06:12:21.691201
2017-07-16T11:09:58
2017-07-16T11:09:58
97,378,015
0
0
null
null
null
null
ISO-8859-9
Python
false
false
2,313
py
MainSohbet.py
# -*- coding: cp1254 -*- # -*- coding: utf-8 -*- from Tkinter import * from socket import * import win32gui def SohbetPencere(baslik): ID = win32gui.FindWindow(None, baslik) win32gui.FlashWindow(ID,True) def SohbetPencere2(baslik): ID2 = win32gui.FindWindow(None, baslik) win32gui.FlashWindow(ID2,T...
63aebe097a134d1f8fe73bc87f051947367df72e
88e0c1b7a230f356a5a9417116108da78d31b561
/dataloader.py
38edfb125eaee8fcebb87fe1a39153a58c1ae913
[]
no_license
hiroki1701/selfsequential
f67be3f0f11cf4350f3568bd717329c4f6f852c2
dcdfd3176a54b10afbdf5016bea4f314112dc3c9
refs/heads/master
2021-02-21T04:43:27.460052
2020-03-11T07:54:01
2020-03-11T07:54:01
245,350,951
0
0
null
null
null
null
UTF-8
Python
false
false
32,086
py
dataloader.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import h5py import os import numpy as np import random from functools import reduce import torch import torch.utils.data as data import multiprocessing import copy import pdb class DataLoader(dat...
7eda0e67bc0ee55442182c54ef9182ffaa0e2f48
95bcd790e278f42d7213c0606577a3bbf06fb4f1
/server.py
9d51c07db1e7f1bdceb1dd1e66e6dec70e6394de
[]
no_license
HaochenZ11/GreenStyle
b806600469b9a10c185ff0eaedb3c134d2308a0d
1d86ef53a3800df00eb19b15ed6612a20128b14c
refs/heads/main
2023-02-17T15:42:17.908971
2021-01-10T15:00:18
2021-01-10T15:00:18
328,386,972
1
0
null
2021-01-10T14:54:20
2021-01-10T13:16:07
Python
UTF-8
Python
false
false
1,884
py
server.py
from flask import Flask, render_template, request from werkzeug import secure_filename import matplotlib.pyplot as plt from PIL import Image from query import query from productrec import give_rec from classify import classify_image, TransferNet app = Flask(__name__) app.config['UPLOAD_FOLDER'] = './uploads' ...
f1bd9794614159c6db0c3b403a92ec686eb5445d
80cac4f049d3adc519711624dffa24b766611562
/tests/common.py
4b3ee6fa4c6412e2114259df18990e053f68b7cc
[]
no_license
alekseyl1992/tech-testing-ha2
99b90a87ae5751a8ceeec27d99e583efc3d44729
c256a739864f8c998e73859af19c3f3a761ed464
refs/heads/master
2021-01-18T09:14:30.973401
2014-10-21T15:24:06
2014-10-21T15:24:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
common.py
import os from selenium.webdriver.support.wait import WebDriverWait DEFAULT_BROWSER = 'CHROME' GRID_URL = 'http://127.0.0.1:4444/wd/hub' class Polling: def __init__(self): pass TIMEOUT = 30 PERIOD = 0.1 def wait_and_get_by_css(driver, selector): return WebDriverWait(driver, Polling.TIMEOUT...
0216a5938811620abdd8074b40263fd662d1882c
72751b049d0f1e53e5a92a89ba24aae1202a59b0
/ANN.py
114d974b9c816f85861686ffdb17aef3e4b04a9d
[ "MIT" ]
permissive
piyush27ranjan/Game_Learner
cd46cb21458009cb0d1f88ae94d1aa1eab2dba5e
85d44edaa733a71969b96679eae2316b939a6c1d
refs/heads/master
2020-03-17T05:33:02.428696
2019-03-08T07:03:50
2019-03-08T07:03:50
133,321,001
10
1
null
2019-10-27T10:43:29
2018-05-14T07:22:18
Python
UTF-8
Python
false
false
2,167
py
ANN.py
# Importing the libraries import numpy as np import pandas as pd # Importing the dataset dataset = pd.read_csv('dataset.csv') dataset = dataset.replace(255,1) X = dataset.iloc[:, dataset.columns != 'button'].values X = np.delete(X,0,1) X = np.delete(X,3,1) y = dataset.iloc[:, 5].values # ------ Data preprocessing ---...
25bd0f7860fcfba9301752eeb449e3bdd56f84e1
826689971fcdf9f7e050accac031338a18161e15
/State.py
815ca4275d8b9ff9d67cec9dc76a020ccdce0458
[]
no_license
wildangbudhi/8Puzzle
a55099dd5a5c6200fd5aecaa38a08a68d2826fc5
20ffc6da33c034f5742b9daea3a0f8c79b313886
refs/heads/master
2020-04-27T07:24:06.711384
2019-03-24T06:27:53
2019-03-24T06:27:53
174,134,823
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
State.py
class State: def __init__(self, state, parent, depth, cost, GoalStates=[0], heuristic=False): self.state = state self.parent = parent self.depth = depth self.cost = cost self.heuristic = 0 if not heuristic else self.countHeuristic(GoalStates) def getMatrix(self): ...
1d145e76d8a317667aa31ede9824d36d4d2b5c73
06c73e3efabc86cdef88f7837074fe2f6121ec83
/gui_main.py
67a4ef28153ba3b7a89589d16540f53083e36acf
[]
no_license
hope0321/food
bbc6a7e2cf9745e3c9ea2779328ee6c92579d1ad
255044ed0ad4506b4b4df10b779f86de30b57f2c
refs/heads/master
2023-08-26T00:06:12.466928
2021-11-04T16:05:58
2021-11-04T16:05:58
424,474,946
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
gui_main.py
from tkinter import * import tkinter as tk menu = ["돈까스", "라면", "짜장면", "짬뽕", "햄버거"] root = Tk() root.title("오늘 뭐 먹지?") root.geometry("540x380") #뭘 먹을지 잘 모르겠을땐 버튼을 누르라고 물어보자 Label(text = "뭘 먹을지 잘 모르겠어? 버튼을 눌러봐!", font=("돋움체",15),fg = "purple").pack() #사진 추가해보자 돈까스2 = "C:\\Users\정석기\Desktop" #사진 추가하는 부분이 계속 에러...
60a3586e0128e6079736631f64797a5e8265780a
5defa49dfa1f0d98c58700d65c3ea62c5d87e91c
/Lecture_31/Face_Detecton.py
85d83fda35e0d287955231fb2ca15dde6fd3e3b9
[]
no_license
Namangarg007/Python-training
ae787ae987801a4790fe8007887a412bbb17dbf9
ac0d7005589adfcc5f822d82f9db4dfed9f94b52
refs/heads/master
2021-01-07T22:12:11.099191
2020-05-20T13:23:41
2020-05-20T13:23:41
241,834,144
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
Face_Detecton.py
import cv2 cap = cv2.VideoCapture(0) classifire = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") while True: retval, image = cap.read() faces = classifire.detectMultiScale(image) for face in faces: x, y, w, h = face cv2.rectangle(image, (x, y), (x+w, y+h), (0, 255, 0), ...
24baed88cd202f9ab3b967d902640579921799c6
0965027ecd8b1e6ca5649eba708b2b2535bb4f6b
/code_FYP/sourceDataToDB/data_to_db.py
630e2470c9a5fb9716b6e3c5ebe365b09d895cfa
[ "BSD-3-Clause" ]
permissive
liuyaodave/GIS
e99591e7faa6725119b4658c5842c590f967e25c
0977769cf6f4d5cb596c8424741acb2ed5e8c0a1
refs/heads/master
2020-09-19T03:38:48.556219
2016-09-02T09:00:58
2016-09-02T09:00:58
67,039,927
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
data_to_db.py
#coding=utf-8 import xlrd import sys import json import pymongo from pymongo import MongoClient #连接数据库 client=MongoClient('localhost',27017) db=client.source_data account=db.city data=xlrd.open_workbook('sourceData.xlsx') table=data.sheets()[0] #读取excel第一行数据作为存入mongodb的字段名 rowstag=table.row_values(0) nrows=tab...
6d3ae4c85d3720ebc4866a3b94feacca2aac6ee8
ecace9d1565c2c892e6495caed28bb26982e824c
/Multiple_linear_regression_practice.py
6e0fb601324b2822c9e4d57b9a0fe6b50618f64f
[]
no_license
AdeolaBam/Multiple_linear_Regression_practice
a2b4248a8d598e43c08e0c5fe8fa01888f67ae82
84a6c5497cfcddf0b2de7a7309fefb5bb848d42a
refs/heads/main
2023-03-09T22:41:33.081642
2021-02-23T11:26:54
2021-02-23T11:26:54
341,530,311
0
0
null
null
null
null
UTF-8
Python
false
false
2,242
py
Multiple_linear_regression_practice.py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt # In[3]: df=pd.read_csv("50_Startups.csv") # In[15]: X=df.iloc[:, :-1] # In[16]: X.head() # In[17]: Y=df.iloc[:,4] # In[18]: Y.head() # In[20]: df["State"].unique() # In[34]...
f3aaa4fed97162143952cef07d11caedd9e6481c
a8efbb54650d0075a852784ee61478d01b5a5f38
/string_2/a.py
01156f7358c6b3ca83a7347ac89f187455b02b8b
[]
no_license
majapklm/google_python
bd67b18a79ed0522ae9ac50a776840d10b9dbfd8
58386393d58bdb0a44660ee36399223fc1b25427
refs/heads/master
2021-01-20T10:42:59.572468
2014-11-07T06:23:59
2014-11-07T06:23:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
a.py
s = 'fooding' def verbing(s): if len(s)>3: if s[-3:] == 'ing': return s.replace(s[-3:],'ly') else: return s + 'ing' else: return s print verbing(s)
8cace06daf2d254095b47f18766a55a109f2ceb2
574eabbca10bd159ad0f409639eeafd67b53aa56
/scripts/smartAPI_assessment.py
01ef24b792941a8f8ba6c4b2df75281208f5999b
[ "Apache-2.0" ]
permissive
alexjones1725/FAIRshake
f1b7e72e85ec1038e3d345ae5d4593630ad75f45
0ff738c784b15bcb23ec44109a4f49680a1cea0a
refs/heads/master
2020-03-31T00:12:42.429834
2018-11-30T22:50:33
2018-11-30T22:50:33
151,730,520
0
0
null
2018-10-05T14:10:45
2018-10-05T14:10:45
null
UTF-8
Python
false
false
5,412
py
smartAPI_assessment.py
import re import sys import json import itertools import numpy as np from pyswaggerclient import SwaggerClient from pyswaggerclient.fetch import read_spec from objectpath import Tree # import os # os.environ.setdefault("DJANGO_SETTINGS_MODULE", "FAIRshake.settings") # import django # django.setup() # from FAIRshakeAPI...
1ca761908f1a1e78d6692150ec57cf6638c502ca
4e7aac39f36916a964f4664f3198d7c87e762253
/compute_regressor.py
4f43958bd047a8140d6289248aa5ce9961d8138b
[]
no_license
kirillin/manipulator_dynamics
349c01fd5aef8b42734edc497a7d48ee49aced9c
a773091ea5a62493b77885a0e2df6491282faa4c
refs/heads/master
2021-10-22T13:15:09.489858
2019-03-10T23:00:56
2019-03-10T23:00:56
108,987,774
1
0
null
null
null
null
UTF-8
Python
false
false
12,311
py
compute_regressor.py
# coding: utf-8 #!/usr/bin/env python3 import os, errno import time import sympy import numpy as np from datetime import timedelta from termcolor import colored from libs.equations import * from libs.regexps import * from libs.regressor_stuff import * from libs.utils import writeFile from libs.initialization import * ...
41ad43821501579dbd4af06b3adb608e8add795b
d4c95b58d582cebfb923c3d4df7692f20f908202
/main.py
ffc3966711559dbcc9d662d3731f5fe54c5220a6
[ "Apache-2.0" ]
permissive
imlegend19/issueSHARK
c60ac24739965c640d8676b108455c6b5609d381
6233be1629bb0e221dc5d676265f24555f3d625d
refs/heads/master
2022-04-24T16:27:53.386301
2020-04-27T16:16:21
2020-04-27T16:16:21
259,386,240
2
0
Apache-2.0
2020-04-27T16:17:23
2020-04-27T16:17:22
null
UTF-8
Python
false
false
3,119
py
main.py
import os import logging import logging.config import json import sys import argparse from issueshark.backends.basebackend import BaseBackend from issueshark.config import Config, ConfigValidationException from issueshark.issueshark import IssueSHARK from pycoshark.utils import get_base_argparser def setup_logging(d...
46b2bc42183db0b20c38af95dcbe07aaf7067366
17bbd71f8f3699e6c76d31ffb870cc9804994d93
/app.py
4f714065eca25d3a2ba71e15b010d8ec2b6d66b6
[]
no_license
Cheriit/DnD_GPT-2
123af694a239d57a1f32314947ac34cfbb7ae1ee
f3cd076010ca306940e2adc8767e743442ea8e96
refs/heads/master
2023-08-15T04:57:42.215591
2021-09-08T21:50:08
2021-09-08T21:50:08
403,682,749
0
0
null
2021-09-08T21:48:47
2021-09-06T16:01:48
null
UTF-8
Python
false
false
2,434
py
app.py
from flask import Flask, request, jsonify import torch from transformers import GPT2Tokenizer import torch.nn.functional as F from flask_cors import CORS def generate( model, tokenizer, prompt, entry_length=100, top_p=0.8, temperature=1., ): model.eval() generated_num = 0 generated_list = [] ...
35cc587ad7617350423cfc5ee7e0fee7ba92c856
ccc2dceeffa8078883f2971ea145779fc1dcf34e
/CODEFORCES/581-B/581-B-20355596.py
a0dd0ed8e669a6e7cbf8df565a368375ca3f06bd
[]
no_license
dineshsonachalam/competitive-programming-2
85bbf8679660b2964ad56a711a6b60e0793148f8
2e85f58427eddd098dbb9e56362232cec8d1968e
refs/heads/master
2020-04-05T17:23:30.347444
2018-11-04T01:48:04
2018-11-04T01:48:04
157,058,120
1
0
null
2018-11-11T07:42:53
2018-11-11T07:42:53
null
UTF-8
Python
false
false
152
py
581-B-20355596.py
n=int(input()) a=list(map(int,input().split())) b=[0]*n mx=a[n-1] for i in range(n-2,-1,-1): b[i]=max(0,mx-a[i]+1) if a[i]>mx:mx=a[i] print(*b)
7d79d805933912ff6b24d79ae97b5fac945e0788
3eeb16ff417cd0e6f82e8950dbc2f723d36b90ec
/train.py
56d6aa574afc1df29f0fd6f854505651d59b29b2
[ "MIT" ]
permissive
BhavishyaDiggiwal/deblurring_cnn
f20841fbe938e7d8e13bbb8057ac8a74aa123b64
5e56493ef249e5b4439cad8b0806573602ecc66d
refs/heads/master
2020-06-20T15:00:44.712930
2018-06-21T09:30:25
2018-06-21T09:32:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,872
py
train.py
import os import glob import random from PIL import Image import tensorflow as tf import numpy as np import input_pipeline import model FLAGS = tf.app.flags.FLAGS train_dir = './data/train/' test_dir = './data/test/' output_dir = './output/' model_dir = './model/' summary_dir = './logs/' for directory in [train_di...
2cf4dcd8938081bb68320ff863fd199d5afecf0b
0733b6c47c3086ae2499073cf67a9eb0e619ff0e
/patterns.py
cd4cf9c4477c85b7c65823d31942482b4ec652d4
[]
no_license
kajendranL/Daily-Practice
57f16555452d897731a24ad31212edb6df60f649
747d017c81e8063eef362117c9e026513d6f8f92
refs/heads/master
2020-06-19T14:35:25.044782
2020-02-14T19:16:32
2020-02-14T19:16:32
196,745,539
1
0
null
null
null
null
UTF-8
Python
false
false
3,652
py
patterns.py
print("____________________________________________________________") print("Pattern 1") print() n=6 for i in range(1, n+1): print("*"*n) print("____________________________________________________________") print("Pattern 2") print() n=6 for i in range(1,n+1): for j in range (1, n...
1497eb0cfd475c1c339c08662d8cc71864bda37c
6ee6ac0e40c4a618507c411db9340fad40fc800f
/data_munging_data-preprocessing.py
00c639def764f216ce340f33a5118ea60903dfc4
[]
no_license
Dvshah13/Machine-and-Deep-Learning-Code-Notes
a002e2f1141469ac5a6f5106270fa90e8f83ae0a
c44690731ddd17f9ec0d01f72704c2077ac08729
refs/heads/master
2021-01-18T18:05:39.966048
2017-05-09T15:55:47
2017-05-09T15:55:47
86,843,376
5
1
null
null
null
null
UTF-8
Python
false
false
1,987
py
data_munging_data-preprocessing.py
import pandas as pd ## Loading file into pandas DataFrame df = pd.read_csv('Data Sets for Code/istanbul_market_data.csv', sep=',', decimal='.') ## creating a mask function to a Boolean value to a condition I make (here true or false for TL Based ISE greater then 0.02) mask_feature = df['TL Based ISE'] > 0.02 print ma...
85a9cd1a527a77b0939b45f4889eb12312bdfd49
a687345d9ab84e9acbafed05773fee72e5461cce
/guess.py
7741a9c5396b98b4352f461eca040523b5e65bfb
[]
no_license
lgxxabc/guess
a26fb8cf0db65ea4eadf0e48a921869fe6d3a50b
33ad2d1629acf6f75989fa6f47083a4cde95ad10
refs/heads/main
2023-01-05T09:34:00.634049
2020-11-01T23:26:40
2020-11-01T23:26:40
309,206,378
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
guess.py
# # Generate a random number. # # random is a module in a package; # # there are different packages in the standard library # import random # # randint is a function of random # r = random.randint(1, 100) #Scope:1 ~ 100 # print(r) # Practice: Guess a number. 猜對:“恭喜。”猜錯:告訴他是比答案大/小。 import random # Add a funcit...
6a43467efabc6392ff43b4e7fade187ec763a419
636b0ae2797a932a7cc55cefb4877d564969b594
/code/submission_utils/send_readonly_link.py
029910ca50122529f7b24d720a67c531a27058d9
[]
no_license
fkroeber/teaching
e4f4eb13f2c249758cf6f49c2ec0ba4da25a3e08
122c8f6cb43f5766005d8516faf6671ff0ff4ced
refs/heads/master
2023-08-14T18:06:42.179793
2021-10-18T09:41:43
2021-10-18T09:41:43
418,929,621
0
1
null
null
null
null
UTF-8
Python
false
false
2,437
py
send_readonly_link.py
import owncloud import argparse from getpass import getpass import numpy as np import pickle import json import csv import sys import os from exchangelib import Account, Configuration, Credentials, Message, Mailbox, DELEGATE from exchangelib import EWSTimeZone, EWSDateTime, EWSDate def setup_cmdline_parser(): pa...
ddd50f74258f69effd94a82bf120bfb796c49168
600fc4f887951aa5abcf9ea0e897d2e4a49dd94a
/game.py
faea64d577d2621e9e2d9bdf7a1fe979f5cb7325
[]
no_license
BenJStoffels/neuroEvolution
b5e3f42c90f51b80ad99a7b2544d9d98527f7042
ba04818af0db49ed9d31745a1200ac4d2b986ecd
refs/heads/master
2021-04-09T16:58:09.025394
2018-09-22T08:08:34
2018-09-22T08:08:34
125,620,993
0
0
null
null
null
null
UTF-8
Python
false
false
6,952
py
game.py
import pygame import random from Vector import Vector from NeuralNetwork import NeuralNetwork as NN pygame.init() class SnakeGame: def __init__(self, window=False): self.length = 0 self.history = [] self.lastMove = None self.brain = NN([24, 20, 5, 4]) self.isDead = False ...
62d8388f8d54d94066d37c836e1d4a1581c5677d
4925df0284dea9504bca4d17f71eba94e290e119
/CadenasTexto/metodosValidacion.py
e871b9faecac1cace9420812ac626872086f61f2
[]
no_license
Faydiamond/boockPY
1625ca5b1a533c358f7ab0813043fc9c453bf569
1e35d5b33bd8aa6b4a363fe42462e95444912bce
refs/heads/main
2023-03-08T21:29:39.471232
2021-02-24T18:49:28
2021-02-24T18:49:28
342,001,525
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
metodosValidacion.py
# ******************************************** Metodos de validación **************************************************************************** name = "fabian rene socha barbon" # saber si una cadena comienza con una subcadena determinada print(name.startswith("barbon",18)) print(name.endswith("barbon",18)) # sa...
0c4b5b186233488271035a4cff8b79e72dfcf48e
6226b6bef135cda5ec8700903b01af4088a17f80
/webapp/webapp/ccaRunner.py
3ad3e97a7eaf453167cb6295dc53407cedf25da4
[]
no_license
slackeater/cca
2cd7000e161ea4dcae9f821b31e88b3fd09330f7
16c7a637b9a5dd4d854feb7ddc3d2aac308a46a0
refs/heads/master
2020-04-28T11:09:45.817457
2015-02-04T16:49:43
2015-02-04T16:49:43
24,945,342
1
0
null
null
null
null
UTF-8
Python
false
false
524
py
ccaRunner.py
from django.test.runner import DiscoverRunner from django.test import TestCase from django.conf import settings from dbMaker import MakeDatabase class CcaRunner(DiscoverRunner): def setup_databases(self,**kwargs): print "Creating and populating DB..." superDb = super(CcaRunner,self).setup_databases(**kwargs) ...
27cd926c7ea8e5de8e69e2211d49fa7769e363f0
32747475305f029f662a5a4428491aa7000f3d07
/random_forest_Regressor.py
8418dc90c61d3aa3027aa396a67702676005455f
[]
no_license
mad-farmer/randomforest
9263ce2687dbd5a4feaa474b22d0a06e8137d968
c5590b2110587631b673c7492eea9d3f62f5d8a1
refs/heads/master
2022-04-22T21:35:14.680615
2020-04-25T19:17:55
2020-04-25T19:17:55
258,854,935
0
0
null
null
null
null
UTF-8
Python
false
false
959
py
random_forest_Regressor.py
#PART 1: PREDICTING PETROL CONSUMPTION import pandas as pd #importing csv file df=pd.read_csv("petrol_consumption.csv") df.head() #preparing data for training y=df.iloc[:,4].values.reshape(-1,1) #Petrol_Consumption x=df.iloc[:,0:4].values #other columns #creating train and test values from sklearn.model_...
7491910cb1618e1077ecfa9fd497815e9a0fa1f5
74aa027dd996c51d9149ab0cafa91983fc5a4f51
/saegan/autoencoder.py
076cbe499ff6da907f337138dd36318442d03657
[]
no_license
SongDark/timeseries_to_image
207f6acebb02ef65c961c690be36107efb5a0663
26770197eec62080704c030ddb33d58b29cec480
refs/heads/master
2020-06-02T13:03:01.794206
2019-06-10T12:18:00
2019-06-10T12:18:00
191,162,228
0
1
null
null
null
null
UTF-8
Python
false
false
3,757
py
autoencoder.py
import sys sys.path.append("..") from utils import * class AutoEncoder_Image(BasicBlock): def __init__(self, len_latent, name=None): super(AutoEncoder_Image, self).__init__(name=name or 'AEI') self.len_latent = len_latent def encode(self, x, is_training=True, reuse=False): with tf....
830fd96c7f7e77f99ea44c65d22f4fed41508f34
66d0cef209724eda7945edcec7c34cb1234db488
/app/mod_auth/forms.py
fde910f060ee65c2c759097957dfe051c42e38ad
[]
no_license
Gacheru/bc10-libraryApp
15270e4769a48df32d44883a1494eb9ce0557f62
68548055262960b74835b26fedcae4bafe53f1f2
refs/heads/master
2021-01-12T16:56:23.834819
2016-10-22T16:26:32
2016-10-22T16:26:32
71,467,789
0
1
null
null
null
null
UTF-8
Python
false
false
1,913
py
forms.py
# Import Form and RecaptchaField (optional) # Import Form elements such as TextField and BooleanField (optional) # Import Form validators from wtforms import Form, PasswordField, BooleanField, StringField, validators # Define the login form (WTForms) class LoginForm(Form): email = StringField('Email Address', [val...
1d12e389236a0f033de9cb9f53e3bfdc2e426b7d
1d1f9f8430945416cf9fec352c2a7bc0fafc701d
/spaces/migrations/0013_space_price.py
3e16adc0ba8eb74482ebb4db802286bd77cd065a
[]
no_license
Code-Institute-Submissions/generalroom
f68da18a5d86f40b587a6b45dcbe1b9991eab532
9e719a82ab453a1730a9dc92abe2b61b0faf20ff
refs/heads/master
2023-04-12T06:27:44.419590
2021-05-16T13:27:57
2021-05-16T13:27:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
0013_space_price.py
# Generated by Django 3.2 on 2021-04-20 14:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('spaces', '0012_auto_20210420_1338'), ] operations = [ migrations.AddField( model_name='space', ...
b81237ddeb9d68fb6e9d16da7579c263ce224616
10ec57f6eb54d03f431343b4c4be0a1182b6da97
/MedicalImages/3_Create_your_neural_network.py
60df84ee0ac6c930aa5d8a6c8a48f6d77f244af6
[]
no_license
iasonasxrist/crispy-palm-tree
44bce5c557d86738d44593d2eda95bd42354a461
9accf82ff598fd05a7a1cae85049789f2f1a0cf8
refs/heads/master
2023-01-11T06:55:25.358530
2020-11-14T05:04:07
2020-11-14T05:04:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
3_Create_your_neural_network.py
#!/usr/bin/env python # coding: utf-8 # # Medical image analysis with PyTorch # # Create a deep convolutional network for an image translation task with PyTorch from scratch and train it on a subset of the IXI dataset for a T1-w to T2-w transformation. # ## Step 3: Create your neural network # # ### Milestone 3 # ...
6df3388b5e771269082009fd9c7602b7e7f90623
94968d4e72c7d2d3a00c0d7b070c6182e008f5e0
/outils.py
fb51af40884b8acdd3b5be0f99e95670b760e46f
[ "MIT" ]
permissive
moustaphacheikh/Authorprofilling
50e489d888040573cd7eebab65e8daeea34275ee
910009c0594fcb1e36a6862b58129011c63f0c03
refs/heads/master
2021-03-22T02:56:30.471732
2018-01-11T09:08:47
2018-01-11T09:08:47
96,023,341
0
0
null
null
null
null
UTF-8
Python
false
false
5,558
py
outils.py
import re import pandas as pd from lxml import etree def get_data(file_name,genre): sentences = [] with (open('./data/ar_PAN/{}.xml'.format(file_name),'r',encoding='utf8')) as f: doc = etree.parse(f) root = doc.getroot() for i in range(len(root[0])): sentences.append([preprocessing(roo...
51746aa4cdfddbbc54765f594c598c90b28a3753
f75cdc13e45ff49631bff46fe50b6b38a8582fe9
/discord/db.py
a2fb81edc9aa94f359b8399efb2f0b752bd54623
[]
no_license
Iggdraisil/patternsLab3Back
2121d771fa6ba63a1fba4684392de8da1728c436
a112393f230b1e0deb5e2a33b7385346f1be3904
refs/heads/master
2023-04-10T00:50:53.019928
2021-04-22T10:44:26
2021-04-22T10:44:26
360,482,743
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
db.py
import sqlalchemy from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, Session SQLALCHEMY_DATABASE_URL = "sqlite:///discord.db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) ...
eadf488d9254dc28eb831d4c296c40e3cf8e2497
d943dc63055734ad365d370c37772998836dc086
/spline.py
28bb5c58df218092edcf39b560394793c4bef3c2
[]
no_license
kristoferent/lab3
9f5266d03e609fb94c4a24c6501f9197c3354802
0d7dc3fa0ddc4cb55f81b394d29bb1dbb7faef7d
refs/heads/master
2020-05-30T07:48:07.976749
2019-05-31T14:12:36
2019-05-31T14:12:36
189,605,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
spline.py
import numpy as np import time import math import matplotlib.pyplot as plt import scipy.linalg as sla def sweep(n, a, b, c, f): alpha = np.zeros(n + 1) beta = np.zeros(n + 1) x = np.zeros(n) for i in range(n): d = a[i] * alpha[i] + b[i] alpha[i + 1] = -c[i]/d beta[i + 1] = (f[i]...
ccf1e42c542c19101fa036cf9e99b2963b4b601c
f8e60f2c2c3d58ccac8dd1f5b31e4a358f2ba43f
/code/main.py
e1439697b18216b033c26952c8d516c57b7ebb6a
[]
no_license
talled23/BCACam
8934f0ce23fc571bb0631f8e0f5ad36dab6d78a4
6759db640feb6c8a8c14da6f33e5c421a9f6a01c
refs/heads/main
2023-02-27T07:18:03.739432
2021-02-03T19:53:57
2021-02-03T19:53:57
322,446,616
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
main.py
# python -m pip install plyer from plyer import notification def postureFix(): notification.notify( title='Fix your posture', message='Or else...', app_icon='./code/kanye.ico', # i want it to be kanye.ico' timeout=10, # seconds ) # starter code taken from documentation # http...
f64cfaa2e10241131e29de32841b7c2b4cdc3930
7394675ba78d183e5683f897cef8493bd23fb677
/src/Main.py
a2816adf491652cb5821ca2c6eb55a00ce5f5c23
[]
no_license
andreamartire/pygreco
77f0db7a06129c630b113ab8b8f1f3a242cfd079
55de4fabf711b65cd5ad00d12cf9f690f1bf0538
refs/heads/master
2020-05-30T16:44:20.439922
2015-09-29T16:13:10
2015-09-29T16:13:10
33,035,628
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
Main.py
''' Created on Mar 28, 2015 @author: Andrea Martire ''' import Constants, time from model import QuadBitBoard from model.Generator import Generator from engine.AlphaBeta import AlphaBeta board = QuadBitBoard.QuadBitBoard() start_time = time.time() move = AlphaBeta.calculateSolution(board, Constants.WHITE, 8) pri...
51a5252124bef32079aac1eafe5723e3a533ed25
b7efc775828a0d9862c1fb296b802cd0bb5081c3
/Leetcode/Weekly Contest 237/WC237-C.py
bad7b3de912aaefc72eb68b1e9592073fb812d76
[]
no_license
Laboputer/ProblemSolving
ab8732d4d6e4b4d26c5f0d704080dbe16ee175f7
1646fa00a1c1511a94cfa69c593d1df39f58de7b
refs/heads/master
2021-11-23T02:05:17.766165
2021-11-02T14:33:03
2021-11-02T14:33:03
101,497,398
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
WC237-C.py
class Solution(object): def getOrder(self, tasks): tasks = sorted([(v[0], v[1], i) for i, v in enumerate(tasks)]) available = [] res = [] cT, i = 1, 0 while len(available) != 0 or i < len(tasks): while i < len(tasks) and tasks[i][0] <= cT: ...
5cc4da25a01ef28362754e56071283a52348d8a2
26ba8fdcd3ee60b6f3e1d40f4653078f6fb6278d
/evm/vm/forks/sharding/transaction_context.py
52455be77221dc6db41e4740eeb3f8ca087c2ba6
[ "MIT" ]
permissive
cburgdorf/py-evm
5b096202aab2b8749f15debdff5f78491d148952
98d98f69816081b0a280c2682de7a5d3cb29b9d6
refs/heads/master
2021-04-27T15:17:25.955863
2018-03-28T02:33:04
2018-03-28T02:33:04
122,467,896
0
1
MIT
2019-02-22T15:25:01
2018-02-22T11:07:50
Python
UTF-8
Python
false
false
889
py
transaction_context.py
from evm.transaction_context import ( BaseTransactionContext, ) from evm.validation import ( validate_sig_hash, validate_uint256, validate_canonical_address, ) class ShardingTransactionContext(BaseTransactionContext): def __init__(self, origin, sig_hash, transaction_gas_limit): validate_ca...
ce36f68dc5ebec6ddde9bc448a6e4170a2a709b9
134c429df7d5c4d067d9761cb1435992b048adaf
/notes/1399/1399.py
e7059d013e1bb024d9819d3ab3c2ead366e692fd
[]
no_license
PaulGuo5/Leetcode-notes
65c6ebb61201d6f16386062e4627291afdf2342d
431b763bf3019bac7c08619d7ffef37e638940e8
refs/heads/master
2021-06-23T09:02:58.143862
2021-02-26T01:35:15
2021-02-26T01:35:15
177,007,645
1
0
null
null
null
null
UTF-8
Python
false
false
370
py
1399.py
class Solution: def countLargestGroup(self, n: int) -> int: def sumOfDigits(i): return sum([int(d) for d in str(i)]) table = collections.defaultdict(list) for i in range(1, n+1): table[sumOfDigits(i)].append(i) return len([i for i,j in table.items() i...
c3cea517cbe989418a37ae16dcecdb3da6f60367
268a98044e9fd42185000b4ddb24f8e0259286c0
/tensorflow_tts/losses/__init__.py
6a8da75a9301c2dc28e019085fcbd4e7256fe883
[ "Apache-2.0" ]
permissive
RakaMaru/TensorflowTTS
f711e04e5c7cacd8d7888a0df5df6c8a5b7277fc
473eb717503454fa2eabadefd7bcd2459673f6f2
refs/heads/master
2022-11-14T19:29:03.019370
2020-07-07T18:47:16
2020-07-07T18:47:16
276,814,232
1
0
Apache-2.0
2020-07-03T16:57:35
2020-07-03T05:21:26
null
UTF-8
Python
false
false
125
py
__init__.py
from tensorflow_tts.losses.stft import TFMultiResolutionSTFT from tensorflow_tts.losses.spectrogram import TFMelSpectrogram
c0b7009708a98939722040e0cc997a924f10fee0
6521fba80050de5cb963888288c3be3fa567bc93
/bangun datar.py
e7103e96e94068c6cf694b0973fcca19cc165914
[]
no_license
nakamurayosuke7/tugas-individu-5
b95ae06033d2bd7cfa491ff6367b70d4eb92d28b
408a8208b5307a8d69721c3236b612af9756456e
refs/heads/main
2023-08-29T07:26:16.700314
2021-11-02T11:14:36
2021-11-02T11:14:36
423,809,657
0
0
null
null
null
null
UTF-8
Python
false
false
9,160
py
bangun datar.py
import sys import time import math import colorama from colorama import Fore, Back, Style colorama.init(autoreset=True) print("\n") text = " PROGRAM MENGITUNG LUAS DAN KELILING BANGUN DATAR " time.sleep(2) print(text.center(100, "=")) head = ("\nBERIKUT DAFTAR BANGUN RUANG YANG KAMI DUKUNG:" "\n\n1...
0015f49214e8f76d2e51e71a1c994ad8653085d0
b3c47795e8b6d95ae5521dcbbb920ab71851a92f
/Codeforces/Codeforces Round #239 (Div. 2)/D.py
9754f6d6e4deb2c05094554106234f34ac2121b5
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Wizmann/ACM-ICPC
6afecd0fd09918c53a2a84c4d22c244de0065710
7c30454c49485a794dcc4d1c09daf2f755f9ecc1
refs/heads/master
2023-07-15T02:46:21.372860
2023-07-09T15:30:27
2023-07-09T15:30:27
3,009,276
51
23
null
null
null
null
UTF-8
Python
false
false
1,540
py
D.py
MOD = (10 ** 9) + 7 class Solution(object): def __init__(self, ns): self.n = len(ns) self.ns = [-1] + ns def solve(self): self.d = {} res = 0 for i in xrange(self.n + 1, 1, -1): res += self.do_solve(i - 1) + 1 res %= MOD # print self.d ...
0fe1e16e0459357d2f1c1f0ace94e010e84b3311
1495d021389a5e9e5eff02e505f400d270b49623
/src/journal/migrations/0004_auto_20160801_1743.py
85de6ad469c06caed0d2a65ea412bd639e891648
[]
no_license
metamorfoso/scifi-journal
d26d0e9cb8bde128cf8eaf2ec84342149c848caa
a272a6734bf3c97d468743e5a3883190d6117974
refs/heads/master
2021-06-19T01:58:00.307812
2020-07-15T11:52:15
2020-07-15T11:52:15
63,315,999
0
0
null
2021-03-19T22:18:19
2016-07-14T08:08:40
Python
UTF-8
Python
false
false
484
py
0004_auto_20160801_1743.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-01 17:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('journal', '0003_issue_published'), ] operations = [ migrations.AlterField( ...
9a7a280e042c890783c8c6c6486c23a4147523e1
d343ce185f36f4328a7b9e5ed25e3cc2ebdbf3f3
/SQL/HouTaiStatics.py
8e1c4f6126fc7c3305b41be312af117212c36905
[]
no_license
Feynman11will/StaticsDocAnnotationTime
25fb74e89b25ad713ae7365c7b33b7834539bd2e
cfaaf7c14a26a1be9a5930561159749f670d09b2
refs/heads/master
2020-11-28T01:37:20.866563
2019-12-23T03:36:49
2019-12-23T03:36:49
229,670,312
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
HouTaiStatics.py
''' @Author: your name @Date: 2019-12-03 12:06:19 @LastEditTime: 2019-12-13 14:24:32 @LastEditors: Please set LastEditors @Description: In User Settings Edit @FilePath: /taskStatics/SQL/SqlTest.py ''' import sys import os sys.path.append('../') import numpy as np from dw_sql_operator import SqlOperator database61 = {"...
9ae5ff344a8e8c0808c128d4ebec7d06cdcc6a86
dcc9d1dbee5b3dc37f8c8a97ba3045a5a6227bf0
/structures/union_find.py
0c8a1d46c4b5154d8c951602b80bc41b238a4f37
[]
no_license
alex-bo/leetcode
1786d450e50efb52fcb3748efa89ae1d5feb7d4f
c3cc49250a564801b82bac89115de94c75569dce
refs/heads/master
2022-11-12T00:15:41.860752
2022-11-05T21:07:12
2022-11-05T21:07:12
184,185,382
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
union_find.py
# TODO: implement Union-Find.
d84cc7acc548d92ab7cc1f342f16612ef89b4fae
f8ae5bfb584b1146c9374d1ed691071101c69959
/tamarco/resources/basic/metrics/meters/__init__.py
8b4388c804cc2ba1d305b4de5c5cf1685f727b96
[ "MIT" ]
permissive
System73/tamarco
efaafc688e7842f3d3401824bfd5f0248ba6f5cb
c85bec267d39057a4cd5f1c9854d5e2840cebb1e
refs/heads/master
2023-01-12T14:48:41.736446
2020-04-08T11:54:44
2020-04-08T11:54:44
206,774,208
11
3
MIT
2022-12-26T20:56:21
2019-09-06T10:50:42
Python
UTF-8
Python
false
false
159
py
__init__.py
from .base import Timer from .counter import Counter from .gauge import Gauge from .summary import Summary __all__ = ["Counter", "Gauge", "Summary", "Timer"]
ded0350e850db9b89a13342cd1b011bd4d5d9a93
4cc13e50fd2ee6787bd0fc17aa7a696ff4f28f5e
/samples/model/s3_sample_model.py
c061deb0a5ccfe1cbfb03ecc24d966cb857845dd
[ "Apache-2.0" ]
permissive
mbaijal/sagemaker-controller
684a23e7c7fcfad92f0f7345b0fa894447223a8a
fb9b751308ecb67f8f2223e7000e3b301ff8d2fb
refs/heads/main
2023-07-31T20:25:25.288816
2021-09-16T22:09:03
2021-09-16T22:09:03
335,694,679
1
0
Apache-2.0
2021-02-03T16:58:58
2021-02-03T16:58:58
null
UTF-8
Python
false
false
974
py
s3_sample_model.py
import urllib.request from urllib.parse import urlparse import sys # Gets your bucket name from command line try: bucket = str(sys.argv[1]) except Exception as error: print("Please pass your bucket name as a commandline argument") sys.exit(1) # Download model from pinned commit url = "https://github.com/a...
3ef28304f31fabdaafc1e9f9cfc18492e5a40408
f86ac8e250dd453f997b761c7eccc6916ed8522e
/mapping/models.py
fa141cb72fa209cced62b1277ef56dca8dff6358
[ "MIT" ]
permissive
joshua-taylor/dataIntegrator
5fdda71ff278bf2f1168ada1e1bd5fa2193e5e94
dc0cdc6bb0177b6499d49ca2e39b42291656235e
refs/heads/master
2020-03-28T09:30:32.680918
2018-09-09T15:55:47
2018-09-09T15:55:47
148,036,929
0
0
null
null
null
null
UTF-8
Python
false
false
2,703
py
models.py
from __future__ import unicode_literals from django.conf import settings from django.db import models import datetime class Requests(models.Model): creator = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, ) name = models.CharField(max_length=40, blank=True) desc...
46956a3981ec568946a314f10616e5a334e0e869
707c6a7f3b3213c8a996967ede905aeb18a8c6d9
/solutions/Integer-to-English-Words.py
809f049429a68399f80cfe9cf312249a4f85fc54
[]
no_license
Ziyilan/Pyleetcode
d35b9c2ae6c890dfd42804264b139bfddb8db563
81a9d98607b4ce554507d16763ee82f7dad49edd
refs/heads/master
2020-12-11T02:11:38.470153
2015-10-27T18:46:47
2015-10-27T18:46:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
Integer-to-English-Words.py
""" Author: Jing (https://github.com/gnijuohz) Integer to English Words: https://oj.leetcode.com/problems/integer-to-english-words Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. For example, 123 -> "One Hundred Twenty Three" 12345 -> "Twelv...
2ca903b23f51718a9b92ec63af4d57cdd2f9c64e
a298598d08596c35021461e00f48ba2a5ef8f66f
/exercises/2.1/train-arm.py
52862b45882d417006a75879ebdf2d7a81e52d77
[]
no_license
misko/openai_stuff
f328d573d50af0d5019fd79bebfdac468ee98fa8
6fe9dfbfc080d4aeec891c549eda97922a708a7e
refs/heads/master
2021-01-17T17:34:19.250575
2016-07-26T04:48:25
2016-07-26T04:48:25
62,927,965
0
0
null
2016-07-12T17:09:18
2016-07-09T02:20:31
Python
UTF-8
Python
false
false
1,637
py
train-arm.py
import gym import numpy as np #env = gym.make('CartPole-v0') env = gym.make('Acrobot-v0') env.monitor.start('/tmp/cartpole-experiment-1',force=True) #how many big iteration to do - big iteration is updating the means and variance big_its=200 #how many small iterations to do for a fixed theta distribution small_its=5...
68a5455c122cc86f51de0c5b1407d62080e4a759
264d5cfac2d2275022e2f809395008a266e31a46
/Tweets-Listener.py
c8ca2eb37c1ec98e31ad644c1cad610d368076dc
[]
no_license
nguyentrantuan/Twitter-Stream-NoSQL
b3276a87435d1d3a540ccdad36f43febe7c418a4
0307a3c5ff39847ff5e743660ca5d637066f6419
refs/heads/master
2021-01-11T21:09:20.035000
2017-01-19T04:25:42
2017-01-19T04:25:42
79,257,945
0
0
null
null
null
null
UTF-8
Python
false
false
3,451
py
Tweets-Listener.py
#Import the necessary methods from tweepy library from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import json import boto3 import boto.dynamodb2 from boto.dynamodb2.table import Table from boto.dynamodb2 import connect_to_region from boto.provider impor...
3aabf58de598547683b6f8a661701d4f35936b0b
f2c379bb45a298737085db66123cfe7344b6a07c
/testModelFilter.py
d8aca26ffc8c241f49f3be201cfcf2d9ca5942fa
[]
no_license
dwchung4/Political-Ideology-Detection
184682a61af6716fdb89e0847ea4758649168257
6cd9834592592d80a810107919507a00ac46068e
refs/heads/master
2021-01-01T04:35:35.840094
2016-05-10T02:26:22
2016-05-10T02:26:22
58,423,032
3
1
null
null
null
null
UTF-8
Python
false
false
3,812
py
testModelFilter.py
# test naive bayes and linear SVM classifiers with additional filters # on the 2005 Congress debate transcripts import numpy as np import os, fnmatch from sklearn import metrics from sklearn.metrics import f1_score from sklearn.cross_validation import StratifiedKFold from sklearn.naive_bayes import MultinomialNB from ...
513ccdaac9c7fe42cfbb327abfbccb4aeaccc971
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_323/ch127_2020_04_01_17_05_06_998977.py
a4373e7fe2fe89583c306f1fc363262a2f80b0b9
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
ch127_2020_04_01_17_05_06_998977.py
import math def calcula_elongacao(O, A, T, W): x=A*math.cos(math.radians(O+W*T)) return x
15e8852c0c88421cba4dc949ceceddf96e90378d
48f3b799925d1fcc22293adb494cbaac756d90b4
/Grover/grover.py
efbdbb07443d94f3f92c56db1f28c3f4c79b75a4
[]
no_license
HenningBuhl/QuantumComputing
e1f1b831a59ff4025ad2416bdeeaeb162e6199e4
a9d64890d24c6ba24685c5b4fc6a608bfed9848b
refs/heads/master
2023-05-31T13:06:20.012206
2021-06-15T18:50:51
2021-06-15T18:50:51
358,881,148
0
0
null
null
null
null
UTF-8
Python
false
false
2,188
py
grover.py
import matplotlib.pyplot as plt import numpy as np # importing Qiskit from qiskit import IBMQ, Aer, assemble, transpile import qiskit as q from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister from qiskit.circuit.library import XOR from qiskit.providers.ibmq import least_busy # import basic plot tools...
916dd70ad97728e824d877978964a6683cc480fa
f1368269d2a52457fb25e2fb8f7b489123299ed5
/bucket_list.py
0d041a2b17e191363a18d48eb98d619d07b4d3fa
[]
no_license
bukandu1/btdapp
c45b39c77904b093766cd9c36f55363a318d7f94
3663690b4af6d3e64e92309eccf31d246924f675
refs/heads/master
2022-12-14T10:34:37.045687
2020-01-17T01:01:53
2020-01-17T01:01:53
234,435,145
0
0
null
2022-12-08T03:27:19
2020-01-16T23:59:45
Python
UTF-8
Python
false
false
154
py
bucket_list.py
def get_bucket_list(): return "no data" def create_bucket_list(): pass def delete_bucket_list(): pass def update_bucket_list(): pass
7434be81908e5d5e6cbf7c6140fe527dd0176161
710d0cbb3e4857a88385904bfb81d716cd5eae16
/get_opinion.py
836e1038e3f9991e97b668c275a45c2c58f30828
[]
no_license
nhsb1/barchart_opinion
a4e78959e85b2edbbf2544329d5ca91f0ddd78af
702610c32f5ace2bb98759e16426cd6367ba5036
refs/heads/master
2021-07-04T16:25:09.061709
2017-09-27T21:41:15
2017-09-27T21:41:15
105,072,257
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
get_opinion.py
#!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 def get_barchart_opinion(ticker): """ Returns barchart.com opinion as a percentage (e.g. 88%) from URL - https://www.barchart.com/stocks/quotes/OLED/opinion """ baseurl = 'https://www.barchart.com/stocks/quotes/' endurl = ticker urlsuffix...
1d4142b59971dfda73ff2d0faf62131a84e139f6
8f0ce1be6cc093d962c64179eec99c7ccc20ffc4
/design/migrations/0015_auto_20171005_1414.py
37b25a61259fa6e457c895e191623ac54d488ef1
[]
no_license
dmeehan/futuregreenstudio
cf5e12c6ead8f0c7023ba09d5868749888068b72
e6e2b7f7ffa2ed251d21e6b1d07573ab4f70782f
refs/heads/master
2023-08-30T20:12:24.814970
2023-08-28T14:55:26
2023-08-28T14:55:26
89,943,081
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
0015_auto_20171005_1414.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-05 14:14 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('design', '0014_auto_20171004_2036'), ] operations = [ migrations.AlterModelOptions(...
dc40567c1045721c36bfe026c47f1559b1482895
1c57c4c958e369f9139b0db7c1ba4336b0ba47f6
/ahp_rest/objectives/models.py
0a51304a4520ac4e42ca424d5f69fd734066db1a
[]
no_license
vLDemonizer/ahp-rest
8eb9a73e3b793d98a1da15f8ee2bf598c8352fc2
5410272919da965373805eb600cd0f7cc45d0b75
refs/heads/master
2021-07-18T22:37:50.889528
2017-10-26T16:53:32
2017-10-26T16:53:32
108,071,219
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
models.py
from __future__ import unicode_literals from django.db import models class Component(models.Model): judgement = models.ForeignKey('Judgement', related_name='components', on_delete=models.CASCADE) name = models.CharField(max_length=80) most_important = models.BooleanField(default=False) by_how_much = ...
47f92ec3ee10159ff6b09b8d89fc60326ab3798a
57ddab24ba7860f8878c689f9fa22b0779d60157
/categorias/iniciante/uri1048.py
988a8e9fb1e475a3c356f45cc64ed9aa132cb676
[]
no_license
matheusfelipeog/uri-judge
ba1d32e50ad7239b331ad0e1181a1bffc6e61b41
0232be52da78fd67261c6d6a74eff3267d423afd
refs/heads/master
2021-07-03T02:32:13.395829
2021-01-29T18:32:35
2021-01-29T18:32:35
215,845,427
2
0
null
null
null
null
UTF-8
Python
false
false
698
py
uri1048.py
# -*- coding: utf-8 -*- tabela = [ [0, 400.00, 0.15], [400.01, 800.00, 0.12], [800.01, 1200.00, 0.10], [1200.01, 2000.00, 0.07] ] salario = float(input()) reajuste_ganho = 0 porcentagem = 0 for linha in tabela: salario_minimo, salario_maximo, porcentagem = linha if salario_minimo <= salario...
30a6d71ca22e0fa906360892595d8d246c720f31
6d35c3cdc2ea4a39cd12cff80d09375c78168a6a
/util.py
bd747965fba5af5adf3e03e44a05e99b76ceda77
[]
no_license
Spumi/ask-mate-python
9c4cf02a791437e6bf7c1a42abeae022158821dc
f5bf4dbb790cfab784b5d38d44d78d1be93fd99f
refs/heads/master
2020-07-22T18:41:02.307749
2019-09-23T07:31:08
2019-09-23T07:31:08
207,292,149
0
1
null
2019-09-09T11:21:05
2019-09-09T11:21:05
null
UTF-8
Python
false
false
4,279
py
util.py
import copy import os import time from datetime import datetime from flask import request import data_handler from data_handler import get_questions, get_answers QUESTION_DATA_HEADER = ['id', 'submission_time', 'view_number', 'vote_number', 'title', 'message', 'image'] ANSWER_DATA_HEADER = ['id', 'submission_time', '...
5a25b958cc14a7efe027f51492fc0b66f3eb0e63
657e68fad26dd3cb2fd2257c66b29153fed053f9
/walmart/similarity.py
51386b88407349cc95df19cf2a38139a3dad9c31
[]
no_license
tabasco7879/kaggle_walmart
be1c2b8459f1bbae08ad5577ea22ac05e4a1f48c
831e8be6b1947b8430d0bb3d7c1f2bb181cbf1c2
refs/heads/master
2016-09-05T14:23:26.939684
2015-05-06T12:46:17
2015-05-06T12:46:17
34,701,090
0
0
null
null
null
null
UTF-8
Python
false
false
2,624
py
similarity.py
import numpy as np import pandas as pd from feature import compute_feature2 from utils import normalize def sim(train, valid, test, store_weather_data, is_normalize=True, hidden_feature=None): store_train=store_weather_data.loc[train.index] store_valid=store_weather_data.loc[valid.index] store_data=pd.conc...
cdf8c8960e340bd0b4b759693a6f1e71dbe12a0d
e1346f4a84804a55a4fd88ca82b0541449185448
/2-RegressionModels/1-LinearRegression/2-MultipleLinearRegression/Multiple Linear Regression.py
d4aebc4894d6dcfd07781dc269ed9f3459db7aad
[]
no_license
Hamza50537/Machine-Learning
ea23ed4848cd5fe2e0caf029ef921e61ee0069ec
91f7f05a9b2dd4d2c3eb404d4222870f633b2e7e
refs/heads/master
2023-01-09T21:38:01.826906
2020-11-07T20:37:13
2020-11-07T20:37:13
294,381,197
1
0
null
null
null
null
UTF-8
Python
false
false
2,152
py
Multiple Linear Regression.py
#!/usr/bin/env python # coding: utf-8 # In[44]: import numpy as np import pandas as pd import matplotlib.pyplot as plt # In[45]: dataset=pd.read_csv('50_Startups.csv') df=pd.DataFrame(dataset) #Creating a dataframe X=df.iloc[:,:-1].values y=df.iloc[:,-1].values # In[46]: df.head() # In[47]: df.info() ...
40c94f5bcb78dad4e5a1a1ff0cf7a27b82c75193
c06e53285529bf9d721ddc59f346634e0051b353
/delftfm_benchmark/gtsm_coarse.py
5668e2541bdb1fb9ad4805115d955f4085401a47
[]
no_license
nlesc-mosaic/TCM
0af5375c8acc4148350908163e9cd0ac1a4bdd5b
62de2bd9b18e41a5617c83f075d7e21733cc11f4
refs/heads/master
2022-05-06T15:38:17.534777
2022-03-30T11:57:58
2022-03-30T11:57:58
254,318,255
0
0
null
null
null
null
UTF-8
Python
false
false
3,938
py
gtsm_coarse.py
from datetime import datetime from omuse.community.delft3d.interface import DFlowFM from omuse.ext.hurricane_models import HollandHurricane from amuse.ext.grid_remappers import bilinear_2D_remapper, nearest_2D_remapper from omuse.units import units from matplotlib import pyplot import sys import numpy def my_plot(...
edf45197d4f502a71f7b90b39d9b9cfdc4c2b9be
a1137b1776eaa0f9a1434c666e0a53e4c9aad796
/complicado.py
ea0d3529b6144a9a30a9d19d2b885d1252081c0f
[]
no_license
CristianBerrioP/DojoPython3
0804e250380e09b28c32f053e76a1a0a784a2a1f
ee45ef52b6c4b300e79bf5a869bde8b742e105bb
refs/heads/master
2021-06-25T09:02:12.046208
2017-08-26T17:05:30
2017-08-26T17:05:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,231
py
complicado.py
from tkinter import* root = Tk() root.geometry("1000x500+0+0") root.title("Dojo python") text_input = StringVar() operator="" Tops = Frame(root, width=1600, height=80, bg="powder blue", relief=SUNKEN) Tops.pack(side = TOP) frame = Frame(root, width=300, height=700, bg="powder blue", relief=SUNKEN) frame.pack(side =...
f3ada017fec0997d88962af0120c0bfd2a7fb027
b6b4f9740de4c020a008a7fa3816f681a5eff489
/problem203.py
4d7775867ac3000ca8a864f833b9b8ded99cdb01
[]
no_license
matejm/project-euler
b3c47bad6258e09f71672bb97b6b92aa5e403bf3
363c269a2b1d59dbcea1c3be3bd9aae334bae10b
refs/heads/master
2021-03-30T16:39:06.877284
2018-03-25T17:14:15
2018-03-25T17:14:15
122,353,792
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
problem203.py
def squarefree(n): if n % 4 == 0: return False i = 3 while i * i <= n: if n % (i * i) == 0: return False i += 2 return True all_coeff = [] l = [1] for __ in range(51 - 1): l2 = [1] for i in range(1, len(l)): l2.append(l[i - 1] + l[i]) l2.append(1) l = l2 all_coeff += l all_coeff = set(all_coef...
5937e09d782b82f1024e6b94dc1802ef78a8c8ad
7d672d718f9f5d21cd50639d76d808a880070a45
/weixin/contact/test_department.py
6b2d056d3ae0d44357dba7ed29c4d62515abda7a
[]
no_license
krystalzcx/pytestFrame_aliyun
5478558f3b777b37b96096e4f2271d0228538aa4
2d174409361e13eb24d2e6f5fbe1ddaf0e47865e
refs/heads/master
2023-03-07T06:14:39.625997
2021-02-13T08:03:03
2021-02-13T08:03:03
328,106,112
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
test_department.py
#-*- coding:utf-8 -*- import sys print(sys.path) sys.path.append('/root/myworkspace/weixin') from contact.utils import Utils from contact.token import Weixin from contact.department import Department import requests import logging import json import datetime import pytest class TestDepartment: @classmethod de...
60e714a796c6b77d15f188f5b1289df2e67ffeeb
74967011c999823cef067f05d2ae104986c34be6
/ANN_tuned_predict.py
aaa0d7aef683a73fb30736a21176af57978e43ff
[]
no_license
aakarsh2126/Business-Churn-Rate-Pedicitor
bc9defb1e66fa76b936120c25439cc0b5ebdef91
cfe82417507e5a73b3a1e59fec6b4867cac33582
refs/heads/master
2020-04-28T15:22:29.821191
2019-05-14T14:49:05
2019-05-14T14:49:05
175,370,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
ANN_tuned_predict.py
import numpy as np import matplotlib.pyplot as plt import pandas as pd from pickle import load from keras.models import load_model # Importing the dataset dataset=pd.read_csv('Churn_Modelling.csv') X=dataset.iloc[:,3:13].values y=dataset.iloc[:,13].values #encoding categorical data #removing countries in column 0 as ...
28bcfede2017c445cd2bd7d7385884bb2f24990a
a15ecefc814f5aba53238f45be68117137731d1b
/Gomokuy/gomokuy.py
753913f9c86a3743a8b2eef14118c7b949e69077
[]
no_license
huangbinhustei/PythonLearning
3f478ce5da456b6d2ae48072e564f5a1e7f429e4
591c9bef41a56a5855071c50968099038c090618
refs/heads/master
2020-05-21T13:30:02.321253
2020-02-04T07:46:07
2020-02-04T07:46:07
46,901,262
2
0
null
null
null
null
UTF-8
Python
false
false
11,506
py
gomokuy.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import Counter, defaultdict import logging from base import BaseGame, B, W, timing, show_timing from conf import a v_max = -9999999 v_min = 9999999 ROADS = {0: (0, 1), 1: (1, 0), 2: (1, 1), 3: (1, -1)} SCORE = { "冲6": 100000, "冲5": 100000, "...
6a55c03315919c1540a3a2468a9e43e6e6d36d40
cb1d59b57510d222efcfcd37e7e4e919b6746d6e
/python/shortest_word_distance.py
60e9b0c3d9a18dccb6d3033bbb49b4df303830ad
[]
no_license
pzmrzy/LeetCode
416adb7c1066bc7b6870c6616de02bca161ef532
ef8c9422c481aa3c482933318c785ad28dd7703e
refs/heads/master
2021-06-05T14:32:33.178558
2021-05-17T03:35:49
2021-05-17T03:35:49
49,551,365
2
0
null
null
null
null
UTF-8
Python
false
false
514
py
shortest_word_distance.py
import sys class Solution(object): def shortestDistance(self, words, word1, word2): """ :type words: List[str] :type word1: str :type word2: str :rtype: int """ l = -1 r = -1 res = sys.maxint for i in range(len(words)): if w...
63119181e2c197992a4fc59a392ba130e8578b98
707127ea5add5439b31bf4bd5311bf766b9690d9
/clase_dos/mini_desafio_dos.py
556146e0c06a4b475a57962c503259a1bb0ee590
[]
no_license
malenacadima/Python_ITBA
d19082fac15024ff4d419fefca0e13e2415176d3
ed9630ed6e37d694390289818731b1f494a7be21
refs/heads/master
2023-01-08T11:07:09.630051
2020-11-10T14:33:55
2020-11-10T14:33:55
304,913,433
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
mini_desafio_dos.py
''' Mini-desafío: Operaciones con strings Hacer un programa que permita ingresar un nombre y un apellido usando dos veces la función input( ). Luego debe crear la variable nombre_y_apellido que contenga ambos datos separados por un espacio. Un fabricante de tarjetas admite la impresión de hasta 26 caracteres para el no...
833a7e2b6bb4917a4275813814c9bc198bdfc7b3
e835ae2e3940e9f528c9160b9059dfe8e952d221
/main.py
ffede885b91d63fc9ad5231b78be81375470a4b8
[ "Apache-2.0" ]
permissive
lxl0928/Convex_hull_algorithm
12711b1bcf63847b46610372665aad2963fecd18
47b8bde309efdbccd200f3aa9092d97424c80eb7
refs/heads/master
2020-09-17T11:10:57.763720
2019-11-26T02:29:44
2019-11-26T02:29:44
224,084,195
1
4
null
null
null
null
UTF-8
Python
false
false
5,732
py
main.py
# coding: utf-8 from math import sin, cos, radians, degrees, atan2, asin, sqrt from decimal import Decimal class HullAlgorithm(object): @classmethod def get_coordinates_by_offset(cls, points, offset=0.00045): """ :param points: :param offset: 表示便宜0.00045° :return: """...
8ee8a92656584ea4617ce65a778de08cb2207ab6
71694bade4ecb12889239698634c83c2b6e5be15
/day 4/frequency.py
99639bdf92097c1d2e2030c6be4190d2cdb415c3
[]
no_license
vidhan-arora/my_repo
b78fc2d112ee277ea390dc6bfa67ec27bf6d34b1
1b51f007286b0482385c38f25f76ab933ca64f56
refs/heads/master
2020-04-14T17:11:46.116349
2019-06-11T08:52:56
2019-06-11T08:52:56
163,972,457
1
0
null
null
null
null
UTF-8
Python
false
false
537
py
frequency.py
# -*- coding: utf-8 -*- """ Created on Wed Jan 23 17:48:01 2019 @author: lenovo """ str1=input("enter the string") temp="" dict1 = {} for i in range(0,len(str1)): if str1[i] not in temp: dict1[str1 [i]] = str1.count(str1[i]) #a=(f"{str1 [i]}:{str1.count(str1[i])}") #print(a) temp=t...
dcd094d2149df0ee33fbc1c432bceb5cd5f04e6e
66edcc98d8c92a43e59d3dc67993f26f429b1c94
/mins.py
191719d3e2c313c46c4c803172b5c3b113adfcdc
[]
no_license
dmitryhits/learning_python3
a9434f53beaf455c18c0878d2ca5c7aca431b029
b85a85d2e90cdc73497d50434a0ef3dc7c509028
refs/heads/master
2021-01-19T21:38:53.507137
2017-09-26T11:10:35
2017-09-26T11:10:35
82,525,803
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
mins.py
def min1(*args): res = args[0] for arg in args[1:]: if arg < res: res = arg return res def min2(first, *rest): for arg in rest: if arg < first: first = arg return first def min3(*args): tmp = list(args) tmp.sort() return tmp[0] print(min1(1,2,4,...
7f7439f1155f1510b0c9ea7100a5ed5cc4025ca2
82961a91434e3d8af88b24aa05217c893ba33835
/tjapp/migrations/0003_auto_20171119_1620.py
07772063133d43a460d86a2edfffecd95ec49d1c
[]
no_license
marty501/TJ
ea8c74b1a1c9cf1069f9351e0cce86c803a4c3af
a14561d484ee6df9578c4bc42e3edf38e3a4b72c
refs/heads/master
2021-05-12T02:47:11.640740
2018-02-28T23:05:59
2018-02-28T23:05:59
117,598,096
0
0
null
null
null
null
UTF-8
Python
false
false
814
py
0003_auto_20171119_1620.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-19 16:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tjapp', '0002_auto_20171119_1610'), ] operations = [ migrations.AlterField(...
8867ff842ca785268fa83f6c121b3f242814cafb
a2f89630a94d63b9ac8e3fd663ec743698b20840
/cogs/suns_of_gold/trade_table_gen.py
563e7b061cd6b8111b6feeadc810ec5dd0dfc6c4
[ "MIT" ]
permissive
glynyon-5020/SWNDiscordBot-Space-it-and-run
19ec7b8a597185509bff620cc0c60e984e809787
cb73b9d51591b6af9f2a1a603ea0dd8a7161020c
refs/heads/master
2023-01-02T11:10:13.232416
2020-10-26T06:25:55
2020-10-26T06:25:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,006
py
trade_table_gen.py
from cogs.suns_of_gold.trade_table_helpers import * import random class Good(): def __init__(self, name, tags): self.name = name self.tags = tags self.price = get_price(self.tags) class TradePlanet(): def __init__(self, tl): self.tl = tl self.goods = self.generate_good...
125a6195d9e43c0ed44b1ae5ecd50498965b16fa
46236e9bcd23ee415e8fcc77529b3888ec7cd323
/georand.py
f5281efa2e79873473a4a83ad1c6e202264d832c
[]
no_license
OSHistory/georand
eeeb5708a8f28b943bd388a3efa92aca69cc381b
b2d938eaf13aa8e0170bc98cd389a317ae5e3e02
refs/heads/master
2021-01-11T19:55:11.214695
2017-01-19T07:46:51
2017-01-19T07:46:51
79,426,556
0
0
null
null
null
null
UTF-8
Python
false
false
3,195
py
georand.py
import argparse import json import random try: import geojson except: print("Missing dependency: geojson (pip install geojson)") def parse_bbox_str(bbox_str): bbox = bbox_str.split(" ") bbox = [float(num) for num in bbox] return bbox def parse_properties(prop_str): props = prop_str.split("|"...
8498be0252ba95781753a8990fcbab686d67f8b2
a6d2a393352178f049911371e4b3593c13b96feb
/lib/hdfs.py
5c647db312e7bedeba27082a912bc52b19eaaf7a
[]
no_license
CMADHANKUMAR/Automation
710fafd8b1cb18df6be0d1a1dfed32ca769ccb1b
a39a7743774da1eb52cb92dd13d8b4682d1bc6b1
refs/heads/master
2020-04-17T07:09:50.442551
2019-01-25T10:27:11
2019-01-25T10:27:11
166,356,858
0
1
null
2019-01-28T09:15:00
2019-01-18T06:39:55
Python
UTF-8
Python
false
false
428
py
hdfs.py
class Hdfs: def make_dir(self, dir_name, util): cmd = "sudo -u hdfs hdfs dfs -mkdir "+dir_name util.run_call(cmd, shell=True) def own_dir(self, dir_name, util): cmd = "sudo -u hdfs hdfs dfs -chown -R root:hdfs "+dir_name util.run_call(cmd, shell=True) def put_file(self, sou...
5c719c11ce6b36fe90a5d815bee366125f851285
8705abaed15d08919fa340d0444b924b36ee6570
/Unit1/Quantum Computing and Cryptography - 02: Properties of Complex Numbers - Nanomodule/pyfiles/finalquizgrader/fquiz2.py
2ef52231bb3b2365d3af1b7183c42f9d8f55ade3
[]
no_license
pradeep6/quantumlibrary
10a62a4b0cef33bbb7a8ee022df409a65a22434d
5857d9479b8dd38aed0e2ef46249e4722fb4f617
refs/heads/master
2020-05-09T10:44:07.697539
2019-04-12T17:46:41
2019-04-12T17:46:41
181,054,922
1
0
null
null
null
null
UTF-8
Python
false
false
7,157
py
fquiz2.py
import unittest, cmath from math import isclose """ This class is a test class used to test the divComplex fuction. Example: num1 = 10 + 12j num2 = 5 + 2j print(divComplex(num1,num2)) Output ---------------------- (2.5517+1.3793j) """ class divComplexTest(unittest.TestCase): #Test positive real zero imaginary. ...
5855e13125a52a0111d78429fea0d299069e31d8
cef4c18160c6ae81cb6f549567fc9399a502dfc3
/ARC/ARC102/experiment.py
2715100616a0c5720735cbf86cec2288ff2939cb
[]
no_license
nobishino/AtCoder
0a6c918e7f0bb1acbb63a58894f7132e6d640a98
5c55861d3649fa38c20e77113d2ea5297900a480
refs/heads/master
2022-01-02T09:16:50.051125
2021-12-25T14:00:04
2021-12-25T14:00:04
147,978,642
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
experiment.py
import itertools def calc(N,K): seq = range(1,K+1) return(list(itertools.combinations_with_replacement(seq,N))) def solve(N,K): candidates = calc(N,K) #print(len(candidates)) ans = [len(candidates) for _ in range(2*K + 1)] for candidate in candidates: appeared = set() pairs = it...
f8265afb25f260c34cf755d878271090016a32b8
99b25caa1cfda5625ae3f8d468f08f8918b4a173
/8term/OR/lab2/BranchnBound.py
ff486ed1a2ca4685060ac550852482cc7d8e8b7e
[ "Apache-2.0" ]
permissive
nik-sergeson/bsuir-informatics-labs
c00b0a11b1135715a56ea27157edd16722279680
14805fb83b8e2324580b6253158565068595e804
refs/heads/main
2023-04-22T07:13:50.497231
2021-02-08T09:35:37
2021-04-29T12:59:22
321,606,512
0
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
BranchnBound.py
from sympy.matrices import MutableDenseMatrix from sympy.core.numbers import Integer from math import floor from lab1.DualSimplexMethod import DualSimplexMethod class BranchnBound(object): """ :rtype A_matrix:MutbaleDenseMatrix :rtype b_matrix:MutableDenseMatrix :rtype c_matrix:MutableDenseMatrix ...
89c03ea3dcc87f14189717c198c18ccdc3545c03
06ad198319aa5f9fbcad3d5448fd94d280486be3
/pressbrief/runner.py
08cdf439a67dfca2be31954a67b78afb1ee3f949
[]
no_license
koczanm/pressbrief
c73ec53d14101b954e448d77a6b919d0388985db
c9d3cd2841656febd6e3eb246ca35548011ed31a
refs/heads/master
2023-07-25T01:59:41.020053
2020-07-14T09:06:54
2020-07-14T09:06:54
272,665,478
1
0
null
2021-09-08T02:22:31
2020-06-16T09:25:55
Python
UTF-8
Python
false
false
3,877
py
runner.py
import logging import os from datetime import datetime from exceptions import PressBriefError from pathlib import Path from typing import Any import yaml from aws_lambda_context import LambdaContext from dropbox import Dropbox from dropbox.exceptions import ApiError, AuthError, BadInputError from exporter.pdf_exporte...