blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
577b92f826be294b581186b534f19ed48495f4d5
77eea52569b3c2c7e35b3a53735953157fc5683d
/venv/Lib/site-packages/rom/__init__.py
2bbc5a3cdf950d099fbdbefc9fcf94de37386a8e
[]
no_license
Bezingatron/MathsQuiz.py
d385f8d161782f7ad5b4edfeb63c3fb29962a308
1f0ba5a49990bcd43928ef5667f8a221c1101ed0
refs/heads/master
2023-04-07T04:51:07.848099
2021-04-14T19:42:15
2021-04-14T19:42:15
340,170,914
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
from .rom import rom, rom_generate, rom_parse
[ "yowran@gmail.com" ]
yowran@gmail.com
b8a905fd52811d0ab8aac11a7a14d94de838ca78
5a64aff40b596f2ee5c650811d3009bb7456a16c
/Coursera/Fundamentals_of_Digital_Image_and_Video_Processing/HW2/HW2.py
b752483920a4117935289b49044cc059abe748c2
[]
no_license
petershen0307/Course
5c1c901bc9f038306500f824a1daa54c7677624a
7c6b23556db47eb61c6b926913795e15d706397c
refs/heads/master
2021-07-20T06:32:27.969483
2017-10-29T15:14:28
2017-10-29T15:14:28
58,867,032
1
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
from scipy import misc from scipy import ndimage import numpy as np import matplotlib.pyplot as plt def filtering_image(image_path, filter): origin_image = misc.imread(image_path, mode='L') # plt.imshow(origin_image, cmap='Greys_r') # plt.show() print(origin_image) origin_image_double = origin_ima...
[ "petershen0307@hotmail.com" ]
petershen0307@hotmail.com
fabdcb016bb2945ce5a4420e58c20a8cc2070765
46afba4407a98ac564ed7a2e08aebfcec4fa1ba3
/Project Euler/problem_20.py
83947b08ce6336236edc3cd968c9bdea337af690
[]
no_license
areebbeigh/CompetitiveProgramming
b28ffe99ac15cadfa3b54f9974beb77c280b2309
04044674ad0663181326649d0c14da94108e90da
refs/heads/master
2021-07-15T07:48:42.338241
2021-07-13T10:36:11
2021-07-13T10:36:11
199,145,494
2
0
null
null
null
null
UTF-8
Python
false
false
166
py
#!/usr/bin/python3.6 def factorial(n): if n == 0: return 1 return n * factorial(n - 1) print( sum(map(lambda x: int(x), str(factorial(100)))) )
[ "areebbeigh@gmail.com" ]
areebbeigh@gmail.com
4edc9bed916af82b7eaccb493c7655623dae527d
b77f0f5854169adc500be3cc8466d380eef090aa
/tests/tests_integration/test_api/test_synthetic_time_series.py
7be5ee77e5efde763eb9dc6ac7d5413728f88631
[ "Apache-2.0" ]
permissive
lightspin/cognite-sdk-python
6c59ae04426df92f3b350d8fc48481a9f0cb5153
a1e32e6ce1ffd8cb66070843dfcb7773d2127689
refs/heads/master
2020-09-28T23:41:07.514077
2019-12-05T13:13:49
2019-12-05T13:13:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
import re from datetime import datetime from unittest import mock import pytest from cognite.client.experimental import CogniteClient COGNITE_CLIENT = CogniteClient() @pytest.fixture(scope="session") def test_time_series(): time_series = {} for ts in COGNITE_CLIENT.time_series.list(limit=150): if t...
[ "noreply@github.com" ]
noreply@github.com
c89ee707547460eac103b503d8800a3db56e5639
14c93e9552407b6137fba7d15d9ca99495356b3b
/insert.py
f27c46162fecc8f9a803026a0f3416b60ffc4b79
[]
no_license
le-phuc-loc/MakeLifeEasier
741537c4a81b43b889458a6e51fde8160fda64d5
61d952ebc602e7e0935baa459afe32e175d38623
refs/heads/master
2022-02-24T12:04:53.368373
2019-10-26T16:15:55
2019-10-26T16:15:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
import cv2 f = open("caption1.txt", "a") c = 0 i = 837 while i <= 1000: if c % 5 == 0: i += 1 img = './downloads/nienluan2019/hinh'+str(i)+'.jpg' frame = cv2.imread(img) frame = cv2.resize(frame,(600,400)) cv2.imshow("cap", frame) cv2.waitKey(300) c = 0 ...
[ "loclion17@gmail.com" ]
loclion17@gmail.com
7574388080ad99f15f8fdaba68b1877027859752
9d69a980eda6a62938f42035e9fce5a9db7426bc
/Training/example10.py
5d304fd0d558552d07c8e9ec0145eeae3503e201
[]
no_license
NamNamju/DataAnalysis
f5c8c6cd2aebcd710f747cffcf3e309b8f0999ea
8fbb67e14fca2bcbeac51a0cc01a2a5857e8e34b
refs/heads/master
2023-03-04T16:42:42.095428
2021-02-11T14:49:50
2021-02-11T14:49:50
326,737,772
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
import cv2 import numpy as np # trackbar 값을 빠르게 변경해볼 수 있다. def change_color(x): r = cv2.getTrackbarPos("R", "Image") g = cv2.getTrackbarPos("G", "Image") b = cv2.getTrackbarPos("B", "Image") image[:] = [b, g, r] cv2.imshow("Image", image) image = np.zeros((600, 400, 3), np.uint8) cv2.namedWindow("...
[ "namuju_hi@naver.com" ]
namuju_hi@naver.com
ef0b6bd74a936ce1e7647ea3fb059c84a30c785f
16937358e2f9cb173253969719398ddad66b0a94
/noesis/links.py
c5076633909e4192cf24a5ad3c5baa70fda713c5
[ "MIT" ]
permissive
fvictor/noesis-python
99d50b9875a7f283e2bbb13bc5ec5f0fc60c19ad
84a38398d23baf98f2712ddfe23a88d2d012d5a4
refs/heads/master
2021-04-09T15:08:41.944507
2018-09-19T10:33:16
2018-09-19T10:33:16
125,663,095
2
0
null
null
null
null
UTF-8
Python
false
false
3,902
py
import javabridge as jb from .utils import get_class_wrapper, java_matrix_to_numpy class LinkTask(): """Base abstract class for link-related scores.""" __PACKAGES__ = ['noesis.analysis.structure.links.prediction.local', 'noesis.analysis.structure.links.prediction.global'] __SCORE_TAIL...
[ "wertosfv@gmail.com" ]
wertosfv@gmail.com
8a79193a9965797088a1f5b46eadaffaa84fe9ae
10512ea1aa0f4870dbcf22151743655f80e4119c
/wangyiyun_pl/wangyiyun_pl/settings.py
1351d41e5341ddb2890cea03bc7171b7738cf668
[]
no_license
809069790/-one-
18f34367c4af0a9a6cd45ee5bc150f15a993cfbc
c7edb25a75094c4faec845fc820623e465c7cbdb
refs/heads/master
2020-03-28T03:07:08.689242
2018-09-06T05:36:35
2018-09-06T05:36:35
147,621,723
2
1
null
null
null
null
UTF-8
Python
false
false
3,331
py
# -*- coding: utf-8 -*- # Scrapy settings for wangyiyun_pl project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/...
[ "noreply@github.com" ]
noreply@github.com
ba292c32cf83dce0c1b1f6d90d73548a523ad68b
98e4dc41e3d994dfb55a2553c79d1b61590ecca6
/LeetCode/Medium/Subarray Sum Equals K/sol.py
aa9bc85d1765a4c74100a8bfe8caf9119a4376d8
[]
no_license
krohak/Project_Euler
b753c4f3bbf26a5eff3203e27482599d1e089fc6
1d8a2326543d69457f1971af9435b3e93ab32f52
refs/heads/master
2022-09-02T10:48:59.472111
2022-08-18T11:11:16
2022-08-18T11:11:16
111,204,162
4
1
null
null
null
null
UTF-8
Python
false
false
517
py
class Solution: def subarraySum(self, nums, target_sum): cumulative_sum = {0:1} counter = 0 summ = 0 for num in nums: summ+=num if (summ-target_sum) in cumulative_sum: counter+=cumulative_sum[(summ-target...
[ "rohaksinghal14@gmail.com" ]
rohaksinghal14@gmail.com
04b637496bfe20e97493ed1a0315f36073109343
14c992d7c53d989fdaebb79848d548985ffa805b
/sifapi/planning/migrations/0005_auto_20210907_1304.py
5660f0c77400e53b58cc9a954804b8a44fd850fb
[]
no_license
pierrotlemekcho/exaged
b0e699b1bcd04040e94c6c61ac57e6e2c11c5f93
a64102312b310f80fae9f071b5eda71642b3d402
refs/heads/master
2023-03-08T04:23:47.109553
2022-03-28T09:48:54
2022-03-28T09:48:54
81,460,567
0
1
null
2023-03-04T06:37:24
2017-02-09T14:49:36
Python
UTF-8
Python
false
false
975
py
# Generated by Django 3.2.7 on 2021-09-07 13:04 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('planning', '0004_auto_20210907_1249'), ] operations = [ migrations.AlterField( model_name='lign...
[ "alexandre.baizeau@gmail.com" ]
alexandre.baizeau@gmail.com
988bc023beff7901de42c542e51eefdcebde947b
50068689d8e7a9d12715585b935874e0d06cabca
/apns/new_apns.py
afb8c084fc99a715d3760535dce30ca7fe477112
[]
no_license
Bazinko/Course3-6
ff87f326dcfcfcac3941ab5b290020ff4fdc2f99
e73dbb9aedd2bb3e179c65d2cb91b543cb81974a
refs/heads/master
2021-01-17T20:55:56.265743
2015-11-28T22:38:43
2015-11-28T22:38:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import time import json from apns import APNs, Frame, Payload import sys cert_file = 'cert.pem' json_file = 'payload.json' tokens = [ '74EFFB57F7D081B88AF222861ACC9BEA45F8B257EB1762D82265F494C6E1178D', ] if __name__ == '__main__': try: custom_payload = json.loads(open(json_file, 'r').read()) exc...
[ "azat.almeev@gmail.com" ]
azat.almeev@gmail.com
1b0aae41bad07fa5a652c7824bf87c8f2c6abe40
c76b5c3e52a0ce66039aba9c741a86f7aa830b3a
/env/Lib/site-packages/pylint_django/tests/input/external_psycopg2_noerror_postgres_fields.py
e5cb0ddedb85334cb148e993e30c40603b45b7e8
[ "MIT" ]
permissive
GroovyCat/PRView-project
9aed4b0d864f812cc0e52ae346ad1e65d93665d7
28d2e80dcc03f82316c68d8162f2ec96703cb503
refs/heads/master
2021-06-22T14:59:48.337129
2021-01-20T10:04:05
2021-01-20T10:04:05
184,058,883
1
0
MIT
2019-05-27T00:21:24
2019-04-29T11:32:11
null
UTF-8
Python
false
false
1,626
py
""" Checks that Pylint does not complain Postgres model fields. """ # pylint: disable=C0111,W5101 from __future__ import print_function from django.contrib.postgres import fields from django.db import models class PostgresFieldsModel(models.Model): arrayfield = fields.ArrayField(models.CharField()) hstorefi...
[ "kodeep11@gmail.com" ]
kodeep11@gmail.com
8f4e84e7264fc334cc8f44ecd296730e66f376d9
bc4116c418a5136851b9956382d0195c0eec943f
/if, for, while, 실습1, 1차원배열/2439.py
fa8dad49d9df722e1ee090cc8db10b1b681e9fff
[]
no_license
bww7448/baekjoon_solution
64d29eae8d1c0cc46c948b318c25f70ef4fad804
a02d17681b268f5825f3f1c8bfa1f329f74e26bd
refs/heads/master
2022-11-24T09:29:20.338162
2020-08-03T12:53:38
2020-08-03T12:53:38
283,445,402
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
N = int(input()) for i in range(1,N+1): s = "*"*i print(s.rjust(N))
[ "bww7448@gmail.com" ]
bww7448@gmail.com
b4d04353919a7f6071d65606fccf5a77fe9f4b53
5bc59a84adc4854cdaa3af02be84fb4a70a85bb2
/04-DRF-LEVEL-TWO/ebooksapi/ebooks/apps.py
ff3c9cb021a64b9a95e270a20b7cc6aafb2232cb
[]
no_license
furkalokbu/REST_API
be2a0a4c05dfca15b24420d1fa1d22524a851a0b
55552d59a020ae969d4ef8dfda52207cf5c40c4c
refs/heads/main
2023-05-05T21:36:16.856267
2021-05-25T19:37:18
2021-05-25T19:37:18
332,436,631
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from django.apps import AppConfig class EbooksConfig(AppConfig): name = "ebooks"
[ "furkalokbu@gmail.com" ]
furkalokbu@gmail.com
d10426187a881b3186c505ac00bd2cca83c83986
cf6ea609922165d6a4b5af24a6b15e1537d9d901
/pylgrim/osmdump.py
3486bde6d8a50caacd8df4aac4ab256e8756c5b9
[]
no_license
josch/neo1973-germany
bbc9f0909a58e93b82fd515e9f9a066db7812091
90eaa81f2d3cdcf7af8f32298d77acfdf050be9a
refs/heads/master
2021-01-23T11:50:35.611116
2009-02-18T14:45:55
2009-02-18T14:45:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
#!/usr/bin/python #coding=utf8 import os import sys import math import time z = 10 def download(x,y,z): import urllib try: webFile = urllib.urlopen("http://a.tile.openstreetmap.org/%d/%d/%d.png"%(z,x,y)) if not os.path.exists("%d"%z): os.mkdir("%d"%z) if not os.path.exists...
[ "josch@46df4e5c-bc4e-4628-a0fc-830ba316316d" ]
josch@46df4e5c-bc4e-4628-a0fc-830ba316316d
efb6c6d184449d74a7b1f9ca6c7912378d14655e
4dccc7d5d379c152e3644002b57acb02c40a637f
/heap/connect_n_ropes.py
ee71e867692614c4da028cc1b932edfb9b5fd198
[]
no_license
Niranjan-10/DSA-Practice
e22d37bfb25d24b9e4f9d288f73dbb59f5726ba6
9b9af427db2816a49df91dc55d94d3839a4a1fcb
refs/heads/main
2023-08-21T19:34:49.852987
2021-10-05T13:36:18
2021-10-05T13:36:18
410,946,417
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
import heapq def connectNropes(minheap): ans = 0 while(len(minheap)>1): first = heapq.heappop(minheap) second = heapq.heappop(minheap) sum = first+second ans+=sum heapq.heappush(minheap,sum) return ans if __name__ == "__main__": arr = [ 4,...
[ "niranjanpapu4@gmail.com" ]
niranjanpapu4@gmail.com
7af9afcf305e3ff34fd960826dff35f494aca296
beb93da9233c8c000a5c2e34a0aeb5cc24de6632
/hackathon/hackathon/challenges/migrations/0005_auto_20201011_0500.py
9c535982695038c43512ae64d75fcfb75ddc3ed8
[]
no_license
Treelovah/Django
58707b3c4aa0c92c46c49f711fbfa8af70c84652
1fad7f677f2efa3dba854f22b3bbbe914171ab5a
refs/heads/main
2023-02-07T03:08:59.006324
2020-12-21T01:37:49
2020-12-21T01:37:49
322,059,417
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
# Generated by Django 3.1.1 on 2020-10-11 05:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('challenges', '0004_auto_20201011_0449'), ] operations = [ migrations.AlterField( model_name='team', name='team_name'...
[ "tree@pop-os.localdomain" ]
tree@pop-os.localdomain
732ed6a1db0038aacd058257115f7fce3e73f3e9
53e17ccb4270e31058cc50dd3c5874f6fa619ee1
/traditional_boxCounting.py
e135fc8196b67f0cb9bb65ca364cd923dbd77bfe
[ "MIT" ]
permissive
muchway2019/PPIN
a1a52fdc673d427e848aa3b240d43dec8fcbe743
5149b094ef1dc2e4628d4e1bb4594e5b7c40d440
refs/heads/master
2020-11-30T02:43:07.499843
2019-01-31T14:13:53
2019-01-31T14:13:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,039
py
#this preliminary code only calculates the number of boxes of length 2 required to cover the whole network #once you run the code, you can see how the nodes are removed, how the edges are reconnected, and how the number of boxes are increasing import matplotlib.pyplot as plt import networkx as nx from math import log f...
[ "noreply@github.com" ]
noreply@github.com
35637523406a5f1bc4a8626784efa3ef9b2464ec
1259d1f9e81a68606fa25315ad3915a9ddd7f599
/env/bin/pyrsa-decrypt
a809fe68bf0155c0400fa8cb67a6a36fc33560d0
[]
no_license
Adridut/flaskr
1c33dc2d35f2d5b559cf6f3f40775d465d401fe7
94e7c6b5fd634f0ee0ef48a8e07b9c6f6b1d405a
refs/heads/master
2021-01-21T06:48:59.125054
2017-02-27T08:26:45
2017-02-27T08:26:45
83,286,488
0
0
null
null
null
null
UTF-8
Python
false
false
238
#!/home/adrien/Dev/flaskr/env/bin/python # -*- coding: utf-8 -*- import re import sys from rsa.cli import decrypt if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(decrypt())
[ "dutfoy.adrien@hotmail.fr" ]
dutfoy.adrien@hotmail.fr
37b2e53d04f0dc324981033f3407a9c4aaec00c2
2780b2e24fd6c128c865e83477dad8ec6d1b6f38
/Live_face_detection.py
212d84eefbbf3d056970c3fe15f21d2869c09845
[]
no_license
Prasoon950/OPEN_CV
70c28ce4c6600f31d8cb031d24bda89abfc74f30
d121f5159b82d93ecc99192610143016ca231ec8
refs/heads/master
2021-03-16T15:25:27.805550
2020-03-12T20:05:49
2020-03-12T20:05:49
246,920,170
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
# -*- coding: utf-8 -*- """ Created on Fri Mar 13 01:09:55 2020 @author: DELL """ import numpy as np import cv2 face_classifier = cv2.CascadeClassifier("F:\zipped\Computer-Vision-Tutorial-master\Haarcascades\haarcascade_frontalface_default.xml") eye_classifier = cv2.CascadeClassifier("F:\zipped\Computer-...
[ "noreply@github.com" ]
noreply@github.com
7b041ec9174315d209a07d3788e55af41992fa48
6656d7e426c85ff977a2619f6a52981456ada9fe
/2_Arrays/4.py
2d98a1503d3a9f682454b109abf31f63ca746397
[ "MIT" ]
permissive
abphilip-codes/Hackerrank_Interview
4f37e12f1ab47042db88947bb3a31aed6486b54d
b40981ef55d04fb14d81a6e1c9ade1878f59394d
refs/heads/master
2023-08-02T22:00:37.298224
2021-10-02T11:59:08
2021-10-02T11:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
# https://www.hackerrank.com/challenges/minimum-swaps-2/problem #!/bin/python3 import math import os import random import re import sys # Complete the minimumSwaps function below. def minimumSwaps(a): k,z=0,dict(zip(a,range(1,len(a)+1))) for i in range(1,len(a)+1): if z[i]!=i: z[a[i-1]]=...
[ "allenalvin333@gmail.com" ]
allenalvin333@gmail.com
9407153003d4258fda6044c326d36c44a4358c76
6ff62bd52c889483dd2445d6c7c7239d8ac8f870
/NBIOT_position_system/real_time_monitoring/migrations/0011_auto_20180717_1423.py
dfb6f39ed9bd9dada0ed242b07e0c7998b6964a0
[]
no_license
zhangc-rw/position_service
830c1e5fbf4d9bc4a307aa663d4193dc0214f5b7
104b81dc40ff777a94ee18ff63422c89c5a20cf3
refs/heads/master
2020-03-12T13:37:52.967126
2018-12-06T08:18:30
2018-12-06T08:18:30
130,646,760
0
1
null
2018-04-24T01:35:52
2018-04-23T05:55:45
Python
UTF-8
Python
false
false
1,792
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-07-17 06:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('device_management', '0009_auto_20180717_1423'), ('...
[ "1031145995@qq.com" ]
1031145995@qq.com
4eff3ee86176474b0f5ada0af11864b69625c3c0
ec551303265c269bf1855fe1a30fdffe9bc894b6
/topic10_queue/T933_RecentCounter/interview.py
8bd0e8689824bc5d8875b7a6fa5e0244cd77e011
[]
no_license
GongFuXiong/leetcode
27dbda7a5ced630ae2ae65e19d418ebbc65ae167
f831fd9603592ae5bee3679924f962a3ebce381c
refs/heads/master
2023-06-25T01:05:45.683510
2021-07-26T10:05:25
2021-07-26T10:05:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
''' 933. 最近的请求次数 写一个 RecentCounter 类来计算最近的请求。 它只有一个方法:ping(int t),其中 t 代表以毫秒为单位的某个时间。 返回从 3000 毫秒前到现在的 ping 数。 任何处于 [t - 3000, t] 时间范围之内的 ping 都将会被计算在内,包括当前(指 t 时刻)的 ping。 保证每次对 ping 的调用都使用比之前更大的 t 值。 示例: 输入:inputs = ["RecentCounter","ping","ping","ping","ping"], inputs = [[],[1],...
[ "958747457@qq.com" ]
958747457@qq.com
4be4c858a411ba9e30fcb9d748020692c677826b
60e4b90a82cb5e64ba61a68fd5cac13b0b4e3297
/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/users/serializers.py
582f5353baf7f90f3e9ac396aa6667c1a1816bbf
[ "MIT" ]
permissive
mashrikt/cookiecutter-django-dokku
768a29974b99a67a8c2e2b73d7bf86c155899cae
e78a27d78c2b1fea47c1dc40449ad542ca0b7ee6
refs/heads/master
2020-03-22T08:28:50.214705
2019-07-25T19:04:15
2019-07-25T19:04:15
139,769,068
19
6
MIT
2020-02-12T01:05:45
2018-07-04T21:58:26
Python
UTF-8
Python
false
false
2,906
py
from allauth.account.adapter import get_adapter from django.contrib.auth import get_user_model from django.shortcuts import get_object_or_404 from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from rest_framework.serializers import ModelSerializer, Serializer, ValidationError...
[ "mashrikt@gmail.com" ]
mashrikt@gmail.com
0a58a94a0291c9eee74ec90033a491790733ec6e
55e28e35db5bf6a844df3fb47080500b115a893e
/day10/select/select_server.py
009bb5773e7561fb2d56689d463ea451aefcc9ee
[]
no_license
pylarva/Python
5743ffa4a69db42b642d51b62f9e9b69ddbc1a72
71b484950e6dbdcf708726a68a3386d0d6ddc07f
refs/heads/master
2020-04-19T09:11:11.195393
2017-11-16T07:32:59
2017-11-16T07:32:59
67,507,687
1
0
null
null
null
null
UTF-8
Python
false
false
3,258
py
# !/usr/bin/env python # -*- coding:utf-8 -*- # Author:pylarva # bolg:www.lichengbing.com __author__ = 'Alex Li' import select import socket import sys import queue server = socket.socket() server.setblocking(0) server_addr = ('localhost', 10000) print('starting up on %s port %s' % server_addr) server.bind(server...
[ "1326126359@qq.com" ]
1326126359@qq.com
315e0a44b6c237ed7a6e9ed6807d3222de0857a3
7837cd1bee1a9abd623600cf30c2f462da48d558
/aaa.py
1123a79ae464804cd597a4e45e9d9c4e5f526712
[]
no_license
hal1932/astor_test
8285b3b8c1fa187b7cd3c8d147c8a75d8e4ba207
e14c7de55bb6e947e41387d33fff5286bbea4570
refs/heads/master
2021-08-30T09:37:33.083995
2017-12-17T08:36:12
2017-12-17T08:36:12
114,521,531
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
# encoding: utf-8 import functools def deco1(func): @functools.wraps(func) def wrapper(*args, **kwargs): print 'deco1 start' func(*args, **kwargs) print 'deco1 end' return wrapper def deco2(*arg, **kwarg): def decorator(func): @functools.wraps(func) def wrappe...
[ "yu.arai.19@gmail.com" ]
yu.arai.19@gmail.com
1f8b127b062ecf02e219e709909e74fc07adc91a
58e408afaeb04b92c89980266c2ca906386e75e8
/n_primo/solutions/correct.py
3a508988ca33c7ea0dd3307506c1ad673e41d1ba
[]
no_license
Angelox547/TuringArena-PCTO
b45fee33c886bb6a5216bd78d6777617852c1222
5db78428caf475eea66f60c3edeaa8e1dfd71e67
refs/heads/master
2020-05-31T06:41:37.235099
2019-09-14T13:13:50
2019-09-14T13:13:50
190,147,597
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
def primo(a): i = 2 while i < a/2+1: if a % i == 0: return 0 i += 1 return 1
[ "noreply@github.com" ]
noreply@github.com
760c46b1f182472c11a3cb0026781c521fddb142
a943cb6da95ec1e06cb480887ba1062a5783527f
/2012-aqs/figures/plot-smh-norris.py
262432f7ea056293f457ca60b89fe0a54119ed39
[]
no_license
andycasey/papers
1b2c882c20b0c65b5899d70dc95825ec53cc9fe2
3d585ad4b6b1c3b40227185fd7b22ea9bdeb8e02
refs/heads/master
2021-01-19T17:24:48.788580
2013-08-13T08:51:02
2013-08-13T08:51:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,155
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec wavelength, smh_ew, norris_ew = np.loadtxt('SMH-Norris-comparison.data', usecols=(0, 1, 2, ), unpack=True) fig = plt.figure(figsize=(6,7)) fig.subplots_adjust(hspace=0.0, wspace=0.0) gs = gridspec.GridSpec(2, 1, height_ratios=[1...
[ "andycasey@gmail.com" ]
andycasey@gmail.com
6298875d8e11878aa23517f122c8a75e9d106d46
38fff7bdefd8d62a740d51329b50d0e1e49258bb
/projects/smart_open/fuzz_zip.py
3a7f08c09ad89f312bad1a8251882d276259b866
[ "Apache-2.0" ]
permissive
google/oss-fuzz
026384c2ada61ef68b147548e830f60730c5e738
f0275421f84b8f80ee767fb9230134ac97cb687b
refs/heads/master
2023-08-31T23:30:28.157702
2023-08-31T21:49:30
2023-08-31T21:49:30
63,809,205
9,438
2,315
Apache-2.0
2023-09-14T20:32:19
2016-07-20T19:39:50
Shell
UTF-8
Python
false
false
1,605
py
#!/usr/bin/python3 # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "noreply@github.com" ]
noreply@github.com
09b9cc6b9508e65c23efd41125168aad565a87ae
67084751337f327092049a61b6d8c630cd3767de
/wrap_markdown_content/WrapMarkdown.py
92e05964ce3197a455f52ff7c71894ba486065dd
[ "MIT" ]
permissive
habereet/awesomeScripts
0f0a33d9a35de8b4449c1263db4407beaf0178fa
2d77f3619314aa7840fed57e0cf451fe5c1a70a9
refs/heads/master
2023-01-05T01:29:30.063154
2020-10-31T00:36:16
2020-10-31T00:36:16
303,189,908
0
0
MIT
2020-10-11T18:48:07
2020-10-11T18:48:06
null
UTF-8
Python
false
false
1,286
py
import sys class Buffer: def __init__(self, filename: str): self.input_file = open(filename, 'r') self.all_lines = self.input_file.readlines() def trim(self, ncolumns: int): for line in self.all_lines: if line == '\n' or line == '\t': print(line, end='') ...
[ "noreply@github.com" ]
noreply@github.com
bfcc4f82ae5fd44b4414bb887094046c13bb3e10
c0fad90611a6e943277c3d79eeb48ccd5f0d0a88
/29divide.py
6cee6413834a3e4bbc05b6458fb1114fdad5b765
[]
no_license
lmb633/leetcode
e2da31984af07b9e16787f4d57f82dab2dcb551a
d91568d245dd8fb66f46ff73737cbad974f490a6
refs/heads/master
2021-07-19T16:07:40.864854
2021-02-24T10:57:40
2021-02-24T10:57:40
243,146,182
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
class Solution(object): def divide(self, dividend, divisor): if dividend == 0: return 0 if dividend == -2 ** 31 and divisor == -1: return 2 ** 31 - 1 flag = 1 if dividend ^ divisor < 0: flag = -1 dividend = abs(dividend) d...
[ "limingbo@focusmedia.cn" ]
limingbo@focusmedia.cn
06cf24deb1ada46c90e371a9923156badefe36f7
1011b26dbae56326653a57acb243a8c678a5cbb4
/CNN-UNet/Data_functions/plot_functions.py
8a399671d50084fc0e47b1a7164cd6f0b52a559f
[]
no_license
yxu233/Myelin_cleaned_locally
2986ab702036d30f815c0fda51cecef6e1ded9ef
735f2680b3ca0b6f60fe3c7c21a443d8016183fa
refs/heads/master
2022-11-23T17:11:50.619420
2020-07-29T05:01:55
2020-07-29T05:01:55
283,311,686
0
0
null
null
null
null
UTF-8
Python
false
false
17,082
py
# -*- coding: utf-8 -*- """ Created on Sun Dec 31 16:16:39 2017 @author: Tiger """ import tensorflow as tf import math import pylab as mpl import numpy as np import time import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt from PIL import Image import random from skimage import measure """ ADDS...
[ "yxu130@jhmi.edu" ]
yxu130@jhmi.edu
5eff543f2b5ee3686888c2c694d39b8bade76fd1
9a817d9063fd0e4c92b8b4e59122b1f3eb1ce31a
/manage.py
0e57fb9345c3da83e72083974d69dcc80850c984
[]
no_license
froglio/pazdpaula_website
fcaac08197b21443e1b6509c948ed8485e0be739
4ffcefc86f216210c9182ace5550a9dabeada550
refs/heads/master
2023-04-06T01:07:42.270286
2021-05-03T17:29:21
2021-05-03T17:29:21
330,445,061
0
0
null
null
null
null
UTF-8
Python
false
false
665
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', 'pazdpaula.settings') try: from django.core.management import execute_from_command_line except Im...
[ "rogliofabricio@gmail.com" ]
rogliofabricio@gmail.com
5a1b0561f000bb1f98b804d4b36c611a61e18f75
03c6b643fcd652d58c9e6a02358de36081892779
/main.py
5f19c6e238741ddfc00dcf46901ee02ecee5390a
[ "MIT" ]
permissive
moeKiwiSAMA/tensor-snake
bae49b8a203da288a24aeafa5de2cd5bdd609a53
c91f5b63d1d3bb9929dfdf34f09ccf99ee947486
refs/heads/master
2020-07-08T13:01:14.703573
2019-08-21T23:49:53
2019-08-21T23:49:53
203,680,726
0
0
null
null
null
null
UTF-8
Python
false
false
2,413
py
import numpy as np import time import random class snake: def __init__(self, height, width): self.height = height self.width = width self.error = 0 self.center = (int(height / 2), int(width / 2)) self.location = [] self.foodlocation = (0, 0) self.dirct = "l"...
[ "me@kiwi.cat" ]
me@kiwi.cat
0c9265f590f32c9ddf9f7a2e559b410b0c5e1a19
013df0289a4effea55545c1a41ddb235a68bd6ce
/max_heap.py
3c1aaad3bf0e7c7d6d157bac0470f19ceebd55bd
[]
no_license
WaspVae/Study
9dc41d0c73b9b5fc033a7a03a88b933881973e34
2004185e67e984f4106215e97fc5a9ce49d14cab
refs/heads/master
2021-02-09T18:05:06.867297
2020-08-25T15:10:55
2020-08-25T15:10:55
244,310,935
0
0
null
null
null
null
UTF-8
Python
false
false
941
py
class MaxHeap: def __init__(self): self.count = 0 self.data = [] def insert(self, item): self.data.append(item) self.count += 1 self.shift_up(self.count) def extract_max(self): self.data[0], self.data[-1] = self.data[-1], self.data[0] self.count -= ...
[ "waspvae@gmail.com" ]
waspvae@gmail.com
ffcff4429028b57bfc8fc992bd72a29135b5bbfc
417da4d4929162c9738f2eb44bce7a93e6123fab
/scripts/script.py
d9abfb3dae544e25e51cad7ad3ba07eedd81b341
[]
no_license
apatronl/ProgrammingLanguages
c27ffc09d81036a227c005cf73acd83d598bf45a
42204997532d28b186c005940d872327363b177d
refs/heads/master
2021-05-14T10:14:33.189912
2018-01-05T16:45:13
2018-01-05T16:45:13
116,349,196
1
0
null
null
null
null
UTF-8
Python
false
false
2,225
py
import csv import wikipedia import urllib.request from bs4 import BeautifulSoup as BS import re pageTitle = "List of programming languages" nodes = list(wikipedia.page(pageTitle).links) removeList = ["List of", "Lists of", "Timeline", "Comparison of", "History of", "Esoteric programming language"] nodes ...
[ "ale7feb@hotmail.com" ]
ale7feb@hotmail.com
6d71558f72f56b692f826f2c54b03347759f5030
66b220a4c8c0bfde435f29e3a18cf79f6e7a4c67
/src/exemplos/01_Dados/02_Operadores/01-subtracao.py
77f2c292956d5c74e2524a563e94f8fc4d5a83cb
[]
no_license
gnramos/CIC-APC
089b6d0110394b4db97c23e032394eaefce0aeef
b94fe2dc4840064f1613d24e5d1447d49b9bb8bd
refs/heads/master
2023-04-15T18:11:27.919896
2023-04-05T21:31:03
2023-04-05T21:31:03
31,514,265
42
30
null
2018-11-20T18:09:10
2015-03-01T22:57:39
C
UTF-8
Python
false
false
964
py
# -*- coding: utf-8 -*- # @package: 01-subtracao.py # @author: Guilherme N. Ramos (gnramos@unb.br) # @disciplina: Algoritmos e Programação de Computadores # # Exemplos de utilização do operador de subtração. Em Python, só é possível # subtrair valores numéricos. print('Subtração (numéricos):') # Escreva o re...
[ "ramos@gnramos.com" ]
ramos@gnramos.com
66b1007d1dabe0428cbe0ba4c2f82d9ad8aa4dec
cb20ef5b4048457a2e6dca4a4cb45c53c9843744
/tests/RESTful/testcases/system/test01_usermanager.py
c8459e97ec6e5c06d18b505403753911f74efb0c
[]
no_license
rudecs/openvcloud
5001b77e8d943427c1bed563f3dcc6b9467936e2
12ccce2a54034f5bf5842e000c2cc3d7e22836d8
refs/heads/master
2020-03-24T00:00:10.422677
2018-11-22T13:41:17
2018-11-22T13:41:17
142,267,808
2
1
null
2018-07-25T08:02:37
2018-07-25T08:02:36
null
UTF-8
Python
false
false
4,341
py
import time, random, unittest from testcases import * from nose_parameterized import parameterized class UsersTests(TestcasesBase): def setUp(self): super().setUp() self.data, self.response = self.api.system.usermanager.create(provider=None) self.assertEqual(self.response.status_code, 200, ...
[ "deboeck.jo@gmail.com" ]
deboeck.jo@gmail.com
2810d657e2aa3272c2d799f7b7ea8f265d83dd92
321afe9ca4a30ff655483901bdb6368cce1bd58b
/catalog/migrations/0019_biditems_time.py
f8acacc12ce34e72ef8a1a024598b0d27ff127b5
[]
no_license
moses-mugoya/Auction-System
75456a475a0a76a9c7143f2f039e059f841d204f
42de3e68fd7a99bdb0598f820b5f8ae6359e972d
refs/heads/main
2023-02-04T22:58:22.793934
2020-12-24T18:05:51
2020-12-24T18:05:51
324,211,000
1
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 2.1.4 on 2019-04-07 17:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0018_auto_20190407_1343'), ] operations = [ migrations.AddField( model_name='biditems', name='time', ...
[ "mosesmugoya31@gmail.com" ]
mosesmugoya31@gmail.com
f14a001ed3820955e8948479524e1a9256877fb9
5e1e258e79eb8f69fa05a3b611c1d1902a69dee0
/03/part1.py
e419027b6a366f27007dd98a4939c7df0693a22a
[]
no_license
gabrielvicenteYT/aoc-2018-python
7983a66e05ec99152361e13fb41e90a077f7145c
d278278f68b0e10e0633ab3cf297c3497b5ede8f
refs/heads/master
2021-10-11T04:22:57.187395
2019-01-22T00:20:53
2019-01-22T00:20:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
import re from collections import Counter from itertools import product usages = Counter() with open('in.txt') as f: for line in f: id_, x, y, width, height = map(int, re.findall('\d+', line)) usages.update(product(range(x, x + width), range(y, y + height))) print(sum(value > 1 for value in usage...
[ "mhiming@gmail.com" ]
mhiming@gmail.com
49b574c1e04a988e0805d696687ea04a0fce251c
0ae112aff68de5f94c09d004c21834349b9afa8d
/common/match_thread.py
e5bda9c33bbd785a741e82fe5720333cb042af19
[]
no_license
Maoyun/Azure_Line
2f319f16663a2061997ff558bc8e955154294bfb
7dd94e1391f82603bfc76b118b598bf05f8106c9
refs/heads/master
2020-03-14T05:18:06.021340
2018-04-29T05:08:09
2018-04-29T05:08:09
131,461,693
0
0
null
null
null
null
UTF-8
Python
false
false
8,567
py
# !/usr/bin/env python # -*-coding:utf-8 -*- # author:Dra Date:2018/2/22 import os import sys import random import cv2 import time import numpy as np import threading class MyThread(threading.Thread): def __init__(self, func, args=()): super(MyThread, self).__init__() self.func = func sel...
[ "maounfeng@qq.com" ]
maounfeng@qq.com
9016ca060e58ff5454c362fcf89a1cb3825240a8
1d3af66da1c599590c431317b02d315af9f68679
/publishing_system/views.py
356db6d70bca2c827351a3a10ca8e95f3b63f75b
[]
no_license
huidou74/CMDB-01
9ca03755da9a652cfdfcbaaf8acbc720f6c8cfdd
e8f78b7eeac854df11d2528a7efa2cd15137fbe3
refs/heads/master
2020-04-29T15:38:42.082743
2019-03-18T08:42:28
2019-03-18T08:42:28
176,235,247
1
0
null
null
null
null
UTF-8
Python
false
false
10,135
py
# Create your views here. from django.shortcuts import render, HttpResponse, redirect from hc import models from hc_auth import auth_data import os,sys from publishing_system.task import add, mian_salt from celery.result import AsyncResult from lyh_project.celery import app from publishing_system.main...
[ "liangyonghui123@qq.com" ]
liangyonghui123@qq.com
c6d625d9f68df0ae43347adb40152469782dbb6c
8caa427e6c2a932d65de15651d41adcfe8c99398
/1-MIT_Python/ProblemSet6/ps6_encryption.py
0e276200dbc78ad3fe9d0eda36260e4e2cceeeae
[]
no_license
HillBamboo/MOOCs
d300f341dfe2edffbc27172332bc44896cc1c699
abe3ca04f6dbfd42e4f78f5a6e0e92f996a1895a
refs/heads/master
2021-01-10T17:49:02.870852
2017-02-18T12:29:20
2017-02-18T12:29:20
46,789,365
2
0
null
null
null
null
UTF-8
Python
false
false
5,376
py
# 6.00x Problem Set 6 # # Part 1 - HAIL CAESAR! import string import random WORDLIST_FILENAME = "words.txt" # ----------------------------------- # Helper code # (you don't need to understand this helper code) def loadWords(): """ Returns a list of valid words. Words are strings of lowercase letters. ...
[ "bamboohill@outlook.com" ]
bamboohill@outlook.com
9a36b98bb923fd7dead1786e076de9a8d5e3a170
bf1461cbd737917d359998c1235c21386529b1b3
/bin/motor_intermediate.py
7649bea3ffbaeb41e705a413caecf33d525a6faf
[]
no_license
glynfinck/trashbot_2dnav
d29bf0e35c3463b401d7ee54c94a1541be676497
90ac956e9a2889680238a30324d054c0c030a5da
refs/heads/master
2020-12-11T21:28:11.184688
2020-03-09T00:04:14
2020-03-09T00:04:14
233,964,050
0
0
null
null
null
null
UTF-8
Python
false
false
4,313
py
#! /usr/bin/env python import rospy import yaml import os from std_msgs.msg import String from geometry_msgs.msg import Twist BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_LOCAL_PLANNER_PATH = BASE_DIR+"/param"+"/base_local_planner_params.yaml" DESIRED_BASE_LOCAL_PLANNER_PATH = BASE_DIR+...
[ "glynfinck@alumni.ubc.ca" ]
glynfinck@alumni.ubc.ca
7bc58f3621d6e04206543d4b556929e56b1c3b0f
5d11146d1d81fc7c75f64f902d84673401f7a4b9
/oopython/example_code/vt23/kmom03/get_post_ok/src/guess_game.py
92315a082205be08b15bd1c81c5ada27db284b32
[ "MIT" ]
permissive
dbwebb-se/python-slides
ca82688e1ea0d527fc650eb2872f3c71425690f1
4c5f0bb9b5873fcc2fd89740b36ede78b2f9d6c2
refs/heads/master
2023-08-31T07:53:11.958487
2023-08-22T12:21:16
2023-08-22T12:21:16
144,724,378
0
0
MIT
2023-03-08T20:50:56
2018-08-14T13:30:50
HTML
UTF-8
Python
false
false
1,766
py
#!/usr/bin/env python3 """ Main class for the guessing game """ import random from src.guess import Guess class GuessGame: """ Holds info for playing a guessing game """ def __init__(self, correct_value=None, guesses=None): if correct_value is not None: self._correct_value = correct...
[ "52319033+epkmagr@users.noreply.github.com" ]
52319033+epkmagr@users.noreply.github.com
97af32bd4a5c4035d0706ba4db1578224129c7e6
f48c6625dbd6d64a203a7f4e2c1cceec1afe01e8
/bit_manipulation.py
493d33ceb087f382aee7e4eccf094369baf9ec0c
[]
no_license
SergiosKar/Algorithms_DataStructures
3087dfd34ab303732e0bedd6e0182dde4915ae87
0c5a7fe702f3cb54d4774e4fb0b4694bef2a7f07
refs/heads/master
2020-05-07T20:42:49.822989
2019-06-24T17:59:22
2019-06-24T17:59:22
180,874,174
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
num=72 print(bin(num)) for pos in range(8): print(bin(1<<pos)) print(' ')
[ "noreply@github.com" ]
noreply@github.com
ea25370b4ca6e70943758b90f71ffcc5e2e588ed
ea1cd395be1c201e7f8cd49ff6d556fa4c853b74
/PythonDataStructures/Sports.py
0e1a0f12b75ce9f04a96ef2e68336295e6b4d085
[]
no_license
itsmrajesh/python-programming-questions
1c7571abc419da2617d46d5c1c824095ca7ec592
5820c28131aeb3caa17efe2a83de07576755c300
refs/heads/master
2020-06-11T12:29:40.433704
2019-09-05T12:37:03
2019-09-05T12:37:03
193,964,339
0
0
null
null
null
null
UTF-8
Python
false
false
896
py
Cricket=[ "PKM", "ALN", "GLN", "NVR", "PVR", "KM", "VP", "CS", "MCS"] Football=[ "PKM", "ALN","RMZ","CS", "MCS"] Badminton=[ "PKM", "ALN", "NV", "KM","RMV"] all_Players_list=list() all_Players_list.extend(Cricket) all_Players_list.extend(Football) all_Players_list.extend(Badminton) def displayNames(data): for nam...
[ "m.rajeshrajz@gmail.com" ]
m.rajeshrajz@gmail.com
0b6b1aff0397d9ac19c5d18aa1bfecfa51153e80
c714f2e2524b1797636699602d746fb7de064083
/SLAM2D.py
1bc95a6c180f6238748ede52f059898a6461f4ac
[]
no_license
arnolde/SLAM
7c8b6ae80977fd1eabf2250d5ac7e3a393ded977
028d1795a3bf1acb8ebad4c91440c5646ff96b3f
refs/heads/master
2020-09-08T15:50:25.373110
2019-11-12T10:21:19
2019-11-12T10:21:19
221,176,240
0
0
null
2019-11-12T09:13:59
2019-11-12T09:13:58
null
UTF-8
Python
false
false
24,003
py
import numpy as np from numpy.linalg import inv, multi_dot from numpy import dot from matplotlib import pyplot as plt from matplotlib.patches import Circle import math import seaborn from scipy import sparse from scipy.sparse import linalg def dots(*arg): return multi_dot(arg) class BasicMovement: def __ini...
[ "evann.courdier@mines-paristech.fr" ]
evann.courdier@mines-paristech.fr
4a53042804f4489e20c7b38c8fe885c299d6caf6
28887a9bfd18f64a045c419037e9aba2cfd1bf50
/typed/for/iw.py
84da2feb585f08a82b8831cd68d318c5ef8d0e3d
[]
no_license
Coobeliues/pp2_py
18ba46bc82edc3f0c189f5e51ec6950af5269751
89cffd04499691e72e9dbbf9626a84ad27fddf79
refs/heads/main
2023-06-28T01:13:12.602998
2021-07-29T05:43:17
2021-07-29T05:43:17
380,136,849
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
k=545 maxi=-1112 temple=0 while k!=0: x=int(input()) if maxi<x: maxi=x k=x print(maxi)
[ "70967044+Coobeliues@users.noreply.github.com" ]
70967044+Coobeliues@users.noreply.github.com
efbe5cae3f768724158b26af2d52232b3009deaf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02889/s800108978.py
f16d83d80d9585a9e51d77414e46a2135a05fdac
[]
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
1,377
py
import sys import math import heapq sys.setrecursionlimit(10**7) INTMAX = 9323372036854775807 INTMIN = -9223372036854775808 DVSR = 1000000007 def POW(x, y): return pow(x, y, DVSR) def INV(x, m=DVSR): return pow(x, m - 2, m) def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m def LI(): return [int(x) for x in sys.stdin.re...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2479809badda69fa0efea62428b734087221bdbb
e648becc46b5a87c5ad2760b69933eb8b34b1f2a
/stock_tracking_project/registration/migrations/0005_userstock_c_type.py
91be33a94f72cc989c92ad03255dbace55d273e1
[]
no_license
webclinic017/stock_analyzer-1
0da7f5f06415fa93c3f5ebbdf82ce1aaad700fd1
1664da1671cec78aed68f393cdbb4911e9c87503
refs/heads/main
2023-08-29T23:16:23.869305
2021-11-11T18:51:40
2021-11-11T18:51:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
# Generated by Django 3.1.3 on 2021-01-03 08:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registration', '0004_auto_20210103_0956'), ] operations = [ migrations.AddField( model_name='userstock', name='c_typ...
[ "andrew.jacobson22@gmail.com" ]
andrew.jacobson22@gmail.com
655276d1723590878fde8fff3765da9fc89a2a83
7bcaf7eab49a37c4e38c0854849ef34f2ab9ebbb
/Author-Paper/PythonBenchmark/TNNPA-C.py
e20fba438300e667f38f9393e877af059414b41f
[ "BSD-2-Clause" ]
permissive
pratapbhanu/misc
08a0e42d214754bb1ce0d41dfdba0b12f278c008
41c5dca20dbcfcb2390259f6268a2aab62059aaa
refs/heads/master
2020-04-15T00:47:07.287933
2013-06-11T12:13:46
2013-06-11T12:13:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,144
py
''' Created on Nov 7, 2012 @author: bhanu ''' import sys from array import array import numpy as np import os import math class Layer(object): ''' Represents one single layer in a Mlp ''' def __init__(self, nNeurons, nInpsPerNeuron, transferF, ilayer): ''' Each layer has: ...
[ "bhanu_pratap860@yahoo.com" ]
bhanu_pratap860@yahoo.com
7dbabdfd9aeebe7cb5bacb8c2927bb7147f582f9
96b9c52f3ac5dea667803a0b9ecdb838f2b579ab
/models/feedback.py
e4dd1979fe2eeccdb49085144f9d41260fdb16d8
[ "MIT" ]
permissive
livoras/feifanote-server
b581afb3b90dc7c8296f2573077079fa269ae80d
319907f8e107757470160cb3dc0adba14357bed1
refs/heads/master
2020-12-24T13:52:15.497940
2014-06-26T05:14:11
2014-06-26T05:14:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
# -*- coding: utf-8 -*- import json import sqlalchemy as sc from sqlalchemy.orm import relationship, backref from common.db import Base class Feedback(Base): __tablename__ = "feedbacks" id = sc.Column(sc.Integer, primary_key=True) content = sc.Column(sc.String) user_id = sc.Column(sc.Integer, sc.Fore...
[ "livoras@163.com" ]
livoras@163.com
9e42099374ca1dba84d9401cee09e7264ea2caa5
ace419028e75740f75b6802809282056c9cd7e2b
/training_script.py
498e39512400f16b3d6a529ca9dc9a2cf96b69ec
[]
no_license
gtambi143/machine_learning_pipeline
44a2e8f037b7bd899828f2b404aee697dc450aae
f01e43c580eb695a7f3caf609ef9c1987a8b664e
refs/heads/master
2022-08-31T19:34:16.411484
2020-05-24T20:54:44
2020-05-24T20:54:44
266,617,711
0
0
null
null
null
null
UTF-8
Python
false
false
6,228
py
#importing the required libraries import torch import torchvision from PIL import Image import os from torch.utils.data import Dataset, DataLoader, RandomSampler import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import time import os import copy import torchvision.transforms as tran...
[ "gtambi143@gmail.com" ]
gtambi143@gmail.com
743ecc68d8c7d1e1666f1c43d4b752fb6c808bf0
e615ec0eaec8466f6dbd8bc1cbc62839d760467e
/DASH-Plotly/Plotly/1-02-ScatterPlots/scatter1.py
9c598f72b200791eef6894630887ffc1ba38f1ba
[]
no_license
SayantanMitra87/Web_Application-Plotly-Dash-Flask
cd5743defed1707a475e2273e68894876673c46e
9bd462c380eef2919d86b0f2daa870e3a8a24097
refs/heads/master
2020-04-15T01:58:24.751145
2019-01-15T07:43:25
2019-01-15T07:43:25
164,298,513
1
3
null
null
null
null
UTF-8
Python
false
false
484
py
####### # This plots 100 random data points (set the seed to 42 to # obtain the same points we do!) between 1 and 100 in both # vertical and horizontal directions. ###### import plotly.offline as pyo import plotly.graph_objs as go import numpy as np np.random.seed(42) random_x = np.random.randint(1,101,100) random_y =...
[ "noreply@github.com" ]
noreply@github.com
2ae5013c86e17afbbe7484348e9fda0a3165d0ef
6cfbe44acfa9d3fa87d9ad8332d9022fc8db58b6
/urls_shorten/asgi.py
11018bcdd8ec1c9bc262c095535604c568649561
[]
no_license
isha27255/Url-Shortner-
23379935d8a20842f91d1d13a86bd8e9cbd53bb9
36243e8e9c09dd1abd4c158ef6e18152da4be527
refs/heads/master
2022-12-28T22:47:43.723908
2020-10-07T06:08:00
2020-10-07T06:08:00
296,254,275
1
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for urls_shorten project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "isha27255@gmail.com" ]
isha27255@gmail.com
57cea6e03a2b880024e86045f1beb2b8b79424c2
a39c100e99a72099e07d86dd9565fe71c47d4b1d
/lib/shared_parameters.py
c2547dbbfdef97bedecd568069f7fa1d475a07d0
[ "MIT" ]
permissive
Thomas84/SSG.extension
51b0c2ff989f1aec82c7fdd40fb4f13e767e4822
ea0e0472e1c3940a63cab8c013228cba6425595a
refs/heads/master
2023-07-26T04:56:52.002009
2021-09-08T16:27:56
2021-09-08T16:27:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,200
py
from pyrevit import revit, DB from Autodesk.Revit.Exceptions import ArgumentException, InvalidOperationException STANDARD_PARAMETERS = { "STD_Widths": DB.BuiltInParameterGroup.PG_CONSTRAINTS, "MIN_Width": DB.BuiltInParameterGroup.PG_CONSTRAINTS, "MAX_Width": DB.BuiltInParameterGroup.PG_CONSTRAINTS, "S...
[ "kbruxvoort@gmail.com" ]
kbruxvoort@gmail.com
232fda255df912f5695d81f10fe1a9d460d331e7
6f7abcf8f1649db723a6b51f9332d7373a5ce4c7
/BoardGameCommunity/Shop_ActivityDetail.py
8e72afeda42da763dd88379bb0a0774e6d4efed7
[]
no_license
NaemaPDz/BoardGameCommunity
7a6a0b087ba3cc61718bc4bcca7d6577095a281f
3abaae6d934c267e4134725dfe07cb2f7a1cf405
refs/heads/main
2023-03-31T15:14:41.316934
2021-04-13T06:12:29
2021-04-13T06:12:29
357,442,527
0
0
null
null
null
null
UTF-8
Python
false
false
12,499
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'UI/Shop_ActivityDetail.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 impo...
[ "NaemaPDz@users.noreply.github.com" ]
NaemaPDz@users.noreply.github.com
403050852dd2e8392f1e8610f4911bf3608ab119
9ee751382146d280c0105981e2e54fa900cb04de
/djblets/util/tests/test_compressed_tags.py
1d1d87775890230056755ea9767bb66c60caefae
[]
no_license
lmyfzx/djblets
25c3d3fb2478047eede05238b60b6d16598f9131
33b4475cfabe24644335093a028d7d2aabc4ab84
refs/heads/master
2023-02-03T18:20:46.873799
2020-12-22T10:58:35
2020-12-22T10:58:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,966
py
"""Unit tests for djblets.util.templatetags.djblets_forms.""" from __future__ import unicode_literals import os from django.conf import settings from django.template import Context, Template from pipeline.conf import settings as pipeline_settings from djblets.testing.testcases import TestCase class CompressedTags...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
edf6ec9094282214c247789c19af30388e1fb891
cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1
/xlsxwriter/test/styles/test_styles06.py
ecba383c9b2848fa80c25090f9d3c53d0e528278
[ "BSD-2-Clause" ]
permissive
glasah/XlsxWriter
bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec
1e8aaeb03000dc2f294ccb89b33806ac40dabc13
refs/heads/main
2023-09-05T03:03:53.857387
2021-11-01T07:35:46
2021-11-01T07:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,183
py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ..helperfunctions import _xml_to_list from ...styles import St...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
19c0f24be411fc989b3a537f051e4021fe85c060
7f32883804578d960fa2dc2b3fded332f839afe4
/except remove numbers/word-level/NB+SVM+LSTM+CNN.py
15b67e06d1ee8580e744b4b71e04c6e2ca38557c
[]
no_license
liang23333/chinese-sentiment-analysis-preprocess-paper
7fa3dc947f26205c7004433e3f041353e2dc350f
37a5be75a8121967510fead3c7e077f61ba281fd
refs/heads/master
2021-01-20T07:38:04.062624
2017-05-10T14:54:34
2017-05-10T14:54:34
90,021,740
0
0
null
null
null
null
UTF-8
Python
false
false
11,560
py
# coding: utf-8 # In[1]: # In[1]: neg=[] for i in range(1000): fname="C:\\LAWHCA\\chinese-sentiment--analysis-preprocess\\neg\\neg."+str(i)+".txt" print(fname) with open(fname, "r",errors="ignore") as f: neg.append(f.read()) # In[2]: pos=[] for i in range(1000): fname="C:\\LAWHCA\\chine...
[ "www.137809083.qq.c@qq.com" ]
www.137809083.qq.c@qq.com
a2ae05fd5bbe201b0dba0773a9f38d0f0e6d8898
80664c3c78e6381495db99074d38a4bc3971e2b7
/MovieEngine/webapp/urls.py
4f59afca6c66e5d82401a5f7ce24d693386b67d9
[]
no_license
nebulazee/MovieEngine
eb3c12f12b836fd8742822414e9b1343ca908512
6098bbabc44c392bb9327348bbcfe960a44ef368
refs/heads/master
2020-03-22T00:39:24.824954
2018-06-30T15:05:41
2018-06-30T15:17:37
139,257,132
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.mainPage, name='mainPage'), #url(r'^mainPage/$', views.mainPage, name='mainPage'), url(r'^goToRecom/controller$',views.movieRecom,name='movieRecom'), url(r'^goToRecom/$',views.index,name='index'), ]
[ "aishwaryaicerastogi@gmail.com" ]
aishwaryaicerastogi@gmail.com
f427a26d36f2fffc1aa1e50c709b2983234801cf
20336a03aa918460aeb6ca7809dfc57673b27291
/backend/migrations/0014_lesson_cours.py
dd16057b29946586f4cdd0defb6340c80657a129
[]
no_license
shevchukmaxim/diplom
95076b9a89ed37c56f6c5348b51971c68d36f705
3043eb39b5479e248e939ecbc4084f2bde960101
refs/heads/master
2022-12-09T07:16:56.276213
2019-07-20T10:30:42
2019-07-20T10:30:42
192,128,893
0
0
null
2022-12-03T13:50:28
2019-06-15T22:26:57
CSS
UTF-8
Python
false
false
559
py
# Generated by Django 2.2.1 on 2019-06-02 03:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('backend', '0013_cours_coursemployee_courslesson'), ] operations = [ migrations.AddField( model_...
[ "webmaxsup@gmail.com" ]
webmaxsup@gmail.com
14c639cb0326a7c2cf37b94840c0031c0ed31417
023d8b4d847969e7ec67025ed469bbeaeed82899
/hello.py
4541e874c4452b89efbd8554f69ab30ac4836556
[]
no_license
beardTao/microblog
479a0491a780ad0b2e7dc815754ec8c37ac76c54
3af95bd44e6924515225c9e79788d9dd3ac579e5
refs/heads/master
2022-11-07T18:08:05.906171
2019-04-30T03:48:17
2019-04-30T03:48:17
183,625,180
1
1
null
2022-11-02T06:36:15
2019-04-26T12:32:03
Python
UTF-8
Python
false
false
3,190
py
from flask import Flask, render_template, url_for, request, session, redirect, flash from flask_bootstrap import Bootstrap from flask_moment import Moment from datetime import datetime from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired import os from...
[ "170601" ]
170601
15ac7a012158192d1c75ea2adf14451862b089f5
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Projects/bullet3-2.89/examples/pybullet/gym/pybullet_utils/util.py
5a014c8ed07a8b530a0fc58ca5cf708b435bd654
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "Zlib" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
218
py
import random import numpy as np def set_global_seeds(seed): try: import tensorflow as tf except ImportError: pass else: tf.set_random_seed(seed) np.random.seed(seed) random.seed(seed) return
[ "max@autious.net" ]
max@autious.net
4c27acbc8fa98aefd7f98f136bbc7b410c6f568a
86406e6d1373a48291a6957fdfce07ad98a00db3
/main.py
798e33d263563ced19e6c0f6a09ded184e69b4f9
[]
no_license
ewertonpaulo/knn-machine-learning
4bbafa164c96cd2d22cfb6dc0b181a9f6f129f60
0060f111c6107ad6093d1ef67ce722b130cc9d2b
refs/heads/master
2020-04-30T05:05:14.660594
2019-03-21T22:07:04
2019-03-21T22:07:04
176,621,930
1
0
null
null
null
null
UTF-8
Python
false
false
651
py
from csv_handler import train_test_split import csv_handler as cv import knn treinamento = 'aprendizagemdemaquina/treinamento.csv' teste = 'aprendizagemdemaquina/teste.csv' r = 'aprendizagemdemaquina/rotulos-teste.txt' train = cv.train_test_split(treinamento) train = knn.data_to_list(train) validate = cv.validacao(te...
[ "ewerton.paulo@dce.ufpb.br" ]
ewerton.paulo@dce.ufpb.br
503417c9e5d75f60410ccc6b53f26b6e6bac8d5b
78fe8c800da8eaa3b5644347b9a06145a4f43a6e
/xomain/game/migrations/0005_auto_20181124_2250.py
78d2df740d8612669e3a264c225ebecb6de4d05d
[]
no_license
AakashKhatu/xodjango
e37393ba7c09a31c06a162bb79f94a9bd53bbbb1
240b4a470581bea95286335b3c0049c998c2e924
refs/heads/master
2020-04-08T01:27:52.216974
2019-01-03T02:32:49
2019-01-03T02:32:49
158,896,174
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
# Generated by Django 2.0.9 on 2018-11-24 17:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0004_auto_20181124_2150'), ] operations = [ migrations.AddField( model_name='game_data', name='player1', ...
[ "aakashkhatu1998@gmail.com" ]
aakashkhatu1998@gmail.com
816a9237dc7938a0b5c52aa4309713b2228816f7
adf3076bd40e37f4a422e79f6efb938f13def6c6
/objectModel/Python/cdm/storage/local.py
e8a47c16802f5603d8c1d96895365a7d49ac8a07
[ "MIT", "CC-BY-4.0" ]
permissive
assetdatasystems/CDM
445d1b22f0071620f1eb2fd8d1b5f7d6152ec388
576ccfd07fc718b3d0911112e5041729a3ba8088
refs/heads/master
2020-09-29T00:54:18.350717
2019-12-06T22:49:02
2019-12-06T22:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,521
py
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. # All rights reserved. # ---------------------------------------------------------------------- from datetime import datetime import json import os from typing import Any, List, Optional from .base import ...
[ "nebanfic@microsoft.com" ]
nebanfic@microsoft.com
b0dcca8c35d97cf96c6a426d4cd4e0c4f1757ab5
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/sudoku_20201031012809.py
1e1bd31e61f1cca07054e01ff4e65dab7e7033db
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
4,215
py
# -*- coding: utf-8 -*- from __future__ import print_function from config import * from create_board import * from solve_bloard import * from display_board import * from string import * import pygame as pg import numpy as np # For error highlighting row_index = (0, 0) col_index = (0, 0) blk_index = (0, 0) input_lock ...
[ "jle040@uit.no" ]
jle040@uit.no
ade7cc11e7c987ff67017d26122fc95f878d4de8
af45aec06c134a4e7bed79b7e542ea711da14ea2
/home/views.py
6dd6c6ce446e3a525b2af49626ade62613a01418
[]
no_license
Psolmin/Likelion
e23289f9ea37bfb1944039b0b50b6369646aac0f
d622f7f06136db12e1e8c3d48866ec1b67a47fc0
refs/heads/master
2022-01-22T10:10:24.794874
2019-05-26T08:45:20
2019-05-26T08:45:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
from django.shortcuts import render # Create your views here. def intro(request): return render(request,'intro.html')
[ "50397888+ParkSolMin@users.noreply.github.com" ]
50397888+ParkSolMin@users.noreply.github.com
ae107976d966143e9c4a31f1309885c06bf9f1ae
64723d47ce3651e4bbb85344a284371e61d31ffa
/timeModules/creatingInstances.py
82f2ccea8bcf96657693b7cf18b9ac227a0adcf5
[ "MIT" ]
permissive
BrandonP321/Python-masterclass
659674cede81a3d0b4681481cbba8f3dfdd3d996
fac81fe4f8acfa37076820405d96132f9f23b311
refs/heads/master
2022-12-12T13:59:37.828859
2020-09-05T02:29:40
2020-09-05T02:29:40
266,238,938
0
0
null
null
null
null
UTF-8
Python
false
false
2,271
py
import datetime """These are the 3 most useful classes of the datetime module""" date = datetime.date(year=2020, month=7, day=21) print(f"datetime.date: {date}") # 2020-07-21 time = datetime.time(hour=11, minute=33, second=54, microsecond=348983) print(f"datetime.time: {time}") # 11:33:54.348983 date_time = datet...
[ "brandon.phillips976@gmail.com" ]
brandon.phillips976@gmail.com
18cd164633ce6eeb98459085cbefb6aff3a57b65
b7ffaf77eb0d404dcb6d1bc35de5d1a089678a32
/methods.py
6a76acb04a99404c6c5b3425cc9610afde789bb3
[]
no_license
KaustubhDamania/Loan-er
6f318452baa94cf170188fc2af35030ef8136a25
2b5e6932747de33f38e6de50c607c8b223262b12
refs/heads/master
2022-12-21T22:27:15.294804
2020-06-01T22:01:24
2020-06-01T22:01:24
193,385,674
3
1
null
2022-09-23T22:26:37
2019-06-23T19:07:32
Python
UTF-8
Python
false
false
7,850
py
import dialogflow from emoji import emojize,demojize from langdetect import detect_langs import re from pprint import pprint from random import randint import smtplib from googletrans import Translator def pan_check(pan): from run import user_data if len(pan)!=10: return False if not pan[:3].isalph...
[ "kaustubh.damania@gmail.com" ]
kaustubh.damania@gmail.com
fba992eef1e678333e3f6677e5a63d44ddcf3b6f
8f49ce0587c060819837ce9eaa1ccfd5b7d51be5
/scripts/ReseqTrackDB/create_collection_to_transpose.py
850a5b21b3da9c93f187db1851fc960b4c17403b
[ "Apache-2.0" ]
permissive
igsr/igsr_analysis
8a3f4150b976d5d73ed173f2b37179b6049028e3
ffea4885227c2299f886a4f41e70b6e1f6bb43da
refs/heads/master
2022-12-08T21:24:22.513499
2021-12-09T21:11:12
2021-12-09T21:11:12
99,792,445
3
5
Apache-2.0
2022-12-08T02:26:22
2017-08-09T09:48:48
Jupyter Notebook
UTF-8
Python
false
false
2,763
py
''' Utility to create a new entry in the Reseqtrackdb's Collection table that will be associated to a certain type of files ''' from ReseqTrackDB import * import argparse import logging import os #RESEQTRACK DB conn params parser = argparse.ArgumentParser(description='Script to calculate different QC metrics on BAMs')...
[ "ernesto@ebi.ac.uk" ]
ernesto@ebi.ac.uk
45b730970e78694e953764270577663bc0f55163
0d58801c59c80eef7468690239d70327708cdbae
/Mapping/Map.py
7cc0ec6c0e7353c4de7dd8bcb6b8518447308422
[]
no_license
mothwal/Python_Dictionary
4f6fd821365a8521222fd1d73b2de2ec61ab0a6e
b310b0f0c53828d0d89d2aed1790f005d60fcb00
refs/heads/main
2023-04-29T04:00:14.015992
2021-05-06T12:39:07
2021-05-06T12:39:07
364,276,320
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import folium import pandas as pd data = pd.read_csv("Volcanoes.txt") lat = list(data["LAT"]) lon = list(data["LON"]) elev = list(data["ELEV"]) def color_producer(elevation): if elevation < 1000: return 'green' elif 1000 <= elevation < 3000: return 'Orange' else: re...
[ "noreply@github.com" ]
noreply@github.com
cba8befb497e82e42cf5aee10456f152d1264580
23199315118c958279de4b9f7cb1e4443b518c46
/Jiji/asgi.py
ba0f84253310e5d290f16ff3550d480b40277e38
[]
no_license
Robinzulu/Jiji-Api
06e05198172ca779c06a498b7f41183a23784772
47a981af8ef19c8507321723ee45f419451dbb1c
refs/heads/master
2023-04-30T22:38:02.766330
2020-10-27T15:30:17
2020-10-27T15:30:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" ASGI config for Jiji project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "enochchejieh@gmail.com" ]
enochchejieh@gmail.com
120f170cf018653194adb4e24abad7bac1b97950
5cbbeb11fb1400019690d10db24b4579f97e8896
/mlkernels/kernels/derivative.py
a0d74a40a20655d7822642c6d104d4e38e97fc0c
[ "MIT" ]
permissive
darsh8200/mlkernels
b735c213f5cf590cabebcee166e3b4aea95c4e1e
cad223c422a32bc10375358fda076645efca62f1
refs/heads/main
2023-06-16T19:48:37.056247
2021-07-09T06:18:39
2021-07-09T06:18:39
384,340,711
0
0
MIT
2021-07-09T06:16:48
2021-07-09T06:16:47
null
UTF-8
Python
false
false
6,853
py
import lab as B import numpy as np from algebra import DerivativeFunction from algebra.util import identical from matrix import Dense from plum import convert from . import _dispatch from .. import Kernel from ..util import num_elements, uprank, expand __all__ = ["perturb", "DerivativeKernel"] def dkx(k_elwise, i):...
[ "wessel.p.bruinsma@gmail.com" ]
wessel.p.bruinsma@gmail.com
076b6e61d9658865cb0085c03eaec021e9efa0cb
87ed123c2ae25e60199b8c70f2160face10304e6
/RegularExpression/subn.py
fb7b8c1f5a70391589a457af520ec212f834e1d8
[]
no_license
asatav/Python-All-Example
53ace669a90aa6ca39683eecadaf298d183b0bff
005be5cd7df87a05d9fbd1e2e56ab319161b4533
refs/heads/master
2022-12-16T03:36:39.745041
2020-08-02T15:58:05
2020-08-02T15:58:05
229,724,176
0
1
null
2022-08-10T19:32:44
2019-12-23T09:54:01
Python
UTF-8
Python
false
false
123
py
import re l=re.subn("[a-z]","#","a7b9c5kz") print(l) print("The result String:",l[0]) print("The no of replacement:",l[1])
[ "ashishsatav968@gmail.com" ]
ashishsatav968@gmail.com
544fbfcefebaf2212fecdc24fdd4bd2a6e8b82b9
6889b20eace976fc2402ddab15cfa275dd576a0e
/project-dog-classification/create_lst.py
bba6ce9e15a9e207fcb0f990867ffcfaee52cd1d
[ "MIT" ]
permissive
NoxMoon/deep-learning-v2-pytorch
419bf83450b5cc5675d6b051b0b2f28b2fed0ca3
21e802e2829655e1c30f5283cf4093e584a44cbf
refs/heads/master
2022-09-29T21:35:36.742341
2020-06-07T13:37:38
2020-06-07T13:37:38
264,543,235
2
0
null
2020-05-16T22:59:27
2020-05-16T22:59:26
null
UTF-8
Python
false
false
271
py
import glob import os import sys folder = sys.argv[1] files = glob.glob(f"{folder}/*/*") files.sort() f = open(f"{folder}/image.lst", "w") for i, path in enumerate(files): file = path[len(folder)+1:] cls = int(file[:3])-1 f.write(f"{i}\t{cls}\t{file}\n")
[ "ec2-user@ip-172-16-20-47.us-east-2.compute.internal" ]
ec2-user@ip-172-16-20-47.us-east-2.compute.internal
5a88186576cde5a7a08dd9095037fba001566c39
8e1b0feacab1d890745de37eb3db627e48f048d9
/Stack_Plot.py
15ca1d69c30936a9b3b331c18353de8f9e5a8282
[]
no_license
binary13/Python_Web
11831aebfddc96a4840797826e2413e097f9776e
6f44d2102b9728cf0db0c0bb57bc267ac225ef03
refs/heads/master
2021-01-10T14:10:00.100334
2016-03-02T16:16:34
2016-03-02T16:16:34
48,897,818
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
import matplotlib.pyplot as plt year = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ## Expenses, in thousands taxes = [17, 19, 44, 43, 9, 8, 12, 51, 23, 40] overhead = [18, 7, 12, 48, 23, 34, 64, 31, 12, 8] entertainment = [20, 14, 32, 17, 31, 21, 22, 35, 24, 6] plt.plot([], [], color='m', label='Taxes') plt.plot([], [], color='...
[ "justinmneil@gmail.com" ]
justinmneil@gmail.com
5ae1f6af1af35b0b0ee824897d46848a1289d1da
fbf8acc1cb6e4e20609266865f98dc66d6ea056e
/Zesterp_Debranding_v11/__manifest__.py
737909cab18f400f5e1c15e04a0d61a609744bc4
[]
no_license
eLBati/OdooV11-Modules01
b200477216adfd446b1e8c69d05e923ffe19d70f
921baeb850dcd4d37fedf132e1c86dd3602ec5ef
refs/heads/master
2020-04-20T07:20:04.275007
2017-12-22T14:16:41
2017-12-22T14:16:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# -*- coding: utf-8 -*- { 'name': "Zest Erp debranding ", 'version': '10.1.0', 'author': 'Teckzilla Software Solutions and Services', "support": "sales@teckzilla.net", 'category': 'Debranding', 'depends': [ 'web', 'mail', 'web_settings_dashboard', 'website', ...
[ "girish.joshi@teckzilla.net" ]
girish.joshi@teckzilla.net
3c2491a6d5abcc6470ee886fba3fc562b546b53a
c27995173a5cb066385e278ff4514c9c2e1a3e1c
/BinaryTree/solE226InvertBT.py
17d510c48c59d929ab85e80c56a6c17b81331d41
[]
no_license
jerry3links/leetcode
0f4a184e4487ce7d6a7b655fd1934e818fe74dbf
2b4be9d2ad2476f285dfbc7f702571015fce4d2e
refs/heads/master
2020-04-09T21:17:57.147916
2019-03-20T09:30:47
2019-03-20T09:30:47
160,597,696
0
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None """ from BinaryTree.solE226InvertBT import Solution root = Solution().constructCase() print("Original tree:") Solution.printTree(root...
[ "cjchang23@gmail.com" ]
cjchang23@gmail.com
f3d432c2fb8c4d0597be62456b9989cd7f3d6d59
adde392c3ec37f13ff5ae35cb13556c2683bd95d
/Code/sauce.py
c2900dbd1d1164f83f9d776e04b6c397311ef7de
[]
no_license
clyman88/Robot-Arm
e442ec8ce8d2a40695f767a92fd0a1252f5a6d7a
6b7520bfcbf5c987d893e06f07983fb6e38c7893
refs/heads/master
2020-12-20T08:41:03.623237
2020-03-24T16:04:54
2020-03-24T16:04:54
236,018,512
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
from time import sleep class Sauce(object): def __init__(self, servo, photo_interrupter): self.servo = servo self.photo_interrupter = photo_interrupter servo.angle = 180 def squirt(self): for i in range(90): self.servo.angle = 180 - i sleep(.0075) ...
[ "clyman88@charlottesvilleschools.org" ]
clyman88@charlottesvilleschools.org
04d910cb2753bf3da1c1f5571d04b66d68695b58
af8c9dd86af67fcb70d4819040b7119fbc57860e
/Solver.py
704b28a93478fb13ff891e30b9816a091dbcb299
[]
no_license
didimelor/NewtonsMethodCalculator
aedcf3a93f12b12f14610753f09b7a76ac10992b
b14c28836bb717e14b0f143d395d18288affa260
refs/heads/main
2023-08-06T17:03:55.554988
2021-09-29T20:20:39
2021-09-29T20:20:39
411,816,953
0
0
null
null
null
null
UTF-8
Python
false
false
3,086
py
import sympy as sym from sympy import * import time import numpy as np from sympy.parsing.mathematica import mathematica import random x = sym.Symbol('x') usrInput = "x**3" expr = x**2 exprD = 2*x def parse(usrInput): global expr usrInput = usrInput.replace("\\", "/") if(usrInput.find("Log" or "log") != ...
[ "noreply@github.com" ]
noreply@github.com
984ff3b520f465da1040870eef5caf08dcc3f920
8825b16d48255397df2ee636215d7967c615b7ac
/plural.py
73c70d88f0896bc2c16b7786580285c406805491
[]
no_license
Gdango/Old_Code
c7786fcb2fbc00fbbb16eeaab1f618ac6f01bfdc
f1b4c60c3a8e9b953af7dc470b02efe0a4183b37
refs/heads/master
2020-04-01T16:47:07.890099
2018-10-17T05:09:30
2018-10-17T05:09:30
153,398,063
0
0
null
null
null
null
UTF-8
Python
false
false
2,348
py
# Van Huynh # ask the user for a noun and prints out its plural form def plural(): word = input('Please enter a word: ') new_word = 'Not' # defining the condition when word end with f if word[-1] == 'f': word_temp = word[0:len(word)-1] new_word = word_temp+'ves' # word_temp = temperary ...
[ "vthhuynh@ucdavis.edu" ]
vthhuynh@ucdavis.edu
f1102670ae8cbd4f43677906b15c08c7982d6f38
a7a7fe1f899a3c4f03201d11142b9cf5daeb9240
/experimentMusic/models.py
b8fbc9fa58c826f8711327f1699d35a6fb1eb378
[ "MIT" ]
permissive
hoomanhpa/Hooman-Experiment
fd9e78294177bdb4a4f644c3d6cdfc4f48cc1b59
f8bd543ca3406c64878ee9d47264f46a57d121c0
refs/heads/master
2022-11-30T11:20:49.144335
2020-08-17T20:35:38
2020-08-17T20:35:38
288,278,165
0
0
null
null
null
null
UTF-8
Python
false
false
4,913
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) import json import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'experimentMusic' ...
[ "hooman_hpa@yahoo.com" ]
hooman_hpa@yahoo.com
7ad450f435acb88841c8494906fa82cf5b80c111
d919d97fe71b4a35d26d97283f951e97fba57cc1
/scripts/studies/cross_section_area.py
9433ffb607a15c9d3bf91a5e67efcdb9a245d26d
[ "MIT" ]
permissive
gregstarr/ttools
9d8130aff475238cdaac09c58a15a1c1936690a2
fc8dcbf094370e9885311126724697830167d931
refs/heads/main
2023-09-01T06:21:53.363830
2021-10-19T00:35:16
2021-10-19T00:35:16
304,731,336
0
0
null
null
null
null
UTF-8
Python
false
false
3,916
py
import numpy as np import bottleneck as bn import pandas import os import matplotlib.pyplot as plt from matplotlib import colors from ttools import config, io, plotting MLT_DITHER = .01 MLAT_DITHER = .01 KP_DITHER = .5 LOG_KP_DITHER = .1 E_FIELD_DITHER = .01 MLT_BINS = 40 MLAT_BINS = 40 CSA_BINS = 40 MLT_BOUNDS = ...
[ "gregstarr2@gmail.com" ]
gregstarr2@gmail.com
b7723239c4a46c561258470ad64b96116357489b
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=61/sched.py
d192899a28b503972848e0f3b23908f61c81e5b3
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
-X FMLP -Q 0 -L 3 124 400 -X FMLP -Q 0 -L 3 86 400 -X FMLP -Q 0 -L 3 52 200 -X FMLP -Q 1 -L 2 51 175 -X FMLP -Q 1 -L 2 47 150 -X FMLP -Q 1 -L 2 46 150 -X FMLP -Q 2 -L 1 27 200 -X FMLP -Q 2 -L 1 26 100 -X FMLP -Q 2 -L 1 18 125 -X FMLP -Q 3 -L 1 16 150 -X FMLP -Q 3 -L 1 14 100 -X FMLP -Q...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
96254c047f5ab42412198c47ef93c0af1d2d97ba
e537b9b866c6533ef4c488b0104070a3f865d40e
/joerd/store/s3.py
d0d448ec3dabf9fd4d2a674e36689e3fb00c1ac6
[ "MIT" ]
permissive
mohammadrezabk/joerd
0c3a65ddb746578f9c06574601dc91ea6af2de2e
0b86765156d0612d837548c2cf70376c43b3405c
refs/heads/master
2023-02-14T16:08:59.103192
2017-11-21T17:22:22
2017-11-21T17:22:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,965
py
import boto3 from boto3.s3.transfer import TransferConfig from botocore.exceptions import ClientError from os import walk import os.path from contextlib2 import contextmanager from joerd.tmpdir import tmpdir import traceback import sys import time import logging # extension to mime type mappings to help with serving ...
[ "zerebubuth@gmail.com" ]
zerebubuth@gmail.com
e97b43e6535a9db4e2321537db91770231b38db0
8acd480d0c5205e9f9d10fbe9dd18c32c700d567
/summapy/summapy/summaPaths.py
f7367dd52201b179d53441bb5fad5ea07db5db3b
[]
no_license
klapo/ModTsfc
743480783877ef76cc52eaba1b1c3e7f6ef2397d
92f43e2c6dbc506a451a05b6efdf68445115b381
refs/heads/master
2020-12-03T02:13:06.865944
2017-06-30T19:13:06
2017-06-30T19:13:06
95,917,039
0
0
null
null
null
null
UTF-8
Python
false
false
2,100
py
import os def buildFileName(fName, expID, fType='.txt'): if not expID == '': expID = '_' + expID fullFilename = fName + expID + fType return fullFilename def checkFile(dirModel, siteID, expName, fName, expID='', fType='.txt', mode='w'): # Checks that path exists # Creates path to desired...
[ "lapo.karl@gmail.com" ]
lapo.karl@gmail.com
c767f67a27d2bf85ee3d55adcf7982bd2c6c5109
5dcefbd0ed48007b57d47ec2e74b16f344769271
/models/cat_potreros.py
ac1fcecef658a5a2e434d0cccbb1a0621cd5c95a
[]
no_license
roxolea5/gana2
127bd0a51682a3fabe097e9b278582d515b9095e
7452cdfb8c18db0a28234b039b0375a1d1ee7eb0
refs/heads/master
2022-12-29T10:22:01.491372
2020-10-15T01:35:17
2020-10-15T01:35:17
293,363,453
0
0
null
2020-10-15T01:35:18
2020-09-06T21:20:33
Python
UTF-8
Python
false
false
363
py
from sqlalchemy_serializer import SerializerMixin from extensions.db import DB db = DB.db DB_ENGINE = 'dev' class Potrero(db.Model, SerializerMixin): __bind_key__ = DB_ENGINE __tablename__ = 'cat_potreros' __table_args__ = { 'autoload': True, 'autoload_with': DB.engines[DB_ENGINE].engine ...
[ "roxana.olea@gmail.com" ]
roxana.olea@gmail.com
cbd0426653d0bdcaf34cbdaf86cd071eb58163b8
a6ab2735ff2f89adc64a4afcbfe013c1039198a1
/scrapers/liverpool.py
417b56688c24c6978ebc90919fea9056e20e3935
[]
no_license
rehmanali1337/innvictus_scraper
72e5049dd2c3d391f47d37e145edb2bf7c6a371d
bcb4e986c1922b20d61baca88e6ff03909bca518
refs/heads/master
2023-05-06T21:43:27.163117
2021-05-26T05:04:29
2021-05-26T05:04:29
341,820,871
2
1
null
null
null
null
UTF-8
Python
false
false
3,929
py
from selenium import webdriver import asyncio import json from models.cache import ListCache from models.products import LiverPoolProduct from configs import global_vars import logging class LiverPoolNewProdsScraper: def __init__(self, queue): self.config = json.load(open(global_vars.MAIN_CONFIG_FILE_LOCA...
[ "rehmanali.9442289@gmail.com" ]
rehmanali.9442289@gmail.com
372ea6ce32ae8cbc41d924505045866e1e02297f
75b3ea89493d4bdea58d0aeeb33bb69c9114764a
/LinkedLists/MoveLastNodeToFront.py
71451cb0bb3fd0e77123103eedd3c859d96a8d77
[]
no_license
BabuChandermaniRawat/DSA
f15fc57cbb260c9aca430fac319ab73e12b4a17f
98ec99835f9b004405cf3f853b555bd633e71071
refs/heads/main
2023-05-31T06:24:04.393337
2021-06-08T20:44:09
2021-06-08T20:44:09
370,409,282
1
0
null
2021-05-25T04:18:45
2021-05-24T16:00:25
null
UTF-8
Python
false
false
1,250
py
class Solution: def moveLastItemToFront(self, head: ListNode) -> ListNode: """ Approach 1: swapping the elements """ def valuesSwappingApproach(head): if not head and not head.next: return head first = head result = head while head.next...
[ "noreply@github.com" ]
noreply@github.com
76ddc9c06c47c12598e6d3cefacae20640a6f2cb
174edd84c3372e2f062dfb58848153391b44a9ea
/spec/logic.py
75efefcd89862e45766efb341b03ef1d9a0d0645
[]
no_license
psavine42/viper-server
7803e3282c98dcc978f4f195aef87acc4861b8bd
dab58a979ab238d65735953c71cae6c288400144
refs/heads/master
2020-03-26T15:28:22.823335
2018-11-28T03:42:34
2018-11-28T03:42:34
145,045,447
0
0
null
null
null
null
UTF-8
Python
false
false
11,533
py
from unittest import TestCase import numpy as np from operator import eq from pprint import pprint from shapely.geometry import LineString, Point from spec.seg_data import * from src.rules.opers import * from src import visualize, SystemFactory, RenderNodeSystem from src.rules import RuleEngine, KB, heursitics from...
[ "psavine42@gmail.com" ]
psavine42@gmail.com
249da4760ecd8254331c7befd8d0738778611bc5
fc558ed0bccbbd0edf52e662b310168a1b97ab56
/tests/pcie/test_pcie.py
5d1ce746a21aa2e7bcc4a0d8b0844f115ebdeb15
[ "MIT" ]
permissive
bigdot123456/cocotbext-pcie
914f4ac458901d93edb4447e65c24a1b30f39ea1
19e891adf9c45226cbbe2184199be7d904d0901e
refs/heads/master
2023-06-07T07:38:47.289302
2021-06-17T08:59:28
2021-06-17T08:59:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,020
py
#!/usr/bin/env python """ Copyright (c) 2020 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
2848a24526ee941ad0e15cb48b0e707173850625
25c03427485d43c41ff124e7ac2b856cd586596f
/account/models.py
df3e145488206ca42d63d4e679852d7e68cc3c8d
[]
no_license
jfeldman777/s-cool-project
d1012cef7ca9835e6cdaf85495eca7aee191161f
adb38eb3932841e692e70f01e9688bad4bece3f8
refs/heads/master
2020-05-26T08:16:28.890998
2017-06-05T17:49:09
2017-06-05T17:49:09
82,473,288
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
from django.db import models # Create your models here. from django.contrib.auth.models import User #from .fields import AutoOneToOneField #class Work(models.Model): # work = models.CharField(max_length = 100, verbose_name = 'Работа') #class Profile(models.Model): # user = AutoOneToOneField(User, related_name=...
[ "jfeldman777@gmail.com" ]
jfeldman777@gmail.com
fdef72e6ed2b89d6e3312ca8d0abab76e55416d7
4f4d47d60e17f0e3b7120ebb26f3d83e0a1f8e66
/tf_agents/bandits/environments/random_bandit_environment.py
735af739c1d680f16bcb6a4df8ef9ba29e2bd8e5
[ "Apache-2.0" ]
permissive
tfboyd/agents
644ff1ee3961ac629671110c45f6c90234bd0ad1
858ee36aaaea6fbcf0e5ab1c12929c77bd17abae
refs/heads/master
2020-11-28T15:46:31.635917
2020-06-26T06:05:57
2020-06-26T06:05:57
229,859,259
2
0
Apache-2.0
2020-06-26T15:34:23
2019-12-24T02:56:28
Python
UTF-8
Python
false
false
5,146
py
# coding=utf-8 # Copyright 2018 The TF-Agents 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 required by applicable law...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
9caca0f8ce96b7d3bbf4fae71bf63c14a480dee5
e6c63e69a490f2292d2184e0edc1c6e44542a9fe
/accounts/migrations/0001_initial.py
10c2390a8fdc4fae515783c2474aa32be7d051e3
[]
no_license
Code-Institute-Submissions/the-issue-tracker
ed13afbaecfe69e89fd5dfdb0ba47e307b6a00a8
d66c5295af62beb2d1fe0a73b54cb9c8f6893cb1
refs/heads/master
2020-08-01T06:27:11.317277
2019-09-25T16:55:31
2019-09-25T16:55:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-06-29 16:39 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrati...
[ "44240979+krivanpeter@users.noreply.github.com" ]
44240979+krivanpeter@users.noreply.github.com
30b997e0eababa53ec5866219513d392e2a3837f
a8f724826bc48b01d565ba3420c42e002d4393e1
/competitive-programming/week-1/Day-1/product_of_other_numbers.py
d0a60febf4983a7d5d4bba96aa7bf66ea1c1f889
[]
no_license
sheelajyothsna/competetive-programming
de605e87e2d436bfd392a9fd82616351868892bc
55517702b5949291046b6aff6a8d15069bd3cf39
refs/heads/master
2020-03-21T15:10:33.555353
2018-07-19T06:53:54
2018-07-19T06:53:54
138,697,990
0
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
import unittest def get_products_of_all_ints_except_at_index(l): # Make a list with the products if len(l) < 2: raise ValueError("cannot be defined") productlist = [1] * len(l) left = 1 for i in range(len(productlist)): productlist[i] = productlist[i] * left ...
[ "noreply@github.com" ]
noreply@github.com
6f7cf0647233c24297e242eb8919f003421920e2
259b7b74ac3945293aca2f4e9e5b0c55b40bb6eb
/services/web/test.py
af03022dea37facf3a089cd2f2ccd88b7f6ebe83
[]
no_license
MILKTON/eight-queens-challenge
7322fd1fe20e3db479cda0b0dded37f94394f13d
eebc7655e473cb7aea38e80262d2c75c0042559a
refs/heads/main
2023-01-12T18:09:00.699474
2020-11-06T02:24:45
2020-11-06T02:24:45
306,782,925
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
from project.reinas import coloca_reinas soluciones = [0,1,0,0,2,10,4,40,92,352,724,2680] def test_soluciones(): for i in range(len(soluciones)): aux = len(coloca_reinas(i)) assert aux == soluciones[i] def test_reina5(): aux = len(coloca_reinas(5)) assert aux == soluciones[5] ''' Prueba q...
[ "mi_correo37@hotmail.com" ]
mi_correo37@hotmail.com
6b30625c9f376bf2b48d72f16116be482becfa26
79206da036de3f36339c8c6a8e9f9f29c38d4d52
/scraping/scraping.py
0369768db4ce7ab593a4af897fc9c26ea717ef87
[]
no_license
BanSolo/SSD_price_predictor
a144af1edfc86a14e0c2eb242c31c90770268660
36a292ff9eae0a37b506a8f0b5707e760045a565
refs/heads/main
2023-08-11T07:17:13.485426
2021-09-20T17:29:17
2021-09-20T17:29:17
361,111,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,848
py
# -*- coding: utf-8 -*- import pandas as pd import requests from bs4 import BeautifulSoup base_url = 'https://ipon.hu/shop/termek/' product_links = [] product_prices = [] # az összes oldalon végig iterálva elmentjük a linkeket és az árakat for page in range(1, 22): r = requests.get(f'https://ipon.hu/shop/group/...
[ "pikapovwva@gmail.com" ]
pikapovwva@gmail.com