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
e17f033e366c7e31b684c3adb569d7875da9a652
2d9d7637a3a97dd719a7001a2ee7778682c353ac
/K-Means/kmeans.py
b129eff42836cc0136c811b48221b33149222aaf
[]
no_license
sontallive/MachineLearningCodes
cff0906f9d8ca4acf68dfefbb5e2fcbfc5b39515
639fa6bbd98df2480769eec20de703b95c3b4e41
refs/heads/master
2020-09-04T14:23:21.041159
2019-11-24T06:37:35
2019-11-24T06:37:35
219,755,080
0
0
null
null
null
null
UTF-8
Python
false
false
1,720
py
import numpy as np import time class KMeans: def __init__(self,data,k,iter_num = 50): self.data = data self.length = data.shape[0] self.k = k choice = np.random.choice(a=self.length, size=self.k, replace=False) self.centroids = self.data[choice] self.labels = np.zero...
[ "418773551@qq.com" ]
418773551@qq.com
3268b47046c0b86ad8023be1ca8423eb73216617
d04703db63a75a2edc4e0df718d4351570175686
/main/migrations/0002_auto_20210528_2218.py
ce0aa21d7462538ee4feee545e427604a9201cb9
[]
no_license
Asliddin7501/new-lms
dfbdb377cacc48adc687298583549f5f21c2f327
ebd227a5fa606b7e53e6853cf4025aa401b3c471
refs/heads/main
2023-06-04T23:20:17.776429
2021-06-09T03:13:08
2021-06-09T03:13:08
369,425,365
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
# Generated by Django 3.2.3 on 2021-05-28 22:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='sohalar', ...
[ "mahmudovasliddin750@gmail.com" ]
mahmudovasliddin750@gmail.com
4670e76275637a85fcd420befc67f86afc9b748b
cdf57c3783db3b9544abcad1f22d9028d4935a7a
/sska/Version control/otra iteracija/zupinj.py
3206c89b0ea4e6f32c75a89a157a34cc3ef6b4db
[]
no_license
ntech2/sska-scraapee
24a5f1c91e0b353defbf5d9bfc3d299b0e0b97f3
bb75358790f9c6c501faab841eabbc9d5a02d234
refs/heads/master
2021-04-06T08:45:07.805245
2018-03-08T21:27:53
2018-03-08T21:27:53
124,449,454
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
# https://www.youtube.com/watch?v=XQgXKtPSzUI 9.11.2017 dzivoklu cena/kvm/riga projekts from urllib.request import urlopen as uReq from bs4 import BeautifulSoup as soup import re import csv #noradam lapu,kuru kachat #my_url= 'https://www.ss.com/lv/real-estate/flats/riga/all/' my_url= 'https://www.ss.com/lv/real-estat...
[ "ntech@inbox.lv" ]
ntech@inbox.lv
0b142f823a12e645d0baba27b37f30d910b1b5fa
9582341887537c413479f95128f9c9f8df28e317
/sampledbapp/utils.py
d2a2ca8919eb8d0725cae82c69fa9caa1270476f
[ "Apache-2.0" ]
permissive
csmsoftware/SampleDB
59e3bfe9cbb579dafe90ad52d364faffb4fc1f4a
3d82cf98dd37c632b47594b2079bfa9922b21115
refs/heads/master
2023-04-08T07:31:14.222665
2023-03-22T13:12:07
2023-03-22T13:12:07
126,981,893
0
0
Apache-2.0
2021-11-19T09:30:19
2018-03-27T12:20:05
HTML
UTF-8
Python
false
false
768
py
import os from django.contrib.auth.models import Group # Recursively check filename and add the iterator to the end. def build_and_check_file_name(folder_path,iterator,file_name): if iterator == 0: full_path = os.path.join(folder_path,file_name) else: full_path = os.path.join(folder_path,file...
[ "g.haggart@imperial.ac.uk" ]
g.haggart@imperial.ac.uk
7c9b2abd31a7a2086a079b6bda70792712a6fc83
a24ce66b03b8018bc6f0310c6213f45a0f6736ae
/studentinfo/settings.py
b2b99241129f22ae53b5f95b7609e4c0e165baf6
[]
no_license
Sabbirdiu/StudentInformation
67314cf833d017aa9371b7096235a34d3add186b
b79313bb851519024e6a69de34331c4bfa34ae63
refs/heads/main
2023-07-19T03:35:23.398207
2021-09-08T13:05:52
2021-09-08T13:05:52
403,605,266
0
0
null
null
null
null
UTF-8
Python
false
false
3,441
py
""" Django settings for studentinfo project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pat...
[ "sabbir.s.dk7@gmail.com" ]
sabbir.s.dk7@gmail.com
12decf3b44d77f6ad648e90676bdb40d42a7c65b
0fc2b11f52085b584bc52f4982c297dd2c03e8b2
/DSC/DP_7_15/1254_yonghun.py
0c75aa57ebee208bc3a988590862ee28f66fbc95
[]
no_license
yw9142/Solving-algorithmic-problems
ec9cdb23492ec10e494937f6f221d54d8987be3d
d78b2d518608bd89b463a0e8da1ca30e1dddaec3
refs/heads/master
2023-01-10T06:52:55.938545
2020-11-10T16:09:05
2020-11-10T16:09:05
277,123,609
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
# -*- encoding: utf-8 -*- def palindrome(index, length, str): # Palindrome 확인 함수 i = 0 while index + i < length - i - 1: if str[index + i] != str[length - i - 1]: # palindrome은 i == N - i - 1 이면 성립함. return False # 하나라도 성립하지 않는다면 return False i += 1 return True # 모...
[ "yw9142@gmail.com" ]
yw9142@gmail.com
ee97aa1b68604354d9d46457899de563a5531c20
5146fcb6117be400eaced506e7b0800309b02953
/manage.py
06c63c49c1128bd5fc953cc4db9ecad41abffd1f
[]
no_license
CarpenterChuk/myawesomeblog-project
4d83460c4746ad2cbd4697f61553278b8e2a9283
820f90b451f0be2d8c8ba0ccb9cabe89ecedb88b
refs/heads/main
2023-03-04T10:42:30.665614
2021-02-08T20:58:59
2021-02-08T20:58:59
336,229,769
1
0
null
null
null
null
UTF-8
Python
false
false
669
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myawesomeblog.settings') try: from django.core.management import execute_from_command_line excep...
[ "stoliarchuk.vlad@gmail.com" ]
stoliarchuk.vlad@gmail.com
b12c9631dbd2f75d27a5ac4754fee8e016fc58c0
60acb606318869410d7437bf6c1a16fd6762b6b4
/app/__init__.py
871f9dabd9b8272d79ccffa706296dcf48f3ee49
[ "Apache-2.0" ]
permissive
heraclitusj/mgek_imgbed
8fb0c69599fab3fce06684f659dfd5c0b4c5f866
d8a77ba1401f42237adda1b3ea8611f6464a704e
refs/heads/master
2022-07-28T01:48:51.314094
2020-05-20T05:35:52
2020-05-20T05:35:52
265,461,338
0
0
null
2020-05-20T05:31:37
2020-05-20T05:31:37
null
UTF-8
Python
false
false
1,231
py
# @Author: Landers1037 # @Github: github.com/landers1037 # @File: __init__.py.py # @Date: 2020-05-12 from flask import Flask from app.config import * from flask_sqlalchemy import SQLAlchemy from flask_pymongo import PyMongo #初始时会默认初始化数据库连接,根据engine的配置选择配置的数据库 db = SQLAlchemy() mongo = PyMongo() global_co...
[ "32225052+Landers1037@users.noreply.github.com" ]
32225052+Landers1037@users.noreply.github.com
83e0f265d472c41c7a3a012032294e7118cc9456
75dc7b84c304da00bd0a06146bf1b8cd50de291c
/convert_txt_to_csv/decode3.py
995058492deafc50567e3555b449eeae27ecaee4
[]
no_license
salevizo/flinkcep
c7f4ddbef58a41f644badec440ef46d4eb5e4fd2
665a63c91406e6477278310a52efd9d96eaa1873
refs/heads/master
2020-04-05T13:53:26.158412
2019-02-04T23:20:45
2019-02-04T23:20:45
156,914,199
2
2
null
null
null
null
UTF-8
Python
false
false
2,096
py
#!/usr/bin/python import re import csv import sys def main(argv): lines=[] path=sys.argv[1] fh = open(path) #0-vessel1:227705102, 1-vessel2:227574020 , 2-Gap_End_1:1457645565 , 3-Gap_End_2:1457647184, 4-gbsg1x, 5-lon1:48.38216 , 6-lat1:-4.4970617, 7-lon2:48.3797 , 8-Lat2 : -4.4974666 for...
[ "alev.sophia@gmail.com" ]
alev.sophia@gmail.com
6cde627ded6c2d6491fdad4fb0d017931b35ce14
bdae068f43cdf79c6253990ad0465ef0dc47acc5
/mainnet/models/serialized_wallet.py
73f734efbde4327b822405126a2502710f4b9f8a
[]
no_license
mainnet-pat/mainnet-python-generated
158f29cfa979e936bfa88bf5357a9a7bc84a89cc
35673f76bc5a90185ef44536b077ab9c173beee3
refs/heads/master
2023-01-14T03:42:39.405647
2020-11-18T13:39:38
2020-11-18T13:39:38
313,901,083
0
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
# coding: utf-8 """ Mainnet Cash A developer friendly bitcoin cash wallet api This API is currently in active development, breaking changes may be made prior to official release of version 1. **Important:** This library is in active development # noqa: E501 The version of the OpenAPI document: 0.0.2 ...
[ "hello@mainnet.cash" ]
hello@mainnet.cash
ca55231bed72276df46a7e9b1d23e67ae3171425
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_fade.py
48b2ce0cd12e383a309567bd8721b04aafb27dd9
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
#calss header class _FADE(): def __init__(self,): self.name = "FADE" self.definitions = [u'to (cause to) lose colour, brightness, or strength gradually: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = []): retu...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
fa0b0e8390377d9b563df54e6bfa61219bfd4b70
ad0857eaba945c75e705594a53c40dbdd40467fe
/baekjoon/python/buying_cards_11052.py
b29c863cc46b83674f4b81cdf48a7cffc84bb63f
[ "MIT" ]
permissive
yskang/AlgorithmPractice
c9964d463fbd0d61edce5ba8b45767785b0b5e17
3efa96710e97c8740d6fef69e4afe7a23bfca05f
refs/heads/master
2023-05-25T13:51:11.165687
2023-05-19T07:42:56
2023-05-19T07:42:56
67,045,852
0
0
null
2021-06-20T02:42:27
2016-08-31T14:40:10
Python
UTF-8
Python
false
false
630
py
# Title: 카드 구매하기 # Link: https://www.acmicpc.net/problem/11052 import sys sys.setrecursionlimit(10 ** 6) read_single_int = lambda: int(sys.stdin.readline().strip()) read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' '))) def solution(num_card: int, packs: list): d = [0 for...
[ "yongsung.kang@gmail.com" ]
yongsung.kang@gmail.com
153066306d9da80ea24c5bcd251efb27dd8b50e2
9b3a290bac71bca52091ef62917ac1bff5de2e08
/HandTrackingModule.py
f0d10e3bd2d0cf58969bf477ae01e194b24c5f89
[]
no_license
Badalmishra/mediapipe
e5343ff4c5b368fa29e36c68b905b5a004943310
a38c0f73bd79d4f91920a58b684e8e70dd261af9
refs/heads/main
2023-06-09T06:28:10.740227
2021-06-27T07:29:46
2021-06-27T07:29:46
380,678,134
0
0
null
null
null
null
UTF-8
Python
false
false
3,614
py
import cv2 import mediapipe as mp import time import math class handDetector(): def __init__(self, mode=False, maxHands=2, detectionCon=0.5, trackCon=0.5): self.mode = mode self.maxHands = maxHands self.detectionCon = detectionCon self.trackCon = trackCon self.mpHands = mp....
[ "badalmishradev@gmail.com" ]
badalmishradev@gmail.com
159e01e7c2fe4f3943abf29f49cebe1232f215b3
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/meta/VehiclePreviewMeta.py
3b324dcf456ad95c0dd3471a225ee52f30dbbf10
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,046
py
# 2017.02.03 21:51:10 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/VehiclePreviewMeta.py from gui.Scaleform.framework.entities.View import View class VehiclePreviewMeta(View): """ DO NOT MODIFY! Generated with yaml. __author__ = 'yaml_processor' @ext...
[ "info@webium.sk" ]
info@webium.sk
0ac14a8d24cb5d63875837fa4d9df2a7b1f8b5c6
86741e9f531f2aa63af682cc974ebbcc3b202e90
/allhub/users/ssh_keys.py
5829881dbdcb9d0302a4e6deb02739cf3e27ca79
[ "Apache-2.0" ]
permissive
srinivasreddy/allhub
ccebea96a106e266743d180410ab5b16d08946fe
ff20858c9984da5c4edd5043c39eed3b6d5d693d
refs/heads/master
2022-12-27T01:24:30.759553
2021-06-04T11:38:16
2021-06-04T11:38:16
204,402,796
2
2
Apache-2.0
2022-12-08T07:44:11
2019-08-26T05:33:37
Python
UTF-8
Python
false
false
1,817
py
from allhub.response import Response class SSHKeysMixin: def list_public_ssh_keys(self, username): url = "/users/{username}/keys".format(username=username) self.response = Response( self.get( url, **{"Accept": "application/vnd.github.giant-sentry-fist-pr...
[ "thatiparthysreenivas@gmail.com" ]
thatiparthysreenivas@gmail.com
6700ce49e60619ee0fb43f9763634b80fea881da
8cc9cd57502d7b05e7efab28f1a67e49f3880435
/bin/emacs-pylint.py
c820de6afb0b234d35a9e15f0f0ea2a228b48997
[ "MIT" ]
permissive
mrflip/dotfiles
271483b50a2d622bd763c9548e834c10ab5571c7
50ad0da829f7734dbda5a7ab79638a1dae647fec
refs/heads/master
2020-12-25T09:48:17.086879
2020-07-27T04:18:58
2020-07-27T04:18:58
45,720
2
2
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python import re import sys from subprocess import * p = Popen("pylint -f parseable -r n --disable-msg-cat=C,R %s" % sys.argv[1], shell = True, stdout = PIPE).stdout for line in p: match = re.search("\\[([WE])(, (.+?))?\\]", line) if match: kind = match.group(1) func = mat...
[ "doncarlo@silverback.local" ]
doncarlo@silverback.local
78a6927b9d7a4ea485f4cff1587b6097a2e634ee
461da7a58c559c8710972c2ed3e34f558bf5d77d
/dmic/grib2nc.py
441b5962c0427363b5c7584ec4f38ea2713fa647
[ "MIT" ]
permissive
khintz/dmic
94ce46daaa05552094480e573be60a43dbe15022
147a307d89c22f9ed335a7c617e668194e13257e
refs/heads/master
2022-12-24T15:43:02.790499
2020-10-01T19:55:17
2020-10-01T19:55:17
300,038,055
2
0
null
null
null
null
UTF-8
Python
false
false
4,111
py
import sys import os import dmit import xarray as xr import configparser import netCDF4 as nc import numpy as np import grib import logging log = logging.getLogger("dmic.log") log.setLevel(logging.DEBUG) b_t2m = False b_u10 = False b_v10 = False class convert: def __init__(self, gribfile, leveltype, outfile): ...
[ "kasperhintz@gmail.com" ]
kasperhintz@gmail.com
e08f516bcebbb47311c2d452292f7c848b0dbe99
475ddb908382a253fcfe14b0ccb74b6bd18493eb
/aui/migrations/0001_initial.py
9f3393cbf6352b31a34f3199d51e87778950ac63
[]
no_license
malayparmar8991/DRF-Task
0c77b324f6862d40d7e6164e322d424083496ea3
03f1604eb3b281430eb897c80d8a0cd874a4adae
refs/heads/main
2023-02-05T18:30:15.061473
2020-12-24T09:38:52
2020-12-24T09:38:52
324,116,602
0
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
# Generated by Django 3.1.4 on 2020-12-23 21:04 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Users', fields=[ ('user_id', models.CharFie...
[ "parmarmalay8991@gmail.com" ]
parmarmalay8991@gmail.com
d482c06463915558c4276198ec9aa13a4222ad08
d59913246a2faa24779daf6713a863ee4319ddba
/flappyBird.py
dbd4e55c0ac50fd2d827d3976cbc39001df6d15f
[]
no_license
andypro22/Asteroids
184ebd7f8d7a30ff4f30f3e9bfd79fda20547a4e
5ef4fbdc85b2963fd7e2a7e96eb151e8dd1258e5
refs/heads/main
2023-06-27T07:12:25.910216
2021-07-29T09:18:02
2021-07-29T09:18:02
390,663,001
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# Importing the extensions import pygame # Initializing the pygame pygame.init() # Creating the screen screen = pygame.display.set_mode((800, 600)) # Title and Icon pygame.display.set_caption('Asteroids') icon = pygame.image.load('') # Game Loop running = True while running: # Events for event in pygame.eve...
[ "andyngpro22@gmail.com" ]
andyngpro22@gmail.com
0b2aa37456c58d7cc431f4a0878d8f13aa3afdaf
7254b888214be18434ec20ff8f1f734ee56dcc44
/keentic_influxdb_exporter.py
f1569752c51be1a2df1562aba7f434cc9fb3a29a
[]
no_license
easterism/keenetic-grafana-monitoring
4c5ba9eda6d1ab6df63280512627d9cec2e08bb8
16e3c37bf8c5531439faf1033c762c24993bb2c8
refs/heads/master
2022-11-30T14:16:08.348802
2020-08-03T16:26:24
2020-08-03T16:26:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,196
py
import json import os import time import urllib import requests from jsonpath_rw import parse from influxdb_writter import InfuxWritter from value_normalizer import normalize_value def json_path_init(paths): queries = {} for pathName, path in paths.items(): if path == "~": queries[pathN...
[ "vitalikis1@gmail.com" ]
vitalikis1@gmail.com
e0159a0bc43cebe51ee88486e5e5cacadec5a5a7
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/railway_link_ref_structure.py
00ba98f8df1e4547deb46e2b051c3da101b80055
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
246
py
from dataclasses import dataclass from .infrastructure_link_ref_structure import InfrastructureLinkRefStructure __NAMESPACE__ = "http://www.netex.org.uk/netex" @dataclass class RailwayLinkRefStructure(InfrastructureLinkRefStructure): pass
[ "chris@komposta.net" ]
chris@komposta.net
f0b8215f223b8f5f0e4e37e04cf9da5319bc58df
86d13acd9daa4c86384306f19247bbc49a903302
/run.py
1190fb251aa7e2a2244485758b35f99deb01168e
[]
no_license
Aaronator1/microblog3
2dfa2ab8ef2dc6f6d848cef954c538514c88d8ae
12c3682f230b14a7117c184463034bf288204c7b
refs/heads/master
2016-09-01T15:31:54.779725
2015-11-27T22:08:36
2015-11-27T22:08:36
46,994,036
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
__author__ = 'aaronmsmith' #!flask/bin/python from app import app app.run(debug=True)
[ "aaron.smith@healthways.com" ]
aaron.smith@healthways.com
b18f821ccaffcada21e37d3d9d6043914b8a0290
5f0fed47f9dd3d918eb5f32f7b7d55097762c522
/findMiddleElement.py
dca42e660a2f22cedebd6d1007dd83b328170cef
[]
no_license
NoisNette/Codesignal-solutions
20431c3ebb3f38eed2f6b20a001824c96c0dff23
496c4ec9e6f334c07358df3257d3a85285488053
refs/heads/master
2021-05-24T12:11:59.578709
2021-02-05T15:55:32
2021-02-05T15:55:32
253,553,945
1
0
null
null
null
null
UTF-8
Python
false
false
129
py
def findMiddleElement(l): l1 = [] while l!=None: l1.append(l.value) l = l.next return l1[len(l1)//2]
[ "noreply@github.com" ]
NoisNette.noreply@github.com
ec926de0354a852e7beb4470bfacb19eed09d694
f93ce0ace9cdfd117d5b725626f4b808f2e26c23
/python3/sys-module/f5.py
3695587fa8c405c15e841a1928b106a18a46a63d
[]
no_license
DhritiShikhar/my-code
90be74a5d74c3cea20324b481972da4e4c4e585d
ded31babce1b3c1eb7699c70a81a6fe50c60c6bb
refs/heads/master
2021-01-20T08:00:17.792809
2015-06-10T16:37:12
2015-06-10T16:37:12
37,109,407
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
#!/usr/bin/python3 import sys save_stdout = sys.stdout my_file = open("test", "w") sys.stdout = my_file print ("This line goes to my_file") sys.stdout = save_stdout my_file.close()
[ "dhrish20@gmail.com" ]
dhrish20@gmail.com
6d608921210b60fa6848d362d756532953b5c228
2b770588db83bc2a61b52f430248414395cc1b1f
/django_/citysearch_project/cities/models.py
fa4d0dc5e09ad2f0c02245c2ca01b266a2024625
[]
no_license
luka319/portfelio_chemodanio
595afb1d2e1fb3564bf94b204aa8e63dddd4cf0c
dd37f8c4af9d043ace9b5438b5a7680cfab26ab2
refs/heads/master
2021-06-26T19:05:33.170977
2020-01-08T23:24:10
2020-01-08T23:24:10
231,444,932
0
0
null
2021-06-10T22:27:34
2020-01-02T19:19:49
Python
UTF-8
Python
false
false
296
py
from django.db import models # Create your models here. class City(models.Model): name = models.CharField(max_length = 255) state = models.CharField(max_length = 255) class Meta: verbose_name_plural = "cities_города" def __str__(self): return self.name
[ "luka319@i.ua" ]
luka319@i.ua
984cd002eab77602f376c87e7f320dc1d8d297fb
c79226a0b149150072a5eb3037a3859ca7df937f
/cells/FS_LIP_altd.py
27b30c3056511f8defe03f1233f44740f5839794
[ "MIT" ]
permissive
benpolletta/egly-driver-network
e880c2161635a556d7324f5ca2c137bbf4dbcd8a
cff36a857e22358d122f24fb0100be26483a3caf
refs/heads/main
2023-04-12T13:28:46.106592
2021-04-06T15:58:09
2021-04-06T16:03:12
355,248,088
1
0
null
null
null
null
UTF-8
Python
false
false
2,718
py
# -*- coding: utf-8 -*- from brian2 import * defaultclock.dt = 0.01*ms eq_FS_LIP=''' dV/dt=1/C_FS*(-J-Isyn-Igap-Iran-Iapp-IL-INa-IK) : volt J : amp * meter ** -2 Isyn=IsynRS_LIP_sup+IsynFS_LIP_sup+IsynSI_LIP_sup+IsynRS_LIP_gran+IsynFS_LIP_gran+IsynIB_LIP+IsynSI_LIP_deep+Isyn_FEF+Isyn_mdPul : amp * meter ** -2 IsynR...
[ "benpolletta@gmail.com" ]
benpolletta@gmail.com
802828ec5275a0ef9b1ef8d1db094dfc9f3a6d36
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/alertsmanagement/v20190505preview/outputs.py
0da651342e6335cb50f421cf750b9e602f4b1fea
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,016
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
3c7cc2fd0685ea1563de87c1073126f4aa463a33
3fa613a340292b852aa083921f43a640d5e80e8f
/day_4/test_advent_coins.py
27a737ce195e7875b2bc552644dd21c836ae6f0e
[]
no_license
arseny-tsyro/advent_of_code_python
e7e91d28aaaf98655af570f1e30d3c71b374c733
09b9a474974da96c3787ab655e04fb24dcaa7dae
refs/heads/master
2016-08-12T03:32:51.184955
2015-12-14T12:35:49
2015-12-14T12:35:56
47,346,283
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
import pytest from day_4.advent_coins import * @pytest.mark.parametrize("secret_key, expected", [ ("abcdef", 609043), ("pqrstuv", 1048970) ]) def test_mine(secret_key, expected): result = mine(secret_key) assert result == expected
[ "arseny-tsyro@ya.ru" ]
arseny-tsyro@ya.ru
db52871b54ababab237eabf4d0ff0d605983ac6e
df7d6a55af3c6b9fbb39079a438ac9a6f67666de
/learning_site/settings.py
2041e6362523271c092786856056b12808566dbf
[]
no_license
Leziak/Django-Blog-
5845ead35f1fac9cefc834fa22c8da7119bbee60
428ac6a8a102d2484337465ac2d44a237f2fdc9d
refs/heads/master
2020-04-01T08:02:16.313365
2018-10-14T20:14:07
2018-10-14T20:14:07
153,014,722
0
0
null
null
null
null
UTF-8
Python
false
false
3,348
py
""" Django settings for learning_site project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
[ "samo.majoros@gmail.com" ]
samo.majoros@gmail.com
338d236cc4b9f3b36095c2d96499851af1f4b6e3
fc837a86b004d5d6753c51b5ecef9322d37464de
/votee/views.py
353d2a13596836d529588f2937f2212e2b1a0685
[]
no_license
matfystutor/tutorgf
05c9c2da6b58c27f3bf62ccf88ce789dc31e251b
5656c066721db4323aa3a05e57ab613a5effb1c5
refs/heads/master
2023-01-11T05:25:32.176317
2020-11-02T15:57:18
2020-11-02T15:57:18
309,121,186
0
2
null
null
null
null
UTF-8
Python
false
false
18,803
py
import datetime import json import time from django import forms from django.http import Http404, HttpResponseForbidden, HttpResponseRedirect from django.template.defaultfilters import slugify from django.urls import reverse from django.utils import timezone from django.views.generic import FormView, TemplateView from...
[ "m@git.strova.dk" ]
m@git.strova.dk
9587742f65d79728af75fdf6856fe7cf09ff627f
c922392e752d16bbc4cbddd7d721b9c4fed4ae49
/hw6/test.py
82b61dda5358c9b7fec4e309745404accb6f150b
[]
no_license
dcan07/DeepLearning
078863c4186c39e3d168d85c0d183e93803a53ff
c289d71c73bba81b46650c89b415ae2570d98545
refs/heads/master
2022-12-14T16:05:44.724140
2020-09-21T19:02:46
2020-09-21T19:02:46
297,404,840
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
import numpy as np import tensorflow as tf from tensorflow import keras #from tensorflow.keras import layers from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Conv2D, MaxPooling2D,LeakyReLU from keras.layers import Activation, Dropout, Flatten, Dense...
[ "noreply@github.com" ]
dcan07.noreply@github.com
024f9ad1d7193ca47a26fc46b141fe699fd82ba7
396be02dd2c7394b6c599dbdb27da51b18a58cd6
/halfAndhalf.py
a71bb47944a2dfb2f29383c73d57dba69d622f39
[]
no_license
jamygarcia/Girls-Who-Code
e820c5761de27414142081f05cd2966b6958d0fc
1f62a547170edac6b6115db92f5e9a9d12811e75
refs/heads/master
2020-12-03T03:59:09.626211
2017-07-14T22:48:43
2017-07-14T22:48:43
95,800,215
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
from PIL import Image ##FUCTIONS #Import the image and make the pixel myImage = Image.open("ele2.jpg") imageData = myImage.getdata() pixelList = list(imageData) newPixelList =[] length = len(pixelList) halfway = length//2 counter = 0 def negative(pixel): red = pixel[0] green = ...
[ "noreply@github.com" ]
jamygarcia.noreply@github.com
5644e5c0b6aa0dab0c7749c8574c9a70eebc075c
400b0cb1f25cc2fbe80a3037c06102f40c4d2d89
/string33.py
575f57fac37b82880d7965f8c50047498875f63b
[]
no_license
Prithamprince/Python-programming
4c747d306829de552e3b0c6af67cfe534a2dc2e1
79a0953084a01978e75d2be4db0d35ba1cf29259
refs/heads/master
2020-05-30T06:29:26.134906
2019-12-13T06:33:49
2019-12-13T06:33:49
189,580,341
0
4
null
null
null
null
UTF-8
Python
false
false
226
py
from itertools import combinations p=input() q=0 l=list(combinations(p,len(p)-1)) for i in range(len(l)): if(l[i]==l[i][ ::-1]): print("YES") q=1 break if(q==0): print("NO")
[ "noreply@github.com" ]
Prithamprince.noreply@github.com
233e92200613c295e2d76d7b6c59aec7b7c64c4c
4193699d0f9e9fd2c3c6580ea0a8b458055dda74
/formatter/format.py
02e143f0984d04b22b88d2401a9779ea1aeae8f3
[]
no_license
zardus/old-shellphish-crap
b3c4efdcd404825e0903d140cc5b837848ef22a9
b3cdac37204c86fba2422f9baf28edc234916d97
refs/heads/master
2020-05-18T15:57:07.989952
2013-03-29T23:47:19
2013-03-29T23:47:19
8,738,654
1
1
null
null
null
null
UTF-8
Python
false
false
3,976
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Yan Somethingrussian <yans@yancomm.net>" __version__ = "0.1.0" __description__ = "An automatic format string generation library." """ Finding the character offset: 1. Run the program 2. Provide the format string, e.g., "FORMATSTRING%n%n%n%n" as input 3. C...
[ "yans@yancomm.net" ]
yans@yancomm.net
d9f3e2a32427431101d08fa9c9f5b87972831ce2
fa5435e2e05b772327e039e3ebe64fe3958ce928
/test2.py
754ba3a7f52d3165dd95d2641fc533f89865ac48
[ "MIT" ]
permissive
gtg3vv/cs3240-labdemo
435578b6a45888f080797012a7987c8eadb52b7d
8d49de60cdd5f9dd314da1225959bf95735e174a
refs/heads/master
2021-06-25T11:42:09.861000
2017-09-11T18:16:43
2017-09-11T18:16:43
103,137,865
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
def test2(y): return y * 2 print(test2(4))
[ "gtg3vv@virginia.edu" ]
gtg3vv@virginia.edu
2697bbed846b1c7444c0f17047c060e264ce690a
b6e7a72b66e240e336c193b88ee147f3c384164c
/path.py
fd1c81cbf2090f858c51cd33d7d720d193b05637
[]
no_license
jhhuang7/Towers
638e77a7e318713e317bae209911cfc3e5231fa0
525de224bae0df306aa8a866119317df6030e8c4
refs/heads/master
2022-04-24T06:04:43.676208
2020-04-26T00:55:58
2020-04-26T00:55:58
136,620,455
0
0
null
null
null
null
UTF-8
Python
false
false
6,607
py
""" Path-finding logic for navigating a grid with obstacles """ # , , # / \/ \ # (/ //_ \_ # .-._ \|| . \ # \ '-._ ...
[ "juhua.huang@uqconnect.edu.au" ]
juhua.huang@uqconnect.edu.au
bfe75d02e6cd857f3e4b89d4af9a5c63c92efcb1
24e3418c5814ba30ecffd4ca7ad8253f1dd7d414
/rllib/contrib/bandits/agents/lin_ts.py
e7117bd0af3dba7856304eeeb94d09ed784765ee
[ "Apache-2.0", "MIT" ]
permissive
GoingMyWay/ray
ecd7aaec0ab888b43020e5410e9da51cc44a66dd
4fb195a22e972a0b54359ffa58afedb35e827540
refs/heads/master
2021-04-13T08:56:11.414281
2020-05-27T04:42:23
2020-05-27T04:42:23
267,219,626
1
0
Apache-2.0
2020-05-27T04:22:26
2020-05-27T04:22:26
null
UTF-8
Python
false
false
1,011
py
import logging from ray.rllib.agents.trainer import with_common_config from ray.rllib.agents.trainer_template import build_trainer from ray.rllib.contrib.bandits.agents.policy import BanditPolicy logger = logging.getLogger(__name__) # yapf: disable # __sphinx_doc_begin__ TS_CONFIG = with_common_config({ # No rem...
[ "noreply@github.com" ]
GoingMyWay.noreply@github.com
a79640d7e334ac158cb26699d645aac5f110d913
932b875ba779a8a45443dfc909810f7f16ab4ac3
/atk_client_P2.py
a72369c4903b66cd7d0d297c73589246176b9c1a
[]
no_license
ryandsowers/FormatString
66ac996c5b034266f6b228fdd483bee4c13bd712
fcfc1adeb3dfd64fc2ca6777fc36cf421b18896b
refs/heads/master
2020-04-06T07:40:25.760964
2018-11-12T21:46:11
2018-11-12T21:46:11
157,281,057
0
0
null
null
null
null
UTF-8
Python
false
false
5,417
py
# # Works with Python2 # # Modified by: Ryan Sowers # 06/04/2018 # # Run: python atk_client_P2.py IP Port # import socket import sys import telnetlib import time # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if len(sys.argv) < 3: print "Please provide <hostname> <port number...
[ "noreply@github.com" ]
ryandsowers.noreply@github.com
5f0d17422cc3b27b56b10e55530f53bf4a807cd8
5ec39b8559af4d88b1c3d9a7bd1eacd3d2ac63d3
/Problem32.py
4655e406865a6f826733e49062eb6b1204c059d8
[]
no_license
vinxavier/metodosdeotimizacao
71e8247e77ebd61b54a7f03233ab6ddf6a42e1cf
9b827b567bea9f2005770e399061b4abb0ec3bf3
refs/heads/master
2020-06-14T18:22:30.684738
2019-08-26T21:08:12
2019-08-26T21:08:12
195,085,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
from ortools.linear_solver import pywraplp MAX_CUSTO = 250000 MAX_MANUTENCAO = 50000 MAX_VEICULOS = 8 custos = [26000, 30000, 24000, 32000, 50000, 60000] capacidade = [7,8,9,11,20,24] manutencao = [5000, 3500, 6000, 8000, 7000, 110000] labels = ["Nissan Van", "Toyota Van", "Plymouth Van", "Ford(Stretch) Van", ...
[ "vsxavier@live.com" ]
vsxavier@live.com
015fd34248887879e5b092b00ab71bd4a61b4d02
8a9ba5e9e8c9f3d8e05b6840f1c17d526344e6d2
/src/reia.py
7ada168207031f9a5c85d73b90325662fbde0a50
[ "MIT" ]
permissive
maanavshah/remote-intelligent-assistant
fe1e2bcb6d43345553194c442d4676b3137e0348
65ea7287d0ca2dd98a376bbadc81a5093b9b6046
refs/heads/master
2021-06-13T20:20:05.622634
2019-12-20T12:54:00
2019-12-20T12:54:00
142,580,543
4
0
MIT
2021-03-25T21:58:30
2018-07-27T13:27:56
Python
UTF-8
Python
false
false
5,369
py
import yaml import sys import random import nltk import operator import jellyfish as jf import json import requests import os import time import signal import subprocess from nltk.tag import StanfordPOSTagger from textblob.classifiers import NaiveBayesClassifier from execute import construct_command from feedback impor...
[ "shah.maanav.07@gmail.com" ]
shah.maanav.07@gmail.com
13c40060e5b65b6df1506e61896e3e1f011a39ea
25a6d71c25c1c808a72f484bf568d41c1d455b2f
/Program13.py
5d2594b3ae28011ec74a3d5d9c9cab8e57df2261
[]
no_license
DreamITJob/Top-35-Medium-Level-Python-programs
4045a8feeb30c56c142cf5b629b23e1a7671e8d3
ca91a82d901b218fb359875affb74fe6c0c5b734
refs/heads/master
2020-06-02T08:33:10.590476
2019-07-12T13:10:36
2019-07-12T13:10:36
191,100,930
0
0
null
null
null
null
UTF-8
Python
false
false
719
py
#Python program for swapping of variables... def swap1(x,y): print("1st swap function: ") x,y=y,x print("first number: ",x) print("second number: ",y) def swap2(x,y): print("2nd swap function: ") x=x+y y=x-y x=x-y print("first number: ",x) print("second number: ",y) def swap3(...
[ "noreply@github.com" ]
DreamITJob.noreply@github.com
18071d30d283c766360748f5352421075c2b4206
128a0343dc88700eb3243a1e7138416a18b9c4a3
/financialTrack/financialTrack/wsgi.py
10b754ac005a93a1f18e5b30f9e2233fe6709c7a
[]
no_license
wandss/personalFinances
d9d5a13ac3ccb30de0809bdb3f933552d191bcfc
7297cccdcc4b83df03f7379bd3b6de2047ed3dd6
refs/heads/master
2022-12-12T21:53:26.691181
2019-02-12T00:57:51
2019-02-12T00:57:51
98,544,121
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for financialTrack 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/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
[ "wandss@gmail.com" ]
wandss@gmail.com
e31667b4ec577f4cfd9f836a00c3146187cb1e51
287527cf1f9ffbca9016dc558e64392a9db4ed63
/nginx/molecule/default/tests/test_default.py
9d399b74550875e59b2ed49ccfe85dc1abd239c0
[ "MIT" ]
permissive
midacts/ansibe-molecule-nginx
d8564f9220aa5bb1ba2b35c38e6b4c04e03bd84c
f002d8b2cbc9111367a9cfa6c3dc6099c6d75d41
refs/heads/master
2020-04-25T07:42:47.263893
2019-02-26T03:06:17
2019-02-26T03:06:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_hosts_file(host): f = host.file('/etc/hosts') assert f.exists assert f.user == 'root' assert f.group == 'root' def t...
[ "midactsmystery@gmail.com" ]
midactsmystery@gmail.com
5b12aa37e4fb1e02bcac1201734492cfd9237ee3
4774757f23003c42e1a233c9b01769e30c5a5d13
/mysite/blog/templatetags/blog_tags.py
9b8fcc32759de85b4ff83e2db6866cf057205bd9
[ "MIT" ]
permissive
kformanowicz/django-blog
c1f452e5f8b451af9383d7d18443c0427d88c866
1cc2cbf9b3bb5dc797f94e84227ef64457ff2d95
refs/heads/master
2020-03-16T12:18:38.425931
2018-09-02T18:25:54
2018-09-02T18:25:54
132,663,909
0
0
null
null
null
null
UTF-8
Python
false
false
727
py
from django import template from django.db.models import Count from django.utils.safestring import mark_safe from ..models import Post import markdown register = template.Library() @register.simple_tag def total_posts(): return Post.published.count() @register.inclusion_tag('blog/post/latest_posts.html') def sh...
[ "formanowicz.k@gmail.com" ]
formanowicz.k@gmail.com
e3445c3b28ca5e82a27ac440ccba698b69daf57d
0e2716fa989661ec03dd817bf47f33eb9c6c1011
/normalize.py
264e1c38edf7f9a3f1eb616cc37f67788de1f478
[]
no_license
lpbirdueng/myApps
27222faa3b538bc4e5fef3a03e03d1fc037808f8
63c608a8d9125a3f5587dd5c885207a1df31671f
refs/heads/master
2021-01-19T10:52:00.437327
2017-05-17T09:05:24
2017-05-17T09:05:24
87,903,972
1
1
null
null
null
null
UTF-8
Python
false
false
162
py
def normalize(name): norm_words = name[0].upper() + name[1:].lower() return norm_words L1 = ['adam','LiSA','barT'] L2 = list(map(normalize,L1)) print(L2)
[ "lupeng0924@sina.com" ]
lupeng0924@sina.com
3b4a2003180e91fe0fb07b7bdd754aecae30eddf
a1f36fe7872dc5e878d0fbc62043bb9db3e51acd
/mysite/settings.py
dd722fdf87cc09280600c5e1c9cf35de492fdb88
[]
no_license
SusanaLJ/my-blog
66e29c3041e46bcf08f6d57c2f6f664efef221de
2bfc41bdcc0996d989f18c3cf78a4eb0df818ea1
refs/heads/master
2020-03-30T23:13:18.183845
2018-10-05T14:48:37
2018-10-05T14:48:37
151,694,231
0
0
null
null
null
null
UTF-8
Python
false
false
3,217
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.9. 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 # ...
[ "susanaledesmajimenez@gmail.com" ]
susanaledesmajimenez@gmail.com
34a34b155ceef0b935c8c7b9fdbf54c84090c897
3d1fbb75a58db3eaa7a80e62ae75abf65a00a5cf
/exercices/w1/LA/orthogonal.test.py
668c69e699e3ecc2d121e00c0d3b3f222c120790
[]
no_license
opatiny/mobile-robotics
ff3051e1ae3272a58689fcafd136a722009536a6
d59256a996d5772393c903c94c8e9c86cb945d60
refs/heads/master
2020-06-17T19:07:59.380226
2019-11-06T09:00:59
2019-11-06T09:00:59
196,018,976
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
from orthogonal import isOrthogonal matrix = [[1, 0], [0, 1]] print("matrix") isOrthogonal(matrix) matrix1 = [[1, 2], [3, 4, 5]] print("matrix1") isOrthogonal(matrix1) matrix2 = [[2/3, 1/3, 2/3], [-2/3, 2/3, 1/3], [1/3, 2/3, -2/3]] print("matrix2") isOrthogonal(matrix2) matrix3 = [[2/3, 2/3, -1/3], [2/3, -1/3, 2...
[ "oceane@octanis.ch" ]
oceane@octanis.ch
9df0e4404a0a011ce5e1618eaf2bf3b31c0ad708
937d0b86d5a438338cbc5d4938c9109e9b0a51c4
/web/project6/phonenet/phoneapp/migrations/0004_tool_toolimg.py
b53e7d1b24d4f7522331050332b0272f77f7ae46
[]
no_license
z1459876808/web-
40ebb1bca626f0ff3f81a19aa21baf3c378c46da
f42ce9f4b568da00ea815b1bc724d09f9e6c567c
refs/heads/master
2022-11-21T23:30:06.069107
2020-07-20T03:49:49
2020-07-20T03:55:38
281,004,028
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
# Generated by Django 3.0.4 on 2020-03-11 02:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('phoneapp', '0003_label'), ] operations = [ migrations.CreateModel( name='Tool', fie...
[ "1459876808@qq.com" ]
1459876808@qq.com
3a068e2a6864d85f641af5e0ebd662ca44331292
07a1088bcec25cdf7e4027abc5a8dc83eb37ffb4
/fabrik/ext/nginx.py
ccc6e5e8f0774d418cd35226796dadcf056ebc96
[ "MIT" ]
permissive
Frojd/Fabrik
7e00bb66761c552da9d70cc36f3ff0108bf7a481
9f2edbba97a7fd236b72a9b3010f6e912ab5c001
refs/heads/master
2020-04-06T04:39:31.445843
2018-04-16T06:54:21
2018-04-16T06:54:21
25,035,502
12
0
null
null
null
null
UTF-8
Python
false
false
231
py
# -*- coding: utf-8 -*- """ fabrik.ext.nginx ---------------------- Methods for handling nginx """ from fabric.state import env def restart(): env.run("service nginx restart") def reload(): env.run("nginx -s reload")
[ "martin@marteinn.se" ]
martin@marteinn.se
1c89e34f2a701a441c1be1d145087c705e02ff86
f2171e2f2c78d616a381b3308d13a600d687587f
/x.Machine Learning Foundation/NumPy and Pandas Part 1/numpy_index_array.py
fce265f622df7db4d6f5e57be7428a2167fd3916
[]
no_license
vinkrish/ml-jupyter-notebook
bda01343118869bd2bfb44f3c3122853834d314a
ef5d05512b8387d7a3e494f024416f6ca7336827
refs/heads/master
2021-06-09T00:53:51.638551
2021-05-08T15:13:51
2021-05-08T15:13:51
168,104,038
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
import numpy as np # Change False to True for each block of code to see what it does # Using index arrays if False: a = np.array([1, 2, 3, 4]) b = np.array([True, True, False, False]) print a[b] print a[np.array([True, False, True, False])] # Creating the index array using vectorized operations if F...
[ "vinaykrishna1989@gmail.com" ]
vinaykrishna1989@gmail.com
242f3d45299992e3784fe4a39f470b8f1c206bfb
089030e3de35797990f34f2416a6f48f32c032fe
/3 Repetition/exercise68.py
ee33ea0522664216de275687886e8d0d990c391f
[]
no_license
nmoore32/Python-Workbook
ea26be6ed870c5f9497906717f3eaab5cac67571
d3ed2b7191a14c3ded975915e7f9f2f9fa9da894
refs/heads/master
2021-06-14T05:54:38.988388
2020-04-09T20:49:42
2020-04-09T20:49:42
254,475,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
## # Computes GPA from a list of letter grades provided by user # A_PLUS = 4.0 A_MINUS = 3.7 B_PLUS = 3.3 B = 3.0 B_MINUS = 2.7 C_PLUS = 2.3 C = 2.0 C_MINUS = 1.7 D_PLUS = 1.3 D = 1.0 F = 0 # Track sum of grade points for letter grades entered and number of grades entered sum = 0 count = 0 # Read the first letter gra...
[ "61410102+nmoore32@users.noreply.github.com" ]
61410102+nmoore32@users.noreply.github.com
1f4bd449aba35de17062609461614b820c3a18f9
eddbf9518e7384f0e9a1d9e19cbe74855c3f24bd
/2017011066LiShaoFei/First.py
7f3f5ef75bfa8561246cc72cba9cfb0ca45f5650
[]
no_license
wanghan79/2019_Python
9d2391d799efd9545b2afb3565bc5c6d542d1d86
f856409af92af3990773966d937d58d9d1cade04
refs/heads/master
2020-05-05T12:54:30.921361
2019-07-20T09:50:03
2019-07-20T09:50:03
180,050,522
11
14
null
2019-07-15T15:00:03
2019-04-08T01:59:24
Python
UTF-8
Python
false
false
1,119
py
import numpy as np import random import string def random_list( start, stop, length): if length >= 0: length = int(length) start, stop = (int(start), int(stop)) if start <= stop else (int(stop), int(start)) random_list = [] for i in range(length): random_list.append(ra...
[ "noreply@github.com" ]
wanghan79.noreply@github.com
bb645742770c7dbfb384b13d8c761bfa3995c6bf
62671dc1036be231348f7e1c11d6873e0d5196cb
/env/bin/gunicorn_django
ef5b783723dffe83a8f3f7aced945ba28a5a109b
[]
no_license
BaranovAV/track.mail.ru-web1
4f877f901298942778e1bf34e94fc8018d2600aa
12d6e31f6d2e06e5fa784dc15efe822f497790c4
refs/heads/master
2021-01-13T08:10:27.482908
2016-10-23T18:36:39
2016-10-23T18:36:39
71,719,222
0
0
null
null
null
null
UTF-8
Python
false
false
251
#!/home/andy/projects/projectDZ2/env/bin/python # -*- coding: utf-8 -*- import re import sys from gunicorn.app.djangoapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "baranovab.1992@gmail.com" ]
baranovab.1992@gmail.com
7d69b0a585408e145f7c50fc555cfe9dfb7cb57f
35cb7a8a22fdd3932b63c89b17f587205bd00fec
/apps/excursao/migrations/0002_excursao_is_internacional.py
3f9637243e6f3af5d03ec7553d613c3b439ba4a1
[]
no_license
rcoutelo/viajecomdarcy-web
debc24ec44e733c12257f3e89f3424ab7b3ee1f4
2ab2db407523299a58423f058c1f74231b15d617
refs/heads/master
2021-03-27T14:41:34.303463
2017-06-19T15:14:54
2017-06-19T15:14:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2017-05-19 19:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('excursao', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "lfa.luisfelipe@gmail.com" ]
lfa.luisfelipe@gmail.com
5dd3a0f3d2cdac072c394e17112b26004a06a66b
29744a2707c0c4335f51ab4a764fb24dc3a1ab08
/stockmgmgt/views.py
10182b9860dbaa4d214a064e3505d113a543a791
[]
no_license
cccivenv/src3
492e63131829602317ea067f094b45370eccb0c7
4678aa4959e2e7cf71cb3d64a7b237ca6739cbf7
refs/heads/master
2023-04-25T01:15:24.652299
2021-05-07T06:10:03
2021-05-07T06:10:03
365,546,869
0
0
null
null
null
null
UTF-8
Python
false
false
4,314
py
from django.shortcuts import render, redirect from django.http import HttpResponse import csv from django.contrib import messages #from .models import * from .forms import * #from .resources import StockResource #from tablib import Dataset # Create your views here. def home(request): title = 'Welcome: This is t...
[ "easy_waiting@hotmail.com" ]
easy_waiting@hotmail.com
be2a6f284ba58d4734600586f30031795fb41b11
e880764d19503274f1ea9d7185ed62333349c5b4
/Some_thesis_calcs/gapcalc.py
917e9d60e9e8beb2133d8ec2feb4eabd16ca3c27
[]
no_license
AlfreBar/ergo-thesis
03f90fcfd09140853bdc6be92ac4064fc855fc53
be3ccebce65b97ed017173cf5ce43edddb62dbca
refs/heads/master
2023-02-24T07:47:11.490870
2021-01-29T20:20:56
2021-01-29T20:20:56
331,362,573
0
0
null
null
null
null
UTF-8
Python
false
false
5,920
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np from scipy.sparse import kron, identity from scipy.sparse.linalg import eigsh # Lanczos routine from ARPACK from matplotlib import pyplot as plt # Definiamo degli oggetti BLOCK che hanno come attributi: lunghezza della catena di siti nel blocco, di...
[ "57600721+Aleph093@users.noreply.github.com" ]
57600721+Aleph093@users.noreply.github.com
feddb7fea48b3868a79ca54108ca2c680f061a2e
5a97652f9a0a6b46bc1e50342e8d2652e224e0d6
/apps/courses/models.py
ff6a5e42860d5cea76a7239d03a20c4baad5e3aa
[]
no_license
dacer250/LxOnline
5d22ad56bd9c48e21664f095348bd246b60cd49b
e58ab7ec14c877e5c176894d49522e11cd3efc87
refs/heads/master
2021-06-13T01:31:13.883126
2017-03-03T12:45:26
2017-03-03T12:45:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,502
py
# encoding:utf-8 from __future__ import unicode_literals from __future__ import absolute_import from django.db import models from apps.organization.models import CourseOrg, Teacher # Create your models here. class Course(models.Model): organization = models.ForeignKey(CourseOrg, verbose_name=u'所属机构') teach...
[ "651069858@qq.com" ]
651069858@qq.com
71913bb773b5410e899a35199682df594f695585
0497a6960fc2dab8d9e32d0d22a07676be1601a2
/Methods and Functions/returnEven.py
822a5621bd84fc4a666a1eddba0b1d244d746032
[]
no_license
SaashaJoshi/Python
114ff90e620ab1b95246ed584657d65e2e32213d
ff1083459aa4307d4460446ab2305ffb6217db65
refs/heads/master
2021-06-03T02:27:18.248834
2020-08-19T17:10:06
2020-08-19T17:10:06
141,785,153
1
7
null
2018-10-31T15:46:55
2018-07-21T05:51:31
Python
UTF-8
Python
false
false
202
py
def rEven(*args): #function takes arbitrary number of arguments list=[] for item in args: if item%2==0: list.append(item) #append even items to the empty list print(list)
[ "noreply@github.com" ]
SaashaJoshi.noreply@github.com
7098e59a33ee69db9bf67850ed6b164b8ca3a140
164a02b8376df3a7a0c5ef4db7966b41205313b9
/NSAF/newNsaf.py
b7c56f862e3e0b939fb52ca5f8f7e6bc2753d61b
[ "MIT" ]
permissive
ezPsycho/NSAF.py
6c83e87ac6f350749b4270d3304006d782721ee2
afb9c38ebf2576c136ea0a01b293d722a4398b1e
refs/heads/master
2020-04-15T01:22:36.596541
2019-01-09T13:08:51
2019-01-09T13:08:51
164,273,757
1
1
null
null
null
null
UTF-8
Python
false
false
893
py
import os import struct from . import DTYPE_FORMATS, DTYPE_MARKS def newNsaf(x, path, dtype = 'uint16', offset = (0,0,0)): assert dtype in DTYPE_MARKS, '`dtype` should be one of `uint16`, `uint32`, `float32`, `float64`.' assert len(x.shape) == 3, '`x` must be a 3d array.' assert os.access(os.path.dirname(...
[ "losses.don@gmail.com" ]
losses.don@gmail.com
eff50a322a4758966d3454ce3b8bb8562467e91e
7a36834432332e4cbe528cb8607949c783a834c0
/user/migrations/0007_remove_cart_quality.py
9de5df1b5650930def57c8a0410dcb79eb3690e7
[]
no_license
phamdat16041999/hai_phong
6e52c04d4f0dc24300fc039c01c127c55a5b4904
c6f21734111f558a37645112fd20eb380b075e7e
refs/heads/main
2023-05-03T15:24:15.559540
2021-05-21T13:21:16
2021-05-21T13:21:16
346,765,273
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
# Generated by Django 3.1.4 on 2021-03-17 03:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user', '0006_cart_quality'), ] operations = [ migrations.RemoveField( model_name='cart', name='Quality', ), ]
[ "56620800+phamdat16041999@users.noreply.github.com" ]
56620800+phamdat16041999@users.noreply.github.com
bdc88b26d53866749059d77cebd4536b11044064
874b03a2f96bd6ebdfa21b61d6c4a703ea4d3032
/read_korean_data.py
d8cf78e2989ce99640d8dfe8036ed815467aa578
[]
no_license
chunyaoyang/dissertation
b026c53eee38ca4c071d454fdd279a4a9a8fdca7
21768336b6913629235a8cd0e40f1205b511509f
refs/heads/master
2020-04-23T18:11:05.174417
2019-02-18T21:48:26
2019-02-18T21:48:26
171,357,326
0
0
null
null
null
null
UTF-8
Python
false
false
5,566
py
# -*- coding: utf-8 -*- """ Created on Fri Jan 18 14:44:33 2019 @author: cyyang """ import os import pandas as pd import numpy as np def findExcelFiles(): """Load all excel files in folders""" pathes = [] for root, dirs, files in os.walk("."): for file in files: if file.endswith(".xl...
[ "xboxodx@gmail.com" ]
xboxodx@gmail.com
b283669dc8927ce0f581ce7103969b38c2b5fbd6
6dda5b0e31c931dd3737df11ea31ffd30d6c273c
/auto_dino.py
2e2fd2e45aa8fb536586b0e282e242746763864f
[]
no_license
RisabhKedai/autodino
5f4efb0a8fb74eb15ce869689254b94e51bf729d
774f9713286608a10a2a221f71d1b308bfa29f7b
refs/heads/master
2022-10-17T04:36:04.724670
2020-06-20T11:34:16
2020-06-20T11:34:16
273,695,249
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
import webbrowser import pyautogui import time import PIL import sys #pyautogui.FAILSAFE=False x1=470.0 x2=520.0 y1,y2=310,330 def hit(key): pyautogui.press(key) def collision(tbd): for i in range(int(x1),int(x2)): for j in range(y2,y1,-1): ...
[ "noreply@github.com" ]
RisabhKedai.noreply@github.com
8e3b793faea6b9e1401c3476914c297ccc4552e4
d4471e4987b79fe1230b2abf8a9a2c8d90549e01
/train_cityscapes.py
5d956a7f5b8973c7db076b04e516cce5b52c662c
[ "MIT" ]
permissive
dontLoveBugs/deeplabv3plus_pytorch
fe840f974295fc257915701907fe2b94ebaf8c5e
e9449b69f4a290a080bc48dc54d0fec05196f881
refs/heads/master
2020-04-06T23:07:39.301456
2018-11-17T06:12:30
2018-11-17T06:12:30
157,858,894
8
0
null
null
null
null
UTF-8
Python
false
false
10,794
py
import socket import timeit from datetime import datetime import os import glob from collections import OrderedDict import numpy as np # PyTorch includes import torch from torch.autograd import Variable import torch.optim as optim from torchvision import transforms from torch.utils.data import DataLoader from torchvis...
[ "jessezhjf@gmail.com" ]
jessezhjf@gmail.com
9afd74e8b3a365c8442f1b8b0128e5d4de5e808e
4eb3e8d29150aa57e6036bc7ca6fcbe169e08c26
/records/migrations/0013_record_cover_file.py
8e298e3293b26aa848c7c4f2a9db9d63dd144316
[]
no_license
GustavAndreasson/records2
5b141d7912a2faa40dc9f17d90d5e4e90c249852
b898c7ed5f8bd652a57facceaa5d2f409c47553d
refs/heads/master
2023-05-12T16:27:28.602123
2023-02-13T19:27:03
2023-02-13T19:27:03
176,073,447
1
0
null
2023-09-09T15:22:35
2019-03-17T08:12:10
JavaScript
UTF-8
Python
false
false
426
py
# Generated by Django 3.2.10 on 2022-01-28 19:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('records', '0012_auto_20220118_1803'), ] operations = [ migrations.AddField( model_name='record', name='cover_file',...
[ "gustav.andreasson@gmail.com" ]
gustav.andreasson@gmail.com
a64f0f99c0ebcacedc4e8efb592d1f75480fcd7c
0e25329bb101eb7280a34f650f9bd66ed002bfc8
/tests/functional/test_misc.py
5da0c776cf8bde4c5a1a3dc58331fff08885b9f3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
enthought/enstaller
2a2d433a3b83bcf9b4e3eaad59d952c531f36566
9c9f1a7ce58358b89352f4d82b15f51fbbdffe82
refs/heads/master
2023-08-08T02:30:26.990190
2016-01-22T17:51:35
2016-01-22T17:51:35
17,997,072
3
4
null
2017-01-13T19:22:10
2014-03-21T23:03:58
Python
UTF-8
Python
false
false
7,200
py
import json import os.path import platform import shutil import sys import tempfile import textwrap import mock import responses from enstaller import __version__ from enstaller.config import Configuration from enstaller.history import History from enstaller.main import main_noexc from enstaller.utils import PY_VER ...
[ "cournape@gmail.com" ]
cournape@gmail.com
f9fd59e42615ba9ba02c202ac091a413ca692229
6a07d4c96f6011c025810cd4059a3d47c60948e3
/cap5/identificar_elementos_duplicados_em_vetor.py
7c55c18e554d90d1c3bde4490840e7255a9ace5e
[]
no_license
redbillb/devfuria
a16e2f4dd661d42eead279f645aca3f4057623c8
cf3c1565b8e85418acab5ca5c11576502cc63566
refs/heads/master
2020-03-23T15:39:01.713588
2018-08-28T22:15:37
2018-08-28T22:15:37
141,764,363
3
1
null
null
null
null
UTF-8
Python
false
false
415
py
# -*- coding: utf-8 -*- #imports #processamento def ahDuplicidade(vetor): resultado = False contador = 0 for elemento in vetor: contador += 1 for indice in range(contador, len(vetor)): if vetor[indice] == elemento: resultado = True return resultado #testes...
[ "redbillb@gmail.com" ]
redbillb@gmail.com
66126674f51734a6eecd06e9abdf48bdc490a413
63c9111bbeadea8d6313dbca5853b8203ffbda21
/templates/data/gunicorn.production.conf.py
d13a36301f39a5533a004f0f91f075671296787f
[]
no_license
heavenshell/py-gene-script
453969279fe45d1f3d94ee10711a6bf7e35b2ea2
912941406a1bc54139b2347cb748940a055cdd05
refs/heads/master
2020-12-24T06:30:22.603432
2017-07-16T21:05:37
2017-07-16T21:05:37
40,977,353
1
0
null
null
null
null
UTF-8
Python
false
false
6,398
py
import os import multiprocessing # Sample Gunicorn configuration file. # # Server socket # # bind - The socket to bind. # # A string of the form: 'HOST', 'HOST:PORT', 'unix:PATH'. # An IP is a valid HOST. # # backlog - The number of pending connections. This refers # to the number of clients that...
[ "heavenshell.jp@gmail.com" ]
heavenshell.jp@gmail.com
6ffbc1fdd0bb94c69f961871e05b86e073a589d5
e0ed932fc2e4edb953cc4e423362dabc19083008
/python/sanic_learn/docs/learn_conf.py
3b279281ff746c4e709cfdd6e544322a6b2da803
[]
no_license
glfAdd/note
90baee45003ac3998d898dcfbc618caa28f33b74
19a9aff61450be25904bff0fe672f660d49d90ff
refs/heads/main
2023-05-27T13:28:36.092352
2023-05-24T03:35:58
2023-05-24T03:35:58
240,066,208
1
0
null
null
null
null
UTF-8
Python
false
false
348
py
""" ============================ config config对象实现两个__getattr__和__setattr__ 方式1: 使用属性 app = Sanic('myapp') app.config.DB_NAME = 'appdb' app.config.DB_USER = 'appuser' 方式2: 使用update db_settings = { 'DB_HOST': 'localhost', 'DB_NAME': 'appdb', 'DB_USER': 'appuser' } app.config.update(db_settings) """
[ "2239660080@qq.com" ]
2239660080@qq.com
1f13d9477491556fd62ba54954608accdb6306a6
fa6ec0272b6294023556d397c5d00b58bf7d922d
/apps.py
ee611e203020784edbd558eece0fde3ea36a7c1e
[]
no_license
ernestby/django-menu
e6ef6beddedcbd2041f7cbec8a67bf2133591b2a
00cca6ca0ceb51e216d8c1532be0c66afd40429a
refs/heads/master
2021-01-16T01:02:15.512270
2015-04-30T08:48:26
2015-04-30T08:48:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class MenuConfig(AppConfig): name = 'apps.menu' label = 'tree_menu' verbose_name = _('Menu')
[ "stanislav@baltrunas.ru" ]
stanislav@baltrunas.ru
8f0295c144b5b11a32f9c500b1e5ab6d61379ddf
0acc183986e6ec1aff3e64fdd296766fbde5692f
/array_format.py
a45a318457e2695542f76e09a863fac7dd59ec3b
[]
no_license
kkinnard/Concussion-App-Data-Mining
0347cb265cfcf593961f01339b2441dea5a63f1d
87c1c65820b2b3a55552b7c5f5bbc93e82ede5ae
refs/heads/master
2021-01-10T08:28:33.433319
2016-02-27T16:37:01
2016-02-27T16:37:01
43,262,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
# Format the arrays to ints and the values that we are looking at. #!/usr/bin/python def cont_format(cont_list, cont_rows, cont_columns): cont_format_list = [[0] * cont_columns for count in range(cont_rows)] # Age of the participant for i in range(1, cont_rows + 1): cont_format_list[i - 1][0] = int(cont_list[i]...
[ "amunch@nd.edu" ]
amunch@nd.edu
af69d10cfc7875b0e05f73d045baae296ecc6cf3
9722af919f6660489c546811518f73a6285ef0b9
/venv/bin/pip3.8
fc299fae7ce1c3972abddd846a4850891a85e9a2
[]
no_license
back-hub/parser_example
aadfaccde96a567f45fb29faf29f01ef774cffd5
b8fdb8c6eb391e369c1d3cc907c2e3bd8d0e3b68
refs/heads/master
2023-06-02T00:38:40.922169
2021-06-17T04:50:51
2021-06-17T04:50:51
377,707,710
1
0
null
null
null
null
UTF-8
Python
false
false
263
8
#!/home/backhub/PycharmProjects/dummy_parser/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "tamirlan.akhmedov@gmail.com" ]
tamirlan.akhmedov@gmail.com
466bfa3db237894b693ce15d8c0569041d91c0d5
667b7d744fff4d38933ae24077f3782adb6fd622
/app/configs/migration.py
8615445c2574bef2dec22f522074ae0d8583d3df
[]
no_license
CarlosMartorini/leads-crud
be549d084d3737749857f186d6650862102106b7
2a1f04b2db6c3f6723e5b098a83d22ff2409515e
refs/heads/master
2023-08-11T20:08:10.629215
2021-09-26T21:34:16
2021-09-26T21:34:16
410,668,226
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from flask import Flask from flask_migrate import Migrate def init_app(app: Flask): from app.models.leads_model import Lead Migrate(app, app.db)
[ "c7.silveira@gmail.com" ]
c7.silveira@gmail.com
506f4f48d4a2d524e97a96b35887b2d6e92d429a
c6257bc16d47a585082dd9cb06894603037eae57
/8.1-20.py
85a480d57a6b090f219c894760aab1c1e96155a7
[]
no_license
Letian-Wang/CS61A-Structure-and-Interpretation-of-Computer-Programs
973ea917ad1f7dced92a1e140b0fb6db7ae04a30
fd04be9f33c18f855e3cede46320b7cd0a811ee7
refs/heads/master
2022-10-24T05:26:45.411133
2020-06-14T08:08:48
2020-06-14T08:08:48
270,806,154
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
''' Linked list ''' Link(3, Link(4, Link(5, Link.empty))) class Link: empty = () def __init__(self, first, rest = empty): assert rest is Link.empty or isinstance(rest, Link) self.first = first self.rest = rest s = Link(3, Link(4, Link(5))) s.first s.rest.first s.rest.rest.first s.rest.r...
[ "wangletian1995@126.com" ]
wangletian1995@126.com
2288382d79d71af3c464745eab55071cec85c730
6f48b588ca15865325f23ea41cc86b5a04148928
/dataloader.py
087e2198a8a2f473b1bf6dd3121ed250f78feaa3
[]
no_license
yihanzheng/DL2017-lab-03-master
467833e374c6e74b49d3271c99325d857fe2a9a8
6521a7d96fc18fc7bdeba4b69a1e78a0dbc44879
refs/heads/master
2021-05-06T05:16:23.754041
2017-12-24T01:17:06
2017-12-24T01:17:06
115,071,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
import torch import torchvision import torchvision.transforms as transforms #load the training and testing data and transform data class DataLoader(object): def __init__(self, data_path, batch_size, n_threads): self.data_path = data_path self.batch_size = batch_size self.n_threads = n_threads #data tran...
[ "yihanzheng7@gmail.com" ]
yihanzheng7@gmail.com
e27f61c97808942556f956f9422de14a5bd4a641
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/5/lFp.py
af044a654924c11751ea171e241dc87980eeaa4e
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
e078062f848f5fc1dd6c86f01b9d7e5b571cc9fe
57329656e867c6b349852fb7772ec113e9aeaff0
/models/store.py
5bbfbdae2a4a4116331c1f1fb579ce490e894cd4
[ "Apache-2.0" ]
permissive
aliyamullina/flask-restful-api
9fe92f63a2c475c2a757474fcf6fb128725822ce
fc3b5cfd43144cecdf697fa03de55a3f0bce3932
refs/heads/main
2023-08-06T05:08:28.068170
2021-09-25T19:30:13
2021-09-25T19:30:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
from db import db class StoreModel(db.Model): __tablename__ = "stores" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) items = db.relationship("ItemModel", lazy="dynamic") def __init__(self, name): self.name = name def json(self): return { ...
[ "berpress@gmail.com" ]
berpress@gmail.com
87e9d19acc4b8071aec31cefba7589ce4fdd00e9
f299c76607c643dea8ef06df118fec04d7976651
/puller/pipeline.py
19035665e9f9dbbd8f616d791e0b728b0580b2b3
[]
no_license
warvariuc/trains
d90b410926c003b3fc6a9d327254677bf8754997
8e78cbca11f6da7f7067426bb659862628d44805
refs/heads/master
2021-01-19T13:33:14.049347
2014-03-24T12:24:42
2014-03-24T12:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
__author__ = 'Victor Varvariuc <victor.varvariuc@gmail.com>' from .item import Item from .spider import Spider class ItemPipeline(): """Base item pipeline. """ def on_spider_started(self, spider): pass def on_spider_finished(self, spider): pass def process_item(self, item, spide...
[ "victor.varvariuc@gmail.com" ]
victor.varvariuc@gmail.com
af2e4f1e4afdc10bff273aa9782e170c9b8a8c5c
919df3ff896881ad8620984cbca59067f6212ad0
/regym/tests/networks/policy_inference_actor_critic_test.py
87bc7be4501df883fe3c9ed59ca3d342c14868d7
[ "MIT" ]
permissive
Danielhp95/Regym
d84241347712d0984a7127d4841f7b2021fa72c0
64e02e143070ca6eb8bc8f898c431f59cd229341
refs/heads/master
2022-01-15T08:32:03.545858
2022-01-03T20:17:00
2022-01-03T20:17:00
162,127,100
12
5
MIT
2020-03-24T11:35:17
2018-12-17T12:26:31
Python
UTF-8
Python
false
false
2,538
py
import numpy as np import torch import torch.nn as nn from tqdm import tqdm from regym.networks.bodies import FCBody from regym.networks.generic_losses import cross_entropy_loss from regym.networks.heads import PolicyInferenceActorCriticNet def test_can_learn_two_different_policies(): num_policies = 2 num_a...
[ "danielhp95@gmail.com" ]
danielhp95@gmail.com
c3438cfc2e58585f56186596756b732197d47003
ad0ece878bf7dfd2368a5bb2093acc37a1fece66
/bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/SoftwareProduct_updateApplication.py
05e6320255a275bd0183d890d255365a9b3436a3
[]
no_license
kingkazmam/erp5
3842cb0353906d211edaef6597ba8d7d1dc48570
ec40f658a8fcdbb672c359e30bfa96b35c05ee03
refs/heads/master
2020-04-02T13:21:40.813593
2018-10-22T05:41:27
2018-10-24T08:12:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
return context.ERP5Site_createNewSoftwarePublication( file=file, product_line="software/application", title=context.getTitle(), version_title= str(DateTime()), changelog=changelog, description="", software_product=context.getRelativeUrl(), **kw )
[ "vincent.bechu@nexedi.com" ]
vincent.bechu@nexedi.com
8c85e7bc65aa6b0897b818780e5d9dbab7ac662d
2f26a1772d3a298ca24fa219cdd9986e236df10a
/TriblerGUI/defs.py
7a640f879a0bc6ee54f7ac86e441e44ad57606ac
[]
no_license
devos50/TriblerGUI
4715e16ad1ca82b8971c71ec01ec43856c80cc7d
92defabcc496d21e7ba8844cf6d21b296559ee98
refs/heads/master
2021-01-10T11:58:44.835055
2016-05-01T14:26:14
2016-05-01T14:26:14
52,109,082
0
1
null
null
null
null
UTF-8
Python
false
false
2,066
py
# Define stacked widget page indices PAGE_HOME = 0 PAGE_MY_CHANNEL = 1 PAGE_SEARCH_RESULTS = 2 PAGE_CHANNEL_DETAILS = 3 PAGE_SETTINGS = 4 PAGE_VIDEO_PLAYER = 5 PAGE_SUBSCRIBED_CHANNELS = 6 PAGE_DOWNLOADS = 7 PAGE_CHANNEL_CONTENT = 0 PAGE_CHANNEL_COMMENTS = 1 PAGE_CHANNEL_ACTIVITY = 2 PAGE_MY_CHANNEL_OVERVIEW = 0 PAGE...
[ "martijn@code-up.nl" ]
martijn@code-up.nl
f6533124b5415fa799a1d77d1c4ef0d8c14ec654
77b0067191267176cf868b0261133d13429aeb70
/avaliacoes/admin.py
5ed4192425dc1edfe2f634c00b6c1799626a7a02
[]
no_license
marcossouz/django-rest-framework
92cd945d8e96e815f88c985a2b0a8bc1107d235e
70fd911b99ef511a3d77ab58dfeeea50b913e11c
refs/heads/master
2023-04-28T18:00:09.414938
2022-04-24T15:36:48
2022-04-24T15:36:48
202,238,713
2
0
null
2023-04-21T20:35:46
2019-08-13T23:39:12
Python
UTF-8
Python
false
false
95
py
from django.contrib import admin from .models import Avaliacao admin.site.register(Avaliacao)
[ "mrcsz.m@gmail.com" ]
mrcsz.m@gmail.com
bc7e6918b6630b409153c0d84d6feefc8425c2b6
fd67592b2338105e0cd0b3503552d188b814ad95
/test/test_models/test_ping.py
61773ff5dfcc00185b57a32a4230151250581dbc
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
5,002
py
# coding: utf-8 """ APIv3 (New) # Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
e4cb79168d0d6aef400b62c1a4c2050bdec9689c
d0ec423a9bf21957d51f9530e0761d74031c972c
/03_Fahrenheit_To_Celsius_testv2.py
8f22fb31d149a6a8a94923db0d6b8e499cf87480
[]
no_license
NathanM3/Temperature-Converter
e9207ca4834de1ab820b4caa26a2bb5899fc14b7
4a274bab5e9306e14058833559524b9258c9ccf4
refs/heads/main
2023-06-26T18:23:48.961984
2021-07-24T09:20:00
2021-07-24T09:20:00
377,973,117
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
""" Converting Fahrenheit to Celsius v2 Converting from degrees Fahrenheit to Celsius Function takes in a value, does the conversion and puts answer into a list Testing different ways of rounding that I can apply to both parts of comp 3 """ def to_c(from_f): celsius = (from_f - 32) * 5/9 # Method 1 of roundin...
[ "morrisonn2@middleton.school.nz" ]
morrisonn2@middleton.school.nz
8d9b4873c643e06fd464ef9641252d22cd83a016
fb15cf74d78ed1511e4a0ec85fb397cb59ba655c
/RandomArtGenerator/pixels.py
0a014d66ed18a5a448fc15e8c52dacdcdac078ab
[]
no_license
niturobert/RandomArtGenerator
70a16761938b8aff5c9d170dac2f4a6e26b47b17
707455ddba2b5e81720c5bb009d71dd01ffa1524
refs/heads/master
2023-06-22T04:42:40.090647
2021-07-17T13:13:50
2021-07-17T13:13:50
386,941,959
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
""" Semplice algoritmo di scrittura. """ from PIL import Image, ImageDraw from random import randint from config import * SQUARE_SIZE = 8 with Image.new('RGB', (IMAGE_WIDTH, IMAGE_HEIGHT)) as image: draw = ImageDraw.Draw(image) for y in range(0, IMAGE_HEIGHT, SQUARE_SIZE): for x in range(0, IMAG...
[ "nitu.robert.georgian@gmail.com" ]
nitu.robert.georgian@gmail.com
8969006cf82f736e5a60bd8c29710cd5a996c994
c8f5d69d21ac4df40d79a811dea2e3ad82fb5e04
/src/csv2plot.py
a731eff829805f1ba98f1ab6013855d44df4bc50
[]
no_license
webclinic017/usstock
e71ab18534fd3afc05ab2452578821584750e2b9
c724f00bc1c5d2a41ee58e037ba0b1b3f0904f70
refs/heads/master
2023-08-15T05:22:14.275202
2021-10-14T21:19:53
2021-10-14T21:19:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,608
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: plot time series from a csv file Usage of: csv2plot.py file --sep=DELIMITER Example: # FROM data file python csv2plot.py csv2plot.dat # OR (near realtime data) iex_types_batch.py --types=chart --range=1d --no_database_save AAPL | csv2plot.py -...
[ "facebook@beyondbond.com" ]
facebook@beyondbond.com
2d34fe0d4f1b224a9e161de674ff2f540eaf6f3f
d3f448d238b435b48d8f27f17a34b3e39a70dc29
/python-client/test/test_kyc_user_validation_share_holder_list_item_response_natural.py
5639c0032162e82c676318d5d1ff7f90707312d0
[]
no_license
pedroguirao/swagger
1fc29b6d9bcc193bf8ce85f6d8a6074f4c37150d
5ffea6203b5fcd3f201c2ede76d354302a6fb0ee
refs/heads/master
2020-06-07T16:15:08.659567
2019-06-21T07:51:49
2019-06-21T07:51:49
193,055,538
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
# coding: utf-8 """ MarketPay API API for Smart Contracts and Payments # noqa: E501 OpenAPI spec version: v2.01 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.kyc_us...
[ "antonio.canovas@ingenieriacloud.com" ]
antonio.canovas@ingenieriacloud.com
cf9fcbfc5f97eb28ceffeabff239359d989224bf
4614e0d358cfd0a652805780049830a6175db032
/setup.py
8e7cfd56f66f747938969104997c709c295e8acd
[ "Apache-2.0" ]
permissive
PoncinMatthieu/skrm
bb2c48367d153681b12e150ff0214930dcba333c
7aa0912907dfc3f8e8359568a727082fd9856523
refs/heads/master
2023-02-05T11:36:27.551935
2023-01-21T12:27:47
2023-01-21T12:27:47
8,715,387
5
1
null
null
null
null
UTF-8
Python
false
false
1,222
py
import os import setuptools def get_readme_content(): with open("README.md", "r") as f: return f.read() def get_package_version(): locals = {} with open(os.path.join("skrm", "version.py")) as fd: exec(fd.read(), None, locals) return locals["__version__"] setuptools.setup( n...
[ "matthieu@yousician.com" ]
matthieu@yousician.com
07603d8448554819c35d830a5e8bac16fee86dfb
a71652fe89fe2236e9a05030ebf337e6e306bb21
/palm_detection/main.py
0f279c8df10362023c1059ba264ecfb5094677a0
[ "Apache-2.0" ]
permissive
esimionato/oak-model-samples
e580affe8df6dcc01b6d26af8eb4f622fe28d01c
0f99e9c6e5d884c1f9493e83fb6834453bcfabcb
refs/heads/main
2023-04-13T04:43:39.306077
2021-04-29T14:35:10
2021-04-29T14:35:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
import os from modelplace_api.visualization import draw_detections_one_frame from oak_inference_utils import inference from palm_detection import InferenceModel def main(): model_cls = InferenceModel root_model_path = os.path.abspath(os.path.dirname(__file__)) visualization = draw_detections_one_frame ...
[ "lx.lyashuk@gmail.com" ]
lx.lyashuk@gmail.com
44ec93f5277d83d7adb38c625d69aebf21f7de01
6e04f50f02f265c0db42a2f0acced9c62dd1338e
/minion game.py
44452caa5e48819276fec4075507c338f878ad85
[]
no_license
Akashkumarsenthil/placement_practice_python
36c2f8d6a4186f2bc125c5c59fd92574952a4305
8a5425068c03f9fac13864509968018cde308033
refs/heads/master
2022-12-06T00:18:33.782794
2020-08-17T17:46:33
2020-08-17T17:46:33
262,390,224
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 28 13:18:39 2020 @author: akashkumar """ vov = "AEIOU" s = "BANANA" ks = 0 ss = 0 for i in range(len(s)): if s[i] in vov: ks += (len(s) - i) else: ss += (len(s) - i) print (ks) print (ss)
[ "akashkumarsenthil@gmail.com" ]
akashkumarsenthil@gmail.com
209fc872585b4a759ebdb5e8eb13d9892cdbba7c
76833905305f1df9f7f400191bf11cc4dc023a8d
/push_git.py
3477828858f9fa307b5dd08c560975b8ae4418ed
[]
no_license
akahuang/akarc
f22548b2cfcd40ede71f422421c6dcdbf6f8e331
99c4fe919dc5ee86e55d8632029b22a2759c9077
refs/heads/master
2016-09-06T18:05:08.330985
2013-11-07T04:45:01
2013-11-07T04:45:01
3,591,020
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
#!/usr/bin/python import os src_file = './gitconfig' des_file = os.environ['HOME'] + '/.gitconfig' tmp_file = './gitconfig_temp' ignore_tag = ['[user]\n', '[github]\n'] fin = open(des_file, 'r') fout = open(tmp_file, 'w') ignore_flag = False for line in fin: # Tag if line[0] == '[': ignore_flag = (li...
[ "flarehunter@gmail.com" ]
flarehunter@gmail.com
34b703bfe7e9850d90d611a783ed74ede903d8cb
59a0c54e182712340ee4f499b53ab92d7188cb23
/image_png.py
de3e8106b9e10cf555d8c1fe29c61b3bbc0d6dfb
[]
no_license
bobrekjiri/BrainfuckInterpreter
5434e66ceeaecf5287f0617a426df22568b6ee5f
f056acda447203135b506fd8a396b725b8cb4a41
refs/heads/master
2016-09-06T17:23:41.760238
2013-06-04T18:55:05
2013-06-04T18:55:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,659
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import zlib class PNGWrongHeaderError(Exception): """Výjimka oznamující, že načítaný soubor zřejmě není PNG-obrázkem.""" pass class PNGNotImplementedError(Exception): """Výjimka oznamující, že PNG-obrázek má strukturu, kterou neumíme zpracovat.""" pas...
[ "bobrekjiri@gmail.com" ]
bobrekjiri@gmail.com
61e9e6dde2b0b46ea65e8574120b84b1ac84b6d3
289462e18c368e9189dc68bef9ce4695900ab0c6
/Artificial Intelligence/Adjusting the operating time of the sprinkler/Logic/Rule.py
7d85aeccac0acba6b9ad4d2f8099568fc038979d
[]
no_license
tatarflavia/CS-UBB-projects
4d933beea2e2c97355fc6a95311e1feef97232ef
61f9113b1314180f7b40bba54cd99a195fefc521
refs/heads/master
2023-07-17T23:46:04.163457
2021-09-12T14:12:06
2021-09-12T14:12:06
298,521,030
0
1
null
null
null
null
UTF-8
Python
false
false
892
py
class FuzzyRule(object): # conjunctive fuzzy rule; temperature and humidity => time def __init__(self, inputs, out): self.inputDescriptions = inputs #dictionary of descriptionName and region chosen self.outputDescription = out #expected time region for the inputs given def applyRule(self,...
[ "tatar.flavia25@gmail.com" ]
tatar.flavia25@gmail.com
6bdb32efa294dfb859cd7b99eb9f9700b6f6217e
3c153c631f6663cdc239b0864c90f39396effeec
/display_all_gestures.py
21d291ada2fbcf8082548b9726210c09825fab30
[]
no_license
agentdragonborn/slr
4dc0606f805aed0e70227cc8fbbefbcda10660d0
05bfed57a9b6cc68a908846d3173028f97988a86
refs/heads/master
2020-03-07T13:15:57.703122
2018-03-31T04:11:51
2018-03-31T04:11:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
import cv2, os, random import numpy as np def get_image_size(): img = cv2.imread('gestures/0/100.jpg', 0) return img.shape gestures = os.listdir('gestures/') gestures.sort(key = int) begin_index = 0 end_index = 5 image_x, image_y = get_image_size() if len(gestures)%5 != 0: rows = int(len(gestures)/5...
[ "noreply@github.com" ]
agentdragonborn.noreply@github.com
37201c646a7df5155dcc8adffb9a2760f1ccc49e
edd319c79c04556a2c92dcd199adb1dbb1681039
/project/django_project/blog/migrations/0005_auto_20181226_0344.py
e679daa12cf84e56e91c4106a819ebb1c09fe487
[]
no_license
HeyFei/python
fc61627bff6b8788b0dce6d761cea25ddcf54ab7
fd18df5374e65cea6fe21de11e055ab4234e1c4d
refs/heads/master
2021-10-12T01:00:32.274910
2019-01-31T09:24:37
2019-01-31T09:24:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# Generated by Django 2.1.4 on 2018-12-26 03:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0004_reply'), ] operations = [ migrations.RemoveField( model_name='reply', name='author', ), migrati...
[ "sjm@33.cn" ]
sjm@33.cn
a099eace761779e208bf5c9c8b0c650a9bdd1f89
511caee38fe751453f0307c7ce6b9b40642dc9a0
/schedule/tests/BaseTestCase.py
237fc8ee352540c0c4f0b4a894c44a43650df119
[]
no_license
M1zz/greedyRainbow
88839852eaa921355ed2b723acbc75e76f617c00
f380e9ef8ab07152fd0f5646d42d955508d813cc
refs/heads/master
2020-05-07T16:25:45.951239
2019-05-20T14:57:23
2019-05-20T14:57:23
180,682,033
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
from django.test import TestCase class BaseTestCase(TestCase): def assertHasAnyType(self, arr, cls): self.assertTrue(any([isinstance(item, cls) for item in arr]))
[ "mizzking75@gmail.com" ]
mizzking75@gmail.com
f417f51f5cf08c592eee41208b983cd2c88c6fc5
18bdf174975bb8fdbaf51a82c0509585e0cbf6d4
/Degree/urls.py
8a9d15a9bc5768ade1e26d252955a5f3f20a7228
[]
no_license
kumarajeet024/degree
4c90388ca0d05dbc1bdc2d517a2dea0ec717059a
7b0fef11055c66b741182405886bd753cc75f083
refs/heads/master
2020-04-14T18:25:31.279846
2019-01-05T20:51:22
2019-01-05T20:51:22
164,017,348
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
"""Degree URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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') Class-based ...
[ "kumarajeet024@gmail.com" ]
kumarajeet024@gmail.com
ded27cf958fde5c1dfa9281f1beb37d3c09a054e
a7cc063e55b2873a82df6e14687d7b0f47f81239
/blog/urls.py
cf0da9e0af5b619e3070b970dacc408260ac3736
[]
no_license
komalberia21/my-first-blog
30474a20692d2bf8368043a69a2401c2203d9e4c
988f492e384c238b91eaac85fdea1d7c2adf53b4
refs/heads/master
2020-06-03T02:26:09.749569
2019-08-29T11:20:47
2019-08-29T11:20:47
191,395,317
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
from django.urls import path from . import views urlpatterns = [ path('', views.post_list , name='post_list'), path('post/<int:pk>/', views.post_detail, name='post_detail'), path('post/new/', views.post_new, name='post_new'), path('post/<int:pk>/edit/', views.post_edit, name='post_edit'), ...
[ "komalberia21@gmail.com" ]
komalberia21@gmail.com
99788176d473d88c0e2070ca3d2dbe70ffc4835f
ee791a94df95be9d77fc76071b8b194e184113b3
/main.py
79a8727d182ef1c2ab168ecfa1c5074199d8f5d2
[]
no_license
msb00003/boiler
bde99844aa56eed004c263e8d7415e6b8bf846d7
d3962386ceb883d93d3808f97112574e5a42f820
refs/heads/master
2020-04-14T22:21:53.248312
2019-01-09T21:36:11
2019-01-09T21:36:11
164,159,176
0
0
null
null
null
null
UTF-8
Python
false
false
890
py
from tornado.ioloop import PeriodicCallback, IOLoop from tornado.web import Application from handlers.timing.handler import TimingHandler, get_targets from hardware.boiler import set_boiler_high, set_boiler_low from hardware.display import render_targets from hardware.temperature import get_current_temperature def g...
[ "msb00003@gmail.com" ]
msb00003@gmail.com
1de1b2caa5a46a524e310c70cb4922b59d81d69c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03106/s261285927.py
acddd8336d17f956526b10a5358983a3ae205bef
[]
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
152
py
import sys a,b,k=map(int,input().split()) for i in range(1,101): if a%(101-i)==0 and b%(101-i)==0: k-=1 if k==0: print(101-i) sys.exit()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d3ce36ee607193f43fbbd6bd77c5c2efe6ce294f
6bb724ac45b939c2d0a8c91b20bed05123b160f0
/Web/NLP_server/public/headless/pipeline.py
c9cf5cfcd996f6eabedfbf6ac1761cc40a2a7660
[]
no_license
Longfei-Zhao/CHIIA
1654bef9c2be60aed2854e420264736d1f64027d
f8560fd8ff978c6ae3383f6be34e569c80ac35a1
refs/heads/master
2021-10-11T11:26:41.165788
2019-01-25T07:41:28
2019-01-25T07:41:28
167,494,582
1
1
null
null
null
null
UTF-8
Python
false
false
3,916
py
# encoding=utf-8 import MySQLdb from log import logger from bs4 import BeautifulSoup db = MySQLdb.connect("localhost", "root", "root", "NLP", charset='utf8') settings = {'id':None,'term':None,'startDate':None,'endDate':None} def processItem(id,title,author,content,date,crawldate,url,source): """ put item into mysq...
[ "u5976992@anu.edu.au" ]
u5976992@anu.edu.au