blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf0996731071b8b44d7b75065a6354f75b6b8bb2 | b7120d0a1b3f3afbd541a777f3956bf7e6fdf1b3 | /pipe.py | 389a14bc70ddaa2719a535b723610c90014680be | [] | no_license | whutwagner3/Bridget_sucks | 05a5db1f596865764e0d9a9a265e144d9d976001 | 17adf80c7beaaa07c0eff84778ff0b8d8c59018b | refs/heads/master | 2020-05-14T11:30:14.966717 | 2019-04-26T03:54:22 | 2019-04-26T03:54:22 | 181,778,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 23 11:11:02 2019
@author: bnmon
"""
import bridgey
import go_heritage
import script_path_length
#gene_ids = ['AGAP000069', 'AGAP000153', 'AGAP000225', 'AGAP000294', 'AGAP000329', 'AGAP000346', 'AGAP000351', 'AGAP000379', 'AGAP000413', 'AGAP000422', 'AGAP00044... | [
"noreply@github.com"
] | noreply@github.com |
f04f6759d83c8515193c99bb71ab1374c4f33a33 | ab86b5b94e6bcfdfc1468b17971aaaa349ad203d | /handlers/_netools/devicer/exceptions.py | 952398203c61e6bf6de13fcca7cbb87cb88c3522 | [] | no_license | rleschuk/ebot | 6c48cc68028164a790685831fd3dd23081b3cb43 | 2d995a658a63009e7932900703a5cb6d7f51a434 | refs/heads/master | 2022-12-12T15:31:15.476429 | 2018-09-16T20:34:27 | 2018-09-16T20:34:27 | 147,944,627 | 0 | 0 | null | 2022-07-06T19:51:37 | 2018-09-08T15:15:49 | Python | UTF-8 | Python | false | false | 277 | py |
class ICMPError(Exception): pass
class SocketTimeout(Exception): pass
class PromptTimeout(Exception): pass
class LoginError(Exception): pass
class MaxAttempt(Exception): pass
class NotFound(Exception): pass
class ConnectError(Exception): pass
class AttrError(Exception): pass
| [
"r.leschuk@gmail.com"
] | r.leschuk@gmail.com |
dd038b82abb9968a1e520980dbf9cdafc68032ce | f3e8b2568492ff0b4a3b68aa6fffaf5168e94a61 | /src/utils.py | e473612083ff61441dd07e4d5b402e572040933b | [] | no_license | mmio/VINF_assignment | 255e4a574962a77c0b0b77111124c4059818d795 | 87a4631b02bc2eb5b73cd21e0686b16ba291f597 | refs/heads/main | 2023-01-29T21:52:03.312511 | 2020-12-14T19:34:55 | 2020-12-14T19:34:55 | 305,449,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from sklearn.manifold import TSNE
from sklearn.decomposition import TruncatedSVD
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
import os
import itertools as it
import datetime
def read_from_pickle(path):
with open(path, 'rb') as file:
try:
... | [
"dominikvasko96@gmail.com"
] | dominikvasko96@gmail.com |
75396f236e60d4dff278ae57298b003a99c16eb3 | 1a535e0ca3af1be4e28108a766f899b18fa19c7e | /trans.py | 37eb6d867f10046b6418b5dd27e79b07debb83fd | [
"MIT"
] | permissive | DreamDarker/RGB_Trans | 80d397de9c040f71e96efd54ebcf3a8e0621c1f7 | aaad8aadfca4cc81d329700fdade3609482bad69 | refs/heads/master | 2020-06-15T18:52:18.952638 | 2019-09-13T05:30:26 | 2019-09-13T05:30:26 | 195,368,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 24 10:47:36 2018
@author: yxh
"""
import numpy as np
from PIL import Image
# import matplotlib.pyplot as plt
import os
import sys
import shutil
path='C:/Users/12084/Desktop/Proj/data/test/mask/'
newpath='C:/Users/12084/Desktop/Proj/data/test/maskout'
def turnto24(path... | [
"120844854@qq.com"
] | 120844854@qq.com |
dd5ae609ca7100fb4ccdb89fb6746498021b8727 | 7ab805b9cc922144048f5f53903ebf1363cd2854 | /Python/Information Retrieval/HW4/es_file_parser_indexer.py | c7af72513191dd14ba988fd53d5802baf2b6ca1d | [
"MIT"
] | permissive | ameya-pandilwar/portfolio | a36d33f38664aeb19bd15bc4aa7a41949788f56b | a87dd94517379ceac483c4fd71c7fc3d18b3499a | refs/heads/master | 2021-03-22T01:03:04.089102 | 2017-07-28T04:31:55 | 2017-07-28T04:31:55 | 30,634,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,742 | py | __author__ = 'Ameya'
import os
from datetime import datetime
from elasticsearch import Elasticsearch
if __name__ == '__main__':
index_name = "assgn_03"
es = Elasticsearch(timeout=30)
folderpaths = ["E:\\IR-HW3\\Web Crawler Documents"]
inlinks1_path = "E:\\IR-HW3\\outfile"
inlinks_dic = {}
s... | [
"ameya@ccs.neu.edu"
] | ameya@ccs.neu.edu |
5f3f8fd947793bfc5c463ab8208cc702b40006e5 | 3c008d7a4653e7894091e4882ddb81e1bf5fca49 | /tf_lr.py | 324f10fdfc6ed5d6d81ec417606d8efde8c34720 | [] | no_license | CurryTang/PythonMachineLearningStudyArchieve | bc0be1a0a3545e2ce053225ed0b438925eaab369 | 59aef945fb63cb2b03d60b91d46a9cc24c53d010 | refs/heads/master | 2020-03-18T09:49:49.800918 | 2018-08-27T11:38:19 | 2018-08-27T11:38:19 | 134,582,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from datetime import datetime
now = datetime.utcnow().strftime("%Y%m%d%H%M%S")
root_logdir = "tf_logs"
logdir = "{}/run-{}/".format(root_logdir, now)
import tensorflow as tf
import numpy as np
from sklearn.datasets import fetch_california_housing
housing = fetch_california_housing()
m, n = housing.data.shape
housi... | [
"jjoo1997@hotmail.com"
] | jjoo1997@hotmail.com |
278cc3958f1efda1be358fc909e219cb36d765ed | 6632b1b10bb8cab5351b6ba74511cee1c9216698 | /convalesense/exercise/urls.py | e61671e9d5db49c5db5d74a9093c2c60202986d0 | [
"MIT"
] | permissive | DADco/convalesense-web | 46d069090b3d5569866aa500c985e9e856f5fa13 | 06766df5a266f3bb01ad5adacb1d51650aae59da | refs/heads/master | 2021-01-11T16:31:39.430952 | 2017-01-27T14:42:36 | 2017-01-27T14:43:39 | 80,101,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from django.conf.urls import url, include
from rest_framework import routers, serializers, viewsets
from .serializers import (ExerciseViewSet, PlanViewSet, UserViewSet,
PlanExerciseViewSet, ExerciseRecordViewSet)
router = routers.DefaultRouter()
router.register(r'exercises', ExerciseViewSet... | [
"jaymz@jaymz.eu"
] | jaymz@jaymz.eu |
9a7ad15384b70a345a673a2bbb0fa32cc4bd5eab | 692a84a177c63ba60b06c288c9a0f5c26b96e7d4 | /LoopExercise/Qstn13.py | 822d8d20ee3b7fe24170019bc0f898c4b0c7922e | [] | no_license | BiswasAnanya/PyNativeProblemSolving | ce78cfb1a536b17429c1b06de2c06ef9acbf98a4 | a78beeca5fa579c9857e346f6c24088a9ff6fe7f | refs/heads/main | 2023-03-05T11:36:04.524821 | 2021-02-13T13:11:39 | 2021-02-13T13:11:39 | 336,637,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # Write a loop to find the factorial of any number
num= 45
result=1
if num ==0:
print("The Factorial of zero is 1")
elif num <0:
print("Negative number doesn't have factorials.")
else:
for i in range(num,0,-1):
result= result*i
print("Factorial of the given number is:",result) | [
"itsbiswasananya@gmail.com"
] | itsbiswasananya@gmail.com |
84da080cff1fa4150cab9dfbd451b068077565dc | 8420a07441b5499dbb5516f559ab15db62e19955 | /wbdc2021_semifinal/src/train/model/model2.py | 97c6bfbb5d354422e751d50982c2caaa51610c5c | [] | no_license | WisleyWang/2021WeChat_Big_Data_Challenge | f17e6fb241e58074d0077bae8f1d88aa4fd61b2a | 0dff566b44b0b3893bd9fb0ba30904ac9975bcb2 | refs/heads/main | 2023-07-07T17:43:51.036730 | 2021-08-17T05:39:49 | 2021-08-17T05:39:49 | 396,781,757 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,110 | py | #!/usr/bin/env python
# coding: utf-8
import numpy as np
import torch
import pandas as pd
from torch import nn
import torch.nn.functional as F
import gc
import os
import random
from tqdm import tqdm
from sklearn.metrics import auc,roc_auc_score
from deepctr_torch.models.deepfm import FM,DNN
from deepctr_torch.layers i... | [
"903953316@qq.com"
] | 903953316@qq.com |
aa3a5823156caa99434ebbc7b3f77c1898e00fc2 | fc967cf0fcbad0d4271133df74eff07051315f81 | /practical/ecradplot/io.py | 9d8e94bfc6992753fe72f63d7e347d8e90f26a20 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MeteoSwiss-APN/ecrad | 6c2f8ecf1656dc1e7d83d9517f630e79a8d6eb20 | b1229efdcec5a0934ef7c14a0bf5ffb3588c5006 | refs/heads/master | 2023-08-23T19:41:09.218629 | 2021-02-15T21:14:45 | 2021-02-15T21:14:45 | 317,826,719 | 0 | 4 | NOASSERTION | 2021-04-08T09:14:37 | 2020-12-02T10:29:54 | Fortran | UTF-8 | Python | false | false | 3,647 | py | """
Filename: io.py
Author: Shannon Mason, shannon.mason@ecmwf.int
Description: I/O functions for loading IFS data
"""
import pandas as pd
import numpy as np
#For loading and handling netCDF data
import xarray as xr
def load_inputs(input_srcfile):
"""
Load ecRAD input files.
"""
with ... | [
"r.j.hogan@ecmwf.int"
] | r.j.hogan@ecmwf.int |
3423017cde1fa95647f30b289fef5e2249c48c80 | 25114b282d36bf67448582fa73eb50ee350c4da7 | /multicolor_backend_theme/__init__.py | aa487b80d227678e989bbb6cdf900a094b116d0e | [] | no_license | inst-sol4u/CybroAddons | 7b888628e1a1bdc21eee3c82f0c975271cc5f238 | 39a50294785209c4964f5925d7129bdc9d4af4e4 | refs/heads/14.0 | 2023-08-18T11:51:45.494958 | 2021-09-24T09:50:43 | 2021-09-24T09:50:43 | 372,519,765 | 0 | 0 | null | 2021-05-31T13:40:19 | 2021-05-31T13:40:19 | null | UTF-8 | Python | false | false | 992 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2020-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>)
# you can modify it unde... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
9a23823ccbb028097054ca499a0d6cc90ebe8576 | c1b3e96f3ef93154b285ef2ea9597af4d7531a58 | /course outcome 1/15colorlist.py | 3444cdeed217b96afc8199a21bea4548b7b5dfbb | [] | no_license | ganga-17/programming-lab-python- | 97fd62a82329539a57bf73901a3a25ef2a3d5c8e | b371f407fdfa1a4fde33e9a4df788923d0e77214 | refs/heads/master | 2023-06-11T15:11:16.124210 | 2021-07-01T14:10:20 | 2021-07-01T14:10:20 | 315,534,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | c1=['red','orange','white','black','green']
print("color list1=",c1)
c2=['blue','violet','yellow','brown','black','white']
print("color list2=",c2)
a=set(c1)
b=set(c2)
print("common elements=",a.intersection(b))
print("colors in c1 not contaained in c2=",a-b)
| [
"ggangakrishnan@gmail.com"
] | ggangakrishnan@gmail.com |
5cb73f498a3a7e908395a0b40b634f2e61e7e7c2 | 903a061e7ecd8cc005f0231925e566b5c8a10e78 | /.gitignore | 3633aeeb7da62d17404d61969c37d7bc30599b43 | [
"MIT"
] | permissive | vedangj044/crispy-ai | a7360e83582da93f993226503ed2c8969aa121fe | 28f76eee4addfeaced957f16819e8f562024cba1 | refs/heads/master | 2020-05-19T10:53:05.240368 | 2019-11-28T17:23:40 | 2019-11-28T17:23:40 | 184,979,704 | 1 | 0 | MIT | 2019-11-28T17:23:41 | 2019-05-05T04:35:56 | Python | UTF-8 | Python | false | false | 1,044 | gitignore | ### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Python ###
# Byte-comp... | [
"noreply@github.com"
] | noreply@github.com |
f622e236dad0ae272bf7f9ba003242f9017f8e62 | faf512a387355c5a6e5af59fc48aa2a79762344c | /playground/bot_runner.py | 2dfbcdc23780892642059da3e9d5e2c61716e453 | [
"Apache-2.0"
] | permissive | lawrencechen0921/ExcelLexBot | f80f848058af284f8595206a9e510baf21d013b1 | 97041c47c06ba42cb10630d78b2300b113b6b3bf | refs/heads/master | 2021-07-09T10:58:51.155580 | 2019-10-28T08:15:15 | 2019-10-28T08:15:15 | 229,690,075 | 0 | 0 | Apache-2.0 | 2021-03-20T05:10:26 | 2019-12-23T06:23:00 | null | UTF-8 | Python | false | false | 271 | py | import boto3
import json
client = boto3.client('lex-runtime', region_name='us-east-1')
response = client.post_text(
botName='ScheduleAppointmentBot',
botAlias='$LATEST',
userId='UserOne',
inputText='book a hotel')
print(json.dumps(response, indent=4))
| [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
355a9ede000d584fa37b2f8628f00a33d39c69eb | 7bc3e952dfb6c9462c4fd5bb3219a7a08d541d6a | /PDFPARSER/env/bin/jupyter-notebook | c4d3151d6a5b06c06bb41ddc0a46f8c88df77019 | [] | no_license | Rakeshpandithts/python | a21a82060dfde937c1ea621c9b3c70db2b039bc3 | 753772a67612f609487c7cf66ee255708c9f4d61 | refs/heads/master | 2021-07-16T15:41:53.213003 | 2020-07-26T03:19:26 | 2020-07-26T03:19:26 | 188,166,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/rakeshpandith/code/python/PDFPARSER/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from notebook.notebookapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rakeshpandith.ts@gmail.com"
] | rakeshpandith.ts@gmail.com | |
7b10e348ee3b3d964066528714ac85afbb1dc5ea | a005644c330251f3148d2ff36915096e25e2d6a9 | /android_work_analysis.py | 4d0d0e7017dd14ae7b8e1575b3eaba1fe8c78f57 | [] | no_license | VinsonGuo/BossZhipinAnalysis | c54ca808bfebc834e729426193d1b2b743813717 | ef14c8400dfe0127a5c9ac22d7b5fac7730500f1 | refs/heads/master | 2020-06-03T18:29:07.236543 | 2019-06-13T03:33:44 | 2019-06-13T03:33:44 | 191,682,968 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | import pandas as pd
import matplotlib.pyplot as plt
from wordcloud import WordCloud
import imageio
from pylab import mpl
import re
def main():
# 使matplotlib模块能显示中文
mpl.rcParams['font.sans-serif'] = ['STFangsong'] # 指定默认字体
mpl.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
# 计算出平均工资
... | [
"guoziwei93@gmail.com"
] | guoziwei93@gmail.com |
28fb47d43c5f1a043a47867a3eea10ad3e89707d | 53cb38bba0f95ddbffd83a9e45c9eed602694265 | /muddery/commands/default_cmdsets.py | 9564a9cc053c9b9d55621a2346b48167a0c66bd4 | [
"BSD-3-Clause"
] | permissive | elove88/muddery | 4356eb0203edeb26285b2bf032f410a8e6e4fb3b | 55dabb2d8d5fbf87ef0e7f2a2a0722251510a254 | refs/heads/master | 2021-09-05T23:30:33.835858 | 2018-01-31T13:50:26 | 2018-01-31T13:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,733 | py | """
Command sets
All commands in the game must be grouped in a cmdset. A given command
can be part of any number of cmdsets and cmdsets can be added/removed
and merged onto entities at runtime.
To create new commands to populate the cmdset, see
`commands/command.py`.
"""
import traceback
from evennia import CmdSet... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
8bebd25f67f720f59a168a7b138b7e70c36acb3e | 2f7f73583c4329569278f5c65420fc010ac3e496 | /douban.py | 70c42eea7e95a60bdf7ea1a7512310dfc900ca56 | [] | no_license | y-xg525/pybug | 7757fc3622cad2b66291836ade1e4fd4b07846d0 | 503b3a661155d5c7c8b1ed0c2f614ad35632efe7 | refs/heads/master | 2022-12-07T00:39:27.151979 | 2020-08-28T08:41:09 | 2020-08-28T08:41:09 | 289,664,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | #-*- encoding='utf-8' -*-
#@Time : 2020/8/22 18:54
#@Author : you
#@File : douban.py
#@software : PyCharm
import requests
import json
if __name__ == "__main__":
url = 'https://movie.douban.com/j/chart/top_list'
param = {
'type': '24',
'interval_id': '100:90',
'action': '',
... | [
"1256387745@qq.com"
] | 1256387745@qq.com |
a7ea9d535013853895485bb04c94a3fbfcc123c2 | 7fc03f7d28ea7bbdca650a51a23fc0b13cbefde1 | /reinforcement_learning/0x00-q_learning/1-q_init.py | d42a24aba80da020f4cb8c8a81a025823604dba3 | [] | no_license | HeimerR/holbertonschool-machine_learning | 54c410e40d38635de482773f15e26ce1c2c95e46 | e10b4e9b6f3fa00639e6e9e5b35f0cdb43a339a3 | refs/heads/master | 2021-07-24T09:33:25.833269 | 2021-01-14T00:21:45 | 2021-01-14T00:21:45 | 236,603,791 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/env python3
""" Initialize Q-table """
import numpy as np
def q_init(env):
""" initializes the Q-table
- env is the FrozenLakeEnv instance
Returns: the Q-table as a numpy.ndarray of zeros
"""
action_space_size = env.action_space.n
state_space_size = env.observation_space.n
... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
98981f55c9eccb1768ee4877f1033ddb4650bbc7 | 749cf1cfba5e0113b9619d46aa55edc7abb4aca4 | /src/scs_mfr/test/test.py | ecca4b9e84bbd9f1834c0eea55da6dda3ad04b4f | [
"MIT"
] | permissive | caspar/scs_mfr | b65fcd51e6561370f9fb1d6482f0717d7058e535 | 90f3604190c883c39ceddd1ce56a36d72e628e8d | refs/heads/master | 2020-03-22T22:07:35.063124 | 2018-07-06T12:20:38 | 2018-07-06T12:20:38 | 140,734,794 | 0 | 0 | null | 2018-07-12T15:52:36 | 2018-07-12T15:52:36 | null | UTF-8 | Python | false | false | 1,278 | py | """
Created on 18 May 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from abc import abstractmethod
# --------------------------------------------------------------------------------------------------------------------
class Test(object):
"""
classdocs
"""
# ------------------... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
e87768ca8094200ba80b8286c965f2903e573537 | 2fc409b353fbe180bb6b42a971ffb53b24a4f1f1 | /deletablesll.py | 79cebe71abe999cbc6cc0ba0c6ac5bea3b30f09f | [] | no_license | Redoxfox/python_algoritmos | 3ecdf319215e35c4ea2268aa320dabbdfe9c1279 | b07ae151cbd4c7045d1fa3aeaf72b03157cb7c85 | refs/heads/master | 2022-12-21T00:31:06.561486 | 2020-09-28T02:33:54 | 2020-09-28T02:33:54 | 115,375,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py |
from sortedlinkedlist import SortedLinkedList
class DeletableSLL(SortedLinkedList):
def delete(self, value):
prev_node = None
current_node = self._SortedLinkedList__first
for i in range(self._SortedLinkedList__len):
if current_node.value != ... | [
"cmtrfenix@gmail.com"
] | cmtrfenix@gmail.com |
5cc3ced8c8d2305bc62df64f81795a0093da32e5 | 939d16c772a71a26a0a1a5b48484a36af8dd054c | /exclude.py | 178b9fb516fa636267963c953d706bcc80146b49 | [] | no_license | slapsh/rkn | b2f368946b21dd51dd3b9947ad48dfdf6daa6cc7 | a74a27c79b12e6dbe3e084c0b7ad3ab8507d8aa9 | refs/heads/master | 2021-06-17T23:59:46.430486 | 2019-07-09T17:01:11 | 2019-07-09T17:01:11 | 133,858,860 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/env python
import sys
import ipaddress
exNetworks = []
with open('net-except.txt') as f:
for line in f:
line = line.strip().encode().decode() # Python 2/3 dual support.
if line == u'':
continue
try:
network = ipaddress.ip_network(line, strict=False)
... | [
"stanislav.lapshansky@gmail.com"
] | stanislav.lapshansky@gmail.com |
c12f7120ba629f878fafd489d4c253c80a36b0d9 | 9e1fbc0d3dd84ab76820de49663031033eeb3b64 | /luna_false_positive_3dconvnet.py | 8c91eefc75615f714731fa65e753382fece45d83 | [
"MIT"
] | permissive | tondonia/data-science-bowl-2017 | 4adf3bebf6641a6d0ca4d5a17f91f3093f436c2d | 73dd06c85aa220d71933d851e6c3658e8842b23a | refs/heads/master | 2021-01-19T17:55:32.883223 | 2017-05-02T22:06:54 | 2017-05-02T22:06:54 | 88,348,580 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,972 | py | from __future__ import division
import os.path
import numpy as np
import sys, getopt, argparse
import gzip
import cPickle as pickle
import skimage.morphology
import time
import re
import glob
import datetime
from random import shuffle
import json
import unicodecsv
from random import randint
import ntpath
from keras.cal... | [
"clivejcox@yahoo.co.uk"
] | clivejcox@yahoo.co.uk |
3bc6ed45e9f2cdce3b79a78b20efd4ae6e26488b | bddd2d1e81388e5f478adbdba6b75d5f0882decf | /Programmers/큰수만들기.py | 14f1cb374880aae95a9e223e599ce465021a4128 | [
"MIT"
] | permissive | MoonSangJin/CodingTest | 5ba382551457842bb7f599fdbfa136ed70bc9c35 | 9f77e8775a6e96346241acaa4269f591300ecd7f | refs/heads/master | 2023-05-10T04:27:25.931579 | 2021-06-03T05:00:59 | 2021-06-03T05:00:59 | 328,433,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | #combinations 이용하면 시간초과
# from itertools import combinations
# def solution(number, k):
# answer = ''
# n=len(number)-k
# tmp=list(combinations(number,n))
# data=[]
# for i in tmp:
# data.append(''.join(i))
# answer=max(data)
# return answer
#그리디, 예제를 보며 천천히 분기지점을 찾아간다.
def solu... | [
"1128msj@naver.com"
] | 1128msj@naver.com |
7b97a4bab6f3e6d40cba2f44db7389afcad703e1 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /qPloneDropDownMenu/tags/0.2.1/utils.py | e51232546101bbf02453486732b722d639a84a2e | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | # -*- coding: utf-8 -*-
""" Utility functions """
from zope.component import getMultiAdapter
from OFS.DTMLMethod import addDTMLMethod
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.migrations.migration_util import safeEditProperty
from Products.CMFCore.Expression import Expression, createExp... | [
"piv@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | piv@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
68addd98fa028729fd0771183aea1c14ca03e677 | afba0e71b7aed5be20a7f6e8ce73678271e6fc86 | /test/test_python_log.py | 370e7c3932fc1dc9be273a1c3bd8127c7721e4b2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | bnriiitb/FLAML | a399a8706bfd46131bb7d3f4b574d1189440e706 | f48ca2618fed2193ffa929af7a44d3031dfb16dd | refs/heads/main | 2023-08-16T09:05:49.540339 | 2021-10-08T23:09:43 | 2021-10-08T23:09:43 | 386,026,679 | 0 | 0 | MIT | 2021-07-14T17:43:44 | 2021-07-14T17:43:44 | null | UTF-8 | Python | false | false | 3,983 | py | from flaml.tune.space import unflatten_hierarchical
from flaml import AutoML
from sklearn.datasets import fetch_california_housing
import os
import unittest
import logging
import tempfile
import io
class TestLogging(unittest.TestCase):
def test_logging_level(self):
from flaml import logger, logger_format... | [
"noreply@github.com"
] | noreply@github.com |
bb711b9545190d0bb301ef3888269d53576f13a7 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-win32/2.7/twisted/internet/address.py | aea84bf68bbed91d502c7072beb96a2ac2766dff | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a515bfec9ac845d6ff70998513414bc502c31a8567def729df1252d0faeb057b
size 4196
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
d1f39f9ff9e5585ec271d9f363ed2767d19b960c | 8ff3802b0064ea6e1a220a40a787393ce0edb0fe | /L10-hyp-test.py | cb7dad54691c9ad09453c1e3244f961851a03663 | [
"MIT"
] | permissive | GAaronAlexander/eci273 | b1069faffbf988fc6690b6cae76fe3fd2b90e502 | fe88dbc17c71cfcfd1bb4251787702832021e45b | refs/heads/master | 2020-05-24T11:11:09.215607 | 2019-01-25T00:00:05 | 2019-01-25T00:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | import numpy as np
import matplotlib.pyplot as plt
np.random.seed(1)
def autocorr(x,k):
'''returns the lag-k autocorrelation of vector x'''
return np.corrcoef(x[:len(x)-k], x[k:])[0,1]
def thomasfiering(x,N):
'''Lag-1 model. use historical data x
to generate a synthetic sequence of N timesteps.
Assumes x... | [
"jdherman8@gmail.com"
] | jdherman8@gmail.com |
7eefa47a57baa447a837e81aa5af23a3dca795e6 | 27da25a44c8623fcfcc1566f66e76f2a014714c5 | /AMAZON_CHECK_PRICE;SEND_EMAIL/Email-sender-amazon.py | 42dfaefe2ef8f08f34c533f3d0969bea8427cce3 | [] | no_license | Wigya/PROJECTS | 04098857659fff5458cdf9b0a297bbba232b44d2 | faa0ebea801a3a9482d834689d8f555cb2cebef2 | refs/heads/master | 2023-04-05T01:16:07.525072 | 2021-04-13T09:13:17 | 2021-04-13T09:13:17 | 348,634,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | from bs4 import BeautifulSoup
import requests
import smtplib
import time
url = 'https://www.amazon.com/Acer-Display-Graphics-Keyboard-A515-43-R19L/dp/B07RF1XD36/ref=sr_1_3?dchild=1&keywords=laptop&qid=1616507455&sr=8-3'
header = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80... | [
"noreply@github.com"
] | noreply@github.com |
15c05ea09625300a345ccad9a8a76639ccbff73d | e213e81de0d9bf9caf106cbc9836e326b19112ed | /Week3/Student.py | 88733f653532ba438f62690a35c8d34fb39bc8c8 | [] | no_license | buekoefoed/Python | 7a95a1f66e975a96da784bea78f45057da9bcd97 | a96ca3dd3f0fc8fcac57c7b035ec902612d1b97f | refs/heads/master | 2020-12-22T08:33:38.059420 | 2020-03-04T07:44:34 | 2020-03-04T07:44:34 | 236,727,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,338 | py | import random
import csv
import matplotlib.pyplot as plt
import pandas as pd
class Student():
def __init__(self, name, gender, data_sheet, image_url):
self.name = name
self.gender = gender
self.data_sheet = data_sheet
self.image_url = image_url
def get_grades_avg(self):
... | [
"buekoefoed@gmail.com"
] | buekoefoed@gmail.com |
d38fe136135727031be58d9f7ae57117d9659ff6 | 0d45e05e1eda670b233081118bbcb63743c166db | /web/act_assist/settings.py | 98cdcc4d0b82667a1b1f93b5264afd75a34cc1cd | [
"MIT"
] | permissive | maleriepace/activity-assistant | 24ef7e4e6488e31726ba21c07acda83a7119f979 | c5baa21f3d22db18da591ddf76e7bf6a7e7229cc | refs/heads/master | 2023-01-31T15:53:30.100115 | 2020-12-13T14:41:04 | 2020-12-13T14:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,996 | py | """
Django settings for hassbrain_web project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"account@meier-lossburg.com"
] | account@meier-lossburg.com |
f2ffc37228d3eb92a16501d3b4ddeb5bae13a981 | 2d2cdd27844e080d8c89e3c935a7907c0a1b16fe | /depricated/parameter_influence/DQNs-batch/TESTBENCH.py | d093e1e307f1f5c38f0ee3fa8fb3a17d171d76e9 | [] | no_license | laermannjan/nip-deeprl-project | 935fa7c3182aa4d63951c8fafc123931b474ab22 | 010ea6e992206da534c4ea7e2bc107819cbccea7 | refs/heads/master | 2021-06-19T18:42:02.385672 | 2017-07-17T00:50:37 | 2017-07-17T00:50:37 | 90,582,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,397 | py |
import gym
import tensorflow as tf
import numpy as np
import random as ran
from gym import wrappers
game_name = 'Acrobot-v1'
env = gym.make(game_name).env
INPUT_SIZE = env.observation_space.shape[0]
OUTPUT_SIZE = env.action_space.n
REPLAY_QUEUE = []
HIDDEN_SIZES = [[30], [30, 30], [30, 30, 30]] #baseline 30-30-30... | [
"robert.mueller@outlook.de"
] | robert.mueller@outlook.de |
b21df27e5198e4a9ee304ea996264b5d49d61f55 | 5c6e1a25a147a5e8fc9cd8ac5ca573a7fe3c8cc8 | /CSL/urls.py | a189f36dc11df5521243c516c31d886074bb5421 | [] | no_license | masons40/csl | d189bde5494143169de811324aa105c37744cf3c | 67022303897f015d93db82a0c479248bbe99bff1 | refs/heads/master | 2020-04-26T01:11:41.479379 | 2019-06-13T12:48:02 | 2019-06-13T12:48:02 | 173,196,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py |
from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('', include('ChildrensSchoolLives.urls')),
path('admin/', admin.site.urls),
]
| [
"masonsmith40@hotmail.co.uk"
] | masonsmith40@hotmail.co.uk |
b11233a7c57bb8e6dda5cfce73409616c426a5d0 | d1105ac79b89138a9dd6233b881c541041ee8512 | /zz_archived_code/sindy_autoencoder.py | c62354265fcc19092bc3ad93053de7d571176f0a | [] | no_license | bowenfan96/mpc-rom | 4db2a165118b07926e5988a92155e740e5d4f18b | a5ab132ea58ea5a4f2229f53eaee1bd180cc6e7b | refs/heads/master | 2023-07-27T12:25:28.804007 | 2021-09-07T13:27:03 | 2021-09-07T13:27:03 | 378,615,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,332 | py | # MIT License
#
# Copyright (c) 2019 Kathleen Champion
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | [
"bowen@users.noreply.github.com"
] | bowen@users.noreply.github.com |
10778c9059cfa6f612f36c918719dfe2545ca72a | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/asset/v1/asset-v1-py/tests/unit/gapic/asset_v1/test_asset_service.py | deb23fdbb57c40a7e82e84f0631510dfa2f774ef | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152,276 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
1337c8ea0e2a0461c5cff5d6612b306914169445 | f7c60a17669b683163040c15dc8ebdfe1fe3be1c | /Service/Download/Youget.py | 8e04906b30128cad1fa54a9fc349921d2abfa367 | [
"MIT"
] | permissive | EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE/pi_robot | a2a4249cc43b9e14a670f645f687e9e82bcddb60 | c1b8ce2ad49c64173673df0eb59e0941624556e7 | refs/heads/master | 2020-06-12T06:06:13.314818 | 2019-01-28T09:47:43 | 2019-01-28T09:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | # -*- coding: utf-8 -*-
#!/usr/bin/python3
import os, sys
import json
import string
import random
import getopt
import time
import platform
import ctypes
import math
from Protocol.DownloadProtocol import DownloadProtocol
from Common.Straw import Straw
from Common.Util import Util
import subprocess
class Youget(Downlo... | [
"zacklees@hotmail.com"
] | zacklees@hotmail.com |
0bb37f377bb2db2265a5c0135993cc684a7e3d92 | 467a828e4343c1da949b2ff3559dfbd3281124ab | /multi_detection/ckpt_predict_dir.py | 1985dbbcac6e23cf9cf1d99209193024fcb7a57d | [] | no_license | sunyihuan326/kx_detection | 59a45b09e65544e11a85debeec674fb5e427744c | ecdcc30e0c9afcf80684cc79c175a85f067c2c50 | refs/heads/master | 2021-06-19T04:06:54.821845 | 2021-05-11T08:01:11 | 2021-05-11T08:01:11 | 210,282,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,676 | py | # -*- encoding: utf-8 -*-
"""
预测一个文件夹图片结果
@File : ckpt_predict.py
@Time : 2019/12/16 15:45
@Author : sunyihuan
"""
import cv2
import numpy as np
import tensorflow as tf
import multi_detection.core.utils as utils
import os
import time
from multi_detection.food_correct_utils import correct_bboxes, get_potatoml
i... | [
"1336840590@qq.com"
] | 1336840590@qq.com |
597abc60cd595a34a114ddda92fbbd31181a829d | 76b3500d7b0c49704302a6fee801d731690279dd | /devel/lib/python2.7/dist-packages/lcm_to_ros/msg/_mobileye_tsr.py | e81cb116600884c8f22f75b1b88a17de9a7a62e6 | [] | no_license | dj-boy/TFM_velodyne | 071184ede8da68f853ad02b0a400797a442f1de6 | a948dedf7926b6629958eea1209171736ba03431 | refs/heads/master | 2022-01-18T16:38:10.262512 | 2019-07-16T16:57:20 | 2019-07-16T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from lcm_to_ros/mobileye_tsr.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class mobileye_tsr(genpy.Message):
_md5sum = "a4f30ab3674f73695c4e58c6fc1ab2dd"
_type = "... | [
"ah3rmosin@gmail.com"
] | ah3rmosin@gmail.com |
7c62428145a3d7c9e73ef83ce577cca91d771205 | 4081b77ecd31a3cab96ff9556fc1601a0baa90e9 | /ansible-lint-rules/YAMLFileExtension.py | 65630e88e4e7c6a9bbf0c610cd1fec06e5bf4c0e | [] | no_license | Juniper/contrail-zuul-jobs | 7dc3b61692e00b0ab0ed091116f56049913f3d89 | 4cb1c01d66329a1c5db52dbe295dbc86265dc53e | refs/heads/master | 2023-09-03T23:30:54.516046 | 2020-12-01T18:30:02 | 2020-12-01T18:31:47 | 119,971,609 | 1 | 9 | null | 2018-07-12T11:55:22 | 2018-02-02T11:04:58 | Python | UTF-8 | Python | false | false | 473 | py | from ansiblelint import AnsibleLintRule
class YAMLFileExtension(AnsibleLintRule):
id = 'ANSIBLE-J0002'
shortdesc = 'YAML files should have the .yaml file extension.'
description = ''
tags = ['formatting']
done = [] # already noticed path list
def match(self, file, text):
path = file[... | [
"michal.krawczyk@codilime.com"
] | michal.krawczyk@codilime.com |
687da0c6895f20f62b92d67d8e3777427755c11d | b0350c33f0809c48e88da8ea6d156b76275f6613 | /2015/day-08/solution.py | 20ab318ea9c71b5584c901abfe8a9b7ac4b5ec21 | [
"MIT"
] | permissive | bertptrs/adventofcode | 0fbc24c27712d2396d23594f7716f414f05163db | 722f5205ffdaf2b78541b0aecdcdc88c055d25d4 | refs/heads/master | 2023-07-10T05:54:21.674194 | 2023-07-01T16:00:35 | 2023-07-01T16:00:35 | 47,429,580 | 17 | 2 | MIT | 2022-11-30T17:08:55 | 2015-12-04T21:26:39 | Rust | UTF-8 | Python | false | false | 559 | py | from __future__ import print_function
import fileinput
import re
totalLess = 0
totalMore = 0
for line in fileinput.input():
original = len(line)
diff = 2
plus = 2
escaped = False
for c in line:
if c == "\\" or c == "\"":
plus += 1
if c == "\\" and not escaped:
... | [
"bert.ljpeters@gmail.com"
] | bert.ljpeters@gmail.com |
1e290eaf806b12b3d70a04f888edc40c280cb978 | dc871754a421c85177dc00134e227845822154e5 | /Python/EmpireXpOOP2o/Oyun.py | 18526e2a88e5c73b3f009183a49333e01f692477 | [] | no_license | ibrahimylmz3/MedipolCodes | 5af3826dff44be9ce658cf61d637e2c1a4babaf6 | 839afdd74568329184e579805c112773c7b83bc8 | refs/heads/master | 2020-11-27T04:37:25.812720 | 2019-12-20T15:51:52 | 2019-12-20T15:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import Dunya
game = Dunya.dunya()
game.oyuncuSayisi = 6
game.oyuncuEkle()
game.ulkleriOlustur()
game.komsulariBelirle()
| [
"osmanraifgunes@gmail.com"
] | osmanraifgunes@gmail.com |
2237d72697bdef0eddba33f1786b39d7c5aa858e | 6fbf4445fcbb42b58d80c7a797476bd444cf8611 | /RaspiFiles/mqtt_files/mqtt_publish_face_encodings.py | 328074fcd70316bb10aa073c474d290510646d4f | [
"Apache-2.0"
] | permissive | vishwas1101/SmartRoom | f06656f533ffaae55c0ccb5b6ec6ecd3f147a232 | 0c20e9497964d67ff094a5b2584a7f41c9e01e52 | refs/heads/master | 2022-11-12T19:48:28.556887 | 2020-07-07T07:25:55 | 2020-07-07T07:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import paho.mqtt.publish as publish
import json
import pickle
def write (known, filename):
file = open(filename, 'wb+')
pickle.dump(known, file)
file.close()
def read (filename):
file = open(filename, 'rb')
temp_list = pickle.load(file)
file.close()
return temp_list
# file = open("/home/k... | [
"kmkapril15@gmail.com"
] | kmkapril15@gmail.com |
9edfa0924fd0e2ba1b8b69af07d99fa4bda59acb | b0e0aa71abcf332126bd1b067de6e41dc3a8d477 | /Python/MyEnvironments/djangoenv/bin/django-admin | 3b5bff8721df21b7b6ab8554ad97935de7da877e | [] | no_license | kvndai/CDrepo | 6f81f4424a4de1a92938f32fcfc64136a1cffd6d | 47767fd3e1dbfa4f9734581f71b064e32499dc90 | refs/heads/master | 2021-01-21T21:09:31.003734 | 2017-08-22T19:33:16 | 2017-08-22T19:33:16 | 92,310,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | #!/Users/dai/Documents/Dev/CodingDojo/CDrepo/Python/MyEnvironments/djangoenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_fr... | [
"kevin.t.dai@gmail.com"
] | kevin.t.dai@gmail.com | |
8fb3349b279cf1b5c33bf25eab2bccff32bdc4ec | b88ba86d3812ba545d97930c2887da7b7d7b6437 | /project.py | 8c5be7a768d97c48b341c2a8d41e2fe5517cde66 | [] | no_license | AhmedBamakhram/Framework | ff77d86a4522bccffb0a946b12deca8f934ee77e | 4d73faef4098e601900590a81ae181061487da00 | refs/heads/master | 2022-04-22T19:39:54.382118 | 2020-04-20T00:33:26 | 2020-04-20T00:33:26 | 257,131,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,433 | py | #!usr/bin/env/python
import socket
import subprocess
import sys
import os
from datetime import datetime
import struct
import textwrap
import scapy.all as scapy
import argparse
from scapy.layers import http
import threading
from threading import Thread
import time
from bs4 import BeautifulSoup
import re... | [
"noreply@github.com"
] | noreply@github.com |
adfe17ba497f6700de6a1d02c1b5e6117019386e | bbbe0adc217be74977b9131255a106d586ad442c | /shop/migrations/0004_auto_20180606_1001.py | 838037f503dc9150511a8e3cb3bb2b7103aad556 | [] | no_license | MaksFray/MyFKNSite | 47b44a013ce7ccd892aa4ecb24d985c6d075d4da | 470946a7665e05e1ce2da1160ee5b7410c115593 | refs/heads/master | 2022-12-04T04:57:26.558144 | 2018-06-13T15:12:47 | 2018-06-13T15:12:47 | 137,227,399 | 0 | 1 | null | 2022-11-20T14:24:31 | 2018-06-13T14:30:59 | Python | UTF-8 | Python | false | false | 513 | py | # Generated by Django 2.0.6 on 2018-06-06 04:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0003_auto_20180606_0952'),
]
operations = [
migrations.AlterField(... | [
"Fray@siblogic.com"
] | Fray@siblogic.com |
78b60b110753876e6dd7dfb9da1c019b660a06cc | 230972eb570872409084f2172569da141111287a | /project/predictor-vgg19v2.py | 9e5b2636a299889ef28a5321c5743422b963650e | [] | no_license | sheikhomar/cvml | 864d2ae108a5e56f2aa782f37d5cf47a64f76161 | bb32697dfea4c026e2085a68e1a78cbcc4f858c3 | refs/heads/master | 2021-09-14T16:00:00.704173 | 2018-05-15T03:40:40 | 2018-05-15T03:40:40 | 119,963,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from model_vgg19v2 import ModelVGG19v2
model = ModelVGG19v2()
path = 'saved_weights/model-06-vgg19v2-type-1-epoch82-acc0.93-loss0.20-valacc0.84-valloss0.58.hdf5'
y_test_predictions = model.predict_test(model_weights=path)
model.write_predictions(y_test_predictions, 'test-pred-model-06-vgg19v2-type-1-epoch82.csv')
| [
"oas@enversion.dk"
] | oas@enversion.dk |
de740b3579fee46bb5f847b244339ae48d175523 | e4241ef1bd71c416dfa939ac7980e92e3a77cda8 | /src/remote_transport/server_transporter.py | ed5b125ace0822d2d8b831e20623b1fde515c6d2 | [] | no_license | Mopip77/sync | 703c3b661dd7004c69a1c33bfed3da508a215ba5 | 54140b487a990d4a2880f54c41cf6566c780a996 | refs/heads/master | 2020-05-15T23:18:44.020189 | 2019-06-12T14:37:08 | 2019-06-12T14:37:08 | 182,548,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,028 | py | import paramiko
import time
import os
import json
from src.font_color import font_color as FC
###
# config = {
# "host": "47.107.90.226",
# "port": 22,
# "username": "root",
# "pwd": null,
# "privateKeyPath": "/home/mopip77/.ssh/id_rsa",
# "rootPath": "/var/www/html/notebook",
# "syncRefer... | [
"mopip77@qq.com"
] | mopip77@qq.com |
7e334402ecef28100729eed98a573acbb104dea3 | 686fba2ba4504d2b9f975cc07e35fcb5c468df8d | /student/models.py | 67572afa2bc879ad63fe5a51031083d38c1751aa | [] | no_license | satish-lovewanshi/DjangoPoject | b7208b12b314ee080182978c34dcd77ea84b44b5 | ac9f7f0c4d1a3c6c47eaa609d176373758621d51 | refs/heads/main | 2023-03-30T04:25:47.560612 | 2021-03-27T11:36:25 | 2021-03-27T11:36:25 | 352,028,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django.db import models
class Result(models.Model):
total_questions=models.IntegerField()
attempt=models.IntegerField()
right=models.IntegerField()
wrong=models.IntegerField()
marks=models.IntegerField()
score=models.IntegerField()
test_id=models.IntegerField()
branch=models.CharFie... | [
"satish@gmail.com"
] | satish@gmail.com |
a4fa4c949b5001b72e4353f8ad941907343488ae | 09461151097e24d65a79ddfc6dbda0cb57020780 | /execute_b.py | ade01e50f28819b684fc9913eaa34c4408afb732 | [] | no_license | alchav06/igw-assignments | 60714bb87e466867ce7c92546c1ec726612ec722 | 2450bbd4b764da8a74ca4f0a42b5b9e12afa7a5c | refs/heads/master | 2020-05-31T16:36:19.537200 | 2019-06-05T12:03:16 | 2019-06-05T12:03:16 | 190,385,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # WPS Execute Operation
import requests, os
payload = open(os.path.dirname(os.path.abspath(__file__)) +"\\chaining_example.xml").read()
wpsServerUrl = "http://130.89.221.193:85/geoserver/ows?"
response = requests.post(wpsServerUrl, data=payload)
print("Content-type: application/json")
print()
print(res... | [
"noreply@github.com"
] | noreply@github.com |
40a791eb470aa135677cac4e28fb04df10f7d61c | 12df78c8b1fc89f1199d71c0557b1309017115c9 | /Spark/LowestRatedMoivesDF.py | c9304876f89203ecee79f195110199ba900d6df0 | [] | no_license | Irissq28/Big_Data | 854eb9020c90aa257506c69c8ced5a287e7a6cd3 | de5a44dbbc0ef7078bd5cf3cff1e014e80dd4d10 | refs/heads/master | 2020-04-23T05:45:45.694766 | 2019-03-03T19:46:27 | 2019-03-03T19:46:27 | 170,949,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | from pyspark.sql import SparkSession
from pyspark.sql import Row
from pyspark.sql import functions
def loadMovieNames():
movieNames = {}
with open("ml-100k/u.item") as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[1]
return movieNames
def pa... | [
"anantjjz@gmail.com"
] | anantjjz@gmail.com |
c8f4bb67eb5023fb6754b7accaaecaa3d3c89059 | b7312dc013ba06e5b44b33c0411f4948c4794346 | /study4/decorator3.py | 866d868685ac97384a6c6229bf76635ac05af61f | [] | no_license | GaoFuhong/python-code | 50fb298d0c1e7a2af55f1e13e48063ca3d1a189f | 7d17c98011e5a1e74d49332da9f87f5cb576822d | refs/heads/master | 2021-02-07T20:25:06.997173 | 2020-03-01T02:22:41 | 2020-03-01T02:26:04 | 244,072,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | # Author:Fuhong Gao
#嵌套函数
# def foo():
# print("in the foo...")
# def bar():
# print("in the bar...")
# bar()
# foo()
#一个简单的装饰器(注意:在定义函数时,函数名应避免使用test1、rest2...否则容易出错)
import time
def timer(func): #将test1和test2传给func
#定义一个函数(“变量”)
def deco(*args,**kwargs):
start_time = time.time()
... | [
"1350086369@qq.com"
] | 1350086369@qq.com |
3e28462872d134c1fbcd211fc3c8b0fff0004cc3 | c50c7111279fc9cfb75f414bf72b7faeb3aa93bc | /raise.py | 7161dd53a065fee7228038e606e670a75e67b1e7 | [] | no_license | Hemanthtm2/Python | d95cbd89778074dc87d75e86c75f998b6e419c93 | 64a21c9a6dadf2bb92616fbdc4209119afcaa562 | refs/heads/master | 2021-08-24T07:24:20.509134 | 2017-11-07T18:35:44 | 2017-11-07T18:35:44 | 108,621,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/pyrhon
def inputnumber():
x=input('Pick a number')
if x==17:
raise ValueError,'17 is a bad number'
return x
print inputnumber()
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
8e2999a1ffe833093be9b59565baaa9a5b7db73f | 1f01d54c7a7a28d6fbd18ca3997c595469322e1d | /apps/prueba/admin.py | 50f72b0b61250c7548bf8efd23f7bf732eab9789 | [] | no_license | rafaelromariodev/TestAzure | 028d00d0ba25c785e8d1f434d69360572616a09e | 45a4eb25db3815be8ef5348d8146468dc3d243fd | refs/heads/master | 2021-06-18T03:40:34.975410 | 2019-11-06T01:50:04 | 2019-11-06T01:50:04 | 179,376,983 | 0 | 0 | null | 2021-06-10T21:21:13 | 2019-04-03T22:04:09 | JavaScript | UTF-8 | Python | false | false | 184 | py | from django.contrib import admin
from .models import Raza
class RazaAdmin(admin.ModelAdmin):
list_display = ["raza",]
class Meta: Raza
admin.site.register(Raza, RazaAdmin)
| [
"rafael.roncancio@sicya.com"
] | rafael.roncancio@sicya.com |
262175a86a02f36dbe728f6b0aa0d66ba7adb959 | 5a01c89aab1cb175c43b72273d84a0c42316d83b | /shopping_bag/admin.py | d93c1003ceffeecf1f1be47b67046cba298582b9 | [] | no_license | behnazkhoshnood/spice_ur_look | a01b103d7a2f75f8757f8e594089f9a266241d2e | d816b686284c0ba9a7ebb1f66828cae834a80191 | refs/heads/master | 2023-04-01T18:49:17.242444 | 2020-11-08T10:39:28 | 2020-11-08T10:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.contrib import admin
# Register your models here.
from .models import Bag, OrderLineItem
admin.site.register(Bag)
admin.site.register(OrderLineItem)
| [
"teemamin@yahoo.com"
] | teemamin@yahoo.com |
e63e2e074b094129f3dccca0a59488c62c2860f1 | 6712a0f52bc2f41d9fb664a81d00408f08734948 | /Assignment2/nDCG.py | 1ace25b321adfd8fa841b71a4a1970c28b25be89 | [] | no_license | mrijksen/DM2018 | 624a1f8632463bd8bc0c08e7d3610558cebe8344 | 47e05d0093e653ce3d3a33b0f7ab021d115dc906 | refs/heads/master | 2020-03-09T23:42:13.116014 | 2018-05-28T20:11:33 | 2018-05-28T20:20:44 | 129,064,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | # libraries
import pandas as pd
import numpy as np
def dcg_at_k(r, k, method=1):
"""
Score is discounted cumulative gain (dcg)
Relevance is positive real values. Can use binary
as the previous methods.
Example from
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
... | [
"marleenrijksen@gmail.com"
] | marleenrijksen@gmail.com |
4721b10aa26592765ed3b2dd0f332e787d920c70 | 707533118e94886ed3a8b5afdfb3c9256c91b091 | /click_web/__init__.py | bdf7b0b887c78424d6e446f91ebaeb0cc363ada0 | [
"MIT"
] | permissive | JayBigGuy10/click-web | dcdc61cf55c9a464dedd63df09753a372310a1ad | ca88e118a283c92bff214e6fa0502db629d7dd1e | refs/heads/master | 2020-04-20T17:14:00.023547 | 2019-02-03T10:26:17 | 2019-02-03T10:26:17 | 168,982,849 | 0 | 0 | MIT | 2019-02-03T19:13:43 | 2019-02-03T19:13:43 | null | UTF-8 | Python | false | false | 2,493 | py | import tempfile
from pathlib import Path
import click
import click_web.resources.index
import click_web.resources.cmd_exec
from flask import Flask, Blueprint
import click_web.resources.cmd_form
'The full path to the click script file to execute.'
script_file = None
'The click root command to serve'
click_root_cmd = ... | [
"fredrik.corneliusson@gmail.com"
] | fredrik.corneliusson@gmail.com |
fbf41ce759150d4e7377d2b6d1735f988a8a9f4a | 4aa5da66d482929fe822ec24cac7eab6a3743db2 | /server.py | 83779a8640b67bf774c6d54683aab43f2529622b | [] | no_license | semenchuke/geek_messager | 8076a52cddbcb5444fdb704f758028ec7cd1f012 | 5b8b6d7f05425007e93f77b56ea1cec537cff083 | refs/heads/master | 2020-03-27T01:34:15.008416 | 2018-08-26T14:25:40 | 2018-08-26T14:25:40 | 145,723,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | """
Функции сервера:
- принимает сообщение клиента;
- формирует ответ клиенту;
- отправляет ответ клиенту;
- имеет параметры командной строки:
- -p <port> - TCP-порт для работы (по умолчанию использует порт 7777);
- -a <addr> - IP-адрес для прослушивания (по умолча... | [
"semenchuk-e@inbox.ru"
] | semenchuk-e@inbox.ru |
cc5d8c9449a5c03c71c65bf4085df9cfd7699f6c | 6ed0be812622390df8204782e867d72e578d9683 | /maui/graph.py | bd1475c75d598150a4130f3fb88520e79723591c | [
"MIT"
] | permissive | kblicharski/py-maui | 04f82b809254963c9e2246fe904c0324f529c494 | 7c390a5b3587614ef6545d9b392d9e4211724e23 | refs/heads/master | 2021-05-14T05:06:56.378861 | 2018-02-15T22:10:10 | 2018-02-15T22:10:10 | 116,661,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | """
Credit given to mvChr
https://stackoverflow.com/questions/19472530/representing-graphs-data-structure-in-python
"""
from collections import defaultdict
class Graph(object):
""" Graph data structure, undirected by default. """
def __init__(self, connections, directed=False):
self._graph = defaultd... | [
"kevin-blicharski@uiowa.edu"
] | kevin-blicharski@uiowa.edu |
69ee5e0cc7739ebcbee9d1a3e5819b28dde34833 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/signal/testcase/firstcases/testcase1_016.py | e81237d6fa82e693c08ba184b53c1b1c193da30e | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
b1f3498f1d6ad94c27274d51c55a6156a13bb0b7 | d8d5839342f9ce1608d3304e0b6874576d342477 | /Python/square_of_a_number.py | 5c8b68957a14eca1a0de4dd7c2c9d38c048a453d | [] | no_license | Thylenecodez/Herokuwebhosting | 99b97e2735d4ad5090a03b044031352714a95eff | 3a10572310d4c44b746444062b0cb0d79b58f169 | refs/heads/master | 2023-02-26T16:37:24.068870 | 2021-02-02T07:52:49 | 2021-02-02T07:52:49 | 335,038,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | a = input("Enter the number :")
a = int(a)
b = a*a
print("The square of the number is ", b) | [
"slakshay10699@gmail.com"
] | slakshay10699@gmail.com |
32fb765fd40805ade090712d4c0dc38b688b23f6 | 3ff2588feac27985d275c0d4131b3926e49aad62 | /src/main.py | d7012404200a9d45d549cdfac5f51b7762d717ed | [] | no_license | joaorura/tool_manager_git | b01a4e480e091668db54b92a469c8977089a6fec | ca7dae1700a99b6fcd5da92ec6e6309347ce63ed | refs/heads/master | 2022-05-31T00:55:37.001300 | 2020-03-29T22:44:28 | 2020-03-29T22:44:28 | 242,352,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from sys import argv
from src.git_process.GitManager import GitManager
from src.pre_process.ReadData import ReadData
def get_path():
if len(argv) < 3:
raise RuntimeError
return argv[1], argv[2]
def main():
path = get_path()
get_data = ReadData(path[0])
data = get_data.getProcessData()
... | [
"jmlp@ic.ufal.br"
] | jmlp@ic.ufal.br |
fce5cf33092a3e7c9ae8474b1a1cffdadd968532 | dee183febe577a2d21daa5556a38a308b1e0ea2e | /game_of_life0.py | 11a2fc7c344c1f64af5a675d3dbd452d7a3b7a2f | [] | no_license | TakahashiKansuke/Numpy | b798d71092194720fc723a64362fd711a924e3d5 | c8c1772057f8c859e1ffb16c07fcb3c365705991 | refs/heads/master | 2021-06-18T12:43:30.283339 | 2017-06-23T03:31:17 | 2017-06-23T03:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#copyRight by Nicolas P. Rougier https://github.com/rougier/numpy-tutorial
def compute_neighbours(Z):
shape = len(Z), len(Z[0])
N = [[0,]*(shape[0]) for i in range(shape[1])]
for x in range(1,shape[0]-1):
for y in range(1,shape[1]-1):
N[x][y]... | [
"noreply@github.com"
] | noreply@github.com |
399be507725db45705806fd76f4290fc55fa9798 | fbeef13b243025a220af696ea7f6647227abeb93 | /Lesson06/number_of_disc_intersections.py | dd007af4acd6f99a7faafa0885ecbd5089fa74bc | [
"MIT"
] | permissive | akgeoinsys/codility_lessons | 39ea7f2677dd57fa3358cd2a5f55c7aa80a53720 | 30ee069fcf743acba636fdf5ac0b8b7f43fd0ccc | refs/heads/master | 2022-04-05T11:30:35.959675 | 2020-02-25T01:52:10 | 2020-02-25T01:52:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | """
Task:NumberOfDiscIntersections
Compute the number of intersections in a sequence of discs.
We draw N discs on a plane. The discs are numbered from 0 to N − 1. An array A of N non-negative integers, specifying the radiuses of the discs, is given. The J-th disc is drawn with its center at (J, 0) and radius A[J].
We... | [
"shihsyun@gmail.com"
] | shihsyun@gmail.com |
62b6f24a18c8dc7368fbaa3d566c57711600b466 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_LOG/test_c142794.py | 1fff26fd926e1ae41c0fb8a21027628e495f9ba9 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_physical_interface import *
from page_obj.scg.scg_def_vlan_interface import *
from page_obj.scg.scg_def_bridge import *
from page_obj.common.rail import *
... | [
"15501866985@163.com"
] | 15501866985@163.com |
eed1238d3a0fd05c591f3ee36a20a12e4ab9be07 | 74bf86f99cc75006716edf5e25b040d1265ea134 | /forms.py | ae87ae5091d5c25ebab6d13b38b9d4a2d40c1c31 | [] | no_license | guoweikuang/flask_blog | 65ed13c9660e699d4ec3b01212c6dcd41bb7e5d9 | 1292918b81029fd5b149486d8a8478fc02b92618 | refs/heads/master | 2022-12-09T05:46:17.093246 | 2017-07-12T15:28:27 | 2017-07-12T15:28:27 | 94,674,289 | 0 | 0 | null | 2022-12-07T23:59:57 | 2017-06-18T08:15:43 | JavaScript | UTF-8 | Python | false | false | 623 | py | # -*- coding: utf-8 -*-
import re
from flask_wtf import FlaskForm
from wtforms import StringField, TextField
from wtforms import ValidationError
from wtforms.validators import DataRequired, Length
def custom_email(form_object, field_object):
"""自定义检验器,邮箱格式检验"""
if not re.match(r"[^@+@[^@]+\.[^@]]+", field_ob... | [
"673411814@qq.com"
] | 673411814@qq.com |
d592d0067a0cfff2e03251658bac677af0147075 | dfbc93529331e850753792c13f044867ca5c70b8 | /common/BaseClass.py | f2c088d45716aeb069766c61eaaeb60d32e9bd9d | [] | no_license | zhongguoxiong/poproj | 731219d807ed3343f25df1294c798e6accf80ea8 | b254390bb697c87d31a1346f3fe0ad7896489467 | refs/heads/master | 2020-04-30T05:44:53.583879 | 2019-03-20T02:13:33 | 2019-03-20T02:13:33 | 176,633,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from selenium.webdriver.support.wait import WebDriverWait
class BaseClass:
def __init__(self,driver):
self.driver=driver
def postion_Element(self,loc,timeout=10,poll_frequency=0.5):
return WebDriverWait(self.driver, timeout, poll_frequency).until(
#lambda x: x.find_element(By.ID, ... | [
"1648108529@qq.com"
] | 1648108529@qq.com |
2595cafbde515dbad9cbbc39a42e1b98cc2eaa31 | ccf9456de643aa72d6ccdc6656e73e257f886f27 | /main.spec | 41bf5e67c9052749e93a1b3227e15f09079b6931 | [] | no_license | atelier-carter/oracle-2020 | 2e9a4cf6597334e2981e89399df24748b805f0de | a0afeab42be85823fc69684ab88f0245fc14dfe6 | refs/heads/master | 2022-12-10T13:23:18.371246 | 2020-08-30T20:14:41 | 2020-08-30T20:14:41 | 290,868,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Users\\tetrix\\Documents\\museum'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"mcarter@gmail.com"
] | mcarter@gmail.com |
ceb93766718933ce0aadc577cd11c49c1d10cf2e | 9d92e3fbc2651777b23c8901226bc4c334cf0c57 | /Exercise Programs/6 Validation/prostate_aic.py | e27a8cbaf379b6f926b0f47127eb39c65130c016 | [] | no_license | Ayanohikaru/stat-machine-learning | 47e4d1985b195b85c27bce09888eebff461e7183 | a4c5f4b2f93d81b47876f641cc165cb2062b8c3f | refs/heads/master | 2021-01-16T17:49:29.714396 | 2011-10-05T23:08:09 | 2011-10-05T23:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | from pylab import *
from numpy import *
def linregp(X,y):
# takes N x p matrix X and a N x 1 vector y, and fits
# linear regression y = X*beta. NOTE indenting
X1 = concatenate((ones((shape(X)[0],1)),X),axis=1)
betahat = linalg.inv(transpose(X1)*X1)*transpose(X1)*y
yhat = X1*betahat
RSS = tran... | [
"agibson@it042554.massey.ac.nz"
] | agibson@it042554.massey.ac.nz |
b64ec12cb58308d58d6093eb61b0989a7703982b | c065661d932b8368ba325fb2880df37b8fe74c77 | /commandlist/aserver.py | 8d17da0b45769dfda21531b6462bc32fdb00e52f | [
"Apache-2.0"
] | permissive | dAYOShACKER505/htk-lite | 6c1c247f90aa99ab254f10598570db313777adf3 | b3cd8c4890061e25abcae9ed38429d84efd16cd2 | refs/heads/master | 2022-04-22T11:45:56.884954 | 2020-04-18T20:17:06 | 2020-04-18T20:17:06 | 294,509,564 | 1 | 0 | Apache-2.0 | 2020-09-10T19:57:37 | 2020-09-10T19:57:35 | null | UTF-8 | Python | false | false | 2,153 | py | #!/usr/local/bin/python
# coding: latin-1
#if you use this code give me credit @tuf_unkn0wn
#i do not give you permission to show / edit this script without my credit
#to ask questions or report a problem message me on instagram @tuf_unkn0wn
"""
██░ ██ ▄▄▄ ▄████▄ ██ ▄█▀▓█████ ▓█████▄
▓██░ ██▒▒████▄ ▒██▀... | [
"noreply@github.com"
] | noreply@github.com |
9b5e79b32c94959a0ceffc6784ddbdd30142806b | 1080d44458b5cdf266b9d27d396214b582680b0e | /基础一/01-python入门.py | 709caf32ccc709045596b4d3d2051a15a342444b | [] | no_license | Faust223/python- | c4bbb93bfff654ec6df46f9bcfa9328d76cac75e | 5917082e434d545d5b4c9e465e41d027b7ca269e | refs/heads/main | 2023-05-04T15:28:56.707411 | 2021-05-02T08:32:55 | 2021-05-02T08:32:55 | 355,480,787 | 1 | 0 | null | 2021-04-07T10:16:14 | 2021-04-07T09:08:43 | null | UTF-8 | Python | false | false | 825 | py | print("hello,world!")
# 1.字符串
name = "xxx"
print(name,type(name))
#2.整形
age =12
print(age,type(age))
# 3.小数
salary = 23.5
print(salary,type(salary))
# 4.初始值是同一个值
f1=f2=f3=f4=f5=100
# 5.变量重新赋值
num =12
num = "xxxx"
print(num,type(num))
# 6.变量
print()
# 7.扩展:交换两个数的值
a=100
b=200
#方式一:中间... | [
"noreply@github.com"
] | noreply@github.com |
75a5e6bdf6b2364dc3ebfdb68b3cd47e40d063f2 | d3b4c1ad4fb521b7d44ec66ab88a6ca075d20533 | /q34.py | f1cfd94742e2a82195f9e349bafc2d44667115f9 | [] | no_license | Ayesha116/piaic.assignment | 06b57c25f38a0836da5f26c654682c1ca7e4d665 | 5ef29d394cea55c1d467f45d6b07d611378b419f | refs/heads/master | 2020-06-16T07:24:13.153377 | 2019-07-06T19:42:43 | 2019-07-06T19:42:43 | 195,512,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #Input a text and count the occurrences of vowels and consonant
word = input("enter word: ").lower()
vowel = 0
consonant = 0
for i in word:
if i=="a"or i =="e" or i == "o" or i == "u" or i == "i":
vowel = vowel+1
elif i =="b" or i =="c" or i =="d" or i =="f" or i =="g" or i =="h" or i =="j" or i =="k" ... | [
"ayeshajawed1168@gmail.com"
] | ayeshajawed1168@gmail.com |
a0cc9264c43dfc9f2d4d4def76f93f98b56708d1 | 0ff7c2e3e594d411168cbaab7ce5caf29efb04ae | /class1.py | ea016689abcce781d2d17e5dc9f2fc2ce140181d | [] | no_license | bhavyajain190/project-105 | d19d31ba6dbd90941910a9b62719605ceff7daca | 4c9aef2de6e5f7c119588182b663ab24c45ddded | refs/heads/main | 2023-06-12T20:44:54.063662 | 2021-07-05T15:45:08 | 2021-07-05T15:45:08 | 383,190,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import csv
import pandas as pd
import plotly.express as px
with open('class1.csv',newline='') as f :
reader= csv.reader(f)
file_data=list(reader)
file_data.pop(0)
total_marks=0
total_entries=len(file_data)
for marks in file_data:
total_marks+=float(marks[1])
mean=total_marks/total_entries
pr... | [
"noreply@github.com"
] | noreply@github.com |
74d32a699bdd95a5f76f5892163733b31d4f7216 | e203ddace08580170e3b4de9c79588209e857c1c | /dice.py | abdae853c875404a92648d58684acab4c6db318b | [] | no_license | stradtkt/OOPTreehouse-Python | e17f3fd48840049b8b741aa0e30e54d1409804b2 | 84e0ef2142118bf44c416a3b1dde3519ff57fd15 | refs/heads/main | 2023-02-26T15:03:27.053205 | 2021-02-04T13:04:26 | 2021-02-04T13:04:26 | 334,620,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import random
class Die:
def __init__(self, sides=2, value=0):
if not sides >= 2:
raise ValueError("Must have at least 2 sides")
if not isinstance(sides, int):
raise ValueError("Sides must be a whole number")
self.value = value or random.randint(1, sides)
def __... | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
44886b5540adf62e789a3e14c8bdb407164c6454 | fc6bc4cf23f713e3e4a97c00f724c977b3adbf82 | /venv/Scripts/rst2html4.py | cea8afb9d0e6e8c96822dd5798e93d5ce73aa0b3 | [] | no_license | Startrekker007/SInglePhotons | 8b429e29f78977adfa7711e8dae2cb864a13ea53 | 529c2ab3ea3c3797db4dd4e0a336ce35ea2e64a1 | refs/heads/master | 2022-12-12T16:38:56.412370 | 2020-02-04T00:19:57 | 2020-02-04T00:19:57 | 223,832,514 | 2 | 2 | null | 2022-12-08T09:25:43 | 2019-11-25T00:41:41 | VHDL | UTF-8 | Python | false | false | 738 | py | #!D:\SInglePhotons\venv\Scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms to XHTML 1.0 transitio... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
c090907bcb9d526fe657c9892bfd66cb3f215c81 | fdd821b9ff8807895f73d28ae0ef84f2031cf509 | /tests/serializers/test_default_json_serializer.py | 4e3db612d8352b8b0220cb852c3a53f63deccf01 | [
"MIT"
] | permissive | tcnghia/python-sdk | 7ea354f67aa57b915e4917393efdcd6307a11eb4 | 326d1ddeccc82093e5a9bace7265c259ec01ef5a | refs/heads/master | 2022-12-24T19:40:09.455895 | 2020-09-30T22:37:54 | 2020-09-30T22:37:54 | 300,469,769 | 0 | 0 | MIT | 2020-10-21T21:31:14 | 2020-10-02T01:29:24 | null | UTF-8 | Python | false | false | 2,034 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
"""
import unittest
import datetime
from dapr.serializers.json import DefaultJSONSerializer
class DefaultJSONSerializerTests(unittest.TestCase):
def test_serialize(self):
serializer = DefaultJSONSerializer(... | [
"noreply@github.com"
] | noreply@github.com |
a79d72ad0e77b4540ccb81018b0b89bd2fd5d4cc | dfab6798ece135946aebb08f93f162c37dd51791 | /timber/aokuang.timber/old/content/components/actors/getsetattr.odb | 1821efacfe32e3cee32ea3f7ce93af3e15c2f6d6 | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,701 | odb | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@bagua.cacr.caltech.edu"
] | linjiao@bagua.cacr.caltech.edu |
6f95aa72bb04694fb567c91c50afaca7584aac06 | b11ad7b3305081b18fa614689c5a475a5b00c286 | /AlarmClock.py | 3f84410beaf02a8e150e674756157950949c3d22 | [] | no_license | TriCompany/Alarm-Clock-using-pthon | b5aae51931521a987387392a1dac868647311cde | 236bb91803caee4ddc31219ca6404f4f7c2a8353 | refs/heads/main | 2023-08-15T16:39:29.368151 | 2021-10-09T14:41:32 | 2021-10-09T14:41:32 | 415,327,607 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | from tkinter import *
import datetime
import time
import winsound
from threading import *
root = Tk()
root.geometry("400x200")
def Threading():
t1=Thread(target=alarm)
t1.start()
def alarm():
# Infintite Loop
while True:
# Set Alarm
set_alarm_time = f"{hour.get()}:{minute.get()}:{second.get()}"
# Wait fo... | [
"noreply@github.com"
] | noreply@github.com |
4d48802160e769bc97c2f5110ad88d24770f3b70 | 3bea4943302a7b4f392c117464904279f52483c3 | /beatSlicer.py | e665cbfd99c604420af426f707cf19444da49e3e | [] | no_license | karangejo/SoundClassifier | 002598e2ebdf5c51f9f871c191f0068f67c01d71 | 71a9bc0003df139995320bbe13fa2db204719110 | refs/heads/master | 2022-12-06T16:54:05.601675 | 2020-01-28T23:44:30 | 2020-01-28T23:44:30 | 233,778,694 | 3 | 0 | null | 2022-11-21T21:39:56 | 2020-01-14T07:07:05 | Python | UTF-8 | Python | false | false | 3,660 | py | import librosa
import numpy as np
import os
import subprocess
import random
import soundfile as sf
file = '/home/karang/Documents/AudioClassification/beatbox.wav'
slice_folder = '/home/karang/Documents/AudioClassification/slices/'
# function that uses the aubio-tools command aubiocut
# to beat slice a .wav file and s... | [
"gabriel.g.gras@gmail.com"
] | gabriel.g.gras@gmail.com |
52ee92fbd28fa8dffade0d117bdff78156bd04d1 | 296f091643221e821fc54edf3abe107701ea5394 | /tests.py | 238811f49a8a5a9c23991dd8a4ca2c603fd62b92 | [
"Apache-2.0"
] | permissive | koksalkapucuoglu/MicroBlogwFlask | 4335ffab64950286e1b902fc36b573c99103c5c8 | fe9904d4a350c1a3e808c65122f6f9d4b11380c1 | refs/heads/master | 2023-08-20T08:53:55.097219 | 2021-09-28T19:22:35 | 2021-09-28T19:22:35 | 325,088,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py |
from datetime import datetime, timedelta
import unittest
from app import app, db
from app.models import User, Post
class UserModelCase(unittest.TestCase):
def setUp(self):
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite://'
db.create_all()
def tearDown(self):
db.session.remove()
... | [
"koksalkapucuoglu@hotmail.com"
] | koksalkapucuoglu@hotmail.com |
654390475ea686611187d2fd60cb9aea51f7fc17 | 3f09fa2a37a8032c38b0fbcb7cb770a0e0d2aa01 | /project5/preprocess_test.py | 1339c1c1fd072c6855326d63ac42eaa246614964 | [] | no_license | a5834929/UCLA-EE219_Large_Scale_Data_Mining | 151684c29680db38c8394a2df39b79bc8635c6b4 | 869011e047b96c5bd4f17e3674fa0ec0fb21d4ca | refs/heads/master | 2021-08-14T21:47:07.669002 | 2017-11-16T21:01:08 | 2017-11-16T21:01:08 | 111,021,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import json
import time
import datetime
import numpy as np
from dateutil.parser import *
tags = ['sample1_period1','sample2_period2','sample3_period3','sample4_period1','sample5_period1'
,'sample6_period2','sample7_period3','sample8_period1','sample9_period2','sample10_period3']
start = time.time()
for tag in tags:
... | [
"a5834929@yahoo.com.tw"
] | a5834929@yahoo.com.tw |
3b72f93fe33b5138f0698a281d006e5e863fc0fd | 296f47804896443d720115310a57f547d1c2304e | /StackIT/StackIT.py | c5c0d120107fcf333e5ff4e9fc51117f5744b441 | [
"MIT"
] | permissive | simonwangcode/StackIT | e38432ab5002c1f3932cc94a34ca0731482e3e4f | 3ac2567e8ca0bcc32d574a0c3fa29df6ad61aa86 | refs/heads/master | 2021-05-31T18:17:04.679072 | 2016-06-15T02:47:59 | 2016-06-15T02:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,499 | py | import pygame
import time
# Initialize pygame and store colors that will be used into variables.
pygame.init()
white = (255,255,255)
objectColor = (153,217,234)
backgroundColor = (63,72, 204)
# Store images, sound and fonts to be used into variables. Set volume, create Screen object for GUI canvas.
clock ... | [
"noreply@github.com"
] | noreply@github.com |
d23a566c08abf55e9be2ce8abc9767e6dba83be9 | c17dc5469b97b9a07ddad36f992e3cc67041cb7a | /src/stk/molecular/topology_graphs/cage/two_plus_three/twenty_plus_thirty.py | 6e788aed14c8c2e89a13d53e5a6ee7ab89708aeb | [
"MIT"
] | permissive | sianpoynton/stk | c57bf0a0ac3f903d7313d46ff29110c9757389de | ca90b64598f3eacc5f2ca5f264d4f49580ac6ed3 | refs/heads/master | 2023-01-19T21:41:25.319614 | 2020-10-26T20:08:42 | 2020-10-26T20:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,894 | py | """
Twenty Plus Thirty
==================
"""
import numpy as np
from ..cage import Cage
from ..vertices import _LinearCageVertex, _NonLinearCageVertex
from ...topology_graph import Edge
class TwentyPlusThirty(Cage):
"""
Represents a cage topology graph.
See :class:`.Cage` for more details and example... | [
"noreply@github.com"
] | noreply@github.com |
f3416fe73dce46b9f44f721a499b608dce34e1ae | d656cea60fdbc0426672c115dd310a820d492964 | /order/views.py | e190f582477fac3ba548887aac99e50568be6d22 | [] | no_license | khs0806/mall_project | 9fff6f191c80b77b48a518beb8beba9e0c121d9a | 699a104d3143605a4f75d4d31b644ec6eecda051 | refs/heads/master | 2020-09-29T22:30:41.254284 | 2020-01-16T09:57:42 | 2020-01-16T09:57:42 | 227,137,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | from django.shortcuts import render, redirect
from django.views.generic.edit import FormView
from django.views.generic import ListView
from django.utils.decorators import method_decorator
from fcuser.decorators import login_required
from .forms import RegisterForm
from .models import Order
from django.db import transac... | [
"55686024+khs0806@users.noreply.github.com"
] | 55686024+khs0806@users.noreply.github.com |
c973ff34be67d743bc6e790c74683e4069006682 | 974c56d9b37c5c879ede76c9e68ab6bac43d509a | /contrato/views.py | ec10b446d8121d64623f422201835a8108e46d60 | [] | no_license | fredsilva/Contrato-Old | 79be1311642a7590632e580572f89afdefb1b23d | 3b4b7a0d247585b817871012b3049777c53f131a | refs/heads/master | 2016-09-06T01:14:10.415888 | 2013-04-24T03:02:12 | 2013-04-24T03:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | # -*- encoding: utf-8 -*-
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.db import IntegrityError
from contrato.forms import FormCargo
from contrato.models import Cargo
def home(request):
nomePagina = "Home"
titulo = "Sefaz - Sistema de Gerenciament... | [
"fredsilva.sistemas@gmail.com"
] | fredsilva.sistemas@gmail.com |
937eff4a3b8905fc57ae6b932e081aa6626fdcee | 3955f9773f3cd4e39a6412402af97c438b5698da | /lab3/EvolutionaryAlgorithm.py | 4753c4b17fc2a543564cd2dab6e6726670c4e6e2 | [] | no_license | AvramPop/ai | af15914ad992c91db2530aabd8387126477e7ec2 | 9f981d0b8102070da1e72f2f02bba604e7711df2 | refs/heads/master | 2022-09-20T21:32:43.240306 | 2020-05-23T07:44:24 | 2020-05-23T07:44:24 | 244,846,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | # -*- coding: utf-8 -*-
from Population import *
from Problem import *
from qtpy.QtCore import QThread, Signal
from math import inf, sqrt
class EvolutionaryAlgorithm:
def __init__(self, problem, statsFilename):
self.__problem = problem
self.__statsFilename = statsFilename
def setParams... | [
"dany4god@gmail.com"
] | dany4god@gmail.com |
b99a5769e37c7e91afb7a10ecf5019595817fcd5 | 09120532659f7eb134163f92ac2f65423a04dc03 | /zproject/django/survey/teacher/migrations/0006_remove_question_page.py | b68e92589867082131f7e2af6969e05cc1c2cfca | [] | no_license | hoboland21/survey | 7b2dafd76db0e9317037a0cec163a97c0ec9a8ec | 93e71f3304b381a6be03c8f813d2ba3a0b6eb218 | refs/heads/master | 2023-01-28T07:38:38.934710 | 2019-05-13T08:55:41 | 2019-05-13T08:55:41 | 182,874,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Generated by Django 2.2.1 on 2019-05-13 07:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('teacher', '0005_auto_20190502_0008'),
]
operations = [
migrations.RemoveField(
model_name='question',
name='page',
)... | [
"jc@saipantech.com"
] | jc@saipantech.com |
1ebfb7263bdf2f73853fea22ae9d05fc6548f975 | 9ac9f01c3141104801f6a503cfd79b93f86bbf49 | /the_wall/wall.py | 9d100a7621f277167de7bee76839d0d5a8287c1c | [] | no_license | lyndonrey85/Python-Codes | ed08f2f3e785f84cfd6dbcb9efc8f297c661bfb3 | d8945e57e98fb233746ce7a5bcba83f3458c011f | refs/heads/master | 2020-03-22T04:13:04.089468 | 2018-07-02T18:52:40 | 2018-07-02T18:52:40 | 139,481,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | from flask import Flask, render_template, request, redirect, flash, session
import re
app = Flask(__name__)
# bcrypt = Bcrypt(app)
app.secret_key = "mysecretkey"
mysql = MySQLConnector(app, 'the_wall')
def validate(email, first_name, last_name, password):
if email and not email_regex.match(request.form['email'])... | [
"lyndonrey@yahoo.com"
] | lyndonrey@yahoo.com |
0388b9d29f2af74620da51c8356fc3fbd133bc5e | ae67c6107dcc81f2d1e924c8fa59b8f51bab1c8b | /MonteCarlo/Folding-ww/RLSim.py | 5b0099ec0c82c51728b101329b682daf1812a7b5 | [] | no_license | braceal/REAP-ReinforcementLearningBasedAdaptiveSampling | 4576ff60a6128007440fec39a9a7109ee5f6f26c | 947fa7489100ceecc396314bb0e4e7ce3a3536fd | refs/heads/master | 2020-12-22T16:18:53.525011 | 2019-04-30T16:00:42 | 2019-04-30T16:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,894 | py |
class mockSimulation:
## public
def __init__(self):
self.theta_mean = []
self.theta_std = []
self.r = 1#number of rounds
self.s = 1# length of simulations
self.N = 1# number of parallel simulations
self.msm ... | [
"noreply@github.com"
] | noreply@github.com |
73d0e57e7a4ce436b64584786aa7f686d7c5f0a8 | 3f2cc3d386ad184ca759a3fda072e35fa74baa09 | /artic/deprecated/lengths.py | 3d744e4898050bc511ac8f4f3de7b00f62f9de06 | [
"MIT"
] | permissive | artic-network/fieldbioinformatics | de91b5175b484f006ce15c0ef5607cb34f22954e | 314f52bcdd22faf827b7471086e97c196cc38c8f | refs/heads/master | 2023-09-01T17:50:54.222480 | 2023-08-22T12:20:05 | 2023-08-22T12:20:05 | 122,982,368 | 98 | 74 | MIT | 2023-09-08T16:37:07 | 2018-02-26T14:37:14 | Python | UTF-8 | Python | false | false | 124 | py | #!/usr/bin/env python
import sys
from Bio import SeqIO
for rec in SeqIO.parse(sys.stdin, "fasta"): print rec.id, len(rec)
| [
"n.j.loman@bham.ac.uk"
] | n.j.loman@bham.ac.uk |
7180708fefec3823283ed74f2bf42fe2eda9b760 | fc60353f0a7c9fb3a20cab9695d6f187a48c38c1 | /effective_python/item15.py | 18679e1dd0425461fe2bf501a361aee4612f04c5 | [] | no_license | jianhan/python_learnings | ba47f91937cd9c4f364a6497df9c65dcfe22ad99 | dbf694e5c735dbf9308963c53c69f27c6158e647 | refs/heads/master | 2022-08-27T12:43:29.229830 | 2020-05-31T07:29:44 | 2020-05-31T07:29:44 | 264,344,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | from collections.abc import MutableMapping
"""Things to Remember
✦ Since Python 3.7, you can rely on the fact that iterating a dict
instance’s contents will occur in the same order in which the keys
were initially added.
✦ Python makes it easy to define objects that act like dictionaries but
that aren’t dict instances... | [
"jianhan@mail.com"
] | jianhan@mail.com |
dbadb79e1a21ae2572a427526517b255f2b2e995 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/3d/8/Andreas_Wang/parser.py | 6a3bff914ce674c14def05ef60a827e30890a319 | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py | from display import *
from matrix import *
from draw import *
from math import *
from types import *
# I had a neurotic need for everything to match the math notation of
# matrices being defined as rows x columns, so my matrix items I read
# as matrix[row][column]
# Since this would mean our point matrix is an n by 4... | [
"azilby@gmail.com"
] | azilby@gmail.com |
f645d6d922da692804451fbc85ba6f620a13af06 | 379af3add17394122c6d73eb5b7cdf7db6107b10 | /xadmin/plugins/xversion.py | 499686f88ead88b11284e7016899941a7a76ea47 | [
"BSD-3-Clause"
] | permissive | edwardvon/xadmin-django3 | 3c08b5eb51beb89f0962ff5efbcadb18f8895c87 | f9f3ed7c6b33896e48ddf59149e1f5bd2cfe780a | refs/heads/master | 2021-09-25T11:38:13.258307 | 2020-02-26T06:41:02 | 2020-02-26T06:41:02 | 241,836,439 | 8 | 4 | BSD-3-Clause | 2021-09-22T18:36:38 | 2020-02-20T08:54:56 | Python | UTF-8 | Python | false | false | 24,079 | py | from crispy_forms.utils import TEMPLATE_PACK
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied
from django.db import models
from django.db.models.query import QuerySet
from django.forms.models imp... | [
"skyway123@foxmail.com"
] | skyway123@foxmail.com |
14268d560186e6894b4e26ce2fc99edcdbbebd6d | 125e2a9683db5d42389e4ddb8b5102afe0478ec7 | /Add Binary.py | 7750d8ffe21fa8831bc0aeac6fab9b3316f0c5c4 | [
"MIT"
] | permissive | happyandy2017/LeetCode | ae788ee298b2d1bda3368c338419767d3730f20c | 64863d9d284a72fa23bed40640f7229a0d904f5b | refs/heads/master | 2020-04-09T13:02:40.672791 | 2019-01-20T03:32:28 | 2019-01-20T03:32:28 | 160,366,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | class Solution:
def addBinary(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
# 1. a (str)->二进制到十进制a_10 (digit)
# b->二进制到十进制b_10
a_10 = self.binary_to_decimal(a)
b_10 = self.binary_to_decimal(b)
# 2. c_10 = a_10+b... | [
"shiyong212@gmail.com"
] | shiyong212@gmail.com |
c8facc9ea3ed518fd6ee130c1cdb11be3df8b943 | f4acecc11c0ba88335ca9393ebaee14cb248f2a8 | /sum1.py | 5f97dbe6f7b22e5d54d5990bdde6b76b59592ea1 | [] | no_license | aarthi001/codekata | fefb3cfb19bfedfc390777d2280276bc3d55ea01 | 5eef86b168b8f1a640ecad0b54ba0e79efeb9e48 | refs/heads/master | 2021-01-11T14:06:16.607514 | 2017-06-23T04:24:41 | 2017-06-23T04:24:41 | 94,965,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | n=input("enter any number")
s=0
for x in range(1,n+1):
s=s+x
print(s)
| [
"noreply@github.com"
] | noreply@github.com |
0a2d611f2578b26b114f89d0df16482b4e00844f | 37b2998b537673f0b2b0237887fe3ab1b4c525d1 | /workbench/offers/migrations/0002_offer_project.py | 0ced7448d48e952a677f636985a60ce7075c79c0 | [
"MIT"
] | permissive | ndarvishev/workbench | 1076fc86522884a3128fab25cd7f6f8162a152f4 | e93c35180990ee3424fbb7b73e26400cb869e29a | refs/heads/main | 2023-05-30T23:47:36.948646 | 2021-06-25T08:43:15 | 2021-06-25T08:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 2.1.7 on 2019-03-04 21:39
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [("projects", "0001_initial"), ("offers", "0001_initial")]
operations = [
migrations.AddField(
... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
d48cc769357f1b0babba2b613a670df7f5eadef3 | c1f285c7fe5ede34fa8b9ccc1e978faf719c2956 | /documents/admin.py | 3d3c07e9f251e92bf7d56eca155d02025a1f09be | [] | no_license | tadiparChinese/ucpbciif | cb5d5f0f09e9d5c58226ea8606b0fd77834c7294 | 9dbb6e5f1639b220ff163a962b58b0e13b5e18d0 | refs/heads/master | 2023-03-21T21:41:26.872229 | 2021-03-04T03:12:54 | 2021-03-04T03:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from django.contrib import admin
from .models import *
admin.site.register(Document)
admin.site.register(DocumentType)
admin.site.register(DocumentMovement)
admin.site.register(Signatory) | [
"reneborigas@aeonsitsolutions.com"
] | reneborigas@aeonsitsolutions.com |
06bb80abbcbbb3a1daabb77bae00d7a9a8579222 | 6d3c4b6ed0f33c04e46bccc596ca02fbb6841594 | /DevServe/wsgi.py | b0eb14255d929af83fb3d437ba46a3a26e3f832b | [] | no_license | kiran-vemuri/DevServe | 089adabac13c6f9842ebbe8d8c5e0dfb084b76f9 | bd251c72feb319930e1a555ab07bb2641832ebf4 | refs/heads/master | 2021-01-19T05:13:17.607495 | 2016-08-11T01:34:34 | 2016-08-11T01:34:34 | 60,896,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for DevServe project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"kvemuri@adaranetworks.com"
] | kvemuri@adaranetworks.com |
e0c400ecb3b41379b14c2eb698c7fab55e23f725 | 289c93646c825c635f126ca89ec703fbcb76f844 | /src/findSubstringConcat.py | dbd4218ae069bfe6239e9da3b625d4dd13d7b5d3 | [] | no_license | Alee4738/leetcode | bf445e29c1b4792144ed5942513d7ee3dbbca9bd | bbf9782dfcd085bcc5f0edd65981b17a69213b25 | refs/heads/master | 2022-08-28T03:24:29.943047 | 2022-08-14T00:58:05 | 2022-08-14T00:58:05 | 183,821,721 | 0 | 0 | null | 2022-05-24T17:28:07 | 2019-04-27T21:07:08 | TypeScript | UTF-8 | Python | false | false | 2,848 | py | """
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters.
Example 1:
Input:
s = "barfoothefoobarman",
words = ["foo","bar"]
Output: [0... | [
"alee4738@gmail.com"
] | alee4738@gmail.com |
5bcd7598803ff3719fc8a90db8fdd144ba7ae64f | 68458fe04e02ecd86a514dbd64f2db4dbe9bca76 | /testCases/test_searchbyemail_Ch.py | 1b4333c5d9666935ec8a0082fa0c0c6a7a4975db | [] | no_license | chiragpritamnani1992/Ecommerce | 6f622c967da71c4a88d00d551e40dcfd5ffafa42 | 2086629091c19417002ba184445f62b3d0a553da | refs/heads/master | 2022-12-08T23:01:32.093490 | 2020-09-06T13:05:20 | 2020-09-06T13:05:20 | 287,936,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,569 | py | import pytest
import time
from pageObjects.AddCustomer import AddCustomer
from pageObjects.LoginPage import LoginPage
import selenium.webdriver.chrome
from datetime import datetime
from Utilities.readproperties import ReadConfig
from Utilities.customLogger import LogGen
from Utilities.wrapper import wrapper
import stri... | [
"chirag.pritamnani@gmail.com"
] | chirag.pritamnani@gmail.com |
8741b9aed2a4193f98da42908af3309846ac847d | 23805cffc86ac4dfb5bcce672b8c7070b4616e41 | /Apprendre-Python/is-prime/scripts/generate.py | 6c3f901f4ee05d4b2bf8c0c39ea1473a1f97b3d0 | [] | no_license | ukonline/pythia-tasks | f90ff90299fe0eedd0e2787bcf666df07c709a00 | 81a3731eb0cdfe16b26a4e75a165a5071fb48ff5 | refs/heads/master | 2021-01-25T03:26:33.915795 | 2016-01-04T20:03:24 | 2016-01-04T20:03:24 | 40,974,655 | 0 | 2 | null | 2016-12-21T13:12:14 | 2015-08-18T13:49:39 | Python | UTF-8 | Python | false | false | 467 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Course: Apprendre Python
# Problem: Es-tu premier ?
# Test generation script
import csv
import json
import os
import sys
sys.path.append('/task/static')
from lib import pythia
# Read test configuration and generate test data
with open('/task/config/test.json', 'r', encodi... | [
"seb478@gmail.com"
] | seb478@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.