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
7b6c89ba3bd3e3b10f43a900c90787f315c1935d
311f73a4363bfac06504fdb06b808361a464369e
/switch_conf.py
e4acd566b48d90251f9be7e46313bea749a92a5e
[]
no_license
ogulcanhgul/icsnetworkhardening
20c1953cde64c45ce7d346f8f83ec55cd51c135b
132dd4794496a0d00561686fefd92d416715d0dc
refs/heads/master
2023-06-30T13:08:18.103266
2021-08-08T17:35:51
2021-08-08T17:35:51
384,921,177
0
0
null
null
null
null
UTF-8
Python
false
false
26,511
py
switch_conf.py
from netmiko import ConnectHandler from fpdf import FPDF import getpass pdf = FPDF() pdf.add_page() pdf.set_font("Times", size = 14) pdf.set_text_color(230,0,0) pdf.cell(200, 10, txt = "SWITCH GUVENLIK RAPORU",ln = 1, align = 'C') pdf.set_text_color(0,0,0) pdf.set_font("Times", size = 15) def getpasswd(): pa...
a97c72ba29f7386cb779df4bb2770c1ebbd6cf5e
3be53f86678b158213192ac60b6edf4997451082
/main.py
144097e2e3382d693f25e8879046727436d9ba9d
[ "Apache-2.0" ]
permissive
Onix-Systems/stackoverflowchallange
7ff9ea706d4963cf2d672218440760cf15efbc54
7764779a77da6317851f932baf58d492118e22c5
refs/heads/master
2021-05-07T02:43:12.183831
2017-11-15T09:02:31
2017-11-15T09:02:31
110,665,254
0
0
null
null
null
null
UTF-8
Python
false
false
2,624
py
main.py
#!/usr/bin/env python from flask import Flask, render_template, request, redirect, session from tools import make_request, build_auth_url, make_post_auth_url, \ make_get_user_request from forms import UserIdForm app = Flask(__name__, static_url_path='/static') app.secret_key = 'myverylongsecretkey' app.config.fro...
cb08971982c4828bf17c3430ac7f77436c1d8e6a
474687a071fdc5b82c9eddb50afbf8556c3dd79a
/setup.py
7cd5aa738d61466b5e1db160ccde3cb964043cc9
[ "BSD-3-Clause" ]
permissive
gaia-dpci/GaiaXPy
6f094c1ca08b6f3da1eef73f7a20d4acb30bf7bd
74351be71d5413d1582f9c3d87467c4324adbda0
refs/heads/main
2023-08-31T04:06:04.201115
2023-08-14T12:28:16
2023-08-14T12:28:16
485,298,196
33
7
BSD-3-Clause
2023-09-02T12:52:44
2022-04-25T09:07:36
Python
UTF-8
Python
false
false
1,953
py
setup.py
""" Setup module for GaiaXPy. Francesca De Angeli, Zuzanna Kostrzewa-Rutkowska, Paolo Montegriffo, Lovro Palaversa, Daniela Ruz-Mieres - 2023 Based on: https://packaging.python.org/tutorials/packaging-projects """ import re from os import path from setuptools import setup, find_packages current_path = path.abspath(...
40c65875af1aa216c3622b65b90eda7f71c743e4
2d364369f5d6bdeef4e601f167ea4d3925349f7a
/while-loops.py
7200c09927288d934392bc40290832a31fdc3da5
[]
no_license
dudistData/Python-projects
29fec463b208ac0935974d7c63b25aa39d3c69c6
0bb8acaff16c83deace1ee54669f089c18708a8b
refs/heads/master
2020-04-22T08:10:01.419006
2019-06-30T00:10:08
2019-06-30T00:10:08
170,235,779
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
while-loops.py
# -*- coding: utf-8 -*- """ Created on Sun Apr 7 15:48:55 2019 @author: wilki """ count = 0 while (count < 9): print ('The count is:', count) count = count + 1 print ("Good bye!") count = 0 while count < 5: print (count, " is less than 5") count = count + 1 else: print (count, " ...
acb708631602452247d19660da98cd05c680d5e9
55c799075cdff0038afa0bbc249d054888df16dd
/multiprocessing_pi_calculator.py
5c72f0877a7020b159d349d972559100f17f248d
[]
no_license
leandro-colle/calculadora-pi
0bab66e2298900a1e34beba2453763bbd62e453e
ba65b32f6cf60bc566a96e0556dfe92ee168db20
refs/heads/main
2023-04-21T20:11:14.214570
2021-04-23T01:26:40
2021-04-23T01:26:40
360,725,348
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
multiprocessing_pi_calculator.py
from multiprocessing import Process, Queue import sys def calculatePI(ini, nProcess, nTerms, queueResult): pi = 0 for i in range(ini, nTerms, nProcess): term = 1.0/(2*i-1) pi += term if i % 2 == 1 else -term queueResult.put(pi * 4) if (len(sys.argv) != 3): print('%s <num_terms> <num_process>' % sys.argv[0...
00d4a98ee4277d30a2c7cf5f45fb5efd48ef2a54
87cbb2945486afaca9c921178ecaa65468abfb00
/src/latex_utilities.py
7d7c4fab84a6912e5439b8e410f988f7d60f3cc6
[]
no_license
AndriiKuliak/latex_auto_bot
6a22981ce8308e453039c99747ef29ad6814f34a
b84433e78b5fb22ccec3ba50e367c1f67123cd3c
refs/heads/master
2023-02-02T01:36:07.584425
2020-12-18T03:31:49
2020-12-18T03:31:49
321,822,780
0
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
latex_utilities.py
import os import subprocess import fitz import config class LatexUtilties: def __init__(self): pass def _create_latex_file(self, user_id, raw_latex): document_name = '{}user_document_{}.tex'.format(config.WORKDIR_PATH, user_id) with(open(document_name, 'w')) as doc: doc....
9df117a9549c6a6245f6f78d021b19e26d632187
b828e56285d8d64b6668c3652cc79ebc53561676
/OtherTestFile/untitled5.py
0a4e9b92cdee6b294b4e5fec4370ea51e16fb71a
[]
no_license
Kevin2599/GeophysicsResearch
20ffea6b54ab235308a136ab833ae30ad89c49a7
80957ff10f312955d58777ed962944f27553558b
refs/heads/master
2020-04-13T17:42:55.643149
2017-06-26T07:27:55
2017-06-26T07:27:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
untitled5.py
# -*- coding: utf-8 -*- """ Created on Thu Feb 16 18:27:41 2017 @author: LLL """ from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) import tensorflow as tf x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784,...
81d661d8430cd0106e25f550f511ede7c24e1e96
9b09346c67ebaa176b33716d07a5404f49910640
/Temperature.py
b560fe347c41980da79c5027fb73b8542786d20d
[]
no_license
DuaaS-Codes/Temperature.py
eb52f593709d255ada12a223a1897ce4854e8610
ff7447293b94926bcf29cc68635b82426988b2cb
refs/heads/master
2022-12-24T19:02:28.362447
2020-10-01T02:06:28
2020-10-01T02:06:28
300,110,783
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
Temperature.py
#Author: Duaa #Date: November 20, 2019 #Temperature int_temperature = (int)(input("Enter a temperature: ")) if int_temperature > 100: print("Way too hot") elif int_temperature > -18 and int_temperature < 0: print("Very cold") elif int_temperature > 0 and int_temperature <= 10: print("Very cool") elif int_...
a5abc86000eebf84a232e2e8ebf6a7abc82ebd12
a1d99f4d218946272268ec05a3374e8af06e8b32
/lstm_autoencoder/autoencoder(One Hot working).py
cfe7090c66860a8d3b1d787f46a667516f9e869c
[]
no_license
llalma/EGH400_final
94798726f4801253c37a5e78a361a814fb4fe894
bee442206b5c975f26ce00b3fb1b12e5a9fe9177
refs/heads/main
2023-02-10T21:20:24.264968
2021-01-04T08:57:14
2021-01-04T08:57:14
326,623,724
0
0
null
null
null
null
UTF-8
Python
false
false
6,634
py
autoencoder(One Hot working).py
# lstm autoencoder recreate sequence import numpy as np import tensorflow as tf import fastqreader import tensorflow.keras as keras import tensorflow.keras.layers as layers import tensorflow.keras.preprocessing as preprocessing import os from keras import backend as K import random as rand from datetime import datetime...
f5d9864fbd46bc162f0df770630a1f3914d2238e
cf015c13580f5ce76dc782b9369cf874cf0d8b93
/crawlerTools/crawler.py
757b2ea045ad7ec940ce428ab261e1d0d47a017c
[]
no_license
leiweiz/pythonTools
e3bceebef326f18d11c06c9c4d7224445df2ba3c
942819ab4b58cb6e296aaf86fd2f3f679304bec0
refs/heads/master
2020-05-17T17:23:31.346023
2015-09-10T03:37:12
2015-09-10T03:37:12
42,152,600
0
1
null
null
null
null
UTF-8
Python
false
false
4,421
py
crawler.py
# encoding: utf-8 import urllib2 from bs4 import BeautifulSoup from crawlerTools.data import mitbbs from crawlerTools.data import onePthreeC import sys reload(sys) sys.setdefaultencoding("utf-8") class Crawler(object): support_website = { "mitbbs": { "root": "http://www.mitbbs.com", ...
8b43755daa3023f151622cea2b486e6a6571da99
574a23f57daec3d462967e30ff808779127dc839
/herle_inventarios/compras_detalles/urls.py
dd81fb214a0958c88b21577e433276fc2a7762e9
[]
no_license
RedGranatum/herleBackEnd
18d3aecf75eb0d349470747f3fca4dbfd1581e80
8f21a7f7d0c2d3fdf3ae52eab6b31cbea7d3da97
refs/heads/master
2023-01-07T07:32:17.725947
2020-12-15T00:23:38
2020-12-15T00:23:38
57,180,381
0
0
null
2022-12-26T20:22:35
2016-04-27T03:25:14
Python
UTF-8
Python
false
false
447
py
urls.py
from django.conf.urls import patterns, url from compras_detalles import views urlpatterns =[ url(r'^compras_detalles/$', views.CompraDetalleLista.as_view(),name="compras_detalles_lista"), url(r'^compras_detalles/(?P<pk>[0-9]+)/$', views.CompraDetalleIndividual.as_view(),name='compras_detalles_individual'), url(r...
d1fc805f607f12cc7a40ad023e185a33eb97b168
d75b1b88ef64786498ad257a9a6d12c01a3f8cd2
/certif_page/libs/abbr2id.py
d81ae4d834938dc0421637c91a8c43d9a0c31d65
[ "Apache-2.0" ]
permissive
xSandie/schoolCertif
9d8928efbbb134aa4139dad00dc5b4cfd93affab
df5e235305886a0f110cc5d507d863c89df56e57
refs/heads/master
2022-12-15T11:41:55.119178
2019-07-02T14:59:39
2019-07-02T14:59:39
157,819,681
0
0
Apache-2.0
2022-12-08T04:54:33
2018-11-16T05:56:37
Python
UTF-8
Python
false
false
164
py
abbr2id.py
#todo 将学校缩写转成学校id from certif_page.libs.cache import cache @cache.memoize(600) # 缓存10分钟 def abbr2id(abbr)->int: id = 1 return id
3eeb53d594afce6bda37356fd3f3fb6a078c8f89
2cd6ac62aca4ec30c0bd55b700cea613df6a7b5f
/scripts_Dalio/QC_Dalio/07_annotate_variants.py
b048787bb13096a9789dc1e3d344af8adb4365e1
[]
no_license
Jinjie-Duan/BipEx
1e5c9d2b7f46a050c09cc4976c4aff662efc6c65
a59ae1286f268f27a05aae1c7e3ff27771a876e8
refs/heads/master
2020-09-08T19:31:28.873894
2019-10-29T00:42:29
2019-10-29T00:42:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,774
py
07_annotate_variants.py
import hail as hl hl.init() from hail.plot import show from pprint import pprint hl.plot.output_notebook() # When initialising the cluster, ensure that you use this flag: # --init gs://gnomad-public/tools/inits/master-init.sh from gnomad_hail import * MT = 'gs://raw_data_bipolar_dalio_w1_w2_hail_02/bipolar_wes_dali...
01e380547f9a43aa2900593e62d24c544a7481d9
a943574104251f03ac623e988b35582fea51f0b8
/data/getdataset.py
a80a4ffaa370f6da114784a2f8a376a297477bd3
[]
no_license
robin9804/Deep_HOLO
392901cfee3f8bd9e778e41d34f7c42f8b3bdaef
594cc17c22eb6ab35e633f923d2548b21ca0a928
refs/heads/master
2023-01-12T05:33:34.325201
2020-10-26T04:15:04
2020-10-26T04:15:04
270,902,258
2
0
null
null
null
null
UTF-8
Python
false
false
1,413
py
getdataset.py
import h5py import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # parameters w = 2448 h = 2048 num_file = 100 out_mat = np.zeros((num_file, 1024, 1024, 2)) # hdf5 file open f = h5py.File('data100.h5', 'w') for i in range(num_file): # num = "d%d" %(i+1) fname = "test21-%d.raw" % (i + 1...
1cea5a4c9ca58b34b1ddcd05a9c88045c28ec7e5
0ca2fe85e58bc7cff58176c697add5cf3aa22778
/Contrast/contrast/modules/brightness/image_manager.py
0084036add3c70582b635f688204cd79c4bfd361
[]
no_license
FrancisDonald/Contrast
53bfa309e58b2740478013abd2bf668d7f0132df
0ebe025bbf2983349a7d6b17dacb5f0bee625b09
refs/heads/master
2021-04-12T12:19:44.678998
2017-09-12T13:38:10
2017-09-12T13:38:10
94,551,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,479
py
image_manager.py
from __future__ import unicode_literals, division, print_function import logging from abc import ABCMeta, abstractmethod, abstractproperty logger = logging.getLogger(__name__) class ImageManager(object): """ Object that manages a collection of images. Specifies common functionality for different implem...
72a0657f91deb0f05eb6bbcc826ebd6f21a7fedd
d9b653dc43dcf3e5446556d86f0ef4c73348c914
/algorithms/fcfs.py
b0bf7800f57e748acd20946a61ac814f958d676f
[]
no_license
smamudhan/protosem-os-assignment
b9398460c2c8a9a165fbcf69ea5c77b2346a76d8
fb28bea40db1273deef0932daa602a7b7dc8c378
refs/heads/master
2023-05-07T07:39:14.415383
2021-06-01T07:38:51
2021-06-01T07:43:10
372,626,036
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
fcfs.py
def waiting_time(n, b_t, a_t): service_time = [0] * n service_time[0] = 0 w_t = [0] * n w_t[0] = 0 for i in range(1, n): service_time[i] = service_time[i - 1] + b_t[i - 1] w_t[i] = service_time[i] - a_t[i] if (w_t[i] < 0): w_t[i] = 0 return w_t def turn...
45a0ce57d2bb8dec0d5bd4ea41ecabaf197dc6ad
96c30db53b5751f480ea334a22fd3259cc920807
/Scripts/PlataformaExecucaoMultithread.py
ac5611fb7720a5053ad027edc31ff763bba2fb33
[]
no_license
IDSRosler/Light-Field-Codec
a7f90a0f91d2175cf11d7482b96a687849f18b56
2c4c4d45c187f36e784de14edc79dc9a54c28e1e
refs/heads/master
2022-05-13T08:51:45.893989
2020-10-30T00:13:03
2020-10-30T00:13:03
250,524,136
2
4
null
2020-10-28T17:01:05
2020-03-27T12:05:18
Python
UTF-8
Python
false
false
1,589
py
PlataformaExecucaoMultithread.py
import os, time import multiprocessing from threading import Thread from threading import Lock # estrura *CMD*; dict {bin: ;argv: ;output: } class PlataformaExecucaoMultithread(): """Parametros comados, numThreads é opicional""" def __init__(self, comandos, output_file, numThreads=1): self.plaf_fold...
b368575ee5fc42ec8cce8b43f6c122abcc467088
afe5c625d818a85598785b43089b65ebf950cb15
/template_lib/v2/GAN/datasets/cifar100.py
5b75602157aba5e3b86365c29f3182e38ebf1af6
[]
no_license
weroks/Omni-GAN-DGP
52039dafa041bd977debba69c1a1d30094e8bfcc
d85898d0634c63f3176a21e3e398aea0a88f2634
refs/heads/main
2023-08-20T06:33:18.307812
2021-10-28T14:17:00
2021-10-28T14:17:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
cifar100.py
import logging import torch from torch.utils.data import DataLoader as DataLoader_base from torchvision import datasets from torchvision import transforms from template_lib.d2.data_v2 import DATASET_REGISTRY, DATALOADER_REGISTRY, build_dataset, build_dataloader from template_lib.utils import get_attr_kwargs from .ci...
ab8a560acdafd9978de803c59b3eb23a6f36ee66
1c126e82e4d299dd925044606543cde0a8f4775f
/users.py
90a0bdcf933fe0c0e2a395a55cadd8613c919567
[]
no_license
coizioc/math-bot-miniscape
374bceaeb36c01e86faca20f6940e1f01df6ca82
2ab25e452c645c3d8414328e1c409f7f9d629bba
refs/heads/master
2020-03-24T08:37:55.935651
2018-08-19T19:20:04
2018-08-19T19:20:04
142,602,022
0
1
null
null
null
null
UTF-8
Python
false
false
19,140
py
users.py
import ujson from collections import Counter import time import os import shutil import datetime from subs.miniscape import items from subs.miniscape import quests from subs.miniscape.files import USER_DIRECTORY, BACKUP_DIRECTORY, XP_FILE, ARMOUR_SLOTS_FILE XP = {} with open(XP_FILE, 'r') as f: for l...
1e9ac6e0c98e9d59c619f9a162870ec833c76cd5
2c8cbb990e7db8edfce99b8117a06f42af4019e4
/euclidean.py
b9babc3d0119b7d825a509613440a5b23c0bb666
[]
no_license
HAREESH341/WONDER-WORLD
7c5bdba2d7ec9afa1cfdbd1187e1b1d63080a4c1
15d93309d5aad30f53607ef089b899002b4018c2
refs/heads/master
2020-03-23T12:29:06.391686
2018-07-20T10:24:35
2018-07-20T10:24:35
141,561,834
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
euclidean.py
hello hareesh how are you
27fab47f6d58d85f262553c7d205d6dad7e4df8f
b20498e6b688020ae4661c6d3eecafd290f2ce68
/polls/templatetags/poll_extras.py
3f752b166387609f220d6b817ec4b6ea8751db8f
[]
no_license
mhelmer/earthvibration_web
c29a0657b30dc34fbd5d269abc4165c8154cd117
2a26b1d9b466c919c2596899c1c95fa681c2bcda
refs/heads/master
2021-01-01T16:51:33.256309
2015-03-24T15:45:20
2015-03-24T15:45:20
32,729,351
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
poll_extras.py
from django import template from django.utils import timezone from polls.models import Poll register = template.Library() def show_results(poll): choices = poll.choice_set.all() return {'choices': choices} def show_latest_polls(limit=5): polls = Poll.objects.filter( pub_date__lte=timezone.now(...
356766132876f526f8c4e31376dfa3365c78ade2
21a275c6fff2118d9df74ffa94f44b54f9051a1b
/podaci/guosen_hq/api.py
6163590f5273c1dad942078235b425db9b766641
[]
no_license
linzongkao/podaci
bccf32409540328a470af46f74da3d49cd60a7de
df10e6b034133a58437d8fd15503ca021c5e707e
refs/heads/master
2020-06-27T07:30:31.526730
2019-02-18T01:40:36
2019-02-18T01:40:36
199,885,143
1
0
null
2019-07-31T15:43:22
2019-07-31T15:43:22
null
UTF-8
Python
false
false
851
py
api.py
# -*- coding: utf-8 -*- """ Created on Wed Feb 13 10:23:56 2019 @author: ldh """ # api.py from __future__ import print_function from database_engine import DatabaseEngine engine_guosen_obj = DatabaseEngine('guosen') engine_guosen = engine_guosen_obj.get_engine() session_guosen = engine_guosen_obj.get_session() def...
6e0fec8c87132e0c1cd11c0c21d958fd0b3cd2eb
ba80ca143ba35fd481730786a27ebdb1f88ce835
/back_end/python/effective_python/_property_ex.py
2f25c74e0fc5c90ad884c4d370ad03eaa4c5041e
[]
no_license
uiandwe/TIL
c541020b65adc53578aeb1c3ba4c6770b3b2e8b3
186544469374dd0279099c6c6aa7555ee23e42fe
refs/heads/master
2022-02-15T08:33:07.270573
2022-01-01T15:22:54
2022-01-01T15:22:54
63,420,931
2
4
null
null
null
null
UTF-8
Python
false
false
310
py
_property_ex.py
# -*- coding: utf-8 -*- class Test: def __init__(self): self.__tlqkf = 'red' @property def color(self): return self.__tlqkf @color.setter def color(self, clr): self.__tlqkf = clr if __name__ == '__main__': t = Test() t.color = 'blue' print(t.color)
8a26c5a413595b6dddd38ad55bbaf135f243cc37
bdcfab7fef115312988ef7d2bf4f375ab0723e51
/test/exam/矩阵交换律.py
ff3656ee2290f817216968fe2a11f91ed47922ac
[]
no_license
ChenLaiHong/pythonBase
c2587bfa78fbbec225c364c297394131fa2f6f37
00bf1b404be8714f907c7750a60c052e83555b3e
refs/heads/master
2020-03-11T00:57:13.403866
2019-09-19T11:55:09
2019-09-19T11:55:09
129,676,746
3
0
null
null
null
null
UTF-8
Python
false
false
1,483
py
矩阵交换律.py
""" 【问题描述】 对于矩阵来说,矩阵乘法具有结合律和分配率,但不具有交换率。(二维数组)然而,对于n*n的两个方阵A, B来说, 可能两者的乘法具有A*B = B*A(其中*为矩阵乘法),我们称这两个方阵关于矩阵乘法具有交换性质。请你编写函数comm, 判定给定的两个4阶方阵(即4X4矩阵)是否具有交换性质。 然后编写程序,输入两个4阶矩阵,判定是否具有交换性质,若是则输出yes,否则输出no。 【输入格式】 一开始有4行,每行有4个整数,用空格分隔,表示矩阵A; 接下来还有4行,每行有4个整数,用空格分隔,表示矩阵B; 【输出格式】 输出只有一行,若输入的两个矩阵具有交换律,输出yes,否则输出no。 样例输入 2 2 2 2...
e7a553e8a77ddb5963c6d7e71fdaf4c7f82b42af
266b712fbf8f37bd143b3f2568f655e5c737e066
/88.py
40e8041eb21262953f40b79acacfc097348434c4
[]
no_license
zhanggiene/LeetCode
bd4a0f3b40d0da6115f453f90548dc562ca14aaa
78b144370b5fe9bfc40e1d6be5d5a9bc04786e76
refs/heads/master
2022-12-12T15:55:49.304827
2020-09-12T13:29:49
2020-09-12T13:29:49
290,941,086
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
88.py
#merge sorted array ''' the trick is to sort from behind. [1,2,3,0,0,0] sort from behind so that there will always be spaces [3,4,5] ''' class Solution: def merge(self, nums1: List[int], m: int, nums2: List[int], n: int) -> None: """ Do not return anything, modify nums1 in-place instead. ...
716124246b3b843a9175c9b6b0a962393fa42df4
dabf01c5f67d96953985fe31275ff10bad6e542d
/8383/Kostarev/lb/6/main.py
81a6f52d310c674598b94cfb620c12665b3d807e
[]
no_license
thehighestmath/ANN-2021
82b4c5e4c889d291fb94cbed407abfbb9401e9d3
732a02e327595e987e771952ddbdcbe086c0cc53
refs/heads/main
2023-08-11T15:03:34.050840
2021-06-18T19:08:33
2021-06-18T19:08:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,938
py
main.py
import numpy as np from tensorflow.keras import models from tensorflow.keras import layers from tensorflow.keras.datasets import imdb import re # Представление данных в виде векторов def vectorize(sequences, dimension=10000): results = np.zeros((len(sequences), dimension)) for i, sequence in enumerate...
71ceb20da89ed8aa62ab4692aa91b9d29f6f2449
c827e19a37767bab138233ebe4c7da9f05672ac6
/easy/swap_case.py
638393fc89789e662bcead6fc6bb5f8d5f7e3d7d
[]
no_license
u1718/codeval
a126fed5a21abb9eba2e2d14b289c9f6d48e6dd1
771e3991387769f78fee08ef5299721440866123
refs/heads/master
2020-04-05T23:06:40.501333
2016-09-16T06:10:18
2016-09-16T06:10:18
19,853,818
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
swap_case.py
#!/bin/env python import sys def main(dfile): with open(dfile, 'r') as f: for l in f: sar = l.rstrip('\n').split() print ' '.join([e.swapcase() for e in sar]) return 0 if __name__ == '__main__': sys.exit(main(sys.argv[1]))
6c4e530a175c0833755e2497d0c274dff2404900
3d578ecfdfbfcdc80bf89169242a08ba8141978e
/Punto 1.6_Lab22_2303.py
b94753dbb26ac43ad1aeaf813b82f1864e9332c1
[]
no_license
JUANPER-GITHUB/EJERCICIOS-CLASE-23_MARZO
b1daa61bf55ef04867883d4bff87a6b154658727
8a2b6a750445078c457b13677420946f4884639b
refs/heads/main
2023-03-29T05:36:09.700085
2021-03-25T03:31:20
2021-03-25T03:31:20
351,293,435
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
Punto 1.6_Lab22_2303.py
for i in ["JLo", "Benito", "Rosalia", 2021]: print ("Hola", i)
c52b001a8d93c0756c9f85465e6f3534823095a9
7ed13e29e595c079d591ef41139bf7a0fb974e0b
/Ch5_HowDoWeCompareSequences/Sandbox.py
fb2516b741c82e87632af9c90b868b5843aa8392
[]
no_license
ilap/Bioinformatics_Part1
002044e483d19d5fef37a3e827b3a87ec534f9b0
cab259984e999b6186111bd1aba7b5eba57640c9
refs/heads/master
2021-03-12T22:46:11.025819
2015-03-27T01:53:39
2015-03-27T01:53:39
32,961,608
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
Sandbox.py
__author__ = 'ilap' from SequenceCompareLib import * line= ''' 2 -> 3:4, 2:1 ''' line1= ''' 2 -> 3, 2 ''' tup = re.findall(r'(\d+):(\d+)', line) print "TUP", tup print [ (int (x),int(y)) for (x,y) in tup] print "F3", re.findall(r'\d+', line1) print '->'.join (str (x) for x in [0,1,2,3]) str = ''' 0 -> 35,40,9 1...
76a53f154f6ba53310d810ac49120a193f103c5d
d15adcfdf582f808ad453fc045a0a050aefa5be6
/ctci-contacts/trie.py
addb06dfd50b58c7fadd46016d1351b69f427c3e
[]
no_license
kevinjqiu/hackerrank
c4eddfc34932728f11ea83b29d50d12d78811ab7
1c63442257fae20b5b69f8666e658bc21a5706c4
refs/heads/master
2020-03-14T00:04:45.524958
2018-05-01T03:49:00
2018-05-01T03:49:00
131,348,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,973
py
trie.py
class Node: def __init__(self, ch=None, parent=None): self.parent = parent self.ch = ch self.size = 0 self.children = [] def __str__(self): return '<ch=%s, parent=%s, children=%s>' % (self.ch, id(self.parent), self.children) __repr__ = __str__ class Trie: def ...
1796b0010ce78bdea762c7961425bf0777eed0ee
a85eec4afc8032f612b8e0b16a1cdc26618113c7
/PUNTO23.py
e0743d80b01f38dd5441de996b23120dc0bd2012
[]
no_license
JUANPER-GITHUB/EJERCICIOS-30-DE-ABRIL
11c84d0e01198a88ce4eac2309004b796c31d1c1
5a3b67a9742e0c7f0ab5c14d217371dbf085e7b3
refs/heads/main
2023-04-17T20:13:50.535385
2021-05-03T00:20:23
2021-05-03T00:20:23
354,129,218
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
PUNTO23.py
# PUNTO 23 x = int(input("Ingrese el numero del cual desea saber si es positivo o negativo: ")) if x == 0: print("¡Cero es un numero neutro!") else: if x > 0: print("El numero ingresado es Positivo") else: print("El numero ingresado es Negativo")
ebec89c5d2736a5b016cd26ea0cbb8f82cd588ab
8c012e19a67149e115a62285baaa234489761862
/efficientdet/data_pipeline/decode_predictions.py
23651b11bf4a668bfe1a7ee799394a06a07f6a0d
[]
no_license
VukGlisovic/computer_vision
48dec57e830ff53a271843e66e0fdeb56c1ddf5c
1ff12abb5546bdc8836bb082026e90a497b14e31
refs/heads/master
2023-07-08T08:41:02.436119
2023-06-22T19:23:35
2023-06-22T19:23:35
214,006,518
2
0
null
2023-07-06T23:28:59
2019-10-09T19:31:40
Python
UTF-8
Python
false
false
3,653
py
decode_predictions.py
import tensorflow as tf from efficientdet.constants import BOX_VARIANCE from efficientdet.data_pipeline.anchors import AnchorBox from efficientdet.data_pipeline.utils import xywh_to_xyxy class DecodePredictions(tf.keras.layers.Layer): """This layer is appended to the detection model after it has been trained...
8546b52970ebda7e8d2bdff6de47a15e533ea25c
108d76c965b20d7e5af0cd4f197c62663b664d4c
/comment/logging_class.py
99357aaefa2bf08aa5620faf4961a9f41f862e1d
[]
no_license
Fireln/http_api_python
b10ad51b9ec8f2a3fdffefe00d3b245142c47bcd
1ed5b04ef4abbb566a0d6cc574175a087012c905
refs/heads/master
2021-01-20T16:48:10.794090
2017-06-20T04:54:14
2017-06-20T04:54:14
90,849,017
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
logging_class.py
import logging import sys import setting class Logging(): def log_building(self): try: #set format format_str=logging.Formatter("%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s") #create stander output handler crit_hand=logging.StreamHan...
c316411abc991e514f5998372018182a1fa69564
c3e38d62cee1a8a792a1537b3948f39698515d61
/utils.py
b39de2b52fb91cd21f9915c2af36a6b2c23a8278
[]
no_license
mataneilat/Bio
192d9270c19dee3c4a6a5b821e68aa93bbbf92d8
7f3913e673ddf811846ba7a616ea3c4f4a9c505e
refs/heads/master
2020-03-27T01:50:10.824155
2018-09-03T17:02:18
2018-09-03T17:02:18
145,746,472
0
0
null
null
null
null
UTF-8
Python
false
false
2,046
py
utils.py
""" Module containing general utilities """ import unittest import numpy as np class Singleton(type): """ An implementation of the singleton design pattern """ _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super(Sing...
206e0bbb7b4420f9f7ac3bb3ecab31cb451a2801
bad4d2d168b64cb63085caafb04b4d7e12ffcafb
/tribes.py
de66625b4d5e978d97a39eda814c89f2fe6b2ec9
[]
no_license
john-root/natbakke
184aab57880781177d74e84f8c7a0d5f296b9fb2
a446e9748d9f1cc2e3c7974d0f0d956a5f4a5752
refs/heads/master
2021-01-10T23:28:09.550349
2017-02-06T15:52:06
2017-02-06T15:52:06
70,585,731
0
0
null
2016-10-11T11:17:35
2016-10-11T11:17:35
null
UTF-8
Python
false
false
3,197
py
tribes.py
# from spacy.matcher import Matcher # from spacy.attrs import * # import spacy # from spacy_basics import initialise_spacy # from spacy.attrs import ORTH, LOWER from schmentities_refactor import ocr_parse from tribes_import import initialise_tribes import glob def main(): csv_file = '/Users/matt.mcgrattan/Document...
b329a0e41ecc992a0ee41263cc9c6a6c307aa361
37970cd132d6a5c862f1494cb7de8f9fe587352e
/blog/migrations/0002_auto_20210813_1105.py
707ae78bfb8e9f87647e52c4e26d7764f6d8cf34
[]
no_license
AliAdilQureshi/artical
30da81690d8ca18b82e054f588860998af10eeb5
40edd666c8089a44d4d1fa22027ede9a1a0b3dbb
refs/heads/master
2023-07-17T10:01:39.253868
2021-08-28T15:42:36
2021-08-28T15:42:36
400,829,362
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
0002_auto_20210813_1105.py
# Generated by Django 3.2.6 on 2021-08-13 06:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', mod...
7f2b96bd26ec14c1e48ba090069c3069e17c13c5
75dcb56e318688499bdab789262839e7f58bd4f6
/_temp/Data Structures and Algorithms Python The Complete Bootcamp/template/Section 20 Question 1 Two Sum/88. Two Sum.py
afdce87e6375bb3e7cc93f5367abb00db93a1911
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
321
py
88. Two Sum.py
c_ Solution ___ twoSum nums, target store _ # dict ___ i __ r..(l..(nums __ nums[i] __ store: r_ [store[nums[i]], i] ____ store[target-nums[i]] _ i ## Example Execution ## obj _ Solution() result _ obj.twoSum([2,7,11,15], 9) print(result...
2d2f5b681ffe52e6e24b0802f13da96b33f97edb
daba99bcbb5a988aacc1aafda8842008cdd57063
/datafoo.py
9f8a5610dad5dc9ef18340546cf3a83995ba0dc8
[]
no_license
kvn219/recall
3502089c84f54b42df70cdb4b9e329886feaf0c0
4999cbc10bff9abc15f77c10aa79d66d33a6399c
refs/heads/master
2020-12-24T08:10:06.669032
2016-08-25T16:12:31
2016-08-25T16:12:31
59,691,556
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
datafoo.py
import requests import json ENDPOINT = 'http://www.saferproducts.gov/RestWebServices/Recall' def get_data(): resp = requests.get(ENDPOINT, params={'format': 'json', 'RecallDateStart': 2016}) return json.loads(resp.text)
f21ec6348ee578967e0f89401b5c42bf4419c5f5
4fd0489a5a9947a2e5dbc35fea21cac16fa22025
/data/debug_commands/debug.py
9e69fec652cfb7d8ff72918d20a8d2787dc859f0
[]
no_license
Developing-Studio/ci-event-hoster-discord-bot
fdf388498510f110bb5c39977e24175e0b6d6b8d
3eb36fe03d97e2bf41d78d4f152a80522e42a986
refs/heads/master
2023-01-22T11:17:30.785151
2020-11-29T14:05:35
2020-11-29T14:05:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
debug.py
import discord import json import os from discord.ext import commands from data.utils.functions import console_log, read_file from data.utils.checks import author_is_zacky class DebugCommands(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on...
1677d0d9f8477cd0a286a88df59ea1d34c436baa
db44e7ea9b0b750f34f1dc959eee6ad2675626f4
/homework1.8.py
a3911a1a325f2a8d4a0a0a6b8ffaded534745c0f
[]
no_license
Next0ne/homework1
918650c13e465db59e60f202a4c0c2b4287c15fc
670c25f3ebf5d1892e523e9e0fd1568ebc57ef66
refs/heads/master
2021-02-19T20:56:45.499561
2020-03-08T10:11:46
2020-03-08T10:11:46
245,320,560
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
homework1.8.py
# -*- encoding: utf-8 -*- ''' @File : homework1.8.py @Time : 2020/03/06 13:13:08 @Author : xdbcb8 @Version : 1.0 @Contact : xdbcb8@qq.com @WebSite : www.xdbcb8.com ''' # here put the import lib #工号,姓名,工龄,工资 emp = ({'工号':'01','姓名':'王某','工龄':'2年','工资':2000}, {'工号':'02','姓名':'张某','工龄':'3年','工资':3000}, {'工号':'03','姓名':'赵...
2e5800d26678d613ae943bc4286c40d950a49f42
c4be516e4f7a75de7280d4b20fdf9452bdfe728b
/pachong/selenium/ant-man/selenium_douban_Ant-Man.py
26850fc00e6d766d8c4e5fc17399a1fb22e14838
[]
no_license
QGtiger/study
353bf463a222965ad588c83ea7244b2dd4e360a4
32c205e0de5faa8ca49a45ec841796782d2900da
refs/heads/master
2020-03-15T20:15:56.623550
2018-12-11T13:00:55
2018-12-11T13:00:55
132,328,728
0
0
null
null
null
null
UTF-8
Python
false
false
3,832
py
selenium_douban_Ant-Man.py
""" author:lightfish Time:2018.10.8 note:对豆瓣蚁人2的评论爬取,爬取其评论人、星级、评价日期、有用个数、评价正文 """ from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.w...
b505bb9ba0ba55761df14ed88ac1f468a4f8531f
556e64b3752bc7d539d7dc01a067330610588a5a
/Intro_to_ComEng/python_assignment01/a1_2020314315.py
3fa07ddd13fd2bb84231e5da011a24ee673b9bbf
[]
no_license
qkrwldnjs89/SKKU_Introduction-to-Computer-Engineeringng_python
503f23a7df5f42b65681ce5360ad8cdde6a1fff4
3fcfb11d0b0d2a89098105a466bfb6bf9b154c26
refs/heads/master
2021-05-19T04:42:34.912186
2020-07-01T11:38:56
2020-07-01T11:38:56
251,533,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,777
py
a1_2020314315.py
from typing import List # DO NOT IMPORT ANY OTHER PACKAGES # Please delete the "pass" lines then fill your answers def is_prime(num): if num == 1: return False loop = num ** 0.5 # 루프사이즈를 제곱근 크기로 축소 i = 2 while i <= loop: if num % i == 0: return False i += 1 retur...
b9701838e59ef47b9b3c919926b0f795c5b826e8
75ab72fd113e31d74df93ae65de8814d6e35437a
/tests/test_cleaning/test_japan_data.py
816c81eca9ec1172046faaf5bd5e4221e1d33c96
[ "Apache-2.0" ]
permissive
ardhanii/covid19-sir
0dc4c261b2f0b84b4c8e5a79845dc540c6f133aa
87881963c49a2fc5b6235c8b21269d216acaa941
refs/heads/master
2023-08-15T04:46:36.362234
2021-10-01T08:03:35
2021-10-01T08:03:35
412,369,517
0
0
Apache-2.0
2021-10-01T07:31:43
2021-10-01T07:22:52
null
UTF-8
Python
false
false
1,145
py
test_japan_data.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest import warnings import pandas as pd from covsirphy import Term, JapanData class TestJapanData(object): def test_cleaning(self, japan_data): assert isinstance(japan_data.raw_columns(), list) df = japan_data.cleaned() assert set(Te...
ece8c3faea022423c93ef42e7f7080b446e0ce62
c9c70dc1df718f0aaa4aabd270359d40db992451
/PyPoll/main.py
f6a030f561b12753a279e416975ea81346108d88
[]
no_license
alexdahan/python-challenge
2dd379f491284c1e10b39145dbb4cd7c1dea1f5f
45790e45870ed4016e3110a6b5efa2ecb76b10c1
refs/heads/master
2020-04-16T15:46:52.909909
2019-04-30T17:18:46
2019-04-30T17:18:46
165,713,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
main.py
# Modules import os import csv # Set path for file csvpath = os.path.join("election_data.csv") txtFile = os.path.join("election_results.txt") # Open the CSV with open(csvpath, newline="") as csvfile: csvreader = csv.reader(csvfile, delimiter=",") csv_header = next(csvfile) total_votes = 0 candid...
204b10c2e43f97a77e33f63c1875e7d84a5e018c
6d470c2eaf67091fa47033f10da5344b8586bacc
/doc/examples/scrollbar.py
c1f4592ffba1d754af3be86260667b42a7487370
[ "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
djkool/OcempGUI3
5828dd5e8df2141256a23388a3993fb8c3c99731
43a68033cb0dbad10654231299cb762cd18b7c25
refs/heads/master
2023-05-13T11:57:42.415200
2021-06-08T07:18:36
2021-06-08T07:18:36
374,358,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,611
py
scrollbar.py
# ScrollBar examples. from ocempgui.widgets import * from ocempgui.widgets.Constants import * def create_scrollbar_view (): table = Table (2, 2) table.spacing = 5 table.set_row_align (0, ALIGN_TOP) table.set_row_align (1, ALIGN_TOP) # Simple ScrollBars. frame = HFrame (Label ("Simple Scr...
dfb7af96d7e10b89c1b9ddfe2ea615ed5e651434
d9e290a9af77abc9ba9fb34f6cd72a8616d6ea92
/backend/books/migrations/0001_initial.py
7f4eed8f4466ddb4e8b5aac2fc2606763645b54f
[ "MIT" ]
permissive
trak2018z/tjanas94-tr2
57c9485fb3bec49d9ca42310cac51efcbc08a9ac
ff5021570ea0154ef269a04f29535b0f23276b8b
refs/heads/master
2022-12-15T00:46:49.377596
2018-01-07T09:06:56
2018-01-07T09:06:56
116,657,024
0
0
MIT
2022-12-07T23:49:15
2018-01-08T09:34:23
TypeScript
UTF-8
Python
false
false
3,657
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-22 14:15 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
fc021c8ae4211500f2ce7508fcf597fe3cf13ebb
199607c8fe320e6956465d993f2605667f39dc78
/benchmarks/rl.py
c8dc6662d8ea963d62a3ec0dfdb12ba936083ccd
[]
no_license
xz-group/MLCAD-F-LEMMA
cec58ae61e216432aa2c1db948ffb1c56237732a
3fe5c8e88d33952b55931e0c55b5b4f3f4aa5cdf
refs/heads/main
2023-03-29T02:43:31.295069
2021-03-27T05:32:20
2021-03-27T05:32:20
351,984,311
0
0
null
null
null
null
UTF-8
Python
false
false
17,581
py
rl.py
import os import sys import sim import heapq import random import operator import itertools import numpy as np x = np.array([0,1,1,2]) print("X:", x) # some sources: # https://stackoverflow.com/questions/268272/getting-key-with-maximum-value-in-dictionary # https://stackoverflow.com/questions/12141150/from-list-of-i...
42838af04e380a36d143398999b996ef15b726b6
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/kEww9Hjds5Zkgjyfj_18.py
cd35230dbdb4300ee1004911da503f86e21543d0
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
kEww9Hjds5Zkgjyfj_18.py
""" Write a function that replaces each integer with the next largest in the list. ### Examples replace_next_largest([5, 7, 3, 2, 8]) ➞ [7, 8, 5, 3, -1] replace_next_largest([2, 3, 4, 5]) ➞ [3, 4, 5, -1] replace_next_largest([1, 0, -1, 8, -72]) ➞ [8, 1, 0, -1, -1] ### Notes * Replace the ...
3f96736cf3b918005490654b323431938f95ea6f
51f7ee9a7066dd907a9ae3a16d291bcfcae75ee9
/NewAnalysis.py
5cf373ea16f37e6fedd132e9c7fee1c9bb90eedb
[]
no_license
Vojtech-Sassmann/AL
bea55e5ccff3b628bd16247c485874585c94d483
821f3ebd2f2c0bead9a90e6c4208460f9c3a6ab7
refs/heads/master
2022-01-07T18:22:42.177402
2019-05-23T15:45:39
2019-05-23T15:45:39
152,387,919
0
0
null
null
null
null
UTF-8
Python
false
false
2,942
py
NewAnalysis.py
import base64 import binascii import csv import operator import re import DataPreparation def decode_base64(data, altchars=b'+/'): """Decode base64, padding being optional. :param data: Base64 data as an ASCII byte string :returns: The decoded byte string. """ data = re.sub(rb'[^a-zA-Z0-9%s]+' ...
5bb1dbc054f19cceb6ee26ef15b59bf74f058b25
302a017b8e938031b17d08fadb73a93ff26e4ae9
/etc/maya/userSetup.py
e926ed59bf452fb792ceaffb27665b0fe516b0ef
[]
no_license
EmreTekinalp/ProdStuff
58b365884ba877e784757c88aadc3afd43fac960
cfd9b62d291a42a8610dde448805ca184e426b3f
refs/heads/master
2018-09-25T06:42:57.501616
2018-06-07T05:22:22
2018-06-07T05:22:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
userSetup.py
# python import sys # maya import maya.cmds as cmds if not cmds.commandPort(':4434', q=True): cmds.commandPort(n=':4434') # add the project path to the system path sys.path.append('/Users/emretekinalp/PycharmProjects/DigitalEpics/software/maya/src/python') sys.path.append('/Users/emretekinalp/PycharmProjects/Dig...
f5ddceabdf6a6c7c41f3c41be794abafca7afeab
29c7416a2027e6ea67263661ccfb30c42cdb1a3e
/dayofprogrammer.py
fe117cc935172f095b0dc22abcad1a74605f23e5
[]
no_license
gunaabinaya/HACKERRANK
6e6c780dda7455b20c0905a5203fed5f3fc552ba
c5e8b1bf792aababc9775cb902ce32a66031bd6e
refs/heads/master
2020-04-26T08:25:03.819107
2019-05-31T16:05:35
2019-05-31T16:05:35
173,422,257
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
dayofprogrammer.py
def solve(year): # Complete this function feb = 28 if(year >= 1919): if(year % 400 == 0): feb = 29 elif(year % 4 == 0 and year % 100 != 0): feb = 29 elif(year <= 1917): if(year % 4 == 0): feb = 29 mm = "09" dd = 256 - (31 + feb + 31...
c367584438d14981f8def89e611a0e73fc9836cc
10b4476d65037b98c15a015a1ccf863bb4dd528a
/utils/model_funcs.py
1a9108688fc1299d8207a3f3780d25d645e999d9
[ "MIT" ]
permissive
songkaisong/Position-Bias-Mitigation-in-Emotion-Cause-Analysis
30a4d9b3479e94af3111a779ed9c57fb2db8e96a
bf3fcb373294ebcad35e1353082821d7bf437d01
refs/heads/main
2023-08-11T16:28:30.309292
2021-09-20T14:09:20
2021-09-20T14:09:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,784
py
model_funcs.py
# -*- encoding:utf-8 -*- ''' This code is partly based from RTHN repository(https://github.com/NUSTM/RTHN)''' import numpy as np import tensorflow as tf import os import json import random import pickle as pk from sklearn.metrics import precision_score, recall_score, f1_score from tensorflow.contrib.layers import xavi...
9cf25bbcadff61d8b10245629b1af0a9d97a55b9
85aec1d303ede3b86832770d6298f9ea23a8a5ed
/src/apps/SupportTicketSystem/decorators.py
0d751096af9d098136038cebb914bfac8b19fe05
[ "Apache-2.0" ]
permissive
cash2one/gfTicket
e7971e269642cf6dc5c58ff9914d533695796e87
464bb1f51786c990d5c58541fa2346a147a9186e
refs/heads/master
2020-12-30T16:14:19.436059
2016-03-30T12:55:51
2016-03-30T12:55:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,847
py
decorators.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # __author__ = 'Liantian' # __email__ = "liantian.me+code@gmail.com" # # Copyright 2015-2016 liantian # # 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 Licen...
52d343f68442a6388d62c42fdd01c21bd68f652f
155cbccc3ef3b8cba80629f2a26d7e76968a639c
/thelma/repositories/rdb/schema/tables/well.py
12c42199b5e1e4135cbecd9b07b7d3265b86d7ad
[ "MIT" ]
permissive
papagr/TheLMA
1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78
d2dc7a478ee5d24ccf3cc680888e712d482321d0
refs/heads/master
2022-12-24T20:05:28.229303
2020-09-26T13:57:48
2020-09-26T13:57:48
279,159,864
1
0
MIT
2020-07-12T22:40:36
2020-07-12T22:40:35
null
UTF-8
Python
false
false
815
py
well.py
""" Container table. """ from sqlalchemy import Column from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import Table __docformat__ = "reStructuredText en" __all__ = ['create_table'] def create_table(metadata, container_tbl, plate_tbl, rack_position_tbl): "Table factory." tbl ...
da6843986ce32f1e82cf84244af55997c418c543
a5d007febedea69ea7f68a9ae0eac54d5d30dc47
/문제풀이/ACM-Craft/solution.py
98d321800cd21da6636303130ea8f32fc64be6f4
[]
no_license
leehj8896/PS
2991f11693c57046931545569e75aa753515ada0
b1cbdfafc1ddcf8663bc2aca2a2e07392e12d08e
refs/heads/master
2023-02-12T09:06:37.644294
2021-01-15T16:53:04
2021-01-15T16:53:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
solution.py
import sys testcase=int(sys.stdin.readline().rstrip()) for _ in range(testcase): building_num, order_num = map(int, sys.stdin.readline().rstrip().split(' ')) time_list = [0] + list(map(int, sys.stdin.readline().rstrip().split(' '))) order_list = [[] for i in range(building_num+1)] for _ in range(order_n...
a1aa951e027dfe041ce1b1c8a1213848581f495d
eb3ebcd52ef137fc1560b6b65197627533eddf41
/Basic/1_1_string.py
47285801dafdd6a9c780cd74ebb6f1960a558fbb
[]
no_license
Kor-KTW/PythonWorkSpace
a0d14b3be9af1266b35440261fa2ec0a11534288
e23ce4a4d104ff665d6a5544ce556b469c4d9d89
refs/heads/master
2023-01-04T05:10:38.362965
2020-11-06T05:11:09
2020-11-06T05:11:09
304,473,110
1
0
null
null
null
null
UTF-8
Python
false
false
104
py
1_1_string.py
print(1.3) print(5+4) print("5+4") print('hello world') print("hello world") print("lol") print("lol"*5)
7356c673eb2de7dfa7ef853db02666291604a19c
5844e5bcc710a476fd92966013734b1a15480a02
/Python-Algorithms/sorting-algorithms/bubbleSort.py
d67fb331fec1e99b7a9b2dccd66aad3851430b06
[ "MIT" ]
permissive
ravi5175/Algorithm-Analysis
b876a7a8fd0a8e97a0ad6583caca6c7aff128a2b
9597ed60b8ba910a26fc9e386aa3c7ea8257cbe1
refs/heads/main
2023-01-06T16:42:10.596434
2020-11-02T15:26:45
2020-11-02T15:26:45
305,790,655
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
bubbleSort.py
import time class BubbleSort: time_elapsed=0 passes = 0 def __init__(self,data,reverse=False): self.bubbleSort(data,reverse) def swap(self,a,b): a,b = b, a return a,b def bubbleSort(self,data,reverse): while(True): swap_count=0 start =...
f206836cd42e9d6193c4398283c0ca08afef2aa7
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/315_v2/logger.py
c579660b7ebf62394dc51a06c4f23dbf81180d7a
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
712
py
logger.py
# _______ l___ # ____ t___ _______ L.. # python 3.9 we can drop this # # # logger l___.g..'app' # # # ___ sum_even_numbers numbers L.. f__ __ f__ # """ # 1. Of the numbers passed in sum the even ones # and return the result. # 2. If all goes well log an INFO message: # Input: {numbers} -> out...
0bca78583eac5a58c52e59c8fc14a8cff80a6317
d53b2c06574d8ab7e29f13d188c98f22ef9e24c3
/funciones.py
c0c5b156cd79d03d013cb0fbb32fb784d3ea6906
[]
no_license
Vazkito/Paquetes
ebaddf73eb0a55d29a8899c223ef25a226369d83
a4c722ef02af807a79e230216b20333c07b7299c
refs/heads/master
2021-01-10T15:25:19.738866
2015-10-06T14:17:01
2015-10-06T14:17:01
43,540,677
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
funciones.py
''' Created on 17/12/2014 @author: David ''' # Declaramos la funcion: # def nombre de la funcion (parametros): # cuerpo de la funcion # return valor a devolver # la funcion def opera directamente asignando valor1 y 2 a sumando1 y 2 sin necesidad de un (=) def suma(sumando1, sumando2): resultado=sumando1+su...
6ed0d1dd85bd29314fc4a758793ab02fd1e183ec
05d3a02c0b60e1bf2b65883859b378a8a8914ad4
/GeekText_Team2/blog_posts/forms.py
4b618e87e468e448779cc702ecb2acde0b0aabc9
[]
no_license
teamtwogeektext/GeekText_Team2
87987f735db79361f79afc9eff7e898511070ff2
9dc78dce335c0a2f112eddd523659bd0a99c4807
refs/heads/master
2022-12-10T20:51:36.632235
2020-10-29T16:04:01
2020-10-29T16:04:01
187,367,566
0
0
null
2022-12-08T05:56:20
2019-05-18T14:27:26
Python
UTF-8
Python
false
false
803
py
forms.py
from flask_wtf import FlaskForm # Imports the forms API from wtforms import StringField, SubmitField, TextAreaField # Specific forms that are needed from wtforms.validators import DataRequired # validators for these forms class BlogPostForm(FlaskForm): # no empty ti...
a139a8c9153acd48a7eafe60302bcef41bdaf8da
13892ba346401495d7f901a44c614628dabbd435
/TP/tp11.py
e2c8cbcc153871ea6645806bbff4005312806fd0
[]
no_license
DrAssaadZ/Learning-python
fff6d0fee7a9ed892b77820377776de1a852d3f2
53334c448c7615f3d7628e4a5a3f602ed0c40bea
refs/heads/master
2020-04-07T00:06:01.086586
2019-02-15T16:04:20
2019-02-15T16:04:20
157,891,262
1
0
null
null
null
null
UTF-8
Python
false
false
3,919
py
tp11.py
from collections import deque as queue def dfs(graph, start, goal): stack = [start] path = [] sommet = None while len(stack) != 0: sommet = stack.pop() if sommet == goal: path.append(sommet) break path.append(sommet) [stack.append(i) for i in ...
56b926fc6cfc92bda75d005596002d6fcc5db82f
57a9e959a4b41513f2b83fc9028c805c906a4f98
/src/modules/Feature_Extractor/Loc_Extractor.py
bfcb6c686b81d2e2a6b9cf437c332585d4747291
[]
no_license
ConstellationCV/Constellation-1.0
67c2b464d90b739f73ffa8a586ff4b6859867fb1
d8e20102656652cdf596b77d06ccfdb96c8a4db6
refs/heads/master
2020-03-23T17:30:15.590080
2018-08-17T07:59:11
2018-08-17T07:59:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
Loc_Extractor.py
import cv2 import numpy as np import json import time import sys sys.path.insert(0, '../src/exceptions') from CannotMatchError import CannotMatchError class Extractor: def findAllObjects(self, imagePath, templateListList, confidenceThreshold): objsDict = dict() templateListListIndex = 0 with open('../data/DO_NO...
a5c895974f5b8f2493ab849c79f55aff8688da04
28aec6dd480d34c4892916bf4b540309a03cee11
/Server.py
f7eab1544d235878330d1c36fc3ea732a43f385e
[]
no_license
hack-summit/DedSec
280cc5656b19b93baaf1a22a9eaaebb121c73e07
be0edcec76790c8fff9fe8da6d83e6f5d5877529
refs/heads/master
2020-07-15T07:45:13.731899
2019-09-01T08:47:04
2019-09-01T08:47:04
205,515,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
Server.py
from flask import request, Response, Flask, render_template, logging import requests from requests import cookies from click_jacking import click_jacking from ip_add import ip from xss_protection import xss_Protection app = Flask(__name__) @app.route("/") def home(): return render_template('home.html') @app.ro...
88b647b08c43d1ca4a6fe724bf082924c6b1c130
c244eed9c0a809c3440a9206226ed0b984086c82
/main/core/logic/command/roll_die_command.py
dc496290d42ab0f28b2890db2880620223751fc8
[]
no_license
TomazWang/stinky-tofu
b11e4e3acc5fd5fdf754b4418071cb611e47bd2e
b486e272dbb8123de90e71cf8586b2baeaa1ac67
refs/heads/develop
2022-12-11T05:23:39.095483
2017-07-22T16:53:08
2017-07-22T16:53:08
97,475,296
1
1
null
2022-12-08T00:00:26
2017-07-17T12:46:15
Python
UTF-8
Python
false
false
3,755
py
roll_die_command.py
import random from typing import List import emoji from main.core.logic.command.name_command_adapter import NameCommandAdapter from main.core.model.event.input_event import InputEvent from main.core.model.event.multi_response_event import ResponseMessage from main.core.model.event.response_event import SingleResponse...
fc01a2adb1e4890e97dc93c8c043f6404db377bf
234c01e98d2deab16a20a30ed82bc7e493a50208
/mynet.py
d36ef275ff0951970e256c85ce0b52173cff9b4f
[]
no_license
jiejie1873491/tensorflow-classify
0d27a56f50eb896cebb13408d645c44b858b4f4f
7c379efdb84d55c011db441dd168468e30ff5010
refs/heads/master
2022-12-02T04:58:42.031155
2020-08-18T07:38:15
2020-08-18T07:38:15
288,376,762
2
0
null
null
null
null
UTF-8
Python
false
false
2,768
py
mynet.py
import os import cv2 import numpy as np import tensorflow as tf slim = tf.contrib.slim from tensorflow.contrib.slim.python.slim.nets import resnet_v1 # from tensorflow.contrib.slim.python.slim.nets import resnet_utils # resnet_arg_scope = resnet_utils.resnet_arg_scope import configs as cfgs class myNet(object): d...
5864d1d55ab405dcfe4625b93a5d1779a5aeb21d
5f0a1d552ca4d683a166982d40952631c58066b0
/apps/utils/sms.py
c103545e571429af2f6c820b8daad9e3ff3a1060
[]
no_license
tangmingming/daydayfresh
d1b559046215cc60e7f0d4d87744b4c51f298ffd
95d59699f4a97756cf689eba958581380217ce84
refs/heads/master
2021-09-06T04:47:30.286033
2018-02-02T12:50:36
2018-02-02T12:50:36
113,733,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
sms.py
import logging import random import requests from django.conf import settings class Sms(): verifycode_range = "1234567890" url = settings.SMS["url"] headers = {"Accept": "application/json", "charset": "utf-8"} logger = logging.getLogger(__name__) def generation_verifycode(self, length=4): ...
162073dbcf5443544cc4a87f015ae8e70d5265f3
217fc5ac45dd641064e3996cf1f9493cb7a05199
/python/env/bin/django-admin.py
134c7177bbabfd019b7ac899b10702caca93e684
[]
no_license
mono1375/leaning-python
92c9c682bb9dc2fb883eb109e9070ac4d29267e8
34f4b62cbdeff9a86e9cb60e3639a757981fc535
refs/heads/master
2020-04-03T13:26:57.341220
2019-01-22T17:53:26
2019-01-22T17:53:26
155,285,084
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
django-admin.py
#!/home/kemilb/Documents/GitHub/leaning-python/python/env/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
b09a1880f1f27d5829dcdd6e5c5ad6ad16f4c97a
1a93099b4843fe65d281b006e97a97cbd181834a
/100 days/scripts/python/random_madlib.py
d47588f20b1bb5c6558bbe536000f1cb2a9801be
[]
no_license
thedumebi/100-days-express-blog
f1a761df2c4ce5b6003a85bde003918fb19228de
588d9696d8beaef73563c4bfd1a9c646fbcd8b6a
refs/heads/master
2023-02-21T07:36:41.709144
2021-01-29T15:38:01
2021-01-29T15:38:01
325,343,733
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
random_madlib.py
from sample_madlibs import hello, park, party, madlibs import random if __name__ == "__main__": m = random.choice([hello, park, party, madlibs]) m.madlib()
6fc64bae162cab2453fcc5fe182534ac5b5057dc
b154cba75113329fc9e56e73dd310b1b979d0abd
/for_win/scripts/models/sheet_fetch.py
f320cf4204fb08a2a7f470b677cc526faff9170e
[]
no_license
yusuke1225math/embeddable_python_base
394d826b8905a8953ed6f9d93b80a15f60fbc168
ebe9415f310af95a3775869797e3407274ac13b2
refs/heads/master
2023-01-21T17:58:02.840525
2020-12-03T18:55:41
2020-12-03T18:55:41
317,850,574
0
0
null
null
null
null
UTF-8
Python
false
false
19,314
py
sheet_fetch.py
import json import os import pandas as pd import sys import gspread from config.sheet_config import JSON_PATH from datetime import date, datetime from oauth2client.service_account import ServiceAccountCredentials from time import sleep SCOPE = [ 'https://spreadsheets.google.com/feeds', 'https://www.googleapis....
0bc9f6a313d580c677f87059aea566fc0448fe1e
bd5ae523c426ba3c43f38638e4f6848ce856f17d
/263A.py
ee0c664849f0e2b2c2f1cf24115368ae5d165642
[]
no_license
PRETTY-FLACKO-ARES/codeforces-python-solved
672bb00e56b5f32d46845fdf7a356f5db60c3a5c
62bc8df09449343adf824569f61763562e1c6714
refs/heads/main
2023-07-17T10:14:27.012317
2021-08-31T16:39:46
2021-08-31T16:39:46
401,572,652
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
263A.py
matrix = [] for i in range(0, 5): matrix.append(input().split()) matrix = [[int(str) for str in list] for list in matrix] counter = 0 rowpos = 1 for lists in matrix: gotit = 0 for number in lists: if number == 1: gotit += 1 break if gotit == 0: ro...
8dbd88b4cc086ec497f8a37c02828d4da5fcef61
f5ef961d0bbcc77f56ab94e12aa9c9e61856c28a
/Simpangan Baku(Standar Deviasi).py
416e29f07f99694c449497c7e34364cef0bdd623
[]
no_license
anandaviamianni/Statistika-Dasar-Modul-7-
00ff816503ce4b0242b524dfd18dc65de24e7fba
2852fa6c6747de0cdf1491ceadb4a28cefcf9e90
refs/heads/main
2022-12-25T22:34:21.268128
2020-10-11T16:02:17
2020-10-11T16:02:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
Simpangan Baku(Standar Deviasi).py
import numpy as np sample_data = [35, 22, 12, 90, 45, 66] st_dev = np.std(sample_data) print("Elemen sample data = ", sample_data) print("Standar Deviasi = ", round(st_dev, 2))
b05a2917ff47e758a1ccfcb2ac07d688ac806afb
b849043459fd5e8573ef215fdcfe8a2243bac510
/SupportVectorMachine/MeshGrid.py
e82934a97bdb54ca71d2451138ad084f7d0d5a33
[]
no_license
shruti-mathur/Python-Projects
b5bb34cffcf320ad6ffb4249dc3aabfe39a4d70e
dff45928b084a29bb71c8a5cefd540f82578d392
refs/heads/master
2021-06-22T05:24:33.497167
2021-02-21T08:50:57
2021-02-21T08:50:57
189,955,865
0
0
null
null
null
null
UTF-8
Python
false
false
2,353
py
MeshGrid.py
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import numpy as np >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> import matplotli...
5d0533992d659804014241b1160b24430216593c
20a0bd0a9675f52d4cbd100ee52f0f639fb552ef
/transit_odp/organisation/migrations/0017_organisation_short_name.py
6781f2feae62c9452b57507c9b4ce99f8a15b423
[]
no_license
yx20och/bods
2f7d70057ee9f21565df106ef28dc2c4687dfdc9
4e147829500a85dd1822e94a375f24e304f67a98
refs/heads/main
2023-08-02T21:23:06.066134
2021-10-06T16:49:43
2021-10-06T16:49:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
0017_organisation_short_name.py
# Generated by Django 2.2.6 on 2019-10-24 12:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("organisation", "0016_auto_20191023_1535")] operations = [ migrations.AddField( model_name="organisation", name="short_name", ...
60cb50df5ab1d52a86c2081d73b338d432bc027d
fd086c0ccefbb9a859185647104f1781b7ea5f32
/demo/tweets/urls.py
b43fb811a12641398c83cd18add2e9b950aa8e2c
[]
no_license
RayParra/DjangoForMortals
e2cf7d0a6e97602008fce390729d61e4a19375b1
c839a1969759c1ef39aac203a5f802548063c89f
refs/heads/master
2020-03-27T12:07:02.145577
2018-12-07T05:38:36
2018-12-07T05:38:36
146,527,157
11
0
null
null
null
null
UTF-8
Python
false
false
765
py
urls.py
from django.urls import path from django.views.generic.base import RedirectView from tweets import views app_name = 'tweets' urlpatterns = [ path('',RedirectView.as_view(url="/")), path('search', views.List_Tweet.as_view(), name="List_Tweet_view"), path('detail_tweet/<int:pk>/', views.Detail_Tweet.as_view(), name=...
9f1929ef943097e45fb72007c1dd418619d95e6e
5954edf1fcb63eb57e33697eb6359841c73f1c9c
/yumzhang-part-1/proj1_mrjob.py
0611ee0a82e0ec6918826192705199a189bd8da8
[]
no_license
dotafreshman/Analysis-of-Global-Happiness-Indexing-and-Economic-Status
cf8db2172f2c6c1148333fdf36149bae01900caf
b46494dc9113595cb46ec35e0cb80b42aec1625f
refs/heads/master
2021-01-14T01:17:54.968381
2020-02-23T16:54:50
2020-02-23T16:54:50
242,554,504
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
proj1_mrjob.py
import mrjob from mrjob.job import MRJob from mrjob.step import MRStep import re class Task1(MRJob): #OUTPUT_PROTOCOL = mrjob.protocol.RawProtocol def mapper(self, _, line): data=line.split(',') if float(data[3])>=6: yield data[1],1 else: yield da...
94c81689e47de3234460b46502d11f1ed6a42979
1d81e64248e49ceabd4b5cc63a00658f32ecd58c
/enroll/admin.py
5763061c9e8c182bc7473299c7d1e1e5b9376638
[]
no_license
mahorbhaskar/Hannovit
2da4501829a60629e38c84619456cad661b1bde1
753bde1f13fd22dd1fa94a0969381e37cc96cd18
refs/heads/main
2023-06-30T18:48:06.776501
2021-08-12T12:37:49
2021-08-12T12:37:49
395,279,741
3
0
null
null
null
null
UTF-8
Python
false
false
215
py
admin.py
from django.contrib import admin from .models import User # Register your models here. @admin.register(User) class UserAdmin(admin.ModelAdmin): list_display=('id','name','pan','age','gender','email','city')
0806cdfb392cfb8768e7971310c269e33e29a02d
2e247794c96eb97cd681a5bbcd4c3060b14fd738
/Problem_4/4_answer.py
c9b36269f682b743e86a3a34c4d8108cddae8802
[]
no_license
rehbarkhan/project-Euler
af52cf664d89d43d32774b2a20d08fbb3176b69e
60d95f98cf2fa4db7a78d93f355037a051e4a5f2
refs/heads/master
2022-04-14T13:23:34.456460
2020-04-12T10:06:56
2020-04-12T10:06:56
254,852,740
1
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
4_answer.py
''' A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. x will hold the large value leftValue,rightValue product for x in range(100,1000) fo...
13d23827f9a0876fc6cdd997f0752f42a7ab555a
bdf0964d009090ac6d4db158041c356b8f4d5abc
/manage.py
59d2f2c5bef88913801d4148d4420ffe10fb9cc3
[]
no_license
luoyandaer/qk_spider
55bbdd2d7a4a088ccd18919dd927b3e58ffcfb5f
fe88a1ccef3e6e638a1991177f0aabe3984a98f0
refs/heads/master
2021-01-12T11:42:01.845338
2016-10-10T04:00:27
2016-10-10T04:00:27
72,264,424
0
0
null
2016-10-29T04:14:54
2016-10-29T04:14:53
null
UTF-8
Python
false
false
446
py
manage.py
#!/usr/bin/env python import os COV = None if os.environ.get("FLASK_COVERAGE"): import coverage COV = coverage.coverage(branch=True, include='app/*') COV.start() if os.path.exists('.env'): '''import env config''' print('Importing environment from .env ...') for line in open('.env'): va...
c7f95309f325264e2cf2102dc1239a9249e825b3
662ba0aceaf368083be93be7a2878648701ec90d
/dictframe/dictframe.py
e603ae847b56b173ab1c0838b491e2e2db8226db
[ "MIT" ]
permissive
huntzhan/dictframe
50e31b681ba144872fbbb81cb966675ad9ca11ba
1eb12bec802f1137fd9d2e9a644336bb764dbb50
refs/heads/master
2023-01-03T15:02:05.584254
2018-07-02T03:04:07
2018-07-02T03:04:07
139,379,801
0
0
MIT
2022-12-26T20:36:45
2018-07-02T02:10:59
Python
UTF-8
Python
false
false
951
py
dictframe.py
import jieba import random import logging class Tokenizer: def load_dictionary(self, path): self.reload_dictionary(path) def reload_dictionary(self, path): pass def tokenize(self, text): pass class JiebaTokenizer(Tokenizer): def __init__(self): super().__init__() ...
bd4478d5ba006fa68a4bc855b1418a688fdc1e9b
63d8f1d119f9448fba080e429b64588354c65397
/image.py
8d7d867e03cd97acceede3e80da72928c4e61852
[]
no_license
Bill-Park/capture-program
105cf04ee26f305f41a87abfc63d89a314e1fa71
c85e125a928b5b60cb5f17f238286a67058d1495
refs/heads/master
2021-01-20T03:47:15.748131
2017-10-06T16:47:49
2017-10-06T16:47:49
89,584,504
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
image.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'test.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Image_Viewer_2(object): def setupUi(self, Image_Viewer_2): Imag...
4d10526705be304efd19a9b4cf22ad9329ca2412
c6a7fb5d9378bb3d6f05ea0c797dd1fe28fa3668
/Examenes Años Anteriores/2013-2014 Mayo/Elemento Mayoritario.py
3eefd56e3bfcc67f63d7ae76720abc2f17d4b7de
[]
no_license
AlbertoSierraLopez/DisenoAnalisisAlgoritmos
0f64909832400f1ab87d2eaa31baf70e3c456a15
6ea0b2b7ae69ba35308b96d9a37b3f196d1ef64d
refs/heads/master
2022-11-23T08:05:28.030311
2020-07-12T23:10:55
2020-07-12T23:10:55
255,429,045
1
0
null
null
null
null
UTF-8
Python
false
false
796
py
Elemento Mayoritario.py
def Elemento_Mayoritario(a): n = len(a) if n == 1: return (True, a[0], 1) else: n2 = n // 2 t1 = Elemento_Mayoritario(a[:n2]) t2 = Elemento_Mayoritario(a[n2:]) if t1[0]: p = Contar_Apariciones(a[n2:], t1[1]) p += t1[2] if p > n2: ...
0f41ddfab025fb9c1204792cc11d1a83b51ffd7c
bfd9f18e100d15bedcf7c26bd52faf323f19f0cb
/bic.py
7ca0da3cedffe587670dc3967e2edbc823269dca
[]
no_license
yjzhang/clustering_k_selection
a02f6bcd9569eb02eea86f8234e0755ca8105c16
d3049de1119bcb6e9b0669fd8c9eeea13b8a630d
refs/heads/master
2020-03-30T15:00:58.193012
2018-10-06T00:02:01
2018-10-06T00:02:01
151,344,967
1
0
null
null
null
null
UTF-8
Python
false
false
4,401
py
bic.py
""" Using BIC to determine optimal cluster number """ import numpy as np from sklearn.cluster import KMeans def preproc_data(data): """ basic data preprocessing """ import uncurl from uncurl.preprocessing import log1p, cell_normalize from sklearn.decomposition import TruncatedSVD gene_subse...
2ed0809c5aa3a6934ed056705336f507c832974c
b60cba50eb05ee232681ef3ed302327db8c16e81
/webhook.py
cb0e51ad8e1765cfcf7398095b6ca71fa945b35c
[]
no_license
nero-code-inc/repo-web-service
bca5416958e7d53ae0af105d275b89bdd0dd4cce
3c28a3021ef9fe10b80369768638dffd64ccd2af
refs/heads/main
2023-01-14T06:56:30.449489
2020-11-18T10:39:45
2020-11-18T10:39:45
309,502,834
0
2
null
null
null
null
UTF-8
Python
false
false
3,052
py
webhook.py
#!/usr/bin/python3 import json from flask import Flask, request import requests from decouple import config import time from colorama import init init() from colorama import Fore ''' This script automates the protection of the main branch of a new repository created for an organization and creates an issue to no...
1d2c8fbfd0d614ec4826ad55cac28fed2db08654
97841ed9db24b7f4fa4d37b502094f11b21f2719
/p0174.py
a1a9ec50c537ddf45d1583afb5f761237913e0b7
[ "Unlicense" ]
permissive
ravish0007/patterns
9a5ea9d5efaeaa1c6ff1cbb10dfe891ffde3b116
5babd0d51d38259cd7497226617ab330141e07ba
refs/heads/master
2020-07-04T19:21:56.453406
2014-09-03T21:37:05
2014-09-03T21:37:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
p0174.py
import matplotlib.pyplot as plt import numpy as np n = 50 x = np.random.randn(n) y = x * np.random.randn(n) fig, ax = plt.subplots(3, figsize=(6, 9)) ax[0].scatter(x, y, alpha=0.1, s=80) ax[1].scatter(x, y, alpha=0.5, s=80) ax[2].scatter(x, y, alpha=1, s=80) fig.show() """( ![Plot](/assets/img/pp/patterns/p0174_1.p...
f2035280ffaf6365ecf52c8a250b36ad41d26717
88098d4124e10ba36affd2342022428233b59854
/Tokens_and_Indexing/Indexer.py
8f68e0af011720c62e8af0863feb598525190ccc
[]
no_license
annied93/SearchEngine
f36482ed18f913083acb4f33dfa064a4760dd17e
56f17a2583f9d0051a8cffd48922fb52de86849e
refs/heads/master
2020-04-05T01:32:42.986106
2018-11-06T20:07:59
2018-11-06T20:07:59
156,440,110
1
0
null
null
null
null
UTF-8
Python
false
false
14,445
py
Indexer.py
import os import csv source = 'tokens' size_key = 'index_size' index_dir = 'indices_files' bigram_dir = 'bigrams' trigram_dir = 'trigrams' p_dir = 'Position_Search' stat_dir = 'corpus_statistics' # Open and read the raw token file def open_read_file(file): file = source + '/' + file text = open(file, 'r') ...
02b21e42c810b23fc6487008b367cfc121a0d786
7e09f8764e62a2727390643707d0261166521fa3
/GES_DOC/apps/admitidos/admin.py
2c9f0f981161aa4cb8ab1dc30a594d8b9248ad71
[]
no_license
yrrodriguezb/ETITC_GES_DOC
f3aec1a9002323628e6e8d596acdc9633e90f637
a0f870f13c934a93ea3d81c4737a2f2a29d41409
refs/heads/master
2020-03-29T21:25:40.868873
2018-10-01T03:25:12
2018-10-01T03:25:12
150,366,050
0
0
null
null
null
null
UTF-8
Python
false
false
2,441
py
admin.py
from django.contrib import admin from apps.admitidos.models import Admitido from django_admin_listfilter_dropdown.filters import DropdownFilter, RelatedDropdownFilter from import_export import resources from import_export.admin import ImportExportModelAdmin from import_export.fields import Field from import_export.for...
18b8ba0392848b6cf1d168aa46be8fb496115794
249d35aff73b6b826d6dd4b7178a0d99ca2fb521
/1.14.05.py
ce08b19d81b72d2cdb173433326cbe6c5406c7d1
[]
no_license
apktool/LearnPython
ec7de43195f9a9d15d944495b06df0b519c1cdc3
453ce104c365bd76ae734c6c291d5bac52281f6a
refs/heads/master
2021-01-11T22:35:03.531319
2019-12-30T16:49:18
2019-12-30T16:49:18
78,991,897
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
1.14.05.py
# nonlocal def Fun1(): x=5 def Fun2(): nonlocal x x*=x return x return Fun2() temp=Fun1() print(temp)
1d20eb388936e8381cf55f0adce632dd717a5d21
35b58dedc97622b1973456d907ede6ab86c0d966
/day006/day06作业/day06作业.py
13ce9e745b070aeec320ee652ffe147dccb8ac01
[]
no_license
GithubLucasSong/PythonProject
7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635
e3602b4cb8af9391c6dbeaebb845829ffb7ab15f
refs/heads/master
2022-11-23T05:32:44.622532
2020-07-24T08:27:12
2020-07-24T08:27:12
282,165,132
0
0
null
null
null
null
UTF-8
Python
false
false
4,417
py
day06作业.py
# 1.有如下文件,a1.txt,里面的内容为: # # 老男孩是最好的学校, # 全心全意为学生服务, # 只为学生未来,不为牟利。 # 我说的都是真的。哈哈 # 分别完成以下的功能: # a,将原文件全部读出来并打印。 # f = open('a1.txt',mode='r',encoding='utf-8') # print(f.read()) # b,在原文件后面追加一行内容:信不信由你,反正我信了。 # f = open('a1.txt',mode='a',encoding='utf-8') # f.write('\n信不信由你,反正我信了') # f = open('a1.txt',mode='w',encoding=...
4f43d6a586055b167ece01733fcfc2be9e789ff1
8a19ab92641759537011cce125b60de285bc2820
/bilibili/bilibili/urls.py
9530170dea6684728fbba517ec30aea3c9ce717c
[]
no_license
iszoop/video-play
80c4c2f8da357d5c6b45d74bb810407a79a67bd8
ada4bfbec9d0e78e801fd6ed883fe4b46cd0d993
refs/heads/master
2020-03-23T17:28:36.173465
2018-07-22T04:07:59
2018-07-22T04:07:59
141,860,947
0
0
null
null
null
null
UTF-8
Python
false
false
2,281
py
urls.py
"""bilibili URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
10d217595e6521e805e97a89439eca62d7a05599
fad2036d0edd59729fca68a3da189abe6f233b99
/navigator.py
881f42509dd3ad323e0e78c7a7f8842040e52b84
[]
no_license
NancyFulda/Strategist
2e746d647c6711ae536b9acb418380891f42aadd
ff6e508491dbddcf0c7ac0b7a40eb29c35236725
refs/heads/master
2022-10-04T02:04:57.537076
2022-08-22T23:40:50
2022-08-22T23:40:50
91,389,774
0
0
null
null
null
null
UTF-8
Python
false
false
14,379
py
navigator.py
import sys ''' Usage instructions are provided at the bottom of this document. ''' class Navigator: # Used to denote paths that are originally thought to exist, but are found to be impossible (potential paths = 0) #ARBITRARY_SMALL_NUMBER = -sys.maxint - 1 ARBITRARY_SMALL_NUMBER = -9000 def __init__(self): # l...
f58f50bac08b5823fbc6bd45e31d229d0a74c64c
9e36717c50f7caf63dfed8032b2d1fb7efe59adb
/LibraryAlignment.py
f693abacc51a05a16b26fb8f13b0d6ebdda1af10
[]
no_license
bdoze90/OxfordAlgorithms
b28db43193090c3f2de15ba5ff9268c1884ee675
f6a34d4f24326de39efa2a0c0ea67afc6e7d2aef
refs/heads/master
2021-07-11T09:54:25.138818
2021-06-29T16:42:27
2021-06-29T16:42:27
221,804,508
0
0
null
null
null
null
UTF-8
Python
false
false
3,071
py
LibraryAlignment.py
"""File for identifying short sequences from Nanopore library sequencing data.""" from Bio import pairwise2 import subprocess import os import csv def run_centrifuge_sorting(): cent_exe = '/Users/brianmendoza/Documents/centrifuge-1.0.3-beta/centrifuge' ind_path = '/Users/brianmendoza/Documents/centrifuge-1...
0fd9715842d78fef527ec285530220b21d914e03
05a1803de5e5677d7ee6c7f034d342fe669f691f
/cripts/config/overrides_example.py
17757981bb2e988acc84a86ba8c00f41930d70dd
[ "MIT" ]
permissive
lakiw/cripts
18db66a2dd4abe3821c2bb27f65f4d229df94855
43f62891a3724e1ec60629887d97c421fb302163
refs/heads/master
2020-04-05T12:40:10.585860
2017-02-13T21:14:17
2017-02-13T21:14:17
41,014,007
2
0
null
null
null
null
UTF-8
Python
false
false
1,718
py
overrides_example.py
# example override.py # # This file can be used to overide or extend the settings in settings.py # # This is an example file. You should copy this to "overrides.py" and # make your changes there. # Modifying this example file will not change the settings that CRIPTs uses. # # The preferred way to configure most setting...
ec2993c34dc809924bfe1b0c696ad3beb1ce78d6
25d3dbf8e0fe88fcd0f9b75690f6a8965a8523a9
/crm_lead_sales_person/code/crm_lead.py
e897a7f3a9db6beb3b5e13ef476dd502392ba1fa
[]
no_license
ateneolab/odoo-dev
18cd33521e5802b4965f1e360bea5c1925c7a18a
b540d39cea50ecf3bfcaf9b632de4ed8cbb31a4d
refs/heads/master
2020-05-18T15:23:47.830370
2019-07-15T05:18:04
2019-07-15T05:29:00
184,495,488
1
0
null
null
null
null
UTF-8
Python
false
false
523
py
crm_lead.py
# -*- coding: utf-8 -*- from openerp import models, fields, api class crm_lead(models.Model): _inherit = 'crm.lead' @api.model def _filter_sales_persons(self): users = [] teams = self.env['crm.case.section'].search([]) for team in teams: users += team.member_ids.ids ...
b515e3565f5549a13a4c90fcc75e3e4c4f79e43a
f7e4fae29905f9d75628926a08bb526765ecc7cb
/api/exponea.py
4b1bef646b7e36cefdf2e59ccad5e1af5fefe619
[ "MIT" ]
permissive
jozo/exponea-assignment
20cfdfada929df3f31ed7b9e284ab0edac33398d
fa81f4fd392f6b41611133dec4380baa144ddd95
refs/heads/main
2023-04-14T03:16:30.430628
2021-04-22T17:47:31
2021-04-22T17:47:31
338,681,451
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
exponea.py
import asyncio from typing import Iterable, List import httpx import orjson from logzero import logger from pydantic import BaseModel, ValidationError from api.config import MAX_CONN, MAX_KEEP_ALIVE, URL client = httpx.AsyncClient( limits=httpx.Limits( max_keepalive_connections=MAX_KEEP_ALIVE, max_connec...
b052f4e8e749b18a3b6ba52eae395a2e400b5780
5aa0e5f32d529c3321c28d37b0a12a8cf69cfea8
/server/world_objects/object_components/MineComponent.py
49268db049b12db344accb9237f640699f124def
[]
no_license
sheepsy90/survive
26495f1ff2d8247fbb9470882f8be9f5272e7f2c
0eddf637be0eacd34415761b78fc2c9d50bc1528
refs/heads/master
2021-01-09T05:55:16.546762
2017-02-03T20:15:28
2017-02-03T20:15:28
80,864,391
1
0
null
null
null
null
UTF-8
Python
false
false
546
py
MineComponent.py
# -*- coding:utf-8 -*- from server.world_objects.object_components.AbstractComponent import AbstractComponent class MineComponent(AbstractComponent): """ This Component can be attached to a world object to make it a mine. Currently there is not much logic available but the sending to the client. """ ...
460d7df5bb376f843070c13340ab6375de60db8c
7ccce89d1e757e556136fe3a184c0dda86f691c4
/Module14/calculate_taxes.py
21d213523b38263d5d956bfa5ee7bf1864b9f5d3
[ "MIT" ]
permissive
geiyer/python
148c02f2eec36049d1bacd1560eea3192f495c93
2b85ff66277b337aab9f6a7a6fa1c86dccf0178c
refs/heads/master
2023-04-11T13:47:46.312529
2021-04-26T01:55:24
2021-04-26T01:55:24
291,298,973
2
2
null
null
null
null
UTF-8
Python
false
false
545
py
calculate_taxes.py
class calculate_taxes(): def calculate_single_tax(self, income): if(0 < income < 9875 ): return 0.1 * income elif (9976 < income < 40125): return 0.12 * income elif (40126 < income < 85525): ...
1c930d446524125865003e3008eb09c9e7cb3187
4d62ba7b39f1f4ad5c785ed5b006dee510aa94eb
/ip_scripts/selective_blur.py
00ed587720b5e08c2251fc9751c77f6475de9f7b
[ "Apache-2.0" ]
permissive
kanishkg/ip_tool
9a42d4142b56d0baedf9ab0bfdd3abe5046c8349
e2566a924d10843575eaccc0c14d7f16a9f2d258
refs/heads/master
2021-08-08T07:49:19.253482
2017-11-09T22:59:33
2017-11-09T22:59:33
110,108,228
4
1
null
null
null
null
UTF-8
Python
false
false
2,054
py
selective_blur.py
import os import numpy as np import cv2 import matplotlib.pyplot as plt from skimage.segmentation import felzenszwalb import sim_features as sf import ssearch from color_utils import convert_colorspace from segment_image import * def selective_blur(image,mode,p1,p2): print mode print image.shape if mod...
009b73e6834397c2c53ccbbcd26c74aea7a67294
f30b91db647dca1f77fffa4b7e26b6c6a68abbc6
/7_kyu/Thinking & Testing : Something capitalized/testit.py
dfc7b3b86bc08d130bfafd3e8431162614ec61e7
[]
no_license
estraviz/codewars
73caf95519eaac6f34962b8ade543bf4417df5b7
5f8685e883cb78381c528a0988f2b5cad6c129c2
refs/heads/master
2023-05-13T07:57:43.165290
2023-05-08T21:50:39
2023-05-08T21:50:39
159,744,593
10
55
null
null
null
null
UTF-8
Python
false
false
104
py
testit.py
""" Thinking & Testing : Something capitalized """ def youtestit(s): return s[::-1].title()[::-1]
ada54d3dd6615a6de6e5563275598349a8db00a6
c958227b31e48b49d9ad1db9c90450c7f66f9c5d
/blog/migrations/0010_auto_20201202_2159.py
a03e40226b937928b3f1833900e0d98a07cce928
[]
no_license
DimaKurd/newslog
3d5d2fc7cee422195b5c580fdea21264d8d6e074
ec88e0d13a2cf9ff04d6b363d15e4d708d17a448
refs/heads/main
2023-01-31T11:45:27.911465
2020-12-16T18:32:01
2020-12-16T18:32:01
321,061,250
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
0010_auto_20201202_2159.py
# Generated by Django 3.1.3 on 2020-12-02 18:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0009_comment'), ] operations = [ migrations.AlterField( model_name='customuser', name='avatar', ...
b7d6a4a749c2f7fb5716b11f3dd789a11fa16dc3
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python2/biantai.py
6bfb6d967243cc7a6b6a28fda0d6e808ce547d38
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
2,320
py
biantai.py
# # class Solution: # def __init__(self): # self.MODULO = 1000000007 # # # def solution(self, H): # length = len(H) # nests = [[0, 0] for i in range(length)] # # for i in range(length): # nests[i] = [i, H[i]] # # nests = sorted(nests, key=lambda x: x[1]) # ...