blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
37a2daead8ac91ad41a2e78f0cbbf012998ece81
b12d2d1709a352599dfeac98eab291ce44a1deda
/anjukeFangjia/anjuke_single.py
8db0a758260964b0d52bd97776af877d8963e72c
[]
no_license
nianweijie/webScrapyBase
8febcc02651af801f217b6a9e2508966fd1cb4b2
8b379595cb4e1bc21a162c67b45ef80185d4e0fc
refs/heads/master
2020-08-28T18:11:55.933706
2019-01-27T12:22:38
2019-01-27T12:22:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
anjuke_single.py
from selenium import webdriver import re ''' 抚州 平顶山 六安 luan ''' driver = webdriver.Firefox() with open('houseprice_single.csv', 'a+', encoding='utf-8') as f: f.write("吉林"+",") for i in range(2018,2008,-1): driver.get("https://www.anjuke.com/fangjia/jilin"+str(i)+"/") for j in range(1,13): house...
1f23b9cd99cf5f83298dc0e99fd42de6880254b2
2ed33a3e3c33c359373777f132a361aadcc6849a
/Yahoo_login/PageObject/execute.py
1fde056eef02dbd8c613c0b38c09020c161ace04
[]
no_license
mimi0722/python-crawler
7ae4c45e0c9e366f85f67be279d59c8d99acdb40
46e1c89696b9c57f86827ef86e64eba5ff483ff8
refs/heads/master
2021-06-28T17:23:06.953380
2021-02-02T14:44:02
2021-02-02T14:44:02
212,118,873
0
0
null
null
null
null
UTF-8
Python
false
false
869
py
execute.py
from selenium.webdriver.common.by import By from Base.base import Base class Login(Base): #輸入帳號 def type_id(self, i): self.findele(By.ID, "login-username").send_keys(i) '''按確認''' def next1(self): self.findele(By.ID, 'login-signin').click() '''輸入密碼''' def type_password(self, i): ...
1d5bb7e9980fec29bddb73511e217c8bdb8b77c4
feed7b75e546e1c7de51ac93c1e46c48b1581789
/2. Hodina/2.4.py
1228931764dc99a8ddebcea9c2f9dda5c64c3da4
[]
no_license
programko-kurzy/kurz-python-1
f1de341711aa97147a58affbef09aecb4bf8150b
313a659a1f8abfee5a293b834f631fdac5415994
refs/heads/main
2023-04-11T11:40:10.508575
2021-04-22T02:26:10
2021-04-27T10:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
2.4.py
# 2.4 Bonusový príklad # Vylepšite príklad 2.1 tak, aby užívateľ zadal aj číslo, koľko krát sa má dané slovo vypísať a následne ho for cyklom # toľko krát vypíšete. # Hint: ak z input() získame číslo, uloží sa nám do premennej ako string a teda ho potom neviem použit vo funkcii # range(), vypíše nám to error. Aby sme d...
823721291af7a682a1d758f697dcecdd86f2a7b9
e8b3e3a28e50fb9846e4b2c5e58f20394126725d
/code/feature_detection/harrisCorner.py
6c5b5b8320bee04ab0cc73f3b823f01f912b7a1b
[]
no_license
tjresearch/research-aimee
8ef6b8a61ca4a1e5567749ea763053051e333c4d
63815301c52380e7617b6292e96f54ec0fa9d002
refs/heads/master
2020-09-10T08:57:38.126216
2020-04-28T14:14:08
2020-04-28T14:14:08
221,708,255
0
0
null
null
null
null
UTF-8
Python
false
false
2,222
py
harrisCorner.py
from __future__ import print_function import cv2 as cv import numpy as np import argparse source_window = 'Source image' corners_window = 'Corners detected' max_thresh = 255 def cornerHarris_demo(val): thresh = val # Detector parameters blockSize = 5 apertureSize = 7 k = 0.5 # Detecting corners...
7ffe59c2aaa08fdacce907021858d7adb8eca580
cdc1b6bfebdbdfb8d89dbcceb3b4a66315f9fabb
/register/views.py
9c64fb375a524bc2b1e5803ebb89401843e47952
[]
no_license
shashwattrivedi/Foreign-Collaboration-and-Exchange-Program
3fe2b3cc35ab835865063de467fbd801a94044bb
01e1db1574c985f6d03939a3528f6bf7238bdbfa
refs/heads/master
2020-06-13T07:17:58.441216
2017-02-07T10:16:29
2017-02-07T10:16:29
75,414,579
0
1
null
null
null
null
UTF-8
Python
false
false
2,887
py
views.py
from django.shortcuts import render from django.contrib.auth.decorators import login_required # Create your views here. from register.forms import * #from django.contrib.auth.decorators import login_required from django.contrib.auth import logout from django.views.decorators.csrf import csrf_protect from djang...
fa8155caf8f4c9cbab6161b4de26448c91ca358c
14321507aaf0bd5a7cb391da0da41cc51e9f06ca
/week7/readFiles.py
37af2ae18bb5ff6b25e029c6c70dd4a60623e283
[]
no_license
vladGriguta/DUNE_Light_Det
f103ff733089b8bbf61f6c8b6ccfaf33abc4efaf
42a25ed1b339b9a68871ed864c71c1b4ac87b8da
refs/heads/master
2020-04-02T22:02:29.376913
2018-11-12T19:35:52
2018-11-12T19:35:52
154,819,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
readFiles.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 4 13:53:15 2018 @author: vladgriguta """ import pandas as pd; def readWeek7(): # Read Ar39 decay time time_Ar_vis = pd.DataFrame() time_Ar_vis = pd.read_csv('time_Ar_vis.txt') time_Ar_vuv = pd.DataFrame() time_Ar_vuv = pd.read...
ae30aac302a278c3f6a0cd2e4a6cc37900f96b76
db7012f31261fc076fea41a6a4525875cd83e64f
/src/app.py
d56bfc255ed1803e62573fc8e473b45bcc7d8109
[]
no_license
kossiitkgp/kosschatbot
7301be9e9845c0c5e53658c34f7f91dd7f541c47
8cc95347a2f14edd69d24b3524e550b072942581
refs/heads/master
2022-08-22T01:20:32.245025
2020-06-15T22:07:38
2020-06-15T22:07:38
70,310,016
17
20
null
2022-07-06T19:44:24
2016-10-08T06:41:19
Python
UTF-8
Python
false
false
18,219
py
app.py
import os import sys import json import re import requests import apiai import urlparse import redis import traceback from flask import Flask, request from dc_hub import get_hub_add import SO_scrapper import upcomingevents from githubinfo import platforms, languages app = Flask(__name__) url = urlparse.urlparse(os.env...
e5eecb1a168782158591c303d8c3a5d39547d2fe
e20170b5dc6f407fce39e2337ad5e15a173b58ea
/파이썬 입문/Part10. 딕셔너리와 튜플/Packing_unpacking_02.py
77190e4978f8e564b830bc0fd686d822b93746bd
[]
no_license
U-and-Me/Python_Study
f37eae095d29da711ff15d7fdcb25599d2907990
7acdaeed4a3b1fb566e3dabd528188ecf6f3684e
refs/heads/main
2023-06-20T22:07:18.322306
2021-08-11T08:25:47
2021-08-11T08:25:47
373,518,767
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
Packing_unpacking_02.py
a = 1 b = 2 a, b = b, a print("a : {}, b : {}".format(a, b))
367eaad886c5baa0c5f948754edca7a4c2193917
8dfe4b53fae92795405d789d52148d1291836afa
/.metadata/.plugins/org.eclipse.core.resources/.history/4e/00baa017bc940015142399f4143833a6
f361b8408bbda2d2b53515fff0ab8670f03fecc8
[]
no_license
ymyjohnny/python
e07c54a88954e090cf3d30a4c6f6ac46353063fb
b483fd55e577d4dcceb5762bddf833df23874f3a
refs/heads/master
2021-01-10T01:10:19.038424
2019-07-02T02:40:23
2019-07-02T02:40:23
45,223,843
0
0
null
null
null
null
UTF-8
Python
false
false
546
00baa017bc940015142399f4143833a6
#!/usr/bin/python #coding=utf-8 ''' Created on 2015-11-27 @author: ymy Copyright ymyjohnny@gmail.com ''' import pymongo mongoclient = pymongo.MongoClient('221.228.230.172', 27018) db = mongoclient.hostbase conn = db.info keys = "fqdn" def get_mongo(conn): for row in conn.find(): yield row def print_...
9636435b65bbb44766847f746e9aad744588f80e
a5c5ae72970835e85a42d3f403033406b178976b
/src/deep_orientation/inputs.py
44501cf4f7707a88adc92b0dbf5401e95a5e1a5a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
TUI-NICR/deep-orientation
34d9a23675f446956b602ebdc861aefb8af6cb6a
f3aa384a193cb972c09f3b2b07610c610f14fc54
refs/heads/master
2023-04-08T12:56:32.636236
2022-07-23T09:39:20
2022-07-23T09:39:20
173,254,725
12
7
NOASSERTION
2023-03-24T22:51:11
2019-03-01T07:22:06
Python
UTF-8
Python
false
false
803
py
inputs.py
# -*- coding: utf-8 -*- """ .. codeauthor:: Daniel Seichter <daniel.seichter@tu-ilmenau.de> """ from tensorflow.keras import backend as K from tensorflow.keras.layers import Input INPUT_DEPTH = 'depth' INPUT_RGB = 'rgb' INPUT_DEPTH_AND_RGB = 'depth_and_rgb' INPUT_TYPES = (INPUT_DEPTH, INPUT_RGB, INPUT_DEPTH_AND_RGB)...
ebc674310ad554ca3d2d45ec0e69f61290060436
eabcd1a0718909f8d68b1a8cd97fee8d0fc0ee34
/routemaster/state_machine/utils.py
bc61f745387f082704a3b89064154264dd8a9773
[ "MIT" ]
permissive
ajocelynpatrick/routemaster
11604ad1c827cca5656d1749efe5981e35d72934
435e4c611e14a4510b04013726fb4f86d8c1949b
refs/heads/master
2020-08-06T01:08:01.813148
2019-09-27T15:29:14
2019-09-27T15:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,658
py
utils.py
"""Utilities for state machine execution.""" import datetime import functools import contextlib from typing import Any, Dict, List, Tuple, Optional, Sequence, Collection import dateutil.tz from sqlalchemy import func from routemaster.db import Label, History from routemaster.app import App from routemaster.feeds imp...
53a1819d4c5d16363d7db0c8db70990e765e6d0c
9f3dd79b661a12958930875fe30e464053db0916
/evaluate/evaluator/evaluator.py
8770383aced8c0f48f614dbd5b5f80c9724d5765
[]
no_license
anchovYu/DARTS_CPU
16f93efba706b9b04302da9f0b2f53e1fae28d3a
74f737aab7bd7d871799c7c4ab8ee213b9fe4295
refs/heads/master
2020-05-26T21:01:15.051970
2019-05-25T16:20:31
2019-05-25T16:20:31
188,372,161
2
0
null
null
null
null
UTF-8
Python
false
false
790
py
evaluator.py
import argparse import onnx import caffe2.python.onnx.backend as backend # import onnx_caffe2.backend as backend import numpy as np parser = argparse.ArgumentParser("evaluator") parser.add_argument('--onnx_import_path', type=str, default='../model/darts.proto', help='locatin of the imported model onnx file') args = p...
21ce5c3e2cdbe053c2d1a1ffcffc6957add7a6b1
75724e66128372441d1de508834b5f0a2571c0df
/project7/app2/urls.py
b7c55d5f4783251b830fc4797406ea34738e10a5
[]
no_license
adarsh2805/django-practices
cd6604718e9e7b6d9fb31977ae07688df123661c
ef93ae2ad672cc5d8452e05101f4a42cc5ac4f64
refs/heads/main
2023-04-05T13:32:21.141525
2021-04-06T15:47:54
2021-04-06T15:47:54
353,910,440
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
urls.py
from django.urls import path from app2 import views app_name='app2' urlpatterns = [ path('',views.index,name='index'), path("sample",views.sample, name="sample"), ]
6d281918f3d607676307bdde887100914aecbaa6
029aa1cfd709851620dd4f4ead19ebf9b51b9e3c
/montecarlo.py
30b1a8e477506ddb9350ddc9d5b005715fa4d68f
[]
no_license
igorpejic/q_learning_sarsa
4b772d27731d3626c9963816b818b6813d510e0f
229c5a124049a86f971e751e5041be7257eaf871
refs/heads/master
2020-04-03T17:37:10.590450
2018-11-04T17:15:26
2018-11-04T17:15:26
155,452,568
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
montecarlo.py
from math import * from numpy import * from random import * # Density_Function of the standard gaussian distribution def density_normal(x): return 1/sqrt(2*pi) * exp(-x**2 / 2) #This would be the uniform density function. But do not need this actually, I think def density_uniform(x): if (-5 <= x and x <= 5): ...
21f9b641e389cba7f0c3ff8f6ce0ceaba03f8155
77d32a36beffe6fa6148fe9878e7584d677ab62e
/accounts/views.py
49bf2e40e4d410895efe1ebc03b94342263dbcf2
[]
no_license
kaizen-cmd/django-rest-todo-api
91e914abac043f3b0c4cdb5cd123791f9d28c5a3
d20994b7a48eb567f3ed6f76c0005a54a12c21d0
refs/heads/master
2023-08-13T03:49:21.420411
2021-03-30T13:50:53
2021-03-30T13:50:53
276,646,461
2
0
null
2021-09-22T19:21:51
2020-07-02T12:57:13
JavaScript
UTF-8
Python
false
false
727
py
views.py
from django.shortcuts import render from rest_framework.views import APIView from . import serializers from rest_framework.response import Response from rest_framework import permissions, status from django.contrib.auth import authenticate from rest_framework.authtoken.models import Token # Create your views here. cla...
0bfe44a7ff29a3795f398871611f0b3b6ec0fb39
8448c919ab7fb40016f453d900852008e7c7c502
/PruebaCumplo/PruebaCumplo/views.py
2285806394960d323f5b45c09cb2e541051fd775
[]
no_license
crls12opazo/TasaMaximaConvencional
b34ba36c5b9fab5acc90ad9c52e4d0adf0a031a5
78f986f49c7b81430b794effbf038b958054fa74
refs/heads/master
2022-10-30T12:43:44.076990
2020-06-23T13:59:58
2020-06-23T13:59:58
274,303,525
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
views.py
from django.http import HttpResponse from .servicios import get_tasa from .forms import formularioCredito from .controllers import CalculadoraTmc from django.conf import settings from dateutil.parser import parse from django.shortcuts import render from django.utils.timezone import datetime def test(request): form ...
7086d2b362c3af7f72765d9b533254f6f752f841
f96cbc44e89ff1e2e1ded7e64ff6e121e1a19d3c
/Ch 4/chall1.py
43885a902a7a236da714effefc4e366ff0d4a906
[]
no_license
MaRTeKs-prog/Self-Taught
5e866b373f7be40e98e81752350581fa8d730a02
e3b61ca907d7f7771f04d5ce66a893a999bd9d0b
refs/heads/main
2023-07-13T00:36:27.628391
2021-08-22T19:54:17
2021-08-22T19:54:17
391,476,821
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
chall1.py
def sqrd(): x = int(input()) print(x**2) sqrd()
a8096d3482c9abe804daf42bc0813d6ff260bcc7
fd1dba8223ad1938916369b5eb721305ef197b30
/AtCoder/CodeFestival2018/qualB/a.py
8d2ade631747da2e7cd597bf729b55d458c482ef
[]
no_license
genkinanodesu/competitive
a3befd2f4127e2d41736655c8d0acfa9dc99c150
47003d545bcea848b409d60443655edb543d6ebb
refs/heads/master
2020-03-30T07:41:08.803867
2019-06-10T05:22:17
2019-06-10T05:22:17
150,958,656
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
a.py
n = int(input()) print(100 - (100 // n))
145176aac205b7560a7e9282b3ae807e1b2f6c6c
5e5366856d851f80459672e487da95d5f90250b3
/setup.py
1bf193634421e278d4c783c7d5391910e9bf0d39
[]
no_license
kundajelab/momma_dragonn
b4fbbf45cdad1e239e525d77fa85f27ba5e91167
35a8dfdb2a1c918c60675aae9a0347aca51e9de8
refs/heads/master
2021-03-27T20:02:36.488097
2020-09-06T00:57:31
2020-09-06T00:57:31
66,744,065
1
1
null
2018-09-06T22:57:35
2016-08-28T01:47:36
Jupyter Notebook
UTF-8
Python
false
false
812
py
setup.py
from distutils.core import setup, Extension from setuptools import setup, Extension config = { 'include_package_data': True, 'description': 'deep learning model training and tracking framework', 'url': 'https://github.com/kundajelab/momma_dragonn', 'version': '0.2.8.2', 'packages': ['momma_dragonn'...
7ea6edf2237af2481d7c0c82f738587121edd140
dec5a9f5afabd9c62be7e570c3fe83cae32385ab
/docs/conf.py
c2f6cf8e1b5c00f13a502f09e9891091546b68f7
[ "BSD-3-Clause" ]
permissive
scverse/spatialdata
514bc3504ec6b3e07bec12b831887fdcc67e495a
054a7bf3b4cbc70f451a9a124a715b79d30be9e0
refs/heads/main
2023-09-01T20:10:00.484683
2023-09-01T05:43:02
2023-09-01T05:43:02
487,366,481
86
15
BSD-3-Clause
2023-09-13T14:40:10
2022-04-30T19:41:52
Python
UTF-8
Python
false
false
4,862
py
conf.py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- import s...
472a79767f5dc7dc3cd03d89999d322b3885dcbf
4853a93887eae3a98673fbaf81cd21d0256c5f07
/accounts/api/user/views.py
dc58590b5dbadfba71ea0fe838471913f188e708
[]
no_license
samims/restapi-udemy
8f7c1d8811c258648b46f4a0ebed864a5bd12753
7c4f0ba25e64dc16ed6d683b0b86af6021250872
refs/heads/master
2022-12-15T10:20:23.406792
2019-11-06T07:27:29
2019-11-06T07:27:29
164,473,984
0
0
null
2022-12-08T01:33:55
2019-01-07T18:29:03
Python
UTF-8
Python
false
false
1,201
py
views.py
from django.contrib.auth import get_user_model from rest_framework import generics from rest_framework.response import Response from rest_framework_jwt.settings import api_settings from status.api.serializers import StatusInlineUserSerializer from status.api.views import StatusAPIView from status.models import Status ...
6109efeb3462ac2c5a94a68fbfa4f2f0617dd927
13f276eb75cabda99a918c8cd4ecbf1ddeddae86
/extractLetters.py
2d828420e13cffed5aac5b30edc4b824efc96f86
[]
no_license
dclabby/captchaReader
c4db73e4caf08ebeb32148b81e0ddea3f89325ee
07195dc63b8decd2c30496afa22f3c0cc420c31a
refs/heads/main
2023-07-12T11:18:34.816390
2021-08-09T11:17:03
2021-08-09T11:17:03
391,870,592
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
py
extractLetters.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 19 09:31:20 2021 @author: dclabby """ import os import cv2 import pickle from utils import locateLetterRegions # # Constants # sourceFolder = '/home/dclabby/Documents/Springboard/HDAIML_SEP/Semester03/MachineLearning/Project/solving_captchas_code_e...
2a92c47231b75a441660fed80a9bce9a35695af5
ad1f426d861add07d7fa33cd4101a5eea1c229e8
/chr2part1step7.py
e3f0d7be8032a222bdc77eafd7a91aa881904f9e
[]
no_license
evgenygook/py_test_stepic
533d56394e1c818cc61f080d05739d2372e20198
01706a18d4d7b03eac2995a1702eb43363200cd8
refs/heads/master
2020-09-05T22:08:23.051614
2020-01-11T09:30:23
2020-01-11T09:30:23
220,227,924
2
0
null
null
null
null
UTF-8
Python
false
false
688
py
chr2part1step7.py
from selenium import webdriver import time import math def calc(x): return str(math.log(abs(12*math.sin(int(x))))) try: br = webdriver.Chrome(); lk = 'http://suninjuly.github.io/get_attribute.html' br.get(lk) #собираю treasure=br.find_element_by_id('treasure') valuex = treasure.get_attribute('valuex') radio_...
92eaceb46974ba3a5944300139d5929d44673181
449c02995585df280ba357a505f43636f640513e
/python/BORL_python/value/GPTD_fixedGrid.py
2ddb698acf1cb4eba4c8bfb1b3fb50c40c3f623d
[]
no_license
ash22194/BORL
a8a4a4210bc7e8813cc54c97183aaaf33d2c6455
fe6078071161acd4559df479e9f947812b3f705d
refs/heads/master
2020-03-29T09:59:39.657464
2019-05-24T04:24:58
2019-05-24T04:24:58
149,784,532
1
0
null
null
null
null
UTF-8
Python
false
false
4,755
py
GPTD_fixedGrid.py
from tqdm import trange import numpy as np class GPTD_fixedGrid: def __init__(self, env, sigma0, gamma, kernel, D, V_mu=[]): self.env = env self.gamma = gamma self.sigma0 = sigma0 self.kernel = kernel.kernel if (not V_mu): V_mu = lambda s: np.zeros((s.sh...
c926e16ef2daa5978b6c71e7794721d320bb9b1e
f0518aec4ea9311d9f68d1d5bf8cb256bb15046a
/hack_bulgaria_task2.py
ad9615b99ecdc00cbba3debd2cf34e6bc57fbb31
[]
no_license
deyanskiq/python
9f08466ea660bf70bc12279d2ff8264194c28b03
aff56c48cde8573eef42c8923d93691bb50344a0
refs/heads/master
2021-01-15T19:28:11.516298
2015-02-24T10:17:02
2015-02-24T10:17:02
31,218,071
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
hack_bulgaria_task2.py
def tetrahedron_filled(tetrahedrons, water): var=0 br=0 tetrahedrons.sort() for numbers in tetrahedrons: v=(tetrahedrons[var]**3*(2**0.5))/12000 if v<water: br=br+1 water=water-v var=var+1 print (br) print (tetrahedron_filled([1000,10],10))
c349fa484476e3195e0932e425cbe93d7a7e5394
c77b75e5e47b5083eb49d879ca2fc5766863f2bb
/alice_gazebo/scripts/nullify_movement.py
57f9a47acef52c39503f6db51bd498bf7ce69fba
[]
no_license
parthpankajtiwary/robotics-ai-final
393742bb25011964456e323dd23e880519b1b16c
860d62e31ebfc587edf1c7eccd9ea23147073043
refs/heads/master
2020-04-18T13:12:42.794534
2019-07-09T23:13:47
2019-07-09T23:13:47
167,556,807
1
0
null
null
null
null
UTF-8
Python
false
false
5,701
py
nullify_movement.py
#!/usr/bin/env python import rospy from nav_msgs.msg import Odometry from geometry_msgs.msg import Twist from std_srvs.srv import Empty, EmptyResponse import tf from math import radians, degrees, fabs class MovementNullifier: def __init__(self): rospy.Subscriber("odom", Odometry, self.OdomCallback) ...
3ffe16494eb45896563a2952f3bcf80fc19b2750
885a722e3e5814ae4942ac5e8cf8d0091e734b4c
/PROGRAMMERS/Level 2/오픈채팅방/CodingTest.py
ff061b72b1f7a9c46e9c8ace58dc915a60a41559
[]
no_license
ledpear/algorithm
52f3ea25842eee20b3bbd48e51825b9df4942e03
4922c6fe5ca0b98a90dee218b756006e7ba05d82
refs/heads/master
2023-06-09T17:47:45.674244
2023-06-03T13:47:11
2023-06-03T13:47:11
133,370,193
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
CodingTest.py
def solution(record): answer = [] db = {} chatting = [] for log in record: log_list = log.split() if log_list[0] == 'Enter': db[log_list[1]] = log_list[2] chatting.append([True, log_list[1]]) elif log_list[0] == 'Leave': chatting.append([Fals...
8c166dd4cb091dcd2d80b5ae3085b5dee77564e0
5b5582aa2f85bd182d542b93f0287a80e2e1c176
/scores/models.py
88954580c3e04af2666a942242969932dad38c59
[]
no_license
abcubed3/psscore
d36f989c8a9c1f37428b2675c76c59b780ab5ab2
b6b8e5a468102704ae39a044019beaa7e0a464d2
refs/heads/master
2021-06-14T11:06:30.738653
2019-07-03T13:46:48
2019-07-03T13:46:48
29,077,895
1
0
null
2021-04-06T17:42:30
2015-01-11T01:46:25
Python
UTF-8
Python
false
false
1,132
py
models.py
from django.db import models #from publicservants import models from django.utils.encoding import smart_unicode # Create your models here. class Score(models.Model): #score ID - publicservant ID plus score #sID = models.ManyToOneRel(field=PublicServant.psID) #PS Score at time t pst = models.Inte...
9d3db4ca5bf964c68e9778a3625c842e74bf9dbd
ad149f546f4cb76d8dd170c36710c875bbf27b21
/experiments/mito-em/prepare_train_data.py
329a07c35c2bfa90928c50b5fa2d9822a0c8d7e5
[ "MIT" ]
permissive
JoOkuma/torch-em
5026b6e77ca44542ea53f6eb255c78d309a7d7d9
68b723683f9013723a0e4fc8cfef1d6a2a9c9dff
refs/heads/main
2023-06-01T04:48:24.756862
2021-06-21T09:13:11
2021-06-21T09:13:11
377,966,971
0
0
MIT
2021-06-17T21:41:52
2021-06-17T21:41:52
null
UTF-8
Python
false
false
1,929
py
prepare_train_data.py
import os import z5py from shutil import copytree, copyfile ROOT = '/g/kreshuk/pape/Work/data/mito_em/data' SCRATCH = '/scratch/pape/mito_em/data' def create_file(out_path, ref_path): os.makedirs(out_path, exist_ok=True) copyfile( os.path.join(ref_path, 'attributes.json'), os.path.join(out_pa...
4e7cfbf51ec9bad691d8dd9f103f22728cf5e952
41a974bfa1119faa75c57ba9e7c0a7a3a0389cb5
/GPyOpt/util/general.py
b280496adb1b9073318610a7f01e69d44cc22d92
[ "BSD-3-Clause" ]
permissive
puneetjain-iclp/GPyOpt
9498f55de6a0c73874356a9c8565d3f19fd7b9e0
69edd660e39238ddd2fc338c6e2e9b8b4c703cd3
refs/heads/v001-s003
2020-05-09T22:09:20.159187
2019-05-07T11:37:00
2019-05-07T11:37:00
181,461,793
1
0
BSD-3-Clause
2019-04-16T12:12:46
2019-04-15T10:10:14
Jupyter Notebook
UTF-8
Python
false
false
7,017
py
general.py
# Copyright (c) 2016, the GPyOpt Authors # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from scipy.special import erfc import time from ..core.errors import InvalidConfigError def compute_integrated_acquisition(acquisition,x): ''' Used to compute the acquisition function when s...
30ce6390d34d3658a0bb2fe042191cee4da2c4d0
40d221652c0eb365677cebe27704e2398982abc2
/controllers/answer.py
22bd15d9efd3e8e384ffb32f42376233321b7a74
[ "LicenseRef-scancode-public-domain", "CC-BY-3.0", "MIT" ]
permissive
DonaldMcC/ars
b3b4c27b2abece5a7f4e6c78bf264183ffcad9e2
baf2a3bbe47bc5095db40386fb356c243c1f0861
refs/heads/master
2020-05-21T09:11:09.273062
2017-06-26T20:50:20
2017-06-26T20:50:20
84,608,520
0
0
null
null
null
null
UTF-8
Python
false
false
6,291
py
answer.py
# - Coding UTF8 - # # Activity Recording System # Development Sites (source code): http://github.com/DonaldMcC/ars # # Demo Sites (Pythonanywhere) # http://netdecisionmaking.com/nds/ # http://netdecisionmaking.com/gdmsdemo/ # # License Code: MIT # License Content: Creative Commons Attribution 3.0 # # Also visit: ww...
cc209fb264f4e7d545ddb9a2139f5d2546a4d093
5db6367bc38a3bfbba2e2d792d3205573dcd2298
/src/visualization/visualize.py
ec84ff9245ffd06a5bbfc61139fd12c91483bd89
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
codezakh/pykinship
24aa768cbec7ff643d6a5dfde7749f22ae4d8048
9d894d81ad6acd8229806fd0fb7e646ffb7ea475
refs/heads/master
2021-01-03T00:44:21.554605
2020-02-08T02:31:14
2020-02-08T02:31:14
239,842,246
0
0
MIT
2020-02-11T19:07:08
2020-02-11T19:07:07
null
UTF-8
Python
false
false
1,915
py
visualize.py
import numpy as np from html4vision import Col, imagetable def create_html_page_face_montage(p1, p2, labels): neg_ids = np.where(labels == 0)[0][-100:] pos_ids = np.where(labels == 1)[0][:100] p1_pos = p1[pos_ids] p1_neg = p1[neg_ids] p2_pos = p2[pos_ids] p2_neg = p2[neg_ids] hard_pos_pa...
26284408c81ccbfb506f4e6d6a0ba9d7b67fcb09
13a3412ecfdc16dee85fd1a37d7662afb0c135be
/generate_from_spec.py
aeeb796a3ae6e4b6fc21ca98907c1a2d9cbb105d
[ "Apache-2.0" ]
permissive
pubuduSiti/cognite-sdk-python
af6f38415ca448d3330b68ba9cf4cf7bb968ee2e
d2020676c09b4db9fd4d0343756c836beb73e417
refs/heads/master
2022-11-07T05:00:56.523559
2020-06-30T08:17:03
2020-06-30T08:17:03
276,080,432
0
0
Apache-2.0
2020-06-30T11:31:40
2020-06-30T11:31:39
null
UTF-8
Python
false
false
1,608
py
generate_from_spec.py
import argparse import os from openapi.generator import CodeGenerator DEFAULT_SPEC_URL = "https://storage.googleapis.com/cognitedata-api-docs/dist/v1.json" PLAYGROUND_SPEC_URL = "https://storage.googleapis.com/cognitedata-api-docs/dist/playground.json" def main(spec_url, spec_path): codegen = CodeGenerator(spec...
d3938d6ba8881bc62d5e815c22e9268cab855d05
4e04cd4a29355cb1f6e8aef681e38b8ec246a321
/Buboniseur.py
62a648de42d824c72d2ff6688c7e979634cdd529
[]
no_license
FlorianMortgat/Buboniseur
8720b9748f2c544739ca22bc1ae75d967c6519a5
94fc334bf9e5dd8e5e9f9bc8dbf9090864cdb8a4
refs/heads/main
2023-07-18T08:58:11.991557
2021-08-10T21:43:53
2021-08-10T21:43:53
394,777,213
0
0
null
null
null
null
UTF-8
Python
false
false
27,865
py
Buboniseur.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import Tkinter import os from Tkinter import W,E, N, S, NW, SW, NE, SE from math import cos, sin, tan, pi, floor import wave import sys import pickle """Un synthétiseur de waves illustrant la physique du son""" """Par Florian MORTGAT Droits de reproduction concédés à tout...
b9d0c4d4f16115a777b65d821269cd7ec31e6c69
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/torch/testing/_internal/common_methods_invocations.py
bee0ea0e25d1a646181844a7f88207ab6ea44b4d
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
common_methods_invocations.py
version https://git-lfs.github.com/spec/v1 oid sha256:eda97c197f708e1650abfbd2c10b48ec4706b098675fca20d4472b1045762e76 size 94121
ab5d19ff5f74e31681c2b3cf3ecf310846e90c0a
753efe33e06818211ad5a3227a8619603648c61f
/app/main/views.py
78c3b78e539800531a000c5706463729ee8b4be7
[ "MIT" ]
permissive
crono782/flask-sample-app
5b5b86897b2eb4ed26867fd821be42fa66e545a8
ca75af1225670386d464f2b50d2965f5f4d61bff
refs/heads/main
2023-08-20T22:32:03.360205
2021-10-20T18:21:23
2021-10-20T18:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
views.py
"""main blueprint views package""" from flask import render_template from app.main import bp @bp.route("/") def index(): """Index route view Returns: string: Rendered index view """ return render_template("index.html", title="Index")
3c01625673857aaa1d4d700c70cc3c4f8a6069b8
437528be97b09f63ed1d9a51ca9c6a5d29ca9170
/Exercise10/.playground/connectors/crap/__init__.py
bac65a80c95fb63d1043333ae3fcd4b6182b7bae
[]
no_license
xxxmmc/Netsec
b02b7d20a1f9f24cde40ee7ebf4a9b8d443bfc85
b8f74f59b5dc9eda86a2ab528dc0facd35804a8c
refs/heads/master
2020-07-25T02:17:43.283030
2019-12-11T05:07:51
2019-12-11T05:07:51
208,129,674
0
1
null
null
null
null
UTF-8
Python
false
false
348
py
__init__.py
import playground from .protocol import SecureClientFactory,SecureServerFactory secureConnector = playground.Connector(protocolStack=(SecureClientFactory(),SecureServerFactory())) playground.setConnector("crap",secureConnector) #playground.setConnector("mystack", PassthroughConnector) #playground.setConnector("passthr...
0d0fcb8b2e9658a38317b0241b8b1c6a243617e2
d2f814dc47be88b483265c748976c64788c3fd2c
/build_npy.py
a96493c86c6d612caf9298a48019272c29ff85f1
[]
no_license
pscoutosoares/unet
12b6b2663e508ce106768fff5884ece105360448
ce9028d38022c79a211c58d7853eb35ff7ba16fb
refs/heads/master
2023-03-01T13:27:13.697712
2020-05-16T15:03:31
2020-05-16T15:03:31
255,961,758
0
0
null
null
null
null
UTF-8
Python
false
false
2,605
py
build_npy.py
# title :build_npy.py # description :It converts label images into .npy format # author :Dr. Luis Filipe Alves Pereira (luis.filipe@ufrpe.br or luisfilipeap@gmail.com) # date :2019-05-16 # version :1.0 # notes :Please let me kn...
985f6519b2fced6aa6f64f14d09c2957ed969e5f
b14cfba61bd21fa23f5aedcb83a6375bf4ccef46
/task2.py
1915c60cf97e0722b63617bb4c14c9d89744619c
[]
no_license
IemProg/TwitterAnalysis_with_PySpark
e69d9121a672b40f233fcced566fc099dfdc31ad
16c08d21106fbcb94901639c34e12e24cd748466
refs/heads/master
2023-03-27T02:26:12.264687
2021-03-27T19:43:35
2021-03-27T19:43:35
348,924,101
0
0
null
null
null
null
UTF-8
Python
false
false
4,008
py
task2.py
#Task: Sentiment analysis for a given day import os, sys, string, re import pandas as pd pd.set_option('display.max_colwidth', -1) from utils import * import matplotlib # Importing matplotlib for it working on remote server import numpy as np import matplotlib.pyplot as plt import seaborn as sns from nltk.probability...
ad096e2bcc89f738db5358f7ec74f43d28a04b52
366f25acdd456b4913634d51b2c8acf2d1551f9c
/rssant/allauth_providers/oauth2/views.py
44db6be4e637972aaf00ce796e9ce8801e24efea
[ "BSD-3-Clause" ]
permissive
zuzhi/rssant
56c57249f41665423f3456aff18143fce9423b18
06d985845f6af3be7097e6d718afba7eeb195ec8
refs/heads/master
2021-07-18T07:57:35.291596
2021-01-09T15:45:42
2021-01-09T15:45:42
232,850,084
0
0
BSD-3-Clause
2020-01-09T16:14:07
2020-01-09T16:14:06
null
UTF-8
Python
false
false
1,055
py
views.py
from allauth.socialaccount.providers.oauth2.views import ( OAuth2View, OAuth2CallbackView, OAuth2LoginView) from .client import RssantOAuth2Client class RssantOAuth2View(OAuth2View): """ TODO: avoid copy code from OAuth2View """ def get_client(self, request, app): callback_url = self.ada...
b1086b0247e5502e6ce6d91e4d98f4b80ed471bf
71380c7f0f5949683a38543df7697d7bfcd2d04f
/Public Key Autority with RSA and Chatting/coprime.py
cda80c46d5867f5643827e828377fbf6cec0a0bb
[]
no_license
wicak29/kijmantap
15f94e014e37f6a7f100950dd4bcbf8053028f62
1ad31be416b7423a21c7425f283db95fa224eb0d
refs/heads/master
2021-01-21T12:59:44.405806
2016-05-17T08:37:09
2016-05-17T08:37:09
54,646,609
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
coprime.py
__author__ = 'Indra Gunawan' from fractions import gcd import random #lol = gcd(7,20) #print lol simpan =[] def coprime (y): #simpan =[] for index in range(2,y): if gcd(index,y) == 1: hasil = gcd(index,y) simpan.append(index) index=+1 coprime(1200) print simpan ...
847d51d28edff2ac1b57f278b0be12f2bfb25302
1698c8ea7f5a7d6913d38e0edbf58d8cb9d64213
/flask/wikizera/admin.py
82adfc97f77ddc179863d87ecd0af8410ee5b9c0
[]
no_license
gilzoide/wikizera
abca6d41d73ccccd833c6e9584dbd92720d1e2cd
d34c8368e7abb775ff9df9f96a457b3d5d4ba377
refs/heads/master
2020-05-23T07:49:42.773443
2017-02-10T18:30:15
2017-02-10T18:30:15
80,449,603
0
0
null
2017-02-10T16:45:39
2017-01-30T18:22:32
JavaScript
UTF-8
Python
false
false
1,062
py
admin.py
# -*- coding: utf-8 -*- from flask import abort, redirect, request, url_for from flask_security import current_user from flask_admin.contrib.mongoengine import ModelView from flask_admin import Admin from wikizera.modelos import User, Role admin = Admin(template_mode='bootstrap3', base_template='admin...
fb14cebb2af3fb21624594755ffa1ec1667177c2
fff43a91a047ed636ebf785494d782d42617a1e9
/textual_entailment/textualentailment.py
7a1a61025de7105dab9c8ccdf1135f662a977652
[]
no_license
binit9/Knowledge-Graph-Covid19
a02eb231631f07c48b5ae7e0b524c32b80530973
ca908e934f819973b5c8e06d23e934bf1c658d91
refs/heads/master
2022-04-22T04:01:22.704381
2020-04-22T03:05:06
2020-04-22T03:05:06
257,487,006
0
0
null
null
null
null
UTF-8
Python
false
false
6,656
py
textualentailment.py
import nltk import logging from gensim.models import Word2Vec import sys import os sys.path.append(os.path.abspath('.')) # print(sys.path) from text_analysis.textual_entailment import rte_classify from text_analysis.textual_entailment import RTE_Data from text_analysis.textual_entailment import Word2Vec_Averag...
7ba4a740c4c0c4e075064f51b548f8dce6994861
c29a244a4dc52e6844190a863aaf0b68af3d5c96
/Scripts/SLR/chi_square.py
e7ef2e0d5b0ee9addce02d580532454a0d341945
[]
no_license
Gemarodri/Thesis-Gema
d2f87caecaef1f5faaaa2ebf6660a01055736e38
de569996f7d000428bca7a821024d4ed20645060
refs/heads/master
2020-03-19T07:05:59.028658
2019-07-12T13:08:58
2019-07-12T13:08:58
136,085,016
0
0
null
null
null
null
UTF-8
Python
false
false
13,929
py
chi_square.py
#Imports import pandas as pd import numpy as np import scipy.stats as stats def sumrowcol( df ): colsum =df.sum(axis=1) sum_data = pd.DataFrame(colsum, columns=["row_total"]) df = pd.concat([df,sum_data],axis=1) rowsum = df.sum(axis=0) sum_data = pd.DataFrame(rowsum, columns = ["col_total"]) df = pd.concat([...
e447d5901a5e4ec46a37e88e1d3b2adeea858a44
c9ffbc4ccecb2a971881c5bcd3280dee59e53a72
/data/ca/gov/cases/harvester.py
dca39e42c2e71870aceca90dd221993b683e6e9a
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
mtna/covid-19
11ff19c0036fc44a0b87fa33fdf613c6c34e1de3
66e41bd3f4262fa521552df41db647ce44b1efa0
refs/heads/master
2023-05-25T17:27:15.023219
2023-05-10T06:23:47
2023-05-10T06:23:47
260,807,902
12
4
Apache-2.0
2021-01-29T19:49:20
2020-05-03T01:37:08
Python
UTF-8
Python
false
false
4,682
py
harvester.py
import os import pandas as pd import math import datetime variables = { 'pruid': 'ca_provterr', 'prname': 'province_name', 'prnameFR': 'province_name_fr', 'date': 'date_stamp', 'numconf': 'cnt_confirmed', 'numprob': 'cnt_probable', 'numdeaths': 'cnt_death', 'numtotal': 'cnt_total', 'numtested': 'cnt_tested', ...
47b0d2a378eaff54e528613f5898ff20a8d917bb
d45e523aa8edf29dc7610eb9bfc9105c0f5e41c9
/python_mysql/shopper.py
f676982ffb7817859090a385ec68d59caeb0c061
[]
no_license
KirlinL/Huff
d6ce96e98e50ebbe14d71c20678258d9d2b8d5b8
0f809603d53981bb2f06078fc3fe54c6bd7d2b02
refs/heads/master
2021-01-01T15:53:29.172572
2017-09-28T12:23:17
2017-09-28T12:23:17
97,725,040
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
shopper.py
#!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb import sys table=['20','21','22','23','24','25','26'] for i in range(7): con = MySQLdb.connect("localhost","root","likelin0610","result",charset="utf8" ) cur = con.cursor() sql='CREATE TABLE huff_'+table[i]+' \ SELECT * FROM '+table[i]+'_25...
58a3eba7b3c8ce9c1036b5c817e97eec00fdd1f9
2238867f4a372d9f6f070ebeb2bdcc653fc566c0
/filenames.py
685d0f41e53ebd66fe2d7aa9a5605f2a07ae8316
[]
no_license
chiron05/FileNames
7835a35ddfc2368408d4714b86f1da76a10c77e0
158eb103b8922b0f9e546e50db5252b7d2a8c059
refs/heads/master
2022-11-11T18:10:11.327886
2020-06-14T15:20:39
2020-06-14T15:20:39
272,227,873
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
filenames.py
filename =str(input("Input the Filename:")) z= filename.split(".") if(z[1]=="py"): print("The extension of the file is: 'python'") elif(z[1]=="c"): print("The extension of the file is: 'c'") elif(z[1]=="c++"): print("The extension of the file is: 'c++'") elif(z[1]=="java"): print("The extension...
81b42132cd0123653fd62ecfdc0710785c3a6052
143a5a7ca0efc634e1c9bc55a8afb2d1baf963f2
/tabml/inference.py
83507d9ec82c9b9ff35b750f586fbd54fb06d676
[ "Apache-2.0" ]
permissive
xuanhaihust/tabml
2bda6cc1cfab1136cd865f6ee9be9a144cbb5479
66d79525f7f29e38a4c72ba44a39086f052c2362
refs/heads/master
2023-07-31T16:29:17.551283
2021-09-11T21:39:31
2021-09-11T21:53:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,227
py
inference.py
"""Utilities that support making inference.""" from typing import Any, Dict, List from tabml.experiment_manager import ExperimentManger from tabml.pipelines import BasePipeline class ModelInference: def __init__(self, feature_manager_cls, feature_config_path: str, model_path: str): self.fm = feature_man...
2c5f200fb11722fbeb9e207a346b73c1b496ee50
a922622bf8a59c1046b4d2655674310ee06d3677
/assignmentIII.py
01bd5266ec150fa35c21af51f1b4f6f300dc3fd9
[]
no_license
ShresthaUtsav03/assignment_III
da43a19f3f1c812deb26a324008dcc289df25812
dd88a70b98a21293efb8846c2d5b8b89e6091181
refs/heads/master
2020-04-14T17:55:19.176951
2019-01-03T17:03:23
2019-01-03T17:03:23
163,999,360
0
0
null
2019-01-03T16:50:21
2019-01-03T16:50:20
null
UTF-8
Python
false
false
532
py
assignmentIII.py
file = open('shakespeare.txt','r') text = file.read() t_list = text.split() i_list = [',','.','!','?',':',';'] new_list = [] count = 0 dic = {} for word in t_list: if word not in i_list: new_list.append(word.lower()) for word in new_list: if len(word) == 3: count = count + 1 dic[word] = dic.get(word,0) + 1 ...
196645d97076c8629089bda0cef3d09e911b500b
ec0cf46563b254e77af6524c5f7d9a606343040b
/app/main.py
6390ace779b73635be1e69a649888953f7dd798c
[]
no_license
danangwijaya750/python-flask-be
952873e6acc871c90bab15562d512f4af897c5b5
05f39b499beffc9ff5809c74d6e0b70c54912191
refs/heads/master
2023-06-06T18:54:01.948597
2021-07-02T11:16:57
2021-07-02T11:16:57
382,327,378
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
main.py
from flask import Flask app = Flask(__name__) @app.route("/summary") def home_view(): return "summarization"
937048b7ac40bd38e21fc88a8c388b8746ab0421
75e68bdc9570688ea0dad52219d48f2a4ec57f68
/homepage/member/models.py
09b2e07363a4c016952348d3724187b8182021b8
[]
no_license
soimyy/mlab_homepage
432d1483b2e1a467edbcf79a9bdb544ff9fe184f
20c7c597314f34146fcdd5d2cc6f8c369ebffcd0
refs/heads/master
2020-04-06T08:51:29.233805
2018-11-19T06:17:24
2018-11-19T06:17:24
157,319,171
0
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
models.py
from django.db import models from django.utils import timezone # Create your models here. POSITION_CHOICES = ( ("0","教授"), ("1","准教授"), ("2","助教授"), ("3","技術職員"), ("4","PD"), ("5","D3"), ("6","D2"), ("7","D1"), ("8","M2"), ("9","M1"), ("10","B4"), ) list_year = ["01","02","03"] year = str(timezone.now()).split("-")[...
bd44d4edba205d9d7dfc2be18e70f82ec394f410
25f7c541d49b003643b3492485720483a2de895b
/5. Tree based DFS/535-house-robber-iii.py
1ba553841a7caab7a32ba61f29f43a4aee2d0aad
[]
no_license
iykat/LintCode-Ladder
859dc9d86fd398e25003f8723a5a7e84340b57f9
d491bf3e8e0a03362542a21523644f860f0aa484
refs/heads/master
2022-02-09T11:39:36.603559
2019-04-10T19:32:47
2019-04-10T19:32:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
535-house-robber-iii.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def rob(self, root: TreeNode) -> int: res = self.DFS(root) return max(res[0], res[1]) def DFS(self, root): ...
8069e85417e2f6758205a52ab4d9023d9f557d81
fd51c0e7d532b164b58c69e36d196c59cbdac6ff
/src/python/phyre/creator/shapes.py
64ffd3074cc43eb1c4c8178fd1c6fb5313a41752
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebookresearch/phyre
18fa1db4271fba922b1372610abac718d8833927
d0765dd2f6d6cf41b933a3a57173c63d21fbfa6a
refs/heads/main
2023-08-24T13:54:34.500729
2022-04-20T22:46:08
2022-04-20T22:46:08
192,634,486
462
76
Apache-2.0
2023-07-08T03:40:59
2019-06-19T01:12:56
Python
UTF-8
Python
false
false
15,205
py
shapes.py
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
edef3008d4b9f2f3b7f9283ee86e57512252b4ea
ed4732eb1faeb6540cee896c34ddfa0ba4b42830
/drf_tutorial/snippets/urls.py
238102c5a61f5bf66e6f1887b9b95a6b50c421f9
[]
no_license
AdamMartinCote/drf_tutorial
1ea58e1e103f3cc4236d098de9d23d95bfb339ea
5c531e17931d578387c0e25bca67ffce48a07f8e
refs/heads/master
2022-04-18T17:35:20.248810
2020-04-23T01:01:34
2020-04-23T01:01:34
258,034,963
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
urls.py
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from drf_tutorial.snippets import views urlpatterns = [ path('', views.snippet_list), path('<int:pk>/', views.snippet_detail), ] # Allows the generation of different content-type automatically # using <pk>.json, <pk>.a...
1262727e71221825729e708ce19ded857629c331
763165b9754bbb8fc9fd0f4e6b76060de5272e5a
/shakir/selenium/gmailsignin.py
239f31a0f1905b07413b984c938cba47ad49bc47
[]
no_license
shakirshakeelzargar/practice-python
fbac4e454ecf09f72ca0862639e94c76c17131c9
16ea9157fea205d889726132b178e9d732cdf695
refs/heads/master
2022-12-11T08:46:25.740758
2019-08-02T06:41:25
2019-08-02T06:41:25
196,965,448
0
2
null
2022-12-08T05:54:48
2019-07-15T09:14:41
Jupyter Notebook
UTF-8
Python
false
false
1,592
py
gmailsignin.py
#from selenium import webdriver #import time #from selenium.webdriver.common.keys import Keys #driver=webdriver.Chrome("D:/selenium/chromedriver.exe") #driver.set_page_load_timeout(10) #driver.get("http://google.com") #driver.find_element_by_name("q").send_keys("HELLO GOOGLE") #clickk=driver.find_element_by_xpath #clic...
7d1b1ff9d62bb361f652228068db56332af95b3b
9ae516bfa9c671655fac7b59a2e2cec27397833e
/k8s_yaml.py
b91c9210b247b6c65952ef1a8707a28e7df4dde9
[]
no_license
xuebkgithub/rancher-api-demo
0d7a427de657d5e2344322dc367c2ba066dd3a3c
c8e0b4a3d1242010384dcdd9565cf247f296d5fd
refs/heads/master
2020-09-04T02:06:56.354766
2019-11-05T02:04:15
2019-11-05T02:04:15
219,635,284
0
0
null
null
null
null
UTF-8
Python
false
false
8,990
py
k8s_yaml.py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'xuebk' import pprint from job_dict_java_dict_test import job_java_dict_test __ENV_EnvIronMent = { 'TEST': { 'namespaceId': 'test' 'eureka': '注册中心' } } def _get_artifact_info(artifact_id): """ 返回 全部 artifact 信息 :return...
130b8f6e9a107f5afde4caf1f656fd23f939b92e
6f7c1824556ee82f5baa3abf43ed9e813f6e3142
/utils/restful.py
c87e2dde28fc9515040884af8f35efd97935bc2b
[]
no_license
china-xuhappy/test-platform-server
418c632c5bf57ee98f09a3495a430ce2c32d7a23
c4bdb28f55129c2fa938b600fd7b1b94cd240ace
refs/heads/master
2023-06-25T08:21:50.574683
2021-07-22T07:53:50
2021-07-22T07:53:50
388,369,144
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
restful.py
""" 接口返回结果类 restful """ from flask import jsonify class HttpCode(object): ok = 200 unautherror = 203 paramserror = 400 servererror = 500 def restful_result(status, message, obj): return jsonify({"status": status, "message": message, "obj": obj}) # 成功 def success(message="", data=None): retu...
3fc39a1242f9d8234097b104775483b46eaf3af2
bea1ebff4e99266ee88faf85b46d51512e534b72
/capturarImagens.py
402245ba5f76c474784f1cf6c76ce0085ddeb262
[]
no_license
Kayanduin/reconhecimento-facial-opencv
69dcb91cc31d3707cb98ca2f0cb29ded1eb04924
f8f1495d7f66f27c40e9fe68e0d86f390b613fb8
refs/heads/master
2023-07-22T05:44:37.061925
2021-09-07T00:54:48
2021-09-07T00:54:48
403,480,680
0
0
null
null
null
null
UTF-8
Python
false
false
3,106
py
capturarImagens.py
import cv2 import numpy as np fonteTexto = cv2.FONT_HERSHEY_COMPLEX_SMALL classificadorRosto = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") classificadorOlho = cv2.CascadeClassifier("haarcascade_eye.xml") camera = cv2.VideoCapture(0) amostra = 1 numeroMaximoAmostras = 250 id = input('Digite seu identif...
3a8065a7c16b020b995118ebf5cad667fffaf25a
5db434dfc0e4dd1a1468e64b4ce6600b69e2700d
/knn.py
b4ffa82895c362e3ae8def3a6d9394be0ccfa88d
[]
no_license
JuhiPaliwal/Knn-Algorithm
8c700f1ece551ee39745ae8cefed8aaf4f9f766f
623ca0d2fc709dcf966d93334670bb386df45a64
refs/heads/master
2020-08-11T23:13:29.631836
2019-10-12T12:42:47
2019-10-12T12:42:47
214,645,183
1
0
null
null
null
null
UTF-8
Python
false
false
8,401
py
knn.py
from math import sqrt import operator from collections import Counter N = int(input()) with open('trainset.txt', 'w') as tr: for _ in range(N): tr.write(f'{input()[1:-1]}\n') T = int(input()) with open('testset.txt', 'w') as ts: for _ in range(T): ts.write(f'{input()[1:-1]}\n') RESULT_PATH = 'result.te...
f2ccb234144d7b30a2db8dff4981dc1ae98941f7
970a722e103db65a4018e198b863ae1ea67c562c
/src/pdf.py
67e4107418912bb340ff25553e00a95a1fa8144f
[]
no_license
easternpablo/Facturas
46251457890205d793dea2c13842943f45cb1450
d936d5318be243f0a59bd120c444d1f0e5301c9e
refs/heads/master
2021-05-14T05:05:39.635024
2018-02-24T20:48:44
2018-02-24T20:48:44
116,660,284
0
0
null
null
null
null
UTF-8
Python
false
false
2,892
py
pdf.py
from fpdf import FPDF import os import conexion class PDF(FPDF): ## CABECERA DE LA FACTURA def header(self): self.image('factura.png', 15, 8, 20) self.set_font('Arial', 'B', 12) self.cell(80) titulo = "FRUTAS VILCHES, S.L" self.cell(60, 5, titulo, 1, 1, 'C') self...
4b2c0432fefd617828ab3397b2748c007494b8a1
e87ae9d19e622daefca6f7030fd64eefcaba7a3f
/onion_eye/tasks.py
5ee964e581c4409b9d95344704e7a67d7489bbc5
[ "MIT" ]
permissive
06opoTeHb/onion_eye
269ba0876a2bbc6c18a89fafb4b716d602896ab3
6b64aa491f45e60296f7f7a07f8927baa2abe45d
refs/heads/main
2023-02-06T01:31:32.145074
2020-12-26T14:52:42
2020-12-26T14:52:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,252
py
tasks.py
from flask import current_app from onion_eye import celery, utils from onion_eye.config import Config import requests import json import datetime as dt from urllib.parse import urlparse from tldextract import extract celery.conf.beat_schedule = { 'task-looper': { 'task': 'onion_eye.tasks.looper', '...
128dc1c11722a8165209eebceaac152e0169997d
3db100ec4461d1adbb3629a86f243cea87ad8836
/punjab/patches.py
9e273cc01ca8203ee1c5fbc74ce5575d2d91a37e
[ "MIT" ]
permissive
twonds/punjab
dcce19770b22c7dc6f1ea6396ab61d6ee9f2f0d7
00344c0c6ad8976056148bab7019dd187723cc59
refs/heads/master
2021-01-14T10:53:10.489571
2019-05-31T17:51:07
2019-05-31T17:51:07
505,463
94
35
MIT
2019-05-30T22:39:57
2010-02-06T16:30:04
Python
UTF-8
Python
false
false
829
py
patches.py
# XXX: All monkey patches should be sent upstream and eventually removed. import functools from twisted.words.protocols.jabber import error as jabber_error def patch(cls, attr): """ Patch the function named attr in the object cls with the decorated function. """ orig_func = getattr(cls, attr) ...
9024337a6242b041b867fd826e68952caae7c130
c5f2ea94f845b37cd11fdfc60c9d33ddce35ce5d
/crawling.py
adb7a0c7a86743b969c4764ae21f25a4b0389ac9
[]
no_license
geonh22/bigdataprogramming
8ccc9bed08d114c4491e1722b8d738be4b1d4806
eafa2b57076e9c71c4a68254d3cc3324e676577b
refs/heads/master
2020-11-25T06:32:43.478749
2019-12-17T05:36:21
2019-12-17T05:36:21
228,540,584
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
crawling.py
import requests from bs4 import BeautifulSoup from selenium import webdriver from time import sleep driver = webdriver.Chrome('./chromedriver.exe') driver.get('https://www.cryptocompare.com/coins/list/USD/1') sleep(1) content = BeautifulSoup(driver.page_source, 'html.parser') coin = content.findAll('i',{'class':"ng-bi...
1ac085d8f0411d8c42a857ed8e1ae7985e4443dd
f27eba90b17da08a26e6320c67fb955520cfff76
/rsqueakvm/plugins/locale_plugin.py
9d5404bf9c6e672d2523b8ba4885d4e1d502060f
[ "BSD-3-Clause" ]
permissive
jimbog/RSqueak
0a89de3ed8f089f7ca5d7d8e3ab77d17b2768f6b
c4a33c4af2856fbd894c5a8a9e1266d985b62d2b
refs/heads/master
2021-01-11T19:54:30.587180
2017-01-06T09:20:08
2017-01-06T09:20:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
locale_plugin.py
import locale import time from rpython.rlib import rlocale from rsqueakvm.plugins.plugin import Plugin from rsqueakvm.error import PrimitiveFailedError LocalePlugin = Plugin() @LocalePlugin.expose_primitive(unwrap_spec=[object]) def primitiveLanguage(interp, s_frame, w_rcvr): fullname = rlocale.setlocale(rloc...
ed5d4ffac57a5ccea1230aab719f6603f7887f1d
c3582068fe1445453016a675b852472403d00a41
/utils/kalman_filter.py
29fd6f53383609f0069cacd97532042905c641d6
[]
no_license
Wolfffff/quantitative-genetics-behavior
ffa63a3d9fd3c79a860774a1d5e4d042a1a502a9
deb59c103fd4b1de46154ea1887bd0d54cbc41bb
refs/heads/main
2023-06-23T21:05:02.302657
2021-07-30T19:22:17
2021-07-30T19:22:17
360,919,760
0
0
null
null
null
null
UTF-8
Python
false
false
13,656
py
kalman_filter.py
from collections import defaultdict from typing import List import attr import numpy as np import pykalman from numpy import ma from pykalman import KalmanFilter from sleap.instance import Track class TrackKalman: kalman_filters: List[pykalman.KalmanFilter] state_means: List[list] state_covariances: Lis...
322b78e518babeb455706157bee857b54cacffc4
ef449c8c52fc88756b30e558c401fae7e8c06add
/0820_gmail_signin.py
a4c4dd12234d766590300c27330bafe217c23e3e
[]
no_license
f8481210/AE404_Fri
baffa6059a7dd1bf4749f62ee8c7cdd6611a45f5
89315a501c6942de66481414ef829d46ec5a9e66
refs/heads/main
2023-08-11T19:06:05.413400
2021-09-17T08:29:42
2021-09-17T08:29:42
382,316,651
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
0820_gmail_signin.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time chrome = webdriver.Chrome() chrome.get("https://www.google.com.tw/") chrome.find_element_by_link_text("Gmail").click() time.sleep(1) chrome.find_element_by_link_text("Sign in").click() inputBar = chrome.find_element_b...
5cda2c2639d35b0fac4270e38354f5a18ac3437c
c6fa97b8c9122a5ab859be453cd6895e680f133d
/vcfexplorer/__init__.py
18e3766d0bd708162daaccf90c1779d60ae60539
[ "MIT" ]
permissive
UMCUGenetics/vcf-explorer
3cc2394a163be050d41ec5248f33d18e90dd0d89
18b46b1f61181ce5cbd2a8065d272dd37081da8f
refs/heads/master
2021-09-26T12:56:03.141087
2018-10-30T14:21:12
2018-10-30T14:21:12
35,882,015
6
0
MIT
2018-02-23T12:13:31
2015-05-19T12:56:11
Python
UTF-8
Python
false
false
337
py
__init__.py
""" vcfexplorer VCF Explorer application package """ from flask import Flask from . import frontend, api app = Flask(__name__, static_folder=None) app.config.from_object('config') app.register_blueprint(frontend.bp, url_prefix='/') app.register_blueprint(api.bp, url_prefix='/api') if __name__ == '__main__...
deca36d6d82e24d3f8c3abbc9cf24191ed904f49
fbb9354ab7a42fe2dbb406660d7650e5b7cdcd22
/Data_integration/disease2db.py
df131d1e1859a3a252ec6992fde5ac3e5ea371ff
[]
no_license
gao-lab/REVA-Data_Source_Code
18d405c8d38e8182ea1a11e1545925780ca73877
f8875b232a6977e52cfc9468ecbe3dca21274268
refs/heads/master
2023-06-10T02:42:10.447152
2021-07-08T08:45:31
2021-07-08T08:45:31
267,210,712
0
1
null
null
null
null
UTF-8
Python
false
false
763
py
disease2db.py
import numpy as np from pymongo import MongoClient def prepare_doc(title_list,row): document={} for x in range(len(title_list)): document[title_list[x]]=row[x] return document def insert_gene_disease(file_path): client=MongoClient() db=client.emdb collection=db.disease_variant temp...
402f1cbfe0f4f8be4ba1aec875ed2d45bc4c4d3f
e2a12b6d11a54f75b3dff0629c908b19bc09a591
/test_genie-master/build_case.py
7e9fba4054ed7b733b0b704a0f6ce7bac1f43474
[]
no_license
zhaolei1030/deve
5531f2f7fdae059fbb3bb0cefa4f251ed3b8131e
9c5e125168ac0a999e0f76e830a9196d635d6176
refs/heads/master
2020-08-03T13:09:43.342528
2019-11-30T15:29:01
2019-11-30T15:29:01
211,763,533
2
0
null
null
null
null
UTF-8
Python
false
false
6,438
py
build_case.py
#-- coding:UTF-8 -- from bs4 import BeautifulSoup import math import requests import jenkins import sys import time import io import os import itertools import json from xpinyin import Pinyin # reload(sys) # sys.setdefaultencoding( "utf-8" ) session = requests.session() path = 'https://wiki_url' session.post(url= path,...
536f526fe090ea20a4e16c77236435d38868cd93
dafe5f34649d543ae09b55f381ecc97eb02d817f
/commandcon/actions/help.py
93f80413213c2fb144865c5fe35b7068ca646c81
[]
no_license
devdave/DevDave-s-miscellanious-bucket
64c46c88202cb989df23ea4da5799c34124189e3
8e66cb6d2f06b86d458519a793b305a5e89b2179
refs/heads/master
2016-09-06T08:48:24.436639
2011-07-27T17:04:28
2011-07-27T17:04:28
1,387,778
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
help.py
from lib.statemachine import (StateMachine, ConsoleCls,) class help(ConsoleCls): """Displays any help/doc information on a console action""" summary = "help actionName ..." def __init__(self): if StateMachine.argsc == 1: print self.__doc__ else: #assum...
81156e9fe7623368831626c74f0c1564f4c515f8
6da99a19773c5bc9a27d489efd2f912fa8d47342
/tests/flask_tests/conftest.py
935be654b773fb9a0b29c5e9004938805ed49b15
[]
no_license
de1mos242/little-diary-auth-service
5e348dc870a95206e236a0c6a0a1a375ac2b74d5
75e0f474bd9eed1c1e09de09b9c6191375efaea4
refs/heads/master
2021-02-08T10:06:27.674524
2020-05-09T22:07:07
2020-05-09T22:07:07
244,140,216
0
0
null
2020-04-20T17:49:08
2020-03-01T11:54:43
Python
UTF-8
Python
false
false
4,038
py
conftest.py
import json from uuid import uuid4 import pytest from pytest_factoryboy import register from auth_api.app import create_app from auth_api.commons.utils import hash_password from auth_api.extensions import db as _db from auth_api.models import User, InternalUser from auth_api.models.resources_enum import Resources fro...
fac3b8c557908d1545e00bfa6a289d4cd08cdf87
592498a0e22897dcc460c165b4c330b94808b714
/2000번/2033_반올림.py
4dc35b2eae36380276d22962e1e56b8d019a2de1
[]
no_license
atom015/py_boj
abb3850469b39d0004f996e04aa7aa449b71b1d6
42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d
refs/heads/master
2022-12-18T08:14:51.277802
2020-09-24T15:44:52
2020-09-24T15:44:52
179,933,927
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
2033_반올림.py
n = list(map(int,input()))[::-1] for i in range(len(n)): if i != len(n)-1: if n[i] >= 5: n[i] = 0 n[i+1] +=1 if n[i] < 5 and i != len(n)-1: n[i] = 0 s = "" for i in n[::-1]: s += str(i) print(int(s))
c87b1dcb8a1d08ee50434cac46de51e2e2c9d8b3
7dda81ff885f48e3632134db35938c9809170b5f
/cpu_process_parsing.py
40a14799c3e7711a634fca1b099042db4866fc6b
[]
no_license
MnMes/compilations_visual
4b12996f2f4ac25315b3366e4d188ef5604d1a2d
2920f504fb0e4972a5913c311a06b7a026d29130
refs/heads/master
2021-01-15T13:23:56.178584
2016-09-19T12:16:42
2016-09-19T12:16:42
68,602,222
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
cpu_process_parsing.py
#!/usr/bin/python3 import sqlite3 import re import unicodedata from bs4 import BeautifulSoup from pprint import pprint from urllib.request import Request, urlopen from urllib.error import URLError, HTTPError class cpu_process_parsing: def parser(self, cpu_type_list): microarchitectures =...
f0bcf53b5f62b95ad2f59ffc3ba0c37163c8ded5
6bfe513f73eb7cc2c7a939df36d17fdacb52f0d5
/aoc2022/test_day05.py
cc21776db2b97d402defb1e4a5785d73c5cc9988
[]
no_license
oskar404/aoc
3ed3cb4cb3022758438abe6494ac82f39ccbf507
a1b584abe4a2ab0d8a2d49e02e645f6e67d93da6
refs/heads/main
2023-01-23T21:31:40.845862
2023-01-18T19:52:55
2023-01-18T19:52:55
159,975,975
0
1
null
null
null
null
UTF-8
Python
false
false
416
py
test_day05.py
import pytest # noqa: F401 # pylint: disable=unused-import from day05 import solve_part1, solve_part2 TEST_DATA = """ [D] [N] [C] [Z] [M] [P] 1 2 3 move 1 from 2 to 1 move 3 from 1 to 3 move 2 from 2 to 1 move 1 from 1 to 2 """ def test_solution1(): result = solve_part1(TEST_DATA) assert result ...
a85cf1adc16f21f7bc9fb6140029d787b55ccb34
57131527a19ea1b4cc20858be3c2ffd29fa585e0
/opencv-7(changing pixel color).py
59310f8ffd3a1c1906dd01d1e0ae94ac96c3ded1
[]
no_license
joshanjohn/opencv-with-python
a433d794be0e05dbd8b00931dcf8a56fe4feb640
1087e97aa397dbfde2eb5d18d6e0341dc5110322
refs/heads/main
2023-04-30T15:34:38.666565
2021-05-16T18:01:38
2021-05-16T18:01:38
361,233,895
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
opencv-7(changing pixel color).py
import cv2 import random #for simply get a random color img = cv2.imread('assets/logo.png',-1) for i in range(1000): #look through first 100 rows for j in range(img.shape[1]): # to get the entire width of image for the column in i img[i][j] = [random.randint(0,255), random.randint(0,2...
d33ea8f8ad5a2f95304d1f1eea7232a97cac152b
a484966bff2f26a96db721e9ee2542a1953f9ab3
/pyclustering/cluster/examples/kmeans_segmentation.py
c080b0124e68015820aac58c55208d6c6a78b38a
[]
no_license
miudit/MPI_OPTICS
24b9ae581202e6765ff6b9a50db63a6a77d70821
8798c9db5410241991e1968f2f88240fa83825bb
refs/heads/master
2021-07-01T19:15:18.767081
2017-09-20T04:39:07
2017-09-20T04:39:07
100,620,068
1
2
null
null
null
null
UTF-8
Python
false
false
3,502
py
kmeans_segmentation.py
"""! @brief Examples of usage and demonstration of abilities of K-Means algorithm in image segmentation. @authors Andrei Novikov (pyclustering@yandex.ru) @date 2014-2016 @copyright GNU Public License @cond GNU_PUBLIC_LICENSE PyClustering is free software: you can redistribute it and/or modify it un...
bd09a1c8bbad7a010ede82e3fb64c710ccd0648e
8f89bd1536f68fab3cabec7fbe930b72774df2e7
/observaciones/scripts/WeatherHillsQA/shared/parser/africa.py
f0a99c0b3d5e0d9cec43ac29860e2dc5fe9f3775
[ "BSD-2-Clause" ]
permissive
Esli92/legendary-seagull-cloud
a052b3c081cbddd242941eef0a41023e476ff0a7
39430057137c49d2406a5410bafebc7900f36ce6
refs/heads/master
2021-01-25T07:40:37.109619
2017-06-07T15:15:05
2017-06-07T15:15:05
93,649,601
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
africa.py
from parser import SeparatedTextObservationParser, InsufficientHeaders from datetime import datetime def float_or_na(s): if s == '': return None return round(float(s), 4) def parse_date(d, t): return datetime.strptime('{}_{}'.format(d, t), '%m/%d/%Y_%H:%M') def parse_temperature(s): t = fl...
9903386051bf6cd8040a73bcdc2712790699f12e
236d834f60efc0f3ba8679bd4dd25ad115e5fa6f
/requester.py
fdad7076552a875410da1bce66d82e3eb397f465
[]
no_license
KevBoyz/Url_request
005b7852570e9309a7cd671531f96f6e0ad24202
caf20820f1fc1306e74b79981e89bbbe94d3d4ac
refs/heads/main
2023-03-06T05:57:12.924887
2021-02-19T13:57:53
2021-02-19T13:57:53
340,381,955
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
requester.py
import urllib import urllib.request def request(url): try: urllib.request.urlopen(url) except Exception as erro: print(f'Falha ao requisitar o endereço \n{url}') print('Tipo de erro:', erro) else: print(f'Request aceita') print(f'{url}') while True: url = str(input('URL: ')) print() ...
edeb37a4f80ff1ff70da07dc61502d90ef3e3b9d
c981dd80e5de78475928e66bf1bd4ea31689c1f7
/v1_scripts/tf_text_processing_demo.py
f486ea6008d626bac668bcf76f9eeb816c5325eb
[]
no_license
cuiyongbo/tf-scaffold
714b8ffef929e4f7e70d65a489d8b180a010f35a
8a71ff846e2f960844312caeb5793781aa48f602
refs/heads/master
2023-08-09T06:53:43.538644
2023-08-07T15:15:01
2023-08-07T15:15:01
203,778,931
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
tf_text_processing_demo.py
import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers import tensorflow_datasets as tfds tfds.disable_progress_bar()
6f7ecff48cb5e7b0cc8968bf8ac9ee78079b23f2
91f5ab250239a9661c7c0e2d9506f3a5e5742ea9
/simulator/simulator/simulator.py
be9f981566afc6611ddbbe5e91195c3caaf37d45
[]
no_license
mzhuang1/DemandManagement
1cd835e29ac0fd7f414b8acca84cc38ed1ee1055
c13cd0a3e43cdf106457e5dfb5379022e0ff7d42
refs/heads/master
2022-03-02T20:25:28.017931
2019-10-15T16:56:48
2019-10-15T16:56:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,912
py
simulator.py
#!/usr/bin/env python3 import datetime import gc import os import time import pandas from . import gridStatistics, priceConfig from .constants import oneDay from .grid import Grid from .house import House # smart grid simulator main class class Simulator: # run the smart grid simulation @classmethod def run(cls...
cb32aa6a1c42e7bb417999f3f6f74ec22209c5a0
8d7fd09f155a0c8601141044870050a0667662ea
/v1/crawl/serializers/crawl.py
d17cc5593f6980fd25738956ff37edc3d157ad21
[ "MIT" ]
permissive
open-blockchain-explorer/Bank
641a5ffc4a70ebd63ae1eae698c6164c39c05a9d
839af809ea2c05a22b3c95b42e55dd2ce279c087
refs/heads/master
2023-08-22T23:04:56.312705
2021-09-20T15:51:36
2021-09-20T15:51:36
325,993,463
2
3
MIT
2021-09-20T15:51:37
2021-01-01T14:23:27
Python
UTF-8
Python
false
false
2,079
py
crawl.py
from django.core.cache import cache from rest_framework import serializers from thenewboston.constants.crawl import ( CRAWL_COMMAND_START, CRAWL_COMMAND_STOP, CRAWL_STATUS_CRAWLING, CRAWL_STATUS_NOT_CRAWLING, CRAWL_STATUS_STOP_REQUESTED ) from v1.cache_tools.cache_keys import CRAWL_CACHE_LOCK_KEY, ...
7ef62e5545930ab13312f8ae1ea70a74386d8bfa
3d0cbd3d602612b2ff308c7cc3b2365f2ec3900a
/Project (9).py
d3b6a21dd4df3c70a444a387cd736ca780513ff3
[]
no_license
rakesh08061994/github_practice
5ed0e94e61c5368ed77a0cdc1c0f93f70dcc1336
d3e0765180592c30382ac0e88c544fc56dd57772
refs/heads/master
2023-08-25T07:18:11.569041
2021-10-26T10:12:24
2021-10-26T10:12:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
Project (9).py
def ip_address(address): new_address = "" split_address = address.split(".") seprator = "[.]" new_address = seprator.join(split_address) return new_address if __name__ == "__main__": ipaddress = ip_address("192.168.1.1") print(ipaddress)
8f558593e516aa4a769b7c5e1c95c8bc23a36420
1f655bb2270414f645cebce79c234ae780be5012
/gmm/grad_check.py
72890b892cfba63ab281442e380f03792e1e0fbd
[]
no_license
insperatum/rrws
d8f7c2ee1ac594977a6dfb5282248b4b2ce79131
2561d963727a0ce98d147e0e77a7d8053449d918
refs/heads/master
2020-09-01T20:22:43.953732
2020-01-28T23:13:20
2020-01-28T23:13:20
219,048,040
0
0
null
2019-11-01T19:16:13
2019-11-01T19:16:13
null
UTF-8
Python
false
false
6,985
py
grad_check.py
import torch import util import numpy as np import argparse import losses args = argparse.Namespace() args.device = torch.device('cpu') args.num_mixtures = 20 args.init_mixture_logits = np.ones(args.num_mixtures) args.softmax_multiplier = 0.5 args.relaxed_one_hot = False args.temperature = None temp = np.arange(args....
c5bbfa1a86dbbd431566205ff7d7b941bdceff58
7b9058d2dfb582e0c33844544d4bd49334c31b0f
/analysis/plot/plot_paramsearch.py
4455d541c618a0bd05fd0c6288ad2eb14d7eb2c9
[]
no_license
huazhz/master
5e914556d33a576eca5bf58082e833efb6c9d477
5e7a1c6a64037870a3605b3befc3908d7db2bc22
refs/heads/master
2020-05-07T12:03:45.486033
2013-05-18T15:41:18
2013-05-18T15:41:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,630
py
plot_paramsearch.py
#!/usr/bin/env python # encoding: utf-8 """ plot: regularization on x axis, number of k_best features on y Created by on 2012-01-27. Copyright (c) 2012. All rights reserved. """ import sys import os import json import numpy as np import pylab as plt import itertools as it from master.libs import plot_lib as plib ...
2c4fa92b28fa46a26f21ada8826474baac204e00
6de11d566f53573872f998509ebb5949f724e0ca
/01.Python/python_scripts/list_comprehension.py
201f96be067b5130c700d4d09c1c4b4afb2427e0
[]
no_license
leiYan1225/DSR
47b91b1e06596d78260c6809263fa11511331ce8
fdbc6e204c01854f6162a593faafaf4b21130dd3
refs/heads/master
2020-08-27T05:50:30.435880
2019-05-17T12:45:44
2019-05-17T12:45:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
list_comprehension.py
def mysum(*c): print(sum([x for x in c])) mysum(1,2,3,4,0xB)
af2aa236f6bfc582093faf868a374be1ebdfabf2
73c2db922d6c51323cfd3bb1536276c34d8096e5
/src/score_isosegmenter.py
2c51f24b123e0a542d83064a0ceb329cac757358
[ "MIT" ]
permissive
RackS103/Segmentation-Algorithm-Comparison
b065410d5be78132b365e76a064801f27c4a4480
77eb4642cc87c6d1dc9babc3e8458c043a9961fe
refs/heads/main
2023-08-13T18:49:30.739326
2021-10-13T02:39:29
2021-10-13T02:39:29
368,223,066
0
0
null
null
null
null
UTF-8
Python
false
false
6,074
py
score_isosegmenter.py
""" """ import os import json import csv cutoff = float(input("Tolerance (decimal)? ")) docpath = "C:/Users/RackS/Documents/" out = open("isosegmenter_scoring_error"+str(cutoff*100)+".csv", 'w', encoding='UTF-8') summary = open("isosegmenter_score_summary_error"+str(cutoff*100)+".txt", 'w', encoding='UTF-8') out.write...
2396f7acab95260253c367c62002392760157705
12cd9a1083b9aef2b0d70117487eb772920715b3
/examples/gnn_models/gcnii.py
3020b0d1d5385101daef8b2d93945e7641625eaf
[ "MIT" ]
permissive
sailfish009/cogdl
2ae6bd1c104d558e2cc5521b901f21decfe0fd47
5d6547220efeab223e13314ac88f5dc42de68d18
refs/heads/master
2023-02-12T16:16:51.234055
2021-01-10T10:35:24
2021-01-10T10:35:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
gcnii.py
import random import numpy as np import torch from utils import print_result, set_random_seed, get_dataset, get_extra_args from cogdl.tasks import build_task from cogdl.datasets import build_dataset from cogdl.utils import build_args_from_dict DATASET_REGISTRY = {} def build_default_args_for_node_classification(da...
dace25428f48da633ee571b51565d15650782649
7f616d7a8247cb03920645646b3ea75f1373cbc4
/python/saber.py
4abe0c312516a6f45d44e3cdc7dc517ed3e93d78
[]
no_license
zswan34/saber-scripts
c41a0451454da4382dba5a63852ef395421a28d5
33ac3d1ce599b671d5002ccc2ecf4c22a6b436c4
refs/heads/master
2020-06-18T08:59:24.827866
2016-12-11T04:34:45
2016-12-11T04:34:45
75,148,440
0
0
null
null
null
null
UTF-8
Python
false
false
7,945
py
saber.py
#!/usr/bin/python import os import sys import csv import json from time import sleep from datetime import datetime ShowProgress = False ConvertTime = False def print_welcome(): print(""" [*******************************************************************************************************] ...
347627df4b08eca6e2137161472b4d31534cf81b
5d33fb6d22efa48f89f35ada96766af79ae3bc95
/core/helpers.py
055d084cf98446c692718d4dc3c719e52054fd81
[ "CC0-1.0" ]
permissive
One-Green/admin-ui
5b25aa21f8476714ae04567cca02d49c93fb44da
194d5878d0f737bd121ed8356434bf9fae3914e1
refs/heads/master
2023-08-21T15:12:30.234249
2021-09-16T18:32:27
2021-09-16T18:32:27
334,261,975
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
helpers.py
import pytz import datetime def apply_timezone_datetime(_local_tz: str, _time: datetime.time): """ set time zone + merge now().date() with time() :param _local_tz: :param _time: :return: """ return pytz.timezone(_local_tz).localize( datetime.datetime.combine(datetime.datetime.now()...
a36a553342cfe605a97ddc0f636bbb73b683f6a6
0c868ffd497d6ca80db15e10d96373ea65570ad1
/iter2/coroutines_log2_parsing.py
62899c5a6d41ec3fae8486fc3818e736f37f7132
[]
no_license
chivitc1/py-design-pattern
77485989fe68a1ca3d9de07b67de25bd3ae3e0b2
4a64e61678d6413330ca144b4543991fe56baba9
refs/heads/master
2020-03-23T02:06:19.911134
2018-08-04T11:32:07
2018-08-04T11:32:07
140,956,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
coroutines_log2_parsing.py
import re def match_regex(filename, regex): with open(filename) as file: lines = file.readlines() for line in reversed(lines): match = re.match(regex, line) if match: regex = yield match.groups()[0] def get_serials(filename): ERROR_RE = 'XFS ERROR (\[sd[a-z]\])' #...
fa964a9cafffadedeebe12517a18c2b25f7add8a
f183125c7e1c446eb6ec20309e38ddbf2b27dc5e
/Whatsapp automation.py
0ea12719e1154572c7fd4b27768ba4a453d5984f
[]
no_license
HashaamSaeed/Job-automation-for-AgileCRM-using-Selenium
11cf419de4745e1fee5e32f8706c50821c1a91f5
1665a04e9d493ae9e12e28c32f1540da09717c95
refs/heads/main
2023-03-27T12:24:29.652103
2023-03-24T13:45:29
2023-03-24T13:45:29
352,308,128
0
0
null
null
null
null
UTF-8
Python
false
false
9,424
py
Whatsapp automation.py
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.options import Options import random import time ## for login page needs to be t...
d876baa0746c59206fd8dc644cdf12c8c5cb1f93
8057c36c16ad07d9e901bcd87ca44e6626795c6c
/sentarget/tuner/functional.py
51726edb2c9f8d11cdabb31d8329e213f03aa69b
[]
no_license
arthurdjn/targeted-sentiment-analysis
ec04c3664d3673faa642dfdf7467a0a7f84313d9
8e4a08d2a5133d71b332f4ccbf8baf1a342c02ee
refs/heads/master
2023-01-18T18:00:32.660962
2020-11-30T20:14:12
2020-11-30T20:14:12
265,888,392
3
0
null
null
null
null
UTF-8
Python
false
false
3,873
py
functional.py
""" Optimization functions used for hyperparameters tuning. """ import inspect from sentarget.utils import rgetattr, rsetattr def tune(model, config): r""" .. note:: If the key is separated with a '.', it means the first index is the module to change, then the attribute ``key = 'LSTM.dropou...
c7bd601521506daf0ca7594960559b42d002d888
3e7a8c5630de986a4d02011b1bd368c041f3f477
/pytorch/Pytorch实现模型蒸馏.py
cf2c340a4bb67a76b0d3ac3c6c88d2b469db1507
[]
no_license
gswyhq/hello-world
b9ef715f80d2b39c8efaa1aa2eb18a6257e26218
b1ab053a05e1f8c63b8b04d6904a3cdca450bd9f
refs/heads/master
2023-05-26T13:15:36.788620
2023-05-19T13:38:50
2023-05-19T13:38:50
158,821,148
16
6
null
2021-03-19T02:59:48
2018-11-23T11:04:43
Python
UTF-8
Python
false
false
4,003
py
Pytorch实现模型蒸馏.py
# decode=utf-8 # 训练模型的优劣性取决于模型的泛化能力,在对预测数据进行预测时,会出现较好的预测结果; # 通常情况下,复杂度高的网络结构会具有较好的泛化能力,但是资源消耗较大,且存在信息冗余。 # 而所谓的Distilling就是将复杂网络中的有用信息提取出来迁移到一个更小的网络上,这样学习来的小网络可以具备和大的复杂网络想接近的性能效果,并且也大大的节省了计算资源。 # 这个复杂的网络可以看成一个教师,而小的网络则可以看成是一个学生;蒸馏最终的目的是使得学生网络可以具备老师网络的性能,且降低模型复杂度,减少资源消耗。 import os import copy import torch import torc...
3dca0f7ac3390df1f729faa8a940afca1143a0c1
8ba4e4af60a3b0efc15ca645b1ec0ccd8882a079
/showpath/sta.py
abc25b00164769a912a083d44da5106aca0816eb
[]
no_license
OzzyTao/trajectory
84e141a01118974b6c2fcb6af00da32dc4ae1e28
41bf3ee93e5116ca372716e646f751f95a3225c1
refs/heads/master
2020-05-17T22:46:08.563890
2015-03-05T01:03:28
2015-03-05T01:03:28
31,688,648
0
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
sta.py
import pickle import operator from scipy.stats import pearsonr def compare(col): def temp(x,y): if x[col]==y[col]: return x['possibility_Rank']-y['possibility_Rank'] else: if col=='CLength': return 1 if y[col]-x[col]>0 else -1 else: return 1 if x[col]-y[col]>0 else -1 def possi(x,y): return 1...
6e0dd4c0ff7c96a594fd254f77680923de39c67a
e4ccd89fff7a16ba8d3b2af20b8067bef3d4aa27
/bapsflib/_hdf/maps/core.py
ba9c8754feb7e0c29f3274de53b69359ccae53b6
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
BaPSF/bapsflib
357ad2f618270d56660b0f0dd0a5ac6851eef60f
c824f4e5025f4d5a0a7ce56add7e16bb216768d4
refs/heads/master
2023-08-18T09:39:20.424224
2023-08-15T17:33:01
2023-08-15T17:33:01
96,149,769
11
12
null
2023-09-05T20:35:23
2017-07-03T20:55:27
Python
UTF-8
Python
false
false
9,478
py
core.py
# This file is part of the bapsflib package, a Python toolkit for the # BaPSF group at UCLA. # # http://plasma.physics.ucla.edu/ # # Copyright 2017-2018 Erik T. Everson and contributors # # License: Standard 3-clause BSD; see "LICENSES/LICENSE.txt" for full # license terms and contributor agreement. # """ Module for ...
1f6a9957a72f7ffef840738a050c18c422de5a22
16138aea1cc24db0591e0896f7e3a7795f141c9e
/kanche-share/data/hx2car_helper.py
dd01082413ebba1ee18d12cb3dd4296af85c8ccd
[]
no_license
qinying/test
764e30e061a854fee473538267bb7a33ec413e8d
7c11d66163ed4bd56172a2bc6125555e81e8bd14
refs/heads/master
2019-09-25T03:16:47.672515
2018-01-12T09:17:25
2018-01-12T09:17:25
99,181,559
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
hx2car_helper.py
# coding=utf-8 __author__ = 'zhuonima' # 辅助生成json格式的 用户名-密钥 if __name__ == '__main__': f = open('hx_api_account.txt') lines = f.readlines() lines = map(lambda line: line.split("\t"), lines) lines = map(lambda line: [line[0], line[4].strip()], lines) for (usr, key) in lines: print('"%s": "%s...
16b646f2c549b9adb787ef67e78bdaf297b6da3f
19585a907ab1e1dafb00e53cce4f1803e805f4a6
/src/connect4/detector/front_holes.py
0a0686e6ae1c6d4e7bb49e0a331f2fa61da42bfb
[]
no_license
Angeall/pyConnect4NAO
00ad27370746f36480b42cb49690ce6d3dadfece
700d84b0cde2cb8e3e7d5ff2c5ca7858679b4e8d
refs/heads/master
2020-12-01T11:38:46.776337
2018-09-02T12:41:57
2018-09-02T12:41:57
43,453,113
0
1
null
null
null
null
UTF-8
Python
false
false
3,785
py
front_holes.py
import cv2 import numpy as np from utils.camera.circle_grid_detector import CircleGridDetector, CircleGridNotFoundException __author__ = 'Angeall' class FrontHolesDetectionException(Exception): """ Exception raised when there was an error during the detection """ pass class FrontHolesGridNotFoundE...
b54544b35c47ab388f2db0f26f9c94233c9547ff
11e18fa76aa70a580138fd7fae41339756e65c5d
/PythonTut/tuts/tut8.py
3a91a9401248f1c96cc7e661ab6708b3948a463f
[]
no_license
skeletorpower/python
cc04f37271dee6759aa7909bf66a835f060fb744
5b90ca5b7bd855b54308f6ea8d54a0811996772f
refs/heads/master
2021-08-19T09:45:15.646078
2017-11-25T17:16:29
2017-11-25T17:16:29
110,279,757
0
0
null
null
null
null
UTF-8
Python
false
false
1,566
py
tut8.py
''' Created on Oct 25, 2017 @author: aleksandar.novic ''' from idlelib.iomenu import encoding ''' import os from idlelib.iomenu import encoding with open("mydata.txt", mode="w", encoding="utf-8") as myFile: myFile.write("Some random text\nMore random text\nAnd some more") with open("mydata.txt", encoding="utf-8"...
0a43ea88ed1a72c455fe3cbd0a4d90a33ae7a1d2
4ddafa106c565073efd82476df468625b5255d68
/WHA.py
50e7162bc1938b280a28c543b0397f1368ea3530
[]
no_license
ajostler/MonopriceWHA
83f83dc14062413707de305ed4a202b86762c694
cdb5a6e975022880901c93a63f40d25ebcf221e2
refs/heads/master
2021-01-13T13:14:35.837342
2016-11-03T04:30:19
2016-11-03T04:30:19
72,708,293
2
0
null
null
null
null
UTF-8
Python
false
false
4,896
py
WHA.py
#This is the main function that starts the webserver and the polling routine import web from serial import Serial import time import threading import logging import pandora_player import speech import PA log_path = r'test.log' with open(log_path,'w') as f: pass logging.basicConfig(filename=log_path, level=logg...
28257a1cc1ae305939ddf54931ed955e447b851e
7da97aeb41c4514de53400f286c1477439b1c058
/src/rh/interface/nodes/i2c_node.py
bc48d5247430c4b69c7b71933c268f9477343a6d
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
pulquero/RotorHazard
401a82d8c1cd01a143543ab26b0cf5ca0c2e7ba5
11f50e3ae834408bb626fc7ace157f6fd1e8f46c
refs/heads/BetaHazard
2023-01-11T15:59:59.981555
2022-12-30T00:54:49
2022-12-30T02:45:01
188,486,604
6
0
NOASSERTION
2022-09-30T23:45:43
2019-05-24T20:57:26
Python
UTF-8
Python
false
false
2,144
py
i2c_node.py
'''RotorHazard I2C interface layer.''' import logging from smbus2 import SMBus from .. import RHInterface as rhi logger = logging.getLogger(__name__) class I2CNodeManager(rhi.RHNodeManager): def __init__(self, i2c_addr, i2c_bus): super().__init__() self.i2c_addr = i2c_addr self.i2c_bus =...