blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
fc643dc203e74a4a18ba26861d7b3c353dd2e542
461306cf81663a24f0549569c1377836e1e9783d
/rsi_indicator_and_traders_sentiment.py
10ba405233acdf9beaa82ee64f05426e675257de
[ "MIT" ]
permissive
maxxyryo/TradingAlgorithm
c3be17fcc5c81b147fac2f055c1a7825ef511307
9795ee48c4b899ac8a09b40e4e2a5684db95890b
refs/heads/master
2022-02-25T11:33:27.789642
2019-10-16T23:59:44
2019-10-16T23:59:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,821
py
import time, random, math, logging, talib, numpy from iqoptionapi.stable_api import IQ_Option from datetime import datetime logger = logging.getLogger() logger.disabled = True actives, action = '', '' openAssets = [] print("***Hello Mark***") print("\nLogging in...") api = IQ_Option("gacokambui@gmail.com", "Dodomans...
[ "noreply@github.com" ]
maxxyryo.noreply@github.com
d210d80b5d85c28a4b0ef06634b44b3a1f0e0c4c
218e0259ba3c4e51c984f07f6ca1dde0499d7ae7
/aasaan/manage.py
ca8ac2eef769a6b4fa0d1b2e9caef34979b03968
[ "MIT" ]
permissive
deepakkt/aasaan
c1f363c93ca1cbeda62d9a5b814bb2b4de10de7d
77ef72e785e6ae562f51ae64fa9d85faf860c315
refs/heads/master
2022-12-09T03:51:38.892923
2018-11-12T14:09:52
2018-11-12T14:09:52
156,221,855
0
0
MIT
2022-11-22T02:36:32
2018-11-05T13:25:28
JavaScript
UTF-8
Python
false
false
254
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aasaan.settings.prod") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "deepak.kumaran@ishafoundation.org" ]
deepak.kumaran@ishafoundation.org
ef545932a4b67937c9aaa422f89cd67d5d874941
576811a28608dcebc5bfdf9abe64e4bb4ab28a2a
/app/admin.py
d2e63d1ffc5936af55685a481d53a186a921f8ae
[ "MIT" ]
permissive
peterken674/instagram-clone
180d7974548ffcd52414b94a96248efb83955bb8
950ff7902d8fd29ea9f94bf17b1ae0d69e0b2614
refs/heads/main
2023-06-15T22:59:51.639886
2021-07-15T09:01:01
2021-07-15T09:01:01
384,387,263
1
1
null
null
null
null
UTF-8
Python
false
false
229
py
from django.contrib import admin from .models import Post, Profile, Comment, Like, Follow admin.site.register(Post) admin.site.register(Profile) admin.site.register(Comment) admin.site.register(Like) admin.site.register(Follow)
[ "peter.kimani@student.moringaschool.com" ]
peter.kimani@student.moringaschool.com
92f42f9f2b8c96f0d8e83bcaa79b8813312fbb2e
ba7c4862dfbc9d0469f389c0cdb3fed01f99ebe3
/controls/Control_Toolbox/steady_state_error.py
25f782973e80f3f0f6a329e2308fc7e37a7425c8
[]
no_license
cmontalvo251/Python
293cbdf8832d7637d5c0b31eadd02d3ccf2f2c05
2b12ce043ee41e08537cfb62301c6a55d4661e04
refs/heads/master
2023-06-22T21:50:21.225067
2023-06-14T13:42:16
2023-06-14T13:42:16
229,313,158
8
3
null
2021-07-31T16:01:54
2019-12-20T18:03:52
Python
UTF-8
Python
false
false
1,015
py
###Integrate an ordinary differential equation #in MATLAB that's using the function ode45. #in Python we're going to use the Scipy toolbox and odeint import numpy as np import matplotlib.pyplot as plt import scipy.integrate as I import control as ctl import scipy.signal as S import scipy.linalg as slin plt.close("all"...
[ "cmontalvo251@gmail.com" ]
cmontalvo251@gmail.com
9421de925619fe94b36c6e9b74bbf993021d8f12
be84b86c95d1f2e5dd712c34e6b820f98d2154d5
/nnet_pytorch/objectives/CrossEntropy.py
6a5f9b8b6034c84ea61e7b74fae7d03c9160614c
[]
no_license
aarora8/nnet_pytorch
6211f2dc26bae730249f4a6c0097166a09b847f6
086bc45cf2f1a12197f29033a1e129f6c8b55b03
refs/heads/master
2023-06-29T02:48:56.691357
2021-01-21T18:36:10
2021-01-21T18:38:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
import torch.nn.functional as F import torch class CrossEntropy(torch.nn.Module): @staticmethod def add_args(parser): pass @classmethod def build_objective(cls, conf): return CrossEntropy() @classmethod def add_state_dict(cls, s1, s2, fraction, iteration=None): ...
[ "wiesner@jhu.edu" ]
wiesner@jhu.edu
aebac5f6f1f394de8d920448000754827f0e64e2
1cb896deec4bb52a5db96f64bf7399124176f9de
/Homework01/homework01-01.py
fff637d965f2701bc87a2489ea4cba39eccf8b51
[]
no_license
danihooven/Principles-of-Programming
b2148a17d6dcf381d4900473cdb2347967ab1d37
6a859e31ff0570591f2e12e99149d79f38ddd9ba
refs/heads/main
2023-03-11T00:58:14.348279
2021-03-01T05:21:16
2021-03-01T05:21:16
343,296,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,609
py
""" -------------------------------------------------------------------------------------------------------------------- ITEC 136: Homework 01 - Question 01 Write a program that prompts user to enter three sides of a triangle. The program should determine if the three sides can form a triangle. To form a triangle...
[ "noreply@github.com" ]
danihooven.noreply@github.com
269dde29e6bc2a138c37e57bfcbe02a3e9c31da7
f02e527444ad38fd719e89fc6418e0008e752b9d
/Lab13/fly_drone_new/fly_drone_main.py
e9a243d09b17fd757844360a7aeb1acf7f39e19b
[]
no_license
newkstime/PythonLabs
d1d58c420aa08f4274165598808e9c261a6168f0
c08bedb372b1b3d44bb8436d93aeebcab642a31b
refs/heads/master
2022-11-07T07:20:14.926002
2018-06-26T16:53:11
2018-06-26T16:53:11
121,427,417
0
2
null
null
null
null
UTF-8
Python
false
false
531
py
from drone import Drone drone1 = Drone() keep_going = True while keep_going == True: user_input = input("Enter 1 for accelerate, 2 for decelerate, 3 for ascend, 4 for desend, 0 to exit:") if user_input == "1": drone1.accelerate() elif user_input == "2": drone1.decelerate() elif user_inp...
[ "eric.s.perry@outlook.com" ]
eric.s.perry@outlook.com
e5ff4fc440892847e2b8cd2bb4af408b58478ab9
5c2e7ab4b89f5e6b29d27c02f46d75331aa16cc2
/classifier.py
a2e89cfc450b24bba063eb8a85a41ff3417fc0e8
[]
no_license
Koki-Yamaguchi/AtcoderFinder
4b10ee6e147be94fe7aa5241ffcaaac609418bd8
6047ad831cfcbad427eb37d021f70b71b5d0ac57
refs/heads/master
2021-04-15T19:03:05.705432
2018-04-09T02:32:45
2018-04-09T02:32:45
126,480,285
5
1
null
null
null
null
UTF-8
Python
false
false
3,821
py
def classify(statement, codes): tags = ['グラフ', '数論', '幾何', '動的計画法', 'データ構造', '文字列', '数列', '確率・組合せ', 'ゲーム'] apparent_keys = [['グラフ', '木', 'パス',], [], ['半径',], [], [], ['文字列',], ['数列',], ...
[ "yk49at21@gmail.com" ]
yk49at21@gmail.com
487513fd8ef86a8654f3a3e40630b7f94260bd8e
c0acdd673e8bf9aaf092df4191fdcf842ab3e036
/NYC_maze/custom_gym/Nyc_maze/custom_env_dir/envs/__init__.py
af65cff4d979d2779ebf6570e66443be3755722e
[]
no_license
willemvdmierop/Reinforcement-Learning
c8d39b30538394f74cfe31ee52fda0c01c53057d
c77cc6be9a7a539ebf5c9945007502b35762129d
refs/heads/master
2022-09-13T05:27:04.037560
2020-05-20T10:22:27
2020-05-20T10:22:27
262,002,957
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
from custom_env_dir.envs.custom_env import NycMaze1
[ "57663191+willemvdmierop@users.noreply.github.com" ]
57663191+willemvdmierop@users.noreply.github.com
d8707e704ff8707a580b5e6e7748f3b9db250115
0a514f1bbdaa4cf233a0aaf1c6665149d128aaf0
/app/assumptions.py
6787b960fa8e61b1d9b36b7dd67fddd3cea9933b
[ "MIT" ]
permissive
iliakur/revacom-time-tracking
a9cef0a548c28ae6930fdb32622c91cc4b352ad4
da9c579950702fc9b97075397cd542f82baaa144
refs/heads/master
2021-09-07T20:26:10.110582
2018-02-28T14:03:48
2018-02-28T14:03:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
"""This module houses the various assumptions we made about the data. Each assumption has a value that's used in computations and a description which is rendered alongside the plots. """ from collections import namedtuple Assumption = namedtuple("Assumption", "value description") HOURLY_WAGE = Assumption(18, "Hourly...
[ "ilia.kurenkov@gmail.com" ]
ilia.kurenkov@gmail.com
cf91cdc16f2fb074d25cf83f7c46e8743c783747
9117968b934788cf50c34687bb9ca44b336c0da9
/create_tables.py
e29c525ac21b8237a66a37e40d19cf94616935c2
[]
no_license
dodgerbluetx/DEND-Project-03-DWH_Warehouse
86fd9ad6f6b617899ddf423110790b9a3d51808e
7738fa363fc59c6abee5fccf01ec99162fb2fced
refs/heads/master
2021-05-21T18:41:32.603956
2020-04-03T21:12:17
2020-04-03T21:12:17
252,756,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,820
py
import configparser import psycopg2 from sql_queries import create_table_queries, drop_table_queries import time import datetime def drop_tables(cur, conn): """ Description: Drops all existing tables from the database. Use the sql_queries script to loop through each query defined in the drop_tabl...
[ "dodgerbluetx@gmail.com" ]
dodgerbluetx@gmail.com
552739644e8aa16e04d99e55cefc9b2165171e59
cf2031de10f3977e125a496c15a51278fa024a88
/obp/__init__.py
abd2542d346207afd90439f52605dc0a86478ee4
[]
no_license
onebadpanda/bambooCMS
2f5b9de6b0db84652779fd79e80ffbe9775ce706
9c7ac4e547117007fdbc6882f08def5f2babb82e
refs/heads/master
2021-01-13T02:16:02.640509
2013-09-11T22:26:39
2013-09-11T22:26:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
__author__ = 'One Bad Panda' from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.bcrypt import Bcrypt from flask.ext.mail import Mail from obp.helpers import config app = Flask(__name__) app.config.from_o...
[ "accounts@onebadpanda.com" ]
accounts@onebadpanda.com
dc4fd27643cf2ca7fcb0ac3da88849a8dff81d7b
5afd6c6176dd07590954e1c55e306a8625f1f8e5
/Algorithm_RBF_SVM/test.py
35e9404da043636f88078446a93c8db3c19b9b84
[]
no_license
kennywarwick/AB104_Project
51af30bd2ff1d6f9514d12f4e2ad2948ffa21e2d
c7d4e1f8f55eef2bb1ff87029648a763f474091d
refs/heads/master
2021-01-19T13:05:43.185795
2017-02-18T05:38:46
2017-02-18T05:38:46
82,364,394
0
0
null
null
null
null
UTF-8
Python
false
false
3,202
py
#coding:UTF-8 from sklearn import datasets import numpy as np iris = datasets.load_iris() X = iris.data[:, [2, 3]] y = iris.target print('Class labels:', np.unique(y)) from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.3, random_state...
[ "kennywarwick@hotmail.com" ]
kennywarwick@hotmail.com
adca33f02c86874ba164e94709be498774236d46
c38f6839be97d342a66f0559fc66f2ab65e7205c
/e_learning/e_learning/settings.py
8f9996a5fcc850d17587c7e82839c3280b211125
[]
no_license
sudaratchoothong/Django
547c7ef9cf33f4fd800f412fe281390137890bac
9dedc0a4b30c1d79278695396e8bd48c60911396
refs/heads/main
2023-05-24T08:46:25.834948
2021-06-04T13:02:40
2021-06-04T13:02:40
373,839,897
0
0
null
null
null
null
UTF-8
Python
false
false
3,368
py
""" Django settings for e_learning project. Generated by 'django-admin startproject' using Django 3.2.4. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from path...
[ "62239375+sudaratchoothong@users.noreply.github.com" ]
62239375+sudaratchoothong@users.noreply.github.com
50773c6b23c4705b4f3edad639670d29ebaa5917
1499e886df7221c0437f758c635108c5a4b7abc2
/chapter2/testpa1.py
66302fa5b26f8025b5d42fb08576e410420cb698
[]
no_license
xasmall/learnpython
3a80203676128f84ca620ceec34ca9a094a83813
7996da23ad7c2440d804873ad49499633482700a
refs/heads/master
2021-02-09T13:07:00.774428
2020-03-09T13:44:15
2020-03-09T13:44:15
244,286,206
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
# 常量与变量 import numpy as np x = 5 # type函数用来判断变量的类型 print(type(x)) a = np.array((1,2,3,4,4)) print(a,type(a)) # 函数isinstance用来判断是否为指定类型 print(isinstance(x,int)) # python变量并不直接存储值,而是直接存储了值的内存地址或者引用,这也是变量类型随时可以改变的原因 x = 'Hello World' print(x,type(x)) # **符号是幂乘符号 print(9**9) # 在python中不用担心数值大小的问题,python支持任意大的数字 # p...
[ "xasmall@163.com" ]
xasmall@163.com
ed3bffd9dc2b40019ddcc9d392071354c8932679
8296c565c9c89726d91c84066a6838ec488184a3
/activity/apps.py
e7ad7077bd7b416b7a8283ebede27d06c4f63ab0
[ "MIT" ]
permissive
intherenzone/CRM
eda0d61fa7d2a6cea8ca98c7ed1c71197680885f
d0f3cffed01e5fddfc39c2281b26b2f376b71152
refs/heads/master
2021-07-23T20:21:24.867151
2018-08-31T08:55:23
2018-08-31T08:55:23
109,323,324
2
12
MIT
2018-08-31T08:55:24
2017-11-02T22:00:34
HTML
UTF-8
Python
false
false
96
py
from django.apps import AppConfig class ActivityConfig(AppConfig): name = 'activity'
[ "rmdalal@terpmail.umd.edu" ]
rmdalal@terpmail.umd.edu
fdc34a5acdc9df05688e643c6e3939d0f1cfc1a2
ca7162adc548c5937ebedd6234b40de7294e2da1
/11-dababase/sqlite/createTable.py
b5b8058f153badef698c5a031aec4709f76832e6
[]
no_license
meloLeeAnthony/PythonLearn
03c259d745b1ccdc039e9999889ab54be14ae020
9915ec5bb7048712a97539a9c5bce8743567b22a
refs/heads/master
2023-07-10T21:12:54.027143
2021-08-19T12:43:19
2021-08-19T12:43:19
289,487,502
1
2
null
null
null
null
UTF-8
Python
false
false
908
py
# coding=utf-8 ''' 1.导入sqlite3模块 2.创建连接 sqlite3.connect() 3.创建游标对象 4.编写创建表的sql语句 5.执行sql 6.关闭连接 ''' import sqlite3 conn = None # 创建连接 try: conn = sqlite3.connect('e:/sqlite3Demo/demo.db') print('连接sqlite库成功') except Exception as e: print('连接sqlite库失败:', e) if conn is not None: # 创建游标对象 cur = conn...
[ "li.chun158@gmail.com" ]
li.chun158@gmail.com
4103d4cc9889ee55a23db3515cd70798133979fe
0bb46fdef9e2592c8ee1db2ff5557fb1e752ef51
/004-PySerial - MCU - Multi-Datareadings/001-Connection Manager Gui/Master.py
5a65b861c8d55f52598e39303686ea09ee10f592
[]
no_license
cemot/Python-projects
4e87a60e22b2a094ab26c7e6025a8c52ddde40db
70372e93eaa68cb864cb6df8f68a937183466be8
refs/heads/master
2023-09-03T21:58:48.639134
2021-10-30T08:47:05
2021-10-30T08:47:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
from GUI_Master import RootGUI, ComGui RootMaster = RootGUI() ComMaster = ComGui(RootMaster.root) RootMaster.root.mainloop()
[ "ahmed.b.yahia@gmail.com" ]
ahmed.b.yahia@gmail.com
4faff020878f3773727dcd93e8233c0c608bdc1f
c86276997c195babb6883a60fd65f61710f796f9
/sitemaps.py
cdfd281f26ef9bd4b9281d757cf5ac9ceac85f02
[ "MIT" ]
permissive
rajeev/lifeflow
c8e13e4daacb1d34eebabe79e6d48afe039a5c2c
b1de2a7b5b8a89042c1440b3e38092ef1241b9ca
refs/heads/master
2021-01-21T01:35:15.284384
2011-03-22T19:15:50
2011-03-22T19:15:50
31,348
2
0
null
null
null
null
UTF-8
Python
false
false
228
py
from django.contrib.sitemaps import Sitemap from lifeflow.models import Project, Entry class ProjectSitemap(Sitemap): changefreq = 'monthly' priority = 0.9 def items(self): return Project.objects.all()
[ "lethain@gmail.com" ]
lethain@gmail.com
af58c0947fd4a708d92040bc7e944baceb644ac2
fbf9852be0e3eea688968732d668e0d850273d7c
/movingsprite.py
849bc780b885efc4afebe795c73f00a535e8e3f2
[]
no_license
LindseyB/IronTrotter
d4f5a31a90254237ea78eb0938822a4e3a3f1b93
81dda46ef0bef6a2540389effe2373b6993de9a5
refs/heads/trunk
2021-07-09T22:58:36.100428
2011-11-06T22:11:21
2011-11-06T22:11:21
2,717,646
3
0
null
2021-04-29T19:17:32
2011-11-05T22:31:24
Python
UTF-8
Python
false
false
82
py
class MovingSprite(Sprite): def __init__(self): Sprite.__init__(self)
[ "joelthulhu@gmail.com" ]
joelthulhu@gmail.com
dc902273ae2933bb19c51768b3e241dc49f467a0
0b4d6a29667767531993a92d496faa6e203744d2
/test/lambda/test_closure.py
ca2f5557b0c5e96f6f5d51b29336b45dd95ccddb
[]
no_license
Qstar/PythonDemo
e2cc5bbd939980076d8fe70161f041081b58d9ed
531ee70a5c44c1b37c59606cfa26fb634fcb697a
refs/heads/master
2021-01-10T16:08:39.761110
2016-03-01T05:00:59
2016-03-01T05:00:59
49,189,376
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
def count(): fs = [] for i in range(1, 4): def f(i): return lambda: i * i fs.append(f(i)) return fs f1, f2, f3 = count() print f1(), f2(), f3()
[ "davesla2012@hotmail.com" ]
davesla2012@hotmail.com
06d91053430128ffbd2e417b7711666eb0bcf41a
5dd47abf7061201d9378e73e51f08fbb314ba2fd
/envdsys/envdaq/migrations_old/0008_auto_20190215_2305.py
aaa12d1357f80fc2772ac6d5b38aa0b5464dee40
[ "Unlicense" ]
permissive
NOAA-PMEL/envDataSystem
4d264ae5209015e4faee648f37608d68a4461d0a
4db4a3569d2329658799a3eef06ce36dd5c0597d
refs/heads/master
2023-02-23T22:33:14.334737
2021-07-22T01:09:16
2021-07-22T01:09:16
191,809,007
1
0
Unlicense
2023-02-08T00:45:54
2019-06-13T17:50:03
Python
UTF-8
Python
false
false
448
py
# Generated by Django 2.1.5 on 2019-02-15 23:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('envdaq', '0007_auto_20190215_2300'), ] operations = [ migrations.RemoveField( model_name='devicedef', name='contacts', ...
[ "derek.coffman@noaa.gov" ]
derek.coffman@noaa.gov
1eb5b10cb25082008a50ed8a90198526794f3f9b
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/containerinstance/azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_http_get_py3.py
d9ca73f638183794cf20b5a1d7c59793e37d8b7d
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
1,433
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
98d78a39c33827858b38f1f2f131f06f0d92cb4f
2869e231bfd772de7e47fa7d6001827d3689a956
/main.py
caee9a82f2590df8d6fea123cf278de4fc85f098
[]
no_license
maniha7/Tree-Growing-Algorithm
60f5885e65dc5d0bb9e1869b47fadf76c1805cc4
bf2cfff8a0b1a9eccfd415fe09b2e075eaa3f24f
refs/heads/main
2023-07-15T21:18:48.703988
2021-08-30T03:01:34
2021-08-30T03:01:34
401,198,175
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
import GUI import pygame import time window = GUI.window() running = True updateTime = .02 totalTime = 0 frames = 0 window.update(window) while running: for event in window.getEvent(): #Close button control if event.type == pygame.QUIT: running = False if ev...
[ "noreply@github.com" ]
maniha7.noreply@github.com
56cf8ff351ab1fd980ea23f382c4d20c3cb58b12
dcb69e7c8797452faccef3a7a734704a2f9003a1
/backendCode/checkServerSendEmail.py
3f289f362640fb2e886f66568f8672fddebef39a
[ "MIT" ]
permissive
VenuDhanekula/ServerMoniteringSendEmail_Python
e1ef29387c08494156f51c3801258db9257a5ac8
af513d344e557184d452187a1637574c46e42dd5
refs/heads/main
2023-06-24T07:09:13.385898
2021-07-20T05:07:18
2021-07-20T05:07:18
385,324,133
0
0
null
null
null
null
UTF-8
Python
false
false
6,068
py
import socket import ssl from datetime import datetime import pickle import subprocess import platform import time from cfonts import render, say import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart fromEmail = "" fromEmailPassword = "" toAddress = "" sendMsg = "" sen...
[ "noreply@github.com" ]
VenuDhanekula.noreply@github.com
457250d127baadba74520507947c42def886bb27
50720f40c10250d22c1f35bf8de70d2106b3bc23
/a.py
6b5b604caccbce77f155c88cb2840cb096bade3d
[]
no_license
prodduturisunilkumar/learngit
fa3d267e618a1bf08274d4ed4de5203382e64b43
0a2355ddb7f52231719c5faa2f5346376fb0a06e
refs/heads/master
2022-04-11T04:49:46.842775
2020-01-06T03:14:05
2020-01-06T03:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
print("new file added") print("Hellow india this is my new line of code") print ("This is third line of code")
[ "dharmendra.shahi@gmail.com" ]
dharmendra.shahi@gmail.com
8222a2b1b2d92963a0ecee0f6acd6262561963ae
78a236813008ef6d45a65c8ba434a244d8fae1ef
/simple_svm.py
c59a653ab792826cb5ac1a3c0fb83229ac2070d2
[]
no_license
fariagu/gFaceRec
39711cfc346ecdad4a74a090dcb0b8dcd41609d2
4319b007e45c133be7d7d96ddf26a86312cff438
refs/heads/master
2022-01-08T14:15:09.183756
2019-06-24T14:03:39
2019-06-24T14:03:39
175,869,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
from __future__ import absolute_import, division, print_function import keras # import numpy as np from load_celeba import load_vectors from model import vgg_svm, facenet_svm from euclidean_db import TRAIN, VAL from vector_generator import VectorGenerator import utils def svm(): print("#########################...
[ "gustavoduartefaria@gmail.com" ]
gustavoduartefaria@gmail.com
eee09dab526ded1662ea8f92a60561895c5df59d
a49731805f9b30a1294d67fc078b780fd2f2a91d
/fitmodel/ExtractDandekarData/mouse_tracker_user32dll.py
1b559859b5ee6c665e7b7cfaf79403165d72c0b0
[]
no_license
yw5aj/HS2014
cf74dd18d5902799da1aacf6f8c875afd98a84f9
9901aa37e3801f7654489100e2fc3cbf63b9ccaa
refs/heads/master
2021-06-06T08:56:26.294778
2015-09-29T15:17:49
2015-09-29T15:17:49
25,499,189
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# -*- coding: utf-8 -*- """ Created on Tue Sep 3 20:55:22 2013 @author: Yuxiang Wang """ import ctypes import time User32dll = ctypes.windll.User32 def main(): pass class POINT(ctypes.Structure): _fields_ = [ ('x', ctypes.c_ulong), ('y', ctypes.c_ulong), ] def timer_tick(): ...
[ "yw5aj@virginia.edu" ]
yw5aj@virginia.edu
7e94fa976fa69e30a6a8fecb112d0151ab64e36a
14d66cef63d9e540f4a7dd76e8810b7f39c9e536
/viewer.py
81b3111c4649653ed33f54c8cbfa293e9a3acd44
[ "MIT" ]
permissive
YarinAVI/GraphLayout
5327daebdb45f8273cf75c53341bc02f42d293c7
187ea93b06730186ec25dd71a28dd2ccdfaa4a7c
refs/heads/master
2021-06-17T04:21:02.746604
2017-05-31T16:23:20
2017-05-31T16:23:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,692
py
import layout import render import wx TESTS = [ [('t', 'te'), ('t', 'ti'), ('t', 'to'), ('te', 'tea'), ('te', 'ten'), ('tea', 'team'), ('ti', 'tin'), ('tin', 'tine'), ('to', 'ton'), ('ton', 'tone')], [(5, 11), (11, 10), (11, 2), (3, 10), (3, 8), (8, 9), (11, 9), (7, 8), (7, 11)], [(1, 2), (1, 5), (2, 5), (...
[ "fogleman@gmail.com" ]
fogleman@gmail.com
22517e0b31686d302d52dab1d9967ded3e843d4d
33f802221bbfc18cf464605eb1577a5975fad532
/Convolution.py
06c02ffdeb0add65b527fe820b54c09917bb9116
[]
no_license
GeorgeKAHChen/ImageProcessing_basic
d078a1c0859184ee1a6f1863b4087bd843ab2aaf
fa50e074541a17c6ab6c8f57ff5d1573d8330b0c
refs/heads/master
2023-01-29T23:21:44.701408
2020-12-14T19:26:18
2020-12-14T19:26:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,569
py
#================================================================= # # Image Processing - Convolution # Copyright(c) KazukiAmakawa, all right reserved. # #================================================================= #Just For Convolution #import head #import files from PIL import Image import numpy as np impo...
[ "KazukiAmakawa@gmail.com" ]
KazukiAmakawa@gmail.com
ef5b018a2b5ea2a4f02c3054530d9c410298db2c
bc5d0c3e950ebd9a7fbd33fbbcad94979cbe344f
/src/scratch.py
1e0bc9d7ea1f286057ac7e65ffcc5322727de2fe
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
bgshin/bert
44e7b23016087e7fda6396bd4432188918d2af28
5d13d62909f120ec097c606a0366b49887ea1baf
refs/heads/master
2020-04-06T11:41:44.788854
2018-12-03T04:48:56
2018-12-03T04:48:56
157,426,269
0
0
null
null
null
null
UTF-8
Python
false
false
4,344
py
import os import numpy as np import tensorflow as tf import collections import tokenization from run_classifier import SstProcessor, file_based_input_fn_builder, model_fn_builder, file_based_convert_examples_to_features import modeling import cPickle def get_model_size(ckpt_fpath): # Open TensorFlow ckpt read...
[ "nomolos79@gmail.com" ]
nomolos79@gmail.com
4b3d6091baf81a56f00a99b113e94d36fc4d0a98
2f03a01a2ee2e1a0ad5abc3bda1e2643d5adeb3f
/day48/day48/代码/upload_demo/upload_demo/wsgi.py
f7ef4edc376a937b01964f022143d190766094fb
[]
no_license
yanglichuan/python2020
f410b46dda2d2ef9b057538f64579f41307cbc37
4a92f474d7f4cc33550a28027dab880d28ab01b6
refs/heads/master
2022-11-07T08:19:52.987135
2020-06-20T10:33:57
2020-06-20T10:33:57
273,687,134
0
1
null
null
null
null
UTF-8
Python
false
false
400
py
""" WSGI config for upload_demo 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[ "yanglichuancom@163.com" ]
yanglichuancom@163.com
85e6cb4cc8dae6e639a5c3750df35f75e082c348
1f513c3a2a7b5402e516349305444e7c42a1a082
/src/khetha/templatetags/khetha_tags.py
19fdd374e7bc27f2858b601c6e3b45826473b53c
[]
no_license
kurhula/khetha-django
2232428559e4da96d19a0804410538d0b42b85c1
78140e57ddf25235f2524fbcdf387791621408c8
refs/heads/master
2022-09-18T18:03:30.517501
2019-06-10T10:44:39
2019-06-10T10:44:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
from typing import Optional from django import template from django.conf import settings from django.core.exceptions import ImproperlyConfigured from khetha import models register = template.Library() @register.filter_function def get_submission(task: models.Task, user_key: str) -> models.TaskSubmission: """ ...
[ "pjdelport@gmail.com" ]
pjdelport@gmail.com
f12f76d49dc837c768feabfd67bec5794c2dac39
d8d158c5f480597c61bd3de49a851a57d1505803
/src/appflame.py
dfdc7692fee19778c156b0ea397975b384fa4b4d
[ "MIT" ]
permissive
danilpolkov/appflame
176530159a868205702b9d0eeb57da85eb79add4
63c2de8d8370e99cf6109407577a1317e8fed807
refs/heads/master
2022-04-18T06:01:33.500034
2020-03-30T15:51:40
2020-03-30T15:51:40
250,564,729
0
0
null
null
null
null
UTF-8
Python
false
false
4,794
py
import pandas as pd import numpy as np from sklearn.model_selection import cross_validate, KFold import tensorflow as tf import datetime from sklearn.metrics import roc_auc_score, classification_report, confusion_matrix import matplotlib.pyplot as plt import seaborn as sns def score_models(models, X_...
[ "danilpolkov14@rambler.ru" ]
danilpolkov14@rambler.ru
d8076a8e859df2ada5418bebf40ccae6440c1011
6ebe3da55a6968fb1fe4a4bbc0e191c1238f4df2
/process_demo_2.py
4c15e699e5f977276bb0986eee0391ebf1a29dce
[]
no_license
phuoctan4141/object_detection_multiprocessing
6dcedd00060fda7acf8e88844955f672c7c698a9
c8160244483e94eb32da2ea26332bd8b479fd1cc
refs/heads/main
2023-08-30T22:00:52.849123
2021-10-29T08:13:53
2021-10-29T08:13:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,979
py
#=================================================# # Welcome to the object detection multiprocessing # # Author: phuoctan4141 # # Date: 28/10/2021 # # Version: 0.2.0 # #=================================================# # # Imp...
[ "noreply@github.com" ]
phuoctan4141.noreply@github.com
6a7c973e23617cebf19961a67061736ba73b34f2
93c07eaf88192ab25c51ee3a7b0b093a6819aec8
/playsound.py
e4c5820e4c8e5558c8370f0b403778b9e2dbcc4e
[ "MIT" ]
permissive
raymondchiang/Maze
5412423d3d57113c88149c25d994032d8e223077
880305f85af8e3d796b96fa4027d3370797c902d
refs/heads/master
2021-01-15T15:53:35.674394
2016-09-26T15:51:53
2016-09-26T15:51:53
68,802,086
1
0
null
null
null
null
UTF-8
Python
false
false
4,222
py
class PlaysoundException(Exception): pass def _playsoundWin(sound, block = True): ''' Utilizes windll.winmm. Tested and known to work with MP3 and WAVE on Windows 7 with Python 2.7. Probably works with more file formats. Probably works on Windows XP thru Windows 10. Probably works with all vers...
[ "anthonyfu117@hotmail.com" ]
anthonyfu117@hotmail.com
13f3141de310f21595adf3f9b08de27b6a9f98f6
d18690631d2cddd4eb4ad492f00842401b39982a
/nn-models/gaussian_model.py
f85d333de0c56b87bd0bbaabef105e53adf869c0
[]
no_license
qocml/gaussian-models
4c14248863554a193ed593b789843e155171ba2a
deb598eed81b806164e80f284bc5fa324ca56a33
refs/heads/main
2023-02-17T17:44:33.164400
2021-01-17T22:35:32
2021-01-17T22:35:32
330,497,674
0
0
null
null
null
null
UTF-8
Python
false
false
6,173
py
import os import sys import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import tensorflow as tf import tensorflow.keras.backend as K sys.path.append('../') import library from contextlib import redirect_stdout # log errors to a .txt file library.error...
[ "charles.kerwin17@imperial.ac.uk" ]
charles.kerwin17@imperial.ac.uk
fcde56f5caa9fafff9fc91efed3e8af4a7d75bd0
8bda61018d192c81293c6a1aaf7fd698b80da6af
/CBVTest/CBV.py
f8ee34df33db2d651ec39d94c9cb3f87c3b971f1
[]
no_license
linhong1999/DRF
7b4c531ea8a28b1ddf98a0ecefc62822f0bb981d
11dbe48d5fc92545e7937f6ed6321cd63c566321
refs/heads/master
2022-11-08T09:06:06.530700
2020-06-20T12:31:55
2020-06-20T12:31:55
273,216,484
1
0
null
null
null
null
UTF-8
Python
false
false
3,404
py
# from django.views import View # # class Tester(View): # def get(self,req): # print('----get----',req.GET) # return HttpResponse('i am get') # # def post(self,req): # print('----post----',req.POST) # return HttpResponse('i am post') from . import models from .serializers impor...
[ "1219772706@qq.com" ]
1219772706@qq.com
8ec1b7d0710dbf9034914a5774a2e88cd5f9ed1c
a768f03d8e2dc5c370e89e17f06e63caa637a07b
/test/test_publish.py
fde9ff8daade4408033a54260a28a1e2743a99da
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
alexsoble/federalist-garden-build
c73fcc64476decb6d87d2de262047c4bb7537045
a8173ee62f2666e842327633c8b18a6e9304589d
refs/heads/master
2020-04-19T12:17:22.617529
2019-01-03T21:11:51
2019-01-03T21:11:51
168,188,225
0
0
null
2019-01-29T16:31:55
2019-01-29T16:31:55
null
UTF-8
Python
false
false
1,656
py
import boto3 import pytest from unittest.mock import Mock from moto import mock_s3 from invoke import MockContext from tasks import publish from tasks.common import SITE_BUILD_DIR_PATH TEST_BUCKET = 'test-bucket' TEST_REGION = 'test-region' @pytest.fixture def s3_conn(monkeypatch): with mock_s3(): mon...
[ "james.seppi@gsa.gov" ]
james.seppi@gsa.gov
32653ad830feb7203f7ef056ce7eb76d916231b8
6928030da6bd3c7fe49f43f46f3e511e0a8c3e03
/syed_praw2.py
3ec9fa9d7e735b71932ec3f8f6367132ad16b63d
[]
no_license
moin2672/PRAW
09df47cac239d02b76c06ef0d26f6d487b7c1e21
19e1b44192dd7d7d566243f2c406559f1e8f1659
refs/heads/master
2020-03-14T22:15:10.591698
2018-05-05T02:34:59
2018-05-05T02:34:59
131,816,810
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
import praw reddit = praw.Reddit(client_id='jgF2ebrSIHroxw', client_secret='y-oWddqWsBEWz_GO9kzd4EUBaEc', password='Mar@1234', user_agent='syedPraw', username='syed2672') subreddit = reddit.subreddit('news') # for comment in subreddit.stream.comments(): # to get stream of...
[ "moin2672@gmail.com" ]
moin2672@gmail.com
b527542494737973e32c6f0171b08ec37f1044be
197bb3c8e9dea5f45639e0b29fd695667349fd43
/OpenCV/Face_recog_haarcascades.py
c43074af6616f985ac1a2d6f69fa8c16f227513c
[]
no_license
Frankenstien-hack/Machine_Learning
63fcc4587f6f95549dccc631b35a2524abffc15d
c2c2c142566e4967dbbb8a9f2faeaff18cbaa164
refs/heads/master
2020-05-31T02:03:53.298152
2019-09-30T10:18:25
2019-09-30T10:18:25
190,058,485
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
import cv2 cap = cv2.VideoCapture(0) face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml") while True: ret,frame = cap.read() grayframe = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) if ret == False: continue faces = face_cascade.detectMultiScale(grayframe, 1.3, 5) for...
[ "“sid15798@gmail.com”" ]
“sid15798@gmail.com”
d16be220437b74d2c1351c55bb1865a3ab96a1d1
be33e33b6cd913efb3f46405035267cd8bec47cd
/openhgnn/trainerflow/semi_node_classification.py
c5ac2e475e2c97d9f305f7d8902aded58d1febdc
[]
no_license
Theheavens/OpenHGNN-DGL
83498c5afd643b53684d0a318970aa4cd4bab546
71e80b91858968361f0d5d31b114df681d85a218
refs/heads/master
2023-04-13T14:53:12.048854
2021-04-27T13:30:29
2021-04-28T04:03:20
333,628,955
1
1
null
null
null
null
UTF-8
Python
false
false
5,697
py
import argparse import copy import dgl import numpy as np import torch from tqdm import tqdm import torch.nn.functional as F from openhgnn.models import build_model, MLP_follow_model from . import BaseFlow, register_flow from ..tasks import build_task from ..utils import extract_embed @register_flow("semi_supervise...
[ "theheavenszhao@outlook.com" ]
theheavenszhao@outlook.com
2d619ecda01e753381fa8fcd3dee22459f4c67f0
9c31671ad64b43e05b14a32d36fa2fc92f791ba4
/test_src/twist_msg_code_from_aristobot.py
ddd773b07c55732dde15567372db37b6bcda9b1b
[]
no_license
aanickelson/osu_semantic_mapping
cc9710a07c14cc3d3a0f28d29855b4b9baf3b187
44e2522db6ee8500a40de836199a3d9e6e6c463e
refs/heads/master
2021-08-10T04:02:49.090064
2020-10-04T22:25:59
2020-10-04T22:25:59
225,964,084
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
#!/usr/bin/env python import rospy # The velocity command message from geometry_msgs.msg import Twist # The laser scan message from sensor_msgs.msg import LaserScan import neural_network as neu_net from parameters import Parameters as p import numpy as np class SendGoal(): def __init__(self): # initili...
[ "aanickelson@gmail.com" ]
aanickelson@gmail.com
93edbd54c29bdfaccf1081f515c11bf183587402
a651b356c2be9b360f2e7e307d151309b1f6dfc9
/Basic/evenorodd.py
33cba859e257b2c8d1070b5ee13aca41fcf3237a
[]
no_license
GuduruDhanush/Python
35ea459a8470b7be5cde4890b946d17b89ac42a8
a79b02f7f94c85af238eaa4ee5f8164baa456d51
refs/heads/main
2023-05-31T09:54:54.564669
2021-06-09T16:46:09
2021-06-09T16:46:09
367,579,499
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
num = int(input('Enter a number: ')) if num % 2 == 0: print('Entered number is a EVEN number') else: print('Its a ODD number')
[ "noreply@github.com" ]
GuduruDhanush.noreply@github.com
22fda3589f0f16889117c8856f6252efba58ec44
a779e49f44a81821af7464f32c11790f415b9b27
/database/temp.py
4b0204fa3d159071b9d0a4dbd63581eab640ad77
[]
no_license
psp2108/LOC_16032019
5c3b57b5c71dc446d5585dde99ff2ff7e0d9448b
1ad8193f4f999ce0eab81335ffb7990548db6e58
refs/heads/master
2020-04-29T02:29:23.686581
2019-04-15T19:11:46
2019-04-15T19:11:46
175,769,745
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
# import random as r # l = [] # for i in range(10): # z = r.randint(0,10) # while z in l: # z = r.randint(0,10) # print("**") # l.append(z) # print(z, l) a = "SDFsdf sdfsee eSEf sdSDFe EFfs'a" b = a.lower() b = b.replace(" ", "") b = b.replace("'", "") print(b)
[ "pratik.sp.1112@gmail.com" ]
pratik.sp.1112@gmail.com
72093db05ef36ba4b5961bef354dc7a48dcaaeed
9e14eb2b71c68dab88ed259cd5e3bafd5dc63742
/Server Side Data Retreval/GoDaddy Writer/sensor simulator.py
d98751a331189116ebd270162da3f6d63bece4cf
[]
no_license
djentleman/Data_Retreval_Project
eff781591c5ed93a7508c69f9f32e7772ecac05c
d926a6c018f2ef9499dbb0650b2cb14dd7af9775
refs/heads/master
2021-01-23T13:57:13.697636
2013-06-02T01:03:25
2013-06-02T01:03:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
## Car Data Retreval Project ## Author: Todd Perry ## Simulation Of Sensors import random import time def getStringToWrite(): # init random number generator toWrite = "" for i in range(20): rand = random.randint(1, 100) toWrite = toWrite + str(rand) + ", " print(toWrite) return to...
[ "up612136@myport.ac.uk" ]
up612136@myport.ac.uk
bb6082d298738c05df9d0bc8277b953b554034c4
0297ccf09950fd5eeea9b57d727cec2d59e741c6
/Part2/LinearDiscriminantAnalysis_LDA.py
ad7b6d5aa9254e62d27cf2ce6383f2824f980e03
[]
no_license
nanshiqiu233/ML-Python-
4d576457beec755ae10bcadd1d845e78ec456b12
37beae3d5168219d47d216dab4cc61a5dbe70a99
refs/heads/master
2020-12-13T17:46:59.022554
2019-10-29T09:03:12
2019-10-29T09:03:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
#!/usr/bin/env python # coding: utf-8 # 将样例投影到一条直线上,使得同类的样例投影点尽可能小,不同类投影点尽可能远离 # In[1]: import os import sys import numpy as np import operator import matplotlib.pyplot as plt get_ipython().run_line_magic('matplotlib', 'inline') # In[3]: group1 = np.random.random((8,2))*5+20 group2 = np.random.random((8,2))*5+...
[ "44227778+wenhan123@users.noreply.github.com" ]
44227778+wenhan123@users.noreply.github.com
3a9cb5d26818969cfb8af7ed4edd0f0d30c3c771
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Python/Core/Lib/encodings/utf_32_be.py
f84e9045e1470bfbee6b819f251ac345d9b60040
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
1,048
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: utf_32_be.py """ Python 'utf-32-be' Codec """ import codecs encode = codecs.utf_32_be_encode def decode(input, er...
[ "francisck@protonmail.ch" ]
francisck@protonmail.ch
0e3e32f77124f0e14236d74d16a1a23002091b70
ae10b60cb92a69146bfb05ef5dde735a0aa45d4b
/examples/Extended Application/matplotlib/examples/userdemo/annotate_simple_coord02.py
c8424d6389371288876249d81040115991437882
[ "MIT" ]
permissive
kantel/nodebox-pyobjc
471cea4c5d7f1c239c490323186458a74edcc214
068ba64c87d607522a240ab60c3ba14f869f6222
refs/heads/master
2021-08-14T18:32:57.995445
2017-11-16T13:42:23
2017-11-16T13:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
""" ======================= Annotate Simple Coord02 ======================= """ import matplotlib.pyplot as plt # nodebox section if __name__ == '__builtin__': # were in nodebox import os import tempfile W = 800 inset = 20 size(W, 600) plt.cla() plt.clf() plt.close('all') def ...
[ "karstenwo@web.de" ]
karstenwo@web.de
ffabd2487c7b9698475b0ebf663f97afebe11c6a
0f7666900a3d203481b1009fe3d9dd2186938c30
/gpu-example.py
e89103c48573461470473750392cc1d8d4e2ed0b
[]
no_license
MZ195/Cupy-GPU-Example
4a7d99c25e9d26213c3f27b6618b6f8c8cbc4393
108b920848e60b3e2706749ca97404572433e130
refs/heads/master
2022-10-29T23:45:48.093569
2020-06-13T21:09:04
2020-06-13T21:09:04
272,086,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
import numpy as np from timeit import default_timer as timer from numba import vectorize NUM_ELEMENTS = 100000000 # This is the CPU version. def vector_add_cpu(a, b): c = np.zeros(NUM_ELEMENTS, dtype=np.float32) for i in range(NUM_ELEMENTS): c[i] = a[i] + b[i] return c # This is the GPU version. Note th...
[ "40984264+MZ195@users.noreply.github.com" ]
40984264+MZ195@users.noreply.github.com
5f7b5d879661da4d33ed30eb21d0d69aa00bb33a
4241be91e6e583db9b07141c7a6cd1c6e469d08b
/flask_app.py
7f1b3d550457228cfb5d4d3c54a6ec3f648975ce
[]
no_license
DanialK/performant-python-services
ed58a6a9c4423f72d6049cf2526c374c4e1a0650
11d6c6e4985193d0752299b6a4f7c15e727ccaff
refs/heads/master
2020-07-30T04:13:27.420186
2019-10-28T23:26:26
2019-10-28T23:26:26
210,082,298
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
from flask import Flask, jsonify, request from models.resnet import load_model, score_model model = load_model() app = Flask(__name__) @app.route('/score', methods = ['POST']) def test(): try: json = request.get_json(force=True) x = json["data"] result = score_model(model, x) resp = jsonify(result)...
[ "dani_khosravi@yahoo.com" ]
dani_khosravi@yahoo.com
f9af22c774b099ca496233053fcc8f7aed9459e7
16cba95a472b259539d20b2c759e074c58edde7b
/FractalLand.py
2e3a0cf5531f7294bcbaa0b322ae61f71ec8a9de
[]
no_license
Revakk/Fractal_land
850be1b483bb568f47ddc343581f589fec728c36
eb695eb73521bdf42be3ea43db9fb9c81cdbf22e
refs/heads/main
2023-03-16T18:48:49.732643
2021-03-10T10:30:36
2021-03-10T10:30:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,027
py
#import pozadovanych knihoven import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from numpy.random import uniform import queue as q import random iters = 6 #pocet iteraci n = (2 **iters)+1 # velikost zakladni plochy def getMiddlePoint(grid, a): # pro kazdy stredo...
[ "noreply@github.com" ]
Revakk.noreply@github.com
96dd863b8031c6a496b392628fe578ea29d4305a
7781f8d0dbcfbffa25d7fe0d6eb4087895d9e8c0
/merge_sort_raw.py
6183c569abe90f7e1aaece3e8d74bd17090827e8
[]
no_license
xybu/algorithms
4a932de0b2bab0a2a49fc3bf996827e96f77fac5
c3c248a4d57745260a33b77c4726120acecb5c08
refs/heads/master
2021-01-01T15:44:09.916338
2014-09-26T14:08:43
2014-09-26T14:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
#!/usr/bin/python def merge(A, start, mid, end): # print 'merge({0}, {1}, {2}, {3})'.format(A, start, mid, end) left = A[start:mid + 1] right = A[mid + 1: end + 1] i = 0 j = 0 k = start # print 'left: {0}\nright: {1}\n'.format(left, right) while i < mid - start + 1 and j < end - mid: # print i, j if left[i...
[ "xybu92@live.com" ]
xybu92@live.com
31e36abf085c1f9a230b668343ec294935b1c1da
91fe8f479fa921fa84111d19222a5c6aa6eff030
/apps/django-web/learning_log/ll_env/Scripts/django-admin.py
8785f03fb524b48fbb8c6393ffc1f4c9ea3ed203
[]
no_license
romanticair/python
2055c9cdaa46894c9788d5797643283786ed46dd
6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141
refs/heads/master
2022-11-03T17:17:17.608786
2019-07-05T07:07:29
2019-07-05T07:07:29
195,356,190
0
1
null
2022-10-14T20:51:14
2019-07-05T07:00:33
Python
UTF-8
Python
false
false
183
py
#!l:\mypythonprogr\somepythonprojects\learning_log\ll_env\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "1024519570@qq.com" ]
1024519570@qq.com
4afd131ba1b29911502faa5905ca336fef0ef91c
f333d4c3fb0ef1b2a01e990669cb5484d14ee31a
/bookmarks/settings.py
615f8fe75224b9c035b5cd2f9cfa98ce07b973aa
[]
no_license
regia/bookmarks
6e1c2d9049c7f81b6ce9d4c1490444d8c3fdcb32
51cb3a6241cc073c20df6a5dc03b7bb5604d0a20
refs/heads/master
2016-09-10T20:26:25.381759
2014-11-25T17:13:28
2014-11-25T17:13:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,132
py
""" Django settings for bookmarks project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) ...
[ "regedi@gmail.com" ]
regedi@gmail.com
2774ebc8bdb0a6e731802f0ae87f3e68d4f19438
ba582b224547b3fb88edb3c6aa541d9fb881b41a
/apps/residencias/forms.py
c026082864b02f7c3de9c6d7dd8c62410675f2f2
[]
no_license
Pastorsin/home-switch-home
b2f246909a1a5f9bb53e6258a36dc4147452ffc6
2731a11b48976681c45e5e68bbcb1f914e9611e4
refs/heads/master
2023-05-31T05:40:09.876205
2021-06-16T14:31:35
2021-06-16T14:31:35
175,094,209
0
0
null
null
null
null
UTF-8
Python
false
false
3,272
py
import calendar from django import forms from datetime import timedelta, datetime, date from django.core.exceptions import ValidationError from .models import Residencia, Ubicacion class UbicacionForm(forms.ModelForm): class Meta: model = Ubicacion fields = ('pais', 'provincia', 'ciudad', 'calle'...
[ "andressmilla@gmail.com" ]
andressmilla@gmail.com
7a8be118af3bc78c1d1889f331910c9f24a76deb
14b0b90f825a2edeca77d53a848eff222116ba1c
/blogs/urls.py
149c6444bcb3356518a83dc677c8bacd9861757c
[]
no_license
Suphacha2563/Project
2f2d191f143d604696a9c75bfe44cd2c7d6be1cb
bfa92ddc20cc2d270811def3b38f2a3c408af334
refs/heads/main
2023-08-28T17:22:24.919695
2021-10-27T17:35:12
2021-10-27T17:35:12
407,267,251
1
0
null
null
null
null
UTF-8
Python
false
false
335
py
from django.conf.urls import url from blogs import views urlpatterns = [ url(r'^api/bus$', views.dataBus), url(r'^api/busStop$', views.dataBusStop), url(r'^api/dataGraphBusstop$', views.dataGraphBusstop), url(r'^api/rout$', views.dataRout), url(r'^api/dataCarFindMylocal$', views.dataCarFindMylocal,...
[ "75459344+Suphacha2563@users.noreply.github.com" ]
75459344+Suphacha2563@users.noreply.github.com
0a8bd7608db9b29c07d9adbc6e136ba7c4662200
35e28d7705773eed54345af4440700522c9d1863
/deps/libgdal/gyp-formats/tsx.gyp
b8f05037aec95a26a96a811114431a86f6467c1c
[ "Apache-2.0" ]
permissive
naturalatlas/node-gdal
0ee3447861bf2d1abc48d4fbdbcf15aba5473a27
c83e7858a9ec566cc91d65db74fd07b99789c0f0
refs/heads/master
2023-09-03T00:11:41.576937
2022-03-12T20:41:59
2022-03-12T20:41:59
19,504,824
522
122
Apache-2.0
2022-06-04T20:03:43
2014-05-06T18:02:34
C++
UTF-8
Python
false
false
245
gyp
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_tsx_frmt", "type": "static_library", "sources": [ "../gdal/frmts/tsx/tsxdataset.cpp" ], "include_dirs": [ "../gdal/frmts/tsx" ] } ] }
[ "brian@thirdroute.com" ]
brian@thirdroute.com
5fdd3da197b5e63c8464b26248a21637cc070214
9dd45a0f91afc5c276fac35a28c9c19f20adb426
/Week4/Electrostatics.py
a1a794d26410bc61338f265981a9ad1a202eae4d
[]
no_license
rcantwel/PHYS202-S13
294cc9f9f8d10e70e25353a101b9b982e6a0bfd8
423c4503432073ebdbe589942e94eb2b5c628a17
refs/heads/master
2016-08-03T13:53:20.181925
2013-06-15T03:42:51
2013-06-15T03:42:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
import numpy as np k= 8.99*10**9 """This function will tell you the voltage based upon the location of the charges""" def pointPotential(x,y,q, posx, posy): Vxy = (k*q/((x-posx)**2+(y-posy)**2)**(1/2.)) return Vxy def dipolePotential(x,y,q,d): V1 = pointPotential(x,y,q,-d/2,0) V2 = pointPotential(x,y...
[ "rcantwel@calpoly.edu" ]
rcantwel@calpoly.edu
8fb5822fa3aab09eceb845da372e5086be020332
220991f935dd7ff0972913da1e60e3d529d4a99c
/lectures/L13/setup.py
34e5f0cd6671f33669bbacb9d5aaf4a67b9f3f70
[ "MIT" ]
permissive
hvongsachang/cs207_hurlink_vongsachang
93558d0357df86acfadcb7ff9843cc8f3cdd2a85
ffaa80ac5fdc0bdb1eaf31bd39d76f7533aa7101
refs/heads/master
2020-03-28T04:11:36.218990
2018-11-25T09:12:08
2018-11-25T09:12:08
147,699,584
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="complexproj_hvongsachang", version="0.0.1", author="Hurlink Vongsachang", author_email="hvongsachang@college.harvard.edu", description="A small example package for complex numbers", lo...
[ "hvongsachang@college.harvard.edu" ]
hvongsachang@college.harvard.edu
4bf586e3a00c46ee55de742f390939aaa6f5c0cd
0c90738d49e6a38ac7d90ea5e44e838a14ded8f5
/Biblioteca.py/Biblioteca.py
46ed48d97fe147aab24b992c548cad89e8604466
[]
no_license
matias1543/Biblioteca-en-C-y-Python.
3bcd0abbab6d8aa647b9185a1ac423d38bd942c3
b246b7dbe372b503914f85e3758ff6976a0556d3
refs/heads/master
2021-07-21T08:14:17.403732
2017-10-24T13:39:05
2017-10-24T13:39:05
108,004,449
0
0
null
null
null
null
UTF-8
Python
false
false
5,562
py
#BIBLIOTECA libros = { "Principito" : ["Titulo: Principito","Genero: Fantasia", "paginas: 20", "Autor: Raul", "Numero ISBN: 12312123", "Año de edicion: 1994", "Editorial: IZI"], "El padrino" : ["Titulo: El padrino","Genero:Ficcion", "paginas: 30", "Autor: Lopez", "Numero ISBN: 22312312", "Año de edicion: 1...
[ "noreply@github.com" ]
matias1543.noreply@github.com
4a6b5e2621decce6eb1754198c1bd419fc647aa0
097b73d12f2c7de6f1293ee4149865061600b838
/app.py
f3308f8df0044818ecd72eeda05a9129cd9764c4
[]
no_license
mario-j/flask-todo
6d83d10d53003addd6a5c5c7499380b0b2fd22f2
111f75d292209f963c1334086884e2fb66c83907
refs/heads/master
2022-11-12T14:01:31.846521
2020-07-11T19:54:34
2020-07-11T19:54:34
275,969,931
0
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
from flask import Flask, render_template, request, redirect, url_for from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db/todo.db' db = SQLAlchemy(app) class Todo(db.Model): id = db.Column(db.Integer, primary_key=True) text = db.Column(db.St...
[ "mjordanbartolo@gmail.com" ]
mjordanbartolo@gmail.com
f32ae2236fb684777b438596d850abf6885dc83b
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/qLMZ2hEvrhRSSSnQw_20.py
dba82c5c1e6082f3f6e2d972820ab53ab7f449e3
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
""" Graded lexicographic order (grlex order for short) is a way of ordering words that: 1. First orders words by length. 2. Then orders words of the same size by their dictionary order. For example, in grlex order: * "tray" < "trapped" since "tray" has length 4 while "trapped" has length 7. * "trap" < "tr...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e93e2df1e7fd97450190821c9e7a5164ba062f1b
d0b1bfdbac01c6d7862401fb498cc1ef1e1174c5
/ClassWeights_bin.py
da316352a0fe438d7b682735ae61459257e5742a
[]
no_license
DSmith537/Brain_Tumour_Segmentation_UNet_Indi
c4f343e530c4ecefe356f4ea23e82e56a54b2a81
5b89706ea7962287be20e35b22e4b20728fa7232
refs/heads/main
2023-08-19T08:00:52.804660
2021-10-06T09:01:03
2021-10-06T09:01:03
393,923,324
1
0
null
null
null
null
UTF-8
Python
false
false
2,738
py
#Authors: DS291 # The functions below read in the dataset's gound truths then count the occurances of each target class. import numpy as np import SimpleITK as sitk from tqdm import tqdm import nibabel as nib import os from tensorflow.keras import backend as K import pickle # File path: #path = "/home/ds291/Brain_T...
[ "noreply@github.com" ]
DSmith537.noreply@github.com
bb86167a69aa2bfadf4f9ad038d871b5071616ec
5f5369cb8a5591d6a75f4f2c5b8e84e384f62e3d
/example/baidu2Spider.py
d7f0979f9939f2e4f73b2b3920fa1acd24562d9c
[]
no_license
zuoxiatian/aioscrapy
a52c0aaa2272bf15d6240d22413d4dc9dc136794
869590da5435bf19ff4bed7b0af8a6a39bf8d8ef
refs/heads/master
2023-06-21T00:38:38.035574
2021-07-20T06:23:36
2021-07-20T06:23:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
import re from urllib.parse import unquote import logging from scrapy import Request from aioscrapy.spiders import AioSpider logger = logging.getLogger(__name__) class Baidu2Spider(AioSpider): name = 'baidu2' custom_settings = { "USER_AGENT": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/53...
[ "conlin_huang@patazon.net" ]
conlin_huang@patazon.net
fa9ad3107621143b1312fd0da7d6d95c4a59f492
d4b0043cb6453c6064fb1e1b58722f540fee3fcb
/thread_example.py
dda974c47b33124e1542bf315e884202c535525d
[]
no_license
SmallConcern/my_hue
0e2e35aee6e60d141f55d82e4e4426cce846ccd2
574cc6861374e90efbae8035b2fa6e0b3a4f4f3f
refs/heads/master
2021-01-11T15:11:45.707353
2017-01-28T22:02:38
2017-01-28T22:02:38
80,313,782
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
import time import threading import datetime as DT import logging logger = logging.getLogger(__name__) def worker(cond): i = 0 while True: with cond: cond.wait() logger.info(i) time.sleep(0.01) i += 1 logging.basicConfig(level=logging.DEBUG, ...
[ "casey small" ]
casey small
1c54e78c3a9fa11c3884d713d206b69fd669a135
a08d885cb9150d7e84f5ffbf0c9734893105a898
/2021/Day 04/giant_squid.py
113e0335b32c0ec58d8789010615a252f8d92b66
[]
no_license
vhsw/Advent-of-Code
ab422c389340a1caf2ec17c5db4981add6433fbe
3c1dac27667472202ab15098c48efaac19348edf
refs/heads/master
2022-12-29T03:56:59.648395
2022-12-26T11:01:45
2022-12-26T11:01:45
162,491,163
0
0
null
2022-05-10T08:43:32
2018-12-19T21:10:26
Python
UTF-8
Python
false
false
1,821
py
"""Day 4: Giant Squid""" from typing import Iterable with open("2021/Day 04/input.txt", encoding="utf-8") as fp: DATA = fp.read().strip() def part1(data: str): """Part 1 solution""" nums, boards = parse(data) for num in nums: for board in boards: for line in board: ...
[ "nevermind1025@gmail.com" ]
nevermind1025@gmail.com
1d672fdd90d9308bd9b38d0a377baf32c7a7c700
2c897955274882b177dccd92de69a84dd3b307dc
/main.py
9e29c77b6f50f66e0b6ae5dfc62ef60852a54024
[]
no_license
JhinDanzo/calculator
2a35626d1d70b1e6c194ae092563ffa316e08e14
a3378ae60bc0f6513e5e0313e5ae9d52f67b2d2f
refs/heads/master
2020-11-24T23:14:10.153084
2019-12-16T12:21:04
2019-12-16T12:21:04
228,381,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,033
py
def calc(*args, **kwargs): num = float(input('Enter number of elements: ')) e = 0 a = float(input('Enter element: ')) op = input('Enter operation: ') b = float(input('Enter element: ')) result = 0 if op == "+": result = a + b elif op == '-': result = a - b elif op ==...
[ "gentj03@icloud.com" ]
gentj03@icloud.com
d2c0dddcd4b0019ae675cd294c95019ad23d05c9
acf302747b63c77a8669c951b712f7b11add35d8
/iot/urls.py
089118dff075e47c96c1cf1a2cf311ce33d1a413
[]
no_license
thatswhatthecodesaid/Zeus
ea6ee97483c62a4999901ba5f3a741dcc1ab0928
983cd827bf350cc75a3b478718b2e40cfb9352c9
refs/heads/master
2020-12-27T16:58:32.146799
2020-02-03T20:32:26
2020-02-03T20:32:26
237,979,852
0
1
null
2020-02-07T16:25:13
2020-02-03T14:07:20
Python
UTF-8
Python
false
false
365
py
from django.urls import path, include from . import views from django.views.decorators.csrf import csrf_exempt urlpatterns = [ path('home/', csrf_exempt(views.home)), path("acview/", csrf_exempt(views.Tempc)), path("aciot/", csrf_exempt(views.acview)), path("ac/", csrf_exempt(views.ac_task)), path...
[ "shlokcpatel2001@gmail.com" ]
shlokcpatel2001@gmail.com
3933cd17fd1774eef21737c13fcdfb3fa04d377d
e8d70438a4662036e728facece1e98465737f01a
/Final Project/Programming/SBC/shared/udp.py
fa09a152b908515115d0d21279de088c96dc432f
[]
no_license
michaelekepler/GMU-ECE590
44dd96fdc59f3cd3b3dbb23e63cbb285814a2ab4
754e682f1724658acc6b22b499d7cd12b4c7a9b5
refs/heads/master
2021-01-21T13:41:33.435842
2016-05-11T12:41:24
2016-05-11T12:41:24
50,143,731
0
0
null
null
null
null
UTF-8
Python
false
false
2,697
py
#!/usr/bin/python import sys, socket, array, struct if sys.version_info >= (3, 0): from functools import reduce class UdpSocket(object): _len_pack = struct.Struct('<I') _send_big_chunk = 32768 # ~half of max datagram size def __init__(self, recv_addr, receiving = False): self.addr = recv_addr self.sock = so...
[ "michaelekepler@gmail.com" ]
michaelekepler@gmail.com
c959b60352be4863a3f8953548cec73e80ef1c23
fe7599b0538567b82236832e93179ea88ff42e65
/test/common/test_embedding.py
338dda7a2ffabb2a4b9e352dd131c12d4e02d828
[]
no_license
jgung/verbnet-parsing-iwcs-2021
6cd43b121b74d47300561a63ad1b57841aab1903
3d5b0bdd478d1594e05f1c935a555a360ad6692c
refs/heads/main
2023-05-29T00:47:22.270803
2021-06-16T13:10:11
2021-06-16T13:10:11
365,082,482
3
0
null
null
null
null
UTF-8
Python
false
false
612
py
import unittest import pkg_resources from tfnlp.common.embedding import read_vectors class TestEmbedding(unittest.TestCase): @staticmethod def _read_vectors(): vectorspath = pkg_resources.resource_filename(__name__, "resources/fake-vectors.txt") return read_vectors(vectorspath) def tes...
[ "james.gung@colorado.edu" ]
james.gung@colorado.edu
33e7b842a30e2b8f2a15106a0e959404ed6a695e
16f217783bc450dd77d7d4ff8fe562de5d3ba0ba
/robotScript/project/Robot.py
d06d4e114108b2dc70d61698bc5b2b886adfc43e
[]
no_license
ss203242430/schoolProject
4b379f92bd03f7a4cd4c5f5d6e76de8c8b8a5edb
dce20853b2acc76b8357dafbe0fe11a0a219e102
refs/heads/master
2022-01-05T05:49:33.278438
2019-01-11T13:08:42
2019-01-11T13:08:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
import Module import time import Camera class Robot: def __init__(self, wheelsLeftPin = 23,\ wheelsRightPin = 24,\ CNY70EncodeMidPinLeft = 17,\ CNY70EncodeMidPinMid = 27,\ CNY70EncodeMidPinRight = 22,...
[ "hp181227@gmail.com" ]
hp181227@gmail.com
8a21386060c5fce78625b552041b44bf7abafceb
d371b1d0ae2c78c716305661276e99ea99a2ec3f
/sandbox/findtweetsdaterange.py
36f3970992acc8337aa243df30c9f249d7396c01
[]
no_license
ravioactive/subtrendr
96fa9485f453662c391d46aa9c5b7c5cb70972c6
6afddb96ff9ce4c8eaa6d3c3d43d81426d2c2870
refs/heads/master
2020-12-24T14:09:27.363320
2015-05-10T19:53:01
2015-05-10T19:53:01
32,291,769
0
0
null
null
null
null
UTF-8
Python
false
false
3,481
py
import sys import pymongo from unidecode import unidecode import operator def main(): args = sys.argv[1:] trendname = args[0] if not trendname or trendname == '': print 'Trend value missing. Abort.' sys.exit(1) connection_string = "mongodb://localhost" connection = pymongo.MongoClient(connection_string) db...
[ "ravioactive@gmail.com" ]
ravioactive@gmail.com
3f0545615ca1532870d920e85d4192951e399b06
12fd5b83c09b97125a3b9b9f07ad7808e0b9e9f4
/superset/reports/api.py
125a3e6763e8d865e87e4c45b4bc1f67df3934aa
[ "Apache-2.0", "OFL-1.1" ]
permissive
bkyryliuk/incubator-superset
e708233fe553b0eaac4c8b6f55f7c73db62890bf
541e461b77543c4cd68b07ee2cbce1169ef33eb6
refs/heads/master
2023-06-07T22:57:38.465057
2023-05-31T19:03:30
2023-05-31T19:03:30
184,359,149
0
0
Apache-2.0
2023-01-10T14:15:38
2019-05-01T02:27:15
TypeScript
UTF-8
Python
false
false
16,915
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
bkyryliuk.noreply@github.com
225daf1bf1edf46e759e8c5e78e8a18939c7372b
01aa2693544c9677c71b313eb1342fc6efbdc541
/paper/4-fig/porc_1m14.py
b261245d0c1fe83cce1bdc9e9e9c24e86c42e2bb
[]
no_license
pgbarletta/exs
0b478b25a410721e96308abada7ec7558a87f542
afedbf04770eae0ac901e11b0a0cc480b9cb2d41
refs/heads/master
2021-01-12T15:16:12.809586
2017-06-16T19:53:07
2017-06-16T19:53:07
71,725,815
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
from pymol import cmd cmd.load("modevectors.py") cmd.load("./cut_avg_1m14.pdb") cmd.load("disp_avg_1m14.pdb") cmd.load("pock_1m14_1.pdb") cmd.set_view ( '''0.634891212, 0.608652472, 0.475852638,\ -0.286199570, -0.386813581, 0.876609623,\ 0.717629075, -0.692744732, -0.071385831,\ -0.0004086...
[ "pbarletta@gmail.com" ]
pbarletta@gmail.com
1a4bbe1904853599082ef1d8488fd19f7e6d1010
50d93a57c640fbe0b9c3292a0acb485fd73b2fb4
/cartoframes/viz/styles/utils.py
a1514f1b59df035aceac8c7bbb1f74b813b5f690
[ "BSD-3-Clause" ]
permissive
alejagapatrick/cartoframes
6af46b32b2a918edb0a995ba2773ce65b3acae4c
a86e949785d5b1ec748d686e5b11732123fbd2b0
refs/heads/master
2021-01-14T16:14:29.258096
2020-02-01T23:27:45
2020-02-01T23:27:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
from .. import defaults def serialize_palette(palette): if isinstance(palette, (list, tuple)): return '[{}]'.format(','.join(palette)) return palette def get_value(value, default, geom_type=None): if value is None: if geom_type in ['point', 'line', 'polygon']: return default...
[ "jarroyo@cartodb.com" ]
jarroyo@cartodb.com
a854ec1a1c8513ffd3482ecb32d19f7d126c322e
9b4970589d1abbb365c0f3f490c70623848b4255
/test.py
e23243f96efd47065fc2a95eba3c2f1a8ac74ae3
[]
no_license
rateyu/python_es
307f47f0e83a8979ee334bc9986421d1633f6675
3377cfc08fef61e3142cb8bc321c8fe966b047f5
refs/heads/master
2021-01-19T01:30:11.916346
2016-07-23T22:43:36
2016-07-23T22:43:36
64,038,954
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
__author__ = 'myu2' x = 1 while x <= 100: print x x += 1
[ "ym=999526" ]
ym=999526
abacfed9a9e5c8f02ee35ca3495dc01ca6da1898
5236a4ef7feab2ef353b27ff9684132b2296ef9a
/experiments/control/agents/NoisyLinear.py
0e7e9381ea3c6f40d7d7eee1971da1a2e0be4b41
[]
no_license
yyhnmn/Exploration-strategies
e763b9f14c2ce8baba9e8ea8f9614dd5e424324b
77570d35045b97870da44006932905954fb59257
refs/heads/main
2023-05-06T10:50:12.488550
2021-06-03T06:13:45
2021-06-03T06:13:45
358,855,051
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
# import torch # import torch.nn as nn # import torch.nn.functional as f # from torch.autograd import Variable # import math # https://github.com/higgsfield/RL-Adventure/blob/master/5.noisy%20dqn.ipynb # class NoisyLinear(nn.Module): # def __init__(self, input_size,output_size): # super().__init__() # ...
[ "yuhan1@ualberta.ca" ]
yuhan1@ualberta.ca
2ec92ffd832da26eb31afb624fedaf179b955034
d3a82e7576945619973b1314aaaa1bf9897e74a8
/class_base_8/app_first/apps.py
9574e1c527ba3c514cd9b3bcbee7fb900f06dabf
[]
no_license
zahrafarrokhi/learning_django_1
7b0a2b96f251d14ac5f8468d677c95a5eb420905
031a4fb99df74745df8f972df158aed1a17a4862
refs/heads/main
2023-07-06T11:58:33.725572
2021-08-09T06:52:17
2021-08-09T06:52:17
393,140,344
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from django.apps import AppConfig class AppFirstConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'app_first'
[ "zahrafarrokhi2017@gmail.com" ]
zahrafarrokhi2017@gmail.com
44c6af43bbc434dc6f8a40443a35ef88b0483d00
ac1112ce7f300058b61b6e250b84be00d7a6901a
/benchmarks/pencode_read.py
11fff5014d534aad51302542925b31e2cdcba27e
[]
no_license
moreati/pickle-fuzz
10a93979476820d832758191e15ce5f337d2e156
4398d5d1e44988f7425991f21352d5b6454075e3
refs/heads/master
2021-07-15T14:57:20.362579
2021-06-09T20:20:24
2021-06-09T20:20:24
126,242,444
31
3
null
null
null
null
UTF-8
Python
false
false
6,861
py
"""Tiny binary JSON struct encoder. We use this in preference to JSON primarily because it can handle the difference between bytes and unicode strings, which is much more efficient than encoding bytes-as-base64-in-JSON. """ import io import sys import struct import codecs SZ = struct.Struct('!I') REF = struct.Struct...
[ "alex@moreati.org.uk" ]
alex@moreati.org.uk
5d18798b9d369adde79d969ba4c0c2de8e71160d
26928b3361af2f021f8e390bd966ef936bc76bcb
/app/main/controller/fileController.py
c7abedfd313f0842f6fe3da326c6a2a22712d6b4
[]
no_license
zzzzzkjs/flask_file_upload
57adce32ed6b4ebb5aec890f836d5007f68376ba
b734d4ec463a666fa8f089f6d40172d21556d12e
refs/heads/master
2023-02-22T13:59:53.042620
2021-01-24T09:36:06
2021-01-24T09:36:06
329,244,162
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
from flask_restx import Namespace, Resource, fields from flask import request from werkzeug.utils import secure_filename api = Namespace("file", description="file related operations") @api.route("/upload") class file(Resource): @api.doc("upload_file") def post(self): files = request.files # 저장...
[ "zkjs@naver.com" ]
zkjs@naver.com
56c0bfbbb9e78a2387e0f7b372b66d6135d9f3cf
daaee847587b852aa6a9dc7d7bc97ad2547a4b4d
/thresholded_binary.py
482625686d8f24b027b013a11156844a28546a1b
[ "MIT" ]
permissive
tomershraga/Udacity_Advanced_Lane_Lines
ca86dbcc3a7ccaaefeaaeb0b9eb8a9b90782a28a
826436fb695402e3ff1edda5568c3a5be5c91c73
refs/heads/master
2022-12-03T16:53:38.290128
2020-08-17T11:54:26
2020-08-17T11:54:26
286,523,078
0
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
import cv2 import numpy as np import matplotlib.pyplot as plt def create_thresholded_binary_image(img, thresh_min = 20, thresh_max = 100, s_thresh_min = 170, s_thresh_max = 255): # Convert to HLS color space and separate the S channel hls = cv2.cvtColor(img, cv2.COLOR_RGB2HLS) s_channel = hls[:, :, 2] ...
[ "tomershraga@gmail.com" ]
tomershraga@gmail.com
d8df7c56c4cad45b9d3d1ee36968d4cdf236893f
bbf54124f543870b4e24c7888d99e488f724702a
/venv/Scripts/pip3.7-script.py
37ab5f87d7ef9437808e5be915ecb607cb25e93b
[]
no_license
desh-woes/Hash_code
9de8e171f3a87a8f047f1bc602c53a460d8f45b9
0aa9187b568ddefdfd14450f72109053e5d84f83
refs/heads/master
2020-04-21T17:11:39.750786
2019-02-08T11:56:25
2019-02-08T11:56:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#!C:\Users\adesi\PycharmProjects\Hash_code\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "oadesina17@alustudent.com" ]
oadesina17@alustudent.com
06beea50352b477f0d03f263c4db73fa5be43f96
fe8adf343f8b5f7328be5340058c82b6be1b4b67
/Beginner/03. Python/Calculator_tkinter.py
fed7beb069ebe93b54ed3756b8eadbcda7eeff1e
[ "MIT" ]
permissive
manas3789/Hacktoberfest
43601a3746e1f570fdc400c0933040b591260f10
e4682fa34575ac243de464526ad1dd8d3ca102b1
refs/heads/master
2023-08-22T08:28:37.780612
2021-10-07T17:15:08
2021-10-07T17:15:08
414,692,658
0
0
MIT
2021-10-07T17:14:05
2021-10-07T17:13:32
null
UTF-8
Python
false
false
13,150
py
from tkinter import *; from tkinter import messagebox; def actionauthor(): messagebox.showinfo("Author", "Pranta Sarker\nBatch: 6th\nDepartment: CSE\nNorth East University Bangladesh") #Check weather the input string is a number or not def is_number(s): if(s != ''): if (s.replace('.', '', 1).isdigit()...
[ "noreply@github.com" ]
manas3789.noreply@github.com
165df67dfc5ba1f98f4a75696535e434b8eb836f
b39130ffdd7303160c118f0a60922964c75cc614
/T46/manage.py
f5e8f994f8bf970073af76fb795676471c0b1603
[ "MIT" ]
permissive
RedBeastOfLeaf/Hackathon_5.0
f345786790d6cea8dfd0de0c75eb051e15db4cde
c516b5589c0826c87f79767e165755a6918e07ad
refs/heads/master
2023-03-06T04:53:47.866905
2021-02-20T08:35:18
2021-02-20T08:35:18
340,563,280
0
1
null
null
null
null
UTF-8
Python
false
false
687
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AIproject.settings') try: from django.core.management import execute_from_command_line ...
[ "noreply@github.com" ]
RedBeastOfLeaf.noreply@github.com
9afe7b481db2444dfbd8affc02f6f35e8909bea1
8501910063034c48ee880659d917ad22b25552a0
/docs/source/course_source/beginer_torch.py
4d2fad8f6b66d6e5a577c11e7289313ca6035d65
[ "Apache-2.0" ]
permissive
StacyYang/AutoTorch
67debf597c332c2d816aa5f79963ce98aa63e98a
bd963471a2aab25a67bef84b6a9bb5619e2380e3
refs/heads/master
2022-08-03T00:32:19.379801
2020-05-14T00:00:37
2020-05-14T00:00:37
199,581,162
64
7
Apache-2.0
2020-05-14T00:00:39
2019-07-30T05:31:16
Python
UTF-8
Python
false
false
6,954
py
# -*- coding: utf-8 -*- """ Quick Start with PyTorch ======================== In this tutorial, we demonstrate how to do Hyperparameter Optimization (HPO) using AutoTorch with PyTorch. AutoTorch is a framework agnostic HPO toolkit, which is compatible with any training code written in python. The code used in this tut...
[ "noreply@github.com" ]
StacyYang.noreply@github.com
627d10055d164f6914568c45ba093d428ee437a6
0fa69775ef1248b6d0b27f20461ff7ab7a43173e
/main_app/beauty.py
81e2c2cd5476f8f2392a88c75c44ce6558590e60
[ "MIT" ]
permissive
rajkumarGosavi/Worker-Recommender
85117051db6bd6847023fbeae5d56ad08a827bbc
1a16904a3c72a75290a4dffda451643b3b359700
refs/heads/master
2020-04-22T12:07:41.088503
2019-02-12T17:45:33
2019-02-12T17:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
import pandas as pd new_df = df.copy() def prettify(cls, n, df): for index, records in df.iloc[n].iterrows(): for cols in df.columns: records[cols] = cls[cols][0][records[cols]] new_df
[ "princegosavi12@gmail.com" ]
princegosavi12@gmail.com
b85d47bd5f74ecd5a88bb098b7cdf9d4ab5a3344
6f1bd5c6a80fcd975c314b5f9fdec6e5c4df56a7
/Algorithms/collatzConjecture.py
a99d08cd6e0eec4e057711e597c1596ef4e8d6f1
[]
no_license
danWalt/Karan-Projects
344e22445d96558ecabc87350156e2d67c8e7cea
461c176fcb8176b5190cfe07882986274196b997
refs/heads/master
2020-12-01T20:41:50.466603
2020-04-07T14:34:07
2020-04-07T14:34:07
230,763,908
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
# collatzConjecture.py uses the Collatz Conjecture algorithm to find the # number of steps it takes to get to 1 from a number following these rules: # Start with a number n > 1. Find the number of steps it takes to reach one # using the following process: If n is even, divide it by 2. If n is odd, # multiply it by 3 an...
[ "daniel.walters2110@gmail.com" ]
daniel.walters2110@gmail.com
10542c902743d934d55e8099238455426ac53055
e58447b5b4d4b5dedb284b86a3789946d906e9ff
/menu/models.py
900420a3d6cf729eda14aa41c67851ec6e353a47
[]
no_license
jimenz91/xinchao
df4bc796478f6fd6b5f27b83ae62a43dc3495ed2
4f8f90e3d56df134d8d94154c4ed81964ebde033
refs/heads/master
2023-06-22T17:10:53.210362
2021-07-16T14:50:14
2021-07-16T14:50:14
370,188,127
0
0
null
2021-07-16T14:50:15
2021-05-24T00:44:54
Python
UTF-8
Python
false
false
1,033
py
from django.db import models class Dish(models.Model): """ Dishes to be served in the restaurant. """ name = models.CharField(max_length=50) price = models.FloatField() weight = models.FloatField() rations_available = models.IntegerField() description = models.TextField(max_length=300,...
[ "carlos.jimenez.gonzalez.contractor@bbva.com" ]
carlos.jimenez.gonzalez.contractor@bbva.com
9d72b7fbe2c3541708314f0dd93222067664efd3
7e4d1395b9fc122d98a0f1ad1ac8c303d6ca2725
/GTEx_scripts/get_not_processed.py
af41d4dbadd0b086eaf5077863dd020162be398e
[]
no_license
RobinHofmeister/Master_project_2018
619f114f58e6df208899c2319e1a4509c29962e6
0374d0d740b5bf173a823d9b8b018362edb798f7
refs/heads/master
2020-03-26T15:06:57.890886
2018-09-07T12:38:32
2018-09-07T12:38:32
145,021,713
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
import os import subprocess file=open('done.txt') for line in file: tmp=line.split() if tmp[1]=='not_processed': srr=tmp[0] # get the SRR of non processed SRA bash_script_name='bash_'+srr+'.sh' call_bash='bsub < '+bash_script_name print(call_bash) subprocess.call(call_bash, shell=Tr...
[ "robin.hofmeister@unil.ch" ]
robin.hofmeister@unil.ch
1b7c96a2295ea7e138deda6e3742ba95cd5763db
6d05f11c55ea277a08fc375b1c5af5ecc076000b
/python/paddle/fluid/tests/unittests/test_allclose_op.py
94e30621ef1377344457aa3d94a725abac99ef31
[ "Apache-2.0" ]
permissive
sfraczek/Paddle
8602df1b11937400f93ac5861a366226208a6f05
d1e2c61b22b9675adc3c4a52227d2220babaa001
refs/heads/develop
2023-04-04T22:52:42.629243
2023-03-16T12:06:10
2023-03-16T12:06:10
140,574,617
0
0
Apache-2.0
2019-03-26T15:54:00
2018-07-11T12:51:20
C++
UTF-8
Python
false
false
8,362
py
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # 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 app...
[ "noreply@github.com" ]
sfraczek.noreply@github.com
c7457f83022b47c936a0bccf283bf660d926f839
636849fc7edd9dcb095cf3410a121ab37de69f02
/SoftLayer/fixtures/SoftLayer_Network_Storage_Iscsi.py
04c2284767ad5c529af005b1acc17b04a1a8efa8
[ "MIT" ]
permissive
softlayer/softlayer-python
bcb09306c3367fdbd2f1407f770c4959729b074c
5798373055d9f34dfd531d81638a64d0a7901a13
refs/heads/master
2023-08-23T19:32:36.990701
2023-08-21T03:29:44
2023-08-21T03:29:44
622,291
126
182
MIT
2023-09-14T15:04:48
2010-04-21T20:36:31
Python
UTF-8
Python
false
false
735
py
getObject = { "id": 11111, "allowedVirtualGuests": [ { "id": 22222, "allowedHost": { "accountId": 12345, "id": 18311111, "name": "iqn.2020-03.com.ibm:sl02su11111-v62941551", "resourceTableId": 6222222, ...
[ "fernando.ojeda@jalasoft.com" ]
fernando.ojeda@jalasoft.com
44cf0a4ee9872efbc12aaaa85957163ff6094902
00c33337f4023c8d257a7da1c47db4bf36441b94
/feedback/serializers.py
3bc97bd69196ce0d453d34d6288cf55f13d6930c
[]
no_license
ECellNitrr/EcellWeb2k19
694d733737b1ac26c136994ee631f36904ca942d
75d53aad788d6deac8c5dda72cabf34b8d4bcb15
refs/heads/master
2021-06-24T06:23:09.097667
2021-01-12T08:37:48
2021-01-12T08:37:48
189,839,122
4
23
null
2021-01-12T08:24:49
2019-06-02T11:39:44
JavaScript
UTF-8
Python
false
false
192
py
from rest_framework import serializers from .models import Feedback class FeedbackSerializer(serializers.ModelSerializer): class Meta: model = Feedback fields = '__all__'
[ "33046846+naveennvrgup@users.noreply.github.com" ]
33046846+naveennvrgup@users.noreply.github.com
861709efdf3acd7f6154b69f466c98536af3d22c
98e1716c1c3d071b2fedef0ac029eb410f55762c
/part13-introduction-data-visualization/No33-Multiple-time-series-on-common-axes.py
d1207e9079b0d4e197a6b8b3812ed67aab364a3e
[]
no_license
iamashu/Data-Camp-exercise-PythonTrack
564531bcf1dff119949cbb75e1fd63d89cb2779f
c72a4e806494f0e263ced9594597dc8882c2131c
refs/heads/master
2020-07-22T00:23:12.024386
2019-04-12T09:24:42
2019-04-12T09:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,261
py
#Multiple time series on common axes ''' For this exercise, you will construct a plot showing four time series stocks on the same axes. The time series in question are represented in the session using the identifiers aapl, ibm, csco, and msft. You'll generate a single plot showing all the time series on common axes wit...
[ "beiran@hotmail.com" ]
beiran@hotmail.com
d3592686c28277edf933176d6bc6cfcfec171372
82f2cf1cd09ab6cc1ad1713cb76a8da3c3ab5e5b
/Harjoitus2/Exercise 2 p4.py
41648338ae205397cc2ac999872664e7f1ed2b36
[]
no_license
GitOsku/Olio-ohjelmointi
e738dde62d29883436b42108da85a581d57f1fa7
b063847b6e95d0872ca3ed7b720691d025a150c2
refs/heads/main
2023-04-11T11:26:43.152965
2021-04-25T16:07:05
2021-04-25T16:07:05
330,405,416
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
kysymys funktio anna nimesi anna arvosanasi palauta arvosana pää funktio summa = 0 indexi = 0 boolean joka määrää ajetaanko koodia kun boolean on tosi summa += kysymys funktio indexiin lisätään 1 tämän jälkeen kysytään halutaanko jatkaa vai lopettaa tulosta summa jaettuna ...
[ "Oskari.Helenius@edu.turkuamk.fi" ]
Oskari.Helenius@edu.turkuamk.fi
084cf7c8ad3ccb351ad8f82e258bb032f29e7f7d
d8f2e4199d80ab9d32b6d47ac7d434c450ac5b99
/Atividade-de-Ordenao-3/heapSort.py
bd2b7bfd782e41bf5bb9647c43a699d6d9bed724
[]
no_license
alexandremsnunes/ED-APA
a13465151619ab9a60c37a703b9fd41d37bd18a9
8f9b53d44f3030a88a86e55dcc08ae4e155ced09
refs/heads/master
2021-05-20T10:12:08.962261
2020-07-10T12:49:49
2020-07-10T12:49:49
252,242,770
0
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
import numpy as np import sys import math def maxHeapify(vetor,lenHeap,i): left = 2*i + 1 right = 2*i + 2 if((left < lenHeap) and (vetor[left] > vetor[i])): maior = left else: maior = i if((right < lenHeap) and (vetor[right] > vetor[maior])): maior = right if(maior != i): veto...
[ "msn.alexandre@gmail.com" ]
msn.alexandre@gmail.com
f60744cdfe7f93c215b617e3629895b632846bd0
9bc228372e586a1f90bb0685c43e744be9638ecd
/19_허유빈/session06/views.py
7c57f4e01c5da391a8a5fa0c47dcc2d446fc10d5
[ "MIT" ]
permissive
LikeLionSCH/9th_ASSIGNMENT
3e58862a76e3232aed7e19e8939da23330ff2e22
c211995ad12f404833ffec7fd80e1229b82a3bfa
refs/heads/master
2023-07-03T10:27:11.843177
2021-08-02T14:52:02
2021-08-02T14:52:02
379,633,279
7
18
MIT
2021-08-02T14:52:03
2021-06-23T14:36:59
Python
UTF-8
Python
false
false
629
py
from django.shortcuts import render # Create your views here. def count(request): return render(request,'count.html') def result(request): text = request.POST['text'] text_count = len(text) text_countWithoutSpace = len(text.replace(" ","")) word_list = text.split() return render(request, 'resu...
[ "xuubxxn@gmail.com" ]
xuubxxn@gmail.com
578c3005410eeece8e1a58b878999ff78c2ad169
86832e6073aef0f3cd50e2108b61de3aaa0d2bcf
/data_cleaning/TMX_XML.py
23efec0dc7c31bdfa13808ca5fe18ca27fd5b927
[ "Apache-2.0" ]
permissive
sharad461/nepali-translator
8878b51ba807a9295c561d33cf811fdd942e5ab7
64a2606e4a7c92831e195366dee34ddf60b20c7e
refs/heads/master
2022-12-07T01:50:41.425593
2022-12-02T05:31:27
2022-12-02T05:31:27
187,453,369
43
14
Apache-2.0
2022-12-02T05:31:28
2019-05-19T08:44:37
Python
UTF-8
Python
false
false
621
py
from lxml import etree from functions import summarize, write_lines # Treats .TMX files from NNC Corpus tmx_file = "NP8" tree = etree.parse(tmx_file + ".tmx") paragraphs = tree.findall(".//seg") lines = [] en,ne = [],[] counter = 1 for paragraph in paragraphs: line = ''.join(etree.tostring(paragr...
[ "sharad.duwal@gmail.com" ]
sharad.duwal@gmail.com
0dd2ec242068ca8522aeb1e1269c1a69d0318f58
a1cc61c4c0a44aecc863c3568b62ce252ba83a65
/study/cpurate.py
a5c1c721311b5e4cbdee441c3af7974e219554f2
[]
no_license
chenwi/py-work
1e48edb34b7758416199a8a4b8077d530898129b
a9cbcb2f2e38b584036a05bf8a87a8b0c692fafb
refs/heads/master
2021-05-07T04:00:36.077828
2017-11-24T14:45:31
2017-11-24T14:45:31
111,061,310
2
0
null
null
null
null
UTF-8
Python
false
false
733
py
#-*- coding:utf-8 -*- import time def primes(n): if n ==2 : return [2] elif n < 2: return [] s = [] for i in range(3,n+1): if i % 2 != 0: s.append(i) mroot = n ** 0.5 half = (n+1) / 2 - 1 i = 0 m = 3 while m <= mroot: if s[i]: ...
[ "1587504387@qq.com" ]
1587504387@qq.com
e43535789d7375d1e1ccead85c832662d3c6d18a
e9c3152b3b929a1cb8c71f8767ed06fcabc8ef06
/problem23.py
11f5a58c7e0e0779cdbae434a997044788fd7c16
[]
no_license
StMSoAP/P-Eu
ea4b57233f01d9e7be3501e2c6ed065fb9f8e91f
fd73c1256d3a23dce901f1dade55e9f03630d568
refs/heads/master
2020-07-26T02:46:17.606141
2019-09-20T16:10:02
2019-09-20T16:10:02
208,510,015
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
import time def abundance(uh): factor_sum = 0 for factor in range(1, int(uh/2+1)): if uh%factor == 0: factor_sum += factor if factor_sum > uh: print (uh) return True else: return False start = time.time() abundant_numbers = list() for number in range (1, 2...
[ "noreply@github.com" ]
StMSoAP.noreply@github.com