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
8a27d5cf919c43df37bcb664422415fc60bd850b
56f968ff8f215f0a64eb822916acf9e6039a036e
/env/bin/rst2html5.py
a506af6914bc457993707d54eb799cc534b808ef
[]
no_license
AntObr/credit-to-customer
754d9d144d1f9f49ce9aefd6e0500d76e1cde1e1
36b2a100dc65b109b72527a36556a37418b1fcda
refs/heads/master
2022-01-25T17:34:10.820544
2018-04-17T16:48:06
2018-04-17T16:48:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
#!/Users/aobrie/Documents/Projects/credit-to-customer/env/bin/python # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium witho...
[ "obrien.r.anthony@gmail.com" ]
obrien.r.anthony@gmail.com
f699cd13d0a44f84e958ae8ed9a94e8acfffe352
2e2a8df64f0d07fcea33cadb1cb9731a68fec2e3
/HyHelper/ONI_webscript.py
5be70d00624ce3937c5fd8ba6c8fa41f289b6ea6
[ "MIT" ]
permissive
aherrera1721/hyhelper
e4f7a73facd33d067766289a8fc6c2809954848e
73fccda145bcf1a979e646156343f56c40df0b61
refs/heads/master
2020-07-26T16:27:10.198397
2019-12-13T06:24:24
2019-12-13T06:24:24
208,703,410
2
0
null
null
null
null
UTF-8
Python
false
false
2,478
py
from mechanize import Browser from bs4 import BeautifulSoup def get_data(): """ Gets the Running 3-Month Mean ONI values table from: https://ggweather.com/enso/oni.htm """ br = Browser() url = 'https://ggweather.com/enso/oni.htm' webpage = br.open(url) html = webpage.read() bs = Beauti...
[ "noreply@github.com" ]
aherrera1721.noreply@github.com
15c3df7f9087494205581ad7a8a4f49a4af05841
1e56141b7d5a738a74966c5e447249b895d6bfa9
/feeds/views.py
123efd22be6571c2127cd568f41f30bd9b73f3f1
[]
no_license
Dexter009/BloggIt
685737e546739faa4450a294e2f6ff44f7ee8ddd
56a5515128d6ab34a55de248c96de0b344d3c160
refs/heads/master
2021-04-30T04:15:39.936828
2018-02-14T16:17:34
2018-02-14T16:17:34
121,531,908
0
0
null
null
null
null
UTF-8
Python
false
false
5,529
py
import os from PIL import Image from django.contrib.auth.decorators import login_required from django.core.exceptions import ObjectDoesNotExist from django.db.models import Count from django.http import Http404 from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate, logout f...
[ "noreply@github.com" ]
Dexter009.noreply@github.com
239cf91ef9a1aff1f0c3fc3aaef72f1bf10325d7
caf8ca1b140d84076d81a35b97e8995979830787
/selenium_demo/testcases/pytest/test_11.py
9d2bfc8b9e49c214fd6724c0f220d40f4c5fb07a
[]
no_license
ganmanlin/pytest-selenium-demo
2f2dd79ba6ed9af64237dde8e60670d245b88709
cfced05f28db614dc4739e5d8e1c878bd56e5932
refs/heads/main
2023-05-31T13:33:20.646475
2021-06-27T14:55:36
2021-06-27T14:55:36
380,766,595
0
0
null
null
null
null
UTF-8
Python
false
false
687
py
import pytest import allure @pytest.fixture(scope="session") def login(): print("用例先登陆") @allure.step("步骤1:点xxx") def step_1(): print("111") @allure.step("步骤2:点xxx") def step_2(): print("222") @allure.feature("编辑页面") class TestEditPage(): '''编辑页面''' @allure.story('这是一个xxx的用例') def test_1(sel...
[ "chenjing@chenjings-MacBook-Pro.local" ]
chenjing@chenjings-MacBook-Pro.local
f737a98c385e73d1190a7e43abef05f282d07481
0ae54acc15ec017797594e0deefc695ba0ff36b9
/apps/pedido/migrations/0004_pedido_totalpagar.py
7baeaebb01e4a5d06a9a3cea2c46d720de58effa
[]
no_license
yasmani0/soptec
32d0677281f5847d63ef057439caa46fa8d323e8
650ad2b3b5f5cffa6e098a9bfbc48e407a513c48
refs/heads/main
2023-06-15T18:44:51.499412
2021-07-16T20:08:26
2021-07-16T20:08:26
382,013,816
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
# Generated by Django 2.2.5 on 2021-06-05 05:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pedido', '0003_pedido_disponibilidad'), ] operations = [ migrations.AddField( model_name='pedido', name='totalPagar'...
[ "74805175+yasmani0@users.noreply.github.com" ]
74805175+yasmani0@users.noreply.github.com
3bb6cc883f0b5afe906b06fa38c40a07d3f89e99
b00881def4d59f20d06e56d3fa786547385fa725
/Project/weerstation.py
33fe0df42f5820429181e9e305c11dd2db65491e
[]
no_license
BaertMatthias/Weerstation
1b913c2f4b1e16c05c25fa2a3f170b6b28f4d41c
50cbf6b9cace536d632de0d420e88355f2ff7c83
refs/heads/master
2021-06-19T00:40:33.456435
2017-06-06T09:10:46
2017-06-06T09:10:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
from LCD import LCD from DbClass import DbClass import Adafruit_DHT import RPi.GPIO as GPIO import datetime humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT22, 4) humidity = round(humidity, 2) temperature = round(temperature, 2) import spidev import time spi = spidev.SpiDev() spi.open(0,0) def read...
[ "matthias.baert@student.howest.be" ]
matthias.baert@student.howest.be
9891a6cf044318b3237050b1335b181959c80ed8
0c9080f172d77032305cdeef26d32b332d8e7952
/comodit_client/control/exceptions.py
9dd6b28861aaec8c59489644df76fe77c23e300c
[ "MIT" ]
permissive
comodit/comodit-client
73b498a16b9a794caeed2d424d677e624c69c2d4
dac2011d0d31e740445d5877d28d5cd12b4be730
refs/heads/master
2023-07-17T06:01:37.227155
2023-04-03T09:37:57
2023-04-03T09:37:57
1,128,114
0
26
NOASSERTION
2023-04-03T09:37:58
2010-12-01T08:22:08
Python
UTF-8
Python
false
false
600
py
# control.exceptions - Exceptions for the application controllers. # coding: utf-8 # # Copyright 2010 Guardis SPRL, Liège, Belgium. # Authors: Laurent Eschenauer <laurent.eschenauer@guardis.com> # # This software cannot be used and/or distributed without prior # authorization from Guardis. class ControllerException(...
[ "laurent@eschenauer.be" ]
laurent@eschenauer.be
681915dcd5064146e70e08a4c14e6b9cf5ca866c
b9d594ebfd463e33c82f9e3180bdeb76a5618c1c
/node_sync_protect.py
add160be1e7ea928e7081cfc7814b95ba93439a0
[]
no_license
wschxida/node_sync_protect
945abda073eb0a13d62bdc61ec0bf07f87b41f54
5930146ed33d320c2bc9bb1e06c30e2d9d59a348
refs/heads/master
2021-05-27T08:11:58.282435
2020-04-09T01:44:16
2020-04-09T01:44:16
254,243,630
0
0
null
null
null
null
UTF-8
Python
false
false
7,262
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : node_sync_protect.py # @Author: Cedar # @Date : 2020/4/2 # @Desc : import pymysql def query_mysql(config_params, query_sql): """ 执行SQL :param config_params: :param query_sql: :return: """ # 连接mysql config = { 'host': ...
[ "wschxida@gmail.com" ]
wschxida@gmail.com
5b90c09f7c40e941ed2b77199bd4001e8310cd30
7f839902b841766cc46a53bfdeca5f34233d4168
/Ensemble_method_project/code.py
de120f906a881e8c8847fe2733953940c787f9f4
[ "MIT" ]
permissive
Deepthi-AJ/Best-Projects-ga-learner-dsmp-repo
bb7fcc95296dee9b0585b09a6a27713f0800541f
b9d52a29eff734696ae269cafc8407d2121b40b0
refs/heads/master
2023-03-15T18:36:48.401630
2020-05-21T14:14:22
2020-05-21T14:14:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,186
py
# -------------- from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler import pandas as pd # Code starts here df=pd.read_csv(path) df.head(5) X=df.drop('attr1089',1) y=df.attr1089 X_train,X_test,y_train,y_test = train_test_split(X,y,test_size = 0.3 , random_state =4) sca...
[ "rkkirpane@users.noreply.github.com" ]
rkkirpane@users.noreply.github.com
7dc496901fd7ae4c97c641e93d8d18edcfaf26db
f660229f0c7e0bc2f5390334cc87dbba9be45b61
/affinity.py
93abd632cda5988a96bf46b4c0ebdd05a1843fb9
[]
no_license
Francosinus/DBS
37af03358c302931e8d4724ff2dc36bf477d54bf
23ebcf069a0e68a54c3743587a685984e5fd54fc
refs/heads/master
2021-01-25T08:18:59.535456
2017-07-27T10:06:28
2017-07-27T10:06:28
93,748,875
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
import numpy as np import sklearn.cluster import distance import csv inpute = open("/home/franko/DBS Projekt/noduplicates.csv","r") reader=csv.reader(inpute, delimiter=";") output=open("/home/franko/DBS Projekt/cluster.csv", "w") writer= csv.writer(output) column= [] for row in reader: column.append(row[0]) words...
[ "noreply@github.com" ]
Francosinus.noreply@github.com
7ef0094e3da7d99e42f732c70bd9ff9e23ee8a44
ab5c23fb0c9cb2520d7cd7929d38009ca7060442
/user/migrations/0004_remove_customuser_phone.py
53fc11838962d9aa0a9e3efcbb880b06f5f2485a
[]
no_license
cliffaust/revolvemart-backend
5acc777e09cf05ff1222eea9a22c6d1376ef26fd
e0ad9dac511c5630913b062ba4e90a42e26d3855
refs/heads/master
2023-08-11T21:21:09.810339
2021-09-15T19:36:58
2021-09-15T19:36:58
406,183,740
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
# Generated by Django 3.2.3 on 2021-09-10 17:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user', '0003_bookviews'), ] operations = [ migrations.RemoveField( model_name='customuser', name='phone', ), ]
[ "kingsleyclifford2016@gmail.com" ]
kingsleyclifford2016@gmail.com
c6d2960e80a9008022afb81663105b0662db75b1
4ccb6c096ac6ba68fa91a5c257331b20ecabf16e
/testing/marionette/client/marionette/runner/mixins/browsermob-proxy-py/browsermobproxy/__init__.py
5c6d63004fbc1c652de41ad40e092b8bddc0efba
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
classilla/tenfourfox
ad7856e9e2309e8d0da2d3eed3090cadf493a413
17b23692fe309927badba0617b7679ed50d46acb
refs/heads/master
2023-07-08T23:59:21.137323
2023-04-20T05:34:54
2023-04-20T05:34:54
40,451,619
247
41
NOASSERTION
2023-06-25T08:42:34
2015-08-09T21:46:01
null
UTF-8
Python
false
false
128
py
__version__ = '0.5.0' from .server import Server from .client import Client __all__ = ['Server', 'Client', 'browsermobproxy']
[ "classilla@floodgap.com" ]
classilla@floodgap.com
090d80f2807c7f63dfe8141e4a1167570ff9c51e
cf973acca8a9f1bb6e015eeb60c9dfb620ba81f5
/management/urls.py
7f6058d83089685154623c0171f9b1c9a0295296
[]
no_license
rgegriff/menomnom
db0c341a555c1a2e057edc310a6e44160ae15bd0
0390d4767bea4bda1a3a961bebd5de6eb640dccf
refs/heads/master
2021-01-18T01:42:33.735904
2013-04-03T13:18:42
2013-04-03T13:18:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
from django.conf.urls import patterns, url import views urlpatterns = patterns("", url(r'^$', views.GeneralManagementPage.as_view()), url(r"^hours/$", views.HoursManagementPage.as_view()), url(r'^specials/$', views.SpecialsManagementPage.as_view()), url(r'^highlights/$', views.HighlightsManagementPage....
[ "root@menomnom.(none)" ]
root@menomnom.(none)
a238fa5894d968b9152395c95fae875d670d632c
b773f9c1ea92373d0d2976e08aa66a563d4fa3b7
/venv/bin/pip
ce24341335d59fc7217cbea5c4a0b101ffd35911
[]
no_license
yDeepak1889/Electronic-Medical-Record-management-using-Blockchain
35276dafcd35e95d7230b3c1ff12a6bdbf97dddb
7d525afe5a328b3fca723a7c658a8e28ee92499d
refs/heads/master
2021-04-06T08:27:21.885255
2018-05-04T07:53:06
2018-05-04T07:53:06
124,678,427
4
1
null
null
null
null
UTF-8
Python
false
false
401
#!/home/deepak/PycharmProjects/Blockchain/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip' __requires__ = 'pip==9.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)?$', '', sys.argv[0]) sy...
[ "iit2015124@iiita.ac.in" ]
iit2015124@iiita.ac.in
5f7cb71869fd9e4fd8007b8011ddd41599050f29
a4f6244e5ed787d972135efc456af6b00084653d
/K-NN/UTM.py
c7a99c54493843433a794b64bd8d63ce64bb4f80
[]
no_license
coco11563/machineLearning
18e349102332ad07b21f8c20e468de3017824e21
6fe35ec2f945d5d6ba601a05b3f6e0060dab890b
refs/heads/master
2021-01-19T06:39:44.017514
2016-08-19T15:27:08
2016-08-19T15:27:08
60,177,604
0
0
null
null
null
null
UTF-8
Python
false
false
2,303
py
''' Created on 2016年6月6日 @author: coco1 ''' import math def LL2UTM_USGS(a, f, lat, lon, lonOrigin, FN): ''' a = 6378136.49m b = 6356755.00m lonOrigin = 114.17 FN = 0 ** Input:(a, f, lat, lon, lonOrigin, FN) ** a 椭球体长半轴 ** f 椭球体扁率 f=(a-b)/a 其中b代表椭球体的短半轴 ** lat 经过UTM投影之前的纬度 ** ...
[ "coco11563@yeah.net" ]
coco11563@yeah.net
982871d8e7bf9e4dc1a68ec9e2c52cf445beee93
cec03b50138885a2a3082f4cca1aa2b6714861aa
/Internet Speed Test/log_speedtest.py
6510fcf824fd908aa09a393a0fb4d4015abf4955
[]
no_license
dassowmd/UsefulTools
92fa4d86b7cdac5c3839f89ce0d435a5ab27f728
cb9875017c99d36ba4a4c1088cb2b3679335320c
refs/heads/master
2022-03-15T15:07:24.789451
2022-03-05T22:17:29
2022-03-05T22:17:29
79,920,969
1
0
null
2017-01-24T22:58:54
2017-01-24T14:52:55
Python
UTF-8
Python
false
false
4,246
py
# C:\Users\dasso\Google # Drive\Python # Library\Internet # Speed # Test # #!/usr/bin/env python import os import subprocess import logging import sys import re import time import datetime SPEEDTEST_CMD = "C:\Python37\Lib\site-packages\speedtest.py" sleepTime = 1500 if len(sys.argv) < 2: logFolder = input( ...
[ "dassowmd@gmail.com" ]
dassowmd@gmail.com
574690fff47ed7a9e81713f6a703b4f571cfd74a
c047518e0bc0be1d1a46b734fbf53610cb8a407f
/Codeforces/1241/A.py
862b24fd35e729d307cd9822e35d720a824f4148
[]
no_license
fernandozanutto/competitive_programming
c3e006544ddba1702a37eeb437cb015713e8c2d1
cf721a7bcce6c5d5fc9f739ad729079c939fc421
refs/heads/master
2020-06-19T06:57:32.288602
2020-04-04T14:58:45
2020-04-04T14:58:45
196,607,123
2
0
null
null
null
null
UTF-8
Python
false
false
153
py
for _ in range(int(input())): a = int(input()) if a == 2: print(2) elif a % 2 == 0: print(0) else: print(1)
[ "ferzanutto1999@gmail.com" ]
ferzanutto1999@gmail.com
6f3e85c584f6c0602334be4ce82542e984e36fb9
d161be36a888fe131425c99248793cad0ce73a3e
/data_loader.py
8933f72802e6cf74eb4d61f354d694578c359540
[ "Apache-2.0" ]
permissive
nlp-kg/medknow
c7332f68571ce29d7e0fd6fc6c3c6d3d4db0ed1c
46c99d692b9099bc39ef88a5f47e4749584f7f9c
refs/heads/master
2023-03-28T00:09:24.946615
2020-01-23T12:58:17
2020-01-23T12:58:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,113
py
#!/usr/bin/python !/usr/bin/env python # -*- coding: utf-8 -* # Functions to extract knowledge from medical text. Everything related to # reading and parsing. import json import py2neo import pymongo import langid import pandas as pd from config import settings from utilities import time_log from multiprocessing im...
[ "bogas.ko@gmail.com" ]
bogas.ko@gmail.com
84ac418dd2d52f34fa1e8225a71e7e31f49eead7
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/typed_ast/_ast3/Await.py
607a263ba1aa6de55d353a12e584ae4d62546a47
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
# encoding: utf-8 # module typed_ast._ast3 # from C:\Users\84788\AppData\Roaming\Python\Python36\site-packages\typed_ast\_ast3.cp36-win_amd64.pyd # by generator 1.147 # no doc # no imports from .expr import expr class Await(expr): # no doc def __init__(self, *args, **kwargs): # real signature unknown ...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
ba87365da898457af4031b0b36b298bc772ebe8b
5f55ab13627ca048b3e5877ea31ea3e020035c66
/fab_support/heroku_utils.py
f8c23849bad5f5d0f6e1853ed602de3efeabc44a
[ "MIT" ]
permissive
drummonds/fab_support
6872e0f9c2523abe80bfce1c45def3f2755280cc
de2c9595e8cf499848f0cc5661e7f1d6465609a2
refs/heads/master
2023-08-17T03:01:26.241905
2019-12-08T18:21:12
2019-12-08T18:21:12
120,188,534
4
0
MIT
2023-09-11T15:15:24
2018-02-04T13:45:13
Python
UTF-8
Python
false
false
1,668
py
""" Utilities that work with Heroku """ from fabric.api import local import json import re import sys from time import sleep def list_databases(app=""): """ List :param app: Name of app to use if default '' will return current list :return: list of database names """ result = [] for i in ...
[ "hum3@drummond.info" ]
hum3@drummond.info
3a159715b882957fef0a068235fd680ac5fe57bd
41e4e2ba911a3cd5d32890014ec564cd312202ec
/class.py
7a43ff255505abf47f143f585a3a7510b7465730
[]
no_license
PythonStudy20161/ptyhon-study-2016-loooooooooong
1c6e4337d533172978dc17a113681de3070c9567
0df7ca586c1936f08f21f2549edbd35323d1d1b4
refs/heads/master
2021-01-10T16:10:35.944363
2016-02-15T09:27:23
2016-02-15T09:27:23
49,255,290
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
#_*_coding:utf-8_*_ #类定义 class people: name = '' age = 0 __weight = 0 def __init__(self,n,a,w): self.name = n self.age = a self.__weight = w def speak(self): print("%s is speaking: I am %d years old:%d" %(self.name,self.age,self.__weight)) #工程师继承人 class en...
[ "wangcy1202@qq.com" ]
wangcy1202@qq.com
77b72cfff8d656608f7071e4b9eab19128ccfa70
c5ba5f13a09eaa39d011aef6115eba82b6ea1a2d
/blockchain.py
384f36ddcbbf3042d16550930628e83b59683a95
[]
no_license
Bram0202/SimpleBlockchain
637d4ad99caf24a26fa16e4cdcb7bca56dedfb00
c1c656574eef33b075502fafee40befd2e00c4f1
refs/heads/master
2021-10-07T23:47:54.449303
2018-12-05T19:58:25
2018-12-05T19:58:25
160,570,845
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
# A really simple blockchain # Based on https://www.youtube.com/watch?v=b81Ib_oYbFk # Coded by Bram Bakx # Made on MacOs and Python 3.7 import datetime import hashlib # Every block in the blockchain is an instance of Block. class Block: blockNumber = 0 # The number of the block data = None # The data you ...
[ "35409298+Bram0202@users.noreply.github.com" ]
35409298+Bram0202@users.noreply.github.com
bb144c7ce9f5bd86b79ab81a75c8c30a0600ef9e
c1fe97208afe479b7ae1ee67d69866a6911564ca
/RESTapi/RESTapi/urls.py
2263238e921b2dab6b9cc25d7b275620ac985147
[]
no_license
jaindhairyahere/Python_Django
a0a46c57b6ca60d0942ae181fe28ea56bb1ee948
f170a2e38b78df698a02821a454a3baea0c358a6
refs/heads/master
2020-06-18T09:17:56.364928
2019-11-02T18:34:12
2019-11-02T18:34:12
196,249,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
"""RESTapi URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "jaindhairya2001@gmail.com" ]
jaindhairya2001@gmail.com
14f35829f8f135139c0aa2e99b2d60b13539859b
7970f2d6680136e4632ee9a8dd12604ddd3da296
/app/auth/forms.py
413fbc0d73217fcd07e68ef37e2e60b30a98de39
[]
no_license
wsl3/flask-dog
7f2c4db3bd29484cb4ce13ba644278b6c94d6a6e
f43da7a2ee927ddef3d3d7a271a4b56401e2d051
refs/heads/master
2020-03-29T11:15:36.673537
2018-09-22T04:06:03
2018-09-22T04:06:03
149,843,493
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
# encoding:utf8 from ..model import User from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import DataRequired, Length, Email, Regexp, EqualTo from wtforms import ValidationError class LoginForm(FlaskForm): email = StringField('Email'...
[ "2350622075@qq.com" ]
2350622075@qq.com
f44958f0b88a495a911e5fa382f84413c57818bf
7ec18f8ec146ea5a82394052066ea9986ce59d88
/AES_CTR-256key.py
9b8475843d1c0fa5de5c31cd5032db3dbcbefd21
[]
no_license
snehamuppala/ComputerSecurity
b260f94f34e0ea42ddb6f6e0761413aea601b379
cf84a36c2fec03c23201d9c0f0c11ee1b1a61e44
refs/heads/master
2020-04-14T04:30:04.698368
2019-08-22T05:58:04
2019-08-22T05:58:04
163,637,461
1
0
null
null
null
null
UTF-8
Python
false
false
4,223
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Sep 30 15:15:58 2018 @author: snehamuppala """ #import following libraries import binascii import os from Crypto.Cipher import AES from Crypto.Util import Counter import time print("AES in the CTR mode -256 bit key") def int_of_string(s): return int...
[ "snehamuppala@snehas-MBP.lan1" ]
snehamuppala@snehas-MBP.lan1
3782d6d2f7c29ca9075bf5626f3544a4b4345a54
96bd02743d3727c7e12824fcb472e4d4fe2a49bf
/globalvars.py
8c2e741803846893b7f327f0bad49e14dd5e7ce1
[]
no_license
barthess/ECLGenerator
1f13d11f0d350c93fb4980be5495da4e23fe1ec0
c746e5c5929425037d5668dbc4ee7cfef2153e1d
refs/heads/master
2016-09-05T20:34:59.184202
2012-05-18T12:03:50
2012-05-18T12:03:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,297
py
#!/usr/bin/python # -*- coding: utf8 -*- # log file logfile = open('error.log','w') # Некоторые константы # ширина фейковых полей для поддержания ширины колонок column_strut = 'x' * 1024 # дефолтный список колонок # данный список содержит правильные названия колонок, как их генерит CAD # они должны идти в том поряд...
[ "barthess@yandex.ru" ]
barthess@yandex.ru
fc9374a5c687930f7f70c24aa1fa404c87ed40b5
a2b598d8e89c1755f683d6b6fe35c3f1ef3e2cf6
/search/[boj]1600_말이되고픈원숭이_bfs.py
9adea0a931916597dac7a119b2bacf6cfbd9340c
[ "MIT" ]
permissive
DongHyunByun/algorithm_practice
cbe82606eaa7f372d9c0b54679bdae863aab0099
dcd595e6962c86f90f29e1d68f3ccc9bc673d837
refs/heads/master
2022-09-24T22:47:01.556157
2022-09-11T07:36:42
2022-09-11T07:36:42
231,518,518
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
from collections import deque K=int(input()) W,H=map(int,input().split()) L=[] for i in range(H): L.append(list(map(int,input().split()))) dR=[0,0,-1,1] dC=[1,-1,0,0] dhR=[-1,-2,-2,-1,1,2,2,1] dhC=[-2,-1,1,2,2,1,-1,-2] cL=[[[0 for k in range(K+1)] for j in range(W)] for i in range(H)] for i in rang...
[ "noreply@github.com" ]
DongHyunByun.noreply@github.com
e32438c91eb86f5c0c18828a86ac1fe03c58447e
21049c34adbb283c7f5e74dcdd52ea20d82b6342
/tests/confprol/test_quantic_booleans.py
9296834839b7499d7abd8c502c0a01cc1ae05138
[]
no_license
DanielBV/Confprol
79a2a03ea42bbd09a189f5c52632c20a0028360d
f9590bc2fa54ef729f47ba1c98854e6220c5c0ad
refs/heads/master
2020-06-02T04:54:41.419171
2019-09-08T08:53:04
2019-09-08T08:53:04
191,042,905
0
0
null
null
null
null
UTF-8
Python
false
false
8,938
py
import unittest from expressions.booleans.quantic_axis import QuanticAxis from main import execute from antlr4 import InputStream from expressions.booleans.quantic_boolean import QuanticBoolean from unittest.mock import patch class TestQuanticBooleans(unittest.TestCase): @patch('builtins.print') def test_...
[ "23432294+DanielBV@users.noreply.github.com" ]
23432294+DanielBV@users.noreply.github.com
55031643697f159cc378ffde4db5cf2f28880521
875757cad2e865dbffed813ed6c0e9e3a0c064d0
/kalmantracker.py
6b46e42a445bef05a1fadc1b6ed973ea5db29024
[]
no_license
domagalasebastian/pose-estimation-and-skeleton-tracking
f0981b2e869e16c6dddd24069a0b2f8af59ae404
e33a08e60e527ae2f9458ab0e4663f242977e33f
refs/heads/master
2022-04-22T18:39:43.487781
2020-04-24T12:53:06
2020-04-24T12:53:06
258,511,580
3
0
null
null
null
null
UTF-8
Python
false
false
2,194
py
from scipy.linalg import inv import numpy as np class Tracker: def __init__(self, x, bounding_box, key_points, person_id): """ Init single tracker for detected person. """ self.person_id = person_id self.key_points = key_points self.bounding_box = bounding_box ...
[ "noreply@github.com" ]
domagalasebastian.noreply@github.com
dec3a8f2aa7e5c7a87875dbd1e1a8c5e8f5f43ad
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/delta.py
17de2a8e8ab8283f9b968529f38b5cef16b161a6
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
131,990
py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.abstract.delta import ImplicitAPI import hashlib from ccxt.base.types import OrderSide fr...
[ "travis@travis-ci.org" ]
travis@travis-ci.org
ee7d397f558b64e5cab17da27e5b007f42f76fc8
f0681b8c129e8afce21e340697502230f45ce930
/venv/Lib/site-packages/com/vmware/vcenter/topology_client.py
e0bbdca3236e92ef0addbe7a6c829e7cfec9bad2
[]
no_license
dungla2011/python_pyvmomi_working_sample_vmware_easy
8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746
a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd
refs/heads/main
2023-07-05T14:56:46.551091
2021-08-20T12:19:39
2021-08-20T12:19:39
395,496,219
1
0
null
null
null
null
UTF-8
Python
false
false
30,734
py
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2021 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.vcenter.topology. #-----------------------------------------------------------------...
[ "dungla2011@gmail.com" ]
dungla2011@gmail.com
69cf7c3a5c1ab63a7ae7dcb61ca8cd54486815ce
12d7a7cdce5f180c831373a873ff4a5e96d331e8
/pykeops/examples/pytorch/test_float16_2.py
697c0d50182ca764933ee47be89b07d354f7c848
[ "MIT" ]
permissive
MrHuff/keops
db9b8c4dd18941cd3fe33af27a2493d7d9d6af05
a7f44609ba444af8d9fcb11bc3a75f2024841dfa
refs/heads/master
2020-12-23T18:43:47.441141
2020-02-21T20:50:48
2020-02-21T20:50:48
237,236,633
0
0
MIT
2020-01-30T14:57:35
2020-01-30T14:57:35
null
UTF-8
Python
false
false
2,787
py
# Test for half precision support in KeOps # We perform a gaussian convolution with half, single and double precision # and compare timings and accuracy import GPUtil from threading import Thread import time class Monitor(Thread): def __init__(self, delay): super(Monitor, self).__init__() self.stop...
[ "joan.glaunes@gmail.com" ]
joan.glaunes@gmail.com
adbb9a7a1e4db3deb6ad8946b7d5de3c7945fb7a
5490c06e109468a05dbaa9c5863c948bf1b37dd6
/volume.py
ded0b1157fd67d5133cff24699049a7b1d8e88b9
[]
no_license
openwireless/raspi_samples
08e79da7bd3110a7d66de548090ecf7d5a9b5cb8
1d7809d7d9dcc182bd4ff25e5916a994f7649da0
refs/heads/master
2020-08-24T13:18:48.580282
2020-02-29T06:59:40
2020-02-29T06:59:40
216,833,162
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
# volume.py import sys import time import mcp3008 CH = 0 try: while True: data = mcp3008.readAdcValue(CH) print("adc: {:4} ".format(data)) mV = mcp3008. convertVoltage(data) print("mV: {:4}".format(mV)) time.sleep(0.2) except KeyboardInterrupt: sys.exit(0)
[ "dai@owalliance.org" ]
dai@owalliance.org
6dfc1af33d012cf4d8a6305b2aa3c0c59006672d
ac14d024ccf1816cd4232769c4ff47ab673e8102
/07-ObjectOrientedProgramming/communication.py
8077375f2c8e97b166e394118e51a665a150259b
[]
no_license
jan-podolanko/pp1
173de537d751a2451b9af9ccba06fc3ca74f1473
aaa57ce6588037ba85bc41787359328c491dbbb8
refs/heads/master
2020-08-07T08:31:59.608327
2020-01-27T10:59:35
2020-01-27T10:59:35
213,373,271
0
0
null
2020-01-13T12:28:41
2019-10-07T12:08:11
Python
UTF-8
Python
false
false
102
py
from message import Message import sms import email x = sms.Sms() y = email.Email() x.send() y.send()
[ "jan.podolanko11@gmail.com" ]
jan.podolanko11@gmail.com
6fdf1d75a2e50ba01d5d50b38ab45d7c0428a68d
ab79ca83f97aff1f5e00d46781e0355b8e26b4c7
/LogTranslation/main.py
87925cdd8e34bfc8c58ce7150355ef3775e8d46a
[]
no_license
AngusGLChen/LearningTransfer
d966ece2b94b3287f7cf0468ae7afd9591c64d99
956c9a9e557deb959b26ae42fb46eba38fb417dd
refs/heads/master
2021-01-19T06:42:47.967713
2016-06-20T19:18:09
2016-06-20T19:18:09
61,573,656
0
1
null
null
null
null
UTF-8
Python
false
false
867
py
''' Created on Jul 24, 2015 @author: Angus ''' import os import LogTranslation.UserMode import LogTranslation.CollaborationMode import LogTranslation.SubmissionMode import LogTranslation.ObservationMode import LogTranslation.SurveyMode course_path = "/Volumes/NETAC/EdX/Clear-out/FP101x/" ''' # User mode if os.path.i...
[ "angus.glchen@gmail.com" ]
angus.glchen@gmail.com
f6e0063275462f1892e450d8ea8dbd68d671ac0d
030508decb1b6c95e7c87e95c34815543b2dbdfb
/py/py_sparkling/ml/models.py
96aa8a9c8b54bb3801530e344b66066445a332d8
[ "Apache-2.0" ]
permissive
rkamath3/sparkling-water
b80b59cd526593dabb2af50e887e931f06664df4
af9d6470dfcffbc8bf3b7086c2404130ed215f72
refs/heads/master
2021-07-22T18:10:30.337464
2019-01-04T16:50:44
2019-01-04T16:50:44
164,205,445
0
0
Apache-2.0
2020-05-11T19:43:23
2019-01-05T10:39:54
Scala
UTF-8
Python
false
false
3,222
py
from pyspark.ml.util import JavaMLReadable, JavaMLWritable from pyspark.ml.wrapper import JavaModel from pysparkling.initializer import * from pyspark.sql import SparkSession from pyspark.sql.functions import udf from pyspark.sql.types import DoubleType class H2OGBMModel(JavaModel, JavaMLWritable, JavaMLReadable): ...
[ "noreply@github.com" ]
rkamath3.noreply@github.com
df58f5e1ec17bbe279003f0d458ca5494bef6045
08ccab3c704bf8f7b783d44831c399552f6aa284
/simulation/code/data/interpret/rsi.py
42ad6b980443e332becba399f2b2d3320222ed3d
[]
no_license
artainmo/trading_bot
88dfa234f3cc21ee1d2b9271725ea14fa816a0e5
31ef810dc9ae98fb065b163ff14bb8bb4b2a9514
refs/heads/main
2023-07-19T21:21:11.925428
2023-07-07T22:25:10
2023-07-07T22:25:10
322,807,598
0
0
null
null
null
null
UTF-8
Python
false
false
1,767
py
import utils.global_variables as g from utils.classes import * from utils.file_handler import * from utils.time_handler import * def set_rsi_signal(coin, sell, buy, price=None): coin.opp["rsi"]["sell_signal_amplifier"] = sell coin.opp["rsi"]["buy_signal_amplifier"] = buy coin.opp["rsi"]["proposed_buy_pric...
[ "tainmontarthur@icloud.com" ]
tainmontarthur@icloud.com
890d57a5bfff1ebccd7bc8621e3064881da5e0ec
e2b67927b1b7113917d17c62dacedde3e9457ce9
/Assignment3/trainModel.py
c8627233580dd8e41dec95d45caab1036b4fc01a
[]
no_license
SumanSudhir/Computer_Vision
d0440b5d461437ada52ecfe71abb8b7d08bbaca1
5da6a05390c1039c26bea67bddb548d654e47fad
refs/heads/master
2020-04-22T11:48:22.184688
2019-03-26T15:24:22
2019-03-26T15:24:22
170,353,365
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
import argparse import os from shutil import copy2 import torchfile import Model from Linear import LinearLayer from ReLu import ReLu from Convolution import ConvolutionLayer,FlattenLayer from Criterion import Criterion import torch import final # suffix='.py' parser = argparse.ArgumentParser() parser.add_argument(...
[ "noreply@github.com" ]
SumanSudhir.noreply@github.com
0c77f08757363fad861f315fc7ecea7e4c7196ef
4a59e35a12af911f588224f07aab52d24fd6b044
/venv/lib/python2.7/site-packages/mbed_host_tests/host_tests_plugins/module_reset_stlink.py
8e38f6fe715b7912581f3a624a1c828f5eae39d6
[]
no_license
ryankurte/mbed-node
95caba48404e06c4f21f48a850152c08d911bbc8
3584d391fca00fc3cda138c26ae28fdbe5527d83
refs/heads/master
2021-01-22T13:23:08.506740
2017-11-02T17:40:26
2017-11-02T17:40:26
100,665,570
0
0
null
null
null
null
UTF-8
Python
false
false
2,674
py
""" mbed SDK Copyright (c) 2011-2015 ARM Limited 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 agree...
[ "ryan.kurte@trutest.co.nz" ]
ryan.kurte@trutest.co.nz
d9b0791b9147a2aa58c6341fd0be6328e8c8a3c8
ed069d7f1a4f6f8c448594f0188711782e12dc7a
/clusterpost/bigchaindb/tests/web/test_block_tendermint.py
2f789c55477a4ac65069455a2e32d792f2dc439c
[ "Apache-2.0", "CC-BY-4.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
Lonero-Team/Decentralized-Internet
d1bfb5aa53ce6dc193eefed4842f251ce4ef0035
5b55be855c0f096204911e21487b4dae54392672
refs/heads/master
2023-08-31T01:54:46.643100
2023-08-30T03:18:55
2023-08-30T03:18:55
218,808,524
516
185
MIT
2023-09-14T19:41:21
2019-10-31T16:18:59
Python
UTF-8
Python
false
false
2,425
py
# Copyright BigchainDB GmbH and BigchainDB contributors # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 import pytest from bigchaindb.models import Transaction from bigchaindb.lib import Block BLOCKS_ENDPOINT = '/api/v1/blocks/' @pytest.mark.bdb @pytest.mark.usefix...
[ "kamalandrew55@gmail.com" ]
kamalandrew55@gmail.com
8401d66cae8ef1c647fa233b5dbd596708a9903e
193bde1a9ab7c5fffbd76cfe165c47afac82e6de
/data/coco.py
f5f8e877eead61446e2e75f19d992c73d1d4ad17
[ "MIT" ]
permissive
ZTao-z/multiflow-resnet-ssd
12e1900a3ecaa8e4013fb868e15870df1f6a42d9
51f8dbbb70ce00f5b5e03e774e7f4f962523602f
refs/heads/master
2020-12-27T01:34:00.132522
2020-02-07T08:56:22
2020-02-07T08:56:22
237,720,533
0
1
null
null
null
null
UTF-8
Python
false
false
12,276
py
"""VOC Dataset Classes Original author: Francisco Massa https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py Updated by: Ellis Brown, Max deGroot """ import os import pickle import os.path import sys import torch import torch.utils.data as data import torchvision.transforms as transforms imp...
[ "1124693098@qq.com" ]
1124693098@qq.com
788f072e1d52deec996ceaf82ad64905a7504fb8
029eb1b7f66c7746f5982876eeb7c04b063768c6
/preppy/util.py
927b6542d4ab15a1e6eb40b223b1f99d5b8931f5
[]
no_license
phueb/Preppy
2910c5aeddb4fe68936255aaead35da241ddea09
0ab8b24f05cc7f17bef1ecee61bade6368bca8ff
refs/heads/master
2021-12-18T18:49:01.344945
2021-12-07T22:45:02
2021-12-07T22:45:02
216,908,086
2
0
null
null
null
null
UTF-8
Python
false
false
1,941
py
from typing import List import numpy as np import random from functools import reduce from operator import iconcat def shuffle_at_sentence_level(tokens: List[str], shuffle_seed: int = 20, ) -> List[str]: """ shuffle at sentence-level (as opposed to d...
[ "info@philhuebner.com" ]
info@philhuebner.com
a6ad23dae35f0032fdacdcd9fe3ce3b3685cadea
a518141ca3ba2b6fa63a7961b51936d9438ff022
/374 - Big Mod.py
2f05d44da61847985307d73265b4c4dc5537fdcd
[]
no_license
jlhung/UVA-Python
ec93b2c98e04c753e8356f3e4825584fae4a8663
7a0db4fecffd7ac4f377f93da41291a8e998ee9b
refs/heads/master
2022-11-28T04:47:49.270187
2020-08-10T13:19:58
2020-08-10T13:19:58
116,969,745
19
9
null
null
null
null
UTF-8
Python
false
false
516
py
''' 20180108 jlhung v1.0 ''' def mod(b, p, m): if p == 0: return 1 elif p == 1: return b % m else: result = mod(b, p//2, m) if p % 2: return result * result * b % m else: return result * result % m while True: try: b = input() ...
[ "35291112+jlhung@users.noreply.github.com" ]
35291112+jlhung@users.noreply.github.com
5fece1f998efd4af893e3696457085c23ad76158
e4da549a973dfb987fe101f66affabd04e2d69ea
/lib/dev_kits/py/sample_random_bot.py
8faa13bfd617b0b4e37caaae88d782e52580db4b
[]
no_license
dbe/blobwars
736cb3eba2a5fd9876e28e5da601f272ce4bc502
b13e0babaa4f003bf24874289ec80d05ac9f563f
refs/heads/master
2021-01-01T18:47:54.367799
2011-11-02T01:42:01
2011-11-02T01:42:01
2,654,235
2
0
null
null
null
null
UTF-8
Python
false
false
479
py
from sample_toolkit import SampleBotBase, GameStateSample, INVALID_COORDINATE from random import randint class RandomBot(SampleBotBase): def get_move(self,game_state): possible_moves = self.get_all_possible_moves(game_state) if possible_moves: return possible_moves[randint(0, len(possible_moves) - 1)] ...
[ "michel.tricot@gmail.com" ]
michel.tricot@gmail.com
2b4b1a60eec4c471dfa51f0a70d2e808fdf2e929
8247d5f604407d40335d8315fe79ea38f0d7f43a
/Intro to XLRD.py
d6a468ee10fdd87aeab41fbae4e0039b07b023a4
[]
no_license
jtsulliv/Data-Wrangling
450d95b531697cf02989b691a53444838856577c
09d441e0435ffba67dcd567c4189d706cdccf5f5
refs/heads/master
2021-01-01T05:18:49.641027
2017-09-21T14:28:01
2017-09-21T14:28:01
56,181,298
1
0
null
null
null
null
UTF-8
Python
false
false
1,890
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 04 14:11:43 2016 @author: jsullivan """ '''Reading Excel files''' import xlrd datafile = "2013_ERCOT_Hourly_Load_Data.xls" def parse_file(datafile): workbook = xlrd.open_workbook(datafile) # reading into workbook sheet = workbook.sheet_by_index(0) # spec...
[ "jtsulliv@gmail.com" ]
jtsulliv@gmail.com
e4a87ad830f53458b6245a581a732946af00a667
1af9baf72b56cbae13fc45f016c079fed47e5378
/config.py
71d491639f8afc72158efb23742fc6efb7aea97d
[ "MIT" ]
permissive
mumblepins-docker/dev-images
77b823d9818045063ba3f6bc9a8640e1e3fa542c
83bb77a96181a484ed9efcc27ca4c49391940f92
refs/heads/master
2021-01-20T10:53:48.820828
2018-03-13T17:13:51
2018-03-13T17:13:51
101,654,904
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
class DockerConfig: include_dirs = ['root-fs'] DOCKER_IMAGE = "mumblepins/circleci-dev" fill_in_data = { 'Dockerfile.meta': '### Build-time metadata ###' } save_dir = 'workspace' special_tags = { 'latest': 'stretch', 'ubuntu': 'bionic', 'ubuntu-LTS': 'xenial', ...
[ "dansull@gmail.com" ]
dansull@gmail.com
596aff5f32520950917bc78082f4e3f8ba81229b
a2bc197977491ca26b0662e3b76ee45e20b72bae
/100 exercise/no52.py
a9c2d1c3cabbbeba50bebd5dd877956676ad808c
[]
no_license
phucduongBKDN/100exercies
50cbe168d69cf6cbf17d6877a1c1fdb7efeb0308
82e59cc0ff7cbf6c9a69acaaee3a9524b0aec365
refs/heads/master
2020-05-25T10:12:16.470912
2019-05-24T13:32:10
2019-05-24T13:32:10
187,754,937
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
# Excel Sheet Column Number thisdict = { "A": 1, "B": 2, "C": 3 } j = input("Enter char: ") print(thisdict[j])
[ "phucduong2397@gmail.com" ]
phucduong2397@gmail.com
12d466c02636611357c4637d713cb7d391492899
874cb7592221cf7fa86f7d752c3a698696f7412d
/firstPass.py
0302ecca5f46333dec872fa794e8e3bab6ed4eef
[]
no_license
53apnil/Assembler_Assignment
bc48f8ed3739509d11115d7c8e969c10b9ac4e0f
bcb805be954c38a66ff2316304d8714b65a925c0
refs/heads/master
2020-09-03T07:39:41.468319
2019-11-04T04:45:36
2019-11-04T04:45:36
219,418,541
0
0
null
null
null
null
UTF-8
Python
false
false
1,890
py
import error as ERR def check(operand,symTab): for i in range(0,len(symTab)): if operand==symTab[i][1]: return i return 0 def checkLit(lit,litTab): for h in range(0 ,len(litTab)): if lit==litTab[h][1]: return 0 return 1 def checkAdd(tempStr,regTab,symTab,litTab,errorTab,size,litNo,lineNo): operSplit=tem...
[ "noreply@github.com" ]
53apnil.noreply@github.com
93851e6871cc6d70e6c8e9d14a812fcd7e0acead
2884e44c7c8b5f1dd7405fba24549e8135605ad8
/plastiqpublicapi/http/requests_client.py
ae679af90406697881039f9d58679f4a7e954e1d
[ "MIT" ]
permissive
jeffkynaston/sdk-spike-python-apimatic
d44d2464ba43c12dabe3ae3ba01ef268f73c16f3
e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9
refs/heads/main
2023-07-01T15:17:50.623155
2021-08-05T22:45:12
2021-08-05T22:45:12
393,186,601
0
0
null
null
null
null
UTF-8
Python
false
false
3,882
py
# -*- coding: utf-8 -*- """ plastiqpublicapi This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). """ from cachecontrol import CacheControl from requests import session from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry from plastiqpublicapi....
[ "jeff.kynaston@plastiq.com" ]
jeff.kynaston@plastiq.com
1f68d063652856af257f1df8c6243c1690e0fe35
04a7b23a14722f213309a0a8cb1c146d8da3f1f9
/test/test_nestedtensor.py
ba70fbf9c7c97dd2b2e892cb7a56a0f9141cb26b
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
mingfeima/pytorch
017e79723d3510d011ad46e8b63bc900f7468b4e
a2f44d82f837500c9921ecf86b90fab0dbc27084
refs/heads/master
2023-02-20T04:30:34.439394
2023-02-16T21:16:03
2023-02-17T00:25:05
138,236,721
1
0
NOASSERTION
2021-05-17T01:51:42
2018-06-22T00:49:24
C++
UTF-8
Python
false
false
109,751
py
# Owner(s): ["module: nestedtensor"] import unittest import numpy as np import torch import torch.nn from torch.testing._internal.common_device_type import ( dtypes, dtypesIfCUDA, instantiate_device_type_tests, onlyCPU, onlyCUDA, skipMeta, ) from torch.testing._internal.common_dtype import flo...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
5c7688a54ed8add5b8c146f0f4fa3bb0ac3a5514
ce37d136e932a08e82cae57aef67ced6d36f55fc
/elevennote/src/accounts/views.py
a31b8f5ea79b0291e86492dc1cbb146b3e56856d
[]
no_license
vk59/cs102
33f16158c8b2ae117e04e74fc00e41420a8d737f
202536377147d8e92c82c4a1f02a0579044c1ebe
refs/heads/master
2022-12-22T10:29:16.646896
2020-08-23T17:21:10
2020-08-23T17:21:10
211,481,266
1
0
null
2022-12-08T09:53:46
2019-09-28T10:09:04
JavaScript
UTF-8
Python
false
false
1,415
py
import random from decouple import config from django.contrib.auth import authenticate, login from django.views.generic import FormView from django.shortcuts import redirect from .forms import UserCreationForm from django.core.mail import send_mail class RegisterView(FormView): template_name = 'registration/reg...
[ "jkostylev592@gmail.com" ]
jkostylev592@gmail.com
646fdae2a5d2507b13d577d67ece3bb4d15666a1
711b0851cbfbf1c8aecdb772c921910e0d42e4c1
/app/base/base.py
b1f7e6cf4edb2ecc85fa2ffef706a6119cf59156
[]
no_license
FlashXFork/falcon-example
652dc9780a6919d574cd8388bc7a446bb91e63b3
5c9475c06ae63d57b1142561cffdf703f24efd8b
refs/heads/master
2022-01-09T04:36:25.342467
2018-09-27T18:22:25
2018-09-27T18:22:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
20
py
class BaseAPIClass
[ "connect.anirudh@gmail.com" ]
connect.anirudh@gmail.com
296950f78c5f7d827df946aa9b259ea8dd33b247
3a440f725a95e0963fef518c05d1790034d75ba7
/slipy/spectrum/etc/getitem.py
43a7f43afbd55b524df14efc58fa1acb5eed88e5
[ "BSD-3-Clause" ]
permissive
glentner/slipy-dev
ac6990a710306f31274d12487a421a4479c36e74
db8fa6ada3ce3246879d5aae9b0f150c56c23382
refs/heads/master
2021-01-17T23:38:19.511679
2016-01-14T18:59:08
2016-01-14T18:59:08
49,592,067
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # Copyright (c) Geoffrey Lentner 2016. All Rights Reserved. # slipy/spectrum/etc/getitem.py # TODO: etc/getitem.py """ """ def _getitem(self, key): """ """ raise NotImplementedError()
[ "glentner@nd.edu" ]
glentner@nd.edu
f43f7781fe91298f8cac39f9eca02476c6049fa9
2bf91522311f2f76ab2383bff6b87ef61b614030
/rango/models.py
f8a99e2864a53f12adbb22d2fa781b6e46ecb25a
[]
no_license
AnnaB0/Tango_with_django_project
42ef5247ec5e43546150686d65a9bcb93d5fbf54
b6509a62a8dea6e512519d8706a760f2c03a8cce
refs/heads/master
2020-12-14T00:44:47.709702
2020-02-14T17:35:20
2020-02-14T17:35:20
234,581,472
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
from django.db import models from django.contrib import admin from django.template.defaultfilters import slugify django.contrib.auth.models import User class Category(models.Model): NAME_MAX_LENGTH=128 name=models.CharField(max_length=NAME_MAX_LENGTH, unique=True) views=models.IntegerField(default=0) ...
[ "2373329b@student.gla.ac.uk" ]
2373329b@student.gla.ac.uk
672b680c38cdfd95904425dd31e0b8dd9d43dae0
d9fb2e6c1ae4ccc8901b61d2fae787603f28755e
/twitter_nlp_toolkit/tweet_sentiment_classifier/models/__init__.py
2526ee4027af336b77fdc7c407968b14fc962460
[ "MIT" ]
permissive
markok20/twitter-toolbox
1f59d92aa242a2dbec481b6e1755991d46124ef0
5e4b7881923394392619a5ced22857772cccb08b
refs/heads/master
2022-12-29T20:26:57.405675
2020-10-05T23:22:39
2020-10-05T23:22:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
from .bow_models import * from .bert_models import * from .lstm_models import *
[ "46228485+eschibli@users.noreply.github.com" ]
46228485+eschibli@users.noreply.github.com
a0a6adbb51fbc0d45b803132e2002d4d8fe25008
28691ec55ebce9ec7045d12ea9675932ce12d671
/py2ecotect-project/branches/sandbox/py2ecotect/application/timer.py
66c9eba970f638ae9c19e2b45578438bed4321b8
[]
no_license
ianclarksmith/design-automation
1e71315193effc0c18b4a8b41300bda6f41a3f09
e27cc028fe582395f4a62f06697137867bb0fc33
refs/heads/master
2020-04-22T22:28:39.385395
2009-10-26T02:48:37
2009-10-26T02:48:37
37,266,915
0
0
null
null
null
null
UTF-8
Python
false
false
5,503
py
import py2ecotect as p2e class Timer(object): #=========================================================================== # Commands #=========================================================================== def restart(self): """ Restarts the internal timer. ...
[ "manikewell@d56020b2-6ac5-11de-89a9-0b20f3e2dceb" ]
manikewell@d56020b2-6ac5-11de-89a9-0b20f3e2dceb
04fb4b01c64b77e2d2a2dffc669bf5135d1cad0c
6dbe812830c74ba1ac9d651edb01fd2708c7416a
/renovateproject/cases/migrations/0030_service_type.py
69b181216b595cd5a97631eeb52eb982225e7e78
[]
no_license
zhengjieAdriod/myproject
d60f78422e9b8f2db54e96a9545a7b97ec9bfde9
9a5b418b15e3a7705c15815a61d0e22f9862a427
refs/heads/master
2021-01-01T18:21:14.436932
2017-09-25T10:04:52
2017-09-25T10:04:52
98,318,395
1
0
null
null
null
null
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-08-23 05:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cases', '0029_schemeinservice'), ] operations = [ migrations.AddField( ...
[ "zhangxiaoqi@ichinait.com" ]
zhangxiaoqi@ichinait.com
a8ae10cb9b112f6f3e8db92fe4e479f238c984c2
66b4f2ff918ee9d3bf0e31a6cc8a08f4920fb497
/tool.py
eb25fcb7eb1f4e06e1e7ba9c136bfd2fa59fe1a6
[]
no_license
svonton/Project--Memorization-Tool
dcd7b8a8a5e81fb1f7b0b76f833ae13f48b6cb6e
ccb6628987655d81bd856982c5c6d3a6f0cc0d28
refs/heads/main
2023-04-24T17:25:47.616761
2021-05-17T16:27:38
2021-05-17T16:27:38
368,252,491
0
0
null
null
null
null
UTF-8
Python
false
false
4,269
py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy import Column, Integer, String from sqlalchemy.orm import sessionmaker invite_message = """ 1. Add flashcards 2. Practice flashcards 3. Exit\n""" sub_menu_message = """ 1. Add a new flashcard 2. Exit\n""" pra...
[ "56838368+svonton@users.noreply.github.com" ]
56838368+svonton@users.noreply.github.com
6a089bb1e07bd373e43a4e28f81cfc6919ec446b
de296bcc3dda26dbaf876711c17d0bbfee342393
/run_configs_lstm.py
0108ab36a722a2f48bdf12022f5e03114f3f398d
[]
no_license
vedhasua/tiny_emotionet
9d55f45256937b406e82c2257ecedc647f10e3ce
228aaf922833217ae2e0f159ebf933a377b07bb4
refs/heads/master
2021-05-21T01:01:46.618630
2020-08-31T09:24:40
2020-08-31T09:24:40
252,478,653
4
0
null
null
null
null
UTF-8
Python
false
false
3,867
py
from deepemotion_keras import main param_given = True #f culture = 'German' #f eval_cross = True #f modality = 'audio' #f get_turn_feature = True #f uncertainty_target = False #f invert_std = False #f loss_unc = 'ccc_2' #f weight_unc = 0.5 ...
[ "megonnashop@gmail.com" ]
megonnashop@gmail.com
2a2073d56153bd0c9fbc7ba6d2c12d2005b41b1f
8e79b76bc1f67291cef9118eff4adf3f529235ba
/210110_졸업작품3.py
00304439eb05e619e5a6ba253136b503de244c13
[]
no_license
hacks0921/2021year
cdac5f8218aa41d3b6fc551f2d72456ff04d5144
b375cf180c4f10f2c7fc41b2d5c06bb0bcb658f3
refs/heads/main
2023-06-06T17:47:20.817199
2021-07-08T23:16:19
2021-07-08T23:16:19
328,184,451
0
0
null
null
null
null
UTF-8
Python
false
false
3,723
py
import sys from PyQt5 import QtWidgets from PyQt5 import uic import os import openpyxl from openpyxl import Workbook from openpyxl.drawing.image import Image from openpyxl import load_workbook import shutil from PIL import Image from PyQt5.QtCore import Qt,QThread,pyqtSignal import time class Form(QtW...
[ "noreply@github.com" ]
hacks0921.noreply@github.com
c46f8dae7fd09611eb31831a1cfcf7515a1fe8be
0726c911c1976871326aa05315b2c6203a08ca7e
/Part2/data_show/scatter_squares.py
b5d1b6ac57c85f3da9c95a2af2676492352e549d
[]
no_license
chaojimali666/core_python
e40c96f86f5eb102ed0d37aa601110aae5680097
6dd9d070dc69431c2a81f686adb518c603555e14
refs/heads/master
2020-04-27T23:58:14.574105
2019-03-10T09:00:38
2019-03-10T09:00:38
174,798,577
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
import matplotlib.pyplot as plt x_values = list(range(1,1001)) y_values = [x**2 for x in x_values] plt.scatter(x_values,y_values,c=y_values,cmap=plt.cm.Reds,edgecolor='none',s=40) plt.title("Square Numbers",fontsize=24) plt.xlabel("Value",fontsize = 14) plt.ylabel("Square of Value",fontsize = 14) #设置刻度标记大小 plt.tick_pa...
[ "wuyongqi@pku.edu.cn" ]
wuyongqi@pku.edu.cn
d2452f37382def6e2f7783ebe775609f57ee6871
337d17b845f5fdd7f32f6a0607e494eed488a601
/exercism/python/allergies/allergies.py
94996a9f501f4e4cd5f60208ca0a0a5f52f0d875
[]
no_license
karsibali/solutions
e6130abe026a26558434239cde39c6a14a9712ba
4ba5d7ac41fecc87491cae2c88293bd798db31fd
refs/heads/master
2020-04-29T00:13:34.168323
2018-12-27T15:43:26
2018-12-27T15:43:26
175,686,183
1
0
null
2019-03-14T19:27:00
2019-03-14T19:27:00
null
UTF-8
Python
false
false
520
py
class Allergies(object): ALLERGENS = ( 'eggs', 'peanuts', 'shellfish', 'strawberries', 'tomatoes', 'chocolate', 'pollen', 'cats' ) def __init__(self, score): self._allergens = set( a for i, a in enumerate(self.ALLERGENS)...
[ "ozan.onay@gmail.com" ]
ozan.onay@gmail.com
2df5454fd3d14ee509a6de1f6940893dc8473334
f1ee89e8ae5bcbe40602fd520df44b1ce10cfabc
/check.py
1f00caf8f7121a6d25473202b1021c205430959d
[ "CC0-1.0" ]
permissive
fenajojuk/social-media-hacker-list
30400630510cd11492d335d9a6ba774a4729dac1
c725bead4e12c3b37b506338d4607bc9a4fb82f2
refs/heads/main
2023-06-23T22:53:39.004996
2021-07-27T19:13:12
2021-07-27T19:13:12
390,160,789
1
0
CC0-1.0
2021-07-28T00:04:24
2021-07-28T00:04:23
null
UTF-8
Python
false
false
2,711
py
"""check all urls in readme for ~OK (acceptable) response""" import re import sys from json import loads from requests import request from urllib.parse import urlparse from dateutil.parser import parse from datetime import datetime TOKEN = sys.argv[1] if len(sys.argv) > 1 else None LIMIT = int(sys.argv[2]) if len(sys...
[ "neea.rusch@mobilefirst.me" ]
neea.rusch@mobilefirst.me
2dac4e05c6c0a13aed4ccf25c89ee088301f0655
9bd634bcb47955c598f8134e98f3b3c4ec003bad
/Module3/practice/02_task_Fraction.py
3915b28d9802919372f60a22e6c9a8b768739aae
[]
no_license
EgorF1/SpecialistPython2_v2
2ee1e1e9610772bea9d9083fc4d308500c8b91aa
36a7fb16c2fcd9ad0d100ff86c747a32f7fb6562
refs/heads/master
2023-04-02T08:27:44.483856
2021-04-05T12:02:27
2021-04-05T12:02:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
# Задание "Простые дроби" # Сюда отправляем задание с классом дроби class Fraction: def __init__(self, fract_str): # Дробь в конструктор передается в виде строки # А мы храним дробь в виде self.numerator = ... # числителя self.denominator = ... # знаменатель # целую часть перебрасы...
[ "t89236238012@gmail.com" ]
t89236238012@gmail.com
cee5d8fad0b945c2ff08e6e8fc785439dfb414ca
35f0ca560a2815561a5a69d6b5435437a5386d82
/카펫.py
f26bfeded6ac1d5ddb336bb501cf5b0a77357d10
[]
no_license
celeist666/ProgrammersAlgo
bb4a6363682a754b3a488c4355e3fe1a46e47e40
675dd27a02b9b50e6250125f33b18692a8b065b9
refs/heads/master
2022-12-11T15:42:13.858190
2020-09-11T01:21:43
2020-09-11T01:21:43
283,899,230
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
# red부분의 제곱근값 이하이므로 이를 완전 탐색해서 red의 가로세로를 알아낸다. def solution(brown, red): for i in range(1, int(red**(1/2))+1): if red % i == 0: if 2*(i + red//i) == brown-4: return [red//i+2, i+2]
[ "athebate@gmail.com" ]
athebate@gmail.com
6e7c08a6e30b14024e358e4c72154aa2fda938c6
d273f5b023f7d6e7e2a1050571ebd47f661f8200
/general_operations/geometry_shapes/circle.py
aead7db6a138197648d0388cfddea8693a68d174
[]
no_license
TiphaineL/magnet_position
1d756e2b9d26776116a86e1d4ec559d096300e51
2133828ec34cb73dda18c8bc176ab1ac2a15b6b3
refs/heads/master
2020-09-01T05:14:27.660266
2020-05-01T04:28:35
2020-05-01T04:28:35
218,887,872
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
import numpy as np import matplotlib.pyplot as plt class circle: def __init__(self, center,radius,orientation): self.center = center self.radius = radius self.orientation = orientation def calculate_circle_all_coordinates(self): self.x_coordinates = np.arange(self.center[0] ...
[ "lagadec.tiphaine@gmail.com" ]
lagadec.tiphaine@gmail.com
3a1bed5164417b2da92caffdfc92db2b84c1a9ac
1b8d162160f5ab6d6a6b8940b8ab83b482abb409
/tests/query/test_bool.py
6dea261aa5c66f2089120c8aa168e698734ae55f
[ "Apache-2.0" ]
permissive
jlinn/pylastica
f81e438a109dfe06adc7e9b70fdf794c5d01a53f
0fbf68ed3e17d665e3cdf1913444ebf1f72693dd
refs/heads/master
2020-05-19T14:07:38.794717
2014-07-23T23:43:00
2014-07-23T23:43:00
10,442,284
5
1
null
null
null
null
UTF-8
Python
false
false
1,654
py
__author__ = 'Joe Linn' import unittest import pylastica from tests.base import Base class BoolTest(unittest.TestCase, Base): def test_search(self): client = self._get_client() index = client.get_index('test') index.create(options=True) doc_type = index.get_doc_type('helloworld') ...
[ "joe@venturocket.com" ]
joe@venturocket.com
4bd7b939b951f4344a99f0ce9271f9b5aca3f91f
573fa4524ea8be37d0bcc2e3195d9529235f577b
/uvicore/auth/authenticators/base.py
00e0788e542e4087320aad0db3122c3e0b19a2d4
[ "MIT" ]
permissive
webclinic017/framework
72753f541f3c7f2cb13ae314785f23fb56ae5908
9c21b85e9e470c6d789899340332a9abd0b26ab1
refs/heads/master
2023-09-04T07:37:57.966539
2021-10-15T19:36:42
2021-10-15T19:36:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,734
py
import uvicore from uvicore.support import module from uvicore.support.dumper import dump, dd from uvicore.http.request import HTTPConnection from uvicore.contracts import UserInfo, UserProvider from uvicore.typing import Dict, Optional, List, Tuple from uvicore.contracts import Authenticator as AuthenticatorInterface ...
[ "mail@mreschke.com" ]
mail@mreschke.com
1654d27a923d58b9d627a5fe61e68b0b1a04d947
c065ff2a6a377aea2303b7b8482558049958a7ec
/toydrill/1562239654/tactile.tac
23ebffe0c957aeec513c0a3051c9be9817663a24
[]
no_license
waedbara/vision2tactile
7bc9861eecb4247fd254ea58dc508ed18a03b1af
edbc9dfee61b4a4b1f0caebb2f16faef090dff32
refs/heads/master
2022-04-02T20:43:16.621687
2019-12-11T08:07:39
2019-12-11T08:07:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
290
tac
,3595,3733,3650,3703,3508,3644,3718,3552,3572,3502,3583,3725,3510,3461,3386,3379,3285,3455,2995,2841,3738,3710,3697,3568,2008,2012,1859,2110,2628,3230,3458,3318,3390,3200,3240,3268,3288,3261,2972,3211,3470,3255,3348,3351,3302,3361,3304,2866,2734,3482,3468,3470,3374,1997,1996,2863,2093,2468
[ "brayan.inf@gmail.com" ]
brayan.inf@gmail.com
b770a1573629fd73844895566f2af2b7f90b59b2
5db507026cf745767195c2134b3291f17abd7a1d
/수업/5주차 수업내용/ball.py
dc6a71bae978c2b1db56e560dd51e41e1e9f171f
[]
no_license
LEEMIREUK/2DGP
1430ee01a1fad4e9ea568782d2b06092a036ef05
7112606622377e7f5e75db753102ed70a6820325
refs/heads/master
2023-01-29T08:04:43.458759
2020-12-04T09:00:21
2020-12-04T09:00:21
294,226,158
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
from pico2d import * from gobj import * import gfw_image class Ball: balls = [] def __init__(self, pos, delta, big=False): imageName = '/ball41x41.png' if big else '/ball21x21.png' self.image = gfw_image.load(RES_DIR + imageName) self.pos = pos self.delta = delta self.r...
[ "sslejds@naver.com" ]
sslejds@naver.com
d1710bafd9de4a1e82dbe146ab0812f32a4d79fd
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-vod/huaweicloudsdkvod/v1/model/confirm_asset_upload_req.py
abcc2de26b8e169ce1f8a8e0688358f836ba95d3
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,796
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ConfirmAssetUploadReq: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
5d3d54ab106ea1896ca64c8ccc21053587f74482
7bd2e8be5f7c85814b65ea89c8010579177c9bd7
/view.py
3fa5d0224688faacaa25e7026136572d30b66f49
[]
no_license
13580769346/bj18
e7f9f339185302d3812c40808a69acc0564fe217
ada9e50d9f7cff44427da9d27e59539c0b520136
refs/heads/master
2020-08-23T07:53:58.937629
2019-10-21T14:49:01
2019-10-21T14:49:01
216,574,966
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
from django.http import HttpResponse import time def index(request): return HttpResponse('ok')
[ "495431861@qq.com" ]
495431861@qq.com
209ab1d35b27d2962dc6d5a2f093da0fd655bb9a
3a80dc963659b662d289231f544f0ac60075e83c
/exercises/05_basic_scripts/task_5_3a.py
e8517344b7f10185db427c3223b8ba08d47a8fb6
[]
no_license
notwhale/pyneng-examples-exercises
c1c6ee2d2fc935b63a7cd609900317d1ede574e7
8c3c997132096180f2e835e55c840a80fb513c58
refs/heads/master
2023-05-23T04:00:43.318285
2021-06-15T04:21:52
2021-06-15T04:21:52
287,457,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,593
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Задание 5.3a Дополнить скрипт из задания 5.3 таким образом, чтобы, в зависимости от выбранного режима, задавались разные вопросы в запросе о номере VLANа или списка VLANов: * для access: 'Введите номер VLAN:' * для trunk: 'Введите разрешенные VLANы:' Ограничение: Все...
[ "notwhale@gmail.com" ]
notwhale@gmail.com
5f603c43da8418866b1c607b364dd64f03f63bf2
06a76cc0c398240c04acee0d8514f5f047c9ab9b
/tests/test_cleaning.py
da0ff654d7c513e600ee46d6c692dcff3439e6bc
[]
no_license
1eg1on/cs_go_parsing
aec5ce31eb50a2b51b939bb29f4bdc1717c4577e
d3e3176fe615d4947cb4ca5e250358a4acb508c9
refs/heads/main
2023-08-17T11:13:00.969395
2021-09-24T12:14:03
2021-09-24T12:14:03
409,950,917
0
0
null
null
null
null
UTF-8
Python
false
false
2,794
py
import pytest import pandas as pd from csgo.parser.cleaning import associate_entities, replace_entities, remove_dupes class TestCleaning: """Class to test CSGO data cleaning functions""" def test_association(self): """Test entity association""" a = ["misutaaa-", "ZyW0o//", "peeter"] ...
[ "maxim.komatovskiy@skoltech.ru" ]
maxim.komatovskiy@skoltech.ru
4b9296cf929939a105afe6f79ff869b0a5287bbf
e2197a4c8502138c0cf2d8219527aa7e2b5980c6
/assignments/six/q2.py
0b0866769abc11e56792ea56aa982925a85f1a0e
[]
no_license
sircpl/stanford-algorithms-1
af5efc610648fca38e8b8447670ff9d4365a568a
7bb9b319b52080f6ddbc64566572c1ef36c60aa8
refs/heads/master
2021-05-29T15:12:06.516409
2015-07-28T04:24:29
2015-07-28T04:24:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
__author__ = 'cman' from utils import data import heapq def _rebalance(minheap, maxheap): minlen = len(minheap) maxlen = len(maxheap) if minlen > maxlen: if (minlen - maxlen) > 1: minval = heapq.heappop(minheap) heapq.heappush(maxheap, -minval) else: if (maxlen ...
[ "colin.p.lancaster@gmail.com" ]
colin.p.lancaster@gmail.com
3887ef5ba797cc8c6afd0e1c1b5fca46c761706d
f5e642d33aa2cbcc147646cf0c827bc2098e7eb9
/python3/varaiable_with_incremental_digit.py
d835bed0a6f51117a4692e48903ebceef1ca3f2c
[]
no_license
keeeeeeeeeeta/MySandbox
9d194e5656d53df997b6266d5e3cd2e1062eec59
65fbb1f5e185d636819b3be20dcf5bb33aecee73
refs/heads/master
2020-03-27T07:18:53.859242
2018-08-26T13:17:03
2018-08-26T13:17:03
146,180,928
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
ans_candidate_list = ["cat", "dog", "bird", "penguin", ] num_answers = len(ans_candidate_list) #num_answers = 4 #ans_candidate_0 = "cat" #ans_candidate_1 = "dog" #ans_candidate_2 = "bird" #ans_candidate_3 = "penguin" #ans_candidat...
[ "megalomania_12@hotmail.com" ]
megalomania_12@hotmail.com
88c4468df4f2f59a62715b68ba38cca6fbdcf5cc
7bbcfd9a8ba15476cc1d186587120d46ffe08009
/TrdVwSpider/spiders/TradingView.py
e96d7790f27bd6233848947a2925b55236b0ef1d
[]
no_license
rasoulkhaksari/Async_Scrap_Websocket
a8ffc30ed4e34eea01bf0131106704536a2ab4ee
8eb693ed695d5b7872e468ae51e3ebd4841db9d4
refs/heads/main
2023-07-16T00:37:50.204952
2021-08-27T00:24:10
2021-08-27T00:24:10
400,337,929
2
3
null
null
null
null
UTF-8
Python
false
false
855
py
import scrapy class TradingViewSpider(scrapy.Spider): name = 'tradingviewspider' start_urls=['https://www.tradingview.com/markets/cryptocurrencies/prices-all/'] def parse(self, response): for tr in response.css("#js-screener-container table tbody tr"): yield { 'Title'...
[ "rasoulkhaksari@gmail.com" ]
rasoulkhaksari@gmail.com
cb520c6f7226e6d93db405f5b980098484172815
fa05f4126ab47814159936e9e686dfd9519a1302
/MovieListProject/urls.py
626ebb48f844c22161c365f7d1fdcabb810d08e2
[]
no_license
paridev/MoviesList
4192aaaa724bae348c7aed5efd2881fcb31205fd
2dab6f5ef609d48235cb7676f84020a1f4820e39
refs/heads/master
2022-12-30T12:34:08.773162
2020-10-04T20:36:43
2020-10-04T20:36:43
301,220,721
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
"""MovieListProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "pari.sha.dev@gmail.com" ]
pari.sha.dev@gmail.com
bf27f64704824bf3d156ec80e7c388c25163aad4
54b5dc2323a5166ab0a61acaa01794f9b14cb1df
/brute.py
a0abc02d9ca2d25dd10575f1c4fce49b082a3c34
[ "MIT" ]
permissive
MikeWent/cf-hash-bruteforce
b7a2e46c7b79ad486611997779af0bf73bec11ed
d98131596c584fac16b670696548bb78b8895656
refs/heads/master
2021-09-02T09:33:37.686439
2018-01-01T13:38:07
2018-01-01T13:38:07
105,568,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
#!/usr/bin/env python3 import hashlib class COLORS: HEADER = '\033[95m' BLUE = '\033[94m' GREEN = '\033[92m' ORANGE = '\033[93m' RED = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def get_hashes(text): text = text.encode('utf-8') md5 = "MD5: " + hashlib.m...
[ "git@meew.me" ]
git@meew.me
fc1cd42e2c9a348ff35531e0e0e89433005fd76a
c2499b131c1936107638555eb524c733962455ec
/testcases/test_case_1822.sikuli/test_case_1822.py
b4fa613cc0a8da2613e79fed5f61163f67bee522
[]
no_license
liupeng330/mac_automation
b9fbfcd1ea53691d22951ce82de30f0dace4b09e
a53f8a12d545f06fecb5bfae6d4cc3aab68bc2df
refs/heads/master
2021-01-20T09:01:52.383478
2015-07-28T10:16:39
2015-07-28T10:16:39
39,117,004
0
0
null
null
null
null
UTF-8
Python
false
false
2,331
py
import os from nose.plugins.attrib import attr import time import helper from sikuli import * from global_config import * from controls.sign_in_control import * from controls.rt_control import * from controls.system_tray_control import * import ops.operations as op from base import * class TestCase_1822(TestCase_...
[ "330liupeng@gmail.com" ]
330liupeng@gmail.com
a5dfde187c82574476f24c98be4e7986b5c80b60
9f51f10153db959a9d57e98f51b69a1ec0b8a57f
/data/SegmentationDataset.py
7c0e922868b51a8e725beb8f23842f26db099766
[]
no_license
StanfordDataScience/dssg_gsv
3b2b71feac57ba91ae94c7c6adc7bd02f8a8f39a
f64c688d7343a7c6606d5a1a4a894b26dc47791e
refs/heads/main
2023-07-27T19:47:26.072137
2021-09-10T20:55:23
2021-09-10T20:55:23
376,937,000
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
"""SegmentationDataset.py ------------------------------------------------------------------------- Created by: Shubhang Desai Date created: April 2021 Last revised: June 15, 2021 Project: GSV Subproject: ml-buildings ------------------------------------------------------------------------- Abstraction for a Cityscape...
[ "acf67@cornell.edu" ]
acf67@cornell.edu
9809a6eed241dc36cf145acf485b56a0c367148e
077dbaa15e31d0fab8e26cda8e59b0582a13a11b
/bios/urls.py
317886f62c6e735324bf95653b2c56d182b3dc29
[]
no_license
thurloat/results
ad0794056f7bf215415935cb9db569ad5dcdeb61
183f6ef86ccc01242d1da98bc05d2f8bf17a2303
refs/heads/master
2021-01-19T04:52:20.688810
2009-08-14T14:36:57
2009-08-14T14:36:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
#!/usr/bin/env python # encoding: utf-8 """ urls.py Created by Adam on 2009-07-02. Copyright (c) 2009 __MyCompanyName__. All rights reserved. """ from django.conf.urls.defaults import * urlpatterns = patterns('bios.views', (r'^$', 'show_bios_overview_mobile'), (r'^img/(?P<id>.+)/$', ...
[ "adam@Thurloat.local" ]
adam@Thurloat.local
be242b756ac86cf439b6ea3566fdcc7c02f809ee
b51dae034662f95d34b79a3f89e234d077443433
/Codes/11_Modules&Packages.py
5ce00156307424652b0a6cd79f36837e4ca522be
[]
no_license
busratican/PYTHON
555f6dfeb86e4503a6ec465670d87355a63bb533
a1265b92c4ffd0e4b90ef43186497b9b29c1ecba
refs/heads/master
2020-03-19T12:17:26.211510
2018-06-24T10:58:05
2018-06-24T10:58:05
136,508,317
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 6 21:02:48 2018 @author: Busra """ #Modules and Packages #module:piece of software that has specific functionality.Each module is a different file. #for example,lets we module math operation like addition and substraction: #MODULES #.../math #../math/addition.py #../mat...
[ "busragul1022@gmail.com" ]
busragul1022@gmail.com
6271b04087343064f71998a629e765387f373ed3
d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496
/com.CheckProofing/Test_w_04_Palette_PO_T4_LastChance/Utility_Page.py
76ab669f775bbd10411bd8701874ad2512ed09ac
[]
no_license
ahmed-test001/python
21a27248c4571a13c0ed4dccab256aede1beea3a
eab59b9a54fae1a51fbc18c391599eb3b0e28b3d
refs/heads/master
2023-03-10T21:00:54.634028
2021-02-27T05:31:58
2021-02-27T05:31:58
342,778,794
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
import glob import sys import os sys.path.append(os.path.join(os.path.dirname(__file__),"..")) class utilityPage: unique_list = [] def write_Category_URL(self): path = 'C:/Users/a.ferdous.CORP/PycharmProjects/com.CheckProofing/Test_w_04_Palette_PO_T4_LastChance/creative/*.htm' with open('../T...
[ "ahmedu.ferdous@gmail.com" ]
ahmedu.ferdous@gmail.com
b4fcabcc52d7108677b0248e2da7f62e36253e79
89e79c0a3f33de5fc03eec13c3346131b447a748
/searchAgents.py
95fa7a2539c5853b31eedb3efd29133b02fa9412
[]
no_license
gutorsantos/pacman-berkeley
09ec7c8be4a6a9ef3b0a901a8167fab867cf0276
df13c0b83ed06bffa794fa7271e1eef94d5a82bc
refs/heads/master
2023-07-08T09:44:30.715966
2021-08-12T00:32:35
2021-08-12T00:32:35
395,149,411
0
0
null
null
null
null
UTF-8
Python
false
false
22,793
py
# searchAgents.py # --------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley...
[ "gustavo.r.santos@outlook.com" ]
gustavo.r.santos@outlook.com
683c47aa2f3a2e18a964daa205fbf11433d07209
7e3d11d117aa42a729af2775aab66d9466a9b390
/stock_class(starterFile).py
8c7397ac1a55aaa9cd6e40aa0226129e27b4f468
[]
no_license
ge8matt/CEIS150-Course-Project
87bb9562e1cb875f2c5e1eb2de4554121a9f0290
676b8ca7731e7e51d344502c065d5a8989e6dac2
refs/heads/main
2023-08-14T22:16:31.214000
2021-10-06T02:46:28
2021-10-06T02:46:28
402,296,925
0
0
null
null
null
null
UTF-8
Python
false
false
5,012
py
# Summary: This module contains the class definitions that will be used in the stock analysis program # Author: # Date: from datetime import datetime # Create Stock class here class Stock: def __init__(self, symbol, name, shares): self._symbol = symbol self._name = name self._shares = s...
[ "mlau@my.devry.edu" ]
mlau@my.devry.edu
b1aa7ea3141770bd399797efad6d17bf39deb627
ef472552e618b5cb66e2d1b8040bcc99fae915c4
/generator_sample/gen_sample.py
0e01ef3817c1708a9e5451d9085cc8ce05cb210d
[]
no_license
kumarhardik47/python-tutorials
544c1786081c6a2b7e40f2840f7d1745a146367b
e965febc907987b3b54ef16a9ec51bdc504fc1ed
refs/heads/master
2020-03-26T23:27:09.475974
2018-09-07T09:16:55
2018-09-07T09:16:55
145,542,824
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
import os class Fib: def __init__(self): self.a = 0 self.b = 1 def __iter__(self): return self def next(self): retval = self.a +self.b self.a = self.b self.b = retval return retval fib = iter(Fib()) print 0 print 1 for i in range(10): print next(fib)
[ "kiran@localhost.localdomain" ]
kiran@localhost.localdomain
f0e53c98f91c5f065040c630715d6ab7abe78881
2e5c0e502216b59a4e348437d4291767e29666ea
/Flask-Web/flasky/Lib/site-packages/dns/rdtypes/ANY/HIP.py
1c774bbff4eab998e5b99baee67f99272e514e84
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
fengzse/Feng_Repository
8881b64213eef94ca8b01652e5bc48e92a28e1f5
db335441fa48440e72eefab6b5fd61103af20c5d
refs/heads/master
2023-07-24T04:47:30.910625
2023-02-16T10:34:26
2023-02-16T10:34:26
245,704,594
1
0
Apache-2.0
2023-07-15T00:54:20
2020-03-07T20:59:04
Python
UTF-8
Python
false
false
3,354
py
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2010, 2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permi...
[ "fzhuse@gmail.com" ]
fzhuse@gmail.com
ba454f85e30e19f707db52ff84fa97d079100090
8a8b0267c4db8847a898ac73ccb6e78e1744e24c
/Python_Net_Programming/pnp-ex01/broadcast/udpserver.py
b6270c96643b1e6cd819ae6a34c32278d5926f20
[]
no_license
entirelymagic/Link_Academy
41ba890df6793924d186ea94dc8d13b0636c6679
844c39ff1281fae8406cd1a0dc06afd357f0bef3
refs/heads/master
2023-06-07T03:17:00.527924
2021-07-03T09:59:25
2021-07-03T09:59:25
314,755,255
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
import socket server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server.bind(("0.0.0.0", 8005)) msg = server.recvfrom(16) print(msg)
[ "elvislinkacademy" ]
elvislinkacademy
697ae5846d96f604324973625902f39c27564424
c1127091c486afa9271ae4beca05b00aaa62ff06
/lockss_configuration/lockss-configuration-python/config_exchange.py
6120643be42ed52d623bf8d7ea28f685c91a4af5
[ "BSD-3-Clause" ]
permissive
lockss/lockss-configuration-python
d747c6bc9cbf74748569597a951c0fc1df82d51a
d645b42e0fdae5ccfcaf80b26c09218c1e1c9c94
refs/heads/master
2020-03-28T13:58:12.286190
2018-09-12T08:22:07
2018-09-12T08:22:07
148,446,328
0
0
null
null
null
null
UTF-8
Python
false
false
3,283
py
# coding: utf-8 """ LOCKSS Configuration Service REST API API of the LOCKSS Configuration REST Service # noqa: E501 OpenAPI spec version: 1.0.0 Contact: lockss-support@lockss.org Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import ...
[ "dlvargas@stanford.edu" ]
dlvargas@stanford.edu
0c02fc3a75f4781dfaaf085875102433acfc575b
436a23cfa35885c919cc74e6a539a33ec383237c
/training/sock_utils.py
77445f8c014f220b885f3c3561cb3a622f536aa9
[]
no_license
CameronFoss/SQLAlchemy-Client-Server
2bd6104fa7dc9662e07b29a20b2783f1567c3391
295273c8cb35d780af25bd170e3527f97d88067e
refs/heads/main
2023-04-26T14:16:35.790194
2021-05-26T20:46:04
2021-05-26T20:46:04
368,533,957
1
1
null
2021-05-25T18:55:17
2021-05-18T13:08:34
Python
UTF-8
Python
false
false
1,195
py
import socket import json def send_message(host, port, msg_dict): """Connect to sock via host and port and sends a message to sock.""" sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((host, port)) msg_json = json.dumps(msg_dict) sock.sendall(msg_json.encode('utf-8')) # Clo...
[ "fossc@umich.edu" ]
fossc@umich.edu
6d5b238a3ab38ee681515a4631abf1b6147f4397
2c59e943a98fe0c25b2f7267324fe850603def57
/leetcode/数组/remove_duplicates_from_sorted_array.py
5b12385139f7c3ffa4f8c445a947de82aad75cf6
[]
no_license
xxNB/sword-offer
047dd6b3db7ea24af1a83d5a7a46ab47daa9ab85
e2699a43e9f7aecc475e21a4b2582c6ee3b41a1c
refs/heads/master
2021-07-06T18:44:47.074632
2019-01-16T15:57:27
2019-01-16T15:57:27
125,879,250
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
""" 100. Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory. Example Given input array A = [1,1,2], Your function sho...
[ "zhangxin@juxinli.com" ]
zhangxin@juxinli.com
bca68ca7795bed595f511a30b2a1ec6ba44148b9
4e308e8bb7056f1fd6914777b38d98b18254867f
/DECOMPYLED/FireOne/FireOne.py
5d6a9c07271a0c970312cc62a8b5afe6861d5c82
[]
no_license
bschreck/cuttlefish
165aae651bf58c1142cc47934802a7a3614e39da
0f44ccca0ebf1a6f78165001586fcb67b98b406a
refs/heads/master
2020-05-19T23:07:11.520086
2014-02-25T05:26:18
2014-02-25T05:26:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,087
py
# emacs-mode: -*- python-*- import Live import MidiRemoteScript NOTE_OFF_STATUS = 128 NOTE_ON_STATUS = 144 CC_STATUS = 176 NUM_NOTES = 128 NUM_CC_NO = 128 NUM_CHANNELS = 16 JOG_DIAL_CC = 60 RWD_NOTE = 91 FFWD_NOTE = 92 STOP_NOTE = 93 PLAY_NOTE = 94 REC_NOTE = 95 SHIFT_NOTE = 70 FIRE_ONE_TRANSPORT = [RWD_NOTE, FFWD_NOT...
[ "bschreck@mit.edu" ]
bschreck@mit.edu
0435ada236ecf42249ff98d1e29cbc6e5e46c607
16030618fe1481bea86289a15c4d2f6e8bc3808e
/Django/finalwebsite/pension/views.py
42da8f7031581d4114aecb2d98d982148e5bbf82
[]
no_license
vfloresp/Sistemas_distribuidos
d3607d05b395da458f7ad62adff427356c51a79f
8b8ae67c5351d8576c64f38e0a46f46c0cf12f56
refs/heads/main
2023-05-05T19:28:35.526239
2021-05-26T20:47:07
2021-05-26T20:47:07
331,456,473
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from django.shortcuts import render from django.http import HttpResponse from .models import Pensionado from django.template import loader # Create your views here. def index(request): template = loader.get_template("pension/index.html") contexto = {} return HttpResponse(template.render(contexto, request))...
[ "vflores@pop-os.localdomain" ]
vflores@pop-os.localdomain
603dfd9080de185194161fca663cfce4d6ecf267
d7fcd508920f12bbb80c4f953b92d879758db376
/BasicConcepts/SyntaxErrors/Volume1_Chapter2_SyntaxErrors.py
682fdd42fdea897b54cd908258e602f6fef92ff1
[ "Unlicense" ]
permissive
jpike/PythonProgrammingForKids
394c14a585f6fe779a571e4520fc6a59efa21af3
79a36d6db525d39f78e33b6f7b2d0da0d65a073c
refs/heads/master
2021-07-20T11:01:04.440281
2021-06-08T23:56:17
2021-06-08T23:56:17
108,654,449
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
# This program contains various "syntax" errors. # It's your job to fix this program so that it runs correctly. PRINT('Hello, world!') primt('Hello, world!') prin('Hello, world!') print 'Hello, world!') print['Hello, world!') print('Hello, world!' print(Hello, world!) print('Hello, world!) print 'Hello, world!' print(...
[ "jacob@jacobpike.com" ]
jacob@jacobpike.com
3ec82d07bf02c984ab35547af825f962b899d545
d1b85f3093b5d6c9ba3a84c0a54f4dba8a8b0482
/src/models/_rl_helpers.py
d3d25241a3d26e09a1e75942c7f8da10cdcf085d
[ "MIT" ]
permissive
qihongl/learn-hippo
dc3599b04a53f31e3ab0987693a392562a42a802
6a4a1be4fd6780d4c8413ffc6b1facade4741135
refs/heads/master
2023-09-04T21:13:47.143537
2022-02-18T22:03:53
2022-02-18T22:03:53
192,548,807
33
7
MIT
2021-09-21T04:50:59
2019-06-18T13:46:19
Python
UTF-8
Python
false
false
3,059
py
import numpy as np import torch from torch.nn.functional import smooth_l1_loss '''helpers''' eps = np.finfo(np.float32).eps.item() def get_reward(a_t, y_t, penalty, allow_dk=True): """define the reward function at time t Parameters ---------- a_t : int action a_t_targ : int tar...
[ "lvqihong1992@gmail.com" ]
lvqihong1992@gmail.com
bf114a09d6a97cebd6a7d5f46428325554fd9c65
a6065fd0743734c4ad0619b066d583ea462c1bde
/DjangoTest/DjangoTest/__init__.py
3ef6feb4e947e6e8f93252fb6708fa9efd3af984
[]
no_license
kangziwen/DjangoTest
4c3f1e25983a4b6553a9801f8221fa1970b843a2
c603f409ae1aaad5e64b3d7a48b58fd6103ec12e
refs/heads/master
2021-08-18T16:32:04.714241
2017-11-23T08:45:55
2017-11-23T08:45:55
111,491,210
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
''' Django默认使用MySQLdb模块链接MySQL 主动修改为pymysql,在project同名文件夹下的__init__文件中添加如下代码即可: ''' ''' django-admin startproject mysite python manage.py startapp cmdb ''' import pymysql pymysql.install_as_MySQLdb()
[ "baobao.kang@godinsec.com" ]
baobao.kang@godinsec.com
bc50fd1c8d8ed9f3119f0a1a543e344df1fb6491
5c7f6d5f17da26413698d64c51dda0743cdf41af
/9.little_knowledge/1.concate.py
97e4b3fd8ee3116ea8ea4e1993dd7d5e4b905a73
[]
no_license
choococo/DeepLearning
349fb51761991a642c6d43b557f69b9a3d882c36
c28b3f7bfdf2d6238f829ecf2a23f0112913559f
refs/heads/master
2023-03-07T14:04:48.175679
2021-02-18T07:08:04
2021-02-18T07:08:04
316,958,218
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
import numpy as np """ cat操作是一个很好地操作,可以很好的对高维的数据进行拼接等操作,numpy和torch包中都有API 应用地方: (1)曾经在复现MTCNN代码的时候用到:主要用到的地方,1)在制作数据样本时,使用 """ seed = np.random.seed(0) a = np.random.randint(0, 10, (10, 1)) b = np.random.randint(0, 10, (10, 1)) print(a) print(b) c = np.concatenate([a, b], axis=0) # 这里在0轴的时候,相当于列表的追加 print(c) d =...
[ "lzy@liev.com" ]
lzy@liev.com
f2be2563cae05a623512af9fc6b201160883394d
de945ae0b19c40b2c198ffea68cde5b2214a4a3d
/day01/01.py
5854f772b4167be97dfbe3923d90c36b80f0363f
[]
no_license
bonanaaaaaa/AdventOfCode2018
bf5025260dedd7f1bee538d0006a1dbd04eafbba
110bf89240763485d1c3b6482db7f9f283ac31bd
refs/heads/master
2021-11-24T17:28:27.216700
2018-12-12T10:10:00
2018-12-12T10:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
file = open("input.txt", "r") sum = 0 for line in file: sum += int(line) print(sum)
[ "pittawatm@gmail.com" ]
pittawatm@gmail.com
a475af5cc275bf91e3cecce1e6d78442fa1eebbb
b53a98a19425c5f5ba20495bc1d8739c299b504f
/middleware/middle.py
fb3b0b6907742013564b526210dd9e5d0925cf45
[]
no_license
davypython/py36_tests
bf8338812109c70437096eaa4b683aaf33b48b61
d63c36b3fc82774c7c02c5197ca53603b8a8717a
refs/heads/master
2023-03-13T05:15:32.498071
2021-02-26T07:02:31
2021-02-26T07:02:31
340,954,902
0
0
null
null
null
null
UTF-8
Python
false
false
3,829
py
import os import random import re from pymysql.cursors import DictCursor from common.db_handler import DBHandler from common.logger_handler import LoggerHandler from common.yaml_handler import YamlHandler from common.excel_handler import ExcelHandler from config.path import logs_path, data_path class MidDBHandler(DB...
[ "809021517@qq.com" ]
809021517@qq.com