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
bdd19fb17c474f5eeaa628fb70529da272f562b7
e4bb81b29b21b29443a8138c7a64562b981275e8
/data/dataloader.py
5e8054ed2df8dbf103a4775ead7329b51eddd697
[]
no_license
DaKup/HandPoseShapeVAE
afc8a8fe400e5d030cc821cb371282237cf85530
6ca6a173810ad42a99ead355e719606e17d8c832
refs/heads/master
2022-12-03T22:47:55.400480
2020-08-09T16:54:14
2020-08-09T16:54:14
284,481,182
3
0
null
null
null
null
UTF-8
Python
false
false
3,545
py
import sys import os from pathlib import Path import numpy as np import torch from torch.utils.data import DataLoader from torch.utils.data import TensorDataset from data.importers import MSRA15Importer from data.dataset import MSRA15Dataset, MSRA15ImporterWrapper from util.handdetector import HandDetector def cr...
[ "daniel.kup@student.tugraz.at" ]
daniel.kup@student.tugraz.at
41b62148741f8eeacc4cd75923e3221f352c447a
a164516eedade96dfa6b7ddf9f58c07bc34f0d7d
/portfolio/settings.py
680bcc918481899585ad347cb93a3ca5c178fc5c
[]
no_license
Kumar-Roopak/portfolio-project
d728632fb926a7085569da91de0311cac4e5fd14
dee575fe007da49751cff5ec9f5088461323017f
refs/heads/master
2020-04-02T01:04:41.694807
2018-10-19T22:21:03
2018-10-19T22:21:03
152,787,092
0
0
null
null
null
null
UTF-8
Python
false
false
3,513
py
""" Django settings for portfolio project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os ...
[ "kum17003@byui.edu" ]
kum17003@byui.edu
ae132d5fb1641981f5167a9e88f4f1b5237558fb
8682252f94375ab0300499ba1e1b412790369519
/cryptoblotter/trades/utils.py
9b7554ee31239a4b70934ddf2330d9701890b376
[ "MIT" ]
permissive
PAV-Laboratory/cryptoblotter
713e245f8343980b9de3c7290c9a29b4baa768de
f573592a3638fbc6cae24d76305de36b932949c6
refs/heads/main
2023-04-21T01:03:24.934536
2021-05-04T00:15:57
2021-05-04T03:23:43
391,418,996
1
0
MIT
2021-07-31T17:14:37
2021-07-31T17:14:37
null
UTF-8
Python
false
false
762
py
from decimal import Decimal def decimal_to_str(data: dict): for key, value in data.items(): if isinstance(value, dict): data[key] = decimal_to_str(value) elif isinstance(value, list): for index, v in enumerate(value): if isinstance(v, dict): ...
[ "globophobe@gmail.com" ]
globophobe@gmail.com
c48dfebf64c01e9992f83ddc243026953d873e31
312fae7e287682d1eba7bf43e65bdfeff2e33e6a
/APIServer/commons/form_api.py
6ae70295e081e88832049c63d9db7968e25a43df
[ "MIT" ]
permissive
gcallah/socnet
3ae9582a7d8d3871806c2820efb1b13a2e4f747a
dd8f0894e8ed071df7f78f3b61dddc7d5cf7be61
refs/heads/master
2023-02-26T07:02:34.517851
2020-07-27T14:21:22
2020-07-27T14:21:22
208,861,159
1
1
MIT
2023-02-16T08:31:29
2019-09-16T17:44:56
Python
UTF-8
Python
false
false
627
py
from APIServer.commons.api_utils import read_json def get_alert_form(path): return read_json(path) def create_alert_json(alert_tuple): ''' Create alert_json from an alert tuple ''' alert_json = {} alert_json['datetime'] = alert_tuple[1] alert_json['zipcode'] = alert_tuple[2] alert_js...
[ "wm1065@nyu.edu" ]
wm1065@nyu.edu
cb5d8e1a4128394cd188b847c0d6f216a6f30120
d3ae46a2d5277574ce14539f7adbcb961d05e7ca
/version/bin/wheel
e1d092ecd632e75cdc68f8c00693ebb066f6b5c3
[]
no_license
muw2/CS1XA3
b8f65c4a6569fb5db42902812193b4be945964e4
934afe2361f868e331d666353d32a129f1056e64
refs/heads/master
2020-04-20T03:30:41.073572
2019-04-25T04:32:52
2019-04-25T04:32:52
168,251,805
0
0
null
null
null
null
UTF-8
Python
false
false
233
#!/home/muw2/CS1XA3/version/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "muw2@mcmaster.ca" ]
muw2@mcmaster.ca
5a48ce3402299b837458ddeb22dfd7fda978291b
2102d034f9a53835b33434c5270302f3c047d7b3
/backend-scv/api/scripts/installtools.py
2da79645ccf30cb3c00f01fcb3de6d8a61847a38
[]
no_license
fdemian/scv-react-test
acd9614f52f142066034594a5b48386dbaba2831
66550fa75c88e1be5dd70678e13fb3a9acd3179e
refs/heads/master
2023-08-28T17:32:52.455364
2021-10-28T21:53:14
2021-10-28T21:53:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
import sys from subprocess import call script_path = "api/scripts" def install_packages(requirements_file): return_code = call([sys.executable, '-m', 'pip', 'install', '-r', requirements_file]) if return_code is not 0: raise Exception("unable to install one or more packages") def call_scripts(script...
[ "federicodamiancaminiti@gmail.com" ]
federicodamiancaminiti@gmail.com
49fd48e6fbab74f7981b53f6c31fe6d3c3620d30
0e822323071d972c4a2a8b3c4e778a9144b2b5b4
/databuilder/models/table_source.py
d0b7156e4977073bb77abd81647e5fcfdba70777
[ "Apache-2.0" ]
permissive
duyet/amundsendatabuilder
f3bed53c93d19bfda5ae7df1bd456214e442012f
21a763add3c00c34b4f4c2d9809f59e50fb264c8
refs/heads/master
2023-04-09T05:08:07.816951
2020-07-01T16:34:56
2020-07-01T16:34:56
277,763,943
0
0
Apache-2.0
2023-04-03T23:05:59
2020-07-07T08:43:44
null
UTF-8
Python
false
false
3,940
py
from typing import Any, Dict, List, Union # noqa: F401 from databuilder.models.neo4j_csv_serde import Neo4jCsvSerializable, NODE_KEY, \ NODE_LABEL, RELATION_START_KEY, RELATION_START_LABEL, RELATION_END_KEY, \ RELATION_END_LABEL, RELATION_TYPE, RELATION_REVERSE_TYPE from databuilder.models.table_metadata imp...
[ "noreply@github.com" ]
duyet.noreply@github.com
43f5d197c6188ed85aa8adfb2c0b9986d4d53085
d73d0268aa090cdd08497145fa48619ffb0ef01a
/APIdashboard/models.py
709e54101f394f2d223f5ca936d8b595712f3594
[]
no_license
kademanec/apimanager
de94e65b61b79ae53f39ed50823b20db8b484c13
84bc2b0e492f7fb0ae722aff1eef2ffa4998d13b
refs/heads/master
2020-08-07T00:22:48.938687
2019-10-07T08:09:20
2019-10-07T08:09:20
213,217,795
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class APIs(models.Model): name = models.CharField(max_length=200) link = models.CharField(max_length=200) requesting = models.TextField(null = True) def __str__(self): retur...
[ "kademanec@gmail.com" ]
kademanec@gmail.com
4007333f9e30962bcb94d603eb1809a924de0442
e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3
/0463 Island Perimeter.py
86247af9f1d30d1779eefb1f33573fa65d92750a
[ "MIT" ]
permissive
kevin-fang/leetcode
2744ff01e791db6f60edf946ef71451fae92ef6f
3958f888b30bb3e29916880ecec49b3870a0bea3
refs/heads/master
2022-12-15T07:50:01.056016
2020-09-10T03:47:53
2020-09-10T03:47:53
294,296,037
3
0
MIT
2020-09-10T03:47:39
2020-09-10T03:47:38
null
UTF-8
Python
false
false
510
py
class Solution: def islandPerimeter(self, grid: List[List[int]]) -> int: ans = 0 for y in range(len(grid)): for x in range(len(grid[0])): if grid[y][x] == 1: ans += 4 for dy, dx in [[1,0], [0,1], [-1,0], [0,-1]]: ...
[ "mdabedincs@gmail.com" ]
mdabedincs@gmail.com
21b207fd26fd58a3a0685aa18e3709c83c8aa764
598ab0b2211db7c808c14c2b83293c84fb9d546d
/comma_code.py
4116427975bd0499532d8f03a2c0b6cb2b5d089d
[]
no_license
mojeedkusimo/comma-code
2d39e6736432213d64ab6145f73a75203349da50
7869cb0c0be472bce8c389ded50ca6ce71b70fb5
refs/heads/master
2021-09-23T23:36:06.789418
2018-09-29T08:47:17
2018-09-29T08:47:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,656
py
print ("This program takes in any food item you input and displays it in an organised manner") print ("Hello there! Can you please enter your name?") user = input () print ("Welcome!",user) while True: def food (items): # a function is defined with "item" as the single parameter no_of_items = 0 # a ...
[ "noreply@github.com" ]
mojeedkusimo.noreply@github.com
8358005976800dd1cebd8e9f73b7c7a21511b505
4e879e994720100a9354895af2bb9be33b38a42b
/xUdemy_xlwings/S4_MontecarloSimulation_Part_1/S4_32_Simple_MonteCarlo_Simulation_01.py
7e59f365bbe892740b7a699368b2e2c7ab95f061
[]
no_license
pepitogrilho/learning_python
80314ec97091238ed5cc3ed47422d2e6073a3280
bbdc78a9a0513c13d991701859bcfe7a8e614a49
refs/heads/master
2023-04-09T15:07:08.866721
2023-04-02T18:45:47
2023-04-02T18:45:47
230,527,165
0
0
null
null
null
null
UTF-8
Python
false
false
1,289
py
# -*- coding: utf-8 -*- """ """ import xlwings as xw import numpy as np import matplotlib.pyplot as plt app = xw.apps.active #Open workbook wb = xw.Book("real_estate.xlsx") inp = wb.sheets[0] #Define ranges inp["D20"].name = "cpi" inp["D25"].name = "ppf" inp["D40"].name = "cost" #inp["G24:G25"].name = "performance"...
[ "pepitogrilho@gmail.com" ]
pepitogrilho@gmail.com
2033c29c81fe3f673e5a257fd45f89870796a944
1a87d286396a2c6f6b6ac7c53495f80690836c7b
/CTCI/CTCI_4_4_buildListOfNodeAtSameDepth_method2.py
4fe9d49e79cb791b7a53cb0e8efdca5d0ca95c4d
[]
no_license
kickbean/LeetCode
14d33eea9dd70821114ca6d7e1a32111d4d64bf0
92e4de152e2aae297ef0e93c9eea61d7ad718f4e
refs/heads/master
2016-09-10T14:38:33.692759
2014-04-08T00:26:51
2014-04-08T00:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
''' CTCI 4-4 Given a binary search tree, design an alghrithm to create a linked list of all the nodes at each depth Algorithm: breath first search and record the level of each node Created on Nov 28, 2013 @author: Songfan ''' from queue import Queue from buildListOfNodeAtSameDepth_4_4 import LinkedList, BST ''' BFS...
[ "songfan.yang@gmail.com" ]
songfan.yang@gmail.com
35d2a69ebef931e4686710e2468cd9fc63e8d523
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03485/s456539182.py
60831196a61282637ddaf30b97852a9b0b19c178
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
import sys def input(): return sys.stdin.readline().strip() def resolve(): a,b=map(int, input().split()) print(-(-(a+b) // 2)) resolve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9d27dc2a1cb0b24902ffe100874c06eea38b133f
408520088af1a66631bca4f7340256e28f3a4f7e
/pset6/credit/credit.py
ce030d32bb1eea9831e68f24795780949f6174fe
[]
no_license
pidus/cs50
a00d903ef6a33d710e2109fc61bfe566f65a396d
55e7e9053a7a4a339ae3d5cd2b2830e1a3e6630c
refs/heads/master
2023-02-08T19:54:56.569014
2020-12-31T17:09:03
2020-12-31T17:09:03
315,669,764
1
0
null
null
null
null
UTF-8
Python
false
false
975
py
from cs50 import get_int #get card number from user def get_valid_input(): uin = get_int("Number: ") while uin < 0 or uin > 9999999999999999: uin = get_int("Number: ") return uin card = str(get_valid_input()) length = len(card) #Luhn’s Algorithm luhn = 0 #every other digits starting w/ 2nd to las...
[ "8981437939@pm.me" ]
8981437939@pm.me
b5e976203b2ada9312a2989842387bba512a0df5
7bb4ad7008304ed53e41c405e23a7374e5183490
/svr.py
2994a37b0ffa43f046deb81752fbd8b1a16c580e
[]
no_license
naveen700/Support-Vector-Regression
a514148940c126549a2c67c1ca8e524e20017ffd
bdad0b7b6cae29fdf237c57db844b4860f70bd64
refs/heads/master
2020-05-18T05:26:38.793692
2019-05-02T07:15:08
2019-05-02T07:15:08
184,207,261
1
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
# SVR # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Position_Salaries.csv') X = dataset.iloc[:, 1:2].values y = dataset.iloc[:, 2:3].values # Splitting the dataset into the Training set and Test set """from sklearn.cros...
[ "naveen.rana@deeplogictech.com" ]
naveen.rana@deeplogictech.com
1fef2f313e198ebc6f4223b0473b33d66de7a432
4c839dfe650b992b4d4927d8b47c5a1745c6e904
/app_hello.py
6c84696806cd3421bab959a173152e0d4449664c
[]
no_license
JThanat/femto-mesos
98c205aa3d1dbd6f8bba6a2bd0299214da838b06
e7b989b0fb7ae4ff4a66ec92a4d97e29fcec4918
refs/heads/master
2021-05-23T05:29:50.842680
2017-11-29T01:06:16
2017-11-29T01:06:16
95,017,728
4
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
#!/usr/bin/env python # This main is adapted from APACHE Mesos original test_framework.py import json import os import sys import mesos.native from mesos.interface import mesos_pb2 from framework.framework import HelloWorldScheduler from framework.job import Job if __name__ == "__main__": # Read JSON File j...
[ "thanat.jat@gmail.com" ]
thanat.jat@gmail.com
94e887a5648716db788c45167f576b57c0e028f2
d0f11aa36b8c594a09aa06ff15080d508e2f294c
/leecode/1-500/1-100/42-接雨水.py
691adfc3090fd9501f149077778714d19403a479
[]
no_license
saycmily/vtk-and-python
153c1fe9953fce685903f938e174d3719eada0f5
5045d7c44a5af5c16df5a3b72c157e9a2928a563
refs/heads/master
2023-01-28T14:02:59.970115
2021-04-28T09:03:32
2021-04-28T09:03:32
161,468,316
1
1
null
2023-01-12T05:59:39
2018-12-12T10:00:08
Python
UTF-8
Python
false
false
292
py
def trap(height): ans = 0 h1 = 0 h2 = 0 for i in range(len(height)): h1 = max(h1, height[i]) h2 = max(h2, height[-i-1]) ans = ans + h1 + h2 - height[i] return ans - len(height)*h1 height = [0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1] print(trap(height))
[ "1786386686@qq.com" ]
1786386686@qq.com
0904d4495354c4ddfd0df4dc2ce7126c46b98949
8ffc004ca05591278cb5f2dea150b74594a2f45d
/baseline/lib/callbacks.py
a8448a9c353b4fca5907ae5798381eb6dd28e0dd
[ "MIT" ]
permissive
Ravirajadrangi/predicting-paraphrases
5e59e18f7006d2f68a22540aef0318adc2be0e68
348c99c943d9169b8d5ced043c1ae6119e390b27
refs/heads/master
2021-01-15T19:14:15.592922
2017-03-18T05:49:11
2017-03-18T05:49:11
99,812,721
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
import keras from models.paraphrase import SiameseParaphrase class ParaphraseCallback(keras.callbacks.Callback): """Run the paraphrase model to test accuracy""" def __init__(self,train_inputs,train_labels,test_inputs,test_labels): self.train_left = train_inputs[:,:,:,0] self.train_right = trai...
[ "maxkferg@gmail.com" ]
maxkferg@gmail.com
e58374bf9aa04da228a0242c6429794fc458b7bd
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j03230-2945/sdB_GALEX_J03230-2945_coadd.py
2027385d6aa7d7738f0c0def398550be993ebdf8
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[50.76725,-29.758464], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J03230-2945/sdB_GALEX_J03230-2945_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCUR...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
1a32bd9e6b7fb5c4f46187766b732e3db8f7d753
da302ba0c71722591fb19ceeb24bb1f9d60b128a
/text.py
4189183f68dd294cc99a022df066d84c903427dc
[ "MIT" ]
permissive
shagabutdinov/sublime-context
f4352b8126645f23a11465cc70ab6dd52588200b
2a088a4dd9d7d516ed49f4d1bd85696fa6ecc2d4
refs/heads/master
2020-04-05T23:29:09.439470
2016-10-25T10:47:27
2016-10-25T10:47:27
24,747,150
4
1
null
null
null
null
UTF-8
Python
false
false
3,690
py
import sublime import sublime_plugin from Context.base import Base class Selection(Base): def on_query_context(self, *args): callback = lambda view, sel: view.substr(sel) return self._check_sel('selection', callback, *args) class LineB(Base): def on_query_context(self, *args): callback = lambda view,...
[ "leonid@shagabutidnov.com" ]
leonid@shagabutidnov.com
357c3e80a1db4ce379c01c1f50edcb5735a608aa
26eeab4b8c472a9b65897a30bc7c6779b4c418e8
/2_Data Wrangling/assignment2.py
b4e6f324ad9c30f1194fcc060c39605ede41309f
[ "MIT" ]
permissive
gaurprabhakar94/Dat210x
3c187e779c7e77cb51499e23c79fce5f1f5efd38
06fe3c2a4354c7eaba3215ecddf9ed9c47cca8e3
refs/heads/master
2021-01-01T20:31:52.740756
2017-07-31T13:48:02
2017-07-31T13:48:02
98,882,592
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import pandas as pd import os os.chdir('Datasets') # Loading up the dataset # df = pd.read_csv("tutorial.csv", sep=',') print(df) print("\n") # Printing the results of the .describe() method # print(df.describe()) print("\n") # Indexing the dataframe with: [2:4,'col3'] # and then printing the value print(df.loc[2...
[ "noreply@github.com" ]
gaurprabhakar94.noreply@github.com
f20e69a54e2028b1df280af140d788ce4bcb2e16
6284b810dc0d23b7735bf988bbeaa84f5d5f9f49
/src/models/train_model.py
ad436da4a89db35c3bb7136a72f815693a4037e4
[ "BSD-3-Clause" ]
permissive
Lewuathe/TensorFlow-StyleTransfer
5985fa3b606b6cb8b0d6ce29c6148eb93fcbd4bb
8ef95003c395c7130492a6af5a982f02aa199fa3
refs/heads/master
2020-12-25T18:52:41.651940
2017-06-11T13:34:57
2017-06-11T13:34:57
94,006,269
1
0
null
null
null
null
UTF-8
Python
false
false
7,885
py
#!/usr/bin/env python """ An implementation of the paper "A Neural Algorithm of Artistic Style" by Gatys et al. in TensorFlow. Author: Chip Huyen (huyenn@stanford.edu) Prepared for the class CS 20SI: "TensorFlow for Deep Learning Research" For more details, please read the assignment handout: http://web.stanford.edu/...
[ "lewuathe@me.com" ]
lewuathe@me.com
04776e04755c2c4f4f926f7ed79f83f4d9408b92
ff5892487c262ce845a9996a282d3a2fdb1a3b15
/URI_1277.py
fac88b7da4e486a86591fdb123b779e70dc235a8
[]
no_license
dankoga/URIOnlineJudge--Python-3.9
d424a47671f106d665a4e255382fc0ec3059096a
f1c99521caeff59be0843af5f63a74013b63f7f0
refs/heads/master
2023-07-15T08:32:11.040426
2021-09-03T13:27:17
2021-09-03T13:27:17
393,991,461
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
tests_qty = int(input()) for t in range(tests_qty): students_qty = input() students_names = list(input().split()) students_attendance = list(input().split()) students_failed = [] for s, attendance in enumerate(students_attendance): presences = attendance.count('P') medicals = attenda...
[ "dankoga2@gmail.com" ]
dankoga2@gmail.com
610e7c734f888cd0e10fa65dc899e1ba33ad5f76
84d97077cf9f297faeb94d88d460c6fd486cc648
/sub_py/maxwellian.py
1f8e47b118e0d8a6eb969a25ae5ec43f86b57880
[]
no_license
jacksontvd/optimization
0ac12819acb091e6322d36f8eec183df0281dca6
e33b42fb1ce5dcd456d4db625b52f3097ef3edc2
refs/heads/master
2021-05-14T18:10:41.640978
2019-08-13T17:46:20
2019-08-13T17:46:20
98,315,558
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
import numpy as np from ranges import * def Maxwellian(e,T): return np.sqrt(e)*np.exp(-e/T)*(2/np.sqrt(np.pi)/np.sqrt(T)/T) vMaxwellian = np.vectorize(Maxwellian) egrid = np.array(mannhart_bins) degrid = egrid[1:]-egrid[:-1] def MaxwellianSpectrum(T): egrid = mannhart_bins # np.logspace(-3,2,bin_number...
[ "jacksontvd@jacksons-MacBook-Pro.local" ]
jacksontvd@jacksons-MacBook-Pro.local
417eb43445bf9c1c7d3bf9e002da3c3710411639
639c0b542b581463eac228b82707452527a151af
/EmotionalAIchatbot/EmotionAIChatbot/urls.py
4de444d482ee6905da0c987734fa5b245dd3140f
[]
no_license
latifyahia/EmotionAIChatbotProject
7ccf5f7399aa3412965ef1883b47d9e39ff972cf
e2b5a1802cab4bf5b6f9cb62bad43d2ab4b56ed8
refs/heads/master
2023-04-29T07:21:13.488221
2021-05-15T03:34:48
2021-05-15T03:34:48
319,690,700
1
1
null
null
null
null
UTF-8
Python
false
false
1,350
py
"""EmotionAIChatbot URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "latifyahia98@gmail.com" ]
latifyahia98@gmail.com
40c2d795c844c13a65815ddcff61807f4bf6f366
e70c7a33b037f021460a7ba39941119b997561e5
/delete.py
0328d1a0ec5355f99357d8bacd78e1835887d835
[]
no_license
ishikavyas18/Python_Basic
ad38e5fbeb6b952294e231d7319757b65212f754
c163a9a9b885d07aae5b665eb3807c02fb514a31
refs/heads/main
2023-04-03T10:15:45.993095
2021-04-08T06:56:31
2021-04-08T06:56:31
355,451,141
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
#create an array with 5 element and delete the value at index 2 without built in function from array import * arr=array('i',[]) n=int(input("enter length :")) for i in range(n): x=int(input("enter next element :")) arr.append(x) print("array is :",arr) arr1=array('i',[]) del_element=int(input("e...
[ "noreply@github.com" ]
ishikavyas18.noreply@github.com
67ec508d63e4b2973ed2137e74fa0e57033e6343
2c74bb301f1ed83b79254944183ac5a18a639fdf
/homeassistant/components/litterrobot/vacuum.py
55f0a182959c463662df3f53afc4fe8e177d87a6
[ "Apache-2.0" ]
permissive
Adminiuga/home-assistant
5bec93007ddac1a268cc359bf7e48530c5f73b38
dcf68d768e4f628d038f1fdd6e40bad713fbc222
refs/heads/dev
2023-02-22T22:03:31.013931
2022-11-09T00:27:20
2022-11-09T00:27:20
123,929,062
5
4
Apache-2.0
2023-02-22T06:14:31
2018-03-05T14:11:09
Python
UTF-8
Python
false
false
4,671
py
"""Support for Litter-Robot "Vacuum".""" from __future__ import annotations from datetime import time from typing import Any from pylitterbot import LitterRobot from pylitterbot.enums import LitterBoxStatus import voluptuous as vol from homeassistant.components.vacuum import ( DOMAIN as PLATFORM, STATE_CLEAN...
[ "noreply@github.com" ]
Adminiuga.noreply@github.com
52beb2eee386d8bea800f040b68e68ef55ac4084
c258135c1fd1e877d7ac76b7da7b287d79ac4ccf
/lists/migrations/0003_auto_20210217_0938.py
19a2c6ba61da21944607c0b24338d250c4571c9d
[]
no_license
soo4767/airbnb-clone
5cccbcb63da2b8ed7e755aa784e5b81a62e35e0a
beded0d68d00625153997766584032453dc330e0
refs/heads/main
2023-07-18T11:20:34.824337
2021-09-02T08:23:44
2021-09-02T08:23:44
342,242,760
2
0
null
null
null
null
UTF-8
Python
false
false
423
py
# Generated by Django 2.2.5 on 2021-02-17 00:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lists', '0002_auto_20210217_0933'), ] operations = [ migrations.AlterField( model_name='list', name='rooms', ...
[ "soo4767@naver.com" ]
soo4767@naver.com
4dceba75990c87e8d1ab82a0f615d6313bafbec9
5e4f9cf736b6b3cbc7c3bf300ebf15f19f5514a9
/openelections/settings_prod.py
5dbc0db30e500433e9e0866b4d425bd10ba0c5eb
[]
no_license
rawbeans/elections
1cb2df081ce3a24c68f073e1778051cc431038bf
1be01c82e77ad4c80420cd05b6c189ee0743ba30
refs/heads/master
2016-09-08T00:40:12.086208
2014-04-01T00:33:37
2014-04-01T00:33:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
from settings import * DEBUG = False TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'elections_db', 'USER': 'mysql_user', 'PASSWORD': '398hudb4s{}DSg' } } MEDIA_ROOT = '/home/admin-elections/elections/media' BALLOT_ROOT = '/home...
[ "root@debian" ]
root@debian
22d2f2c04e720558e3006f9a711d7f1ec1fdcd0d
815150729f61f5909f271d78cf4f484952a09667
/models.py
606ff69f02cfe0b6d8253d6e4185ca7904213756
[]
no_license
sanket0024/MapApp
7c2c092a784fbabd47c26694019402eba2a02f8c
1a34c004b823930d08754451bd0df5241b41c69d
refs/heads/master
2021-05-09T05:01:18.949613
2018-02-11T04:15:11
2018-02-11T04:15:11
119,296,379
0
0
null
null
null
null
UTF-8
Python
false
false
1,685
py
from flask_sqlalchemy import SQLAlchemy from werkzeug import generate_password_hash, check_password_hash import geocoder import urllib2 import json db = SQLAlchemy() class User(db.Model): __tablename__ = 'users' uid = db.Column(db.Integer, primary_key = True) firstname = db.Column(db.String(20)) lastname = db.Co...
[ "mathur.s@husky.neu.edu" ]
mathur.s@husky.neu.edu
05aabec82a097f5660414b1d9190028b0779cf8f
f3b66c071fb97ae17690ad0e8dc17efa8ae01637
/python-selenium-pytest-allure/test_example.py
900092c5b56a41554e2355ff5cf34d0636ff7aea
[]
no_license
unickq/test-automation-example
054d8e4e68ce23abb9ef31403195e390e452db5a
54071fae28d00176f9adf01f9514b6b7e7fc4587
refs/heads/master
2023-03-05T21:57:33.575595
2019-07-12T10:50:40
2019-07-12T10:50:40
193,077,100
2
1
null
2023-03-03T01:30:05
2019-06-21T10:10:43
JavaScript
UTF-8
Python
false
false
936
py
from selenium import webdriver from selenium.webdriver.common.keys import Keys import pytest import allure @pytest.fixture def chrome(request): global driver driver = webdriver.Chrome() driver.maximize_window() yield driver if request.node.rep_call.failed: allure.attach(driver.get_screen...
[ "nicktestqa@yahoo.com" ]
nicktestqa@yahoo.com
6946c2d1d8de914fdba20d32e69dd195cb172215
3891b3b89d6863c395608af5e5bbd0c8ba6eb02b
/server/src/repository/eventmongorep.py
51ebd28b3c5e66229a057c1fcace101f59f7d310
[ "MIT" ]
permissive
rickie95/MTG-coordinator
d031f19de891af37f6d8c95aa87df71b6e244cc3
fe3403a8a6b24d966b20ffb8261c60aadd0abde0
refs/heads/master
2022-02-26T11:17:35.576408
2022-02-15T07:29:53
2022-02-15T07:29:53
230,934,786
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
class EventMongoRepository: database_address = "localhost" def __init__(self): self.client = "Opens a connection with mongo" def add_event(self, event): pass def remove_event(self, event): pass def update_event(self, event): pass
[ "Riccardo Malavolti" ]
Riccardo Malavolti
f829289503872b6c211b8e36cdaff49797ef8a2d
4a73aa4a14c207a39648e73f1f07c9f0b7348936
/pca.py
470c4338bb0e2c63581d8f462610120f6e583b3d
[]
no_license
nicktimko/penny-project
6058e9d7496fb916963698a188e92dde21947a4b
2e0941ef02691b92ea652c7206017fa974f38416
refs/heads/master
2021-08-22T17:12:41.442809
2017-11-30T19:09:04
2017-11-30T19:09:04
112,648,543
0
0
null
null
null
null
UTF-8
Python
false
false
6,418
py
#!/usr/bin/env python # from http://stackoverflow.com/a/2629704/194586 """ a small class for Principal Component Analysis Usage: p = PCA( A, fraction=0.90 ) In: A: an array of e.g. 1000 observations x 20 variables, 1000 rows x 20 columns fraction: use principal components that account for e.g. ...
[ "prometheus235@gmail.com" ]
prometheus235@gmail.com
a0e4c303efc08dfcd95ce2ebc3bdcb5f9c2dc0ff
31cfeca70ca2208a6a09deaaaf9198d612e826cf
/face lock on laptop/sms.py
05ff067aee7ef5a8e6c14c0045223d1732862909
[]
no_license
anchalmehta567/facelock-on-laptop-with-sms-alert
78255871f06eec85e444c2bbbdb4471e792cd2dd
00aa6eec1e4bb4448de7181c0afbb181bb6641c7
refs/heads/main
2023-02-09T21:33:21.825801
2021-01-12T11:05:24
2021-01-12T11:05:24
328,958,971
0
1
null
null
null
null
UTF-8
Python
false
false
648
py
import requests import json def sendsms(): url = 'https://www.fast2sms.com/dev/bulk' params = { 'authorization': 'noyaAWs9wUgpJtGvhK50PN8r1dY3CiEqTkbFMeS7OR2ZjxQ4ufW9FG8NcOCfX35yLS1d0ta4rewVsBIz', 'sender_id': 'FSTSMS', 'message': "Alert! Someone aunthenticated user ...
[ "noreply@github.com" ]
anchalmehta567.noreply@github.com
ce0ccdaa17279ed85c5b90ef3cec04693655c84c
1572a5ce5acf8e67de4653308200be98a4cd1ffa
/user/migrations/0002_auto_20210328_1256.py
b58829088b647d1c4b584497f7698b11c22df36c
[]
no_license
shourygupta28/hacko-40-team_titans
9481c7db1114bb355ab4699709c7153ad19442eb
b72294240cce6819463b4975a1fd167af65b08be
refs/heads/main
2023-03-29T07:53:47.333891
2021-04-01T12:05:21
2021-04-01T12:05:21
351,955,989
3
0
null
2021-04-01T12:05:21
2021-03-27T01:40:02
HTML
UTF-8
Python
false
false
779
py
# Generated by Django 3.1.7 on 2021-03-28 07:26 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='user', na...
[ "ngupta_be19@thapar.edu" ]
ngupta_be19@thapar.edu
c97fff87f7c26440db1bdb2a815a2eaa3c4b974e
eb76de661f71ea8ac7fe32d3eec5c936b9ec6393
/day5.py
5924c7952a7cb3dff46222a7907f43bf994da74d
[]
no_license
zzwerling/Advent-Of-Code-Zach-2018
6f3c7ad5c851410c5302ce55de54c8176881f5b5
fc14ead4fa1a696b902ff0b5e2f750135e6553c7
refs/heads/master
2020-04-10T00:55:21.966785
2018-12-24T02:09:24
2018-12-24T02:09:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,084
py
from collections import defaultdict import time def day5part1(): with open("day5demoinput.txt","r") as day5input: s = list(day5input.read()) running = True while running: indices_to_remove = [] for i in range(0, len(s)-1): if reaction(s, i, i+1): ...
[ "noreply@github.com" ]
zzwerling.noreply@github.com
94222f8915f338f516fd10108308b2f667e5785f
0b8c83d28294bbf708585b44065776ad13895abd
/leadmanger/djangogram/djangogram/users/urls.py
8e888f93481a372e530f39dcba7d2a3ee1e87923
[ "MIT" ]
permissive
chaSJ2112/web_Django
2a1613f531d7d3e8e34db7e486f63ebb3ae4c5e7
e9fa7ad7e5a952eaa601aa420f0d8a31d774c7b8
refs/heads/main
2023-06-25T04:13:06.032679
2021-07-27T14:17:36
2021-07-27T14:17:36
386,592,108
1
0
null
null
null
null
UTF-8
Python
false
false
209
py
from django.urls import path from . import views app_name = "users" # views에서 main함수 호출 urlpatterns = [ path('', views.main, name='main'), path('signup/', views.signup, name='signup'), ]
[ "71691834+chaSJ2112@users.noreply.github.com" ]
71691834+chaSJ2112@users.noreply.github.com
4d2f22cd2a93f8461925aed411d0c93d30f4f95b
ae6c4d72ba0b46fb525f749adb076b009b0842f1
/venv/Scripts/django-admin.py
e9fe348a13e2142eca5e7e5e4a3b1f7b8b945f5f
[]
no_license
daria-darina/education1
35fb8b1dccf8bf61d19df0923b1dd2343ccba44c
093f864e049e2490276dd47654fac1011d8333c8
refs/heads/master
2022-08-13T19:19:11.735704
2020-05-16T09:04:12
2020-05-16T09:04:12
263,017,980
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
#!c:\users\tom\education\venv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "dasha.luckina2015@yandex.ru" ]
dasha.luckina2015@yandex.ru
f9a56a6585ea5dd3a31979189766a5a2c642fccd
b6e0acd984d0b739ebf7b2f6a5b9fc39cd66b1ee
/escola/migrations/0012_auto_20210630_2028.py
8793774f81a59a078020756431253394f17ca11d
[]
no_license
isabellebussmann/test_ies2
215d14b7ba75c2a67d783f88de8cb56ef6060f4a
aeb61addd07f43eb82f88e87bd809aaa9cc0907f
refs/heads/master
2023-06-15T09:24:00.201655
2021-07-10T01:46:58
2021-07-10T01:46:58
383,865,980
1
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Generated by Django 3.2.4 on 2021-06-30 23:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('escola', '0011_auto_20210630_1707'), ] operations = [ migrations.RemoveField( model_name='pergu...
[ "isabellebussmann@hotmail.com" ]
isabellebussmann@hotmail.com
b36c954f93245e8ae824e025a25379ee7b666823
9ca20119e9347576431fc587d0e4c742ea4d45af
/app/auth.py
5dbc836e1d6c6141b7b5362bc810e77e929be2c1
[]
no_license
YimingDou/ShopifyBackendChallenge
43fcad4fd2a6dfc954245dd8b0ba5f924ef4b303
86e9f154e0ec70a11b354ac5b409299eb2255281
refs/heads/master
2022-12-09T23:23:03.647974
2020-09-11T00:13:06
2020-09-11T00:13:06
294,547,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
from flask import Blueprint, request from flask_jwt_extended import create_access_token from functools import wraps from sqlalchemy.exc import IntegrityError from responses import error_response, token_response, success_response from model.user import User from model.common import db MISSING_JSON = "Missing JSON" MIS...
[ "y5dou@uwaterloo.ca" ]
y5dou@uwaterloo.ca
d8ae8d8746b20a062a25abfe7a48d4c53b3410fd
f6376348b154ca1d43eafb271f7cf463d8a83d86
/utils/gsn_argparse.py
ce5326094025b3bd2a391276170027767273074e
[ "MIT" ]
permissive
SongFGH/graph_star
62cc9d7580680c20ce96d7507ce02863987c46bb
4c16b8ab0048669bc1c15d45af393dde896e4334
refs/heads/master
2020-06-22T08:34:49.985748
2019-07-15T02:52:59
2019-07-15T02:52:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,696
py
import torch.nn.functional as F import argparse from texttable import Texttable def str2bool(v): if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Unsupported value enco...
[ "noone@noone.com" ]
noone@noone.com
6c55f2b2b69d2351eae808a8e6a9a30f83003379
8352d1f51d3dc3b248bf51894a92d2ebea28141c
/venv/Lib/site-packages/pylablib/core/dataproc/__init__.py
cdc5e96eaa2025754720e9884887fc06e603068c
[]
no_license
jakfarshodiq230/python-LSA_TF-IDF
04dd8f0982cca8c53dc7d6a06cff8bf511830f36
5fa4a748249dff60ac70d8b98eca92c786fc9d42
refs/heads/master
2022-12-25T19:10:35.636133
2020-09-29T17:24:43
2020-09-29T17:24:43
299,683,621
1
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
from . import waveforms from .waveforms import is_ascending, is_descending, is_ordered, is_linear from .waveforms import get_x_column, get_y_column from .waveforms import find_closest_arg, find_closest_value, get_range_indices, cut_to_range, cut_out_regions from .waveforms import find_discrete_step, unwrap_mod_data fro...
[ "jakfarshodiq230@gmail.com" ]
jakfarshodiq230@gmail.com
3c0299ef461117c90a7b387d733390990e96c5a2
c4ea117eff2469d622f3d7986d23dca79fdd9d2f
/setConfigSN.py
466123d905f427386da1cb1990ac7ee1a7f7d8fd
[]
no_license
SimengBian/Mobihoc18
2a850646d42e9731fbb7a69c42a19830cc444f7d
28c3d5234bb8baa411b266b56a9887c2b2224562
refs/heads/master
2021-08-31T06:24:49.447762
2017-12-20T14:42:01
2017-12-20T14:42:01
110,240,501
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
import numpy as np filename = "config1/" ''' Substrate Network (SN) ''' numOfServer = 6 # number of servers serverCapacities = np.zeros(numOfServer) for c in range(numOfServer): serverCapacities[c] = 16 idleEnergies = np.zeros(numOfServer) for c in range(numOfServer): idleEnergies[c] = 0.805 maxEnergies = ...
[ "biansimeng@biansimengdeMacBook-Air.local" ]
biansimeng@biansimengdeMacBook-Air.local
bcd67aa5afe669f6003298838868899baedc2815
6d17d2b811376f176a998c30009a6ed4c41c82c1
/common/pub/excelconfig.py
4250fd740aa3872d920a3dcf343ef88a79d8ccf4
[ "Apache-2.0" ]
permissive
no-wings/AutoUitest
39e9c89fa529362eb076482218910bb4ab298393
b3ff7db29f165bd40b89a1e33463efdaf801b334
refs/heads/master
2022-12-12T22:16:31.134368
2020-09-07T03:43:12
2020-09-07T03:59:32
293,417,053
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
# coding=utf-8 import xlwt # 导出数据到excel def export(fields, results, table_name, outputpath): ''' :param fields:数据库取出的字段值 :param results: 列表元组或者元组元组 :param table_name: :param outputpath: :return: ''' # 搜取所有结果 # 获取MYSQL里面的数据字段名称 workbook = xlwt.Workbook() sheet = workbook.ad...
[ "45419770+xiongwr@users.noreply.github.com" ]
45419770+xiongwr@users.noreply.github.com
046f7722f8d047a95d007f78b54691d31345e08e
cc1f1ee71ddc572e33512a44af41108bf1e3173b
/semeval23/clickbait-spoiling-eval.py
e58a9b1693f0f343e56ce78d849437b6b5b61b0e
[ "MIT" ]
permissive
pan-webis-de/pan-code
774252979edf2e6b757ec04332e8c572d57e91d7
8dd0d44a098620ead0d1b07999f122f3f31c83a7
refs/heads/master
2023-05-29T09:12:43.081488
2023-05-28T08:03:17
2023-05-28T08:03:17
240,560,328
34
34
MIT
2023-03-30T08:45:06
2020-02-14T17:11:37
Jupyter Notebook
UTF-8
Python
false
false
12,636
py
#!/usr/bin/env python3 import argparse from os.path import exists from glob import glob from os.path import isdir from sklearn.metrics import balanced_accuracy_score, precision_score, recall_score, f1_score import json from nltk.translate.bleu_score import sentence_bleu from nltk.tokenize import word_tokenize from nlt...
[ "maik.froebe@informatik.uni-halle.de" ]
maik.froebe@informatik.uni-halle.de
4923d7378b7b003f9b938d0cb2b4221e31da211e
bbc6498bfe3bd62b7c99e2eadd79be4d154ddc11
/functional_tests.py
61199afae4185173410f8558e79a16457d33042e
[]
no_license
jawahar/tdd_superlists
993d0900782ea907911e95ffb383591d9e71c93f
99570339844430c33e9e5cf3d9e095ded0c9394e
refs/heads/master
2021-01-13T02:24:26.109972
2013-07-05T19:52:15
2013-07-05T19:52:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,400
py
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.quit() def test_can_start_a_list_and_retrieve_it_later(self): ...
[ "jawahar.malhotra@gmail.com" ]
jawahar.malhotra@gmail.com
89d50378869ed6dde8fc8a1ec6f17758ef6117c1
33a7d059f6b3decfe762861c823bc4b5b0680633
/UAS1.py
fdf4c8bc6a9bb3142282c82cd04238bda41bab7b
[]
no_license
Diyah9/uass
01ef176ee70ff523dd39388866222567f997be25
1ac124325870cac22e5d4f98f32d5c1c5f94c6b5
refs/heads/master
2020-03-11T08:46:49.326714
2018-04-17T11:14:00
2018-04-17T11:14:00
129,892,405
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
def fb(): print("Modul Nilai Random") import random nilai = input("Masukan nilai n: ") for i in range (nilai) : while 1: a = random.random() if a < 0.5: break print (a)
[ "diyahnur0809@gmail.com" ]
diyahnur0809@gmail.com
a9beba1a67b641f22baf82bb07689f9350c7b49f
79d5395cf97828672680d985603106d60834b3f6
/HW3/RBTree.py
6f38869c5cf3835c4255a6a988d63b9d5ed70f96
[]
no_license
sunwmax/Data-Structures
86449175c86134658f62533cfbc067eeeaeeb4b4
1f23ce2b44b78ad8122275db38274d41bd35b6be
refs/heads/main
2023-01-31T01:31:19.020602
2020-12-15T03:12:19
2020-12-15T03:12:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,887
py
""" A classic (not left-leaning) Red-Black Tree implementation, supporting addition and deletion. """ # The possible Node colors BLACK = 'BLACK' RED = 'RED' NIL = 'NIL' class Node: def __init__(self, value, color, parent, left=None, right=None): self.value = value self.color = color ...
[ "noreply@github.com" ]
sunwmax.noreply@github.com
aee8bf0ea8399d18b36b4f33a71ddacbb7b77f8a
4ebb5e56f3276504462c83274171ff1d9a5373d4
/tasks.py
7a2ff8fa3d9ff4681ca6186e190553d99938d3fb
[]
no_license
ig-novik/diploma_project
256de85938ffdd1bd541f3bd48c17eaa358f4f86
dd05e024a21df2d07eab942093930f629253f61a
refs/heads/master
2023-05-11T07:26:00.078473
2020-04-21T09:46:13
2020-04-21T09:46:13
247,621,035
0
0
null
2023-05-01T21:22:32
2020-03-16T05:47:34
Python
UTF-8
Python
false
false
784
py
from celery import Celery from celery.schedules import crontab from webapp import create_app from webapp.news.parsers import avito flask_app = create_app() celery_app = Celery('tasks', broker='redis://localhost:6379/0') celery_app.conf.update(flask_app.config) @celery_app.task def avito_snippets(): print("Вход ...
[ "ig_novik@mail.ru" ]
ig_novik@mail.ru
1dd23f472b7de887c901515844d6b2999272e6bf
3fd00274d9e4e01dcefff0206feda739555392f5
/pygame/qgame/viz/unitary_grid.py
cd4711103706ac4ffed8765ef5ba8bffbc96f9bc
[]
no_license
quantumjim/Qiskit-for-GameDev
981500ff65237c00214a89b81fda091a8ec84146
495dabde2c2925333b859a14e99cb1fc0fe2c6a1
refs/heads/master
2021-04-16T17:06:47.084395
2020-03-23T08:17:02
2020-03-23T08:17:02
249,372,148
2
0
null
2020-03-23T08:15:27
2020-03-23T08:15:26
null
UTF-8
Python
false
false
2,509
py
#!/usr/bin/env python # # Copyright 2019 the original author or authors. # # 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 require...
[ "h.jun.ye@gmail.com" ]
h.jun.ye@gmail.com
26719905a2d5c638006f568dfbcaef22e95094e7
f292e3dea8be9145b94f6d874ecca51c959fb0e7
/ATCrack/preprocess/label2voc.py
ed794ec8ec4a5bf4e5f919c5a4415806444a1dd8
[]
no_license
xukefei01/crack-detection
d0bdd9f35cc7cc93cadcc4a67c18e280d4f6fcc5
28fb5ae2e4b2aa5d210ddd25ef9c7d10251454f5
refs/heads/main
2023-03-31T05:45:01.315343
2021-03-31T02:43:16
2021-03-31T02:43:16
353,202,673
5
0
null
null
null
null
UTF-8
Python
false
false
6,606
py
#!/usr/bin/env python from __future__ import print_function import argparse import glob import json import os import os.path as osp import sys import matplotlib.pyplot as plt import numpy as np import PIL.Image import argparse import base64 import json import os import labelme from labelme import utils import cv2 as...
[ "noreply@github.com" ]
xukefei01.noreply@github.com
7484bacf4f4a3645406680fa8f7058b99cc91c34
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/trendmicro_deepsecurity/icon_trendmicro_deepsecurity/actions/search_computers/action.py
9b7c4476a3b6b40428738fb69a0845ee0eff2240
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
3,708
py
import komand from .schema import SearchComputersInput, SearchComputersOutput, Input, Output, Component # Custom imports below import json import requests from komand.exceptions import PluginException from icon_trendmicro_deepsecurity.util.shared import tryJSON from icon_trendmicro_deepsecurity.util.shared import che...
[ "noreply@github.com" ]
rapid7.noreply@github.com
10295dd3df62eb9decab66cd53c16ebcf00d962b
39ffb606a790b3f1c1afb0e9a82051bd4c6a5e87
/src/blog/migrations/0003_auto_20190907_0343.py
8509645a8b7bf05e84f41f802f1192706fbb5f06
[ "MIT" ]
permissive
km427/django_blog
2ec79b6d82566fe7cf4c496917d36bc83296268c
fca83dbc312747493cc660c6fc74553cc7a91c42
refs/heads/master
2020-08-28T00:01:24.974086
2019-09-07T01:47:32
2019-09-07T01:47:32
217,527,579
1
0
MIT
2019-10-25T12:21:13
2019-10-25T12:21:13
null
UTF-8
Python
false
false
442
py
# Generated by Django 2.2.5 on 2019-09-06 22:13 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20190907_0050'), ] operations = [ migrations.AlterField( model_name='blog', name='...
[ "roony0782045336@gmail.com" ]
roony0782045336@gmail.com
e1bbe2aa9d7c65d5b20d4909fb5bf6b1365c4942
dde9ab902d560bb391bdfac0fb2e03b3d797910d
/assignment1/autodiff_test.py
63c6bd9789976efc740b7b847701a0d5112bb7fd
[]
no_license
OlivierShi/deeplearning-sys
fa92f6ecf166bbd1a78286d01987ddbbb41fa48c
737ae1da4bd15849dee17b6884cff51596324c80
refs/heads/master
2021-06-17T20:17:24.172506
2017-06-12T10:00:04
2017-06-12T10:00:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,128
py
import autodiff as ad import numpy as np def test_identity(): x2 = ad.Variable(name="x2") y = x2 grad_x2, = ad.gradients(y, [x2]) executor = ad.Executor([y, grad_x2]) x2_val = 2 * np.ones(3) y_val, grad_x2_val = executor.run(feed_dict={x2: x2_val}) # print y_val # print grad_x2_val ...
[ "jiangnan.hugo@gmail.com" ]
jiangnan.hugo@gmail.com
e92d7ccdd2592f2089e2986159273b7d690ed742
35f9def6e6d327d3a4a4f2959024eab96f199f09
/developer/lab/ipython/PyTorch/PyTorch/test/test_profiler.py
382d05d438515d89c3caa8661d4e771c15a66cd1
[ "CAL-1.0-Combined-Work-Exception", "CAL-1.0", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-free-unknown", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
arXiv-research/DevLab-III-1
ec10aef27e1ca75f206fea11014da8784752e454
c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2
refs/heads/main
2023-04-16T19:24:58.758519
2021-04-28T20:21:23
2021-04-28T20:21:23
362,599,929
2
0
MIT
2021-04-28T20:36:11
2021-04-28T20:36:11
null
UTF-8
Python
false
false
18,771
py
import collections import gc import io import os import unittest import torch import torch.nn as nn import torch.optim import torch.utils.data from torch.testing._internal.common_cuda import TEST_MULTIGPU from torch.testing._internal.common_utils import ( TestCase, run_tests, TEST_WITH_ASAN, TEST_WITH_ROCM, IS_WIN...
[ "noreply@github.com" ]
arXiv-research.noreply@github.com
e7fe8efe710d89ee0fcde959a292ad13e60da77c
2ab59f275433a19fe415d5dbb2ff58ca515deed5
/tianwei/week4/SearchBigThree.py
81fcb3c2baf507c05a71bf9daa23bf74fabf9c27
[]
no_license
Shen-xinliang/python-14
4b4555339b4942a350385f6190f79dbac1bb9917
1a3eed2b9996c7d1f7f8bb8dbd29698611966326
refs/heads/master
2020-03-27T08:21:59.993230
2018-08-27T04:22:00
2018-08-27T04:22:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
#随机生成20个数字,并且筛选出其中最大的三个数 import random lst=[random.randrange(0,101) for x in range(20)] print(lst) for i in range(3): max=i for j in range(i+1,20): if lst[max]<lst[j]: max=j print(lst[max]) if max!=i: temp=lst[i] lst[i]=lst[max] lst[max]=temp
[ "398310343@qq.com" ]
398310343@qq.com
65862d59d03041b9ba6eb8ed1295487976bcb946
45a2547fe8d29d6b9b7dd4a7bc3b1955ec855aa9
/msrvtt_ft_model.py
9e222677921f23b9853d1388585406a63fa7034a
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
bitwangdan/video_to_sequence
a7013e170363a7461bdc1eadc150a72c4ef3b789
111405570595671441478945521f86f1fd65585a
refs/heads/master
2021-03-24T13:50:06.370019
2016-09-30T06:15:28
2016-09-30T06:15:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,782
py
#-*- coding: utf-8 -*- import tensorflow as tf import pandas as pd from pandas import Series, DataFrame import numpy as np import os import ipdb import sys import cv2 from tensorflow.python.ops import rnn_cell from keras.preprocessing import sequence class Video_Caption_Generator(): def __init__(self, dim_image,...
[ "meteora9479@gmail.com" ]
meteora9479@gmail.com
d856e9e655cf975ef84512950ea959cc73976f44
b3cd00de3608e5225758bb99b28d58320ce81a47
/Python_100/python file operations/open_a_file.py
c6e0d450b9d4bd1d1a30dc16be266e44bc42f357
[]
no_license
buyi823/learn_python
fc4ec7e35ec421842975956933cfb56371786d7a
b411d5277dba1764d421a267f0ba36da40d8c6e9
refs/heads/master
2022-05-13T01:05:35.961946
2022-05-09T15:20:52
2022-05-09T15:20:52
71,314,016
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
#!/usr/bin/python3 # -*- coding: UTF-8 -*- # open file and read it with open('data.txt', 'r') as f: data = f.read() print('context:{}'.format(data))
[ "blaine.xu@kaiostech.com" ]
blaine.xu@kaiostech.com
2e1f89e0981a30cfb888082fe619819cb0c7690e
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/392153_Pascals_triangle/recipe-392153.py
75071b1cd1a2c7de3ec6683b1428779c7f0d1362
[ "Python-2.0", "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
344
py
def pascal(n): """Prints n first lines of Pascal`s triangle author: DR#m <dnpsite.narod.ru> last rev 20.03.05""" l=[1] p=[] for i in xrange(n): l2=[1] for j in xrange(len(l)-1): l2.append(l[j]+l[j+1]) l2.append(1) print l l=l2 if __name__=="__...
[ "betty@qburst.com" ]
betty@qburst.com
8f4185f995147d4bd43fdf84d659e51af8edd22a
b213fbd2f4f628aa0f2387c846673ac68e18aa91
/BFS/761.py
af0547988d630e396f34dc4b8662f12d9bcc10d5
[ "MIT" ]
permissive
wilbertgeng/LintCode_exercise
94309b4451e34f1931fce6c2ae90d0c2e7c41d35
e7a343b746e98ca3b4bc7b36655af7291f3150db
refs/heads/main
2023-05-13T06:06:50.887791
2021-05-26T20:33:51
2021-05-26T20:33:51
347,850,106
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
"""761. Smallest Subset """ class Solution: """ @param arr: an array of non-negative integers @return: minimum number of elements """ def minElements(self, arr): # write your code here total = sum(arr) arr.sort(reverse = True) queue = [0] for i in range(len...
[ "wilbertgeng@gmail.com" ]
wilbertgeng@gmail.com
318d856d6fb461f8ec7c6729cd4ffa4ce9c19d8e
78c222e75ed8f307a5fd68f9e97d2a558ccd079f
/hw1/HW1codes/src/hw1.4.py
2921c7959fa6b671d9b21d201d7eb87bd96538ab
[]
no_license
YangYue3417/CSE252A-2019
4ec4b99e072c04618f69c87c14d804e7d2b70ef9
bca3fc25ac0ab1e16ba21536b6922f15ab049d6c
refs/heads/master
2020-11-24T02:51:01.120821
2019-12-14T07:53:20
2019-12-14T07:53:20
227,932,987
0
2
null
null
null
null
UTF-8
Python
false
false
1,128
py
import matplotlib.pyplot as plt import copy import copy import matplotlib.pyplot as plt img = plt.imread('Lenna.png') # read a JPEG image print("Image shape", img.shape) # print image size and color depth plt.imshow(img) # displaying the original image plt.show() def iterative(img): image = copy.deepcopy(img) # ...
[ "y5yue@ucsd.edu" ]
y5yue@ucsd.edu
f2b24d12d4bb5e949dd478f8a5861f7ce8f92813
218774ca6ba8aa78c314ea2bf94b8b05322bdb18
/src/shadow/services/proxy.py
71f7861eac348908c0b648a873f4c56068234b32
[ "MIT" ]
permissive
beaugunderson/shadow
7f48cfb420979d2793c1e9d1c79bfd00346833d2
41348c585c15bdbbe8c9fbe6cfa7da4efa9ae680
refs/heads/master
2023-03-26T11:55:05.162420
2012-12-10T00:28:07
2012-12-10T00:28:07
7,085,460
0
0
MIT
2020-07-30T03:34:24
2012-12-10T00:30:41
Python
UTF-8
Python
false
false
2,335
py
import logging from ginkgo import Service, settings from ginkgo.async.gevent import WSGIServer from ..common import logfile from ..proxy import web logger = logging.getLogger('shadow.proxy') class ProxyService(Service): address = settings.get('proxy', {}).get('address', 'localhost') port = settings.get('pr...
[ "kelvin@twilio.com" ]
kelvin@twilio.com
4905df3322bc10343141dbcf1f7607e32757cd43
0ef9397a368627cac46cfe6c3a74cfc60874e5d1
/venv/bin/pip3
ca3ae7fb21da0a5f1002ae35216d900329051e22
[]
no_license
tommcm1200/streamripper-scheduler
010b3a115bbb6b92884650b4d6a2c61768610edd
1de77c62576bd407ec4e667e26c0010f9bf7646d
refs/heads/master
2022-12-26T05:36:56.577178
2020-10-03T03:59:10
2020-10-03T03:59:10
279,266,347
0
0
null
null
null
null
UTF-8
Python
false
false
419
#!/Users/tommcm/PycharmProjects/Streamripper-Scheduler/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys...
[ "tommcm@amazon.com" ]
tommcm@amazon.com
4cf66e70d8fe2f811ca777847fc520a5ca1ab39b
57de679247d140304d0f29c05e561ee9086dccc1
/app.py
f1dab874362f0dd977a49b8e2f9fe6a863abd4ef
[]
no_license
jtang3yo/Mission-to-Mars
bc6d33de5afc46aa31c65b07e8c71da396804aee
543b957de0592be455c67427133bd87f8f2ce777
refs/heads/main
2023-06-03T16:27:34.092908
2021-06-23T23:08:15
2021-06-23T23:08:15
376,338,807
0
0
null
null
null
null
UTF-8
Python
false
false
605
py
from flask import Flask, render_template, redirect, url_for from flask_pymongo import PyMongo import scraping app = Flask(__name__) # Use flask_pymongo to set up mongo connection app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app" mongo = PyMongo(app) @app.route("/") def index(): mars = mongo.db.mars.fi...
[ "jtangesq@Jings-MacBook-Pro.local" ]
jtangesq@Jings-MacBook-Pro.local
cf85f36c5f23f7098a48990e1ac77800fd9e55e2
2b575de79f3351959402debff1ce755513ecdfd8
/reinforcement_learning/week_2_value_iteration/mdp.py
ba161aa55d3b8f448ac4fbdedc27a0ef469a8a34
[]
no_license
Pharce/DL
c7ecd3135e65123b4872439ae794f374d70484d9
96e2de280bb5f080483dbcb82332e3b89fcfb36a
refs/heads/master
2020-04-02T15:57:13.047045
2018-10-27T22:56:01
2018-10-27T22:56:01
154,591,114
1
0
null
null
null
null
UTF-8
Python
false
false
10,970
py
# most of this code was politely stolen from https://github.com/berkeleydeeprlcourse/homework/ # all creadit goes to https://github.com/abhishekunique (if i got the author right) import sys import random import numpy as np def weighted_choice(v, p): total = sum(p) r = random.uniform(0, total) upto = 0 for c...
[ "noreply@github.com" ]
Pharce.noreply@github.com
769b8de587dac9524e70aa9ed4ee4aebce6a6eb1
f863d32353ea93bf371831dd0ce7dc53fb737cdc
/Cylinder_Driver.py
89981730fb6cc27e671a50cccca2e167a625a69a
[]
no_license
GeospatialDaryl/503_StochasticCylinders
5ccbc1c4e82e20b760248d8e4b37b95227b29d3d
38b7948ef6bbf214838dd8a9a93aed62b7474957
refs/heads/master
2016-08-12T22:30:53.395753
2016-01-27T00:51:00
2016-01-27T00:51:00
50,470,414
0
0
null
null
null
null
UTF-8
Python
false
false
10,543
py
import logging import os from functools import partial from multiprocessing.pool import Pool import multiprocessing from time import time import ogr import subprocess import shlex import numpy.random as rand def run_and_return(cmdSrc, cmdDest = ""): """Run a system command and return the output""" srcProcess =...
[ "daryl_van_dyke@fws.gov" ]
daryl_van_dyke@fws.gov
939593332352dd37c18a98c7d06f74bf700b8750
a2151340197e0fcc3685eacf087aa57b2c5ac6eb
/lang101/bin/f2py
44ab6f442938ca5c3efc6c65497369e4c5d3f378
[ "MIT" ]
permissive
haniamatera/cds-language
97d7feb5541bc179f88465e59dd71d24e1af3884
4014aa2af00947c61c8a27f6ce87c4b8b9d721cb
refs/heads/main
2023-03-07T11:42:39.637967
2021-03-01T17:27:57
2021-03-01T17:27:57
338,007,567
0
0
MIT
2021-02-11T11:19:08
2021-02-11T11:19:08
null
UTF-8
Python
false
false
267
#!/Users/hannamatera/Desktop/CDS_new/cds-language/lang101/bin/python3 # -*- coding: utf-8 -*- import re import sys from numpy.f2py.f2py2e import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "haniamatera@gmail.com" ]
haniamatera@gmail.com
c48f86a907b699de10b5ca7f7e98500310dd7653
d858bfab35856192d4ef79059385060930463b40
/program.py
72e3d20f3d8948a165c7cb994c85b76a42fb6426
[]
no_license
zlata24/First-Python-Game
3f16180a070c824fe187b7279e67cd94245a5184
a7da211fef89d5bb41d09074bc5fd7f8de2bd706
refs/heads/master
2022-11-05T16:26:41.071274
2020-06-15T03:29:38
2020-06-15T03:29:38
272,332,941
0
0
null
null
null
null
UTF-8
Python
false
false
4,203
py
# My first game # Welcome message print("Welcome to the game!") print("Let's play!") print() # def dictionary dictionary = {} # Ask user's info print("Please submit your age") prompt_age = input("> ") prompt_age = int(prompt_age) print("Please submit your name") prompt_name = input("> ") prompt_name = prompt_name....
[ "noreply@github.com" ]
zlata24.noreply@github.com
b96ebaae609294cdc8b57b616afb0e1dd7dc6029
e6e98dee9ef88fe8cb72a5de3027c0fc721d529c
/magicbroomsite/migrations/0017_auto_20170906_1226.py
7fdbee83c720f27ebc7dc95c23739b022335127f
[]
no_license
aboudaman/magicbroom
eb80704ed091b788b8e8d8d8f62e6ab8bb10bcd7
349cb23ccd44746cddc9708d08cd2558d840ec00
refs/heads/master
2021-05-05T17:48:07.826887
2018-01-06T15:34:43
2018-01-06T15:34:43
103,464,456
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-06 12:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('magicbroomsite', '0016_auto_20170906_1226'), ] operations = [ migrations.Al...
[ "adaman2000@gmail.com" ]
adaman2000@gmail.com
255799a7a5d5345843cfb229475108352d8fed79
785ff1324640cf8de7d474c49673dd80aa509d77
/Day7/exercise_4.py
296bd241ff51610eb8a8c0e70499ed3e777af3ce
[]
no_license
jerry0734/learnPy100D
663a8321164ac57d196f6c5219d2858b57c65603
06d3940cd7ca32485168bf39930d07d6656263bc
refs/heads/master
2022-12-19T12:09:13.846034
2020-09-22T03:42:55
2020-09-22T03:42:55
293,426,636
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
""" 设计一个函数返回传入的列表中最大和第二大的元素的值 """ import random def get_max(numbers): max_1 = numbers[0] max_2 = 0 for i in range(1, len(numbers)): if numbers[i] > max_1: max_2, max_1 = max_1, numbers[i] elif numbers[i] > max_2: max_2 = numbers[i] print(i, max_1, max_2) ...
[ "jerry34@foxmail.com" ]
jerry34@foxmail.com
fbaa5089d6e1da6ee4b4ae8fbbb0307f970b896d
07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8
/lib/python3.6/site-packages/zmq/backend/cython/__init__.py
23d46766ea57349610e4f4bee39629dbae38036a
[]
no_license
cronos91/ML-exercise
39c5cd7f94bb90c57450f9a85d40c2f014900ea4
3b7afeeb6a7c87384049a9b87cac1fe4c294e415
refs/heads/master
2021-05-09T22:02:55.131977
2017-12-14T13:50:44
2017-12-14T13:50:44
118,736,043
0
0
null
2018-01-24T08:30:23
2018-01-24T08:30:22
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:a653e6cc07468a5fe090dadca6864bc60a827cd8d17835f62fbf13c676fb7f98 size 627
[ "seokinj@jangseog-in-ui-MacBook-Pro.local" ]
seokinj@jangseog-in-ui-MacBook-Pro.local
8e15beec0f102900873eca9f776a89110c832296
b9b9a66f853c76701d67ea408712f3aa84a0e018
/codewars/codewars_alphabet_anagram.py
63b0ed0fd55a564bc5481cbf4d51ce2ddaf68c83
[]
no_license
MiConnell/Katas
5dcaf73aad3b5f534d898c0ca260b1b8880e379d
f1765f3e9f3c0cc665e6bca2dc98d20781a773a1
refs/heads/master
2023-04-05T00:36:32.196579
2021-04-17T22:37:23
2021-04-17T22:37:23
286,301,507
0
0
null
null
null
null
UTF-8
Python
false
false
1,793
py
# https://www.codewars.com/kata/53e57dada0cb0400ba000688/train/python """ Consider a "word" as any sequence of capital letters A-Z (not limited to just "dictionary words"). For any word with at least two different letters, there are other words composed of the same letters but in a different order (for instance, STATIO...
[ "connellmp@gmail.com" ]
connellmp@gmail.com
55723d6e280682d8c762ef2dfe520b0ded9f7962
a9e60d0e5b3b5062a81da96be2d9c748a96ffca7
/configurations/lab44-config/scripts/Demo/demoPeakFindingInFiles01.py
2d9fee5e77d66d72e91790e437c8f74cec9c8c77
[]
no_license
openGDA/gda-diamond
3736718596f47607335ada470d06148d7b57526e
bbb64dcfd581c30eddb210c647db5b5864b59166
refs/heads/master
2023-08-16T08:01:11.075927
2023-08-15T16:01:52
2023-08-15T16:01:52
121,757,699
4
1
null
null
null
null
UTF-8
Python
false
false
1,191
py
import math; import myFun; y1 = DeviceFunctionClass("y1", "testMotor1","testMotor2", "myFun.testFunY1"); y2 = DeviceFunctionClass("y2", "testMotor1","testMotor2", "myFun.testFunY2"); scan testMotor1 -2*math.pi 2*math.pi 0.1 y1 scan testMotor1 -2*math.pi 2*math.pi 0.1 y2 data=ScanFileHolder(); #load the SRS data s...
[ "fajin.yuan@diamond.ac.uk" ]
fajin.yuan@diamond.ac.uk
56f70869124c25dbc8211897f56c3679c2655df4
8dfee16e9c680d528439767316428b9e4f609dbd
/{{ cookiecutter.project_name }}/config/settings/production.py
6888ae345433d39e5719c28ccfe33a0937ae8f4d
[]
no_license
joakimekman/cookiecutter-django-ekman
c9ffb3d36b20abc2399495d8352a88d03fbcfd0f
727387947315f2c859d5683fe48e3c4f83465cb0
refs/heads/master
2022-12-14T14:23:24.412004
2019-12-18T12:06:43
2019-12-18T12:06:43
167,615,654
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
from .base import * from decouple import config # GENERAL # -------------------------------------------------------------------- DEBUG = False ALLOWED_HOSTS = [ 'localhost', '0.0.0.0', '127.0.0.1', ] # DATABASES # -------------------------------------------------------------------- DATABASES = { 'default'...
[ "joakimekman91@gmail.com" ]
joakimekman91@gmail.com
c57af0edba753c73d1baa7c1d20d1e517b07d71f
6b29d66ba7927129b68bc00db769f0edf1babaea
/SoftLayer/CLI/cdn/load.py
5dc53ca2bf549af7d5d051fbf032636005fb948f
[ "MIT" ]
permissive
tdurden82/softlayer-python
65f42923c347a164995dfc267829721032de261d
0eed20fa4adedd3228d91d929bb8befb1e445e49
refs/heads/master
2021-01-17T10:01:48.087450
2015-10-19T18:38:53
2015-10-19T18:38:53
46,301,339
0
1
null
null
null
null
UTF-8
Python
false
false
468
py
"""Cache one or more files on all edge nodes.""" # :license: MIT, see LICENSE for more details. import SoftLayer from SoftLayer.CLI import environment import click @click.command() @click.argument('account_id') @click.argument('content_url', nargs=-1) @environment.pass_env def cli(env, account_id, content_url): ...
[ "k3vinmcdonald@gmail.com" ]
k3vinmcdonald@gmail.com
80f2060d4bf99a23db28ef2a0835f1db2ae4d018
8080c75c96bfb4314b92b64e217523fbd418e10e
/users/urls.py
38e9dcbc93fc5ec8235a1eef4b2411ffbf96aa24
[]
no_license
aktober/Belezhnik
a0b6bc275aa81650371d3c0bcf5c782c290ac1fb
3585a84fb046737a2277ed614157750642602717
refs/heads/master
2021-05-04T03:03:02.725417
2018-02-06T21:31:33
2018-02-06T21:31:33
120,371,507
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
from django.urls import path from users import views app_name = 'users' urlpatterns = [ path(r'login/', views.LoginPage.as_view(), name='login'), path(r'logout/', views.LogoutPage.as_view(), name='logout'), path(r'profile/', views.ProfilePage.as_view(), name='profile'), path(r'register/', views.Regist...
[ "a.popovychenko@gmail.com" ]
a.popovychenko@gmail.com
9cb09920c20113c946ce4e32464a041bb6bc7a0e
7f3f8bc74858fc80a50ebe44cfaa67a7c1f773f2
/sw.py
1efd9942d77e9b98687381cf2ef44d86496423d6
[]
no_license
lubingchen/mcs
78a1ac5f5ac00683a0f4b8f2ecbbeeb4c073795b
8881d1f75f93dcbe81cca7964b3c7ad606828029
refs/heads/master
2020-09-19T23:21:34.570327
2019-12-04T09:31:07
2019-12-04T09:31:07
224,321,960
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
#!/usr/bin/python3 import RPi.GPIO as GPIO import time # Use physical pin numbers GPIO.setmode(GPIO.BCM) # Set up header pin 22 (GPIO25) as an input buttonPin = 24 print ("Setup Pin 22") GPIO.setup(buttonPin, GPIO.IN) while True: #take a reading input = GPIO.input(24) #if the last reading was low and this one ...
[ "912target@gmail.com" ]
912target@gmail.com
0780b1837a14ec6809961f1886b5e5715638b300
f99a83f3d538a121184de88bff19ce396be6e3d5
/stayclean-2019-july/serve-signups-with-flask.py
713d2236ae476172de0ca6feeb7bc7eee49c7036
[ "MIT" ]
permissive
foobarbazblarg/stayclean
c38deddd971b795af58ae389b9e65914dea08d2d
384a8261b1164797d6726166a6e40f323e5bd6dd
refs/heads/master
2023-02-21T09:48:57.907540
2023-01-02T15:32:35
2023-01-02T15:32:35
45,186,602
1
0
MIT
2023-02-16T03:49:00
2015-10-29T13:59:33
Python
UTF-8
Python
false
false
8,591
py
#!/usr/bin/env python import subprocess import praw from hashlib import sha1 from flask import Flask from flask import Response from flask import request from cStringIO import StringIO from base64 import b64encode from base64 import b64decode from ConfigParser import ConfigParser import OAuth2Util import os import mar...
[ "foobarbazblarg@gmail.com" ]
foobarbazblarg@gmail.com
213220daf45739a739835cfbc5c38812db7edeb7
44f452c7af9943583e343449d5d1db3e7581ca46
/venv/bin/pip
3867aa60e67d7da60c7099c31e7659c6468507b6
[]
no_license
Abhay-Bhaskar/aTunes
403ca1c2b1a96dcd5d8f35d161de51a1361fb7ad
e0236c78b84668acceb02e3973cb3818cf145ea0
refs/heads/master
2020-04-13T12:07:03.668081
2018-12-26T21:03:24
2018-12-26T21:03:24
163,193,174
0
0
null
null
null
null
UTF-8
Python
false
false
399
#!/home/abhay/PycharmProjects/aTunes/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __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.argv[0]) sys.e...
[ "abhayakshay@live.com" ]
abhayakshay@live.com
7d2ecfb80d138ad1ffefda05a379fa418bae027a
852f9c1ab2a15c8f5ee452141ade8925dc633907
/ps1b.py
d1dade638255c41bd2f6f40a984b5f9628027eaa
[ "Giftware" ]
permissive
avitide-ethan/MIT-OCW-6_0001F16
1808a58526dd395bd9b320295c290ef189f80674
afb3aee630755c3e7896708a44aa318831250a6a
refs/heads/master
2021-04-26T23:18:05.401169
2018-04-04T03:55:50
2018-04-04T03:55:50
123,967,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
print("This program will calculate how many months it will take to save up enough money for a down payment.") annual_salary = float(input("Enter your annual salary: ")) portion_saved = float(input("Enter the percent of your salary to save, as a decimal: ")) total_cost = float(input("Enter the cost of your dream home: "...
[ "ethan.dow@avitide.com" ]
ethan.dow@avitide.com
fd6c4b075eb403bf8dc7c18c9b75ace27bc189e2
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/operations/_connection_monitors_operations.py
46689ddf45957cd45d6d3a96b4110fa0e9405644
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
45,729
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 may ...
[ "noreply@github.com" ]
manoj0806.noreply@github.com
d7d3a2e41838be4f9888283ce8a5ea31e6985298
95f1359cf44ecdbf9c3d418f6ae3dbc0f0a9dcb0
/probFactors.py
92b4dfd6eab2c19ecca212cec94c3a10a07fd759
[]
no_license
vitcal78/MED
c0d79a77edcaea6fb9b1c7002310a78c7efe1534
1d2e5bcef1dbcfc8779b2ccd117972d7ca61e01f
refs/heads/main
2023-02-13T19:23:45.364238
2021-01-09T07:49:49
2021-01-09T07:49:49
328,093,005
0
0
null
null
null
null
UTF-8
Python
false
false
6,975
py
# probFactors.py - Factor manipulation for graphical models # AIFCA Python3 code Version 0.8.4 Documentation at http://aipython.org # Artificial Intelligence: Foundations of Computational Agents # http://artint.info # Copyright David L Poole and Alan K Mackworth 2017-2020. # This work is licensed under a Creative Comm...
[ "vitcal78@gmail.com" ]
vitcal78@gmail.com
9371f82b30f28ec2ea8f912d2ebb28d543b00493
478fad0652b25cc228eb6c02c56b6a944d23b217
/Commands.py
54a4685ee79ff5063e4a41c07c8c8b9f541ebdc1
[]
no_license
vinayreddy115/ds_salary_proj
a2fba0bc474efe43ad0c2cf23badc3b52b05a585
e88edd1cd2fb0b2ba5d556be8a6ceaf879f95460
refs/heads/master
2022-12-22T21:37:57.398366
2020-10-08T18:41:47
2020-10-08T18:41:47
302,356,568
1
0
null
2020-10-08T18:41:48
2020-10-08T13:52:29
Python
UTF-8
Python
false
false
17
py
print(df.head(1))
[ "baradivinay115@gmail.com" ]
baradivinay115@gmail.com
17ae3745e60da3b1ea7472cb392d4faf0ecae016
e4ec350f85c7c7082056596cb35fbeac4f20b174
/app/SqueezeLayer.py
22ea82b8eb0dcd4c7fbc02781ac69a7dd47999eb
[]
no_license
benbogart/bird_vocalization_classification_dashboard
6945319e53d664274e21ae8f8f52f9679b23a694
386ea2952494bc1de154e9feb4ec20663da43a31
refs/heads/main
2023-04-22T23:41:02.314555
2021-04-23T14:51:49
2021-04-23T14:51:49
358,924,236
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
from tensorflow import keras as K from tensorflow.keras.layers import Layer class SqueezeLayer(Layer): ''' Keras squeeze layer Taken from milsed https://github.com/marl/milsed/ ''' def __init__(self, axis=-1, **kwargs): super(SqueezeLayer, self).__init__(**kwargs) self.axis = axis ...
[ "ben@benbogart.com" ]
ben@benbogart.com
2122bf334da1efff325d7418ef69af911529d88a
2300a140b3506c6e934794f0da40fc466e50b310
/senti/crawler/migrations/0002_auto_20160408_1058.py
ea25cfa0a917edc35a7e2aa348ede314d461d21b
[]
no_license
chiranjeevjain/sentientX
28baebfe1bbed32085db337c98d7b4f90775beff
b4aeb296be982d225f839c25cdedf354b00c02a6
refs/heads/master
2021-01-24T08:15:52.644798
2016-04-17T16:35:41
2016-04-17T16:35:41
68,904,940
1
0
null
2016-09-22T09:15:35
2016-09-22T09:15:34
null
UTF-8
Python
false
false
600
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-08 10:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crawler', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "chanakya.malireddy@gmail.com" ]
chanakya.malireddy@gmail.com
ffc572e9dbd67af628b274ff6ba22caa5f2f11d6
2bcfa4f50aee2f20f1829522153d5b490eca9120
/scripts/download_comms.py
b7115a71469a4a8ff639ad95de41e79a53c43a1c
[]
no_license
ronaldmaj/InsightDataProject
0302ee8e100b8b45f6a80b044a567010493ac796
9b54bd6ff5a35b1d9a0b94a1b6327f71c8c7e24c
refs/heads/master
2020-12-11T20:02:15.094121
2020-02-14T03:56:51
2020-02-14T03:56:51
233,945,248
0
0
null
null
null
null
UTF-8
Python
false
false
6,116
py
# -*- coding: utf-8 -*- """ Created on Tue Jan 21 12:22:06 2020 Script to scrape comments from the top 50 results for the term 'vlog' @author: Ronald Maj """ #%% import os import time import googleapiclient.discovery import pandas as pd import yt_cm as cm import json #%% insight_dir = os.getcwd()[0:19]+'\\Documents\\...
[ "36747983+ronaldmaj@users.noreply.github.com" ]
36747983+ronaldmaj@users.noreply.github.com
e9007fc49d13f5d5c05e56540b2d43ef7c47a409
f647c6fb984b6e93977bb56a9a4533b8d47e6644
/lib/form_szone.py
cb1d487631fc14327e35774f177cfca5598b2b59
[]
no_license
vdsmirnov52/wt000
7a88fcf29e5f786b8f2b0956b4a10ae68c0e32a6
0dd8ead0a73ed0f3f7f2f8c5302dff0071392570
refs/heads/master
2021-04-26T05:50:59.554131
2020-08-06T10:14:02
2020-08-06T10:14:02
79,928,565
0
0
null
null
null
null
UTF-8
Python
false
false
11,269
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os, sys, time import urllib import json LIBRARY_DIR = r"/home/smirnov/Wialon/lib/" sys.path.insert(0, LIBRARY_DIR) ''' [ /* массив, с данными о геозонах */ { "n":<text>, /* название геозоны*/ "d":<text>, /* описание */ "id":<long>, /* ID геозоны внутри ресурс...
[ "vdsmitnov52@gmail.com" ]
vdsmitnov52@gmail.com
d17e8ff8187c3921897883120db844b538a4b52e
a40950330ea44c2721f35aeeab8f3a0a11846b68
/OpenCV-python读取监控/图片视频车牌识别.py
dee934f727046acfa89a8815d3f66fb583122548
[]
no_license
huang443765159/kai
7726bcad4e204629edb453aeabcc97242af7132b
0d66ae4da5a6973e24e1e512fd0df32335e710c5
refs/heads/master
2023-03-06T23:13:59.600011
2023-03-04T06:14:12
2023-03-04T06:14:12
233,500,005
3
1
null
null
null
null
UTF-8
Python
false
false
1,094
py
from hyperlpr import * import cv2 class CarNumRecognition(object): def __init__(self, image_path, video_path): self._image_path = image_path self._video_path = video_path def video(self): print('[INFO] starting video stream') stream = cv2.VideoCapture(self._video_path) ...
[ "443765159@qq.com" ]
443765159@qq.com
1c4b88485adf158db1f4ac7a804da5e91357ddd8
b9c6f065e37fe7b8fb3a1f23b65b40f30833dfb3
/set_build_no.py
b7e4b0d86de0b7175fdbc99bedb274f22e562b8e
[ "Apache-2.0" ]
permissive
BRHN-11/Crypt-Server
be155f3cafc2a5626f805dac3ba5171a1fe9d90d
266185e5c3acd2af0ff2cf4e0ce22c849680dc64
refs/heads/master
2023-08-30T21:47:25.857954
2021-01-15T18:24:58
2021-01-15T18:24:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
#!/usr/bin/python import os import plistlib import subprocess current_version = "3.1.0" script_path = os.path.dirname(os.path.realpath(__file__)) # based on http://tgoode.com/2014/06/05/sensible-way-increment-bundle-version-cfbundleversion-xcode print("Setting Version to Git rev-list --count") cmd = ["git", "rev-l...
[ "noreply@github.com" ]
BRHN-11.noreply@github.com
b6afeb6ebadd6ad349db47589435aa408c0707ae
6e3532291c327a9be7ea15fa37a673eefbf76a11
/Chapter_6/pizza.py
9072adf6a3d6884b98ac507ee9793055fc1d71e6
[]
no_license
Denzaaaaal/python_crash_course
bc9aa8029d975bec8417d76e0bcdbd4480444cb0
d944893a575a4ca6ea1dec0786602d0c4a82e88d
refs/heads/master
2022-09-18T18:46:01.141317
2020-06-04T11:07:55
2020-06-04T11:07:55
266,353,585
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
# Store information about a pizza being ordered pizza = { 'crust': 'thick', 'toppings': ['mushrooms','extra cheese'] } # Summerising the order print (f"You ordered a {pizza['crust']}-crust pizza" "with the following toppings:") for topping in pizza['toppings']: print (f"\t{topping}")
[ "denzeldouglas@protonmail.com" ]
denzeldouglas@protonmail.com
abd622ab70f46e69735ea3d7762b678762558332
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/evergreen.py
886488cecc8d2463d953d0554e5a5a96fb0d02c6
[]
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
667
py
ii = [('MarrFDI.py', 1), ('CoolWHM2.py', 1), ('KembFFF.py', 1), ('ProuWCM.py', 2), ('ShawHDE.py', 1), ('MartHSI2.py', 2), ('LeakWTI2.py', 2), ('LeakWTI3.py', 1), ('PeckJNG.py', 1), ('RoscTTI3.py', 1), ('RoscTTI2.py', 1), ('CoolWHM.py', 1), ('LyelCPG.py', 2), ('GilmCRS.py', 3), ('CrocDNL.py', 1), ('MedwTAI.py', 1), ('Le...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
86f71b6a21c37f5a888d31eb1350d8dc414a6eab
4429558655a0b96f3affb4501b560bffef77584f
/solution/dataset.py
20210edec9338f26065309c322cdb678b33ac0eb
[]
no_license
MarkerViktor/ImprovadoTestTask
70b882be0049161f0b7db26007b6fd22e4052a49
aa7e22ad700c94766a7bbb259191d1522a392d3d
refs/heads/master
2023-06-25T20:42:18.802734
2021-07-22T10:35:22
2021-07-22T10:35:22
387,648,506
0
0
null
null
null
null
UTF-8
Python
false
false
8,683
py
from itertools import chain from io import StringIO from collections import Collection from typing import IO, Union, Iterator, Callable, Iterable Schema = dict[str, type] IndicesDict = dict[str, int] RowValue = Union[str, int, float, bool] Row = tuple[RowValue, ...] RowDict = dict[str, RowValue] GrouperOperator = Call...
[ "MarkerViktor@outlook.com" ]
MarkerViktor@outlook.com
c7420131506a4d2e390cb9d8df21223f481e8951
8a6ea916051ecdf3767e3d1f1e2b69d7d1db7315
/NLPwithML/DL4INdustry/protoBuf.py
b5e245f831feeb339769354dabccdfd8d654d7df
[]
no_license
LokeshKD/MachineLearning
5d7b751dbcb5d08e938af24748d402d1da121fc7
f16d1b4d3ee35703a504f73c242c0ec02b0ba360
refs/heads/master
2023-06-04T22:07:56.903269
2021-06-22T06:46:57
2021-06-22T06:46:57
359,021,896
0
0
null
null
null
null
UTF-8
Python
false
false
1,823
py
# Usage of ProtoBufs in TF. ## convert dict to tf.train.Example object. ## Features to Example. import tensorflow as tf features = tf.train.Features(feature=f_dict) # f_dict is a dict ex = tf.train.Example(features=features) print(repr(ex)) ## output ''' features { feature { key: "age" value { int6...
[ "i.lokesh@gmail.com" ]
i.lokesh@gmail.com
30f869b3cf399036b70c382615c7c4de7189ea37
60d15185ec975d2beb6bf82b3c346c1083106c28
/pylibs/stress_tests/network_forming.py
858df10777880a3ab8250340e978484471c57304
[ "BSD-3-Clause" ]
permissive
bee-mcc/ot-ns
d9dedb70f8946994a474c6dc883e581300625ef9
86df24e98811193540947608e1de663859f0a49a
refs/heads/main
2023-07-23T20:59:27.248025
2021-09-10T03:46:36
2021-09-10T03:46:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,723
py
#!/usr/bin/env python3 # # Copyright (c) 2020, The OTNS Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, th...
[ "noreply@github.com" ]
bee-mcc.noreply@github.com
fd05e0da7a8d0805078cb0666536af63af4db1a5
5c1bfe1d55027789cb5a55b458a143bd4e32a142
/PlacementQuestions/EqualZeroOneSubSequence.py
bfce65dfc36bc8b05b29ac754f5b2eebde2a7626
[]
no_license
alfa-abhi/Algorithms
e9487293b92162a2cf068137370c82574ebe3086
746bbfacebee57bbfa4883873a5413ed6aa02df1
refs/heads/master
2020-12-30T14:19:53.299617
2017-09-27T14:55:05
2017-09-27T14:55:05
91,309,057
1
0
null
null
null
null
UTF-8
Python
false
false
503
py
# input: 11010011 # output: [1, 1, 0, 1, 0, 0] seq = map(int, list(raw_input())) length = len(seq) zero = seq.count(0) one = length - zero equator = min(zero, one) counter = 0 oneCount = 0 zeroCount = 0 subSequence = [] while counter < length: if seq[counter] == 1: if oneCount < equator: subSe...
[ "alfa.abhi1996@gmail.com" ]
alfa.abhi1996@gmail.com
78f4aace9123fe4006a521cee5e8250675624545
eec6ae08a76266e9535d40b9bb32dfca3d51d24f
/urllib_test2.py
372e7b9983c80d87a64b0527ea95368c6af23c60
[]
no_license
jacklee19860111/Python_Test
9d045eee4b04f2345824c9829cafcb82e3d99462
0734f238efaebb90b81d8aeef5f2acf0bcbf3723
refs/heads/master
2021-01-11T22:18:16.432421
2017-01-15T16:04:58
2017-01-15T16:04:58
78,944,853
0
0
null
null
null
null
UTF-8
Python
false
false
449
py
#-*-coding:utf-8-*- import urllib def callback(a,b,c): """ @a:是目前为止传递的数据块数量 @b:是每个数据块的大小,单位的byte @c:是远程文件的大小 """ download_progress = 100.0 * a * b / c if download_progress > 100: download_progress = 100 print "%.2f%%" % download_progress url = "http://www.163.com" urlpath="/hom...
[ "lijihou_0@126.com" ]
lijihou_0@126.com
0402b3a4ef0c8bb5d3c578f2d1051cf79251b9ad
2187ad01c46764b5642054ab1345f76ef8fd7f88
/Module05/DE-101_Labs/AWS - Python Workshop/LearnPython/lab_1_hello_world.py
61915fc31029b1b442f6f3ac69ecd92ece89487e
[]
no_license
achudinova/DE-101
8132604a260a0e4ec2511cf4181617d8923b1971
26741acae39f10d318eb9e8a1f84879a6f9bf917
refs/heads/main
2023-06-23T23:18:55.915527
2021-07-27T14:23:24
2021-07-27T14:23:24
385,186,743
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
# A function that returns hello world def hello_world(): return 'hello world' # Assign the hello_world() function to a variable. greeting = hello_world() print(greeting)
[ "anastasiushka995@gmail.com" ]
anastasiushka995@gmail.com
01c119add1d00161240988b19ce3d83e9cb8db21
c93a0b82627679a904f792668880cefffe801353
/ml/m05_iris2_keras.py
09623045b0c1128bd04d0bf40141f5571a53ea9e
[]
no_license
Eunah-Kim/keras
b52f29b90c858263c606b61877678d7223821f59
40f58f5aeb6d38db1b6c81455d0911bb547239f5
refs/heads/master
2020-12-18T18:29:02.334063
2020-02-26T09:20:40
2020-02-26T09:20:40
235,483,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
import pandas as pd from sklearn.model_selection import train_test_split from sklearn.svm import SVC from sklearn.metrics import accuracy_score from sklearn.preprocessing import LabelEncoder from keras.models import Sequential from keras.layers import Dense import numpy as np import tensorflow as tf # 1. 데이터 붓꽃 데이터 읽...
[ "keunah1016@naver.com" ]
keunah1016@naver.com
faa557a97a5bf7715dcab61f03ac74715d01584c
a39e85f1e6fbf245d84737933f676791a6efbf86
/Scripts/twistd-script.py
3a389b3da2ec4fc28eb81e84fecc5bb557771444
[]
no_license
harshivvp/PythonWebDev-VEnv
4b025af37c4903119b70a61bc15d26eab6c9ac9a
8ce13f3bc2af7a61922336b79aaeb6d23eae3aa2
refs/heads/master
2021-05-02T10:50:06.822469
2018-02-12T13:23:38
2018-02-12T13:23:38
120,762,014
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!e:\harshiv\projects\myvenv\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==17.9.0','console_scripts','twistd' __requires__ = 'Twisted==17.9.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "pandyaharshiv@gmail.com" ]
pandyaharshiv@gmail.com
373c9b5a52acc56a36e4c67a851a21594b807d20
f67b12ea1fdd4c98a50bee602038e6490ff659d0
/types.py
45842d0394022d197c72ee2684e1e5e4e83993ba
[]
no_license
puhachalex/lesson1
c58ffedf6f32a1eb6b41b047324654cbf0f865f5
cfdde2a475b45f37a00d3c2deeab82ed109afdfc
refs/heads/master
2020-09-19T20:07:11.233613
2019-12-08T17:53:23
2019-12-08T17:53:23
224,286,399
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
name = input('Введите ваше имя: ').upper() print(f'Привет, {name}! Как дела?') ########## a = float(1) # ??? b = int(2.5) # ??? c = bool(1) # ??? d = bool('') # ??? e = bool(0) # ??? print(type(a)) print(type(b)) print(type(c)) print(type(d)) print(type(e))
[ "puhach.alex@gmail.com" ]
puhach.alex@gmail.com