blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
7782f238bbd0d8255c48030ab2509aadec6ec136
a349c67e63c1cf8203c938ea1b1c9fa4f10252fa
/admin_back/branch/models.py
1342bccaf0c08d8a0de51e95cc92a7af26576c21
[]
no_license
shubham2704/TopaAcademy_
a068b45e62f857786c0aa43f6c47dfea4cdd85d0
859ed88489dbabebf0318a53eabe91eae80297ca
refs/heads/master
2023-01-11T22:58:33.052314
2019-11-10T11:52:22
2019-11-10T11:52:22
220,782,125
0
0
null
2022-12-10T08:26:33
2019-11-10T11:45:51
JavaScript
UTF-8
Python
false
false
659
py
from django.db import models # Create your models here. class branch_degree(models.Model): degree_name = models.CharField(max_length=75) degree_status = models.CharField(max_length=25) date = models.DateField(auto_now_add=True) program = models.CharField(max_length=100, default="") duration = mod...
[ "rs188282@gmail.com" ]
rs188282@gmail.com
5d4d8e29a7cab2dccae8f4943f14e51687f2fb77
f4420cffb38e07800d3c5bdab01aada857fa0e22
/class3/class3_train.py
14864daf688899fc6e804a526969296a78037299
[]
no_license
JShangS/Class_NUDT
8198c0d255ad3a76c02e32156eeb82c1d565011f
ea057d1b570965a2c900096611e2473e94ddf3c0
refs/heads/master
2020-03-16T06:04:20.633033
2018-07-18T15:36:17
2018-07-18T15:36:17
132,546,623
1
0
null
null
null
null
UTF-8
Python
false
false
5,836
py
# 该模型实现如下的功能,输入两个MINIST图片,判断是不是同一个数字。 # 输入 负样本对:X1=6的图片 , X2=9的图片 输出:1 # 输入 正样本对:X1=3的图片 , X2=3的图片 输出:0 import tensorflow as tf import numpy as np from tensorflow.examples.tutorials.mnist import input_data ##############平衡样本############# def balanced_batch(batch_x, batch_y, num_cls): batch_size = len(batch_y)...
[ "424431687@qq.com" ]
424431687@qq.com
9ac8b9102cb25d5b191859e8416350e58ed239ce
915b1364a4e6df3c5f2877b73204d91f1b60a7b6
/alfred/services/petition_statuses.py
ae8b13d757678328f096a3f60e8ae91d61271341
[]
no_license
MariaHajj/alfred
5891bcb27b54eb865594d706973bbf3ed66a356e
fad3da69d45773818a36f73c9446fa81ff515199
refs/heads/master
2023-09-03T19:29:47.593299
2021-10-22T21:31:32
2021-10-22T21:31:32
336,099,114
1
1
null
null
null
null
UTF-8
Python
false
false
2,344
py
from alfred.dao.petition_statuses import petition_status_dao,\ PetitionStatus, db class PetitionStatusService(): __instance__ = None def __init__(self): if PetitionStatusService.__instance__ is None: PetitionStatusService.__instance__ = self ...
[ "mariahajj5@gmail.com" ]
mariahajj5@gmail.com
a4a54fab9bf8da2d7cc0958d3f1e07bf28e76a48
92c66c64b70bc41e60252b48dafd58b2c0d1a39f
/Python/Testing/KNNImpute.py
2c3e15d3a40a3af6228c4a0188e314e6248e6569
[]
no_license
matt-ramcharan/unknownPrimary
360bebc847a3cfa6312970c5cc74256240afc39a
d83f45c8e08ae2857b057070e665a6dfb7ad35e1
refs/heads/master
2021-06-22T07:40:15.887110
2021-02-24T21:25:49
2021-02-24T21:25:49
194,879,144
1
0
null
null
null
null
UTF-8
Python
false
false
687
py
import pandas as pd ds = pd.read_csv('/home/matt/Documents/TechnicalProject/unknownPrimary/Python/DataFormatting/FullDataColoRectal93.csv') Y = ds['Label'] from sklearn.preprocessing import LabelEncoder labelencoder_y = LabelEncoder() Y = labelencoder_y.fit_transform(Y) # print(Y) X = pd.array(ds.drop('Label', axis=1),...
[ "matthew.a.ramcharan@gmail.com" ]
matthew.a.ramcharan@gmail.com
ef9c532d9518673c77b85d20f3fe332064e3096a
b6699361cea596afbafcff40056e12a3ccadb590
/nebula_utils/nebula_utils/persist_compute/utils.py
2f9feffcaa4a8285a2abe800ba2837e256eb6e2b
[ "Apache-2.0" ]
permissive
benhe119/python_lib
4c6ba3468ef380eadc5ab65401052aba224801db
e2d4052de04c82cb7bccd08042f28db824cab442
refs/heads/master
2020-08-09T10:09:59.368521
2019-03-29T02:21:55
2019-03-29T02:21:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,722
py
# -*- coding: utf-8 -*- Group_Key_To_Dimension = dict( c_ip = 'ip', uid = 'user', page = 'page', did = 'did', # c_ipc = 'ipc', ) Avail_Dimensions = tuple(Group_Key_To_Dimension.values()) # dimension : variable_name(获取点击量的变量名) Click_Variable_Names = dict( ip='ip__visit__dynamic_count__1h__slot'...
[ "zengjinping@threathunter.cn" ]
zengjinping@threathunter.cn
d268885b06e5ecfc77a921f7ad6c72e5960b568d
7465b8a0e9230c0fbfaa6fca61cd37a8f9808867
/python/file_read.py
407ad5fef985af2b41efa8472fa7a9c0a23340be
[]
no_license
leventarican/cookbook
64ac76f64ae2277e4a35ed9e0ec39d57296ec84c
44ae9ffe8ec50dc0a65d8c23a7971d93b7240886
refs/heads/master
2023-07-21T15:24:30.156023
2023-03-24T23:26:50
2023-03-24T23:26:50
188,314,816
1
1
null
2023-07-07T21:43:58
2019-05-23T22:26:39
Java
UTF-8
Python
false
false
165
py
import os file = 'tmp.file' file_check = os.path.isfile(file) print(f'is file: {file_check}') if file_check: text = open(file).read().rstrip() print(text)
[ "levent@protonmail.com" ]
levent@protonmail.com
d1a6d8596ce7eb63d9e60c8828b8e99dc7f0505f
1431d485f0d2d26fd1205de928410e2fd0177999
/egift/settings.py
fa0f0f07e155ba654eb85ad69aac32f19be4adf7
[]
no_license
ryanagao/egift
38feff9f3e30505724d95945ce78d24db1f030e3
bcd92afe5079f2631ac12f058e9c865d27f05345
refs/heads/master
2022-10-28T11:46:50.641772
2020-06-09T09:03:51
2020-06-09T09:03:51
268,835,146
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
""" Django settings for egift project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
[ "ryanagao@yahoo.com" ]
ryanagao@yahoo.com
a0cf638570fd5e5ca668f87fea26dba6aa801a6c
f59d214b39cde79ae1785dd85c2302e61f88a6a9
/mailer/migrations/0001_initial.py
698297748dbee433427c3f4d76abbf71fdbf7c3e
[ "MIT" ]
permissive
Fyodor-Mityanin/mailgunner
24c9502c1fd3b770f67f9e84a4590849a1dba94d
4292819383ee2d8a90ef1b02d5f2053c1b889f42
refs/heads/main
2023-07-15T02:39:55.061345
2021-08-16T16:38:18
2021-08-16T16:38:18
395,543,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
# Generated by Django 3.2.6 on 2021-08-13 11:49 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Email', fields=[ ...
[ "79231292918@ya.ru" ]
79231292918@ya.ru
07058386513c7f2b9211d4ef939667c38b5caa96
22f52f8935932d7702ab8c69c206e50e658a4229
/client.py
c2bc6a02d6d934d18afddb117bce75c948bae00f
[]
no_license
thomaskaridis91/TCP-chat-room-Python
066f12f41db6d8a023c238f0ea0df351b880a4e0
4a2b1a7bef57252ed4ba28daeeec09ddf97a3727
refs/heads/main
2023-02-03T01:29:04.967565
2020-12-15T16:25:32
2020-12-15T16:25:32
321,042,702
0
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
import socket import threading nickname = input("Choose a nickname: ") if nickname == 'admin': password = input("Enter password for admin: ") client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #socket initialization client.connect(('127.0.0.1', 7976)) #connecting c...
[ "noreply@github.com" ]
thomaskaridis91.noreply@github.com
598e560d763656adbc9a89350e1a41a550753672
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/ADD/ADDMonoJet_Pythia8_8TeV_d2_MD4_Tune4C_cfi.py
b5abcb126193f8ade437774aa00cf6cd962f7ded
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
1,055
py
import FWCore.ParameterSet.Config as cms generator = cms.EDFilter("Pythia8GeneratorFilter", pythiaPylistVerbosity = cms.untracked.int32(1), filterEfficiency = cms.untracked.double(1.0), pythiaHepMCVerbosity = cms.untracked.bool(False), comEnergy = cms.double(8000.0), maxEventsToPrint = cms.untracked...
[ "sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch" ]
sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch
232fc7c6fe140c92490d86fdcbc5cc5b0dd995d0
be7c4427047adcde81d76382b21bb6e1df8b6994
/data_processing/compute_EER.py
5ea742c5ac92c02e39bc9665e2dd31cd1109c4d8
[ "MIT" ]
permissive
twistedmove/multistream-CNN
3d1d1be983b940f8a843349774866f0ecbc11a0c
a21bfe9f41d586d7e51f1ce345f11ecfb8df66e7
refs/heads/main
2023-02-13T14:21:39.601812
2021-01-05T15:29:06
2021-01-05T15:29:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,030
py
#!/usr/bin/python # -*- coding: utf-8 -*- # USAGE: python compute_EER.py --ground_truth data/trials.txt --prediction data/scores.txt import os import numpy import argparse import pdb from scipy.optimize import brentq from sklearn.metrics import roc_curve from scipy.interpolate import interp1d # ====================...
[ "chenshenpe@163.com" ]
chenshenpe@163.com
9110b94cd649c0cd67ec03c1e03f62dd6a7243d9
e37fd2fd6a09a9b28c18df6df9d7892357f0762c
/routines/randMat.py
741e62c15b93bf610a752e24120413296a816e3a
[]
no_license
kjerfire/math5610
0238f566723d96df5ca7de1393a27d9c6a50efba
37a0693c957c3ce9bfa169c4ca5955bdcd72f4ac
refs/heads/master
2020-04-15T07:00:37.756127
2019-05-01T22:49:35
2019-05-01T22:49:35
164,483,734
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
import random def randMat(m, n): return [[random.random() for i in range(n)] for j in range(m)]
[ "noreply@github.com" ]
kjerfire.noreply@github.com
4c9b0e631e8b0ca21e84f2aacadd30b83f22bd34
0549e79fc24ff13b06a353fade3c30e663e2e294
/dev/gobblin-jira-version
5796c543733ffcdf9ccb254819f4ba7889579f2f
[ "Apache-2.0", "BSD-3-Clause", "MIT", "xpp" ]
permissive
thaiphamquoc/incubator-gobblin
2b7f59b92b057f8ffc15eebb7908ff4125075094
8879cdec2680e9e748d7e89f5cef5d72110c1c07
refs/heads/master
2021-09-06T05:11:29.568067
2018-02-02T15:54:44
2018-02-02T15:54:44
119,752,509
1
0
null
2018-01-31T22:37:22
2018-01-31T22:37:22
null
UTF-8
Python
false
false
5,524
#!/usr/bin/env python # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Li...
[ "abhishektiwari.btech@gmail.com" ]
abhishektiwari.btech@gmail.com
d48e94c2e6566443a5f4da190cd17c660f99d236
d03da8f6518fca612daafc6cd856c1ee21e82087
/migrations/versions/56bf3c2acb25_comments.py
94d21e2ead182984afdc50695e941a960b72ab5d
[]
no_license
kiudou/flask_again
78df06dc2a3f810b19d6aa734f207cef0adf60b3
74f5816f8cf94b18d6325497eb49486700173aa9
refs/heads/master
2022-12-01T22:34:39.978973
2018-04-18T05:53:34
2018-04-18T05:53:34
111,967,303
0
1
null
2022-11-28T10:58:27
2017-11-25T01:21:40
Python
UTF-8
Python
false
false
1,288
py
"""comments Revision ID: 56bf3c2acb25 Revises: ecf568fe583e Create Date: 2018-01-11 22:01:35.622098 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '56bf3c2acb25' down_revision = 'ecf568fe583e' branch_labels = None depends_on = None def upgrade(): # ### c...
[ "qidong120@hotmail.com" ]
qidong120@hotmail.com
aa3a7e324554a6b388c08bf4a9817c9ece2af45e
3114632ff07ee00bae1b2f0fa60df372aec247e2
/model/lstm/export.py
cfaa591237e0fd8188643c397a9bcb2acf95c37e
[]
no_license
linguishi/chinese_sentiment
fabbb10f6efb2fe41488c23ec6a48e7b0439b7e7
06bdc816c678a4998bb04576bd76d3cae118c4c2
refs/heads/master
2022-11-05T20:53:30.785979
2022-10-22T15:43:20
2022-10-22T15:43:20
162,000,470
678
96
null
2022-06-21T21:40:16
2018-12-16T12:49:29
Jupyter Notebook
UTF-8
Python
false
false
789
py
from pathlib import Path import json import tensorflow as tf from main import model_fn PARAMS = './results/params.json' MODEL_DIR = './results/model' def serving_input_receiver_fn(): words = tf.placeholder(dtype=tf.string, shape=[None, None], name='words') nwords = tf.placeholder(dtype=tf.int32, shape=[No...
[ "513228837@qq.com" ]
513228837@qq.com
9611e6b173e8da2152c8313f4dd5182e6e2c6d2e
66a087ce740887a26dae70b96e468ce860cb971d
/src/cli.py
6e9270a33db54eb31e1d5c58e37391477dc71fc7
[]
no_license
lshin/foodtruck-cli
7a1e2964aa48a810c216647293f2b8c33b83a621
b446f4454df89bc438f7b2f49e722f727b698ff1
refs/heads/master
2021-01-19T14:21:19.432110
2017-09-25T21:40:10
2017-09-25T21:40:10
100,899,721
0
0
null
null
null
null
UTF-8
Python
false
false
1,126
py
""" show_open_food_trucks Usage: show_open_food_trucks show_open_food_trucks [--limit=<number>] show_open_food_trucks -h | --help show_open_food_trucks --version Options: -h --help Show this screen. --version Show version. --limit=<number> ...
[ "leo@sh1n.com" ]
leo@sh1n.com
59cafbd895db387e940013040b0c5cf818e776ae
f8450a92c000667ef7f5f437a789ead015b8f140
/kaspad/kaspa_dags/dag_tools/chains_dag.py
67fddb15d7a26fc1ec787eca327476264a63a3c0
[]
no_license
fakecoinbase/kaspanetslashkaspy_tools
ee467c18160e3db9059e8d30d42fe56fb8ad8af7
61ec322757a5f543da68e5d0c0ce1606edd1bf89
refs/heads/master
2023-03-30T19:53:14.491784
2020-07-25T16:43:30
2020-07-25T16:43:30
282,572,688
0
0
null
2021-03-26T00:01:03
2020-07-26T04:06:09
Python
UTF-8
Python
false
false
2,497
py
import os import subprocess from kaspy_tools.local_run.run_local_services import run_services from kaspy_tools.kaspad.utilities import block_generator from kaspy_tools.kaspad.json_rpc import json_rpc_requests from kaspy_tools.kaspad.kaspa_dags.dag_tools import save_restore_dags from kaspy_tools.logs import config_logge...
[ "noreply@github.com" ]
fakecoinbase.noreply@github.com
e7922df463850164f98f54a547ff341ee05336f4
9f3f36b6485a5d3fc5647414e921a7e31be8075d
/procedure_06252015.py
0b87c488e16ff453291cbc591cbb6694b5ab2f5f
[]
no_license
nhuntwalker/new_work_scripts
10993c367d0fa042160f4d451f4f0b3c286600b9
1f6b572b8eae8cf5208f621e65db16c64f52bdb4
refs/heads/master
2021-01-25T04:02:35.474688
2016-02-24T02:23:14
2016-02-24T02:23:14
32,169,135
0
0
null
null
null
null
UTF-8
Python
false
false
1,715
py
from thesiscode.quality import * from thesiscode.plotting import * import pandas as pd simbad = Data(pd.read_csv("../samples/simbad_allwise_allmatches.dat", sep="|")) macho = Data(pd.read_csv("../samples/macho_allwise_allmatches.dat", sep="|")) ogle = Data(pd.read_csv("../samples/ogle_allwise_allmatches.dat", sep="|")...
[ "nhuntwalker@gmail.com" ]
nhuntwalker@gmail.com
ee04b89a047c94c9b8b1a8c8c05de21ed4ddfde2
6562b410385bb444316eda3c054fff9662d7e727
/polytri/seidel.py
98621e2ad84d3cf9549b976ae295b84ecac6afd8
[ "LicenseRef-scancode-public-domain-disclaimer" ]
permissive
mhearne-usgs/polytri
92a11c367936047e3b0f8b66e1b7949049323192
a8f5513df8d2a2b31ccf9db45ebd588d58a12f8c
refs/heads/master
2021-01-23T16:37:23.310212
2014-10-06T14:38:16
2014-10-06T14:38:16
24,344,232
1
0
null
null
null
null
UTF-8
Python
false
false
21,211
py
# # Poly2Tri # Copyright (c) 2009, Mason Green # http://code.google.com/p/poly2tri/ # # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above co...
[ "mhearne@usgs.gov" ]
mhearne@usgs.gov
de93e5cf2d408f47553fd7c91b6ce4c6e791ddc0
a57087659b4a87d0b8d83f022c916181658c2b2e
/model/repeat_attack.py.bak3
36fb5fd0b9769efb0cbc69b576fef5e0c7c13fa6
[]
no_license
slzoo/Research_In_DataScience_FinalTerm
25340ac3dafff7324084e72321f99cd4a8555bf7
d60f5ff5606ba5bbfb6f35917811816969791130
refs/heads/master
2023-01-31T14:39:23.267600
2020-12-19T13:34:58
2020-12-19T13:34:58
322,836,521
0
0
null
null
null
null
UTF-8
Python
false
false
11,603
bak3
import numpy as np from itertools import combinations import keras from keras import models from keras import optimizers from keras.callbacks import ModelCheckpoint from keras.models import load_model from keras.models import Model from keras.models import Sequential from keras.layers import Lambda from keras.layers im...
[ "slzoo.lee@gmail.com" ]
slzoo.lee@gmail.com
33ce4754bccacc388d2a8a4eeb33314de36a73c4
cca07b149aaa9eec4c65b99fcc6c9e67ec34be2f
/dataload.py
de2ade30bedc17fff6b306f000116088fb52c2cf
[]
no_license
b2220333/AgeGenderPred
bf35a6c7f844648ea92028368b5b3c64a152b82e
ce7fe6554faa42654d9823f406f66dd344a3c7b6
refs/heads/master
2020-03-09T01:30:29.690464
2018-04-07T05:47:50
2018-04-07T05:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,315
py
import os import re import glob import torch import numpy as np from skimage import io from torchvision import transforms from torch.utils.data import Dataset from config import parser parser = parser['DATA'] class FaceDataset(Dataset): """ read images from disk dynamically """ def __init__(self, datapath, tra...
[ "adamzjk@foxmail.com" ]
adamzjk@foxmail.com
e2236a552f77dc465a4671de603adc19afd8a7eb
fb5c44282cee565d0ea108c2c3d1a0bd958b526a
/intrinio_sdk/models/api_response_stock_market_indices_search.py
c341a6098742406db32054310a5b2aebe84a3c20
[]
no_license
shahkevaln/python-sdk
21d204b6e5d659d965e79e2a3bdce26fd7d96a56
a7eed11e49676d1e279c7a576f13f187dcf4ece4
refs/heads/master
2020-05-07T20:50:12.917589
2019-04-10T20:25:34
2019-04-10T20:25:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,611
py
# coding: utf-8 """ Intrinio API Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ...
[ "kgmilerdev@gmail.com" ]
kgmilerdev@gmail.com
570826b7eeee699e20144d0a61e1f629c6c89fc0
0baac2c4aa84f65896054043486577b6e08ba9ef
/python/147-insertionSortList.py
8ed4262c05ddca98b9386c2baaab096e4442a5f5
[]
no_license
hy299792458/LeetCode
c302983b81151acddffe3a71b03b4aceb20b4fa4
bb24717283a6b3ddd463b68cba34f70df75ddfed
refs/heads/master
2021-01-21T17:01:58.082623
2017-09-12T16:49:44
2017-09-12T16:49:44
91,924,578
3
0
null
null
null
null
UTF-8
Python
false
false
521
py
class Solution(object): def insertionSortList(self, head): p = dummy = ListNode(0) cur = dummy.next = head while cur and cur.next: if cur.val < cur.next.val: cur = cur.next ; continue if p.next.val > cur.next.val: p = dummy ...
[ "hy299792458@gmail.com" ]
hy299792458@gmail.com
61013b2ead060f0d1ffca1f25a93e5da8bc10f7a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_196/ch168_2020_06_22_14_07_10_025372.py
b9b1ae88c331372be028b71a494519e33de12194
[]
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
251
py
def login_disponivel(login, listalog): for i in range (len(listalog)): if login not in listalog: return else: for i in range (len(listalog)): loginfinal = login + i return loginfinal
[ "you@example.com" ]
you@example.com
ed6d70e7bed5a38c3535f3649a6a9545e2abf9af
5b837999cd7df4dad746bf7cd7d1b4bbab1f705f
/BLAST_parsing_scripts/scripts/split_lines.py
3ebb7918c2e830925bb19511665dd057078db5d4
[]
no_license
qiao-xin/Cuscuta_HGT_ms_code
a4752ee5e4f79850668dcf1f5e36e9621a59b7f9
a3e7b0387ac01f5ffef5e78731ec4121ba28865a
refs/heads/master
2020-06-25T02:11:58.237068
2019-01-30T03:31:41
2019-01-30T03:31:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
#!/usr/bin/python #split_lines.py from __future__ import division import sys, os, string, re, math #purpose of this script is to split a file into many small files #for instance, each small file is 1000 lines if len(sys.argv)!=3: print "Usage python split_lines.py infile #_of_lines_in_each_file" exit() infile = sy...
[ "noreply@github.com" ]
qiao-xin.noreply@github.com
a8437095882e00ee327199df8608d6095a176279
a7e03865229ee202b42c7a2c62887bd1ca92b277
/bff-2.py
53654a72a2f0dfe9df44c323c0fada65e762a3ca
[]
no_license
Iqbl-Bobz/bff-2
31c4e2b26acde50224100047068add0bac6b4b51
43e3f05a689a6ce1c61add1fda8695b053b5bf16
refs/heads/main
2023-08-07T06:44:28.305968
2021-10-12T01:06:11
2021-10-12T01:06:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
51,856
py
# coding=utf-8 # coding by Romi Afrizal # Note : jangan di ubah lagi! nanti error, script udah enak # Open source code team # Sekedar mengingatkan kalau mau decrypt script ini jangan salahin gw, jika semua data-data di hp (handphone) lu hilang (terhapus) Hj = '\x1b[1;92m' Mt = '\x1b[0m' ingfo = ( """%s ...
[ "noreply@github.com" ]
Iqbl-Bobz.noreply@github.com
e1a70b50f4fc965405d013ea73af5251bf32c847
a9a3b98838b0a9bfbb345b82f7a46068541d5c67
/src/rc_sample.py
fa0b970e0595791eac4fe6a23f7e03db0a2992bb
[ "MIT" ]
permissive
christian-vorhemus/autcar
d8abaa52b3c779ad6835f16c16ede9003adab40f
9860654bae082302d5862f3c960a9ce261e4385f
refs/heads/master
2021-07-02T23:08:44.022216
2020-10-01T16:12:39
2020-10-01T16:12:39
169,281,566
14
3
null
null
null
null
UTF-8
Python
false
false
986
py
from autcar import Camera, Car, RemoteController, Capture import time rc = RemoteController() car = Car() cam = Camera(rotation=-1) cap = Capture(car, cam, capture_interval=2) rc.listen() direction = None while True: cmd = rc.get_cmds() print(cmd + ", time:" + str(int(time.time()))) if(cmd == "fast"): ...
[ "chvorhem@microsoft.com" ]
chvorhem@microsoft.com
9c4d517a9fee863b223f70aa4d370aa5ab3ef854
0517db36a2805c055fabb935992f215ea946de5c
/venv/Scripts/pip3.7-script.py
dda49038773158ac578c38a5ff8a506d25b6163a
[]
no_license
asmelo/python_course
bb38294d4b3043055909a8a267a0873663b0281f
242937397725ba9f6256b5c605fb58ce2ad510e9
refs/heads/master
2020-04-27T22:19:38.832892
2019-03-09T18:47:24
2019-03-09T18:47:24
174,732,678
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
#!C:\Users\Alexandre\PycharmProjects\cursoPython\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',...
[ "asmelo10@hotmail.com" ]
asmelo10@hotmail.com
307d26a18acaea5c51bddf6a387edc27a800a9cc
a8512be25763749b9267eefa1f88117b9f855823
/pmlauncher/minecraft.py
ed0d63d861ece60eda364edf4b21fc116461adb6
[]
no_license
huntert1004/Adelphi
3306b0b9d13cfedcf14838090d24dcc1743766b3
aa1a63294f47f9c993a5c8b64c3523b5ead0e15c
refs/heads/master
2023-01-13T15:12:40.178528
2020-06-07T02:41:42
2020-06-07T02:41:42
243,532,722
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
import os path = "" library = "" version = "" assets = "" index = "" assetObject = "" assetLegacy = "" resources = "" natives = "" def initialize(_path): global path, library, version, resources, natives path = m(_path) library = m(path + "/libraries") version = m(path + "/versions") resources =...
[ "daringswordfights@gmail.com" ]
daringswordfights@gmail.com
9e1afb01494ab2d3737b90969d652b95190004c0
0a6322f0fcc26bc928046b2d245a8ed40194cd06
/1/14.py
ef0126e59c7a42a6f87e36a3b8365a1c28789f60
[]
no_license
kenta997/100nock
77229bfcd5307ae93997aa9f7e03e6a64bd88ce2
0bb5217fb66f39d4165f8311f0b82cc2c7d58f42
refs/heads/master
2021-07-19T02:35:52.601905
2021-07-14T12:58:47
2021-07-14T12:58:47
209,467,897
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
import sys s = sys.stdin.readlines() n = int(sys.argv[1]) if len(sys.argv) > 1 else 10 print("".join(s[:n]))
[ "kenta_morishita@albert2005.co.jp" ]
kenta_morishita@albert2005.co.jp
580f2eac6bf6447c43532e7f7a083c21bdf884dd
fcd51666f037a185f212f4bcf2613930001d7ae7
/location_privacy/analysis/statistics/tweet_distribution.py
8976b0666e53c9c0b4ca211e76f7bbcbfdcb6edc
[]
no_license
hbarthwal/infolab
56d499e6b1edca639bba5b1a6e165d0e87bf4978
312687947487a31f4b9837bcbff549163221b8b1
refs/heads/master
2020-12-02T17:28:26.789442
2014-02-14T22:07:01
2014-02-14T22:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
''' Created on Jan 31, 2014 @author: Himanshu Barthwal ''' from mrjob.job import MRJob from cjson import decode from common_functions import Utils class MRTweetDistribution(MRJob): ''' Counts the number of geotagged vs non geotagged tweets in a given dataset generated by dataextractor.TweetParser . '...
[ "shady3025@tamu.edu" ]
shady3025@tamu.edu
8bd3d164dd6c9b19482571a02dc8ca73bf2177ee
c80ec1805a7e6cb1bd3f4b3e383ef4f4cf164765
/gen/datehandler/_date_sk.py
64272a3685829a00599398ee91c9de9b8a6188f6
[]
no_license
balrok/gramps_addon
57c8e976c47ea3c1d1298d3fd4406c13909ac933
0c79561bed7ff42c88714edbc85197fa9235e188
refs/heads/master
2020-04-16T03:58:27.818732
2015-02-01T14:17:44
2015-02-01T14:17:44
30,111,898
2
1
null
null
null
null
UTF-8
Python
false
false
6,077
py
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2004-2006 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of t...
[ "carl.schoenbach@gmail.com" ]
carl.schoenbach@gmail.com
0c85ccae2edff084d0850ef3fc8f154127317255
de8e0c5c759347917ca7f06b42ca6c82b8f8c95f
/baekjoon/backtracting/sdoku.py
c875c42f7480cf8603e80d099b739364ba063084
[]
no_license
Greek-and-Roman-God/Apollo
aaeb315a9e70c719b3e53e3c4b9b5dde7b517ec0
2823cbcc9fc10ecd3f1785732403cb9c288f8ef3
refs/heads/main
2023-08-23T12:08:05.322733
2021-10-02T10:54:13
2021-10-02T10:54:13
308,242,023
1
1
null
2020-11-26T12:03:44
2020-10-29T06:49:26
Python
UTF-8
Python
false
false
1,377
py
# 2580 스도쿠 # https://www.acmicpc.net/problem/2580 # board = [list(map(int, input().split())) for _ in range(9)] board = [ [0, 3, 5, 4, 6, 9, 2, 7, 8], [7, 8, 2, 1, 0, 5, 6, 0, 9], [0, 6, 0, 2, 7, 8, 1, 3, 5], [3, 2, 1, 0, 4, 6, 8, 9, 7], [8, 0, 4, 9, 1, 3, 5, 0, 6], [5, 9, 6, 8, 2, 0, 4, 1, 3]...
[ "doyeon311@gmail.com" ]
doyeon311@gmail.com
fc6f852a94e16836de135469f3f3c3d35b01b02a
0f4b7144d993d75a5a941f007e6dca6f0606b6d8
/stacking_class.py
1f97d43ef70267d7389a9198aab567fe4caf7ded
[]
no_license
yanhan19940405/Data_machine_learning
40226181f9ff6c8410928fe372a2e4a917a3b9fa
d494501f5a31554ec5588dd07e0d203aa9cac91a
refs/heads/master
2020-04-25T21:12:18.051075
2020-04-20T09:38:54
2020-04-20T09:38:54
173,073,373
21
8
null
null
null
null
UTF-8
Python
false
false
9,249
py
#--coding=utf-8-- # coding=utf8 import pandas as pd import numpy as np import matplotlib.pyplot as plt # for plotting from scipy.stats import mode import warnings # to ignore warnings from sklearn import preprocessing from sklearn.externals import joblib from sklearn.metrics import mean_squared_error #均方误差 from skle...
[ "yanhanwp@foxmail.com" ]
yanhanwp@foxmail.com
c47c906664dbd888a1d723d0837682c338029085
f5e2f10e3e9cdd7202d64fd2abb832e9a780ffd5
/sorting/quick_sort.py
1bbd427f08de015c15fc9f4faab40bdb95233d4b
[]
no_license
sarahbkim/cracking_python
9b51686c7383375a6c28f52b73d59ae801638965
42e059ea19be537cd2af467cdb8e4b777a47aa56
refs/heads/master
2016-09-05T18:47:43.812688
2015-05-08T04:08:46
2015-05-08T04:08:46
32,619,307
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
import unittest ### QUICK SORT # Divide & Conquer algorithm. Break down the array into sublists until you just get an arr with 1 elem, # which is always sorted. ## Time: O(n log(n)) average, O(n^2) worst # worst case scenario avoided with randomized Quick sort # an efficient sorting algo # in-place algorithm ## PSE...
[ "pnkdaegee@gmail.com" ]
pnkdaegee@gmail.com
d500ebaec39d2def778178f1c490ffd4688b3d30
afa9fcd0f2443515ba89e96ed4eb9416e9d11847
/python/GafferSceneTest/MapProjectionTest.py
010691447614b653bf9473ed94e0a97b3838810b
[ "BSD-3-Clause" ]
permissive
dneg/gaffer
6eb12b3ab3cde00afdf170c456969a38f5968237
e87cb50f55a048cd7f6d5dcdfe6f95e38db2c5b6
refs/heads/master
2021-01-16T18:13:33.456876
2013-09-24T17:23:58
2013-09-24T17:23:58
13,094,917
2
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
########################################################################## # # Copyright (c) 2013, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions...
[ "john@image-engine.com" ]
john@image-engine.com
a72ef8be86d1904289c47fdf6c7fd22e4c7355ea
b7620d0f1a90390224c8ab71774b9c906ab3e8e9
/aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20180510/DescribeDomainPvDataRequest.py
bd43d6bb5986591e22ae2292f903f6fe900c1dd0
[ "Apache-2.0" ]
permissive
YaoYinYing/aliyun-openapi-python-sdk
e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f
e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627
refs/heads/master
2022-10-17T16:39:04.515562
2022-10-10T15:18:34
2022-10-10T15:18:34
117,057,304
0
0
null
2018-01-11T06:03:02
2018-01-11T06:03:01
null
UTF-8
Python
false
false
1,994
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
c5b0ca7e31d2cb586122c3ad34788c01d36e6a10
8cec8e60bd3823626a6b7e749da4c49cb633eb68
/Analyzer/models.py
ab71cf62a7ab4f4afb2cffedf1bb3b60eeabdecd
[]
no_license
FaizanAkhtar0/Web-App-Senitment-Summarization-Analyzer
6cb039849cedaf32c33414a6d67d10261880c4de
a1e6d4dc43f2cbc469477831ee89542c75db4e21
refs/heads/master
2023-06-07T11:26:50.309662
2021-07-06T10:25:32
2021-07-06T10:25:32
383,429,279
1
0
null
null
null
null
UTF-8
Python
false
false
300
py
from django.db import models # Create your models_lib here. class SentimentModel(models.Model): text = models.TextField() def __str__(self): return self.text class SummarizationModel(models.Model): text = models.TextField() def __str__(self): return self.text
[ "alex.davidson0987123@gmail.com" ]
alex.davidson0987123@gmail.com
a16594e568cf009eb007c8eb4537713534cfc437
cd555116aaa959def0ce4fd286af6a1819f610f6
/tests/security/test_sanity.py
4e2db286cdb529cba889df1bc1da1ec284b1a0ee
[ "MIT", "LicenseRef-scancode-protobuf", "BSD-3-Clause-Clear" ]
permissive
mmichal10/standalone-linux-io-tracer
741f3ac23ce6ab43b4f37c75dd3ab06e3793f10b
5c15b8d3e43845a96fcf8f325c52cb41acb36739
refs/heads/master
2021-01-07T23:22:25.350400
2020-02-19T13:06:09
2020-02-19T13:06:09
241,849,378
0
0
BSD-3-Clause-Clear
2020-02-20T09:56:54
2020-02-20T09:56:53
null
UTF-8
Python
false
false
2,161
py
# # Copyright(c) 2019 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import pytest from core.test_run import TestRun from iotrace import IotracePlugin from utils.installer import insert_module def test_help(): TestRun.LOGGER.info("Testing cli help") output = TestRun.executor.run('iotrace -...
[ "mariusz.barczak@intel.com" ]
mariusz.barczak@intel.com
1472ac32737236cd11833e6481a3ca467567341f
dce9fd80ad1e35e3fc9fd20d54da03d6a91be11e
/main.py
58d79589270934c156b296673f48b3573a7611ec
[]
no_license
perxpective/Number-Systems-Converter
ef4f00f8e22436f9963038ca57cfca81399c6567
00d72be3468a2621ba8861e9c0da5529842914c2
refs/heads/master
2022-11-14T01:05:09.475320
2020-07-12T09:05:11
2020-07-12T09:05:11
264,118,577
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
import binascii output = '' print('[1] convert to binary') print('[2] covnert to hexadecimals') print('[3] convert to octodecimals') print('[4] decode to hexadecimal to text') option = input('select option: ') while not (option == '1' or option == '2' or option == '3' or option == '4'): print('invalid input') ...
[ "noreply@github.com" ]
perxpective.noreply@github.com
6c3bba898e8333956b874fecb0fdc452a4f7fd87
c7d86fee5322ca7f2c57fff79798c82385d86769
/jisc_django_test/settings.py
375aea2b7fa17d555874cf3e286ff929475d4fc8
[]
no_license
scheung38/jisc_django_test
493d146b80defc9c3eea88e607cb783da3433940
408793ae1495ce4e6a4b57c91d32605039f68419
refs/heads/master
2021-04-12T11:01:41.770406
2017-06-16T17:35:10
2017-06-16T17:35:10
94,537,159
0
0
null
null
null
null
UTF-8
Python
false
false
3,499
py
""" Django settings for jisc_django_test project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ ...
[ "sebastian_cheung@yahoo.com" ]
sebastian_cheung@yahoo.com
21fb22dd59287a6c7319cdac2b7cc612d60154c8
c6f493d0955803d58dc41f0a4b12847f1ce83712
/py_journal_fielded_retrieval/trecEvalTuneBoost_Navigational.py
24fd301d6bbcf3eaa4e901d66471f4ef0d3b7c02
[]
no_license
ielab/field-based-retrieval
7b94c0feb5cd0de25087cb7bb94c055b286257db
dd54785473af6fc70fd2242c4fc64323bcb1e8c2
refs/heads/master
2020-11-28T02:24:09.515215
2019-12-23T05:00:53
2019-12-23T05:00:53
229,679,505
0
0
null
null
null
null
UTF-8
Python
false
false
2,674
py
# This script do trec eval with minimum threshold of 4 to measure Reciprocal Rank for WEB 2013-2014 import commands, os import glob import multiprocessing import argparse parser = argparse.ArgumentParser() parser.add_argument("-d", "--dataset", help="WEB2013-2014", ...
[ "g.zuccon@uq.edu.au" ]
g.zuccon@uq.edu.au
d26bcb089045d4c612eaf552518266598fa78686
a929c07c2252028fc054bd8de957286a76b89e03
/src/android/src/vo_restarter.py
b3290f37c7c857fca0ffb1718442dea36d61c6c5
[ "BSD-3-Clause" ]
permissive
Mars-Rover-Manipal/catkin_ws
77e313c20162833331e23c82c93a15a002a204ff
9858d19ee1457e94952717798c5b927e0b0570cf
refs/heads/master
2022-04-16T06:56:02.781109
2020-03-05T09:08:32
2020-03-05T09:08:32
263,706,258
1
0
BSD-3-Clause
2020-05-13T18:02:58
2020-05-13T18:02:57
null
UTF-8
Python
false
false
1,245
py
#!/usr/bin/env python import rospy from sensor_msgs.msg import Imu from nav_msgs.msg import Odometry from rtabmap_ros.srv import * import tf rospy.init_node('vo_restarter.py', anonymous=True) last_odom = Odometry() last_imu = Imu() def reset_odom_to(p, o): rospy.logdebug('Restarting Odometry') rospy.wait_fo...
[ "abhirajtiwari@gmail.com" ]
abhirajtiwari@gmail.com
5ffbe59f9c81e547faa22ba27b316ef2516f1251
439671db0b34da214f225f78ca331cabd24cad79
/SubmissionScripts/catCRISPRKOFastq_2.py
9b705756f29ffef335338b1e83bf5a2c99c4bd8a
[]
no_license
arjunrajlaboratory/TEanalysis
18c42726b75c5f8a273e606b5383eaf40485e46e
1ba383bb481841baa009fcb15ed39c26c1f062f3
refs/heads/master
2022-09-01T07:13:30.845976
2020-05-26T20:52:53
2020-05-26T20:52:53
267,149,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
#Concatanate fastq files for each sample across multiple lanes. #Written for et_CRISPR-RNAseq KO data on PMACS import os, shutil from argparse import ArgumentParser import glob import regex as re #Command line parser parser = ArgumentParser() parser.add_argument("-i", "--inDirs", help = "Specify the input directori...
[ "benjamin.emert@gmail.com" ]
benjamin.emert@gmail.com
73906b24af6a13dc6c87fc68d7894a007084672d
5cad50399a3bd3634029f03684a3f44e94543aaf
/baekjoon/1781.py
7ef741edefb69b2b054a0666631cad84077af1bb
[]
no_license
didrlgus/algorithm-python
021676a09204e9bff70ab4a21ddfa020e809028b
f39707d308ad4b055f515f995fa904ec71185193
refs/heads/master
2023-06-27T15:03:54.840375
2021-07-31T06:52:37
2021-07-31T06:52:37
359,126,077
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
# 컵라면 import heapq n = int(input()) arr = [] q = [] for _ in range(n): a, b = map(int, input().split()) arr.append((a,b)) arr.sort() for el in arr: dead_line = el[0] heapq.heappush(q, el[1]) if len(q) > dead_line: heapq.heappop(q) print(sum(q))
[ "rlgusdid@naver.com" ]
rlgusdid@naver.com
1d3c99b61385bfd04ca91eb103455f99a6d2cc49
b59c3e55d51278640987b1f43073333a082d8ebf
/src/SimplePlotreplication.py
38144d26d21ba9092a13311ad336460ffe0a5348
[]
no_license
rluteijn/SmartGridDiffusion
acab499db0d3fdfce8722be1086ca4f75c409bf5
1b780c77cb36d5d43942a10bd44891b5fca31f28
refs/heads/master
2020-12-26T03:12:22.876657
2014-07-25T14:15:40
2014-07-25T14:15:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,663
py
''' Created on 6 mrt. 2013 @author: Andris ''' '''===========================Plotting lines, KDE, envelopes====================================''' #from analysis import graphs import numpy as np import matplotlib.pyplot as plt from expWorkbench import ema_logging, load_results from analysis.plotting import lines, KDE...
[ "titan946@gmail.com" ]
titan946@gmail.com
efbd0a5281d884e72317ff76eef6217a7b1c635a
611b36b4f65de03874daa7c13a0c8260d4c76264
/backend/src/auth/auth.py
0191a3eb28c7b743ce85a86b3972f91da8be926f
[]
no_license
BassamMusaad/Coffee-shop
877a17d43fe899f8a70647b10dd60b726bb3c958
a2f449ac99b8b23e1bcde08a3783247c77b749ff
refs/heads/master
2023-01-12T07:06:01.241238
2020-11-15T23:10:35
2020-11-15T23:10:35
313,141,734
0
0
null
null
null
null
UTF-8
Python
false
false
5,772
py
import json from flask import request, _request_ctx_stack,abort from functools import wraps from jose import jwt from urllib.request import urlopen AUTH0_DOMAIN = 'coffee-udacity-api.us.auth0.com' ALGORITHMS = ['RS256'] API_AUDIENCE = 'coffee-api' # AuthError Exception ''' AuthError Exception A standardized way to c...
[ "basam3818@gmail.com" ]
basam3818@gmail.com
695febf5554fa63e89c3488835a6ebfee28fb4d5
db4bf1696a2f5624618ccb6936718d470b48c5db
/sortList.py
45f944719edb1ab0e54a17d820432b1d8311650a
[]
no_license
HuipengXu/leetcode
2a1657aad8d00452bc4e858d76d45db0146d3fbe
e2fecd266bfced6208694b19a2d81182b13dacd6
refs/heads/master
2022-01-24T11:59:55.315146
2019-07-21T04:12:30
2019-07-21T04:12:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,252
py
# @Time : 2019/4/9 8:44 # @Author : Xu Huipeng # @Blog : https://brycexxx.github.io/ import random # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def sortList0(self, head): """ ...
[ "2531094755@qq.com" ]
2531094755@qq.com
b8125a355008b28b7e64b95b94403ed2f4f096bb
9557a8a2e402b2576bbd0fee1a7f7241ec62d66e
/ttxs/apps/tt_cart/views.py
5dd145c9d231020a65b92f93aaec0d0023bfa0ff
[]
no_license
Edmond-Qi/dailyfresh
69011fb3711a28b733cc1ab10352cd4631fc53cf
15e92fdce40d44543932ed997a01a9d165cb2bda
refs/heads/master
2021-04-15T15:23:21.010829
2018-04-07T15:49:28
2018-04-07T15:49:28
126,330,982
0
0
null
null
null
null
UTF-8
Python
false
false
5,684
py
import json from django.shortcuts import render from django.http import JsonResponse,Http404 from redis import client from tt_goods.models import GoodsSKU from django_redis import get_redis_connection # Create your views here. def add(request): ''' 添加到购物车 党进行数据的添加、修改、删除时,一般采用的post方式 ''' if request...
[ "baofengqi@foxmail.com" ]
baofengqi@foxmail.com
e0926c7d612dd71cdb9cb6b25e9445d574869477
4e6f299f24fe861fea162ec7da911e2ec734dadf
/build/lib/colourgan/networks.py
6c09ac9aff2381b63b0119abf92e5bbf4ecb8681
[ "MIT" ]
permissive
narenderkumarnain/ColourGAN
e4890df979e21a141e57f6746ad9b63019f07810
846622dfe037de0782613278241256ac7c784af4
refs/heads/master
2023-06-27T04:02:57.115816
2021-07-25T13:18:38
2021-07-25T13:18:38
380,448,770
0
0
null
null
null
null
UTF-8
Python
false
false
11,370
py
'''Generator and Discriminator for GAN.''' import torch import torch.nn.functional as F import torch.nn as nn #Generator for the GAN class Generator(nn.Module): '''Generator Module for GAN.''' def __init__(self , normalization = None): super(Generator , self).__init__() # downsampling layers ...
[ "narender.nain@siemens.com" ]
narender.nain@siemens.com
1cc3ca676af44460a5e873263e4e289b22d460e9
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/es2017/IsWordChar.spec
3368377b8c1ab894dee23121519bfc6541f17fed
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
277
spec
1. If _e_ is -1 or _e_ is _InputLength_, return *false*. 1. Let _c_ be the character _Input_[_e_]. 1. Let _wordChars_ be the result of ! WordCharacters(). 1. If _c_ is in _wordChars_, return *true*. 1. Return *false*.
[ "h2oche22@gmail.com" ]
h2oche22@gmail.com
aefa00c38430a003627bd4400aa0e86e606c81ba
46823239ca0a88ecabb7418a35f0e4a89097d82a
/hadcoin_node_5003.py
de830a99c6bd586145c770f1243b8325c42056f5
[]
no_license
dsouzaAnush/Blockchain
c3c55418d0902b0f1e8717d3dd305b4d8f485f3a
dd2a8eaf07c9e8db98993e06131e76a08361c3f6
refs/heads/master
2020-03-27T01:25:46.330857
2018-08-26T17:39:44
2018-08-26T17:39:44
145,709,672
0
0
null
null
null
null
UTF-8
Python
false
false
6,229
py
# -*- coding: utf-8 -*- #Creates a cryptocurrency import datetime import hashlib import json from flask import Flask, jsonify, request import requests from uuid import uuid4 from urllib.parse import urlparse # Part 1 : build a blockchain class Blockchain: def __init__(self): self.chain = [] se...
[ "anush.dsouza@sprinklr.com" ]
anush.dsouza@sprinklr.com
8bc6202d3e4885c8c06b67a814828638cd8cc8e3
a7f49524e041c7e8d3ca5d732f90f06851e5b348
/src/beginner_tutorials/scripts/test_teleop.py
3b5a95e5651c08f5836c973725e1897746cf8875
[]
no_license
dannyel2511/project-shark
fa03fa7a73416558be67e1ab07e8bb5f36711c91
8f55c74bfb486305bd9aa48aeeb410df918dbdef
refs/heads/master
2020-04-06T21:14:55.385511
2018-11-27T23:55:26
2018-11-27T23:55:26
157,797,561
0
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
#!/usr/bin/env python import roslib; roslib.load_manifest('teleop_twist_keyboard') import rospy from std_msgs.msg import UInt16 import sys, select, termios, tty msg = "Write W A S D" def getKey(): tty.setraw(sys.stdin.fileno()) select.select([sys.stdin], [], [], 0) key = sys.stdin.read(1) termios.tcset...
[ "dany_2511@live.com" ]
dany_2511@live.com
21988568418b2069479c3265e9083ef3501f7e67
7296c60573cdb2688fbb9e721ff4399d6465d7a2
/tests.py
b90dcd2ebbc4e87b59d0c8c8557f174156806237
[]
no_license
aclark4life/other
bc1562c451a9537743029c079478c22b1f514e18
dfdc253d43f28b2f7d6147c86ef69a6a08e60b48
refs/heads/master
2021-01-22T09:05:21.681038
2012-12-12T01:21:01
2012-12-12T01:21:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
from other import IUgly from other import UglyDude from unittest import TestCase from unittest import main from zope.interface import implements from zope.interface.verify import verifyObject class TestSuite(TestCase): # Not really a test suite """ """ def test_ugly(self): """ Verify obj...
[ "aclark@aclark.net" ]
aclark@aclark.net
a4375d25f59135cf9bd9c32c9bc56a270276239e
7966d7b17a967be4d7ae856074edb29ea42e2d03
/23_memoize/decorator.py
9bd2ea691a1d2a319c0068649d7a936ccd32fe09
[]
no_license
th0mazzz/SoftDev2
8642e4c32537842396b996890c6920df00d39276
67151019609229b0d3465456f37b007ae7b7d8ed
refs/heads/master
2020-04-19T13:04:04.739708
2019-05-03T04:52:52
2019-05-03T04:52:52
168,208,530
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
import random def make_HTML_heading(f): txt = f() def inner(): return '<h1>' + txt + '</h1>' return inner @make_HTML_heading def greet(): greetings = ['Hello', 'Welcome', 'AYO!', 'Hola', 'Bonjour', 'Word up'] return random.choice(greetings) obj = make_HTML_heading(greet) print(obj())
[ "tzhao2@stuy.edu" ]
tzhao2@stuy.edu
4e56868658dfc090de8a68bf44d6e20032def345
dba0f66eef2f173b8cc148d0c51fc338c7c9a70e
/leo/plugins/script_io_to_body.py
64a5971a900769082df1bc46a913b20e70bdfbab
[ "BSD-3-Clause", "MIT" ]
permissive
iggu/leo-editor
6adcbf1c7727f00115a62ffb68d31c22624e4404
a8cade8563afdc6b76638e152b91679209a5bf94
refs/heads/master
2022-03-16T05:44:42.864262
2022-02-25T13:30:51
2022-02-25T13:30:51
232,984,997
0
0
NOASSERTION
2021-05-05T03:32:44
2020-01-10T06:53:10
null
UTF-8
Python
false
false
2,699
py
#@+leo-ver=5-thin #@+node:edream.110203113231.925: * @file ../plugins/script_io_to_body.py """Sends output from the Execute Script command to the end of the body pane.""" #@+<< imports >> #@+node:ekr.20050101090207.4: ** << imports >> from leo.core import leoGlobals as g #@-<< imports >> #@+others #@+node:ekr.2007102...
[ "edreamleo@gmail.com" ]
edreamleo@gmail.com
1e1ca32949ab7f4b87a9a82ade3d753ba1625207
a9a16c414d7370b2ca6442b8125d6b6f9b3d6556
/chapter_15_Practice_Makes_Perfect/01_Practice_Practice_Practice.py
51daa0041f8b8946ca854b78b7e006dfbdbbfe50
[]
no_license
dennisnderitu254/CodeCademy-Py
99f1cb9fa011f1586d543650c5001de17f04b8b2
758067dc53fdb442ab18dd922dacd13cc8846ebb
refs/heads/master
2021-07-12T10:01:58.854222
2017-10-12T20:03:56
2017-10-12T20:03:56
106,739,488
1
0
null
null
null
null
UTF-8
Python
false
false
38
py
# there is nothing in this lesson pass
[ "dknderitu@gmail.com" ]
dknderitu@gmail.com
e2d4ce3fa0ff8f54f16b22a66acca5b6fb6a0aad
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_099/ch11_2019_08_26_20_10_39_808921.py
28eb0e6b405098155853694d66fc3e46e0555cbf
[]
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
55
py
def celsius_para_farenheit(tempc): return tempc*9/5+32
[ "you@example.com" ]
you@example.com
e6b7c319cddbd8047260e2cb7481707eba515cc9
7c09c2b417d6ac454d98974019a21c08c8762704
/myapp/settings.py
4b21640a0ca76bbc7ebbd069255ea3d10d08f8a1
[]
no_license
ehtiramabdullayev/myapp
03035323b3e13be3d524cafd65c3dd71db3731d8
d9b62c4babfa1acf407f0274e176f6397c0036bf
refs/heads/master
2021-01-23T07:59:53.683055
2014-05-25T08:42:31
2014-05-25T08:42:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,251
py
""" Django settings for myapp project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impo...
[ "ehtiramabdullayev@gmail.com" ]
ehtiramabdullayev@gmail.com
7510fbbd9c98a4b31410110aa00229ec8cd6e13a
61eaf0d21be4c76e16191f610e4871f71ea23c3c
/min and max temps during 3-31.py
d545bf826f26dd79b2ae45932c0738c26dd2a22f
[]
no_license
Dpinkney001/DATA-SCIENCE-ASSIGNMENTS
0f7c1e50a3fc65986edc9906e940c34715217b75
fb8d5c52e2733768ce1b927b3c54464d99c2a533
refs/heads/master
2021-03-22T00:22:20.594942
2017-09-25T08:19:12
2017-09-25T08:19:12
104,555,772
1
0
null
null
null
null
UTF-8
Python
false
false
2,222
py
# -*- coding: utf-8 -*- """ Created on Sat Feb 11 18:52:18 2017 @author: Duvall Pinkney """ import matplotlib.pyplot as plt import urllib import urllib.request import urllib.error import urllib.parse import re def getTempFromWeb(kind,url): page = urllib.request.urlopen(url) lines = page.rea...
[ "noreply@github.com" ]
Dpinkney001.noreply@github.com
d23d3fd69628c2b1a999c5681d113cbbc3b30a91
daa9e61b910462012060dd34be7305d6b0e4f5f4
/gen_Lorenz.py
edc8d10aa2e14972206f28ac558ffff39f2afa72
[]
no_license
lwyanne/Echo-State-Network
51bd130b2749e97580e07184d6dbddbcdefe4213
6193a78a4839e12f7231e9dbe621257f78714754
refs/heads/master
2020-03-29T08:18:35.998550
2018-10-11T05:14:44
2018-10-11T05:14:44
149,702,681
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
""" Generate a trajectory of the Lorenz system """ import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from function import * u=gen_Lorenz(len=10000) u=downsample(u) threeDplot(u,'Lorenz') plt.figure() plt.plot(u1) plt.plot(u3)
[ "921174623@qq.com" ]
921174623@qq.com
425bd3775fee51bd677d313e062215e408b513fc
79bc9a420df5c706b2ae06f4b75bf2bd2ba9646e
/emission/analysis/modelling/work_time.py
050691db89eaff2c5dc6e32a22810e75b94758ff
[ "BSD-3-Clause" ]
permissive
Andrew-Tan/e-mission-server
7022786a13b4be87be62cfc2cc6d82543d063e5d
91d59bee86e63d803e401f10f4b6a2502effedda
refs/heads/master
2021-01-16T18:25:17.860723
2017-11-21T19:24:40
2017-11-21T19:24:40
100,073,534
0
0
BSD-3-Clause
2018-05-05T18:26:36
2017-08-11T22:13:44
Jupyter Notebook
UTF-8
Python
false
false
4,066
py
__author__ = 'Yin' # Standard imports # Our imports import emission.core.get_database as edb import work_place as wp import emission.core.common as ec time_list = [[0,2],[2,4],[4,6],[6,8], [8,10], [10,12], [12,14], [14,16], [16,18], [18,20],[20,22],[22,24]] def get_work_start_time(user_id,day): # day should be fr...
[ "shankari@eecs.berkeley.edu" ]
shankari@eecs.berkeley.edu
7bd82afe2515d2d5a7a01681f53e2e8332cc0024
cc10b52870d3487b6a233fa6d63fcad45277e927
/env/bin/django-admin
17cfafa0c179f5ff7fad4ecdeff172c39379f971
[]
no_license
malikgr8/Udemy_ecommerce_Source_code
9533f6749715df8b3bc05ce955a7dcd78412a9b3
b3e963ae9eadb43aece0db18aecfc6b805770a46
refs/heads/main
2023-06-24T03:15:30.050748
2021-07-20T16:47:21
2021-07-20T16:47:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
#!/home/macaulay/just_practice/env/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "pythonfamous@gmail.com" ]
pythonfamous@gmail.com
586d7369371369435143676c7eede4bc2e9682a4
1a74d7a40749f5a233ab5a777056b62d8a83b2ce
/configs-sample.py
a254fa9dc989142dad408e55bfd3d465141c0949
[ "Apache-2.0" ]
permissive
gisairo/amnesia
451f16eb5e02105e5ce9b3ca00763ba43ae56056
79010bfee4b43ac6b25ff72fd536d8f180b42d0a
refs/heads/master
2020-12-25T21:13:05.984266
2016-08-12T15:36:16
2016-08-12T15:36:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
#!/usr/bin/env python twitter = { 'consumer_key': 'your_consumer_key', 'consumer_secret': 'your_consumer_secret', 'access_token': 'your_oauth_token', 'access_token_secret': 'your_oauth_token_secret', 'delete_after_days': 5 }
[ "jaisen@jmathai.com" ]
jaisen@jmathai.com
354fa49447d55ca60b2e75090802d8a05cb93653
87ba60025d6385fbae2ba693c2758c819dd86bd7
/polls/tests.py
9be58097a239949634812acf297f427fb35d2ebd
[]
no_license
jchen706/A-Django-Poll-Application
21f82159bd8d0a1b55e32af6f41fa95449959d62
13de7ed9bb8724490f344efc58c4033570427904
refs/heads/master
2020-03-26T02:30:42.642182
2018-08-11T22:45:29
2018-08-11T22:45:29
144,413,621
0
0
null
null
null
null
UTF-8
Python
false
false
3,794
py
from django.test import TestCase from django.urls import reverse # Create your tests here. import datetime from django.test import TestCase from django.utils import timezone from .models import Question class QuestionModelTests(TestCase): def test_was_published_recently_with_future_question(self): tim...
[ "junchen1511@gmail.com" ]
junchen1511@gmail.com
f19c008e9dd2ca531140d9ec1fae17d55ccbf46e
1542f28c6c25b1d089961ad5662fb239e2be10f1
/app.py
b2404506ef34cfe5128864ca045e9b0f3b354d44
[]
no_license
NHigs58/sqlalchemy-challenge
a61aa3ed2697329bf21c24c68ad2f945aaec91ad
3e3c5c5061761bb09b34710ea15d68f3613f4286
refs/heads/master
2021-02-06T06:06:47.391000
2020-03-01T04:04:14
2020-03-01T04:04:14
243,885,365
0
0
null
null
null
null
UTF-8
Python
false
false
4,271
py
# import dependencies import datetime as dt import numpy as np import pandas as pd import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify # initializes database engine = create_engine("sqlite://...
[ "natehigs@me.com" ]
natehigs@me.com
d7001dd38592a49dbda5f7ff0c6563451fa76648
b4bf2538e4c6c1a4ae0e13ef29bc886109f155ef
/Networking/rep.py
b912c58c064396321e5ba453f9be5559feffdf8c
[]
no_license
Mobytoss/Harpy
4a2837521657b3e745f724df7f7ead836e52d51e
b42a93a35c84c879d79a58c01bd18090f225cc28
refs/heads/master
2020-05-16T21:48:42.347083
2013-10-15T13:42:12
2013-10-15T13:42:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object host = socket.gethostname() port = 1234 s.connect((host, port)) input = "" while input != "/exit": input = raw_input("> ") s.send(input) s.close()
[ "toby.moss@me.com" ]
toby.moss@me.com
e3925282d93077c51e6c35e61ba91226ed6be45b
6a95bda883586fb739c657bb3c320d4bd3c0aff4
/svm.py
58295d0bddcbe171fce83eaf6ecf5c27c3d5d91f
[]
no_license
harpreetheer/group-I
515d62ab59ad09b9178f56cc482b939b6d363803
b660707fc66cb39319c0d04aca0bae0ed242cf84
refs/heads/master
2020-06-10T19:09:40.881974
2019-08-02T15:54:33
2019-08-02T15:54:33
193,716,543
0
0
null
null
null
null
UTF-8
Python
false
false
8,491
py
from sklearn import svm #import utils import random import numpy as np from scipy.sparse import lil_matrix from sklearn.feature_extraction.text import TfidfTransformer import sys import pickle import random def file_to_wordset(filename): ''' Converts a file with a word per line to a Python set ''' words = [] ...
[ "noreply@github.com" ]
harpreetheer.noreply@github.com
80f09c5b9d22476348d3c1492fe361283951adc8
b66035d6216f5e33fdeca2edb74daabe6d8a9ca0
/One-Hot Encoding.py
ff53c359543e01a0963246d0ba33f0d310a09379
[]
no_license
mengqqq/pandas-playground
96a5dec71321b0f21aca6327864c8da6efa86e07
81bff69d5eaa83c5efdb2388d9f0c83aa9a43226
refs/heads/master
2021-01-12T06:25:22.387308
2019-02-01T05:46:52
2019-02-01T05:46:52
77,357,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
#In this exercise we'll load the titanic data(from Project 0) #And then perform one-hot encoding on the feature names import numpy as np import pandas as pd #load the dataset X=pd.read_csv('titanic_data.csv') #Limit to categorical data X=X.select_dtypes(include=[object]) from sklearn.preprocessing import LabelEncode...
[ "noreply@github.com" ]
mengqqq.noreply@github.com
bdac5edf7f3db0fe435d7b0ab6901a9fc6b4d318
23d4c1deda861ab6b4c1993df7777c34701ad53b
/OperacionesEsenciales.py
6ed9ce908a6ecbdeedd55d72d8d335ab36b22d6e
[]
no_license
JaviMiot/EstructuraDatosLinealesPy
2256fc3cb3a1a66e4f227d43665843b591bbb06e
7186ef7fa9dbe05aefc1366e3e389733565f38fc
refs/heads/master
2023-07-21T00:48:44.571028
2021-08-16T13:44:35
2021-08-16T13:44:35
396,812,046
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
fruits = [] fruits.append('kiwi') fruits.append('Melon') fruits.append('Berry') fruits.sort() def pyramid_sum(lower, upper, margin=0): blanks = ' '*margin print(blanks, lower, upper) if lower > upper: print(blanks, 0) return 0 else: result = lower + pyramid_sum(lower+1, uppe...
[ "51manobandajavier@gmail.com" ]
51manobandajavier@gmail.com
f74fc4a2ebfb0443c20ad7abd7a4ab66bf9333b6
f344893ad54833825e96f5b944658ff7549fa22b
/demo/urls.py
5d0e462c636b3da392f7ed28375faec4ec52560e
[]
no_license
snow/stargazer
f9a95f633d94b63e52baca4e2364dfbfce8a6067
574228cc79377c3ecf31eb1e15b5366a72484538
refs/heads/master
2021-01-19T06:35:36.772041
2011-12-24T08:31:54
2011-12-24T08:31:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
from django.conf.urls.defaults import patterns, include, url from django.contrib.auth.decorators import login_required from demo.views import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^$', IndexView.as_view()),...
[ "snow.hellsing@gmail.com" ]
snow.hellsing@gmail.com
fac2d298e02bcc8ef50d8d0b6951a4819ac85271
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/other/第5回_ドワンゴからの挑戦状/c.py
fb79bc6efefb9431f198b277bfb46c18636d9ead
[]
no_license
y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
N = int(input()) S = input() _ = input() K = list(map(int, input().split())) def sol(k): ret = 0 right = 0 c = 0 m = 0 mc = 0 nx = 0 for left, s in enumerate(S): while right < N and right - left < k: if S[right] == 'M': nx += 1 elif S[right] ...
[ "y.oksaku@stu.kanazawa-u.ac.jp" ]
y.oksaku@stu.kanazawa-u.ac.jp
2040c5809e80b3fab02ac186ac01165dc0f87e90
01d6b909e91b6472ec03833196723988602845ad
/Project7/lolcode_lexer.py
a974cecf0864628046bed0ee39d14e73644c3d4a
[]
no_license
Slapppy109/CSE450
c93c881c990d993485f2a3675f21170402d89bd0
d3b13d37aada8bdcd748d3a0998df2821638cc4f
refs/heads/main
2023-02-05T05:14:33.999649
2020-12-25T19:17:09
2020-12-25T19:17:09
324,418,100
0
0
null
null
null
null
UTF-8
Python
false
false
3,534
py
import re from . rply import LexerGenerator from . ast_nodes import PrimitiveType def get_tokens_and_types(input_): lg = LexerGenerator() keywords = set() id_to_type = {} # Comments lg.ignore(r'OBTW.*?TLDR', flags=re.DOTALL) lg.ignore(r'BTW.*') # Whitespace lg.add('NEWLINE', r'\r|\n|(...
[ "noreply@github.com" ]
Slapppy109.noreply@github.com
6a37cbe91e17feb62b020198a8684987f1b61f1b
0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b
/solved/2460.py
e43dcbf5be4ab48cd6e0851f802d45d406b792b7
[]
no_license
developyoun/AlgorithmSolve
8c7479082528f67be9de33f0a337ac6cc3bfc093
5926924c7c44ffab2eb8fd43290dc6aa029f818d
refs/heads/master
2023-03-28T12:02:37.260233
2021-03-24T05:05:48
2021-03-24T05:05:48
323,359,039
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
res, ans = 0, 0 for _ in range(10): a, b = map(int, input().split()) res += b-a ans = max(res, ans) print(ans)
[ "pyoun820@naver.com" ]
pyoun820@naver.com
851484b4d81515383127776083647ed6be8ec8ff
9aa3bd9ee15623a3922159d00bc4918c0a586c1a
/week5/game/run.py
422a91aea0e5e6876d51838ee88999b25635958e
[]
no_license
q1144/spp-code-samples
b950443e53c36588ab65acc24eb36eb2ffa8fbf1
8d16ebf41e277f9f189c32c877a9c4186dcfa341
refs/heads/master
2021-08-19T10:46:28.717692
2017-11-26T00:00:40
2017-11-26T00:00:40
109,323,606
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
from g_classes import * from util_classes import SupTools # --- define ntry point function def run_game(): print('-------------------------------Welcome to the game!---------------------------\n') # set amount of troops total_army_qnt = SupTools.set_army_qnt() user_army = Army(Recru...
[ "kachur.oleg@gmail.com" ]
kachur.oleg@gmail.com
e2d0468b0ddd2654f659ef22a7b2ab17c7fafc3b
7f6348437a68aef1035824e3c2ac7476e81cf5f0
/Hashing/colorful-number.py
77a200c426fb273da6bdf6346026e6235a772ca8
[]
no_license
wilfredarin/Interviewbit
eff18ce504a2178dbed0441f9b43df51f0a34dd1
a13de501db6e0af9d58936ffa9abdd9eebc7578d
refs/heads/master
2023-01-27T15:36:11.726563
2020-12-10T15:09:14
2020-12-10T15:09:14
233,567,842
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
class Solution: # @param A : integer # @return an integer def colorful(self, A): s = str(A) n = len(s) s = list(s) p = {} i = 1 while i<=n: j=0 while j+i<=n: o = s[j:j+i] u =1 for q in o: ...
[ "noreply@github.com" ]
wilfredarin.noreply@github.com
52d3b39e32c041bd114d23cd7daf9be2ebc5e514
87ad88c4150b1770e2de793557db394c5ae087cb
/for_num_game.py
ed6d6c80ab84cd34080f04b1a2db396e0eca9a90
[]
no_license
pratiksan45/Python3.7
bfedad3723cee82bdd3512f1c11456a6a5f1a925
aa8943e81e68a3cf699423286856c37cf194f120
refs/heads/master
2022-09-09T14:15:12.723017
2020-05-25T15:37:55
2020-05-25T15:37:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
import random win_num=random.randint(1,100) for i in range(1,100): guess=int(input("Specify your number \n ")) print("Analyzing your number..... ") if guess<win_num: print("Too Low ! ") elif guess>win_num: print("Too High ! ") else: print("CONGRATULATIONS ! Youre ...
[ "noreply@github.com" ]
pratiksan45.noreply@github.com
5ab5a8fe6272a579cf1e84de9beb0052b0a43dc7
799cfbd2c6426ffa7ab5f188bd647d572051914c
/rotateArray.py
34740139c6098cff232ae9e81e54d877becf66dd
[]
no_license
van950105/leetcode
af8d2ded307afbfbf67df604a69406f9ab5ef1b0
7b6cbab37e13ff1d764b852bc1794ecbfd4feefe
refs/heads/master
2016-09-03T06:22:43.451203
2015-11-12T18:49:38
2015-11-12T18:49:38
25,235,439
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
class Solution(object): def rotate(self, nums, k): """ :type nums: List[int] :type k: int :rtype: void Do not return anything, modify nums in-place instead. """ length=len(nums) self.reverse(nums,0,length-k) self.reverse(nums,length-k,length) s...
[ "ryan.gm.nb@gmail.com" ]
ryan.gm.nb@gmail.com
6300bdfd2672ce3ad803ad57825f41def48e8f2c
6c26a9bd075d3d54a307d7c1e5a0bc67b50df8c2
/python_intermediate/python5/02_intro.py
2d9b7d1a158e4176847e1b7ea1b41917c95d97fa
[]
no_license
marialobillo/dataquest
86efc49c0339c07e6263d428b5ecd2f80d395ecb
49e8b653adf23a12fb9eb6a972d85bc1797dba0a
refs/heads/master
2021-08-28T08:01:36.301087
2017-12-11T16:02:18
2017-12-11T16:02:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
import csv f = open('nfl_suspensions_data.csv', 'r') nfl_suspensions = [] nfl_suspensions = list(csv.reader(f))[1:] years = {} for row in nfl_suspensions: row_year = row[5] if row_year in years: years[row_year] += 1 else: years[row_year] = 1 print(years)
[ "maria.lobillo.santos@gmail.com" ]
maria.lobillo.santos@gmail.com
5d9af04328cd22f5d1be08484844dc384096efb8
46a1cfb9b737ea686d14ef3f903ffc66ad014a74
/Menu.py
e87f515e4202b8f3fa5a8c8ed7741b9ae10ec1c1
[]
no_license
kronmess/FinalProjectSem1
f66b88821acb1941e5d0462a078b6975c99c0463
74afee13d373a4d2058d5cf0e4482274831630ef
refs/heads/master
2020-12-09T18:33:22.426614
2020-01-17T13:57:35
2020-01-17T13:57:35
233,384,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
import pygame from Target import red from Target import white from Target import win #function used to draw in text def draw_text(message,color,x,y,font_size): Font = pygame.font.Font('press_start.ttf',font_size) text = Font.render(message, True, color) win.blit(text,[x,y]) #function used to draw rectangl...
[ "vincentiusgabriel@yahoo.com" ]
vincentiusgabriel@yahoo.com
f97a05fdd85f6b87c08c40f8b49371468b042c20
4323ef02073a8e3c9e6aceba738aef5fc72c3aa6
/RedesSociais/facebook_get_my_posts.py
5f2d06a1b1ec0aec89c7dfee3fd80bbb7cd69f32
[ "MIT" ]
permissive
fotavio16/PycharmProjects
e1e57816b5a0dbda7d7921ac024a71c712adac78
f5be49db941de69159ec543e8a6dde61f9f94d86
refs/heads/master
2022-10-19T15:45:52.773005
2020-06-14T02:23:02
2020-06-14T02:23:02
258,865,834
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
import json import facebook import requests if __name__ == '__main__': token = "EAACEdEose0cBALLqHaIO4x1lD679BDZBGt1z2xtgp6UGHaW9WfJJ7osn6G8PQWHz1pJKxUqZBXZAsQSC8O1fCaGHs0yY8IIbvP7m6H7MMN8PZCZCdZCheOU9MJhBvREi42LCo2YRHcfoQQlZCNkBDc8Rc2dHRBRqw4F0MxjbmbYNh9qn2SsC44bg0x8wbTCnGgZD" graph = facebook.GraphAPI(token...
[ "fotaviofonseca@gmail.com" ]
fotaviofonseca@gmail.com
ff6ca8ca0c7b050f0d9b9dea92e61196b514d894
f9c318fcc249c9915df345ecc7bf4c14ff1dda36
/toontown/leveleditor/VisGroupsEditor.py
d0e4b319f10132cf428974e6b002d05bed7b3949
[]
no_license
Benjamin8693/TTOpenLevelEditor
b72173bbe1f888d1f30af03714275a71b34cc335
037c6aead9de24b5291b998ed7d3e88e7d264687
refs/heads/master
2023-01-22T09:18:34.520541
2020-12-04T19:06:02
2020-12-04T19:06:02
300,377,917
0
0
null
null
null
null
UTF-8
Python
false
false
7,946
py
import Pmw import sys from direct.showbase.TkGlobal import * from direct.tkwidgets.Tree import * class VisGroupsEditor(Pmw.MegaToplevel): def __init__(self, levelEditor, visGroups = ['None'], parent = None, **kw): INITOPT = Pmw.INITOPT optiondefs = ( ('title', 'Visabil...
[ "nathanstgeorge7@gmail.com" ]
nathanstgeorge7@gmail.com
2e90571df71e3cdbc1cdd7a29ca3a6ea2c21a1d4
5187c411a1e2eff1233f6cfda11fdf4ef03a631d
/Genome_assembly/EulerianCycle.py
313f8ab043635a6325ac00e23a5cb50a3c0ee60c
[]
no_license
OXPHOS/Bioinfo_Alg
dad1cea2a535e92fdc0a2bf0f18e1fe6e0545776
042ced4bf000c92253582a1e96952891cda3f5d9
refs/heads/master
2021-01-10T16:00:38.510749
2016-02-09T03:43:36
2016-02-09T03:43:36
51,345,069
0
0
null
null
null
null
UTF-8
Python
false
false
3,731
py
''' Solve the Eularian path problem Input: The adjacency list of an Eulerian directed graph. Output: An Eulerian cycle in this graph. Randomly pick a point to start. If there're still unexplored edges where there's no available way at current node, we will select a node from the existed path, which stil...
[ "engelzora@gmail.com" ]
engelzora@gmail.com
0f18e5511f665676cbc15007b1d148014be778bf
d872437facb6242075ee3951044445b29726f7ba
/kennywoodapi/views/parkarea.py
7210d95ed6b8ff6524631d0b3622cc54b117ffd5
[]
no_license
bitomann/kennywood
31debe6e7cb139254f3055d645ef512f87983518
36ea56e5ecd2fb76564ef6d63b0b02feab7d9123
refs/heads/master
2023-08-15T09:37:10.552161
2020-05-29T18:01:39
2020-05-29T18:01:39
265,348,840
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
"""Park Areas for Kennywood Amusement Park""" from django.http import HttpResponseServerError from rest_framework.viewsets import ViewSet from rest_framework.response import Response from rest_framework import serializers from rest_framework import status from kennywoodapi.models import ParkArea, Attraction, Itinerary ...
[ "bito@bitomann.com" ]
bito@bitomann.com
547845e3f6dc9b2e66fcb031a7cda1cd2a574533
516c8f7454febc3e071cf979a8bbb22148736c3b
/testCalls/test_call3.py
ac6c87bf814ea6ef3f38636320b75b254110dfc4
[]
no_license
aymei2/EdisonProject
850f2a52ccced207893d872873cb07a64b6c88cb
0bd2dfced65c33b17b0d464bbb33953fd6823bb4
refs/heads/master
2023-07-06T13:31:47.796399
2021-08-14T23:55:15
2021-08-14T23:55:15
281,704,224
1
0
null
2021-08-14T23:55:16
2020-07-22T14:45:44
Python
UTF-8
Python
false
false
505
py
import requests import json from variables import * url = "https://api.tcgplayer.com/catalog/products/" headers = { 'accept': 'application/json', "Authorization": "bearer " + access_token, "includeSkus":"true" } payload = { 'limit': '100', "categoryId":"2", "productName":"Solemn Judgment", } response = reque...
[ "amei@MDEV701.mak.local" ]
amei@MDEV701.mak.local
509ecc5e938c56502addca688cbaf06a2aed2569
ae8c50137127eed98e9c879d6fec516d541a3a1c
/tests/ignite/contrib/engines/test_common.py
5520403c12c59b638fde9a09a59096c9a2fa2bfb
[ "BSD-3-Clause" ]
permissive
Bartolo1024/ignite
ab348620bae492589b6b80a9b57ea20668a6328f
b087fef0bc5f97cda415c1c56f1cd589383c54be
refs/heads/master
2022-12-04T14:54:42.284440
2020-06-05T21:49:39
2020-06-05T21:49:39
269,961,799
0
0
BSD-3-Clause
2020-06-06T11:34:25
2020-06-06T11:34:24
null
UTF-8
Python
false
false
17,626
py
import os from unittest.mock import MagicMock import pytest import torch import torch.nn as nn from torch.utils.data.distributed import DistributedSampler import ignite.contrib.handlers as handlers import ignite.distributed as idist from ignite.contrib.engines.common import ( _setup_logging, add_early_stoppin...
[ "noreply@github.com" ]
Bartolo1024.noreply@github.com
34f06475f2b005309de47f1a4dc9f063126748dc
d35fb547eb4d04be5ac06fd4e39bd11a6e7e2b39
/test_project/core/admin.py
8378e277899f8e598f8d2c40a63aee17b488b025
[ "MIT" ]
permissive
youzerssif/djangoql
c2adea5414e57757ba630f4e0ee6cf5e6f08bcae
29b9379e181318cea60a31b679b8601bd5bd9404
refs/heads/master
2021-04-01T15:22:11.554094
2020-03-15T21:33:34
2020-03-15T21:33:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,721
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User, Group from django.db.models import Q, Count from django.utils.timezone import now from djangoql.admin import DjangoQLSearchMixin from djangoql.schema import DjangoQLSchema, IntField from .mode...
[ "denis.stebunov@ivelum.com" ]
denis.stebunov@ivelum.com
359c9319e5e7f599aece5c1091a11430ff15a4b8
45304b35e2793d7892a14f9416c76cfdd922db94
/bot/plugins/minecraft.py
b55d8348194a5a5d843c5a7a4ab59d19d473cff9
[]
no_license
b1naryth1ef/b1nb0t
3f890d1ea5b863e6e708cb1599d0d81ff95b2bfb
10bab420ecf58b7aa918ee7060885503e2cad3e7
refs/heads/master
2021-01-20T00:20:58.104035
2019-06-24T15:26:50
2019-06-24T15:26:50
89,116,574
10
6
null
2017-07-14T00:08:25
2017-04-23T04:13:28
Python
UTF-8
Python
false
false
1,817
py
from mcipc.rcon import Client from disco.bot import Plugin, Config from disco.types.message import MessageEmbed JOIN_COLOR = 0x77dd77 LEAVE_COLOR = 0xff6961 class MinecraftPluginConfig(Config): ip = '' port = 0 password = '' channel_id = '' @Plugin.with_config(MinecraftPluginConfig) class Minecraf...
[ "b1naryth1ef@gmail.com" ]
b1naryth1ef@gmail.com
fc8f274d6751296228bfbc0464614b4792647541
a892e0b3036e940e4a6605567e8e1b00ebb22f59
/FALLOW/gui/uis/input_maps/MapInputUI.py
efefb6f639d3964c16046f996e460ed8044dae8d
[]
no_license
uttu90/NewFALLOW
9e03ddee089b288bd31497c5ff584635889eef69
ef7a32edae96bbc268c6db91ad548be980348198
refs/heads/master
2021-01-11T22:02:04.805243
2018-08-11T08:38:01
2018-08-11T08:38:01
78,899,955
1
0
null
null
null
null
UTF-8
Python
false
false
6,972
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MapInputUI.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWind...
[ "hondasuytu.ht@gmail.com" ]
hondasuytu.ht@gmail.com
6ecccae2ad918d71cfffe40ee69cf978ced6654a
fcf7f2cf2eae3dba6d6f931918da32a589b6bc95
/src/ipoci.py
a51964a68b8ac14158e9a41114b88748fe465a4f
[ "MIT" ]
permissive
HenriqueLuizz/inspetor-lestrade
4dcaed5bd36b1a3240c503f2a2502861aa70220c
eea85c29f1e0f5da4414c1d0cfe222b87015a398
refs/heads/master
2021-01-01T09:43:22.526286
2020-05-23T07:32:17
2020-05-23T07:32:17
239,224,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
import json import subprocess import common def resultOCI(d): if d['status']: o = json.loads(d['result']) if 'data' in o: name = o['data']['display-name'] lifecycle = o['data']['lifecycle-state'] print(f'{name} - {lifecycle}') return True ...
[ "hl.silva89@gmail.com" ]
hl.silva89@gmail.com
6322e51e9bb420079d6de9499a7eae3794cabbad
cadd471f2e36725008617a7451166c94723dcd31
/Basic/d881.py
eb5acd58236a08fa98ad2d380c7badad2f9aceb5
[]
no_license
vectominist/ZJ-Solutions-in-Python
21b77b543a4c6d48d1d5b817b5421ec30e15192c
8b5bbf2a7a0a681c7433b16aa7c6161cae93c644
refs/heads/master
2020-04-14T02:14:21.935167
2019-11-06T06:39:08
2019-11-06T06:39:08
163,578,899
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
import sys for s in sys.stdin: num = s.split() d = int(num[0]) a = [1] b = [1] ans = 1 for i in range(1, 50): a.append(a[-1] + b[-1]) b.append(b[-1] + d) ans += a[-1] print(ans)
[ "noreply@github.com" ]
vectominist.noreply@github.com
b7a04e8a27c7603e98a032463d2e5828169e75c8
8e298335fcd9644b1754daf3682b446bf9351a07
/minhaApi/manage.py
521739097ff924d16cbd504eebe488eeaaa26e8a
[]
no_license
Victormbg/APIs-com-DJango-REST-FRAMEWORK
56d1b71efaa8c21eecdffaf8c287a00951f99004
cdf7745160edef5c86816fec4349c423a2223e2f
refs/heads/master
2020-09-11T17:39:44.340696
2019-11-16T18:45:20
2019-11-16T18:45:20
222,140,646
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "minhaApi.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
[ "victormbg2000@gmail.com" ]
victormbg2000@gmail.com
f40c13d6b6a429e47aaac723a0b9ee9a715abc36
40bee13ce471aa704de68ede1ee8579106396ba3
/crudstuff/bindmodels.py
a92f1576873ed7295be85245a8483d1b9872485e
[]
no_license
mikelopez/django-app-skel-crud
9029648982ef8881c5859faac60ada4424cac576
a01b0eeaffbe12d314eb3f9ab1cd692d6defce34
refs/heads/master
2020-12-24T16:58:47.140247
2013-03-04T21:28:03
2013-03-04T21:28:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
import importlib class admin_models: """ class wrapper for admin_models data dict if using as a pluggable app via setup tools, make sure to override models and forms with data from your projects settings. if you copied the application folder local to your project then you can just edit...
[ "dev@scidentify.info" ]
dev@scidentify.info
16e61330ddfbe4a840f6d76cc9e7ef9e81e18c5b
31b4bfcf79600d968f061ad9e25e9224aaa5fb1e
/test/Microsoft.Azure.WebJobs.Extensions.Kafka.LangEndToEndTests/FunctionApps/python/Confluent/MultiHttpTriggerKafkaOutput/__init__.py
cb8b516d26ba3047bb2a311083325f789aa53727
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
Azure/azure-functions-kafka-extension
cd640ac94cd995d93942eca76851e7399e9eaaf8
59f93fb60603a7428f6975b7f7836ece78e8cd19
refs/heads/dev
2023-08-18T13:19:50.603255
2023-07-28T09:17:10
2023-07-28T09:17:10
174,426,959
102
73
MIT
2023-08-26T01:07:32
2019-03-07T22:03:17
C#
UTF-8
Python
false
false
837
py
import logging import typing from azure.functions import KafkaEvent, Out, HttpRequest, HttpResponse import json def main(req: HttpRequest, out: Out[str] ) -> HttpResponse: logging.info('Python HTTP trigger function processed a request.') message = req.params.get('message') message1 = req.params.get('messa...
[ "kkariya@microsoft.com" ]
kkariya@microsoft.com
5e8a1d01a2d01078822c6908247a5b831c92e330
81f91106bf9a748a3eb257127e7fc342aecd4b9f
/fit_spectra.py
d6f58870b1fda1985fdcc83ac03247d93a4be6d8
[]
no_license
martijndevries/Xmaps
a3dae7dbd1656874750dc0db5feb1cc859abf6b0
f56e5e3a5f8355b541a09f842a56f056dd5e01bc
refs/heads/master
2021-01-17T23:09:54.810778
2013-11-27T15:21:51
2013-11-27T15:21:51
20,330,213
1
0
null
null
null
null
UTF-8
Python
false
false
59,287
py
""" Fits a model to Chandra spectra. This module can use the output of extract_spectra.py to fit a model to the spectra. If run as a script, multiple spectra may be specfied by giving a text file that lists the spectra as an argument with '@' prepended. Version 0.6: 3/5/2011 - Updated for Ciao 4.3 Version 0.7: 1/11/2...
[ "drafferty@hs.uni-hamburg.de" ]
drafferty@hs.uni-hamburg.de
e756a6abde824ff3cc7b491d79f58b05aca71f54
a6fbb304c09196efb9b1a613e2a91aab2bb2515a
/venv/bin/easy_install
cf1380709195f37ebc1110e87751caf07df9618c
[]
no_license
ShipDandy/jojosBazaar
6c1a6cebcad455a5dfa4c217726ddc79fc3333cd
c2746595342cb041bb18533bb803a38cfd85b264
refs/heads/master
2021-05-14T17:38:23.424991
2019-03-22T15:56:59
2019-03-22T15:56:59
116,050,695
0
0
null
null
null
null
UTF-8
Python
false
false
286
#!/Users/zyoosun/Documents/WorkProjects/customStore/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "zyoosun@gmail.com" ]
zyoosun@gmail.com
61f1e5d0668f7b160cceab9f1e4404c708073cc9
52288a1d0d828f0eb5843b7a9d3e88ec76c1f17b
/python/tests/xlsx_info_test.py
48412905d1d6633ab47226761f0da044378d9523
[]
no_license
uscensusbureau/drb_rounder
9e2df83364ce5f5b1e4ea1ee53484d2ed5181e00
6e56e6cddb811ae081873fc4383845421aa470b1
refs/heads/master
2020-03-28T02:29:13.169725
2018-08-24T04:24:51
2018-08-24T04:24:51
147,573,770
2
0
null
null
null
null
UTF-8
Python
false
false
2,741
py
#!/usr/bin/env python3 import pytest import os import os.path from common import TEST_FILES_DIR from latex_tools import run_latex from xlsx_info import * from tytable import HTML, TEXT, LATEX import subprocess import shutil WORK2_DIR = os.path.join( os.path.dirname(__file__), "work2") XLSX_PATH = os.path.join( TES...
[ "simson.l.garfinkel@census.gov" ]
simson.l.garfinkel@census.gov
d52bb3601e2eadbe52c4443c22c3d81cbac3450f
c2c4716d5bc35c9fad65bee79d5575bea06d371b
/dark/civ/proteins.py
8d4563cbfdb1e802cc4ca3c1d92f34dbaccce984
[ "MIT" ]
permissive
terrycojones/dark-matter
776807bce788fd3354f7e125f176e5affc4693eb
67d16f870db6b4239e17e542bc6e3f072dc29c75
refs/heads/master
2023-05-10T21:26:44.977749
2021-08-17T15:18:12
2021-08-17T15:18:12
23,939,945
1
0
null
2014-12-02T22:12:02
2014-09-11T23:44:49
Python
UTF-8
Python
false
false
101,824
py
from __future__ import print_function import os import re import sqlite3 import sys import numpy as np from Bio import SeqIO from cachetools import LRUCache, cachedmethod from collections import defaultdict from functools import partial from json import load from operator import attrgetter, itemgetter from os.path imp...
[ "terry@jon.es" ]
terry@jon.es
5759589b01f465b82f2aa6d757c4e39a3912f334
5169e62e414dd0a1109627e2270c684ab5650cef
/exp_Resnet50.py
454296ba5bb6d4f49e38971379de5a3d28e8474c
[ "MIT" ]
permissive
MFajcik/Dog-Breed-Classification
f39ff3976d8731dfc13ff32f4383460bd20bb4c9
047bc02443962b6a9b04adb5f17f648579bce95c
refs/heads/master
2021-07-20T03:42:24.438758
2017-10-22T22:09:57
2017-10-22T22:09:57
107,796,811
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
import numpy as np import matplotlib.pyplot as plt from keras.applications import ResNet50 from keras.applications.vgg16 import preprocess_input, decode_predictions import prologue from mpl_toolkits.axes_grid1 import ImageGrid data_dir = r"C:\\Users\\mfajc\\Kaggle\\DogBreeds" #data_dir = r"/home/ifajcik/kaggle/dog_bre...
[ "blackened226@gmail.com" ]
blackened226@gmail.com
1a9a57d460894cd25864c5122caf1b2a8e214682
a0c54e54533f34f56f312ec10dfa2fce31719315
/needleman_wunsch_test.py
12b95cafaa71bf1ab52c7d9e471be459bb82326d
[]
no_license
rediska0123/Needleman-Wunsch-algorithm
7e43dca51fd652f2ef32b69625cef6a8d153ecfb
4b38c0538136d6439d032df724b8d2df07bd5781
refs/heads/master
2022-12-12T00:04:08.537893
2020-09-10T19:29:43
2020-09-10T19:29:43
294,461,151
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
import pytest from needleman_wunsch import get_max_score_alignment import numpy as np def test_get_max_score_alignment(): m = np.array([[10, -1, -3, -4], [-1, 7, -5, -3], [-3, -5, 9, 0], [-4, -3, 0, 8]]) tests = [ ("GTTACAA", "GACGTTT", -5, 1.0, "G...
[ "rediska0123@gmail.com" ]
rediska0123@gmail.com