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
ca51a71cab24e6fbbf6e65d2e6207782ed25a1b3
9accb7992c7a4b9c7130a039a469f99b3be99182
/djangoprojects/moviemodelformproject/moviemodelformproject/settings.py
a81e8047493fabb5a09d112971b4df49b2533a03
[]
no_license
djangoprojectsbyrahul/crud-fbv-operations
a76a43aa3842e2a50fa288de11b8a691c6ad741b
f6954a7b6c50e2d582b23e56ab3f10138c2e4d45
refs/heads/master
2023-02-05T21:11:12.251578
2020-12-20T13:21:11
2020-12-20T13:21:11
304,875,620
0
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
""" Django settings for moviemodelformproject project. Generated by 'django-admin startproject' using Django 1.11.17. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/...
[ "pythondjango9011@gmail.com" ]
pythondjango9011@gmail.com
5d89e0a4e0c50d9cc7ef5cf5ea267be2dd1ec2f8
380e3bfa645181f3aef4d81554d6b19391c2cbca
/pages/migrations/0003_auto__add_index_page_created__add_index_page_path__add_index_page_is_p.py
68dd591d6da454581f5b67d06d29c2aca08fd1b5
[ "Apache-2.0" ]
permissive
raonyguimaraes/pythondotorg
819a5bb03069297ae6da1f149fb53150dbc18f32
054d8999ed331f71690a8261d4a1025788f89225
refs/heads/master
2021-01-24T21:37:12.655528
2014-02-20T01:38:56
2014-02-20T01:38:56
17,006,161
1
0
null
null
null
null
UTF-8
Python
false
false
6,059
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'Page', fields ['created'] db.create_index('pages_page', ['created']) # Adding in...
[ "frank@revsys.com" ]
frank@revsys.com
7e30b98942c140658cd5e87434fec47b02c5299d
4815908f705d9064ea78adddf963d8f5873a3f7e
/toscana_admin/urls.py
d6a786705dc334648c829ba8e225cbd886151fac
[]
no_license
MartinSyno/toscana
06a64874813ba5695da18a2a5f53ac019b569550
768ffb4fb7561bd6334cc3d265a8316b4839b572
refs/heads/main
2023-05-03T19:28:17.525950
2021-05-24T11:58:08
2021-05-24T11:58:08
364,274,729
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from django.urls import path from .views import * app_name = "toscana_admin" urlpatterns = [ path("messages/", messages_list, name="messages_list"), path("messages/update/<int:pk>", message_update, name="message_update"), ]
[ "mrmartin200113@gmail.com" ]
mrmartin200113@gmail.com
a6515b21c59c208046addca4d4ac650c15b80e8e
4d673f5762be3ceff39be9944872a943a3f75422
/Companies/Facebook/two_sum.py
9a453b00fe713307f89c6b7e09ddbae913858af3
[]
no_license
leeo1116/Algorithms
f41d525a413249fc81b2b579cbad0f783138fd73
5959400492dc1403d06b884ea81a269671d420de
refs/heads/master
2021-01-22T06:22:52.402124
2018-08-16T02:52:50
2018-08-16T02:52:50
31,132,742
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
def two_sum(nums, target): num_index_dict = {} for i, n in enumerate(nums): if num_index_dict.get(target - n, -1) != -1: return num_index_dict[target - n], i num_index_dict[n] = i return ()
[ "leeo1116@gmail.com" ]
leeo1116@gmail.com
f0995bf4aca5cc69f3d2f7719c67d4c7ab4a4fdb
26f62fe20d2e06239c9182ed9c3b74ba10c77a26
/test.py
9ababf54166ce7519075dad9593e7f025ae3dccf
[]
no_license
ja-noble/Maze-PyGame
4b43aa842fdd30ce1ada7ee7fb72fae53d4391c5
8bc162696962e6528ba1dcea72bd747f5f8b3818
refs/heads/master
2022-04-17T11:17:41.211052
2020-03-03T02:55:48
2020-03-03T02:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,004
py
import pygame """ Submit a .py file with a project proposal in the comments including: What's your project? i want to create a puzzle game that has the same dynamics and surface interaction as this game: https://www.pygame.org/project/1313, and I will take the block pushing elements from this game: https://www.py...
[ "38360284+ja-noble@users.noreply.github.com" ]
38360284+ja-noble@users.noreply.github.com
1bc1449354d89099bf74ac4ff0f6428898f79dad
32367a7abdcc5d7a14c366b839b3eaa2fd62df4f
/withotdevide3and5.py
f016449ce9c568fe54837cf2001b89b37845ee29
[]
no_license
BharatKanzariya/python_basic
1735874b6513a44f6725648fe1ace95b8513ccf0
0243a968bd2ddf491d34a82f3404ef8ed538b7d1
refs/heads/main
2023-06-26T02:55:12.398929
2021-07-14T08:57:06
2021-07-14T08:57:06
385,846,534
1
0
null
null
null
null
UTF-8
Python
false
false
262
py
""" short program for i in range(1,101): if i % 3 == 0: continue elif i % 5 == 0: continue print(i) """ i=1 while i <= 100: if i % 3 == 0 or i % 5 == 0: i = i+1 else: print(i) i = i+1
[ "noreply@github.com" ]
BharatKanzariya.noreply@github.com
e1fea1c724e1a3f00970b8e384c1139fa100fb6d
ff136c5c5ed845d11b965d4e1d0fd6855ba09ecc
/app.py
4100b9b093eaf0e3b71c6fb82461db2ff49e42c7
[]
no_license
emilbello/sqlalchemy-challenge
cd047944684834a8043693aef14b1c2df7c07eef
a1ffb5274fc22ae7278b71fe12fa376607c1ce66
refs/heads/master
2022-12-06T11:42:38.359029
2020-08-24T17:16:08
2020-08-24T17:16:08
288,069,048
0
0
null
null
null
null
UTF-8
Python
false
false
3,799
py
# Import dependencies import numpy as np import datetime as dt from flask import Flask, jsonify # Python SQL toolkit and Object Relational Mapper import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func # creating an engine using t...
[ "emiliobello@Emilios-MBP.zyxel.com" ]
emiliobello@Emilios-MBP.zyxel.com
d3e347fa12b4ed10b8370a118bbf44d9b6cbdccd
0195658958b4949cb63a044297ca1599cb9e350c
/Outpatient/models.py
cf2b746a455ea9da8fa9440c3652fa7538283337
[]
no_license
ShiChenDMW/HospitalSystem
bc0fd465f4fd1c1b71ea996abd46b2db95656ede
d659d60ac5e1af9dac241b75bbf9948c02195a06
refs/heads/master
2020-09-24T17:05:16.126027
2019-12-03T12:49:43
2019-12-03T12:49:43
225,804,213
1
0
null
2019-12-04T07:19:11
2019-12-04T07:19:11
null
UTF-8
Python
false
false
4,555
py
from django.db import models from django.contrib.auth.models import User, Group class MedicalRecord(models.Model): # 病人 user = models.ForeignKey(User, on_delete=models.DO_NOTHING, related_name='medical_records', verbose_name='病人id') department = models.ForeignKey( ...
[ "xlyanscor@outlook.com" ]
xlyanscor@outlook.com
4f3bb4ee122b7383120a5a53255d846ed2604481
eaaf492c68d89e7414f19128371218c10e11a54e
/1/7.py
2c588e68924fc35791102605eba07e45f9a68824
[]
no_license
alsofro/GB_algorithms
9676dfc4ca866ab56acb4c37d393f79d932d8690
55c190574045589a591c506892e1dccf73ee15d8
refs/heads/master
2023-01-11T21:56:30.213001
2019-05-28T05:15:51
2019-05-28T05:15:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
a = int(input('введите длину 1 стороны: ')) b = int(input('введите длину 2 стороны: ')) c = int(input('введите длину 3 стороны: ')) if a == 0 or b == 0 or c == 0: print('треугольник не существует') elif a == b == c: print('треугольник равносторонний') elif a != b and a != c and b != c: print('треугольник р...
[ "ynxela@gmail.com" ]
ynxela@gmail.com
1673f4fe23c187dc2dbbcf3e423309850a4cfe57
ce4489aac20f835364c8c7519cdfbdfb4fff48c1
/solver/SymmNetsV2Partial_solver.py
52bcd51d1e1877fb942c74e97475461a783b08ef
[ "MIT" ]
permissive
chenchiWHU/MultiClassDA
5dfbc043cbfc7921b0fb5744b1fef77ddc8bb99d
a7e6b6b9874957b835f9a71d2657f7727f5fa6ae
refs/heads/master
2022-04-13T14:39:39.799416
2020-04-05T08:26:04
2020-04-05T08:26:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,679
py
import torch import torch.nn as nn import os import math import time from utils.utils import to_cuda, accuracy_for_each_class, accuracy, AverageMeter, process_one_values from config.config import cfg import torch.nn.functional as F from models.loss_utils import TargetDiscrimLoss, ConcatenatedCELoss, CrossEntropyClassWe...
[ "41507970+YabinZhang1994@users.noreply.github.com" ]
41507970+YabinZhang1994@users.noreply.github.com
cb640e13ab60d47da581adfcdb74d4b79c9b31cf
1d0a223b743b005cd2ecd904337178e322e63534
/Chapter3/P95.py
24c0776ee034f175f4fd3d56354e536ca3c2c733
[]
no_license
Stefanroets180/all-my-Python-work
285607ce1ef50aac4897e0721ead4daca01fa6e0
d7937b51a309ebd051bef90e78154447b6e9a8ea
refs/heads/main
2023-03-27T10:15:54.793489
2021-03-18T12:26:20
2021-03-18T12:26:20
349,063,278
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
cars = ['bmw', 'audi', 'toyota', 'subaru'] print(cars) #syntaxError invalid syntax missing a quotation(')
[ "61413955+Stefanroets180@users.noreply.github.com" ]
61413955+Stefanroets180@users.noreply.github.com
1b490f3ffe47d1e1b01a6efc80229664cf17dd0e
5627e703c4847a55d16e097e60fbde1af6ef87a1
/MT4ImgRec/transforms/transforms.py
106994b8fbd4c69fba1faf79a4a6470c71307d63
[]
no_license
Miracy/MT4ImgRec
008d1ba150cbb21acc1b202340158e4c1886ca2a
87813f78d1f9dd61de5cc3b7f286333f6534ca17
refs/heads/master
2023-04-20T09:16:05.272480
2021-05-10T03:31:39
2021-05-10T03:31:39
360,831,064
2
0
null
null
null
null
UTF-8
Python
false
false
37,002
py
from __future__ import division import torch import math import random from PIL import Image try: import accimage except ImportError: accimage = None import numpy as np import numbers import types import collections import warnings from . import functional as F __all__ = ["Compose", "ToTensor", "ToPILImage", ...
[ "364370584@qq.com" ]
364370584@qq.com
7446a9fb4f50657d914b2afecd3299cb8a38db4c
75c7004744315a22afdad8a68f20c06b8d3efad0
/网络设备脚本/迈普.py
c85643c747712831bd82f54c35bbdb8ad2b5b26a
[ "MIT" ]
permissive
cflw/network_device_script
b13cde8719f23402cdd6acd3ca9048a7d65952aa
c3644e933a3c557c44951a0a1994a49357e49c02
refs/heads/master
2023-08-03T11:00:29.188101
2023-07-29T13:58:09
2023-07-29T13:58:09
182,526,402
18
12
null
null
null
null
UTF-8
Python
false
false
381
py
import enum #=============================================================================== # 工厂 #=============================================================================== class E型号(enum.IntEnum): mps4100 = 4100 mps4120 = 4120 def f创建设备(a连接, a型号, a版本 = 0): from .迈普命令行 import 设备 return 设备.C设备(a连接, a型号, a版本)
[ "cflw@outlook.com" ]
cflw@outlook.com
2544770823fc434065202998a3455b76cd21d13f
dee1311673e28c8e3915cb2397b596768d96054c
/test8_unittest框架.py
0419240436f5ac751a4d90c27bc51e459a39d187
[]
no_license
HaMr123/ld-project
f668a74e4a61b6e20fdc988715e58772a444358a
4d9dc5db4894fdf1fb72fc41baec60e8a872093e
refs/heads/main
2023-08-03T23:51:33.037442
2021-09-15T09:34:16
2021-09-15T09:34:16
406,687,753
0
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
""" 响应对象.json()跟响应对象.text的区别 """ import requests import json import unittest class login(unittest.TestCase): def setUp(self): self.url = "http://test.hyunst.com/pos/login_cashierLogin.do" def test_login_1(self): body = {'Api': 'doLogin', 'Params': '{"username":"dd","password"...
[ "339659207@qq.com" ]
339659207@qq.com
324dad53ef6840f7c4b9d4df1900034cb6eb9754
22ba91d7ca8eef5dad780050ac19566bcd8f119f
/gif.py
036ccb2b721bbf286b4fe65b7d995b081710364c
[ "MIT" ]
permissive
LitianD/ObjDetect
09d54b613f2d3148dfe12b447aa9230e18cbe19d
849f63467ce9e25c8ba0c24ca7bfdea9d836b0dd
refs/heads/master
2023-04-05T13:46:14.474688
2019-07-30T09:39:07
2019-07-30T09:39:07
199,144,849
2
1
MIT
2023-03-24T22:43:28
2019-07-27T09:34:51
Python
UTF-8
Python
false
false
860
py
from PIL import Image import image2gif import numpy as np import os outfilename = "D:\PyCharmProject\objDetect\keras-yolo3\gif\\1\\1.gif" # 转化的GIF图片名称 l = os.listdir("D:\PyCharmProject\objDetect\keras-yolo3\gif\\1") frames = [] for image_name in l: # 索引各自目录 im = Image.open("D:\PyCharmProject\objDete...
[ "948167236@qq.com" ]
948167236@qq.com
0532c39bac5f628a9a0e8ef709228777632ad528
e32bb97b6b18dfd48760ed28553a564055878d48
/source_py2/python_toolbox/binary_search/functions.py
eae623883c50c77fcbfcf19f3f61265a31a197ab
[ "MIT" ]
permissive
rfdiazpr/python_toolbox
26cb37dd42342c478931699b00d9061aedcd924a
430dd842ed48bccdb3a3166e91f76bd2aae75a88
refs/heads/master
2020-12-31T04:15:53.977935
2014-04-30T23:54:58
2014-04-30T23:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,185
py
# Copyright 2009-2014 Ram Rachum. # This program is distributed under the MIT license. '''Module for doing a binary search in a sequence.''' # Todo: wrap all things in tuples? # # todo: add option to specify `cmp`. # # todo: i think `binary_search_by_index` should have the core logic, and the # other one will use i...
[ "ram@rachum.com" ]
ram@rachum.com
610a7317daea57a20502f20c9fb553eabdf68c7b
fcb68d461731bb27ec822146cc50197bac98acd5
/pypilot/pilots/intellect.py
4dee08a4479dee46e96b5c21a64119ff101cf233
[]
no_license
guliaka/pypilot
c552995dfb6f4b26418653c91c8fd1d59d9f547f
9727f82ae1abe737e702b6ea08b072ab5c5fb42c
refs/heads/master
2021-01-04T13:57:29.860140
2020-02-11T02:55:55
2020-02-11T02:55:55
240,585,392
0
0
null
2020-02-14T19:38:46
2020-02-14T19:38:46
null
UTF-8
Python
false
false
7,368
py
#!/usr/bin/env python # # Copyright (C) 2019 Sean D'Epagnier # # 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 3 of the License, or (at your option) any later version. impo...
[ "seandepagnier@gmail.com" ]
seandepagnier@gmail.com
f6251999cd5bce0014cea6dacf6385211fed0816
6a82724df32c6c787b9e9ae2fe49807384ae525e
/th_evernote/evernote_mgr.py
c9fff4618172b847b536052dc0f41a6c4ecd2ecb
[ "BSD-3-Clause", "MIT" ]
permissive
GuaiLong618/django-th
c9940685792a6fe480d6921ee43464f14b43a866
07086e4c5691bf76b7dae7e11b25e5482c5de71e
refs/heads/master
2022-09-10T17:34:46.654594
2016-08-01T07:46:32
2016-08-01T07:46:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,639
py
# coding: utf-8 import evernote.edam.type.ttypes as Types from evernote.edam.error.ttypes import EDAMSystemException, EDAMUserException from evernote.edam.error.ttypes import EDAMErrorCode from django.utils.translation import ugettext as _ from django.utils.log import getLogger from django.core.cache import caches lo...
[ "foxmaskhome@gmail.com" ]
foxmaskhome@gmail.com
4d81d7fac5507be465f3a10892b7dd2151c353af
102232cb70610cb3654f2c83c14cb5e4460bfaa5
/spec_files/8.2/federated.conf.spec
6afe765bf820677b64b8bd6a3478dbdbfc7f083d
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
splunk/vscode-extension-splunk
850335e5074abf43bbc1d5804f120aa46caa4c49
e017b79a5312f219ba728462217173604fce5ca6
refs/heads/master
2023-08-03T10:18:35.587436
2023-07-24T01:34:10
2023-07-24T01:34:10
220,573,274
80
26
MIT
2023-09-14T20:51:14
2019-11-09T01:17:37
Python
UTF-8
Python
false
false
4,299
spec
# Version 8.2.1 # # This file contains possible setting and value pairs for federated provider entries # for use in Data Fabric Search (DFS), when the federated search functionality is # enabled. # # A federated search allows authorized users to run searches across multiple federated # providers. Only Splunk deployme...
[ "jason@jasonconger.com" ]
jason@jasonconger.com
a1fc804457d63cf68b8a48fe34eaed92704fa56a
42211b7e5878f2b0b8aeb1bbee5a7185ed3580f6
/src/utils.py
4e1cad1f0e69c8d7c1e78939904b84cafab51ac8
[]
no_license
oopzzozzo/eye-pasting
3ba3b314ec043a9468d12cb46025bffc998b70be
8a0f72bb51869f317f4dff7d88db53adf2b0133e
refs/heads/master
2020-05-27T00:37:53.953036
2019-06-18T09:18:07
2019-06-18T09:18:07
188,424,904
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
import cv2 as cv import dlib import numpy as np from imutils import face_utils # face_utils (l_s_idx, l_e_idx) = face_utils.FACIAL_LANDMARKS_IDXS["left_eye"] (r_s_idx, r_e_idx) = face_utils.FACIAL_LANDMARKS_IDXS["right_eye"] get_eyes = lambda marks: (marks[l_s_idx:l_e_idx], marks[r_s_idx:r_e_idx]) dp_idx = 33 # helpe...
[ "ek3ru8m4@gmail.com" ]
ek3ru8m4@gmail.com
98fb05633126284f0264cbf415267d9c26c83b37
0030495752530ac832f6a298c2faaa1e75d27ae6
/src/template_matching/__init__.py
3e943beecb8999cc74755f71e361a89a4e14f287
[ "Apache-2.0" ]
permissive
AnttiHaerkoenen/henkikirjat
4697d01ada88b332d71d7122b5258210f07fc0a1
0c4dcfdc753b3c1af9e2d17917d95d2e783cd234
refs/heads/master
2021-07-07T03:45:16.408150
2020-08-27T09:06:34
2020-08-27T09:06:34
159,818,611
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from enum import Enum import cv2 from .img_tools import * from .rectangle import * from .digits import * from .matching import * from .grid_to_xml import page_grid_to_xml
[ "antth@hotmail.fi" ]
antth@hotmail.fi
c15ab19b59d0a45c31c4fd4763fbb8d84e0f58bc
80ff29422e987f17cbb06211907c555d713c881f
/OZON/ML/HOMEWORKS/week1_find_word_in_circle.py
66e4f55e0f89b5df75a14c997225b7fef769fa95
[]
no_license
be-y-a/smth
8780f362305ddb4d25834b921459fb4c9115ab5f
2ee632b629f68aca49642322b28c8487ce24fee9
refs/heads/master
2023-01-10T16:08:25.030319
2020-11-02T21:48:10
2020-11-09T10:09:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
def check(input, index, pattern): patternIndex = 0 inputIndex = index result = -1 isRightPossible = True isLeftPossible = True while patternIndex < len(pattern): if inputIndex == len(input): inputIndex = 0 if input[inputIndex] == pattern[patternIndex]: pat...
[ "mvvm@yandex-team.ru" ]
mvvm@yandex-team.ru
f4e82e0fb6fcf19025bb2572c0fa042925daf77f
1c589c05222eff2cf10d8d9386f3ef6563a66920
/virtual/bin/gunicorn_paster
0cd53e6041ba582e0dcea5f319525295ca7a7318
[ "MIT" ]
permissive
Okalll/gram-insta
c642e998aad925b7de93b7376b328d1125ec227d
c17095511aea62950938c1ad0528503b717780e3
refs/heads/master
2020-04-28T01:49:51.550835
2019-03-15T15:49:57
2019-03-15T15:49:57
174,874,070
0
1
null
null
null
null
UTF-8
Python
false
false
257
#!/home/moringa/Desktop/gram-ins/virtual/bin/python3 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.pasterapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "vivieokall@gmail.com" ]
vivieokall@gmail.com
ca65f667b697e219623f15dc98b33eeee73524ea
8dd8f391b1da81bc8d8dd170a44a8f0cd91f9529
/NotesLmao.py
dcc1c10fa29d777886580fd7f77c9c411861b953
[]
no_license
DavidEsketit/CSE7
aa7eaf53da991d6c53bb80b84ccb2a9eff07dd37
e0a49863e0909f6fa117951ff95cd4b4aa3abf74
refs/heads/master
2021-09-14T23:10:36.833047
2018-05-21T22:59:08
2018-05-21T22:59:08
112,400,040
0
0
null
null
null
null
UTF-8
Python
false
false
4,602
py
# print("Hello World!") # # # David Solis # # print(3 + 5) # print(5 - 3) # print(5 * 3) # print(6 / 2) # print(3 ** 2) # # print() # print("See if you can figure this out") # print(100 % 3) # # # Variables # car_name = "Wiebe Mobile" # car_type = "Lamborghini Sesto Elemento" # car_cylinders = 8 # car_mpg = 9000.1 # # ...
[ "rbpi@wetigers.org" ]
rbpi@wetigers.org
f8c65e0ccdd678cb113f84e3c42f60d8fed79f3b
ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31
/pylodon-master/pylodon/utilities.py
a9209a940682b30eff324e639cfaaef17a0b6769
[ "MIT" ]
permissive
babiato/flaskapp1
84de2d0b26a54f5820d3bbe97926782ad41e005c
530beb9e3b8516e0e93960b99521c23a523ef546
refs/heads/master
2023-02-26T16:36:49.760632
2021-02-04T09:08:40
2021-02-04T09:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
from pylodon import mongo from config import DEFAULT_HEADERS, VALID_HEADERS, API_URI, ACCEPT_HEADERS, CONTENT_HEADERS from activipy import core from flask import abort from httpsig import HeaderSigner, Signer from werkzeug.http import http_date import datetime def get_time(): """ for when you need to know wh...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
f0fd0c01012661f5f768491e7853b3274c39005b
5f09a94da91ecae226dbac687b056bd68d209ebf
/project/code/.ipynb_checkpoints/jsonCode-checkpoint.py
1c635e5fde75a366a95301cdf18887db70f7bf8b
[]
no_license
marshallgrimmett/data-mining-python
7a88617bbe5146a9dd2df669743ec1d3bcada0ca
b876aa55571f2209495b8e91d99a3447cd1568a0
refs/heads/main
2023-07-15T06:04:53.765065
2021-08-18T16:53:12
2021-08-18T16:53:12
333,232,968
0
0
null
null
null
null
UTF-8
Python
false
false
2,769
py
import json import pandas as pd from ludwig.utils import data_utils all_users = {} all_problems = {} all_concepts = {} df = data_utils.read_csv("data.csv") removing_duplicate_users = [i for n, i in enumerate(df['Anon Student Id'].tolist()) if i not in df['Anon Student Id'].tolist()[:n]] count_user = 1 for i in remov...
[ "mgrimmett@albany.edu" ]
mgrimmett@albany.edu
ef45c3d3056e28f1680f4e7db692d69a59f4b954
3c7828b2bc6ca8ef95340506f395f258c42f18e3
/venv/bin/easy_install
13f443f6b229b2a2645c04da5dfee6f165db27f7
[]
no_license
kian98/Masege
8be5187951cb6bdd78cf2c7889a9c5edf47d47e6
3e6ec71cb4c4c86c6620be8668738190eb4f6329
refs/heads/master
2020-07-30T00:05:13.341534
2019-10-07T17:00:06
2019-10-07T17:00:06
210,010,658
0
0
null
null
null
null
UTF-8
Python
false
false
436
#!/home/kian/develop/Python/Masege/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "1207529462@qq.com" ]
1207529462@qq.com
eed74d7bd10d46efb6c28d0958b44306583ee637
b4b199096518dcaa1e45f026310971c6302a2b96
/remixt/cn_plot.py
ab3831d82c1f231668b4f83ce1f19e5464fecfaa
[ "MIT" ]
permissive
amcpherson/remixt
07353eb74d4427734d7868e53b8fc48a41f6c1fe
8f462fe3c5c5afcf4d2c13edb1162f5c3e853430
refs/heads/master
2023-06-25T08:21:12.479643
2022-07-26T21:49:28
2022-07-26T21:49:28
95,475,048
6
2
MIT
2023-02-10T23:13:51
2017-06-26T18:08:10
Python
UTF-8
Python
false
false
26,969
py
import sys import os import itertools import pickle import pandas as pd import numpy as np import scipy import matplotlib import matplotlib.pyplot as plt from matplotlib.colors import colorConverter from matplotlib.path import Path import matplotlib.patches as patches from matplotlib.patches import Rectangle import mat...
[ "andrew.mcpherson@gmail.com" ]
andrew.mcpherson@gmail.com
b853d1b897ae44076afd3497d9dfa922edb2b018
d23f52ddf7d966fe12e4af89ee085dd16523c4f3
/Report 2/Source/VQA-Models/model-2/Models/classnames.py
fce06f7d399b0d6d67061e57e0ca2ef38dcde47e
[]
no_license
toadSTL/CS5542_Team1_VQA
3acfe6ce268ea2bf04cf9d836ab554d82f648a28
1c601bc8e655da784d8bb4654c67b7c5b05570d0
refs/heads/master
2020-04-23T06:14:56.967610
2019-05-09T15:33:16
2019-05-09T15:33:16
170,967,287
0
0
null
null
null
null
UTF-8
Python
false
false
21,725
py
# ONLY FOR TESTING class_names = '''tench, Tinca tinca goldfish, Carassius auratus great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias tiger shark, Galeocerdo cuvieri hammerhead, hammerhead shark electric ray, crampfish, numbfish, torpedo stingray cock hen ostrich, Struthio camelus bramb...
[ "gregory.dylan.brown@gmail.com" ]
gregory.dylan.brown@gmail.com
de34fb581112a3b0083c5bc0911f81939b4366a2
69f887fa5d626313108a47df479b01ec707233f7
/Training_Grey_Full.py
32c5d4a5d63f45c6e0f3eb2e9ffebcd417b797a1
[]
no_license
Yehia-Fahmy/InsulatorClassifier
f77d91766de81040a74d9ee446e3488a5458a355
cb49ce6f3410c5c9e847f7994140c6e16c4846a6
refs/heads/main
2023-03-19T02:55:07.329730
2021-03-04T18:29:02
2021-03-04T18:29:02
331,730,952
1
0
null
2021-03-09T19:37:02
2021-01-21T19:22:22
Python
UTF-8
Python
false
false
6,830
py
import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import Model as M from tensorflow.keras.layers import Dense, Flatten from tensorflow.keras.optimizers import Adam from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, F...
[ "yehia.fahmy@uwaterloo.ca" ]
yehia.fahmy@uwaterloo.ca
587bbb77e9029ea072032f26532e27ddaa9478ba
7103e8c2f689d0d23254d98b6cce65606fbd474a
/solutions/93.py
f18fea6834bd06302bd2415eb4b1338abd97cfd4
[]
no_license
DanqiChang/leetcode-notes
18bb10f329d214b805568d4c7270042ab97e3c1f
b81dd2bc5839e60dfa5efa712ed00e0876ca173e
refs/heads/master
2020-03-28T20:25:10.612938
2018-09-17T04:32:42
2018-09-17T04:32:42
149,068,156
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
""" { "difficulty": "medium", "link": "https://leetcode.com/problems/restore-ip-addresses/description/", "category": ["DFS"], "tags": ["backtracking"], "questions": [] } """ """ ATTENTION - 在终止条件的判断上,要考虑s == '' 和 len(currIP)>=4 不同时满足,就需要终止!! - 开头为0的字段,数字只能是0!!这是特殊情况 """ def DFS(s, currIP, st): ...
[ "huangyc96@gmail.com" ]
huangyc96@gmail.com
861ea312f72e72f19902f78c2ce9b346389664e1
53e1ba62ef56adbabd3c898ecc0297c81ba12f6e
/advisor/migrations/0013_auto_20190421_2057.py
dca7303bf91664e29e7ed1beb9735bcbdb6acaff
[]
no_license
james-schneider/django-capstone-project
5b486bf4388093883800df5213b56cb18a63f0ef
c674eb004a493597c95f4d8182da55499f75550e
refs/heads/master
2020-04-23T07:49:38.376634
2019-04-26T22:08:21
2019-04-26T22:08:21
171,017,758
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
# Generated by Django 2.1.5 on 2019-04-22 00:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('advisor', '0012_auto_20190420_0717'), ] operations = [ migrations.RemoveField( model_name='note', name='published_date', ...
[ "james.rice.schneider@gmail.com" ]
james.rice.schneider@gmail.com
98d2f8cb47f6b6b3dc8f26ae6741b379597f2bde
3f2d38a2345babbe6d622fbfb49884ad9583183c
/scripts/lib/ImageList.py
e6de9bef672364b36398f6b7bca1024fb0a82ae0
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
skywalkerisnull/ImageAnalysis
d857354c5d8841919c7bee6e91ef07b9c06b2f2a
5bbb52c420e31792b5b981d242bd357a571e2a46
refs/heads/master
2020-06-27T11:27:57.357836
2019-08-07T04:14:05
2019-08-07T04:14:05
199,941,341
1
0
MIT
2019-08-07T04:14:06
2019-07-31T23:14:02
Python
UTF-8
Python
false
false
2,977
py
# a collection of non-class routines that perform operations on a list # of images import math from . import Image # return the bounds of the rectangle spanned by the provided list of # images def coverage(image_list): xmin = None; xmax = None; ymin = None; ymax = None for image in image_list: (x0, y...
[ "curtolson@flightgear.org" ]
curtolson@flightgear.org
a95d9a58c88fc854491b9cbe1b33bb9529b8fe5f
174915d8d8ca488a4f6976035575676ff74424a4
/Cassava Leaf Disease Classification/histroy/efficientnet_learn.py
07980df4014f96ddd406f61bbeb757ee5cc55f3d
[]
no_license
starvapour/kaggle_learn_note
579f09cef83a27d386364fb42ec9099f4151dbd3
c6b07b3f6a89d0c585ddf2a4281eeb6c70edfec6
refs/heads/master
2023-03-29T22:09:28.213665
2021-04-09T10:22:13
2021-04-09T10:22:13
324,275,394
0
0
null
null
null
null
UTF-8
Python
false
false
9,098
py
import cv2 import torch import os import pandas as pd import numpy as np import torch import torch.nn as nn import torch.optim as toptim from torch.utils.data import Dataset, DataLoader from torchvision import transforms, models from PIL import Image #import pydicom import time from efficientnet_pytorch import Efficien...
[ "starvapour@126.com" ]
starvapour@126.com
601ea1ab433a96b5b1e17a5264eeec8063e9a06f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/126/usersdata/239/29610/submittedfiles/ap2.py
13b48df715213541186e4b6bb3009ea8e7d8cb96
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# -*- coding: utf-8 -*- print("Digite a: ") print("Digite b: ") print("Digite c: ") print("Digite d: ") print("") if a>b>c>d: print(a) print(d) if a>b>d>c: print(a) print(c) if a>d>c>b: print(a) print(b) if a>d>b>c: print(a) print(c) if a>c>b>d: print(a) print(d) if a>c>d>b: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9f8f48c466269ce5097a8292eb4241d9745535ad
c730f09a8d96e1ec84c2cabbc33e6489befae09a
/tutorial/polls/forms.py
dab414d8e8903a7ff7697bcc4d9bddb4f04cd48d
[]
no_license
sosodoit/django
669a4b8abb27d1b4d062ac8063891dee3666108f
f0cdee32dd069b7c0ac7c417ac55aa4f063bdb1f
refs/heads/master
2023-06-01T01:26:13.786788
2021-06-30T08:28:39
2021-06-30T08:28:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
from django import forms from .models import Question class QuestionForm(forms.ModelForm): class Meta: model = Question fields = ['subject', 'content']
[ "sohuig@naver.com" ]
sohuig@naver.com
223177a60a2000bba8fd64907a021692174b2909
7cdcd244cb576f9bb689d6fef9c3428d67364274
/tracker/migrations/0009_load_countries.py
f087eea5f6506e90bbf57d61c8a6b543f5a01f6f
[ "Apache-2.0" ]
permissive
GamesDoneQuick/donation-tracker
9728579531961eb556d7acd4564c6fe4deaffbff
4d231bae7d00ee990ca9086400d926da59b0598d
refs/heads/master
2023-08-31T21:37:41.015548
2023-08-22T22:03:47
2023-08-22T22:03:47
44,652,980
48
39
Apache-2.0
2023-09-11T14:10:57
2015-10-21T04:38:00
Python
UTF-8
Python
false
false
1,168
py
# Generated by Django 2.2.16 on 2020-09-23 23:03 import logging import os from django.core import serializers from django.db import migrations logger = logging.getLogger(__name__) def load_countries(apps, schema_editor): # This is IMPORTANT, make sure it gets moved the next time you squash migrations Countr...
[ "noreply@github.com" ]
GamesDoneQuick.noreply@github.com
d49b910ed24ad32cc0223bb757ba33e4a8b5979a
a1ebdae1587f27ad4b294d010b1a55479cbf8ed8
/unity_lens_noosfero/unity_lens_noosferoconfig.py
8ae26470f3f24ecab503e891648498f48a2a70a6
[ "Apache-2.0" ]
permissive
rcnetto/unity-lens-noosfero
7ffc5364f0d77dc48b1e55d32e2304a8c33bacbb
b74ca7367a7fc04c671f1060de8dd3b4e5cbd818
refs/heads/master
2016-09-05T19:50:59.612947
2013-09-23T12:34:05
2013-09-23T12:34:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # This file is in the public domain ### END LICENSE # THIS IS Noosfero CONFIGURATION FILE # YOU CAN PUT THERE SOME GLOBAL VALUE # Do not touch unless you know what you're doing. # you're warned :) __all__ = [ 'project_pat...
[ "ranulfo.netto@serpro.gov.br" ]
ranulfo.netto@serpro.gov.br
1544668fa94eab171550471e25787776c8f252d9
756db20d1841e6ae94f7bbb542fb29482295bd71
/project3.py
fc848dd6bb2bdc3099cb9df9ef3edea37a415b27
[]
no_license
mandeep-codetresure/python-study1
46bbc326aa6b1719e381b551d01680c2d5ee56d5
071a689750baada7753615f0f36a46c225f6d10d
refs/heads/main
2023-06-14T00:42:46.323136
2021-07-03T18:07:55
2021-07-03T18:07:55
382,659,937
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
class Library: def __init__(self, listOfBooks): self.books = listOfBooks def displayAvailableBooks(self): print("Available Books are : ") for i in self.books: print(f"* {i}") def borrowBooks(self, bookname): if bookname in self.books: print(f"...
[ "noreply@github.com" ]
mandeep-codetresure.noreply@github.com
6d5b012250a4f93f41d076b89db26dc8dd1160fb
f5f6e6110b80ea3c35f84c2deabb4b0fd095712d
/HW1/p1.py
3499a7c5d1983e6cd5d9c498ed3b67b2cd76a48f
[]
no_license
MortalHappiness/LA2019Fall
eb29ab9a7017cbf99fe8fe7575c4dde9e5bcc45d
16532248bec44a5225a0508d62fd8f8cf40c13bb
refs/heads/master
2022-03-28T15:20:48.669909
2019-12-15T06:30:59
2019-12-15T06:30:59
215,225,407
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
import numpy as np def p1_has_cycle(sets): # TODO # return True if the graph has cycle; return False if not ''' HINT: You can `print(sets)` to show what the matrix looks like If we have a directed graph with 2->3 4->1 3->5 5->2 0->1 0 1 2 3 4 5 0 0 0 -1 1 0...
[ "b07901069@ntu.edu.tw" ]
b07901069@ntu.edu.tw
4093a500a69665c1d2f40a18d22e551f963d6769
7c8392c8ea92475361fdfa235b5b9ba8bfecf48b
/venv/bin/python-config
cbd55499759f7eda1ed1cdf66b676bd2c6570df0
[]
no_license
zhengdu0316/recsys_zed
4df3d965c31c74d99111708774cc63adba394b24
ee146ede1dd8bff257404eb8ebd4e29de5e05201
refs/heads/master
2020-03-18T21:49:44.067219
2018-05-30T10:08:34
2018-05-30T10:08:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,364
#!/Users/zhengdu/src/pycharm/recsys_zhengdu/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if...
[ "zhengdu1992@163.com" ]
zhengdu1992@163.com
8e8631e58ab2cdc2b0d49b823e27ee629c28aa57
13ebadfb52f076530af872c43c41839945b4211f
/random.py.py
36422cebd8def6539422a0060088fe0baf5dd641
[]
no_license
vikakiranaa/vika
85dad7b9b6afae4e5d86109d1f9506eb3f037ee7
3076b049da1b38e9a1beb428e5d789ccb7a5ca96
refs/heads/master
2020-03-08T07:50:51.356403
2018-04-16T05:40:48
2018-04-16T05:40:48
128,005,043
2
0
null
null
null
null
UTF-8
Python
false
false
146
py
import random jumlah = int (input("masukan jumlah n:")) for i in range(jumlah): i=random.uniform(0.0,0.5) print(i) print("selesai")
[ "noreply@github.com" ]
vikakiranaa.noreply@github.com
40985c2d1ff6c83e0719dbb629c133b092af38e2
49ee89cd8d698472aa904ef7690ef6faa235a12f
/The Best Box/The Best Box.py
8e7578a6c69d6b57d4d73a926fd3521a2bb45084
[]
no_license
AbhinavUtkarsh/Code-Chef
60b837358e8e168e281c05f8613af64b5ac45271
bbea28567fea2a20135e46638c3ba83613b423ef
refs/heads/master
2020-08-01T19:37:46.580012
2020-06-27T20:58:19
2020-06-27T20:58:19
211,094,346
1
1
null
null
null
null
UTF-8
Python
false
false
201
py
for _ in range(int(input())): p, s = map(int, input().strip().split()) a = (p - pow((((p ** 2) - (24 * s))), 0.5)) / 12 v = (a * s) / 2 - ((a ** 2) * p / 4) + a ** 3 print(round(v, 2))
[ "abhinav.utkarsh@gmail.com" ]
abhinav.utkarsh@gmail.com
b95bdd0a115a5b1058699b9eedb003e621a9c274
8e3b452b08139f25be824fae2b8b7aabb158d888
/6.00.1.x/Week5/Lecture9/ProblemSets/ProblemSet1.py
d739f864cdfb83d13b0fcc5e638c51deaea7a7d9
[]
no_license
prasannabe2004/MITx
d38a11e38a0abb73ffa37dccb363f779011155ab
1954b5fc31004c94f46fc8194b7fa773108c4493
refs/heads/master
2020-05-16T19:14:00.963550
2015-08-07T18:50:12
2015-08-07T18:50:12
25,537,861
1
0
null
null
null
null
UTF-8
Python
false
false
260
py
def linearSearch(L, x): i=0 for e in L: i= i+2 if e == x: i=i+1 print 'true i=',i return True i=i+1 print 'false i=',i return False linearSearch([13, 9, 22, 3, 10, 17, 11, 2, 12, 89], 26)
[ "prasannabe2004@gmail.com" ]
prasannabe2004@gmail.com
357bce5f77f216ee3071489ebb9999e3ff3a74c9
389286d8b35033dd795917306af7a795b2f8be06
/genpass.py
ac84d48efaa070cd3e1a0dfaeb6e0431b261b57f
[]
no_license
howling-dot/BrutForce
acdea71228fa96731aa5df0e4ebf71032b387b7a
0a5346f77f0225b9063ffffc443206a445541f6c
refs/heads/main
2023-01-02T21:30:50.693578
2020-10-29T17:22:42
2020-10-29T17:22:42
307,091,217
0
0
null
null
null
null
UTF-8
Python
false
false
3,602
py
import urllib.request import random, string # init list symbol abc = string.ascii_lowercase + string.ascii_uppercase + string.digits # Генератор плохих паролей class BadPasswordGenerator: """Инициализация генератора""" def __init__(self): self.j = 0 file_pass = urllib.request.u...
[ "vovan.ziod@gmail.com" ]
vovan.ziod@gmail.com
d48cb3ec31f48448cbdda0e1f6c39bdcb0cf89d9
1ab66025b9d2aa8e2df92746db412661cfa5f926
/example_enquiry/tests/test_view_perm.py
e5e47d82e7c47b711f2256a3ac8701aeb10a2884
[ "Apache-2.0" ]
permissive
pkimber/old-enquiry-migrated-to-gitlab
7bc4023725186336400987c7ff79423268ba3788
78d90b58d34a530b03cf8386cfb24ed8160207dd
refs/heads/master
2021-06-13T16:55:29.504975
2017-04-19T14:38:31
2017-04-19T14:38:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
# -*- encoding: utf-8 -*- from django.core.urlresolvers import reverse from base.tests.test_utils import PermTestCase from enquiry.tests.scenario import default_scenario_enquiry from login.tests.scenario import default_scenario_login class TestViewPerm(PermTestCase): def setUp(self): default_scenario_lo...
[ "code@pkimber.net" ]
code@pkimber.net
6bb0bf795a865d15fb197d4ddc8033f0326cc15c
1d4f8b196e1f6e757bdf6d71117a30ac4726194c
/numba_dppy/tests/test_controllable_fallback.py
db360c65c23fc89010d9560b032bd5fa21bc403b
[ "Apache-2.0" ]
permissive
pauljurczak/numba-dppy
03619f80660204187a3af183eacceb32d494900c
0668082476a239a5e60e07ab64657365c30936a2
refs/heads/main
2023-07-18T09:13:16.076070
2021-08-26T04:52:20
2021-08-26T04:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,747
py
# Copyright 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
[ "noreply@github.com" ]
pauljurczak.noreply@github.com
9b3869c2082a919dbc1663a32a278a5283ff4931
5cee4a4374c52e29bc8eea4b0ed8d1d40566acf1
/Robots/Hexy_V1/Moves/GetUp.py
94c99e688ce9076780779d685b7c23df311f07e3
[]
no_license
clauden/hexy
23f8a73a073c2b1cf512a8479da7d200fae63e82
5b8bd014c6b0acdf7eb4b1d44dd560a4dca73ee3
refs/heads/master
2020-12-30T22:32:19.087647
2016-04-21T05:45:12
2016-04-21T05:45:12
56,036,060
1
1
null
null
null
null
UTF-8
Python
false
false
469
py
import time deg = -30 #put all the feet centered and on the floor. hexy.LF.hip(-deg) hexy.RM.hip(1) hexy.LB.hip(deg) hexy.RF.hip(deg) hexy.LM.hip(1) hexy.RB.hip(-deg) time.sleep(0.5) for leg in hexy.legs: leg.knee(-30) leg.hip("sleep") time.sleep(0.5) for leg in hexy.legs: leg.ankle(-90) time.slee...
[ "joe@arcbotics.com" ]
joe@arcbotics.com
0e648652af6200f24c5bbe88533af8a9498a4ac5
5ff95bb44a8c18f42ec1892b8e63098d1dff7e45
/energy_py/common/np_utils.py
8bd3a90a47385854072677687da7c88cb801901a
[ "MIT" ]
permissive
demirelg/energy_py
e242a2783689c2fb741c71168756fd3fe2d281a5
7b6a3f52d3ea067061e95b931a7b864d1247e123
refs/heads/master
2023-03-16T15:33:34.271308
2018-07-07T01:19:51
2018-07-07T01:19:51
551,675,719
1
0
MIT
2022-10-14T21:40:02
2022-10-14T21:40:01
null
UTF-8
Python
false
false
1,168
py
"""Helper functions for numpy""" import numpy as np def rolling_window(a, size): shape = a.shape[:-1] + (a.shape[-1] - size + 1, size) strides = a.strides + (a. strides[-1],) return np.lib.stride_tricks.as_strided(a, shape=shape, strides=strides) def find_sub_array_in_2D_array(sub_array, array): ""...
[ "adam.green@adgefficiency.com" ]
adam.green@adgefficiency.com
f4cae0c275be924da6f646aa413fa67f3a7077e1
e3eb70b22216cce8e5ed0e63fdb6880726098fba
/test_FizzBuzz.py
ccb3dd08293feafef974b9935f0770300e634677
[]
no_license
kaufmjoh/CS_362_HW7
cb1bf65628cfbfb008e903031497842ce387039a
9889479e0584159a62340884e512c45fce40d9b5
refs/heads/master
2023-05-12T08:03:33.436679
2021-03-08T02:23:55
2021-03-08T02:23:55
345,493,585
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import unittest import FizzBuzz class TestCaseFizzBuzz(unittest.TestCase): def testFizzBuzz(self): self.assertEqual(FizzBuzz.FizzBuzz(), "1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz, 16, 17, Fizz, 19, Buzz, Fizz, 22, 23, Fizz, Buzz, 26, Fizz, 28, 29, FizzBuzz, 31, 32, Fizz, 34, Buzz, Fi...
[ "kaufmjoh@oregonstate.edu" ]
kaufmjoh@oregonstate.edu
f9ff90fe6ca01813b519a4b80cd9d7f2b02870e3
4f8ee78ba4a865b255e49f7c4c2aa7ca5f41fc8f
/prac_01/shop_calculator.py
fdc7a26660aa93ceaaffc0ad251c1d1ec233b4ed
[]
no_license
Chris-Barty-JCU/CP1404_PRACTICALS
aaf826efdce3b05a0568f2ea037387f921b34a22
88c978dce429d84f9797fffc232f419af2460ccf
refs/heads/master
2021-05-23T00:33:13.386640
2020-05-05T13:12:37
2020-05-05T13:12:37
253,156,640
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
item_total = 0 n_items = int(input("Number of Items: ")) while n_items <= 0: print("Invalid Number Of Items!") n_items = int(input("Number of Items: ")) for x in range(1, n_items + 1, 1): item_cost = float(input("Price Of Item " + str(x) + ": ")) item_total = item_total + item_cost print("Total Price...
[ "christopher.barty@my.jcu.edu.au" ]
christopher.barty@my.jcu.edu.au
e558f8013830df479215c149d520716d37933924
e767f18e905dcec97e0dfa5619682a4c00fd50eb
/src/config/__init__.py
3ba4363ec11542df73010501014c8c599790c7b1
[]
no_license
andersHoward/AHRLFramework
a732a806e034700afacadd6ef8c67c29103210b8
a84f93f5b075c5fc99dcaffc1a2b9ebaa35fecef
refs/heads/master
2021-01-20T14:35:41.953914
2017-07-12T18:11:55
2017-07-12T18:11:55
82,762,315
1
0
null
null
null
null
UTF-8
Python
false
false
20
py
import ConfigLoader
[ "andershoward@gmail.com" ]
andershoward@gmail.com
855b492e6975706c4ca542c4b5a8f4bc14abeebe
ecf28ce0c9b4cb78cf72a35a43e8b64fb4012ae0
/main/board.py
4cc9746940ea404387a63079206d6f4f70e1b18b
[]
no_license
Soohwanchoi/Python_flask
f97a57650081601e9c9a167a4f831eb8a48bef97
bcdcceaf1e0143ddc1ba668bff794b700c7501b9
refs/heads/master
2022-12-21T17:30:49.693533
2020-09-15T10:14:32
2020-09-15T10:14:32
295,685,565
0
0
null
null
null
null
UTF-8
Python
false
false
10,853
py
from main import * from flask import Blueprint from flask import send_from_directory from flask import jsonify blueprint = Blueprint("board", __name__, url_prefix='/board') @blueprint.route("/view") @login_required def board_view(): idx = request.args.get("idx") page = request.args.get("page", 1, type=int) ...
[ "!a48094809" ]
!a48094809
e16f731dbb1a420b7d0e97684397536e9c92db4a
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/spiders/ieee_20210208220336.py
377e71d23b57211ab76118ef9b7a82b0c1747ea7
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
7,770
py
import scrapy import logging import re from scrapy_splash import SplashRequest, request from article.items import ArticleItem import json class IeeeSpider(scrapy.Spider): name = 'ieee' allowed_domains = ['ieee.org'] lua_script = """ function main(splash, args) assert(splash:go{ splash.a...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
e190c1e1ac2a062fcef0732bd050f3ed9fd4f8b1
44a67d9c840d751081f6917b964bd47bb19c9e6a
/accounts/forms.py
cdb10e4bf939d74e38d1ac9d52ef215f384292a5
[]
no_license
31519/aws_news
982253012f987a5d35f615e9d3af5f769b7ed22b
d054258e2489ac1efa6f104d629b8b9a49769982
refs/heads/main
2023-05-30T16:16:24.261607
2021-06-07T08:40:47
2021-06-07T08:40:47
370,308,381
0
0
null
null
null
null
UTF-8
Python
false
false
2,394
py
from django import forms from django.contrib.auth.models import User from .models import Account, UserProfile class RegistrationForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput(attrs={ 'placeholder':'Enter Password', 'class':'form-control' })) confirm_password =...
[ "cosrumut31519@gmail.com" ]
cosrumut31519@gmail.com
3e43f3976ab3b3ddab14befd090271042f8e4eca
28e17be2b84e68d98e28aa1d2e6e26e95d548348
/blog/settings.py
3a2c742de5b8b221a476cc5996be24849cac1e00
[]
no_license
IoanHadarean/Django-Blog
73b1d9a79f3aa2b0a5204b35fa4ad12edd1a72b4
e443b3a6537706e1506ccdc71a9120dbdd7c637a
refs/heads/master
2022-12-08T06:18:38.150546
2022-04-27T08:13:35
2022-04-27T08:13:35
190,923,536
0
0
null
null
null
null
UTF-8
Python
false
false
3,813
py
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os impo...
[ "ubuntu@ip-172-31-85-80.ec2.internal" ]
ubuntu@ip-172-31-85-80.ec2.internal
38176b90d2d8f84615dd9012f691a9227a18b1b9
5e16831c3d7106297938c8543332b2012bd925a4
/wips_home/urls.py
c96ff3f578dfd3fdd7ab6861b648dfc10567d1fb
[]
no_license
legible01/WIPS_django
15a5cfcba4adc5b4c35bdc672dd97b621f2d8d9f
1ff3c301af49893a79abf4d9369306c4ace5519d
refs/heads/master
2020-03-17T04:19:31.177043
2018-10-12T02:58:40
2018-10-12T02:58:40
133,270,425
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from django.urls import path from wips_home import views urlpatterns = [ path('', views.block_list, name='block_list'), path('post/<int:pk>', views.block_list_post, name='block_list_post'), #path('edit/',views.edit_data, name='edit_data') ]
[ "legible01@gmail.com" ]
legible01@gmail.com
cfd368ccf5e7e39d3970349460410b00c035e90a
e8bf0ec2f07be9c4fb9aff1c5ea3be2651db17f6
/Daily_Coding_Problem/514_no_of_consecutive_integers_in_array.py
7eb79dea4c9496f42787575333203642d6b67961
[]
no_license
Srini-py/Python
0b4a0316f3754bc04e3c01214f1d99721defbf38
81eec0cc418baa86ad718be853242e4cc349dab4
refs/heads/main
2023-06-30T23:58:25.589872
2021-08-06T16:54:51
2021-08-06T16:54:51
393,439,738
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
''' Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity. ''' def find_consecutive(arr, n): ans = 0 s = set() for i in arr: s.add(i) for i in range(n): if arr[i]-1 not in s: j = arr[i] ...
[ "noreply@github.com" ]
Srini-py.noreply@github.com
1854e2ef0f86081c28f9c7183c88ed888dc578c6
6eb0e20fd4b7aa829d652a8386efba36de89b030
/scionlab/forms/attachment_conf_form.py
92552206f475d818b90d9d753a9519960cc796ed
[ "Apache-2.0" ]
permissive
fl99kl/scionlab
f21bd29be7d35d9421a035b880de8a7e72096f7b
21771c5057dbc665ba73bc2f1b5f3ed42d91d5ca
refs/heads/master
2023-05-10T15:24:41.342591
2020-12-28T11:40:24
2020-12-28T11:40:24
267,624,721
0
0
Apache-2.0
2020-05-28T15:20:53
2020-05-28T15:20:53
null
UTF-8
Python
false
false
14,692
py
# Copyright 2018 ETH Zurich # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
[ "noreply@github.com" ]
fl99kl.noreply@github.com
e3847b8540f23760f6839b154e76c75915684d95
23d8b54aff4d5885367001accd36e5c5662c2a00
/35/35.py
b454c35c0ab69bbfb877c614f238d7cc8ce1e89b
[]
no_license
dnelsonwsu/InterviewCake
0f2e44c6c9eb17e3bf87e359b40158117939fdb8
b8787f8b7dba19f73bb5f3bb69f28aba98d01474
refs/heads/master
2016-09-05T15:28:58.961682
2016-02-24T06:11:59
2016-02-24T06:11:59
39,700,898
1
0
null
null
null
null
UTF-8
Python
false
false
951
py
'''Write a function for doing an in-place shuffle of an array. The shuffle must be "uniform," meaning each item in the original array must have the same probability of ending up in each spot in the final array. Assume that you have a function get_random(floor, ceiling) for getting a random integer that is >=floor and ...
[ "dnelsonwsu@gmail.com" ]
dnelsonwsu@gmail.com
643a5199eb8355093b92b0726e181a3101f9dc33
23c12f60a00adf406e39ab51f1f8af0304834b9f
/test/functional/rpc_deprecated.py
665a67c0ddf934227bec6105c35f995c6c4be69c
[ "MIT" ]
permissive
DemoCoin-Dev/democoin
473aed9f10aa8af37c873fa7b6c43801fd0e8b55
4f3ee2a4484a05140cc1066a299afae7c120b0d2
refs/heads/master
2020-04-01T12:33:06.601763
2018-10-16T03:04:45
2018-10-16T03:04:45
153,019,823
1
0
null
null
null
null
UTF-8
Python
false
false
4,745
py
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Democoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test deprecation of RPC calls.""" from test_framework.test_framework import DemocoinTestFramework from...
[ "MerlinMagic2018@github.com" ]
MerlinMagic2018@github.com
503e0a154543c51cb8b480f79c3bcd94dacd6961
619d36014bff078e49a3c951d61ea281ab713bc4
/api/rest/routes/index.py
575b7ce120a72e1756b58d73290f7dc7eb8ce63f
[]
no_license
kozakjefferson/flask_api_example
4457ffb1869cf80aa64a6580f385fdac96cd09cb
72428dbc5fa121f37f6dc571bcd624300bc50692
refs/heads/master
2020-03-30T02:09:57.433345
2016-07-05T17:33:45
2016-07-05T17:33:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
from flask_restful import Resource, Response from ..functions.function import json_message ## Rest Controller Layer should only handle HTTP responses/requests and JSON serilization/deserilization. class index(Resource): #All HTTP get requests to '/' are handled by this function def get(self): response = json_mess...
[ "joshuadparkin@gmail.com" ]
joshuadparkin@gmail.com
f09262994e62e2e95c1c982575319bcb10038c57
7cbac541a44b290ed86c8bc94ec0d705390cac9a
/rules/mapping/sambamba.smk
9a9608f95e6b4bc7e8c1c7c12545f52ff5bae841
[]
no_license
GrosseLab/VipeR_HIF1alpha
09e8042695d08d466e63924f40b9005500ce64f6
3dde5a7d63d880d61abaef0533c18f6f8c770e04
refs/heads/master
2020-04-29T16:28:06.612315
2019-09-16T11:36:01
2019-09-16T11:36:01
176,261,299
5
0
null
null
null
null
UTF-8
Python
false
false
732
smk
rule sambamba_sort: input: "{path}.bam" output: "{path}.sorted.bam" params: "" # optional parameters threads: 20 wrapper: "file:viper/wrapper/sambamba_v0.30.0/sort" # "0.30.0/bio/sambamba/sort" rule sambamba_index: input: "{path}.bam" ...
[ "claus.weinholdt@informatik.uni-halle.de" ]
claus.weinholdt@informatik.uni-halle.de
e90bdcf42e3b7729ce25348153dcea78c44e4d63
5ea68b8c3e354bca9719e961657882c5e2edc459
/tests/test_prepare.py
05dfd5c73bc5a820a6c94ea35131d508fc13861b
[ "MIT" ]
permissive
docsmooth/arbtt-chart
b86b00e48f1e21d0c18f5cdcd11400ba202cfb68
688d0a0edbd7557a4c6e23b232759f92fef5c158
refs/heads/main
2023-03-16T18:08:55.535447
2021-03-07T15:26:25
2021-03-07T15:26:25
344,183,289
0
0
MIT
2021-03-07T15:26:26
2021-03-03T16:02:46
Python
UTF-8
Python
false
false
3,085
py
import textwrap import pandas as pd # type: ignore [import] import pandas.testing as pdt # type: ignore [import] import arbtt_chart as ac def ld(csvs): return ac.load_inputs(textwrap.dedent(csv.strip("\n")) for csv in csvs) def test_prepare(): def prep(csvs, args=[]): args = ac.parse_cmdline_arg...
[ "tomi@nomi.cz" ]
tomi@nomi.cz
7599c1b183e8a03ef11c38bddca0343a42a96eab
3e6951bb9c86e44535a99210fa68b1980f9e8a88
/datary/operations/test/test_rename.py
182741034ed9c6fc673edad9ecb89e0a3cc66378
[ "MIT" ]
permissive
Datary/python-sdk
b31f2b1db0bbf710e56177f6bf51de1d2256d501
2790a50e1ad262cbe3210665dc34f497625e923d
refs/heads/master
2021-01-12T08:25:09.966693
2018-06-19T08:36:23
2018-06-19T08:36:23
76,570,424
0
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
# -*- coding: utf-8 -*- """ Datary python sdk Rename Operation test file """ import mock from datary.test.test_datary import DataryTestCase from datary.test.mock_requests import MockRequestResponse class DataryRenameOperationTestCase(DataryTestCase): """ AddOperation Test case """ @mock.patch('data...
[ "m.moraleda@datary.io" ]
m.moraleda@datary.io
71be78fc04e2650a55fa217a4b040ed6be7305ee
ac99bf370262a84b64ddd9a9accef0900e8e3c89
/enc.py
e6405eee0d302d6a56078daa31f85d816262770d
[]
no_license
parikshitsharma70/hacker_rank
bb0025bf9a0369bfa2446ab3d6559ff237048003
2b4c7a577befa1ae265cb8172ab86e04fd69c423
refs/heads/master
2020-03-23T00:20:38.916806
2020-02-23T04:04:00
2020-02-23T04:04:00
140,857,513
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
import math import itertools def encryption(s): s = s.replace(" ", "") r = math.floor(math.sqrt(len(s))) c = math.ceil(math.sqrt(len(s))) arr = [s[i:i+c] for i in range(0, len(s), c)] tup = list(filter(None, pair) for pair in itertools.zip_longest(*arr)) resArr = [] for t in tup: te...
[ "parikshitsharma70@gmail.com" ]
parikshitsharma70@gmail.com
09f50df4d08790e84da2e0863bf84d4b11b8bc72
07ecc53b5be6b1a34914a0e02265e847f3ac1a65
/Python/Dynamic Programming/10_Hard_正则表达式匹配.py
05ffaee77f5dc055d0a181655bdc892c6c26596c
[]
no_license
JasmineRain/Algorithm
764473109ad12c051f5337ed6f22b517ed9bff30
84d7e11c1a01b1994e04a3ab446f0a35eb3d362a
refs/heads/master
2023-03-14T00:39:51.767074
2021-03-09T12:41:44
2021-03-09T12:41:44
289,603,630
1
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
class Solution: def isMatch(self, s: str, p: str) -> bool: if not p: return not s if not s and len(p) == 1: return False nrow = len(s) + 1 ncol = len(p) + 1 dp = [[False for c in range(ncol)] for r in range(nrow)] # base case dp[0][0...
[ "530781348@qq.com" ]
530781348@qq.com
a63c939364fef777bf737ce46cca9144e18de4be
99b9abac12e8f801347d06b99284adf75135cc76
/Strings/Permute.py
5ecc8f510684276ae94d48670ea7f7eafc074395
[]
no_license
mohanvarma/Projects
a907ebb67d4d05b2f858b1b19202c7ce00356ca3
04a3a036e7470bcba73f12b9ba78886d66c959fc
refs/heads/master
2021-05-30T10:04:36.778918
2016-01-16T00:55:26
2016-01-16T00:55:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
def permute(string, stringSoFar): if len(string) == 0: print stringSoFar else: subString = string[:-1] index = 0 while index <= len(stringSoFar): newString = stringSoFar[:index]+string[-1]+stringSoFar[index:] permute (subString, newString) inde...
[ "varma.mohan@ymail.com" ]
varma.mohan@ymail.com
fd9f6d59c0122ae38431113a2a025576a43d0614
834a09eba7ba97f23d5c8ced99abcf8cbe6da2c1
/raggregate/views/feeds.py
93a6fd49d56056e87f74b315527aafd075165315
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
smoothgrips/raggregate
4aa67c853d93653ba99f710e9cf4e4c9ddb6457f
4f2f445e23e2f6e02b5a16f1edf19a35f31bf472
refs/heads/master
2021-01-16T02:33:30.895474
2012-04-20T21:22:40
2012-04-20T21:22:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
from raggregate import queries from pyramid.view import view_config from raggregate.models import DBSession @view_config(renderer='atom_story.mak', route_name='atom_story') def story(request): s = request.session r = request dbsession = DBSession() stories = queries.get_story_list(page_num = 1, per_...
[ "jeff@deserettechnology.com" ]
jeff@deserettechnology.com
2d64c6a4b97f1d186491a3005139ce618c2429f8
e6ed64fda597762b3559ce387a35a83cefef13fa
/examples/example1.py
41adde1c1ed5bcc65c224a37fb079ab89713f2dd
[ "MIT" ]
permissive
foxsi/SAASpy
02d4b5e53bb47d105af3ad7ed8b89862901e9cbd
473956c59859c7bd9f81323dfb82da07ce606b26
refs/heads/master
2022-12-13T13:43:39.027937
2022-12-03T20:40:54
2022-12-03T20:40:54
26,690,220
2
1
MIT
2022-12-03T20:40:56
2014-11-15T18:58:43
Python
UTF-8
Python
false
false
251
py
__author__ = 'schriste' from saaspy.image import image import matplotlib.pyplot as plt file = "/Users/schriste/Desktop/SAAS/FOXSI_SAAS_141113_203247.fits" if __name__ == '__main__': s = image(file) plt.figure() s.imshow() plt.show()
[ "steven.d.christe@nasa.gov" ]
steven.d.christe@nasa.gov
28063919d428c727e8feebbaf7741f11debb00ba
b7127055167119a05a5544960add0c887992e8b1
/source-code/algorithms/main.py
e0152542b964fd3f514a4dc6870a34509eaa2e6c
[]
no_license
ndangtt/1LLGA
802847693b91a553cd43f400cf95b9e3b8cd07c7
c1044aa8b73e18c82d45a5c06dcf3669a44d8ef8
refs/heads/master
2022-08-01T12:11:22.318510
2022-07-16T20:27:20
2022-07-16T20:27:20
167,725,190
2
1
null
2022-07-16T20:27:21
2019-01-26T18:43:22
Python
UTF-8
Python
false
false
8,364
py
# (Nguyen) Syntax: python2 main.py --problem <problem> --size <size> --algorithm <algorithm> <parameters> [--random_seed <random_seed>] [--max_evaluation <max_evaluation>] [--it <number of runs>] # Examples: # ----- static LL, one run, without bound # python2 main.py --problem OneMax --size 500 --algorithm "['LL_stat...
[ "ndangt@gmail.com" ]
ndangt@gmail.com
33224b84f4090301c6096ba024cd24e04a5a0c56
69597554851a45c956dfeeff3f9878b0f9fd5379
/config/settings/production.py
a9ef1782e447d7aeda5d6d715fc36c279da33cae
[ "MIT" ]
permissive
ParkGwanWoo/instagram-clone
64e14ef79f82e9caa9e5d4cf11fc7e51e28f850c
3e210909c887043f05975fb59dc3c48112ceaaf2
refs/heads/master
2021-09-09T07:55:23.859662
2018-08-06T07:27:54
2018-08-06T07:27:54
140,709,595
0
0
MIT
2021-09-08T00:01:58
2018-07-12T12:22:07
Python
UTF-8
Python
false
false
8,292
py
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED...
[ "yeonkevin@icloud.com" ]
yeonkevin@icloud.com
cb4b1ece284fb59a44869f25bb55c637424b4a44
6f577a95335d2a8ee5f02d02b4048663f353d02c
/pages/urls.py
4cbf316f7b57bfe5dddfd39470b4b48aad0b3883
[]
no_license
nabil-rady/Django-Tailwind-Template
e569d4626a8f03b2fa789f5cf1146c017daf1ccb
71ac5af859e5bd8db49c6a6267bfb49d0593eee4
refs/heads/master
2023-08-29T11:57:12.977366
2021-09-22T19:17:02
2021-09-22T19:17:02
406,931,333
1
0
null
null
null
null
UTF-8
Python
false
false
769
py
from django.urls import path from . import views urlpatterns = [ path('', views.landing_page, name='landing_page'), path('dashboard', views.dashboard, name='dashboard'), path('forms', views.forms, name='forms'), path('cards', views.cards, name='cards'), path('charts', views.charts, name='charts'), ...
[ "midorady9999@gmail.com" ]
midorady9999@gmail.com
c0286bdbb554b58b9aa60f2021eef27056c98aab
18cf194966e41de97bff46043cf43e4613d90638
/filter_black_list.py
1b6a9929e0114e12c3f11c1b57bdc3c8cae647fb
[]
no_license
feapoi/tcpdump_filter
64cf0ef9743736e5bde127267ce2267db4e49da4
8fa08c6586189e9e3b780fc3f4aff33a7ae9999d
refs/heads/master
2022-04-14T18:31:18.259964
2020-04-10T03:43:00
2020-04-10T03:43:00
254,532,991
1
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
import os from collections import Counter def filter_black_list(): res = [] for root, dirs, files in os.walk("log"): for q in files: if "txt" in q: c = Counter() for line in open("./log/" + q, "r"): if "[S]" in line: ...
[ "369215201@qq.com" ]
369215201@qq.com
0db0f3417d7e1d6cfb3ba376a2bdafbe3c27def0
97672d40aaa47ac09f5c0ac49f50269146461a0f
/solved/414. 第三大的数.py
32b7e4d45bfd31ba815b889c135ef5fb917a2639
[]
no_license
xukangjune/Leetcode
a120263243e2d8bddda99429c1c7a6be4eeeda51
2cad20b7639bd709c4a064e463d7414c43c2af90
refs/heads/master
2020-05-04T08:10:24.805606
2019-10-06T03:56:36
2019-10-06T03:56:36
179,041,684
6
0
null
null
null
null
UTF-8
Python
false
false
778
py
""" 这题本来想用计数排序的,但是对内存的要求太高。然后设置了三个变量,并为了消除重复元素的影响,先将数组转化为集合。然后遍历集合,依次与三个 数比较。 """ class Solution(object): def thirdMax(self, nums): """ :type nums: List[int] :rtype: int """ nums = set(nums) first = second = third = min(nums) for num in nums: if nu...
[ "38693074+xukangjune@users.noreply.github.com" ]
38693074+xukangjune@users.noreply.github.com
3cc456a4fed6e887ff6955657b04461522f8c4bb
4e9fb17329b71a778c2a9016df9e0f3bab02accb
/src/runners/TopSDGGenesRunner.py
a7d98defc80e773ca86730a8289484ef4679da30
[]
no_license
hag007/bnet
7a58d46fbe2508b4c664c200b598db840d910b2c
e43906a9eea0a318de74a07402b306450cff2274
refs/heads/master
2023-07-27T20:14:43.528343
2021-08-25T13:06:01
2021-08-25T13:06:01
391,555,784
0
0
null
2021-08-24T11:36:37
2021-08-01T07:15:26
Python
UTF-8
Python
false
false
2,749
py
import sys sys.path.insert(0, '../') sys.path.insert(0, '../..') import os import pandas as pd from src import constants from src.implementations.top_sdg import main as top_sdg_main from src.utils.ensembl2entrez import ensembl2entrez_convertor from src.utils.network import get_network_genes from src.utils.go_similarit...
[ "shpigelman1@localhost.localdomain" ]
shpigelman1@localhost.localdomain
cd3d9035e119adff19f44043ee58aad0e88d33d9
e498c7b38f57d4b242ff094a5f617fd8c94465ce
/homework2.py
c52edf5ea3eb51016e2eca5f863df58a2e2074d5
[]
no_license
Jaunsou/pythonhomework
c485f03448f7c15e3d8c4041435edeec8c8f8e0f
98bf7bfb9c5a14297ae14f0254282716b8e72073
refs/heads/main
2023-03-09T21:45:50.334066
2021-02-28T01:46:20
2021-02-28T01:46:20
313,906,518
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
from functools import reduce def prod(a): def m(x,y): return x*y return reduce(m,a) print(prod([1,4,7,10,13]))
[ "noreply@github.com" ]
Jaunsou.noreply@github.com
8d439e345994203fb44297153208227eedf6b39d
545b3f8866be884ecc4b562b10bba29123835f56
/JSONaug.py
509eca0b4ace9d669ea95059ffcb6a0002723079
[]
no_license
ShulingTang/Image_Augmentation_Demo
f9cc7ff8c6cc61dbc3a39beffa718caa98880352
83c489ec100c95db619b7c67764e2917a5f3965a
refs/heads/master
2023-04-25T05:54:47.872561
2021-05-07T17:40:05
2021-05-07T17:40:05
365,300,022
0
0
null
null
null
null
UTF-8
Python
false
false
4,059
py
import numpy as np import os from pretreatment import mkdir import json import imgaug as ia from imgaug import augmenters as iaa from PIL import Image from pretreatment import * # ========================= # # # if __name__ == '__main__': JSON_DIR = "HRSID_JPG/annotations" # Json文件目录 JSON_NAME = 'train_test...
[ "noreply@github.com" ]
ShulingTang.noreply@github.com
1cdfee8c9daf1b2b2b7435bdfb7475efa59efc3f
ba92071d977f8350fc1f03ebd1344d4e487457e0
/content/migrations/0002_lesson_video_link.py
4d828f5ce4e9898514c20d685f093b4b27923361
[]
no_license
lokesh27/3Dex_portal
c5af0521a426d485f1f9e94833e55e1ca38f484a
893284a5a2d265a162c9684768d41194b927251f
refs/heads/master
2022-12-09T03:04:14.952871
2016-05-09T13:02:02
2016-05-09T13:02:02
50,050,747
1
1
null
2022-11-22T01:07:34
2016-01-20T18:27:27
HTML
UTF-8
Python
false
false
441
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('content', '0001_initial'), ] operations = [ migrations.AddField( model_name='lesson', name='video_li...
[ "lokesh.tuteja@yahoo.co.in" ]
lokesh.tuteja@yahoo.co.in
a151e08b4a613bc738600fbb4fd03df07d0d9e46
6894aad6baa4c78089765584d7590046ba76e02d
/errant_env/bin/pip
39552b1ba999ffae25d83aebe948c782e01484a7
[ "Apache-2.0" ]
permissive
Yakonick/test
4dc167c3e6ddf0518aa79d72d5893795a82863aa
1d812776d9733d8020422a6a14cea6880f591888
refs/heads/main
2023-03-31T09:11:01.091800
2021-04-11T13:39:53
2021-04-11T13:39:53
356,863,628
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/Users/yasen/Desktop/tests/errant_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Nikitoskova123@gmail.com" ]
Nikitoskova123@gmail.com
15c16ddf6632e5b50b3d4ba54c5222391bc64d02
0329c160934d2e6eb81e90183745c6ff39fc9462
/budgetme/test/fixtures/fixtures.py
a0940470b249ca465eb15c62d4857fa7f3686296
[ "MIT" ]
permissive
poblouin/budgetme-rest-api
2165b820e847e96be028295eb4831a28152e2935
74d9237bc7b0a118255a659029637c5ed1a8b7a1
refs/heads/master
2021-01-01T19:59:31.579829
2019-06-02T20:14:19
2019-06-02T20:14:19
98,740,836
2
0
MIT
2020-06-05T21:13:14
2017-07-29T15:19:49
Python
UTF-8
Python
false
false
730
py
import pytest from rest_framework.test import APIClient from budgetme.apps.core.models import User @pytest.mark.django_db @pytest.fixture def access_token(db, django_db_setup): users = User.objects.all() assert users is not None and len(users) > 0 user = users[0] client = APIClient() response = ...
[ "blouin.pierreolivier@gmail.com" ]
blouin.pierreolivier@gmail.com
d7df78feee1564eb00a339d7e63bf78235ae6794
cded49be3920bb970884aab73784703b654cd680
/bilibili_meter/web_server/routes/api_activity.py
fe383b5cd98ff2eb73ece83e54a3fa288a8a1653
[ "MIT" ]
permissive
xyzQvQ/bilibili_meter
14926f54e63ba672eda5e089f0ed2d50626a18f3
62da38caf5cd8bcdcdaf1593352e838c817e2ee2
refs/heads/master
2023-07-04T19:49:25.419635
2019-11-18T15:15:03
2019-11-18T15:15:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
from flask import Blueprint, jsonify, request import time import logging from ..model import WebUser, WatchedUser, WatchedVideo, Task, TaskStatus,\ ItemOnline, ItemVideoStat, ItemUpStat, ItemRegionActivity,\ TaskFailed,TotalWatchedUser,TotalWatchedVideo,TotalEnabledTask,\ ...
[ "gravitykey@hotmail.com" ]
gravitykey@hotmail.com
fece02e43b414048d73b09d662b9f9c3ef216ff9
05d3c0131631ff973a71fd7a2b3256aac2e8c8de
/scripts/reduce.py
00f63ac39249dfa6da6ee54db38aa39a3438e988
[]
no_license
ELIFE-ASU/parallel-programming-mpi
ef0c0e4816d3274a78139c213f3f8ea955f8605f
16ae2a3137f69b5f79073a643d875646ece2ef1c
refs/heads/master
2022-11-30T12:26:56.104653
2020-08-14T23:58:35
2020-08-14T23:58:35
287,635,159
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() if rank == 0: data = rank recv_data = comm.reduce(data, op=MPI.SUM) else: data = rank recv_data = comm.reduce(data) print(rank, recv_data)
[ "doug@dglmoore.com" ]
doug@dglmoore.com
bccf442ae0c260a3076c95bb548d863401336ef8
c73995de48417b36856b6c6d1bc52d9a90a9a0e5
/item/models.py
d67291a28aea4c9efee5fb9321b1354b539f70a9
[]
no_license
yukai0309/kk
548f1e291d2f4866a12ad9e3fcbc455e0db3b9c1
1abb6b3d6928c3b59e3591debed4dd912452f72d
refs/heads/main
2023-05-27T12:06:46.467400
2021-06-13T16:04:34
2021-06-13T16:04:34
376,582,298
1
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
from django.db import models class ItListModel(models.Model): item_code = models.CharField(max_length=200, verbose_name="貨物編號") item_name = models.CharField(max_length=200, verbose_name="貨物名稱") quantity = models.FloatField(default=0, verbose_name="數量") sales_price = models.FloatField(default=0,...
[ "noreply@github.com" ]
yukai0309.noreply@github.com
27029b5b4c740f54219b2707fcda20d406c3380d
8a73621df4054895e2a73a49b84d8d135da1f585
/scanner.py
a98feef039b3a8fe5dea2c672c559fc85489c370
[]
no_license
obing99/pBmwScanner
252d15da98c2f6de89918c351419fa49871a46dc
6323ad30a809cf7dd9d2b7c9c18e8c1623cf85eb
refs/heads/master
2021-09-06T17:48:57.958345
2018-02-09T09:07:43
2018-02-09T09:07:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
from me72 import * from gs8602 import * egs = ZF5HP24() egs.run() dme = ME72() dme.run() """ ds2 = DS2() while 1: ds2.sniffer() """
[ "stevegigijoe@yahoo.com.tw" ]
stevegigijoe@yahoo.com.tw
422e4dcf885173e53b126ff8279e7a361ccd9201
1468f1436b3ce472a3805bf280955f5ba6d11da2
/lyric_test_discriminator_3.py
bbb60e16f4df5bb803de9a0719fbfff7fba6e45d
[]
no_license
peterfengyx/Lyric-Generation
989d72328a7915e4ae5f0ee88a9290d41126e3fd
b1ed00dbe0112f2c122586be5ccc814e2df2174b
refs/heads/master
2020-04-28T13:47:59.601528
2019-04-24T23:03:07
2019-04-24T23:03:07
175,316,747
2
0
null
null
null
null
UTF-8
Python
false
false
19,080
py
import pdb from lyric_models import * import pickle import numpy as np # from gensim import corpora import torch.utils.data as data_utils from torch.autograd import grad import sys import os # input from command line if len(sys.argv) != 2: raise ValueError("Wrong argument number!") BatchSize = int(sys.argv[1]) #...
[ "bicheng_xu@outlook.com" ]
bicheng_xu@outlook.com
ee17121c63a869b6d39379a0608764af56660513
3e25f00988eb7d67cb757670eadbc34931ac6f04
/scripts/mol2xml.py
1baa50a56507cc6fe27fb6abe572e4b542eb0481
[]
no_license
G-Kang/tpa_md
0dcb32af79fe1d17ceca9bcf9f570671664e81b3
477f0f82976e52a0cb3fa11b6ea203aa9dba2090
refs/heads/master
2022-02-28T07:24:08.284881
2019-11-04T16:48:15
2019-11-04T16:48:15
219,539,870
0
0
null
null
null
null
UTF-8
Python
false
false
5,341
py
from polymerize import CreatePolymer import os,shutil,sys import xml.dom.minidom from solv_helper import * #place polymer in a lattice configuration path=sys.argv[1] num=int(sys.argv[2]) size=int(sys.argv[3]) runid=int(sys.argv[4]) archive=sys.argv[5] infile=sys.argv[6] shell=sys.argv[7] prmfile='D'+str(num)+'o' arc=ar...
[ "gyeongwonkang2020@u.northwestern.edu" ]
gyeongwonkang2020@u.northwestern.edu
04bea333234cb45a83f68335bf40cd9e5c881f9d
22d1dec6a6b5b33c9cb48fb8cca1150ead0db01e
/list.py
145af2e7e316fd241ba9f58a2e28cb2fcb5b9d20
[]
no_license
liujanice/GWC_python
b9d30e27daee920eb92eb1c6c33019154fdb3b40
054973d09470b9ac9c114095475cc81f6bddd301
refs/heads/master
2021-01-02T09:12:55.569221
2017-11-27T06:56:02
2017-11-27T06:56:02
99,167,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
groceries = ["chips", "bagels", "bread", "crackers","pasta", "pizza", "ice cream", "soda", "bbq sauce", "cake", "peaches", "bananas","muffins"] # extend and append are functions groceries.extend(["eggs", 'noodles']) #Extend only MERGES ANOTHER LIST into the previous list. groceries.append("bacon") #Append adds a SINGL...
[ "noreply@github.com" ]
liujanice.noreply@github.com
5edbc2661060483ef8dd89696f1b2a69530acb0d
cd1e37869b7c91c3a52a64261898ea54a83b63d8
/bengali/model.py
81ecc2564f538a31ec14c93c58fe5a42ebd4a712
[]
no_license
ceshine/bengali-grapheme-classification
67388aec30ed5ddfdf02cbd6a3626d6cb869fb53
48f6881fd03edb399169b63054850ab84b74527b
refs/heads/master
2021-04-01T01:12:52.398465
2020-03-31T07:08:55
2020-03-31T07:08:55
248,143,974
2
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
import tensorflow as tf import efficientnet.tfkeras as efn from .dataset import CLASS_COUNTS # Avoids cudnn initialization problem gpus = tf.config.experimental.list_physical_devices('GPU') for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, True) class SELayer(tf.keras.layers.Layer): def __init_...
[ "shuanck@gmail.com" ]
shuanck@gmail.com
926f177ca5d0e980f75a48fe51f5f9f65263b299
3fed8ac07933de0370633013b4d035783333b89d
/contour/migrations/0009_environmentalcontour_latex_report.py
ab9558d76bb60eec2afeb7036b1e962bac24352d
[ "MIT" ]
permissive
virocon-organization/viroconweb
4bf14d4c8656222161c06b1b076b585fdb873a6c
9fe1e93b4500777cdd8018573e6e5ea981739d50
refs/heads/master
2021-09-21T12:15:42.528741
2021-01-09T20:59:38
2021-01-09T20:59:38
107,653,688
3
1
MIT
2021-09-07T23:51:36
2017-10-20T08:40:52
Python
UTF-8
Python
false
false
570
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-04-13 15:07 from __future__ import unicode_literals import contour.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contour', '0008_auto_20180413_0953'), ] operat...
[ "a.haselsteiner@uni-bremen.de" ]
a.haselsteiner@uni-bremen.de
9cdf08036a3e48d468a590dd30a05cfcb227a4c5
4ef04fe6545f601fd43dceff9052bd5443ddeac7
/find_similar_users.py
757041a9dce55766e9ef5422627c2cdd81559463
[]
no_license
Mansijain850/recommendation-system
ef4d44db9ea470e963808ff2362a772c1954b5d7
d1b62c48f63d838c9e28c2706000d830c6edea31
refs/heads/master
2021-01-18T16:01:57.442776
2017-10-11T01:56:25
2017-10-11T01:56:25
86,704,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
import json import numpy as np from pearson_score import pearson_score # Finds a specified number of users who are similar to the input user def find_similar_users(dataset, user, num_users): if user not in dataset: raise TypeError('User ' + user + ' not present in the dataset') # Compute Pearson scor...
[ "mansijain850@gmail.com" ]
mansijain850@gmail.com
cf381967da38f4a2bace17ffb9abb245d020aebc
06923a8c0f12e0cd0a6ecdb255aac921b4734852
/django/filmweb/migrations/0024_auto_20210725_1716.py
e31e028486ea89db97f5515bda406f15716aa7d8
[]
no_license
adik077/Movies-rating
86f6b2c2e9e8deeffef1d63526b8c01ffe38980b
0467c26763c9e4aacf37b2115c0ca2d63c869562
refs/heads/master
2023-07-31T07:37:14.008685
2021-09-19T16:22:34
2021-09-19T16:22:34
408,176,138
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
# Generated by Django 3.2.4 on 2021-07-25 15:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('filmweb', '0023_auto_20210725_1711'), ] operations = [ migrations.AlterField( model_name='dodatkoweinfo', name='gatu...
[ "aginalski112@gmail.com" ]
aginalski112@gmail.com
99ea95e58bc8937fa6164cea95ce35145c496efc
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/hackernews/testcase/firstcases/testcase5_025.py
74737c28144edf295d46b08ed1766a9b7a938e9e
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
3,342
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
3ca766b88278bb8391c295597ce1a1b2b5b71a01
1006de7ca307c360569d657e6dba8ee87f0fd7ef
/redis1/sf.py
5bcd1b9428b9ccb61b1ac7fe96f9c09b09a17153
[]
no_license
run100/python
0465c454f4468db38f34571e7a04896ad51c46ce
3d9e76e76d145669b669daa40e0a2eb9eb5fdca7
refs/heads/master
2021-01-17T09:11:48.186452
2016-03-22T02:10:34
2016-03-22T02:10:34
31,799,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = 'Administrator' __mtime__ = '2016/3/10' # code is far away from bugs with the god animal protecting I love animals. They taste delicious. """ import re import urllib2 from bs4 import BeautifulSoup import redis redis_conn = redis.Redis('...
[ "727271755@qq.com" ]
727271755@qq.com
7bac0dd6aef27764fec2a0056e2ce92189339eb5
12a1a432661e495eada3a9b35ace578541860bf8
/PFB_problemsets/python/operators-truth-logics.2.py
7ebb1342323846aa51b0333a415583d65ae60396
[]
no_license
MarinaMann/PFB_problemsets
06ceebb1fb2f265c63fe233c4f2a18f8dc38fe48
59d747990cc05f3e4b4ef96cdac5346dcec43342
refs/heads/master
2020-08-15T12:23:35.654335
2019-10-29T18:51:48
2019-10-29T18:51:48
215,342,037
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
#!/usr/bin/env python3 #practicing if/else using bool() function to test TRUE/FALSE of variables x=0 if bool(x) is True: #must write "True" not TRUE or true print('TRUE') else: print('NOT TRUE')
[ "info@info10.cshl.edu" ]
info@info10.cshl.edu
aa3968bcd33b1be3b5d6b0b88238fd894cdf43a2
eb1a7b8125f356e9fafdbabf143845863d083e25
/airflow_home/email/database_conn.py
86e59c55c8d179b5a77b1f93b29a4840e504ad17
[]
no_license
SlackAttack/examples
e2c6a9723b7d48d505f9283af51d9da8a0677cb2
85619a8def8fece031ed570f0eb432a143a42efd
refs/heads/main
2023-03-11T03:48:25.958721
2021-03-01T00:10:41
2021-03-01T00:10:41
343,238,975
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
from credentials_vars import redshift_conn_string, bs4_conn_string, bs3_conn_string, cg_conn_string import psycopg2 import mysql.connector connection_options = ('redshift', 'cg', 'bs4', 'bs3') class NotAValidDatabase(Exception): pass def db_conn(source): global cursor global conn if source == 'reds...
[ "patslack@Patricks-MacBook-Pro.local" ]
patslack@Patricks-MacBook-Pro.local
15a9f9c24ce516a6a29f60f117cbc0f2bc6c7e67
1ac99f8065a2646bdb8ea9003fd5930341fb0cf4
/Regular expression/rule10.py
99b1383982c48e26ca6b9e0b8e9b9b81d2d431d2
[]
no_license
krishnanunni-pr/Pyrhon-Django
894547f3d4d22dce3fff14e88815122c12c145b5
c59471f947ceb103bb27a19e8a2a160e8ada529b
refs/heads/master
2023-07-29T19:40:38.199104
2021-09-09T18:12:24
2021-09-09T18:12:24
385,128,009
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
import re x= '\D' # except digits matcher=re.finditer(x,"Av V V") for match in matcher: print(match.start()) print(match.group())
[ "krishna@gmail.com" ]
krishna@gmail.com
7e52e13c53ac1563f3ed9d7fa34c1ac572f4f655
af97a81a69d100e684b8e9f02bc1b117069b9895
/Testcases_Prompt/CWE-285/codeql_1.py
72c48921bdb0f1b3a4da0b8a1a4dc8095776f265
[]
no_license
s2e-lab/SecurityEval
8de3e2f78fffa7058d79cce84fbcd8ff29c8468d
f637f67b8e8d52d641ab15903e46a41ead7e30a5
refs/heads/main
2023-06-17T22:55:08.047769
2023-06-16T16:54:54
2023-06-16T16:54:54
509,664,226
28
7
null
2023-05-27T04:55:05
2022-07-02T05:10:17
Python
UTF-8
Python
false
false
723
py
libpam = CDLL(find_library("pam")) pam_authenticate = libpam.pam_authenticate pam_authenticate.restype = c_int pam_authenticate.argtypes = [PamHandle, c_int] def authenticate(username, password, service='login'): def my_conv(n_messages, messages, p_response, app_data): """ ...
[ "lsiddiqsunny@gmail.com" ]
lsiddiqsunny@gmail.com
1e5c9651790f9642a99518766f5ef7577435ebef
0b718a2ddba42639f464730a52bdec2e6912f2c6
/python_practice/generate_reco_proto.py
1f5e810c9a628fd79e853283d90f475f109f40aa
[]
no_license
JerryWei1985/practices
1f27c3f122ca941eb935d2e695eda99061a07999
9f864b7113894996b09582dc1d8fb048ef310e80
refs/heads/master
2022-10-22T11:54:29.438240
2021-01-20T12:40:42
2021-01-20T12:40:42
191,686,921
0
1
null
2022-10-15T03:55:10
2019-06-13T03:48:23
C++
UTF-8
Python
false
false
19,113
py
#!/usr/bin/env python3 #-*- coding: utf-8 -*- from google.protobuf import text_format from enum import Enum import recognizer_params_pb2 import argparse import os # 先把通用的做了,再做各个语言的默认情况 class Platform(Enum): Server = 1 Device = 2 class GraphType(object): HCLG = 'HclgDecoderResource' CLG = 'ClgDecod...
[ "jerrywei1985@hotmail.com" ]
jerrywei1985@hotmail.com
f39460f2d5f4304353f8147a86ab718d44b4985e
4c3a14aedd331c63d8db0834b2f85bd8225b210a
/lib/python3.7/site-packages/unicon/plugins/generic/statemachine.py
ca2d3f14f1563b0730d0a5d86f6e382849fbcd9a
[]
no_license
dfab646/genie34
e4c1e8a7577790612979facac9913b2a6f709af9
b981c5457caa644ea07def4576da61c8734047eb
refs/heads/main
2023-08-16T07:20:09.517194
2021-10-25T01:06:05
2021-10-25T01:06:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,956
py
""" Module: unicon.plugins.generic Authors: pyATS TEAM (pyats-support@cisco.com, pyats-support-ext@cisco.com) Description: This module implements a generic state machine which can be used by majority of the platforms. It should also be used as starting point by further sub classing it. """ impor...
[ "help@google.com" ]
help@google.com