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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
4299063172df7741d2dbaba1b2dab3cadd2f1bee
1cc7398a3327e82ce3f3bcbfec1aa9509c7fea5e
/features/admin/rm_admin.py
652d50165daf69ccd8be279204b0c70776bf8e2b
[]
no_license
nicholaslopiccolo/dragonscale_bot
b5169991d8ea5f58d6911d542d9136b888fa8e02
1a2e3911b715edfbbe051f68f02970a35fdb300f
refs/heads/main
2023-03-29T05:44:13.291869
2021-04-01T18:45:20
2021-04-01T18:45:20
333,565,667
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
from utils.bad_comand import bad_command from telegram import ( ReplyKeyboardMarkup, ReplyKeyboardRemove, Update ) from telegram.ext import ( ConversationHandler, CallbackContext, ) App = None white_list = None def init(app): global App global white_list App = app white_list = app...
[ "giokkaaaa@gmail.com" ]
giokkaaaa@gmail.com
238bb0a7fd380ebf85063bdce6f147f739a7c910
9f4bf225210f986ea6cdb6d3ef027a934b9f639e
/core/migrations/0011_auto_20191002_0946.py
eb0080eba48b91315f7000844ed829e6d99f4964
[]
no_license
khc196/yamigu_backend
fc5ba098a2796772956b0026d9add28f2829ee8f
842da98e1097a976b2e481b58e489a87ddb3a9ca
refs/heads/master
2022-12-16T05:15:00.237169
2020-02-17T11:56:21
2020-02-17T11:56:21
199,975,111
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
# Generated by Django 2.2.3 on 2019-10-02 00:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0010_rating_description'), ] operations = [ migrations.RemoveField( model...
[ "khc146@gmail.com" ]
khc146@gmail.com
dfde5e808fe1ce0783dadb61a34757fa970b9104
6c48c604f71100c635e743a4b002425e55e1f0fa
/test_demo/test_case/WorkorderManagement/WorkorderQuery/receive_order.py
db8b0d2f78e6618bbcc311665b820afdc55d7469
[]
no_license
Petrichorll/learn
a74456aed390be2ee9481f95feea4bc57ee62075
252fcfe2f496621d377c5477c054ce55c471a07d
refs/heads/main
2023-08-25T15:32:51.367406
2021-10-25T07:47:16
2021-10-25T07:47:16
332,707,163
0
0
null
null
null
null
UTF-8
Python
false
false
20,407
py
# -*- coding: utf-8 -*- # 工单查询 from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException import unittest, time, re, random import sys sys.pat...
[ "690267573@qq.com" ]
690267573@qq.com
20dd1dac0aeb8c51e07802451498abaf083c5dee
d0e892a2f6fe96148de74f3b4c54b550eada8e9d
/accounts/models.py
63ccfd6309a43c5af03c902d24b3c7d53ac9116f
[]
no_license
InshaManowar/iste-summer-backend
5db9eec42c329aecc824865fc20b04522cfbf332
5958f92fa40cf6a753d873d07a83414f0cb877d3
refs/heads/master
2023-08-02T19:42:22.960116
2021-09-20T18:17:17
2021-09-20T18:17:17
361,243,783
0
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.utils import timezone class MyAccountManager(BaseUserManager): def create_user(self, email,password=None,**kwargs): if not email: ...
[ "inshamanowar22@gmail.com" ]
inshamanowar22@gmail.com
2aa45bc5a565f3f723b23720ec89900a1c5bd6b0
a83c3fa830a73bc07544783193fba615f6e76e51
/ann_models/feedForwardNetwork/newfypfeedforward.py
f38786d3dfe51bec4787a7e966532df7476f265f
[]
no_license
RamzanShahidkhan/FYP-Bitcoin-forecasting
984df983bcaa4c673c422071282727c12e346442
0bba3221573068ffb42581a4eba30eb06364aa5f
refs/heads/master
2020-03-14T05:59:38.683177
2018-04-29T08:03:58
2018-04-29T08:03:58
131,475,143
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
import numpy import pandas as pd import matplotlib.pyplot as plt # load the data set data_original = pd.read_csv('./krakenUSD_1-min_data_2014-01-07_to_2017-05-31.csv', usecols=[1,2,3,4,5,6],engine='python') data_original = data_original.dropna() data_original = data_original.values #data_original = data_origin...
[ "noreply@github.com" ]
RamzanShahidkhan.noreply@github.com
795307e94bb23223bab69e5d2c60681bf9d40c23
8990841b20e6ca2a249402cf6f6d148baf797034
/src/utils/__init__.py
6d9632449b4701aba91fa72280147e53dc6f8047
[]
no_license
elumixor/PSIA
2a0a74b2c60ad52e374b96d13587f90069d2359d
7242f7c23bdd168e581f7cb732b73a9d0fec580e
refs/heads/master
2023-04-11T04:07:34.772454
2021-04-03T15:30:15
2021-04-03T15:30:15
341,991,359
0
0
null
2021-04-03T15:30:15
2021-02-24T18:10:02
Python
UTF-8
Python
false
false
855
py
import yaml def read_yaml(path: str): with open(path, "r") as stream: return yaml.safe_load(stream) class log: _GREEN = '\033[92m' _RED = '\033[91m' _DARK_GREY = '\033[90m' _END = '\033[0m' _BOLD = '\033[01m' def __init__(self, *args, **kwargs): print(*args, **kwargs) ...
[ "yazykov.v@nakukop.com" ]
yazykov.v@nakukop.com
effe99957b725bfa9a85dca521246b732bfc9c5e
8e128b9ac36baac326181f0d8cee4e2ea9d65284
/webapp/urls.py
b07bcc42ed00602b5075885c4adf8ac936ff829e
[]
no_license
appcubator/book-face
4217967096d1c1b40d7cd9c4ce0ed2c04eb7f426
63249306ad770620d3a74987e3719fc873002cd7
refs/heads/master
2021-01-16T17:47:05.843222
2013-09-08T21:40:22
2013-09-08T21:40:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,764
py
from django.conf.urls import include, patterns, url from django.contrib import admin from django.contrib.auth.views import logout from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.core.urlresolvers import reverse from django.views.generic import RedirectView urlpatterns = patterns('web...
[ "www-data@ip-10-154-156-62.ec2.internal" ]
www-data@ip-10-154-156-62.ec2.internal
27c31c06cb860a5ec60f0423085505bb64db4361
9dd06dd024e1897855db33762f3d987dff60a541
/starting/read_file.py
d86267d5ce08bb11428143def52ec5794f17c7de
[]
no_license
adiyosef/PycharmProjects2
02efc5be51e992de846ae7a34ea386f86e348e87
c5c2103a76c69add900e13d92601c2d1e5284d1c
refs/heads/master
2020-11-25T02:32:56.568027
2019-12-23T17:02:28
2019-12-23T17:02:28
228,452,841
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
employee_file = open("employees.txt", "w") employee_file.write("Toby - Human Resourcess \n") employee_file.close()
[ "ayosef83@gmail.com" ]
ayosef83@gmail.com
874cf9a190e00e1d8cffb3911b83199a529ef7d7
42853d0eb68b6be68a2761ae1ed6589d8b8b1669
/C++/edo_connect4/scripts/player_detector_server.py
30c18a53727a35184409b77e08b1346860caa919
[]
no_license
EvaRamaj/projects
fd0c5ecf5ce1c252ca982d636127aa3d6d8c90d8
4cc6e520881ddcd27923d65016e2c9c7c909225f
refs/heads/master
2023-01-29T04:22:59.781702
2020-03-16T16:17:09
2020-03-16T16:17:09
247,737,397
0
0
null
2023-01-13T23:44:00
2020-03-16T15:03:29
JavaScript
UTF-8
Python
false
false
409
py
from edo_connect4.srv import * import rospy def handle_player_detector(): print "Returning the player's color" player = 0 return PlayerDetectorResponse(player) def player_detector_server(): s = rospy.Service('/edo_connect4_services/player_detector', player_detector) print("player detector servic...
[ "eua.ramaj@gmail.com" ]
eua.ramaj@gmail.com
9cdfc43db870a09854c65404a963963d2cb4b43d
bbf744bfbfd9a935bd98c7cf54152a5d41194161
/chapter_15/die_visual.py
d9629d134497d4af77867b78e009e95a6471a52b
[]
no_license
terranigmark/python-crash-course-projects
65a7863be2d26fe8b91ac452b12203386eb0259a
79ed9ed8e6a1bf015990a9556689379274231d13
refs/heads/master
2022-12-05T21:59:00.352140
2020-08-21T04:59:50
2020-08-21T04:59:50
266,263,493
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
from plotly.graph_objs import Bar, Layout from plotly import offline from die import Die # create a D6 die_1 = Die() die_2 = Die(10) # make some rolls and store results in a list results = [] for roll_num in range(50_000): result = die_1.roll() + die_2.roll() results.append(result) # analyze the results fre...
[ "linnk99@gmail.com" ]
linnk99@gmail.com
b50602d83772f7c0f08c6134dafb99cfe78bfab9
b96ee55778683e937101893930761f425b51f8c5
/src/cfn_models.py
2998553de5aca1ebefcaf2307e29a34cd3ec4142
[ "MIT" ]
permissive
fp12/sfv-bot
0206d95852a2183643000ad5baf8566ea43ade60
df351675843879a2945ac96fdca3815d0331f486
refs/heads/master
2020-03-27T07:03:39.407149
2017-06-14T22:58:03
2017-06-14T22:58:03
63,254,730
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
def intersect(a, b): return list(set(a) & set(b)) def list_in(a, b): return len(intersect(a, b)) == len(a) class Player(): def __init__(self, json_d): self.name = json_d['fightersid'] self.cfn_id = int(json_d['publicid']) self.region = json_d['region'] self.platform = jso...
[ "poupi.12.pi+github@gmail.com" ]
poupi.12.pi+github@gmail.com
2f3b32eb3471d006c1efaa354bce90041d9bbcbe
6193c2d2e1734e97a1b75dcd08db2966e4812335
/neuralnetwork/neuralnetwork.py
0f09caea117f9772e1ca8a27e208c7a50be46410
[]
no_license
YHE54/machinelearningproject
c887e72ffce51622840270f3220d79337c475e96
e64dcac4f19c1d3819ee884547e4351ceb779646
refs/heads/master
2021-01-13T12:33:27.355632
2016-12-07T03:13:21
2016-12-07T03:13:21
72,567,759
0
0
null
2016-11-01T19:09:12
2016-11-01T19:09:12
null
UTF-8
Python
false
false
2,133
py
import tensorflow as tf import numpy as np import operator import scipy.io as sio class NeuralNetwork(object): def __init__(self, num_feats, num_nodes=4,learn_rate=0.001,keep_prob=1): # create session self.keep_prop = keep_prob self.sess = tf.Session() # create placeholders for in...
[ "rafihaque90@gmail.com" ]
rafihaque90@gmail.com
e17ee545bad59da2e915e94d3552880ccaee6824
422dd5d3c48a608b093cbfa92085e95a105a5752
/students/MikeShand/Lesson 07/personjobdept_model.py
99df5a818bc4032721dd8e7a08aef3fc2e2ae648
[]
no_license
UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018
a2052fdecd187d7dd6dbe6f1387b4f7341623e93
b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1
refs/heads/master
2021-06-07T09:06:21.100330
2019-11-08T23:42:42
2019-11-08T23:42:42
130,731,872
4
70
null
2021-06-01T22:29:19
2018-04-23T17:24:22
Python
UTF-8
Python
false
false
3,881
py
""" Simple database example with Peewee ORM, sqlite and Python Here we define the schema Use logging for messages so they can be turned off """ import logging from peewee import * from pprint import * logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) logger.info('Here we define...
[ "noreply@github.com" ]
UWPCE-PythonCert-ClassRepos.noreply@github.com
b856a354384fe2071b0485fdf1113cf230b29899
cb048f6f1a9729badfaaf1c54e5532ef5e4c6c4b
/app.py
976a3b2a3cc7a68b8d08302ad0da18948e9619d6
[ "Apache-2.0" ]
permissive
wululu9312/sys-final-hw1
d93207cd6da4dbf82dbb1b467d4ed839e87e57fd
6ced8f7732053dd558a63284541863980fc91d00
refs/heads/main
2023-02-07T04:02:59.971638
2020-12-28T13:00:51
2020-12-28T13:00:51
323,875,949
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
from flask import Flask from redis import Redis app = Flask(__name__) redis = Redis(host="redis") @app.route("/") def hello(): visits = redis.incr('counter') html ="<h3>Hello World!</h3>" \ "<b>Visits:</b> {visits}"\ "<br/>" return html.format(visits=visits) if __name__ == "__main__":...
[ "iva10312@gmail.com" ]
iva10312@gmail.com
0bfb79d36568cfccf8cf24f2b79c2e9d28ae5de3
17b375ec4902614db37d8d4cd41bd33df313e8b4
/main.py
258b4a5d43651c78442403025417f432c7f67353
[]
no_license
buaaqt/NodeReorder
e7994db9fe7721f2d2a847d803e86a0cdc24c6b3
3d86593159b205952210db6a63134bf1bc2b9d0b
refs/heads/master
2022-12-09T19:27:43.961927
2020-09-13T11:08:08
2020-09-13T11:08:08
294,055,497
0
0
null
null
null
null
UTF-8
Python
false
false
4,686
py
import argparse import time import torch import torch.optim as optim import torch.nn.functional as F import numpy as np from utils import load_cora, accuracy from layers import GraphSAGELayer from models import GCN, GraphSAGE def train(model_type, epoch): t = time.time() model.train() optimizer.zero_grad...
[ "36197504+buaaqt@users.noreply.github.com" ]
36197504+buaaqt@users.noreply.github.com
89395092d95bda68413dbd80746d436fccf9d6be
184a9b54b8f07df7b51a7199db1287e8ff36c45f
/homevisit/urls.py
a29b2a8e47ede53b80724bc1c8d6325f443637aa
[ "Apache-2.0" ]
permissive
curtis628/homevisit
6292fffbd1e5d1ad8b49fb1a7a2984e7f5a28dbd
1b4972888f1d21aed58377049790d91ab367abe8
refs/heads/master
2022-12-22T19:44:50.839016
2020-06-05T20:15:49
2020-06-05T20:15:49
159,893,479
0
0
Apache-2.0
2022-12-08T01:28:49
2018-12-01T00:32:41
Python
UTF-8
Python
false
false
556
py
from django.urls import path from . import views urlpatterns = [ path("", views.HouseholdCreateView.as_view(), name="index"), path("success", views.SuccessView.as_view(), name="success"), path("about", views.AboutView.as_view(), name="about"), path("contact", views.ContactUsCreateView.as_view(), name=...
[ "tcurtis@vmware.com" ]
tcurtis@vmware.com
37cb577af44fb8d2bd97a533aeb8b5320c0c9566
8e5e2fbb499ed178785c59f6f8a125d9e0a2501a
/lib/python3.5/site-packages/GPSReader/GPSError.py
903ebb52c7ad64919dc5109cde0d879662e04e6f
[ "MIT" ]
permissive
hwroitzsch/BikersLifeSaver
3bbbb544c0c24669c9dbce4ae53ae0185bd020c0
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
refs/heads/master
2021-01-10T10:14:13.249642
2016-01-10T12:32:11
2016-01-10T12:32:11
44,967,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
# $Id: GPSError.py 31 2010-04-05 16:38:20Z cfluegel $ class GPSError(Exception): """ Generelle GPS Exception """ def __str__(self): return "ERROR: General GPS error" #Todo: Delete maybe? class GPSTelegramMalformed(GPSError): def __str__(self): return "ERROR: NMEA sentence is malformed!" #Tod...
[ "ghisallo@ghisallo.com" ]
ghisallo@ghisallo.com
2e4ace5fd3813f53e76152447a7c0a5083bf930b
41af719a9fe075db6ec883037d1d87d78da5aff9
/producer/producer.py
3fe24454a88d592f35e6f5fbd3e815de91c25c89
[]
no_license
hammadasad/Kafka-Test
b6ec3aa6dddf7bb75e4884e0a43e961fce999a2d
70a3c0041329c1cda043df1b3198dc41ed41926a
refs/heads/master
2020-03-09T03:44:30.492019
2018-04-08T20:17:27
2018-04-08T20:17:27
128,571,407
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
# Imports from kafka import KafkaProducer as kafka import json print("producer running") # A producer sends messages aka records! # Create producer # We need a list of brokers (bootstrap_servers) & key/value serializers # Shows the producer how to serialize its outoing messages (string serializer default) # choosing...
[ "hammad_asad@msn.com" ]
hammad_asad@msn.com
4fc82996213f3cd2cfb65f7f15a7d88bce6ffd6a
cd0001009720f8b167ba4e62432ee895893743a6
/ve/bin/python-config
bcbf870f10aa43c40e5d22aa62df5f3da3755fdd
[]
no_license
prashantbhensdadia/crud_django
7125402cef608c6aaf667b4afe65a78c0d874201
40bf4303cb3ac6991e103ce068f98085eb38cd8e
refs/heads/master
2021-03-17T17:04:04.810248
2020-03-13T06:45:51
2020-03-13T06:45:51
247,002,960
0
0
null
null
null
null
UTF-8
Python
false
false
2,354
#!/home/agile/Desktop/prashant/test/ve/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.versi...
[ "pbhensdadia@gmail.com" ]
pbhensdadia@gmail.com
cc0f68e8359cb95579b7d20bc6c3581cdc712cbd
5e5e99e8493fbef64847494caf059c910c03c823
/arrays/palindromic-substrings.py
b398b82336fa0371d58df3ab24c16dec63daf978
[]
no_license
jcockbain/leetcode-python
f4e487b13ae4cacef9cbedfd4358f8ee0006e2b8
d7f83ea5a11e4c8340c48698d29aa3bc0b942121
refs/heads/master
2020-07-09T19:58:42.933881
2019-10-28T23:34:34
2019-10-28T23:34:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
def countSubstrings(self, s): """ :type s: str :rtype: int """ N = len(s) ans = 0 for center in range(2*N - 1): left = center / 2 right = left + center % 2 while left >= 0 and right < N \ and s[left] == s[right]: ans += 1 left -...
[ "james.cockbain@ibm.com" ]
james.cockbain@ibm.com
3308ea0512ff5b4243f5b124131c6d7352dbc14f
fa7d8f0558312c16ac2256aac0ab499edc38d16b
/Dogs_Cnn/run.py
177b5b6a190f8b110424f7753c4c8daf249a8b97
[]
no_license
ShiinaClariS/CNN
3cd43d133d7335bbb5280e9743910acf0d73a6f5
4e97242f2122bc8d1cac48e3ab3b83cac0bfbc38
refs/heads/main
2023-07-17T17:18:21.617323
2021-08-24T06:49:36
2021-08-24T06:49:36
399,363,236
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
# -*- coding: utf-8 -*- """ author: ShiinaClariS time: 2021年8月24日13:39:10 """ from Dogs_Cnn.read_image import ReadImage from Dogs_Cnn.create_cnn import CreateCnn class Run: def __init__(self, kind): r = ReadImage(kind) x_train, y_train, x_test, y_test = r.x_train, r.y_train, r.x_test, r.y_test ...
[ "noreply@github.com" ]
ShiinaClariS.noreply@github.com
a821ca1d55ea583b8a006afaf18094fad5155d80
a73ddda82b9dc66122a5d93c7543fed2295baab9
/Assignment-1/Code/que-12.py
55cb8f31620ebadd9390c0875eca6802c627c05a
[]
no_license
patelmeet/Machine-Preception-Assignments
9181d8951a9e6b51930001a5054f310a141f91fd
ef5b3af57e1009528096b1db97ada28511225622
refs/heads/master
2021-01-25T04:49:44.598442
2017-06-06T07:27:21
2017-06-06T07:27:21
93,488,539
0
0
null
null
null
null
UTF-8
Python
false
false
4,771
py
import cv2 import numpy as np #Loop to check for all files together string = "portrait" #filename prefix='portrait' start = 1 #filename start index end = 5 #filename end index "portrait1.jpg" to "portrait16.jpg" for i in range(start,end+1): color_image = cv2.imread(string + s...
[ "patelmeet953@gmail.com" ]
patelmeet953@gmail.com
9d3c6ad0da27b0d12a6f5370c28f5a3aba341f95
9d9cecdc22dddc9605c0dc12f3ee65af42d1c5e6
/01-conversation.py
03cdba699e80da8eab98d522ae3578ddec338066
[]
no_license
Jinhee81/python-and-djanggo
f8e7841dab3483261a2e611ef28905464a7afaad
72a4f42863c14a90eee7e7b90a4d359743b1411e
refs/heads/master
2020-03-25T19:58:26.707270
2018-08-14T05:46:47
2018-08-14T05:46:47
144,109,393
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
print(1+2) # 입력값 받기 name = input ("당신의 이름은 무엇입니까?") print("안녕하세요 " + name + "님")
[ "noreply@github.com" ]
Jinhee81.noreply@github.com
3b62c92fe6d71910367176af56ef6e899b0db55c
9ad4804d7b6da11549ff698cebd390ac24ed7dde
/src/xsd_frontend/management/commands/build_version_cache.py
2fa050924e95911e81d0adfc232f2cbb135b994e
[ "MIT" ]
permissive
Mystik01/wsas
eae36ded2ad42360a61dc3a0509e7e36513d54ed
c96c5dbe26da53e62bf75e7a3c17dfbab008ac1e
refs/heads/master
2023-03-16T15:36:42.458461
2020-05-03T17:42:13
2020-05-03T17:42:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
from django.core.management.base import BaseCommand from django.template.loader import get_template from xsd_frontend.activity import XSDAction class Command(BaseCommand): """A simple management command which clears the site-wide cache.""" # Taken from https://github.com/rdegges/django-clear-cache/blob/maste...
[ "will@wjdp.uk" ]
will@wjdp.uk
0ba3ed98a522196a66863cdd0ce816654065b1b2
96a34a048c783a75736bf0ec775df22142f9ee53
/services/web/server/src/simcore_service_webserver/db_listener/plugin.py
a4fda5b69bdff33c6386eee2e702f5c74e8bbb01
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
870
py
""" computation module is the main entry-point for computational backend """ import logging from aiohttp import web from servicelib.aiohttp.application_setup import ModuleCategory, app_module_setup from ..db.plugin import setup_db from ..projects.db import setup_projects_db from ..rabbitmq import setup_rabbitmq ...
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
6bcfc01476eee3630773e7cf5e73cd58795a967d
e744534cb38567665c2033589f52f5bebc978294
/hexlet-code/brain-games/brain_calc.py
d399be9372c8e6bdaa85ff41054d2f5286734522
[]
no_license
Norik123/python-project-lvl1
534cef6cb23b138cdf52466d79275cc26c661386
3e61b6c23f90073e5ddf6b31c98c887f80f11aeb
refs/heads/main
2023-08-19T13:41:11.565095
2021-10-22T10:09:29
2021-10-22T10:09:29
418,884,788
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
import common_part def run(): common_part.run("brain-calc","What is the result of the expression?"," 22 + 35 ",57," 6 * 8 ",48,\ " 33 - 4 ",29)
[ "83397313+Norik123@users.noreply.github.com" ]
83397313+Norik123@users.noreply.github.com
91b5cd1793212f9b413cb0d83a31695e0c689826
307100fbeebaf197e0d4e2a223ec8e93f912bcad
/DjangoWeb/DjangoWeb/wsgi.py
343b105d3d31417b8a6739bfea555ef0849a007f
[]
no_license
nicontrerasi/proyecto-web
0a6535968e77764b610bc82127421c82717f9cb4
b773893d44e05195e8a4413ff94c8299bda59d05
refs/heads/master
2023-06-05T02:54:39.687405
2021-06-27T03:13:47
2021-06-27T03:13:47
358,968,378
0
0
null
2021-05-06T23:33:54
2021-04-17T19:45:58
HTML
UTF-8
Python
false
false
395
py
""" WSGI config for DjangoWeb 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/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "ll.alberto@hotmail.com" ]
ll.alberto@hotmail.com
50f1d7d67751358ce27272f293578950d39f2677
04af09bb0aad3deeacaaa2053a17cd307a30ed00
/backend/neuralnetworkwebapp/views.py
239fecbce6010d4642cf139a0c5b2f7efbaafd34
[ "MIT" ]
permissive
Haydn-Robinson/Neural-Network-Web-App
9738036695baea49d2171173132ed6bf8810f7c7
7948fb4f62d450a5a6bde2744c38469a726e1d7e
refs/heads/master
2023-08-16T11:15:24.477837
2021-09-30T15:00:24
2021-09-30T15:00:24
392,456,007
0
0
null
null
null
null
UTF-8
Python
false
false
3,882
py
""" Routes and views for the flask application. """ from flask import Blueprint, render_template, request, redirect, url_for, session, Response, current_app, send_file, jsonify import numpy as np from pathlib import Path from time import sleep import json import os import redis from rq import Queue, Connection from rq...
[ "haydn.robinson96@gmail.com" ]
haydn.robinson96@gmail.com
2671fbfa345590729a83bef8261428be9a1bf018
f8d5c4eb0244c4a227a615bc11c4c797760c3bec
/utils/rldraw.py
2e944f936c3ad5ea6d074a6f0f9d74759cdd0c70
[]
no_license
SamPlvs/reinforcement_learning_pytorch
e9b84659f870d938814177f1288fa4a2eb152599
ffb9e53eeff011c4d3d5933a60c2b65fdbb18e2a
refs/heads/master
2020-03-23T04:08:51.778325
2018-01-16T22:36:48
2018-01-16T22:36:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import matplotlib.pyplot as plt import numpy as np def reward_episode(rewards, image_path, env_name='', method_name='', comment=''): reward_list = rewards total_num = np.shape(reward_list)[0] fig = plt.figure() ax = fig.add_subplot(111) ax.plot(list(range(total_num)), reward_list) ax.set_xlabel...
[ "kebai0624@gmail.com" ]
kebai0624@gmail.com
a7c38b7101a08b420124bd5cf5ef16cd28810fc1
cfd8c95ec5c43941018e0640a8254d17a488833d
/lib/pymongo/max_key.py
b84945fbaf6afd3f805c805f1aeb002ac3f136de
[]
no_license
anarchivist/cablegate
6d6ff5c823a811e9af3edd7ca13f9c8b4dcd2fd7
fbfcee217eb8d96803b564eba0a8528fa9841c95
refs/heads/master
2021-01-18T04:51:46.548421
2010-12-01T04:01:21
2010-12-01T04:06:56
1,127,394
8
0
null
null
null
null
UTF-8
Python
false
false
604
py
# Copyright 2009-2010 10gen, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
[ "andrew@typeslashcode.com" ]
andrew@typeslashcode.com
d2a3a52c10aa2c2c23543cdf7a0be7015a48572a
26aa1149ca082385c603840827ce1eb3f73655bb
/Sliding.py
bef8bfcd45d99ca73ed38d5deca7d658169fc884
[ "MIT" ]
permissive
cc-3/lab10
da37640be161869bd12d3de293be8ba9b6c26c8c
12c028737d0a31173e1bbb630b1fb207ed3fae0e
refs/heads/master
2021-01-19T23:12:47.547541
2017-04-21T06:14:07
2017-04-21T06:14:07
88,947,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
""" ___ _ _ _ _ / __| (_)__| (_)_ _ __ _ \__ \ | / _` | | ' \/ _` | |___/_|_\__,_|_|_||_\__, | |___/ """ import string def solution(W, H): """ Retorna la solucion del sliding puzzle para las dimensiones dadas """ return tuple(string.ascii_uppercase[0:(W*...
[ "andres.cv@galileo.edu" ]
andres.cv@galileo.edu
c644f8047baa90d4d8fa571c27a0168540c120f6
aceb0786c59ae07ea13681d108eed0a00dedabbd
/bin/symilar
4936d4b63b2c9130769754e5e462bef5cfa5febd
[]
no_license
Abbas766/simple_is_better_than_complex
92061dc2b74ac653008d3f905c9c93dc34d6f177
754ec8085e7714f102faf213eddcf58552c43671
refs/heads/master
2020-03-15T14:20:25.794352
2018-05-17T19:35:15
2018-05-17T19:35:15
132,188,244
0
0
null
null
null
null
UTF-8
Python
false
false
245
#!/home/monarch/Desktop/sibtc/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "blade766@yahoo.com" ]
blade766@yahoo.com
6443f9b0c5ac63e497fafe16a636f45c11acfa52
193aea128eed89098d0b26ca1b9505056148556e
/train_ns.py
c55cf89f8fd1b085870c792f3844a967cdf737e5
[]
no_license
jralha/libra_facies
0928ea2813ac9f782438288e3a6c534a397f2ffd
d2ac24625e43b14aa97ee2d5d663afd68ca4f03f
refs/heads/master
2020-09-06T02:19:10.941984
2020-08-04T17:23:26
2020-08-04T17:23:26
220,284,352
0
0
null
null
null
null
UTF-8
Python
false
false
5,692
py
#%% Imports import os import sys import tensorflow as tf import glob import random import numpy as np import datetime import pandas as pd from utils import make_gen from utils import define_model from utils import postutils import argparse import xgboost as xgb from sklearn.metrics import log_loss, precision_score, rec...
[ "42118093+jralha@users.noreply.github.com" ]
42118093+jralha@users.noreply.github.com
c011ed7f2cb3e67b62e09c3bacca76a3d4f716da
eee1560febb6f9d0020c70af9c0bf44b52d85040
/train2View.py
320f98e56b0a27c39911fc517cb2fd3ac4ce240b
[]
no_license
rohit256/Lipper-Multi-View_Lipreading
d0ce51655b01df78c956adcf20d49777a0c2b8a0
282019597b846f3b845bef8f03dbcb052b3d8b65
refs/heads/master
2020-04-29T05:21:46.969775
2019-03-15T20:01:27
2019-03-15T20:01:27
175,880,274
0
0
null
null
null
null
UTF-8
Python
false
false
10,311
py
from keras.utils import * from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D from keras.layers import Convolution2D, MaxPooling2D, Convolution3D, MaxPooling3D, LSTM from keras.layers impo...
[ "rohitjn256@gmail.com" ]
rohitjn256@gmail.com
fec2a67a92873717c966226aa1b66786aef95811
02c35ac2c6d4a832327b72865661d0f5d4c89219
/Decorators/Assigning_fun_2_variable.py
5858834eb4ecc28356582524edcdd0c542d50b01
[]
no_license
pinky0916/python_Basics
9b4eba261bd67bef370f87ce9890126c1c7d5e6a
d1e498338e2bb6b2f4eb9bc25533c406f71e0773
refs/heads/main
2023-09-02T06:03:10.987401
2021-11-02T01:04:55
2021-11-02T01:04:55
331,766,660
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
#We can assign fucntions to other variables and execute that variables def cool(): return "Hello" hello=cool print(hello()) print('*****************')
[ "varishtaja.kunjukuttan@gmail.com" ]
varishtaja.kunjukuttan@gmail.com
56e58a80390b5a427072ff56d7825759676e663d
8b0790884ab690b32bf7978d255331196adc6f97
/setup.py
5053a63ccd012b89148aec9d9aa0a8f7b1f38920
[ "BSD-2-Clause" ]
permissive
vikashgupta-may/django-rest-framework
110a62c4df7f1a55ff0bf0f44e3ee78bbf5f7eea
5c7d4e23be45c824c15dffe684e2a9fd9c78674d
refs/heads/master
2022-12-25T02:52:56.467527
2020-10-07T07:52:19
2020-10-07T07:52:19
301,963,506
0
0
null
null
null
null
UTF-8
Python
false
false
3,342
py
#!/usr/bin/env python from __future__ import print_function import os import re import sys from setuptools import setup needs_wheel = {'bdist_wheel'}.intersection(sys.argv) wheel = ['wheel'] if needs_wheel else [] def read(*paths): """ Build a file path from paths and return the contents. """ with ...
[ "vikashgupta.may@gmail.com" ]
vikashgupta.may@gmail.com
a703dcba1f9e3d95e354395ee522f152798f574b
e4822338d507cc83315b2122b0f18cbf1b94f4a7
/Work/Craiglist/craiglist_scraping.py
c2e12dd504a61925894093b490b833c0ebefa67e
[ "MIT" ]
permissive
rahulbordoloi/Selenium
f6659aacebb3691d3e143c4383f2e5f3bcb7f98b
12e621a4ad05572d23622195a643ec1c40ccf6e9
refs/heads/master
2022-12-03T14:20:37.464030
2020-08-03T07:37:43
2020-08-03T07:37:43
282,360,497
0
0
null
null
null
null
UTF-8
Python
false
false
4,491
py
## Craiglist Scraping using Selenium Python ## Documentation -> https://www.selenium.dev/documentation/en/ # Importing Neccessary Libraries from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.com...
[ "rahulbordoloi24@gmail.com" ]
rahulbordoloi24@gmail.com
9803b67002e1ba840f83ee2f65cd4d5679d4b1ca
158618aad4a15d234e820e801016848cde53cbbc
/piece_of_cake_ms4/asgi.py
56bc05166c933d8482ebd59c9804674b779d8d00
[]
no_license
niamhbrowne/piece_of_cake_ms4_resub
8aed135b9276ebde50bb6708247e1f6f6f44d3c7
d9941db1519484c4be6e2ce24e5c5fc423fce6c0
refs/heads/main
2023-08-26T07:25:05.766430
2021-11-10T11:50:05
2021-11-10T11:50:05
425,999,524
0
1
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for piece_of_cake_ms4 project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
[ "niamh_browne@icloud.com" ]
niamh_browne@icloud.com
8d52a25ebc670edc425ed6dc325e37c4c0a83c68
b7e60a0a1341a8c91e6690e49c0d37ac34b20693
/dashboard/views.py
3091349588618b61fb765dea76bf58d8efb6623a
[]
no_license
staylomak/AzurianTrack
b25fa052f26491057f6da1680402cab1ab3cd02b
6feb6c7a3913cdcc7afc9e04b3321ec7e62453ea
refs/heads/master
2020-05-02T10:18:46.666003
2019-03-27T01:24:27
2019-03-27T01:24:27
177,893,734
0
0
null
null
null
null
UTF-8
Python
false
false
1,971
py
# -*- coding: utf-8 -*- import json import logging from django.http import HttpResponse from django.shortcuts import render from django.views.generic import TemplateView from autenticacion.views import LoginRequiredMixin from emails.models import Email from perfiles.models import Perfil from utils.generics import...
[ "bogginice@gmail.com" ]
bogginice@gmail.com
d81a7b84b4465dbb7b7e7446f0c0c796ea57daca
8c6256f95668a23628be7aa1d4a39a2cd94f37ab
/streamlit_app.py
e9f69f352d581b0abdf6e83653e651edac0c90f3
[]
no_license
monchier/pf_test
e70de1073622645fec431fa805d52885b61c981d
6d4e366a9508d88f2e67028edd21c2ed2073c5b0
refs/heads/master
2023-07-15T12:39:05.207198
2021-02-25T17:44:17
2021-02-25T17:44:17
340,729,410
1
1
null
2021-02-22T14:35:32
2021-02-20T18:52:50
Python
UTF-8
Python
false
false
431
py
import streamlit as st import pandas as pd from fbprophet import Prophet import time df = pd.read_csv('example_wp_log_peyton_manning.csv') st.write(df) m = Prophet() m.fit(df) future = m.make_future_dataframe(periods=365) st.write(future) start = time.time() forecast = m.predict(future) end = time.time() #forecast[[...
[ "matteo@streamlit.io" ]
matteo@streamlit.io
37f2612b3b1262ebb4d0cc8192c8cfc52ce6c04e
c2f3b440494121962f8c0d5c4af0d989e1ff1a30
/fact.py
f8c62b7619744b34e922f456bffc4b237ad74e4d
[]
no_license
15cs026priyanka/balajipri
3a8997efcf9a51372a9b575c38a07e9b6bd99d2c
b206a5780d266c809253df59b12c102114e420f3
refs/heads/master
2021-03-31T02:15:34.337002
2018-03-13T10:42:05
2018-03-13T10:42:05
125,033,941
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
x=int(input("enter a number:")) if x<0: print("not a factorial number") elif x==0: print("this is the factorial number")
[ "noreply@github.com" ]
15cs026priyanka.noreply@github.com
d64e894856d36724821b05d2b9df8e46b4ec5512
5afb399c14b78ba8a5bfe24fb101a8cf01f26e76
/app.py
d5415de0a6c26730efaba6b5addb8e9e652cc823
[]
no_license
ropenta/first_news_app
bb811e5065ec32d0e3eb87ac26dcfe6daac617ec
60064e7b30b282c82285437e16f45217c7727579
refs/heads/master
2021-01-01T04:17:30.714427
2017-07-13T23:00:04
2017-07-13T23:00:04
97,159,421
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
import csv from flask import Flask from flask import abort from flask import render_template app = Flask(__name__) def get_csv(): csv_path = './static/la-riots-deaths.csv' #path to file csv_file = open(csv_path, 'rb') #open the csv csv_obj = csv.DictReader(csv_file) #parse as dict ...
[ "penta@umich.edu" ]
penta@umich.edu
5a75b3e5fcce03f7bd10d309196f67bdbc85c252
1d641f71f7aab082ed0b3ee805d6ff24b012ca2d
/ecommerce/carts/urls.py
aacdcfc353ac76fe4c2a60b52d83aa8708090caa
[]
no_license
Arkajit-m18/django-mca-major-project
3d63ac96cd32c49e9a95629a680c5b0b7561cbd3
59b6f39d923a7e134bbb4bbb769bc06721321760
refs/heads/master
2020-05-18T00:31:44.435948
2019-05-15T15:23:21
2019-05-15T15:23:21
184,065,280
1
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.urls import path from . import views app_name = 'carts' urlpatterns = [ path('', views.cart_home, name = 'cart_home'), path('update/', views.cart_update, name = 'cart_update'), path('checkout/', views.checkout_home, name = 'checkout'), path('checkout/success/', views.checkout_done, name =...
[ "arkajit.18@gmail.com" ]
arkajit.18@gmail.com
f0c863824b5bc933786d755d811e7f3294660239
e2aa2b6c28fd36860f7dd11022a8d0425c6a2335
/pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
03d36a0c667ad250d6834317e0efdf53654ab6d6
[ "BSD-3-Clause" ]
permissive
juanalbrecht/pymtl3
f509458fe588721dfc8c715bc75c259409b5f7a5
6d2cda6370fae74c82f69a1e65e641fab28d6958
refs/heads/master
2021-03-02T21:32:03.214499
2020-03-08T01:38:45
2020-03-08T01:38:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,911
py
#========================================================================= # VStructuralTranslatorL4.py #========================================================================= """Provide SystemVerilog structural translator implementation.""" from textwrap import dedent from pymtl3 import Placeholder from pymtl3.pa...
[ "pp482@cornell.edu" ]
pp482@cornell.edu
939da88ad050ae09813851b20ecbf9bbff1388f2
30bee457380142b46b8e7a6fadc4d54cee1dad5b
/lessons/migrations/0004_add_slug_field.py
04a018b4254d604522bafdb6f31bcc085975e6da
[]
no_license
Feralo/website
5f49bc317a6efa8f7dd3af23781ec55df153abd5
27d6cfaea580a57e4e3560f96218f8924d858858
refs/heads/master
2021-01-01T17:21:39.976587
2015-11-06T06:30:19
2015-11-06T06:30:19
21,190,077
1
1
null
2015-11-06T06:17:44
2014-06-25T04:18:12
Python
UTF-8
Python
false
false
600
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime class Migration(migrations.Migration): dependencies = [ ('lessons', '0003_fix_date_time'), ] operations = [ migrations.AlterModelOptions( name='lesson', ...
[ "noah.de@gmail.com" ]
noah.de@gmail.com
21fa4ec01f1456601156243bdc48776ee6254d51
9e3a0fde65f7279be14b844b229d077bfe66c4ef
/flaskr/model/user.py
a9368ac51b19bc137c9f38243a86277bf472a5d3
[]
no_license
anhvtt-teko/todoApp
0033f9b6b3bdf7365d7269ee202152ae14f8acc3
68374eceb064f25d1659cc2ee897b48e2e04210d
refs/heads/master
2023-05-13T13:05:12.927426
2019-10-11T02:22:08
2019-10-11T02:22:08
214,324,530
0
0
null
2023-05-01T20:36:59
2019-10-11T02:18:39
Python
UTF-8
Python
false
false
407
py
from flaskr.repository import db class User(db.Model): __tablename__ = 'user' def __init__(self, **kwargs): for k, v in kwargs.items(): setattr(self, k, v) def __repr__(self): return '<User %r>' % self.username id = db.Column(db.Integer, primary_key=True) username = ...
[ "anh.vtt@teko.vn" ]
anh.vtt@teko.vn
2fb72d64270d843ff92230fd45260ab5cb55888f
369a4184493972d0be1418ca9c587b2d735f4ee4
/invisible_cloak.py
b416bb131575be1c602a7ee06e1a3ee506b290ed
[]
no_license
sakshi1003/INVISIBLE-CLOAK
281e5a5085d0b342c900403da9247ea0f17347dd
d08bf2404a4fc5323374beab57e3fac4ae633d85
refs/heads/main
2023-02-27T04:16:44.342946
2021-02-05T17:26:38
2021-02-05T17:26:38
336,315,743
1
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
import cv2 import numpy as np cap = cv2.VideoCapture(0) back = cv2.imread('./image.jpg') while cap.isOpened(): # take each frame ret, frame = cap.read() if ret: # how do we convert rgb to hsv? hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # cv2.imshow("hsv", hsv) # how to g...
[ "tiwari.sakshi1003@gmail.com" ]
tiwari.sakshi1003@gmail.com
ca0d04658eb03c43a7dceddf7338d8c1f5cd372f
346cf248e94fe97ba9c0a841827ab77f0ed1ff20
/experiments/kdd-exps/experiment_DynaQtable_130_Feb14_0029.py
efabd8516978796f715bed1b20adcd12deaf5f2b
[ "BSD-3-Clause" ]
permissive
huangxf14/deepnap
cae9c7c654223f6202df05b3c3bc5053f9bf5696
b4627ce1b9022d4f946d9b98d8d1622965cb7968
refs/heads/master
2020-03-26T02:54:01.352883
2018-08-12T01:55:14
2018-08-12T01:55:14
144,429,728
0
0
null
null
null
null
UTF-8
Python
false
false
4,623
py
# System built-in modules import time from datetime import datetime import sys import os from multiprocessing import Pool # Project dependency modules import pandas as pd pd.set_option('mode.chained_assignment', None) # block warnings due to DataFrame value assignment import lasagne # Project modules sys.path.append('...
[ "liujingchu@gmail.com" ]
liujingchu@gmail.com
49203b940fdd86cab37a192ac067eb32e9b434bf
5eafc71a497fad643a9743958f67df9a94f5f076
/src/models/predict_model.py
bd4d39646ad2c7aa95cec7342617b9fe5bb8d328
[ "MIT" ]
permissive
mwegrzyn/volume-wise-language
debf2f65fdd1c4b49f40ac8f8fa67b33849a7b15
ed24b11667e6b26d3ed09ce0aae383c26852821c
refs/heads/master
2020-09-17T04:45:33.584668
2019-11-25T16:33:11
2019-11-25T16:33:11
180,776,719
1
0
null
null
null
null
UTF-8
Python
false
false
14,267
py
# coding: utf-8 # # Leave-One-Patient-Out classification of individual volumes # # Here, we train a classifier for each patient, based on the data of all the other patients except the current one (Leave One Out Cross-Validation). To this end, we treat each volume as an independent observation, so we have a very larg...
[ "martin.wegrzyn@uni-bielefeld.de" ]
martin.wegrzyn@uni-bielefeld.de
3812d7d8d4e45d818400e24894ece0afc5782613
a3f7f018673a44f86a6d5e308553a96ef3d1a6f0
/WriteToGoogle.py
25ecf24b851fd4e9bc0565fa345ce0f7bc728123
[]
no_license
DhyeyaDesai/XHRData
91ee0d536749a9a3bc1e8d994560c956033c39c3
00fb7adf0baff8fa11290a4b75a19e42e0fc540e
refs/heads/master
2022-12-18T08:54:12.248690
2020-09-27T06:01:55
2020-09-27T06:01:55
296,892,432
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
import pandas as pd import gspread from df2gspread import df2gspread as d2g from oauth2client.service_account import ServiceAccountCredentials scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive', 'https://www.googleapis.com/auth/spreadsheets', 'https://www....
[ "rahuldesai1999@gmail.com" ]
rahuldesai1999@gmail.com
69a637c1fffb04dde2eae7199d16032c313307b2
ef0c9565875aced961b6281fb9a441263af9d7e6
/tools/families/generate_families_with_taxon_subsampling.py
042929a1a3963a95d3dab40a866e807e1969f379
[]
no_license
BenoitMorel/phd_experiments
4984a876a6ae71319d979a8bd59905b7b805d3f4
a9a5b69aa623214fca9ce15f3c068d28127fe95f
refs/heads/master
2023-08-08T00:04:59.662131
2023-07-29T21:30:43
2023-07-29T21:30:43
120,287,952
7
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
import sys import os import random import ete3 import fam sys.path.insert(0, 'scripts') import generate_families_with_prunespecies import experiments as exp def generate_replicate(input_datadir, sampling_ratio, replicate): random.seed(replicate + 42) input_datadir = os.path.normpath(input_datadir) output_datad...
[ "morelbt@hitssv543.villa-bosch.de" ]
morelbt@hitssv543.villa-bosch.de
5fa7f58890afc61e1c24cb99b79dbb415ee50d40
9845c872596c64426a64454b04bb17929391328a
/Day 2.py
8eaec34169921945c1eb0706205a736e4d1211dd
[]
no_license
Stripey2001/AdventOfCode2020
ac4cca7dc73d6015847e865a5709fdba71d70852
5473c5dbbb20e4c1bb471ff36ad65fda8e5c8c04
refs/heads/main
2023-02-02T15:49:25.362772
2020-12-16T18:43:08
2020-12-16T18:43:08
318,014,955
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
file = open("inputDay2.txt.","r") lines = file.readlines() #Part1 Valid = 0 for line in lines: line = line.split() Range = line[0].split("-") count = 0 for char in line[2]: if char == line[1][0]: count += 1 if count >= int(Range[0]) and count <= int(Range[1]):...
[ "noreply@github.com" ]
Stripey2001.noreply@github.com
373838d3fdf18145e57517fdaddc9974d59fe21e
54e9e8c1cb42718ad662768e03e31515d062dc7b
/LiH_gate_counts_smalltime.py
f3f55d0ac427e40b73049baf44130f3a3b9531e1
[]
no_license
nmoran/qiskit-qdrift-quid19
c811dfced29bde7f7c99df715e6f05359beb4bbb
dc7a9ec951abda1a33bd94bcfac2e9639d49634c
refs/heads/master
2020-07-24T21:10:27.563703
2019-10-07T16:10:01
2019-10-07T16:10:01
208,049,574
4
1
null
2019-10-07T16:10:03
2019-09-12T12:47:03
Jupyter Notebook
UTF-8
Python
false
false
4,942
py
import numpy as np import matplotlib.pyplot as plt import math from qiskit import Aer, IBMQ, QuantumRegister, QuantumCircuit from qiskit.providers.ibmq import least_busy from qiskit.providers.aer import noise # lib from Qiskit Aqua from qiskit.aqua.operators.common import evolution_instruction from qiskit.aqua import...
[ "Riley@vpn-two-factor-general-231-131-20.dartmouth.edu" ]
Riley@vpn-two-factor-general-231-131-20.dartmouth.edu
6fdc3db5b428914f4813bf4199befece5ed7563e
df4a7c46c46d1eca6570493b9707bdf64e54f8d3
/py/209.minimum-size-subarray-sum.py
adaf3f0e6093c8efaad3d2fbdcb5fae7fb66b2a1
[]
no_license
CharmSun/my-leetcode
52a39bf719c507fb7032ed424fe857ba7340aea3
5325a56ba8c40d74d9fef2b19bac63a4e2c44a38
refs/heads/master
2023-03-29T06:39:49.614264
2021-03-28T16:33:52
2021-03-28T16:33:52
261,364,001
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
# # @lc app=leetcode id=209 lang=python3 # # [209] Minimum Size Subarray Sum # # @lc code=start from typing import List class Solution: # 双指针移动 def minSubArrayLen(self, target: int, nums: List[int]) -> int: if not nums: return 0 left = 0 right = -1 sum = 0 l...
[ "suncan0812@gmail.com" ]
suncan0812@gmail.com
e80ac8c78a628d36e3b4d0788d9adfb5968ae19d
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/flicker.py
c9770573731f1ec62ddbbc5ee7fd117eb6088ec5
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
546
py
ii = [('CookGHP3.py', 1), ('KembFJ1.py', 1), ('TennAP.py', 1), ('CarlTFR.py', 5), ('LyttELD.py', 1), ('TalfTAC.py', 1), ('AinsWRR3.py', 1), ('BailJD1.py', 1), ('RoscTTI2.py', 1), ('GilmCRS.py', 1), ('DibdTRL2.py', 1), ('AinsWRR.py', 1), ('MedwTAI.py', 1), ('FerrSDO2.py', 1), ('TalfTIT.py', 3), ('MedwTAI2.py', 1), ('How...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
09228ae64537dd9fb78fcabb808a96dacec36126
2ab391bfaadf0743da8ffee084896b999e88482d
/wx.py
a2bd1358136ac0530889f2fe820be14236fd42ec
[]
no_license
wean/coupon-windows
552a59637ea45539bdfa70c6d1bd04626f0fdbd0
9565b23c7f44594f182d7a268d4ed45bdeaf8dd3
refs/heads/master
2020-04-05T07:11:43.024665
2017-11-24T08:23:50
2017-11-24T08:23:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,676
py
# -*- coding:utf-8 -*- import random import itchat import time from schedule import Schedule from search import SearchingKeyRegex from special import Searcher from utils import getProperty, randomSleep, reprDict class WX(Schedule): def __init__(self, configFile): Schedule.__init__(self, configFile) ...
[ "974644081@qq.com" ]
974644081@qq.com
4b1c1861c991db68dad4a92a4609c7b982c49b49
98de82f74b94c08c40366f08b4155fbca804ea04
/model.py
9f851bb3169ee83b335805607d8832a605e3f8d7
[]
no_license
hailiang194/pytorch-emnist
1695da3467158da959930d851462950909cf1239
dc257d6a78d2b98602d5eab55ece4a409274f8e5
refs/heads/main
2023-04-18T17:42:03.533046
2021-05-11T01:43:37
2021-05-11T01:43:37
366,041,239
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
from torch import nn import torch class NeuralNetwork(nn.Module): def __init__(self): super(NeuralNetwork, self).__init__() # Reshape from flatten to 28 x 28 self.__reshape = lambda x: x.reshape((-1, 1, 28, 28,)) #Training model self.__model = nn.Sequential( nn....
[ "hailuongthe2000@gmail.com" ]
hailuongthe2000@gmail.com
67de1e30a9745e9bc17f74b5ae27b1a93878aee2
8036a4b9e9a3bb00749b1cfbe519e81433c69d25
/eabc/extras/rewardingSystem.py
2cff487f5817d7509bc554187fce5af228ff84f4
[]
no_license
jungla88/eabc_v2
dd99c5451bc74d43199bf67e169b3da6b4e1ed0e
cf58ee5d4f98fd192903e060d240536fdb4d9cd4
refs/heads/main
2023-06-04T10:40:45.151349
2021-05-30T18:11:42
2021-05-30T18:11:42
301,366,295
1
3
null
2021-06-21T22:23:46
2020-10-05T10:08:41
Python
UTF-8
Python
false
false
4,844
py
# -*- coding: utf-8 -*- import numpy as np from sklearn.preprocessing import MinMaxScaler from scipy.stats import norm class Rewarder: def __init__(self,MAX_GEN=20, isBootStrapped = True): #Max generation self.MAX_GEN = MAX_GEN #current generation self.gen = 0 #trad...
[ "luca.baldini@uniroma1.it" ]
luca.baldini@uniroma1.it
cb97bf7ae5fc7b209d27f00b58948f0f6626da16
8d38f23ec63e75f433d5de33c5d9bc51c9d7ac90
/choco_py/03/__init__.py
f9160e38a2c85aee2b289c5caaf6fd40b73d3da4
[]
no_license
aliwo/ChocoPy
4a957468ef38a3bfcd99f112541e6e5b0e2adbdc
eb339c4103e5400c2cf8435b1d6af5f7b3b60548
refs/heads/master
2023-05-27T09:38:28.609554
2019-10-19T12:09:03
2019-10-19T12:09:03
211,509,685
5
1
null
2023-05-01T21:15:21
2019-09-28T14:06:06
Python
UTF-8
Python
false
false
100
py
# 이제 초코 변수들이 현재 갖고 있는 초코의 양을 나타내게 되었습니다.
[ "aliwo@naver.com" ]
aliwo@naver.com
d1512cac349d08b5f70a64f54f89e3b3633468c1
0ecee2ada1149ef4ba530dfa9b69b79b59587356
/fitting/metrop.py
801321960761eedcd7c336ee50f341f0bf8c6f85
[]
no_license
psaha/microlens
0ef1d4a3c991fb98772be671a7e76c42802b4e8e
a4592122919687f39f312ea9bce5ac668c58b8ea
refs/heads/master
2020-04-06T09:53:15.012244
2020-02-20T15:32:47
2020-02-20T15:32:47
10,616,978
0
5
null
null
null
null
UTF-8
Python
false
false
1,016
py
from numpy.random import random, random_sample from numpy import array, exp def samp(fun,lo,hi,N): w = (lo+hi)/2. wlyst = [w+0] lnplyst = [fun(w)] n = 0 while True: dw = 2*random_sample(len(w)) - 1 w += (hi-lo) * dw/10 for k in range(len(w)): if w[k] < lo[k]: ...
[ "psaha@physik.uzh.ch" ]
psaha@physik.uzh.ch
85cfd579495acdf292b299ebf685ed1fe311dedc
69ab74cab9e66c1e2e3a344d41f533ead23cc777
/src/ovirtcli/format/format.py
4aec4de6fb5339d23083d9c0e66c62c50c0cd710
[ "Apache-2.0" ]
permissive
minqf/ovirt-engine-cli
907af78e9777441a6791e3aa9518cae3889c6bad
422d70e1dc422f0ca248abea47a472e3605caa4b
refs/heads/master
2021-04-19T22:48:41.991796
2016-12-28T18:58:48
2016-12-28T18:58:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,287
py
# # Copyright (c) 2010 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
[ "mpastern@redhat.com" ]
mpastern@redhat.com
cb5d25209c2b79ece5a0ace71180e70062f84329
52cd1b9a4886dde92b5bc4670f282a6534324e48
/utilsMini/sharpDateTime.py
f307cf6545e1b322845a63bb169faa147ba2caaf
[]
no_license
beincy/utils-mini
81e158b40b16b095cea0506a70ddbc3ad68db6c3
04d87a90c5699dddd3afb7865e78f0d182488a0a
refs/heads/master
2020-07-04T12:18:50.968902
2019-12-05T07:13:09
2019-12-05T07:13:09
202,285,082
0
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
import datetime from utilsMini.parse import parseTime, parseTimeStr class SharpDateTime: theTime = None def __init__(self, timeStr='', timeFormat='%Y-%m-%d %H:%M:%S'): ''' 初始化时间。传入时间字符串,没传的话默认1997-01-01 00:00:01时间 ''' if len(timeStr): self.theTime = parseTime(timeS...
[ "bianhui0524@sina.com" ]
bianhui0524@sina.com
20e3b03491e637d58092df7b8221e44c650d1805
41be0118b350c65c84cda66cc959f535eece1159
/boards/tests/test_templatetags.py
2d04ea7e52ea99bed3c0a0f481451768a1db2645
[]
no_license
Zhuo-DAU/django-boards
85bf69abf59d11042884e04895dd0b197633c9e0
2717b234752f9c8ec2dbf52869158a99afa4e097
refs/heads/master
2022-12-28T10:42:06.245545
2020-10-17T05:10:32
2020-10-17T05:10:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
from django.test import TestCase from ..templatetags.form_tags import field_type, input_class from django import forms class ExampleForm(forms.Form): name = forms.CharField() password = forms.CharField(widget=forms.PasswordInput()) class Meta: fields = ('name', 'password') class FieldTypeTests(...
[ "vitor@simpleisbetterthancomplex.com" ]
vitor@simpleisbetterthancomplex.com
343fdb8f37b7142f134a0a0357917f9773fa9fdd
995bce14dc06a4d9783d8dd3cfa74ceb8a55b742
/tests/test_metrics.py
a7613a8b0dd059cbf0f1ec87d58295dbf8d795e7
[]
no_license
MightyRaccoon/img_encoding_with_NNs
3221580c945c8de72bcc470e7a6116205835f293
8b7480037d948405b33c0be9f03f705ab1ad7f96
refs/heads/master
2022-11-20T15:37:05.454433
2020-07-12T12:17:43
2020-07-12T12:17:43
275,252,726
0
0
null
2020-07-12T12:17:44
2020-06-26T21:40:23
Python
UTF-8
Python
false
false
1,661
py
import sys sys.path.append('.') import tensorflow as tf from utils.metrics import MAPEavg def test_MAPEavg_1d_ident(): x = tf.Variable([1, 2, 3]) y = tf.Variable([1, 2, 3]) metric = MAPEavg([1, 3]) metric.update_state(x, y) res = metric.result() tf.assert_equal(res, 0.0) def test_MAPEavg...
[ "mishamolovtsev@gmail.com" ]
mishamolovtsev@gmail.com
7b3013826554668547f7dd64c249b76937234705
0aeb464e9115785c600cc948cec67f4845245e1e
/mask.py
ec9d947f5fc9ee68da2917528ee5c413d9caaae9
[]
no_license
AnnaSm0/FS19_MIA_lab
45e68f0a0557ad92ea0fbf7f9f703983a4532e4c
5e10b2c6bdd9b36764f4bdbdd756a56b20f139c8
refs/heads/master
2020-04-24T10:31:57.455106
2019-05-28T06:32:19
2019-05-28T06:32:19
171,896,898
1
1
null
null
null
null
UTF-8
Python
false
false
2,610
py
import datetime import glob import os import cv2 import numpy as np import pandas as pd csv_file_name = glob.glob('*.csv')[0] aug_type = 'mask' df = pd.read_csv(csv_file_name) augmented_data = [['filename', 'width', 'height', 'class', 'xmin', 'ymin', 'xmax', 'ymax']] date = datetime.datetime.now().strftime('%Y-%m-%d...
[ "anna.smolinski@stud.unibas.ch" ]
anna.smolinski@stud.unibas.ch
b2a7575a4d1106cd9abbb00a260a7de4ca6c4650
f2ebc38c206d74248322121a2291c4138716b10b
/lab10/config.py
db553c1d45021b7f531fb00512cbe4a70d5ad689
[]
no_license
vermutsk/Laborator
6453bd1e8cbc982b39f000d01151d202afafa126
8568c0e79c7a575a463fc8223207daedc8dd159a
refs/heads/master
2023-08-24T20:29:33.027604
2021-10-07T10:40:37
2021-10-07T10:40:37
249,997,827
0
2
null
null
null
null
UTF-8
Python
false
false
2,115
py
import os import re import json import requests import webbrowser BASE_URL = 'https://api.vk.com/method/' REDIRECT_URI = 'https://oauth.vk.com/blank.html' #Добавить проверку на существование файла class Config(): def __init__(self): self.data = '' self.APP_ID = open('app_id.txt', 'r').read() ...
[ "krnvitman@gmail.com" ]
krnvitman@gmail.com
c1b6566c44583ea48d75e32ba0b68f2299e69ff5
eb4affa4c8cb9d0c7e296ff74fa7d8bff280e8c1
/lib/file_op.py
7ca8ca4034ac4787d42e68e109e666aed219a81b
[]
no_license
zhaoxuan/every_news
db6f776439eabff754a61b59297d06b06e926a62
092b4eb9dee8a44fd83f15b8fbecfddaf115cea4
refs/heads/master
2021-01-01T19:33:41.436530
2014-08-17T08:10:20
2014-08-17T08:10:20
12,996,884
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
#! /usr/bin/python # -*- coding: utf-8 -*- import os class File(object): """docstring for File""" def __init__(self, file_path): self.file_path = file_path if os.path.isfile(file_path): self.file = open(file_path, 'a') else: if self.mk_path(file_path): ...
[ "zhaoxuan1727@gmail.com" ]
zhaoxuan1727@gmail.com
9ee032a5e092676515e9885801c7f1254633cc08
fd97c7a1a8a732f77ff53d41c50abfcf48ae8647
/test_partal_data/getUrl.py
9697ecb4a509fdd6223661578430309e7d1c9a35
[]
no_license
Zhaokun-max/workspaces
eb922902fa4762051f2e8660a70d95ce08c1b70b
87d713a5c8d3763b3dfa191cd7a00933899679b9
refs/heads/master
2023-03-21T00:42:06.451609
2021-03-20T15:20:26
2021-03-20T15:20:26
329,214,388
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
class GetUrl(): @property def getUrl_001(self): url='http://test.portal.jlncjy.cacfintech.com/api/v1.0/chanquan/project/save' return url @property def getUrl_002(self): url = 'http://test.portal.jlncjy.cacfintech.com/api/v1.0/chanquan/project/saveAssignmentConditionsInfo' ...
[ "18701079606@163.com" ]
18701079606@163.com
10bd16b2629d3c226a90fa9ed757fd210049d940
2e1c1558f6fcb12a57449f9f6f0db6f1cbf38dd6
/tests/integrations/test_package/config/test.py
1523cb68f132b4ed41f31b404461758a9e2d19e6
[ "MIT" ]
permissive
MasoniteFramework/masonite
ca51bf3d0e4777e624b3a9e94d1360936fb8006d
e8e55e5fdced9f28cc8acb1577457a490e5b4b74
refs/heads/4.0
2023-09-01T18:59:01.331411
2022-11-05T01:29:29
2022-11-05T01:29:29
113,248,605
2,173
185
MIT
2023-04-02T02:29:18
2017-12-06T00:30:22
Python
UTF-8
Python
false
false
29
py
PARAM_1 = "test" PARAM_2 = 1
[ "idmann509@gmail.com" ]
idmann509@gmail.com
d0c288557014a2037eb97dca9858deeb4b33a794
05901211fa00681063885f1a08f7a73c3951e2f5
/datafaker/constant.py
0e4c2b7ad3b8d66019ee816fa79d77221dd6dfba
[ "Apache-2.0" ]
permissive
XcAxel/datafaker
4b54011cada16c9e4afc539db5dfa291f7ca8e63
0104dfff1d403cc31ad01adeb3b2c751b6fd9625
refs/heads/master
2022-08-27T02:47:59.132909
2020-05-21T02:03:22
2020-05-21T02:03:22
265,730,871
0
0
null
2020-05-21T02:01:50
2020-05-21T02:01:50
null
UTF-8
Python
false
false
914
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- __version__ = '0.7.2' # batch size for inserting records BATCH_SIZE = 1000 # multiprocessing queue, max size is 32767 MAX_QUEUE_SIZE = 30000 # time interval for streaming record producing DEFAULT_INTERVAL = 1 # task num for paralleling WORKERS = 4 # minimum records f...
[ "ligangc@zbj.com" ]
ligangc@zbj.com
5cd88237592e9d555a8d609bea7ca6d04a9b031f
a50e5050ee099877331748a92029819f5abcb0fc
/PackageClass/ClassInputArea.py
5390379a16856e650c020633c70aca2f3eed3c6f
[]
no_license
darmawan06/pdpbo3-dikdik-rentaloke
ef05f53ec4cf58a0a59b2b3bf705dee1fcae8e83
53e4091ca2c52834d10e0e03cf1742e781c45588
refs/heads/main
2023-04-01T13:14:07.351208
2021-04-02T01:36:52
2021-04-02T01:36:52
353,663,191
1
0
null
null
null
null
UTF-8
Python
false
false
3,823
py
from tkinter import * from tkinter import messagebox from tkinter import filedialog from PIL import ImageTk, Image class InputArea(Frame): def __init__(self, parent): Frame.__init__(self, parent) self.parent = parent; self.InputNoKTP = Entry(self.parent,width=25) self.InputNoKTP.insert(0,"") self.InputNama ...
[ "74578072+darmawan06@users.noreply.github.com" ]
74578072+darmawan06@users.noreply.github.com
beead89528382b978348836d26fab1b78be43800
26e4bea46942b9afa5a00b9cde9a84f2cc58e3c9
/pygame/Astar/implementation.py
4965fc01f99a6ab2206ed2468d00869b3bb21107
[]
no_license
MeetLuck/works
46da692138cb9741a913d84eff6822f107510dc7
ab61175bb7e2ed5c5113bf150e0541ae18eb04c4
refs/heads/master
2020-04-12T05:40:25.143075
2017-08-21T17:01:06
2017-08-21T17:01:06
62,373,576
2
1
null
null
null
null
UTF-8
Python
false
false
5,781
py
# Sample code from http://www.redblobgames.com/pathfinding/ # Copyright 2014 Red Blob Games <redblobgames@gmail.com> # # Feel free to use this code in your own projects, including commercial projects # License: Apache v2.0 <http://www.apache.org/licenses/LICENSE-2.0.html> from __future__ import print_function class Sim...
[ "withpig1994@hanmail.net" ]
withpig1994@hanmail.net
bbbb9c609651e91e3a3c15c139ff1b5813c22879
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil2333.py
c971dffe1465e621fa1a309de3e74ac9949af7f2
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
# qubit number=4 # total number=29 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += CNOT(0,3) # number=14 ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
fbddef4b9d48e173fddbe92424567a8926db63a3
94c7440e7f1d2fdbe4a1e26b9c75a94e49c14eb4
/leetcode/303.py
3e11c0d02ea85837838c1abfd9fcbb8f9d209292
[ "Apache-2.0" ]
permissive
windniw/just-for-fun
7ddea4f75cf3466a400b46efe36e57f6f7847c48
44e1ff60f8cfaf47e4d88988ee67808f0ecfe828
refs/heads/master
2022-08-18T09:29:57.944846
2022-07-25T16:04:47
2022-07-25T16:04:47
204,949,602
1
0
null
null
null
null
UTF-8
Python
false
false
432
py
""" link: https://leetcode.com/problems/range-sum-query-immutable problem: 离线计算数组区间和 solution: 转存 sum[:i] """ class NumArray: def __init__(self, nums: List[int]): self.s = [0 for _ in range(len(nums) + 1)] for i in range(1, len(nums) + 1): self.s[i] = self.s[i - 1] + nums[i - 1] ...
[ "windniw36@gmail.com" ]
windniw36@gmail.com
4cdee05ad49fdba13018488725c88f8b8c699ef3
ddd93d17e0aaa34517d2c3c1fcb2bf183c07f46c
/passwords/passwords_v1.py
d0bcc3db25358e4b8e0589d69119b56498014771
[]
no_license
Romny468/FHICT
953d1698ee1df96065b53b5dcbe12fc38665d0cf
016b8c68d1059d178cb264b388a5fa123c5af4ee
refs/heads/main
2023-04-12T09:26:56.102648
2021-04-15T13:09:27
2021-04-15T13:09:27
343,802,847
0
0
null
null
null
null
UTF-8
Python
false
false
5,161
py
#this is a password checker and a password generator #this program will ask the user whether the user wants to generate or check a password # this function is used to generate passwords def passwordGenerate(): try: import string, random print("This is a password generator","\nYou can create a rando...
[ "noreply@github.com" ]
Romny468.noreply@github.com
43019288f3f44d30d1aa829e0d7775c74d503881
a4bb09ff7b879a84230b3fa0f4ee4cf95d2d5456
/alerts/blueprint.py
5cd44a0331f024c405cfbcbeae5e3660ee459d57
[]
no_license
hosyaeuw/ubit_flask
d8594c4c8848647be894dc33c60327cf0ed2ee15
616c3033406a6cd845b98f175a10f9176dbe52e1
refs/heads/main
2023-07-05T21:39:24.108884
2021-07-16T14:43:31
2021-07-16T14:43:31
386,669,868
0
0
null
null
null
null
UTF-8
Python
false
false
2,117
py
from models import * from sms.blueprint import send_sms from telegram.blueprint import send_telegram_message from flask import Blueprint, request, jsonify import re blueprint_alerts = Blueprint('alerts', __name__) db_fields = get_column_fiends(Alerts) @blueprint_alerts.route('/', methods=['GET']) def index(): ...
[ "gad972@mail.ru" ]
gad972@mail.ru
d4fb1b0b8ced17a755b72114f85bfb291c6789a9
fc76da973dea749cd15b77351c50243fd03908af
/dash_live_plot.py
a6ffd7ca216d92da8d9255092a60e2b550c6bd5b
[]
no_license
phet2309/Live-Candlestick-plotting-of-Stocks-Live-Price
6d15287011aebf5bd3119a1727264e4a34124cb7
3854259fc16c8aaec28e014e42e3237af939083a
refs/heads/master
2023-02-02T06:15:17.198713
2020-12-22T19:20:56
2020-12-22T19:20:56
279,780,093
3
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
import dash from dash.dependencies import Output, Input import dash_core_components as dcc import dash_html_components as html import plotly import random # import plotly.graph_objs as go import plotly.graph_objs as go from collections import deque X = deque(maxlen=20) X.append(1) Y = deque(maxlen=20) Y.append(1) ap...
[ "phet2309@gmail.com" ]
phet2309@gmail.com
410436994d50c3b996e5791d3c62a10affc8a697
56123e8f2c21656c92f44035d386fe16e9c9df45
/other/lamp_time.py
f666b2ea82f0a719462d03ef278cc9fa7921a3e9
[]
no_license
NikitaFedyanin/python_tests
338bcfcef55b8ef3a8f361e4eddb16bb9642de1a
1976c4d067b0e71657422a398d5d3d81b16a2c6f
refs/heads/master
2023-05-10T11:54:36.795170
2023-05-04T20:15:40
2023-05-04T20:15:40
164,305,229
0
1
null
null
null
null
UTF-8
Python
false
false
1,954
py
"""На вход функции дан массив datetime объектов — это дата и время нажатия на кнопку. Вашей задачей является определить, как долго горела лампочка. Массив при этом всегда отсортирован по возрастанию, в нем нет повторяющихся элементов и количество элементов всегда четное число (это значит, что лампочка, в конце концов...
[ "fedyanin5479" ]
fedyanin5479
25e13abd24bb84938ef8ab2428be4b480ac7ada4
2f63044850b061b93b46590819ece97833829ddb
/Strings/whatsyourname.py
a372754e82134f2ad8d7864e510cb96f1c6c86be
[]
no_license
Mzaba014/Hackerrank-Solutions
30bd0380b09d2fb1d20cefd5010bf94d62ab060b
b09399e5031ea9a911d36bce1bfee2d7b6f9309e
refs/heads/master
2020-04-23T23:37:46.845731
2019-03-22T13:47:10
2019-03-22T13:47:10
171,542,272
1
0
null
null
null
null
UTF-8
Python
false
false
443
py
''' Title : What's Your Name? Subdomain : Strings Domain : Python Author : Manuel Zabala Created : 1/23/2019 Problem : https://www.hackerrank.com/challenges/whats-your-name/problem ''' def print_full_name(a, b): full_name = 'Hello {} {}! You just delved into python.'.format(a, b) print(full_name...
[ "mzaba014@gmail.com" ]
mzaba014@gmail.com
25747b63781fe738c768e8add31f0125a5d5f137
402bdf94dd6f5656ba665e41aafbed43098289e2
/self-dividing-numbers/self-dividing-numbers.py
0642a2139ec8a98c3189c02a148313b74b5998ba
[]
no_license
Shubham3842/Leet-Code-Solved
fcb51f1694f76728b5dad1b397fcce94d9179c9c
b0bc025ad7440814a72e4aadaabf69766a146f97
refs/heads/main
2023-03-04T11:03:26.674194
2021-02-08T15:23:02
2021-02-08T15:23:02
325,962,441
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
class Solution:    def selfDividingNumbers(self, left: int, right: int) -> List[int]:        result =[]        for i in range(left,right+1):            l = list(str(i))            c = 0            if '0' not in l:                for k in l:                    if k == 0:                        break           ...
[ "70909503+Shubham3842@users.noreply.github.com" ]
70909503+Shubham3842@users.noreply.github.com
150ada0104f487967baa8037bdf9800d1d660c71
d10c5d3603e027a8fd37115be05e62634ec0f0a5
/13_Machine-Learning-with-Tree-Based-Models-in-Python/13_ex_1-12.py
8bc8ee02a70ea444f217bbab5bc0d3c2c3a249c6
[]
no_license
stacygo/2021-01_UCD-SCinDAE-EXS
820049125b18b38ada49ffc2036eab33431d5740
027dc2d2878314fc8c9b2796f0c2e4c781c6668d
refs/heads/master
2023-04-29T01:44:36.942448
2021-05-23T15:29:28
2021-05-23T15:29:28
335,356,448
2
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
# Exercise 1-12: Linear regression vs regression tree import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression from sklearn.tree import DecisionTreeRegressor from sklearn.metrics import mean_squared_error as MSE SEED = 3 df = pd.read_csv('input/auto.c...
[ "stacy.gorbunova@gmail.com" ]
stacy.gorbunova@gmail.com
6247020a52976a3a19c5307691a2285f94c52703
aebb80d02f3bea874e2ce569cde2fe16ceb7d098
/MxOnline/apps/users/forms.py
08533a7bc9daa85e980defa8845924358ec2eb77
[]
no_license
zhanxiangyu/MxOnline
6a9bf71ead5c7857d42637bb59af4d9372f662ed
c0d3879190fe801989ff19e893f7c1a4798f9510
refs/heads/master
2021-01-01T04:42:50.299376
2017-10-25T08:39:54
2017-10-25T08:39:54
97,231,225
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
#coding:utf-8 #__author__ = 'zhan' #__date__ = '2017/5/8 14:00' from django import forms from captcha.fields import CaptchaField from .models import UserProfile class LoginFrom(forms.Form): username = forms.CharField(required=True) #这是一个必填项目 password = forms.CharField(required=True, min_length=5) ...
[ "1033432955@qq.com" ]
1033432955@qq.com
14a1fbcf1b983545a3fc8090f4763d301087831a
29776538ad6978f9a083d683554ff396272db071
/SecureFileShare/wsgi.py
b54f5db9d127940c6919553d7c75e993af657fce
[ "MIT" ]
permissive
bwelch21/secure-file-share
6ecffd4d5ec123a6dadeed8fc3d8e9f2488a9dae
69e693dad4eb02a4a7b8051244947115eea71abc
refs/heads/master
2021-01-12T08:14:41.975384
2016-12-15T03:33:13
2016-12-15T03:33:13
76,517,837
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
""" WSGI config for SecureFileShare 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from whitenoise.django impor...
[ "bew5te@virginia.edu" ]
bew5te@virginia.edu
652923489c3400dbc45efcd56745119f186d1af4
924743b86e7c6e8f5bd86a7b04606179429abbbd
/manage.py
56fd15d5154ff87517d6a29c4e8382e0c70558bb
[]
no_license
swaraj70/olx-scraper
01bc864d2b5cb3a9e592c5a21672d153b4faa414
0d3d7582f0a58c7f0e0848005ce7ec698c532134
refs/heads/master
2022-12-13T00:33:33.316810
2021-05-01T06:32:21
2021-05-01T06:32:21
217,027,126
1
0
null
2022-12-08T06:45:42
2019-10-23T10:09:23
Python
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webscraper.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "noreply@github.com" ]
swaraj70.noreply@github.com
e133da1ad46a42d43b0b17f6d3fc2d83933ee9c0
ac4988c7f9cc98f6dcc31280cd208eeb57d674f2
/Semana4Sesion1/martinperez/files.py
eba5a294849af7b337a4be981387c1564adc9e14
[]
no_license
BrucePorras/PachaQTecMayo2020-1
77e396ceb2619d028dd740b9414f8a3160eee2cd
5f39146cc4f69d844dae22a12098479194fd6332
refs/heads/master
2022-12-18T02:20:39.828175
2020-09-25T05:39:20
2020-09-25T05:39:20
269,999,646
1
0
null
2020-06-06T14:06:19
2020-06-06T14:06:18
null
UTF-8
Python
false
false
1,668
py
import os # directorioActual = os.getcwd() # print(directorioActual) # CREACION DE CARPETA # os.makedirs("pachaqtecMPerez") # Lista todos los archivos en el directorio actual # directorio = os.listdir(".") # print(directorio) import shutil # Copiar un archivo de una carpeta a otra # archivoACopiar = "archivocopiado...
[ "perez_13lo@hotmail.com" ]
perez_13lo@hotmail.com
f13dd503a9b25ec0cf197860872374891737e452
24c84c5b93cd816976d370a99982f45e0d18a184
/ArraysProblem/Python/FindAllNumbersDisappearedinAnArray.py
25420fb3ce55ce8bdb7c4beb3f9a49d0977405c8
[]
no_license
purushottamkaushik/DataStructuresUsingPython
4ef1cf33f1af3fd25105a45be4f179069e327628
e016fe052c5600dcfbfcede986d173b401ed23fc
refs/heads/master
2023-03-12T13:25:18.186446
2021-02-28T18:21:37
2021-02-28T18:21:37
343,180,450
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
class Solution: def findDisappearedNumbers(self, nums): lst = [] if not nums: return lst m = max(nums) for i in range(len(nums)): print(i) if i+1 in nums: continue else: lst...
[ "purushottamkaushik96@gmail.com" ]
purushottamkaushik96@gmail.com
f1ff0402faa98eac1d68bcde8887767d13fc56b0
d5277c402d01ff4c68c073f65dab95290fa6d44e
/common/forms.py
b048bd657de23bb7a7c9f4cfa9f918d156c15770
[ "MIT" ]
permissive
huynhduyman/realestatecrm
b9c8b27405753b60c2e8a35c72146cd143c06d91
66fed5766f60260f45bff4f8ab58a895860d0d4a
refs/heads/master
2022-05-17T04:28:26.575837
2020-01-10T16:19:28
2020-01-10T16:19:28
232,336,823
0
0
null
null
null
null
UTF-8
Python
false
false
11,994
py
import re from django import forms from django.contrib.auth import authenticate from django.contrib.auth.forms import PasswordResetForm from common.models import Address, User, Document, Comment, APISettings from django.contrib.auth import password_validation from teams.models import Teams class BillingAddressForm(fo...
[ "huynhduyman@gmail.com" ]
huynhduyman@gmail.com
6a50aebb2ce0e653fed8fd6dce6072f20e52dad2
47243c719bc929eef1475f0f70752667b9455675
/bungeni.main/branches/sterch-issue734/bungeni/core/workflows/_actions.py
66c34fc27d3bf4947bb1e876aff19418c9569781
[]
no_license
malangalanga/bungeni-portal
bbf72ce6d69415b11287a8796b81d4eb6520f03a
5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d
refs/heads/master
2021-01-19T15:31:42.943315
2014-11-18T09:03:00
2014-11-18T09:03:00
32,453,405
0
0
null
null
null
null
UTF-8
Python
false
false
8,254
py
# Bungeni Parliamentary Information System - http://www.bungeni.org/ # Copyright (C) 2010 - Africa i-Parliaments - http://www.parliaments.info/ # Licensed under GNU GPL v2 - http://www.gnu.org/licenses/gpl-2.0.txt """Workflow transition actions. All actions with names starting with a "_" may NOT be referenced from th...
[ "jura.stakhiv@gmail.com@fc5d704a-7d24-0410-8c4a-57ddeba10ffc" ]
jura.stakhiv@gmail.com@fc5d704a-7d24-0410-8c4a-57ddeba10ffc
ce59e45ee8cddd99cedd8e16aefcff92641a326a
8214e7369f2b86f19602eaffe9e8072f336391bb
/tasks.py
e4ab65a9167e0813e7287c98ba19959386973525
[ "BSD-3-Clause" ]
permissive
pydev-git/cookiecutter_flask_docker
27dc47e69a957bd89aeb76db13cc0a08897cd467
0bbe0f366d0d8d914b02518c94f5ff75d03386b5
refs/heads/master
2021-06-01T11:30:30.912658
2016-07-27T08:05:18
2016-07-27T08:05:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Invoke tasks.""" import os import json import shutil from invoke import task, run HERE = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp: COOKIECUTTER_SETTINGS = json.load(fp) # Match default value of app_nam...
[ "sloria1@gmail.com" ]
sloria1@gmail.com
3db36797f51b902bc863db8e36d3511fa311c4f4
cd29d5109e725fe322cef424eddf43b0f3638663
/Homeworks/HW7/__init__.py
b7f6df8375ebfac38631410a7533a97ac314975c
[ "MIT" ]
permissive
alliemclean/MachineLearning_CS6140
0d3a7690dd184800ab8ad1c7d0605bcc5f72e0b1
ee5e7cefc125fe16ab30a33cd5e3bf8093042282
refs/heads/master
2021-05-30T06:55:10.928076
2015-12-15T15:01:53
2015-12-15T15:01:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,385
py
import inspect import warnings import collections import cython from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors import KernelDensity import numpy.linalg as la import numpy as np from scipy.spatial.distance import cosine from sklearn.metrics.pairwise import cosine_similarity import os import s...
[ "allison.macleay+csedu@gmail.com" ]
allison.macleay+csedu@gmail.com
e06215fdfb4e2456cf5f6f26ef24b108051d7371
cd9eb87e3e1b04e6f421377eff02514de05c98e2
/learn_SciPy/scikit-learn/User Guide/1. Supervised learning/1.10. Decision Trees.py
2e0907d0cc61331fa0146ca0c4f1677688f35028
[]
no_license
zhaojinxi/learn_python
45f116f9729bbf19d9bb4a574b06e0ec41f754dc
07b4a5a231e39b6d2c28f98e99a3a8fe3cb534c4
refs/heads/master
2021-06-05T22:00:02.528023
2020-03-22T04:19:22
2020-03-22T04:19:22
129,857,802
4
3
null
null
null
null
UTF-8
Python
false
false
1,079
py
import sklearn.tree import sklearn.datasets import graphviz #1.10.1. Classification X = [[0, 0], [1, 1]] Y = [0, 1] clf = sklearn.tree.DecisionTreeClassifier() clf = clf.fit(X, Y) clf.predict([[2., 2.]]) clf.predict_proba([[2., 2.]]) iris = sklearn.datasets.load_iris() clf = sklearn.tree.DecisionTreeClassifier() cl...
[ "super-string@outlook.com" ]
super-string@outlook.com
346bdc0ae36022127e9a167b7a8296499068ea96
4b3ede9feeb72ccca84ed1a4d9959fb7ef818d32
/hw/hw07/hw07.py
99a19f9e1da4109c90c977239751181cf1983179
[]
no_license
eqchen1024/cs61a
2e1936e969b769d64d17b2cccae96c222595ea64
6b98724923b65a399ac0e86b3fb08cbeb3f88cd6
refs/heads/main
2023-08-16T03:07:41.713360
2021-10-21T15:02:19
2021-10-21T15:02:19
398,767,958
1
0
null
null
null
null
UTF-8
Python
false
false
5,126
py
class Link: """A linked list. >>> s = Link(1) >>> s.first 1 >>> s.rest is Link.empty True >>> s = Link(2, Link(3, Link(4))) >>> s.second 3 >>> s.first = 5 >>> s.second = 6 >>> s.rest.rest = Link.empty >>> s # Displays the contents o...
[ "cdysbt@gmail.com" ]
cdysbt@gmail.com
d161f283b3cca035a2f287a0c8a03a93f697ae0f
50edd705fb055456c072cce631e9a5b7737b6082
/Doraemon/Model/mongopie.py
166ceb4c05c426821d36ffdcbbe8e19008f62cd6
[]
no_license
x0fengluo/Doraemon
829dd557ee90c74942ecb3ad2374de8dbf8c7e38
4f1915486f4d03d60401db7338dbd52df63953f5
refs/heads/master
2021-05-16T13:14:13.805073
2017-10-12T06:23:13
2017-10-12T06:23:13
105,358,872
0
0
null
null
null
null
UTF-8
Python
false
false
23,006
py
import os from urllib.parse import urlparse from datetime import datetime from pymongo import MongoClient, ASCENDING, DESCENDING from pymongo.cursor import Cursor from gridfs import GridFS from bson.objectid import ObjectId, InvalidId from collections import defaultdict import pytz def utc_now(): return datetime...
[ "x0fengluo@gmail.com" ]
x0fengluo@gmail.com
ab37819178678efc8832a481c7d0f60c89cf7dfe
c27e78d35cdc802e4790280c384a0f97acf636ef
/src/rulesTest.py
c7cda2cbd1a74e52e447aefbc5576b0f6f3b5dc3
[]
no_license
undersea/Special_Topic
99e424d9e443523a4d880ef478455bb75d7c82cd
7bf7ed2c92b864d99790b927965bad819bfb7cfb
refs/heads/master
2020-03-25T04:01:26.909441
2011-05-30T03:26:53
2011-05-30T03:26:53
3,587,506
1
0
null
null
null
null
UTF-8
Python
false
false
766
py
from unittest import TestCase, main from rules import Degree class TestRules(TestCase): def setUp(self): print "setUp" self.rules = Degree() pass def tearDown(self): print "tearDown" del self.rules pass def testAdd(self): count = len(self.rules.rule...
[ "terrasea@gmail.com" ]
terrasea@gmail.com
1c1b98d8fbc186621625663aa5a146ee1935590c
dabe85f4b2a6f683bfaa7decd358b2f282430350
/com.lxh/learning2/day003_branch/__init__.py
495e7143ee16c1f419387ed2c9e074171e671b28
[]
no_license
hnz71211/Python-Basis
e6d239df7bb2873600173d05c32c136c28cc9f4b
2893d0d3402ee0bfb5292e2f6409211845a88e26
refs/heads/master
2020-11-29T21:37:06.774000
2020-04-13T04:15:04
2020-04-13T04:15:04
230,220,833
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
# if else # 练习1:英制单位英寸与公制单位厘米互换。 value = float(input('请输入长度: ')) unit = input('请输入单位: ') if unit == 'in' or unit == '英寸': print('%f英寸 = %f厘米' % (value, value * 2.54)) elif unit == 'cm' or unit == '厘米': print('%f厘米 = %f英寸' % (value, value / 2.54)) else: print('请输入有效的单位') # 练习2:百分制成绩转换为等级制成绩。 score = floa...
[ "hxl71396812@gmail.com" ]
hxl71396812@gmail.com
379027171959b6bbee4347f0cb89c5c6d832fc9a
497309eaac79efb53ef52850e06979f4cb25e92a
/python/simple_oop.py
9e5692514b37a63ddff1aec533c61d50f5cfef07
[ "Apache-2.0" ]
permissive
mbdebian/code_kata_sessions
d154b4db5685eb8a465068cabeca813cd64dd228
2fed7f0517a455e3fdecf822a25f12fc962a0c15
refs/heads/master
2021-01-22T18:15:00.612563
2017-03-26T11:07:29
2017-03-26T11:07:29
85,070,334
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
# This is a messy playground for OOP concepts # This is a simple class class ClassA: def __init__(self): self.__id = 0 self.__name = "ClassA - Name" print("Class A - Instance") # Without annotations def getId(self): return self.__id def setId(self, id): self.__...
[ "mbdebian@gmail.com" ]
mbdebian@gmail.com
4698bbd10d6f9865b9e14c4ccd5f0c59b5bd7996
8f506513cb73d9bdb5dbdd9084aaba020b1efbea
/Course_1-Algorithmic_Toolbox/Week-1/Excercise_Challenges/2_maximum_pairwise_product/max_pairwise_product.py
16ef706e59671dba4d782c766223be8cf322274f
[]
no_license
KhanAjmal007/Data-Structures-and-Algorithms-Specialization-Coursera
1255ecf877ecd4a91bda8b85e9c96566fe6d5e4d
ab6e618c5d8077febb072091e80c16f5f1a15465
refs/heads/master
2023-03-21T04:18:04.580423
2020-07-11T07:18:06
2020-07-11T07:18:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
def max_pairwise_product(numbers): max1 = -999 max2 = -9999 for value in numbers: if value > max1: max2 = max1 max1 = value elif value > max2: max2 = value return max1 * max2 if __name__ == '__main__': input_n = int(input()) input_numbers = ...
[ "mokit.aust@gmail.com" ]
mokit.aust@gmail.com
f2f4d6b715cc9b11ba5174b51906804ad1a1ca7e
544cfadc742536618168fc80a5bd81a35a5f2c99
/tools/external_updater/base_updater.py
18d4435858c7a22b295ca26455f4abbaf44d16d4
[]
no_license
ZYHGOD-1/Aosp11
0400619993b559bf4380db2da0addfa9cccd698d
78a61ca023cbf1a0cecfef8b97df2b274ac3a988
refs/heads/main
2023-04-21T20:13:54.629813
2021-05-22T05:28:21
2021-05-22T05:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,590
py
# Copyright (C) 2018 The Android Open Source Project # # 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 ...
[ "rick_tan@qq.com" ]
rick_tan@qq.com
8a60ac27efacef9ede7031e89191f681aedcc704
48161ae6e9e1a328f1d4ccec84ccc2e63ca62b25
/device monitoring.py
c8135f7dabbc71c78eba89df33704d5d81304696
[]
no_license
palvai-harshitha/security
41808516d0f566f21487be9d864781d3159a35ab
a5b3e0a7fc3bec27561b857d3a1c2f8a04c0f223
refs/heads/main
2023-03-25T03:08:15.110561
2021-03-23T03:12:07
2021-03-23T03:12:07
350,562,619
0
0
null
null
null
null
UTF-8
Python
false
false
4,502
py
#Program for device monitoring import psutil import platform from datetime import datetime import logging # It is a package which is used for writting output in text files or log files logging.basicConfig(filename="details.txt", level=logging.DEBUG, format='%(message)s') def get_size(bytes, suffix="B"): "...
[ "noreply@github.com" ]
palvai-harshitha.noreply@github.com
701239eabc91846ae9b35569d9b7ffdbdb02071b
c33fdf05c788fcc48a3c237100cbd4ed6e7d70fd
/tests/test_bbf_records.py
e93389d4ae9ea9a53ce76edc1a8cb2ab57265e26
[ "BSD-3-Clause" ]
permissive
baldman/pybankreader
fb646675f54a1e8e0eb60168e2eef693a5449a0f
3a96d6c89e408a315ccb4f7e7a3c63325c347d2d
refs/heads/master
2021-01-21T21:39:13.347703
2016-05-09T15:58:44
2016-05-09T15:58:44
25,690,101
1
0
null
null
null
null
UTF-8
Python
false
false
5,771
py
import datetime from decimal import Decimal from pybankreader.formats.bbf.records import HeaderRecord, LockRecord, \ AdvmulHeaderRecord, AdvmulRecord, AdvmuzRecord def test_header_record(header_record): """ Try to load the header record and test that it actually loads it without exceptions """ ...
[ "tomas@plesek.cz" ]
tomas@plesek.cz