blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
502e0f0c6376617dc094fcdd47bea9773d011864
495f96080e5b3b9058308e331366ce02e4693e65
/Class Code/test_itep9.py
131a24c0e9a3c90992b30f458509e8a847db9833
[]
no_license
vagad/broadband-data-analysis
fd048bb8a832105aa8ca46d980edc10122801e1b
7efa2e6a5f6039bddabfc4ad3d3a39054b266791
refs/heads/master
2021-04-30T00:14:38.421076
2018-02-27T03:06:37
2018-02-27T03:06:48
121,572,826
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
test_itep9.py
def filter_lines(in_filename, in_filename2,out_filename): """Read records from in_filename and write records to out_filename if the beginning of the line (taken up to the first comma at or after position 11) is found in keys (which must be a set of byte strings). """ proper_convert = 0 missing_...
a17abd3947a946daf2c453c120f2e79d2ba60778
f9fbfeb8c0e157cf081ca27fceb26ab021810615
/097_ScoreCounting.py
70b87968400051315c227b5cc12bc7ad9b3104fd
[]
no_license
KeasonL/CrossinCode_test100
7f943f7c3aeae41cca3226cb74b8e3cd42d60779
09b8292a5de631628902e12f56b3a3838f58291e
refs/heads/master
2020-08-31T11:31:24.699388
2019-11-29T09:28:55
2019-11-29T09:28:55
218,680,548
0
0
null
null
null
null
UTF-8
Python
false
false
777
py
097_ScoreCounting.py
# 赛场统分 # 【问题】在编程竞赛中,有10个评委为参赛的选手打分,分数为0 ~ 100分。 # 选手最后得分为:去掉一个最高分和一个最低分后其余8个分数的平均值。请编写一个程序实现。 sc_lst = [] i = 1 while len(sc_lst) < 10: try: sc = int(input('请第%d位评委打分:' % i)) if sc > 0 and sc < 101: sc_lst.append(sc) i += 1 else: print('超出范围,输入无效') ex...
04670041dab49f8c2d4a0415030356e7ea92925f
ff832f888b6d5f8ccd055ccfe367d2d115d7e6fa
/third_party/3dmr/mainapp/model_extractor.py
8b1a45a5bf84f694c0e8f0e5116c5247c79490e2
[ "Apache-2.0", "CC0-1.0" ]
permissive
kartta-labs/reservoir
533b61278724bf33b97c21f71077d162d78a0abd
86ecc5f9d05f3aea9870817e50ae0375f10995de
refs/heads/master
2023-04-16T01:40:21.073474
2021-04-12T20:32:39
2021-04-12T20:32:39
292,147,940
1
2
Apache-2.0
2021-04-12T20:32:40
2020-09-02T01:30:35
Python
UTF-8
Python
false
false
1,483
py
model_extractor.py
from tempfile import mkdtemp from shutil import rmtree from os.path import join import os MAX_UNCOMPRESSED_SIZE = 100e6 # 100MB # Extracts a zipfile into a directory safely class ModelExtractor(object): def __init__(self, modelzip): self.modelzip = modelzip def __enter__(self): if not self._...
cf3b66a635c6549553af738f263b035217e75a7a
e702dc1b5f37c72c49b550f9ea48c369d432fd12
/归并排序.py
2638239d01dba7dbafa3f549663cffbf9730f51b
[]
no_license
HIT-jixiyang/offer
bf0fee0a410c8b55ce66da2cc0e186ad04ccdf1d
486069be6f6c554f2853e1d71979a6747ca0a985
refs/heads/master
2022-12-15T09:16:48.055439
2020-09-20T07:47:11
2020-09-20T07:47:11
297,027,242
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
归并排序.py
count=0 def merge(a, b): global count c = [] h = j = 0 while j < len(a) and h < len(b): if a[j] <= b[h]: c.append(a[j]) j += 1 else: count+=(len(a[j:])) c.append(b[h]) h += 1 if j == len(a): for i in b[h:]: ...
d2298ad1e4737b983ba6d1f2fff59750137510b5
bb1be75786182b0bb32fef3fa714a23dbc43dfcb
/nautobot/extras/tests/test_jobs.py
e12607e21eaa41a5919f84ca29a3500cdc903eae
[ "Apache-2.0" ]
permissive
hellerve/nautobot
ebe6434886af7690f065a04aa942f98d26b458aa
d441b2d92415bd3122fe86ea21544d0acd98e95a
refs/heads/main
2023-08-15T12:32:33.664162
2021-08-05T15:01:21
2021-08-05T15:01:21
393,108,739
1
0
Apache-2.0
2021-08-05T16:27:42
2021-08-05T16:27:41
null
UTF-8
Python
false
false
12,962
py
test_jobs.py
import json import os import uuid from django.core.files.uploadedfile import SimpleUploadedFile from django.conf import settings from django.contrib.contenttypes.models import ContentType from nautobot.dcim.models import Site from nautobot.extras.choices import JobResultStatusChoices from nautobot.extras.jobs import ...
48f2cc5b6d53c7317ad882947cabbc367cda0fb7
bdf7dde5052190d705b9599e4fec7dca6008a4fd
/datasets/h5/generate_dataset.py
708328aea75c6ba397b0ff445091c7d85429ab58
[]
no_license
GZHoffie/VE472-SU2021
43c1ff21ba079995ae692c7d3bb1e9fa3cfc7d17
27567e2c62ef9fe4472fb282289453b7c4dcd3d2
refs/heads/master
2023-06-21T12:43:47.598968
2021-07-16T19:17:37
2021-07-16T19:17:37
365,900,297
1
0
null
null
null
null
UTF-8
Python
false
false
1,856
py
generate_dataset.py
import random import numpy as np import pandas as pd def linear_combination_plus_error(X, num_dependent_cols=5, parameter_mean=0, parameter_std=1, error_mean=0, error_std=1): """ Generate a column that is a random linear combination of X1, X2 and X3 plus some random error """ length = X.shape[0] ...
6ae529a5e5658ba409ec3e7284d8b2911c60dd00
e5a7ee8ee543efa8332cfac5631a1a7e4ca4cc49
/data_collection.py
cba020cb8be807e42b91ed7dd88bee75a5ce42ee
[]
no_license
ThisisAEmam/Linkedin-Job-Requirements
24700927431f5049a7b038f381b05485e618ccbd
9bbbaf82b5767425d4155ee93700045f3e20ed71
refs/heads/master
2023-08-06T20:04:42.015295
2021-09-30T19:16:21
2021-09-30T19:16:21
394,800,914
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
data_collection.py
import os from linkedin_scraper import get_jobs chrome_driver_path = os.path.join(os.path.abspath(os.getcwd()), 'chromedriver') df = get_jobs('Data Scientist', 40, False, chrome_driver_path) df.to_csv('linkedin_jobs.csv', index= False)
d268f8d563aac28852457f6f130b2fb4ea6269a2
6247ca1a35d60c88554e8e88d5aacf3e8be426e9
/2b/code/oblig2b_steinrr.py
97b2dc541633a9a33a3b1e3db8efbb5debc71fed
[]
no_license
rayruu/inf1820
920d020afe1a6e8816ac640b9e9ae69daff507b5
b962faf1f61fae17ba9588ddea42323baf06f8d4
refs/heads/master
2021-01-13T05:16:20.868556
2017-04-27T08:20:14
2017-04-27T08:20:14
81,306,042
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
oblig2b_steinrr.py
import nltk from nltk import bigrams from lm import * # Oppgave 1: # opretter LM klasse til aa perpleksitere news og adventure m = LM() # Henter news og adventure for videre bruk news=nltk.corpus.brown.sents(categories='news') adventure=nltk.corpus.brown.sents(categories='adventure') # initial parametre perpNews = 0...
2f489a87e40bea979000dd429cc4cb0150ff4c3b
0fde5712fd4a660d0d2be3e81781e6895bedbe4b
/python/src/main.py
9b48f9ad903957f2fcf510472a27f96e481af9cc
[]
no_license
littealeaf28/flashcard-abc
addd68006109ccab896129d0d98e3a53cf44a19b
dbea4485735188c42e97d0c5b4536c2cd78fe349
refs/heads/master
2023-02-03T04:49:36.467928
2020-12-20T21:59:32
2020-12-20T21:59:32
296,777,735
0
0
null
2020-12-20T21:59:40
2020-09-19T03:21:07
TypeScript
UTF-8
Python
false
false
2,386
py
main.py
from flask import escape import pandas as pd import json import requests with open('result.csv', newline='') as f: df = pd.read_csv(f) def get_level_diff(word, only_common=False): if only_common: word_df = df[(df['word']==word) & (df['common']==1)] else: word_df = df[df['word']==word] ...
7a65a5522db97a7a113a412883b640feede5bcee
090e033c8d12692fbe15cd6b9428d5baca9cd211
/Event_Listener(copy).py
0d124c4c8241950a826d21aac227aa8b6426f908
[]
no_license
nishanthG/scriptgen.python
f67398898e2f8a1a0b8838f321336205acafa767
db90cc395ae1255dd8fae5ce065fe7b91e91090b
refs/heads/master
2023-04-26T10:52:21.513569
2019-05-16T09:00:15
2019-05-16T09:00:15
367,269,685
0
0
null
null
null
null
UTF-8
Python
false
false
9,390
py
Event_Listener(copy).py
from layout import UIDump import Tkinter from Tkinter import * from ScriptGenerator import ScriptGen class Divide_and_Conquer(): def __init__(self, XY): self.XY = XY self.user_val = 'None' self.flag = 'green' print self.XY def bounds_Compare(self, bounds, filename): """ Compares the bounds with Master...
912cb445b11529b775d54aa88a08841b31f8268e
483815ac3f1156983a48b5cab22cf4d4a224f97d
/chapter7 solution.py
72a828006971355cf63d13647b1d0631e932dc4b
[]
no_license
rebel47/Python-Revison
36ad53bb466c2307937748d6af3f1beaca8fd1b9
3854c1dfd913bf48644c849769d2961d85b905aa
refs/heads/master
2023-08-28T08:38:49.420702
2021-11-15T15:42:35
2021-11-15T15:42:35
428,322,461
0
0
null
null
null
null
UTF-8
Python
false
false
2,390
py
chapter7 solution.py
# # WAP to print multiplication table of a given number using for loop # # Using While Loop # n = int(input("Enter a number: ")) # i =1 # while i<=10: # print(f"{i} {n} * {i} = {n*i}") # i = i+1 # # Using For Loop # n = int(input("Enter a number: ")) # for i in range(1,11): # print(f"{n} * {i} = {n*i}")...
ba64f5202e46216f7492176a78cc7802a0ceb018
58ce0850525ff9ca22c3c62f1d509777736a6fd5
/greedilyincreasing/submissions/accepted/gis_js.py
4483710b715852efc8914d93aa393435b221f336
[ "Apache-2.0" ]
permissive
Kodsport/hiq-challenge-2017
8a100e56c44def1e73beb86135f142ce8c3c8a88
e97a9760c05366196867906724a1b4ce2c4897ec
refs/heads/master
2023-03-07T02:31:29.256488
2023-02-18T21:35:16
2023-02-18T21:35:16
101,979,587
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
gis_js.py
#!/usr/bin/env python3 N = int(input()) xs = list(map(int, input().split())) res = [] for x in xs: if not res or x > res[-1]: res.append(x) print(len(res)) print(*res)
37b693737feed1ab79d487cc8c82331353e5b5e8
6ada98ca57aec1de20d76f63d0981cadc912225c
/32.2.py
82706bb13dc996291e2cabbd99aae05603c55ab0
[]
no_license
Banwali-India-Pvt-Ltd/training
f211edb17093eff9ececd8e3b7d93c374d5cdeeb
31255f435fb787196be4e0ee1b64d2084fdc8259
refs/heads/master
2021-08-24T11:47:16.621912
2017-11-24T16:00:27
2017-11-24T16:00:27
100,257,951
2
0
null
null
null
null
UTF-8
Python
false
false
79
py
32.2.py
from __future__ import print_function my_pirnt = print('hello form my_print!')
650e11ce5d2d7d32f12a3f22d7a5dc9cecf846e4
e913bda89018beb105c3fd95db85afa872b08e50
/Python02/cal/mathTest.py
6bfe4ae41142e974679c7a459bcb4773383999f9
[]
no_license
jungaSeo/python
f6794a055e794769e72692ab8b8ed4ca3b1ce1aa
bbe5944b9034f888df506108e6ecc40e579006ed
refs/heads/master
2020-04-29T16:58:50.751350
2019-04-01T18:13:07
2019-04-01T18:13:07
176,281,707
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
mathTest.py
''' # 여러 줄 인식 : """ data = """ 안녕하세요. 하하하.. 히히히히힣 """ print(data) print("안녕하세요\n\n하하하..\n\n하하하핳") ''' ''' # 실습 1 # 계산기 a = int(input("숫자 1: ")) b = int(input("숫자 2: ")) print(a,"+",b,"=",a+b) print(a,"-", b,"=",a-b) print(a,"*", b,"=",a*b) print(a,"/", b,"=",a/b) ''' ''' # ...
74b5c8b35090abd89464418995c7a66e5b920da5
66d326d75a1b344f3d090d798d5d1e425acf28a8
/Linear_Regression/solucao_3.py
c49e03d1ce5bf2e286756a878f3d6e67eb843d96
[]
no_license
lcgisabel/Computational_Intelligence
e38bd4bb410f3f23a242cc91fcbeb75cb139b293
733e1e09ade618d83b07098cad5d5a5be806d323
refs/heads/master
2021-09-28T22:12:29.414336
2018-11-20T23:59:04
2018-11-20T23:59:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
solucao_3.py
import numpy as np import matplotlib.pyplot as plt def rnd(n): return np.random.uniform(-1, 1, size=n) N_amostra = 10 RUNS = 1000 iterations_total = 0 for run in range(RUNS): #Escolha dois pontos aleatórios A, B em [-1,1] x [-1,1] A = rnd(2) B = rnd(2) #A linha pode ser descrita p...
f33b2bbc7fc00b0a725a6bd360e6c59f9ac3d2a8
c3e3bd5348c2c7846ec5c41e262c31df48ddb1e6
/django/blog/sitemaps.py
624fa43a27ea645520c26d14fcb776b2bb79b1cc
[ "MIT" ]
permissive
dellsystem/notes-from-below
efdf40332ae7a7167e432c55cd1f7df18bb794b9
bfd829148b1e00f51cf736f66e883d0b96823614
refs/heads/master
2023-07-20T11:05:25.320845
2023-03-21T20:35:41
2023-03-21T20:35:41
115,932,701
8
0
MIT
2023-07-15T00:57:10
2018-01-01T16:57:14
Python
UTF-8
Python
false
false
369
py
sitemaps.py
from django.contrib.sitemaps import Sitemap from blog.models import BlogPost class BlogSitemap(Sitemap): def priority(self, item): return 0.3 def changefreq(self, item): return 'never' def items(self): return BlogPost.objects.filter(published=True).order_by('pk') def lastmo...
e2037bd24e9e6a355985880626191f35ec685096
85dbdecd432eb127e5abe812db3865f7248cfcd0
/images/img.py
07493ba8d1d1736b912a50b9529640fdd0490f40
[]
no_license
klosik007/Python-stack
782d108996e1b4edbdb9a611a08f7d0fdc9ca1e6
58606c634cc8fc915d3dd40286dba882a98b40d3
refs/heads/master
2020-03-15T05:11:32.395107
2018-05-03T11:17:29
2018-05-03T11:17:29
131,983,651
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
img.py
from PIL import ImageColor print(ImageColor.getcolor('chocolate', 'RGBA'))
b9d26db029356e134a45626b5f6f858fc928aa7c
e40a721807f857bdef265d1cad43bf7fcbfb3e67
/Day2/Breadth_First_Search.py
88c7a29c1cb33fd3234ac38d8539aca24fb66dfa
[]
no_license
WonbinSangmin/AI-Practice
057812938efa8d459feab9016c8669067219b027
aa21525d305e46c3297e6f08ec6722d58aa2d061
refs/heads/master
2020-03-24T20:28:23.148085
2018-08-01T08:22:50
2018-08-01T08:22:50
142,979,849
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
Breadth_First_Search.py
from copy import deepcopy graph = {'A': ['B','C','D'], 'B': ['E','F'], 'C': ['G'], 'D': ['G'], 'E':[], 'F':['G'], 'G':[]} def print_list(X,open_list,closed): print("----------") print("X =", X) print('open :',open_list) print('closed :',closed) de...
ceded376492166ba65879eadd2a37aa84f0cec02
771d2a1234eecd77b355590569b74a4b4c9a7eba
/nexxT/tests/core/test_PropertyCollectionImpl.py
1898d4bf462e2e5c2e071c8e298771a7785741db
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
ifm/nexxT
776384b8f82b0a4f7a069f82c79f09b9710f87aa
d49f6595908f0ecf90060ec1d7d23075120c8045
refs/heads/master
2023-08-04T18:05:59.904490
2023-07-31T11:24:59
2023-07-31T11:24:59
248,195,896
11
2
Apache-2.0
2023-07-31T11:25:01
2020-03-18T10:05:08
Python
UTF-8
Python
false
false
7,105
py
test_PropertyCollectionImpl.py
# SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2020 ifm electronic gmbh # # THE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. # from nexxT.core.PropertyCollectionImpl import PropertyCollectionImpl from nexxT.core.PropertyHandlers import defaultHandler from nexxT.interface import PropertyHandler from...
cb376c6b92900bcc2392c0da7140893c6bc6cc11
0fa33d0666b0d3edbd1e3994c3830a916b8abb2b
/kame.py
405c25a7934d41b52825b4391ddffad4a78c5181
[]
no_license
Lagyu/python_tutorial_2
dee93a1b720eb71858850eaa03c61704a4c29e3f
ea7e8932b3ee3abe6a227838bd9bfdf93bd3e198
refs/heads/master
2020-06-18T22:56:06.130220
2019-11-07T06:14:01
2019-11-07T06:14:01
196,483,700
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
kame.py
import turtle kame = turtle.Turtle() kame.speed(10) while True: kame.forward(200) kame.left(179) if abs(kame.pos()) < 1: break kame.end_fill()
f5ffc3afb7493781be138bfcdf670572bc71362d
1e6e3bb707920fdb01ebca23eaf81097c558d918
/openslides_backend/action/actions/motion/create_forwarded.py
9df791082696b05f42a0b568c09b524cf5eaaa12
[ "MIT" ]
permissive
OpenSlides/openslides-backend
cbd24589f82a6f29bde02611610511870bb6abbf
d8511f5138db4cc5fe4fa35e2a0200f766bd49c5
refs/heads/main
2023-08-23T11:54:25.064070
2023-08-22T11:15:45
2023-08-22T11:15:45
231,757,840
6
22
MIT
2023-09-14T16:23:41
2020-01-04T12:17:38
Python
UTF-8
Python
false
false
9,988
py
create_forwarded.py
import time from collections import defaultdict from typing import Any, Dict, Optional from openslides_backend.shared.typing import HistoryInformation from ....models.models import Motion from ....permissions.permission_helper import has_perm from ....permissions.permissions import Permissions from ....services.datas...
1da0e05bcd5dd6912f06d52157c5d17726463206
52a560dfc83df3109987a530f63b0afb30ebf1a3
/ch02/lab02.py
5c6fc292650c8d432e60bf8998813149ce4db539
[]
no_license
Jihyeonji/Mypython
a38dafaad9aa030c2d777b02827bc0ea7c2d4207
acc65e3f098a54fe5a8a4048d1808ae56c909971
refs/heads/master
2020-04-10T08:51:12.146533
2018-12-29T06:57:54
2018-12-29T06:57:54
160,917,302
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
lab02.py
stadium=input('경기장은 어디입니까?') winner=input('이긴팀은 어디입니까') loser=input('진팀은 어디입니까') vip=input('우수선수는 누구입니까') score=input('스코어는 몇대몇입니까') print('') print('===============================================') print('오늘 ',stadium, ' 에서 야구 경기가 열렸습니다.') print(winner,'과',loser,'은 치열한 공방전을 펼쳤습니다') print(vip,'가 맹활약을 벌였습니다....
b666cc67af5a58b2e22a073262c7600eaaa2b2bc
5428a73868279ba5c8927f58b2dea73a61da50be
/GBike/GBike.py
733019c74653b1db3c9ead581bd333ab24fd7862
[]
no_license
Starks-AI/Artificial-Intelligence-Assignment-2
79efba830d6c94247d6836d5f94ca1170f9995c3
4a07738b88ee33391845f1eaa7ffe7f709ceaa0a
refs/heads/main
2023-05-10T11:48:00.497078
2021-06-13T05:08:43
2021-06-13T05:08:43
361,868,082
0
0
null
null
null
null
UTF-8
Python
false
false
4,805
py
GBike.py
import numpy as np import matplotlib.pyplot as plt import seaborn as sns from scipy.stats import poisson import sys variant = True class gbike: max_bicycles = 20 gamma = 0.9 credit_reward = 10 moving_reward = -2 if(variant): second_parking_lot_reward = -4 class poisson_: def __init__(self,...
c7c84c9b34f7fd2e9f9bd975275fc5c9b445c91f
c197c11610c235c5485b516c1a11f81f223c67eb
/{{cookiecutter.project_name}}/back/{{cookiecutter.project_name}}/core/utils/__init__.py
09776ff8cb4d768778cd22a57b65ad1d29cb4b06
[]
no_license
johnkaramchand/flask-vue-template
c95af409c052e492199fa539aa162506e3fd57db
d33595de27293c576e622d5f6ac0030f28222c91
refs/heads/master
2023-08-24T21:28:37.849725
2021-10-21T14:19:35
2021-10-21T14:19:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
__init__.py
from datetime import datetime from json import JSONEncoder class DateTimeEncoder(JSONEncoder): """ Instead of letting the default encoder convert datetime to string, convert datetime objects into a dict, which can be decoded by the DateTimeDecoder """ def default(self, obj): if is...
6db85f4c805dc2ecf8788f9e18efa4c56d45a263
5fdf896d8a04a5075ec2d9367ceea407ddfe3063
/py36/checkIO/home/all-the-same.py
b7680bcfc9d84d562fd8e1c3fcf4ba083355cb6e
[]
no_license
analylx/learn
70c3df42ff05ddc9ed315fb10c68f7816b521aab
fb0c701b7f8124b5c866f4142aaaab6a464d88f8
refs/heads/master
2020-04-22T17:29:48.259190
2020-04-08T22:55:10
2020-04-08T22:55:10
170,543,147
1
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
all-the-same.py
#-*- coding: utf-8 -*- from typing import List, Any """ #如果列表里面的元素都是相同的,那么返回true #切片返回的是原来的列表的一个相同类型的副本,a[:]表示所有的元素 #elements[1:]从第二个元素开始,到最后一个元素为止(包括最后一个) elements[:-1]从第一个元素开始(默认第一个是0),到最后一个(-1)为止,但是不包括最后一个 #目的是通过错位比较相同的元素 def all_the_same(elements): return elements[1:] == elements[:-1] """ def all_the_same(eleme...
c71595201396bacfb383a5d20e42a47d91bece08
1321f754180853f96eb3545fcf07911c975e022c
/drafts.py
cd60013b8a7de11b2e72f76cfb0940c172f3bece
[]
no_license
Arseni1919/Learning_pygame_2
3941adeddd7f66806a4229d5e1df97c933cc52c9
8503713fadc38272051bf5313709dc0b1eaf0be8
refs/heads/main
2023-06-10T19:29:00.994960
2021-06-25T07:31:41
2021-06-25T07:31:41
379,945,366
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
drafts.py
from pygame.math import Vector2 print(Vector2(3,4).magnitude())
008614ba208eb8503cf65340ff54e3feedf73b27
a8c0cbaba604755f7c9ffec4cef13a7efe5331e6
/src/emailScript/filepath.py
d282d78e1b6de7836bc9d0f03d581ea9376e9f7c
[]
no_license
Malloc-Luo/Pyemail
4fb85d39b920a31d99fc1fdc0b6dcb07d782aced
a42c0d099015515afd42e0fb469b356708e0abfa
refs/heads/master
2023-01-12T09:34:42.917301
2020-11-14T12:46:10
2020-11-14T12:46:34
312,812,290
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
filepath.py
# -*- coding: utf-8 -*- # !/usr/bin/python _username = __import__('getpass').getuser() # settings.json路径 settingfile = 'C:/Users/%s/AppData/Local/pyemail/settings.json' % _username # 文件夹路径 settingfilepath = 'C:/Users/%s/AppData/Local/pyemail' % _username # info.json路径 infofile = 'C:/Users/%s/AppData/Local/pyemail/i...
2917c19a7c84f8ed94a3d86150eeeb5e54012dbc
37ea56ce62635892ab0a516de811fc17b035aead
/controlled_list/urls.py
e716991d5e72ec4b4bde2811b309ce429731ba63
[]
no_license
BlinkenOSA/clockwork
716c45f249c051068fced331b40c4bb46619c3a7
3b65ba93008eafc0622d0fa3058a8c6f5163ef6a
refs/heads/master
2023-01-29T13:08:57.175733
2023-01-16T08:13:41
2023-01-16T08:13:41
81,751,925
1
1
null
2023-01-16T08:13:36
2017-02-12T19:44:25
Python
UTF-8
Python
false
false
6,597
py
urls.py
from django.conf.urls import url from controlled_list.views.access_right_view import * from controlled_list.views.archival_unit_theme_view import * from controlled_list.views.building_view import * from controlled_list.views.carrier_type_view import * from controlled_list.views.corporation_role_view import * from cont...
c1aacb42f30fcaca77ee358050d5d04e0251f071
7cd4d416a1f0b0e47f41537df0e94b3abe609d12
/yoloModelOpenCv.py
f6e5a59752ef22897920b5d6d225ad39a905ad85
[]
no_license
imeteora/SmartCam
3ef4fea7ac7c6622fb6d93f5d385cc2cc829a805
cd4a282c54f73ac544cb294b77125ac3dd8595b4
refs/heads/master
2023-05-29T23:32:46.680269
2021-05-08T15:09:42
2021-05-08T15:09:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,821
py
yoloModelOpenCv.py
import cv2 import time #display width and height DISPLAY_WIDTH = 640 DISPLAY_HEIGHT = 480 FOV = 40 # Servo FOV to change frame #camera settings camSet='nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1080, height=1920, format=NV12, framerate=21/1 ! nvvidconv ! video/x-raw, width='+str(DISPLAY_WIDTH)+', height='+...
c0018083bc1ab7042ee8936fcd1c87001f9639f9
cce5bf999fa27cdb37194492fd2f87b050098a69
/main.py
27b751959110de028b411b12cee5c0b93a6b3f58
[]
no_license
xiaosongshaokao/ProjectOfAlgorithm
967b49ac307dd9f375452b73212e18c236f4956a
db237eeba321876bd7976fcd9868ef5ea8644d56
refs/heads/master
2023-02-09T06:12:27.398293
2021-01-08T15:11:13
2021-01-08T15:11:13
321,662,501
2
1
null
2020-12-30T11:10:23
2020-12-15T12:33:49
Python
UTF-8
Python
false
false
10,059
py
main.py
import random from solution import * from env import * import numpy as np import matplotlib.pyplot as plt # class Map(): # ''' # :param:地图类 # :param:使用时需要传入行列两个参数 再实例化 # ''' # # def __init__(self,row,col): # ''' # :param:row::行 # :param:col::列 # ''' # self.da...
4a88a91e6a7c80e9553c0beaec3d690936043644
55e536b80129c860cd164fedab944c22f6e41561
/u_net3.py
9cf69170926736e192c1bcb19a69f6b5409d755e
[ "MIT" ]
permissive
cianmscannell/3DU-Net
bb9995122bfd9cb5561c2fa27ad94ce63795827a
222382366ab7bdd06f9c6decdd32a468ffca2b29
refs/heads/main
2023-01-18T23:24:13.573867
2020-11-30T13:43:44
2020-11-30T13:43:44
317,235,386
1
1
null
null
null
null
UTF-8
Python
false
false
8,277
py
u_net3.py
import numpy as np import datetime import tensorflow as tf import tensorflow.keras as tfk # ---------------------------- # class DownBlock(tfk.Sequential): def __init__(self, j, out_size, kernel_size=3, conv_stride=1, padding='VALID', conv_dilation=1, kernel_initializer='he_normal', bias=Fal...
f7fca3dd6457fe3b91c40ede2386f15a49868d89
3f7513b89a3a3cd2409f1e2713bc4ddc2a10f326
/crabmeyerpy/data.py
f89dc3416c8f24cf9400c72c64e6d179b800effc
[ "BSD-3-Clause" ]
permissive
renlliang3/crabmeyerpy
6eb0420317e107af4d0526a83a188e4068dcec2a
5a2fba45f539e3bef4715e2656b60dc5c9f72f19
refs/heads/master
2023-07-16T03:20:58.970340
2021-08-20T14:19:00
2021-08-20T14:19:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,027
py
data.py
import numpy as np import copy from .ssc import kpc2cm class CrabData(object): def __init__(self, file="data/crab_data.npy", d=2.): """ Initialize data class Parameters ---------- file: path path to npy file containing the data d: float dist...
153d4aa39ae10cb9706c3dd508515038b9e4b07b
3e1dd44e82b03a409253652f26b30d7776f82459
/Batch_Normalization.py
8418f8ef911b3bcaeaf626ea5a15d7c918f189c8
[ "BSD-3-Clause" ]
permissive
yuanyuan29/Pain_Detection
bb2214d1d5cae3ffc2dd4a01fd14df4779be120d
31c750529f66cfa77a3b5392e5accab3f9774a0c
refs/heads/master
2021-09-06T14:45:56.738015
2018-02-06T23:24:05
2018-02-06T23:24:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,734
py
Batch_Normalization.py
# # We devide samples into 4 classes, no_pain(0), low_pain(1-3), medium_pain(4-6), high_pain(7-16) # # import cPickle as pickle import os import random # ---------------------------------------------------------------------------------------------------------------------- # Defining Helper Functions for Data Preparat...
47f45cd60e41c25158765c4ef5490e36aefd6b67
7c63a96fad4257f4959ffeba0868059fc96566fb
/py/m_lutz-learning_py-5_ed/code/part_05-modules/ch_23-coding_basics/11-import_vs_scopes/main_.py
843a4e1b278ce2a09987c60ce2d870738a9c92e0
[ "MIT" ]
permissive
ordinary-developer/education
b426148f5690f48e0ed4853adfc3740bd038b72c
526e5cf86f90eab68063bb7c75744226f2c54b8d
refs/heads/master
2023-08-31T14:42:37.237690
2023-08-30T18:15:18
2023-08-30T18:15:18
91,232,306
8
0
null
null
null
null
UTF-8
Python
false
false
97
py
main_.py
if __name__ == '__main__': x = 11 import module1 module1.f() print(x, module1.x)
2cbff4991e061225bc0aff3afa7169a942b41871
c9d18f97425ba48a1a1ee07bbfca0e8f18852f55
/modify.py
e574875225b841cb07ae77da76c52a1a7930d1f1
[]
no_license
tmyl123/ethold
37bf11ddc561982ffd7bf4d1431aaef2e399e83f
42fd00225f7730a8c8e218e1be102f595d79f12f
refs/heads/master
2020-03-14T07:35:51.367009
2019-01-29T03:31:18
2019-01-29T03:31:18
131,507,859
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
modify.py
#!/usr/bin/python3 import sys f=open('[IPT]-MO010-IN-Above.json', 'r') flist=f.readlines() print('原本:') print(flist[16]) flist[16]=' "extraMailBody": "incoming超量,請檢查是否為正常流量",' f=open('[IPT]-MO010-IN-Above.json', 'w') f.writelines(flist) print('修改後:') print(flist[16])
69d9efca9fc2f7d441df9c56fd547a08c6f64555
1ec0c04fa63804c5bcd364cd8db9e88169d900ab
/src/typeTypeRevolution.py
db5df17708d40a40e45aa7bda92f26613e9d76e9
[]
no_license
elevy411/TypeTypeGames
4ef7785f0d739d1f309d4d3920f2b8c2030a6d9e
569d17b00d4656ea10a3dfaa959b47e6f60cd2a7
refs/heads/master
2020-12-30T23:59:30.542146
2017-03-10T16:03:29
2017-03-10T16:03:29
80,556,166
0
3
null
2017-02-10T03:10:47
2017-01-31T19:54:06
null
UTF-8
Python
false
false
8,161
py
typeTypeRevolution.py
import sys from time import sleep import pygame as P from letter import Letter from word import Word import Globals as G from menuItem import MenuItem from gameMenu import GameMenu import random velocity = 1 alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',...
1956df2782106765de88290b11c96486708fab1d
1fb2c8ccfee70d141924c9b77cf98e46af2e5112
/desktop/core/ext-py/cx_Oracle-6.4.1/samples/TransactionGuard.py
2fb9ca3a505583adc2d2ad7410c546110e44bdf6
[ "LicenseRef-scancode-unknown-license-reference", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
criteo-forks/hue
bcfa215e654c72eb4bd0a40bfbddcd63b51d30cd
752b305d2f336974a2e5c2294f146e338fdd3edf
refs/heads/release-4.11.0-criteo
2023-09-01T11:53:48.372630
2023-08-09T14:55:05
2023-08-09T14:55:05
170,473,946
2
6
Apache-2.0
2023-09-07T08:32:40
2019-02-13T08:54:33
Python
UTF-8
Python
false
false
2,990
py
TransactionGuard.py
#------------------------------------------------------------------------------ # Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved. # # Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved. # # Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta, # Canada. Al...
a0a2aa82242884223ef89519ab7ee56b362462e5
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-shopify/source_shopify/auth.py
e3f6021bfedcfe5092ef0fb6545d094391bcdc3b
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Elastic-2.0" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
1,290
py
auth.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from typing import Any, Dict, Mapping from airbyte_cdk import AirbyteLogger from airbyte_cdk.sources.streams.http.requests_native_auth import TokenAuthenticator class NotImplementedAuth(Exception): """Not implemented Auth option error""" logger =...
330861eee00d73705690dd772190f2e1b2e80998
a673ed5330800ecd8a05ec450248c9f255a6fa62
/Login.py
1a1f697d8e2013efb936a1752840797fa573ca0b
[]
no_license
Faragon02/The_cave1
844e326883284091d5faab72e1c814dfd269383b
a321d7ca71ec48d940a585a10f9983e520109d77
refs/heads/master
2020-04-17T07:18:38.852729
2019-01-18T07:38:00
2019-01-18T07:38:00
166,363,718
0
0
null
null
null
null
UTF-8
Python
false
false
3,112
py
Login.py
import subprocess from tkinter import * from tkinter import messagebox from glob import glob import sqlite3 # Part of variable declare # filist = glob("D:/pylogin/Account.py") filist1 = glob("D:/pylogin/hello.py") # Part of function declare # def login(): strdata1, strdata2 = [], [] log_con, log_cur = None, N...
ed33daa1278198e779b90279c45c2e9eb367c2f3
702fc1fc477ff0b0c11e6c6b519629cc2ae124b5
/HT_8/HomeTask8_2.py
5eeec8fdfcd232fce122f6c5b45de5b561daec2f
[]
no_license
nomatterhowyoutry/GeekPython
840db949cdf645f1097ff8bf58e3f3e93cf37771
cd6c0c7b0c8ac5566f6c008a8f2fc2346ba13988
refs/heads/master
2021-09-07T14:55:56.111769
2018-02-24T11:10:29
2018-02-24T11:10:29
107,546,607
0
1
null
null
null
null
UTF-8
Python
false
false
1,977
py
HomeTask8_2.py
import bs4 import requests import time from lxml import html import random import json import xlsxwriter import csv from fake_useragent import UserAgent start = time.time() json_data = open('proxy_list.json').read() proxy_list = json.loads(json_data) url = 'https://www.expireddomains.net' list = [] next_page = '/del...
7f62ae64fe00a58344cb72ea7021765d9d71dd1f
91c5f27c2682cac5037fed6dce74c18d9efb6dc2
/bootstrapping/tds-distributed-loadtest.py
3b206ff310b7af29565eadc804ec9db91754772e
[]
no_license
rubenssantoshd/TDS_TestDeliverySystemLoadTest
c204a867e90105503686925b4a950f40a106cd05
b0c2a0554cf7788813539b0776a17235f605155b
refs/heads/master
2021-06-23T02:34:55.426851
2017-04-24T20:59:40
2017-04-24T20:59:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,449
py
tds-distributed-loadtest.py
import subprocess, os, sys, getopt, re, time, shutil import boto.ec2 def main(argv): # Defaults students_per_proctor = 10 total_students = 20 num_workers = 2 try: opts, args = getopt.getopt(argv, "hs:p:w:g:c", ["help", "students=", "proctors=", "workers=", "cleanup"]) except getopt.Ge...
eb408685abd07cd10fb0f91ad8e791bf0a51c83e
318785e1010d617e7a4470ded98bde3013438eb3
/src/cogs/config.py
5ff22d3c7706fe817993992a3bb530257ed558cb
[ "MIT" ]
permissive
13hellopranv/hot-bot-pol-pot
b10fb6ee5ac11c2422c6e70c47afa6038f99e5fd
413889e82e7082e2b8886fa462bd65d64889422d
refs/heads/main
2023-08-11T13:48:32.834472
2021-09-16T20:13:46
2021-09-16T20:13:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,044
py
config.py
from asyncio.tasks import wait from datetime import datetime from discord import Embed, embeds from discord.ext.commands import Cog, command from discord.ext.commands.core import group, guild_only, has_permissions from discord.message import Message from typing import Optional from src.data_clusters.configuration.serve...
00ffedcbfc1d6f55bfca3d0e4c478188862b2408
24e795724343272baa1f17d2dd114eb6bb3d88d1
/filter.py
b4b144c859a25f9007aa4da50e0dee3e4c24c251
[]
no_license
WangYangLau/learnpython
e36e1e0c33049c1429e39305aac2041894854577
8e30e32c899a1f3ff863856b2ce49d3cdeec715d
refs/heads/master
2021-05-09T04:07:52.370614
2018-02-23T09:50:08
2018-02-23T09:50:08
119,263,086
0
0
null
null
null
null
UTF-8
Python
false
false
1,058
py
filter.py
# -*- conding:utf-8 -*- print(u'用filter筛选出奇数:') def is_odd(n): return n%2 == 1 print(list(filter(is_odd,[1,2,3,4,5,6,7,8,9,0]))) print('>>>------------------------------------------------------------------------<<<') print(u'筛选出非空字符串:') def not_empty(s): return s and s.strip() print(list(filter(not_empty,['A',' ...
c4fd1b010fe93963a9b179f0be46185f473bfc1b
ad2a77aa5d32e81755f7f026e459f9340029c53d
/apps/scheme/filters.py
31e2afdbcfbff0f74543b49d5ffea838b7968edf
[]
no_license
wuhaihua1989/magic
6884e44355b6148d9b16f18fbef454bd8695589f
5379a67494d234d58f751038558ce9629f7cb3da
refs/heads/master
2020-04-07T23:11:44.515617
2018-11-23T09:55:31
2018-11-23T09:55:31
158,802,186
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
filters.py
import django_filters from .models import Scheme class SchemeFilter(django_filters.rest_framework.FilterSet): title = django_filters.CharFilter(name="title", lookup_expr="icontains") source_web = django_filters.CharFilter(name="source_web", lookup_expr="icontains") class Meta: model = Scheme ...
ad9f2344de5d932ba872278f361f5a84472a98e7
6173de6ed9d5fe81b112315a90b41b78b4f8de3c
/model/database_handler.py
394b0ce1224d24e1407c1f7709b04d638db208c7
[]
no_license
krward2/S.E.A.
81dcdc8b076a15542152eb340ce474f161e78ef9
8d319a4071be93b5be0637760a04e96b0ac9ce6d
refs/heads/main
2023-07-15T00:42:25.770167
2021-08-17T23:38:19
2021-08-17T23:38:19
397,417,525
0
0
null
null
null
null
UTF-8
Python
false
false
7,405
py
database_handler.py
from enum import Enum from typing import List, Union from bson import ObjectId from pymongo import MongoClient from pymongo.results import UpdateResult, DeleteResult class DatabaseHandler: """ Description: A wrapper class for the underlying database application. Ensures a smooth and consistent communication ...
4512403462a6afe533b85278e38a64da7759a12b
a76e134030d48929eda8d827e906558ba1244c8a
/oth/urls.py
229e5286d4b7c84e2fe0b86afaf168c947debaf5
[]
no_license
lugnitdgp/online_treasure_hunt
5959e51c7d0abf9b5a89e2cc0b7fa2b42f59d646
a8133b75358e4aff33c87a8f61e9d6e8bc848f9b
refs/heads/master
2021-01-23T11:55:57.750971
2014-10-19T19:41:03
2014-10-19T19:41:03
25,437,924
0
3
null
2018-10-01T13:17:43
2014-10-19T19:40:20
JavaScript
UTF-8
Python
false
false
851
py
urls.py
from django.conf.urls import patterns, include, url from player.views import index,authorize,log_out from level.views import level_view,check_answer,level_file,level_scrape from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib import admin admin.autodiscover() # Uncomment the...
d3d97c367c16d7d183ffbcf1994694edf2e42a85
5fdb4a1a620f81070bd0307919693662f8585c10
/Density_profile.py
69f29882ac944b1e72bfdd4240a629c1d840e160
[]
no_license
Donnievin/DonovanSummer2019
a814729bca1014d1bc3c51a83b22fccb6c15d94e
1c7e4e8288d4d8df2d8b3355cdbfd4b503e5fb61
refs/heads/master
2020-07-01T05:36:51.436030
2019-08-07T16:57:24
2019-08-07T16:57:24
201,062,888
0
0
null
null
null
null
UTF-8
Python
false
false
2,105
py
Density_profile.py
#import all the good stuff! #!/usr/bin/python2.7 # -*- coding: utf-8 -*- import pynbody import pylab import pynbody.plot.sph as sph import numpy as np import matplotlib.pylab as plt from pynbody.analysis import profile #Now I need a code that will load the simulation (s will stand for simulation) s = pynbody.load("cpt...
49ca256e829e621e676b65f60778c10bed81b2e6
760f038d3ec086cbedb100c85e3b22a1a156e515
/util/fileUtil.py
53498cf528ac23251dfeb3774f4baf35157a5e78
[]
no_license
0827cg/bookMsgCategory
23f717a093a39be58e6c345af6ab98f995efa3c9
cb5b2b92f3373db7557776fc80042bf9add55077
refs/heads/master
2020-04-03T18:35:48.544461
2018-11-12T01:34:32
2018-11-12T01:34:32
155,490,208
1
0
null
null
null
null
UTF-8
Python
false
false
6,923
py
fileUtil.py
#!/usr/common/env python3 # -*- coding: utf-8 -*- # # describe: # author: cg # time: 2018-10-24 18-33 import os import time from lib.bookMsgPro import BookMsgPro class FileUtil(BookMsgPro): ''' describe: 文件操作类 ''' def readFileContent(self, strInputFileName, strEncode='utf-8'): ''' ...
53855c15d9d010b089419a15330eb5ce48cb2d39
d8637bec8926ec564179b58d09840e792d5694c6
/abc/AtCoderBeginnerContest092/C.py
2e0d1ebcf6b464a3c6ee9bdf668239bf1abb32ad
[]
no_license
takapdayon/atcoder
0bc13534eb746e3e1e94075768be11bcd20aa17b
453e69d4bbeb4a9e0ad81eaf5f2f17afbd896911
refs/heads/master
2023-03-05T08:55:39.236580
2023-02-23T02:09:31
2023-02-23T02:09:31
246,989,627
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
C.py
def Traveling_Plan(n , al): ans = [] return ans def main(): n = int(input()) al = list(map(int , input().split())) print(Traveling_Plan(n , al)) if __name__ == '__main__': main()
b4f51d1a230aeaec07b7a69de4d773d86a5a50fd
e8496c1606c3a406412c79295099ab73fbbf83fd
/bilety.py
a429752453a22300054b02d6f062aead4081e371
[]
no_license
CatherineShm/Python_homework_week_1
5d477d196f91ec3856a8ec58299f22aad559d029
43076aaa96257d71035d15a4ff6379bd11af142c
refs/heads/master
2022-04-14T17:03:32.749887
2020-04-13T16:24:54
2020-04-13T16:24:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
bilety.py
### Zadanie 1.6 #Bilety (ok. 1 godz.) #Założenia: # - 0-6 - wiek przedszkolny - cena biletu: 0 # - 7-17 - wiek szkolny - cena biletu: 2.28 # - 18-64 - wiek dorosły - cena biletu: 3.80 # - +65 - wiek emerytalny - cena biletu: 1.90 #Napisz program, który przyjmuje dwie informacje: jaki jest wiek osoby ...
822a157075a13e88a5b2b9cd7b7d1cc9fdc3b504
780afbc14dc7d7674c472d66a9d8a9d7773060a3
/Algorithms/sumDiffCorrBits.py
3b3e90ede6b7d7f008a1a602c66ba02bd67c3a45
[]
no_license
dbausher/practice
81a0fd01380dbf889d5524a4ff98c7179da4117f
a081c2643d661810a8976c1873673cd7d142de8a
refs/heads/master
2020-12-30T10:49:10.325436
2017-09-06T01:45:35
2017-09-06T01:45:35
98,855,787
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
sumDiffCorrBits.py
"""http://practice.geeksforgeeks.org/problems/find-sum-of-different-corresponding-bits-for-all-pairs/0""" import fileinput import math import functools inputLines = fileinput.input() testCases = int(inputLines.readline()) for l in range(testCases): n = int(inputLines.readline()) numList = list(map(int,inp...
2aaa77a3edc0baa7c24d923da6412ade66eddea8
71ae3f778c0d908031359c4a96667e0fd989f2f7
/boiler_plate/cli.py
5edc8451c2e7c563a45f28131bfee310cb6a9cc6
[ "MIT" ]
permissive
xinsfang/boiler-plate
c95eb7b25c0070a1a092d148f8dbf3e1583703b6
9a8d922375c41d8b15462b53613df32e8fbddb66
refs/heads/master
2021-09-26T22:26:33.462372
2018-11-03T17:33:23
2018-11-03T17:33:23
102,805,500
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
cli.py
from __future__ import print_function import click @click.command() def cli(): click.echo("Hello, World!") def hello(): return("Hello, Fang") def say_hello(): return(hello()) if __name__ == '__main__': cli()
a76e591199d369a2d46501c2fe0230d35c2fbd40
ab812ff824ecee47e76811434ce3f94675e5cade
/httpolice/inputs/streams.py
59b1915cd672a9dabc9f0c9f5d018da2ea5d72c2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vfaronov/httpolice
3ae73b0ea9be28a227523362da1413b81366b77d
0008cb746798eb8a7981d57f16f0b91b87e1a8d6
refs/heads/master
2022-07-11T15:00:17.614827
2019-06-27T20:20:38
2019-06-27T20:20:38
57,005,838
1,030
29
NOASSERTION
2019-02-28T12:42:41
2016-04-25T02:26:57
Python
UTF-8
Python
false
false
15,167
py
streams.py
from collections import OrderedDict, namedtuple from datetime import datetime, timedelta import io import itertools import os import re from httpolice.exchange import complaint_box from httpolice.framing1 import parse_streams from httpolice.inputs.common import InputError from httpolice.stream import Stream from httpo...
d2743c7739d0290d35f9e7ae15be81d1adf66bb5
49f939701adf364288654c5fb645b0cd891be75b
/Parser.py
0da9e3dfde811ad0a81ed6c6997a03556accc995
[]
no_license
rc3097/ICDparser
e0a725bc01947984e827e6801ef88a637693326e
50052e7c0a81b32e05a0c64e37c3650c20f4fd7d
refs/heads/master
2016-09-13T13:47:26.631771
2016-04-20T17:33:41
2016-04-20T17:33:41
56,362,150
0
0
null
null
null
null
UTF-8
Python
false
false
6,060
py
Parser.py
import urllib2; from lxml import etree; from bs4 import BeautifulSoup; from Writer import Writer; from sets import Set; ######################################################################## class Parser: """""" #---------------------------------------------------------------------- def __init__(self):...
7b08e719ca4e48514547dc1290a6bdbb82100a2b
62d88aee88376e7b1500b3d7dced89db4c571e18
/ibutsu_client/api/widget_config_api.py
b743791a2a830a9eb933fe17b5890116e9e10846
[ "MIT" ]
permissive
elyezer/ibutsu-client-python
0e765dad92f804c4a175a86d682ef485e1868d72
a040ea899fc8f64c57c8bfbe5206c1c6f99e2fa8
refs/heads/master
2022-12-28T10:29:43.697953
2020-10-15T21:32:27
2020-10-15T21:32:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,806
py
widget_config_api.py
# coding: utf-8 """ Ibutsu API A system to store and query test results # noqa: E501 The version of the OpenAPI document: 1.10.2 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import si...
cef3032819a8fe7220e0862abdd4ee8cacebf2d1
0214763ab4c534132ece6f15053d8e88cbc75c50
/bin/roguecraft
5adc608034f25f910bd2a19d63711a6c8f7e37ec
[]
no_license
j1o1h1n/roguecraft
5863888b903d1be579276722771a489e7371689a
e234a1b1ad3809c39d3fcffebe249c78df488584
refs/heads/main
2023-04-21T14:12:04.090767
2021-05-01T23:40:31
2021-05-01T23:40:31
332,121,201
0
0
null
null
null
null
UTF-8
Python
false
false
162
roguecraft
#!/usr/bin/env python3 from roguecraft import roguecraft if __name__ == "__main__": parser, args = roguecraft.parse_args() roguecraft.main(parser, args)
ac23b0315ff014bd77f0f36450d044e7c63efe38
28c21da3536717b1ea42587660869a16babd4ba6
/src/opencv/views.py
4291dcb711e3c0b1c7b52739f4f3dd86096e7157
[]
no_license
madatk62/CV2_learn
af96ad628c9a227296a8529548844badc40ddcc0
7edaf62072424f0f1d922aa7ca62609793cf2b7d
refs/heads/master
2022-12-02T19:44:02.971847
2020-08-26T07:30:14
2020-08-26T07:30:14
286,482,266
0
1
null
null
null
null
UTF-8
Python
false
false
940
py
views.py
from rest_framework import status from rest_framework.response import Response from rest_framework.views import APIView # Create your views here. from .models import Image from .serializer import ImageSerializer from .module import ImageModule class ImageViews(APIView): def get(self, request): image = Im...
f6d898838617dc64a1f00ba396f5b3d7b7ba35b1
a6b718d6e13ba5ef4f17e1869c74a8deae73afce
/WebServerCloud/Config.py
d0875207125a6ae6ee113eeba2cfb846b6fb4abf
[]
no_license
Alez87/ContainerOrchestration
277fcb33943a24ec874873f8c5210f6577f0ba40
273bc41246dcf931660c1f183228c9af411aba16
refs/heads/master
2021-06-19T21:23:16.603562
2017-07-04T18:14:28
2017-07-04T18:14:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
Config.py
WEB_SERVER_PORT = 8888 APP_NAME = "app" MODE = {'mobile_presence':'MOBILE_PRESENCE', 'scale_up':'SCALE_UP', 'scale_down':'SCALE_DOWN' } DEVICE_HOSTNAME_MAP = {} ''' FOG NODES ''' WEB_SERVER_FOG_PORT = 8888 MONITORING_FILE = "dataset.txt" NUM_SAMPLE = 20 THRESHOLD_DEFAULT=20 #MAP_HOSTNAME_IP = {'alessandro-VirtualBox...
50d2e1aa757c199dcfa5dae6efc49860c72f1ce2
cf3b13696cd775d7101d5057e3800642b74cbb6c
/analysis/completeness.py
e7c3502146b362c9f1cd3280da35c205cca79075
[ "MIT" ]
permissive
chowder/multiple-object-tracking
569a4a460468ef32115d0f9394322083a2fa12de
ea6652a007eb8546158c2b741400888c16765130
refs/heads/master
2020-06-22T06:37:28.903755
2020-01-22T23:52:16
2020-01-22T23:52:16
197,660,241
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
completeness.py
from typing import List import mot from mot import Observation def obs_to_tracklets(observations: List[Observation], size): tracks = [] temp = {} for obs in observations: if len(temp.get(obs.mac, [])) >= size: tracks.append(temp.get(obs.mac)) temp[obs.mac] = [] tem...
0db6b02f9f86c42acba94ad6dc9687e4fb78f309
a881343d04dc066e2feb81c390951306481fef4b
/venv/lib/python3.6/__future__.py
1c75d8580ab7e62dff6d110176f3409ac7d8fd6a
[]
no_license
danilredko/Grade_Keeper
dc6392e23e83fa2034d4ee766a88460011ad73ae
5c0e3ee9347859fa3d839a8ecf5704c5de015805
refs/heads/master
2020-03-18T15:36:40.954905
2018-09-14T01:13:34
2018-09-14T01:13:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
__future__.py
/Users/user/anaconda3/lib/python3.6/__future__.py
7ce679d5b889493f278de6deca6ec6bdb7acd3f5
fc7cbe67447fa83abde29a105e65453fa3f7ebd5
/RoughCode/RPI_Server/globalServer_Class.py
835f5ed2d9424f202751c60f21c05c8e1a3feee9
[]
no_license
Junebuggi/SYSC3010_TeamW4
4c0c769b2fad91d7570731e6929dcf3d5af10496
d0ee1ab7f86adfbe984c6fe66eec5cd4243ca7f3
refs/heads/master
2020-08-05T20:48:56.058512
2019-12-07T16:19:54
2019-12-07T16:19:54
212,704,233
0
1
null
null
null
null
UTF-8
Python
false
false
20,026
py
globalServer_Class.py
#Author: Abeer Rafiq #Modified: 11/23/2019 3:00pm #Importing Packages import socket, sys, time, json, sqlite3 import RPi.GPIO as GPIO from datetime import datetime, date #Creating a global server class class GlobalServer: #The constructor def __init__(self, port, room_ip_addrs, app_ip_addrs):...
08a5a903d3757f8821554aa3649ec2ac2b2995a5
5808faffc9c262d58d5a05c64c54c5eeb0f9024f
/venv/lib/python3.6/_dummy_thread.py
5ec8079dd2aacdd964ffccbaaef18808f8485c01
[]
no_license
tanzyy96/learning-flask
ca0c495e1ab2b2b65f07b318561e89125b6382c1
631c8e9d68cf615854fb59c22c0c26427e3ddcbb
refs/heads/master
2020-04-01T22:34:13.738176
2018-10-20T14:12:13
2018-10-20T14:12:13
153,715,215
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
_dummy_thread.py
/Users/tanzy/anaconda3/lib/python3.6/_dummy_thread.py
09d31df9c76975377b44470e1f2ba4a5c4b7bbde
48bdc3a53a2fd63ed7b268d47b6f4b037e436a94
/hlt/unix_game.py
490e7df67186a2f929dd8a060fa1fc0bf3c67b41
[]
no_license
Mvwivs/halite2-deep-rl-bot
1eab00acaf79c4a60af1b937b7bcf66c0e2f84d0
b2d59b5932920342530a6495d967bc9c9357a45b
refs/heads/master
2023-02-01T04:24:36.170702
2020-12-17T15:52:26
2020-12-17T15:52:26
316,007,942
0
0
null
null
null
null
UTF-8
Python
false
false
5,904
py
unix_game.py
import sys import logging import copy import socket from . import game_map class GameUnix: """ :ivar map: Current map representation :ivar initial_map: The initial version of the map before game starts """ def _send_string(self, s): """ Send data to the game. Call :function:`done_...
891588327046e26acb9a691fa8bb9a99420712d6
edb37da2fd2d2f048df119db96a6de58fc816ddb
/django rest api 示例6 高级封装 view set/zrddjangol/zrddjangol/urls.py
9be6c0d39524ba33a459284c28fa32ad0cec8d1e
[]
no_license
cucy/2017
88f1aa2e8df945162d8259918cf61a138a3422cf
33bcdd5c9e0717521544e3ea41ade10fbb325c4f
refs/heads/master
2020-05-21T15:31:39.935733
2017-07-10T11:04:29
2017-07-10T11:04:29
84,629,639
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
urls.py
from django.conf.urls import url, include from django.contrib import admin from rest_framework_swagger.views import get_swagger_view schema_view = get_swagger_view(title='Pastebin API') urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^doc_u/', schema_view), url(r'^', include('o.urls', )), url(...
a6f3c51d4115a6e0d6f01aa75bf5e6e367840d43
b4c5398821836928be5cfb55e18e1601d6f164a9
/cumm/conv/imgemm_test/conv/main.pyi
1220d9bf88f8a114037a597465bbd4e93fd48055
[ "MIT" ]
permissive
Number1JT/cumm
44511b2eb25909e6dfe481478af3ed6abe9c8649
9e55e2cba33c85b5006c286afdfa0dc1ea1c4efe
refs/heads/main
2023-08-15T19:35:16.743378
2021-10-12T16:43:21
2021-10-12T16:43:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,712
pyi
main.pyi
from typing import (Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union, overload) from pccm.stubs import EnumClassValue, EnumValue from cumm.tensorview import Tensor class ConvMainUnitTest: @staticmethod def implicit_gemm(input: Tensor, weight: Tensor, output: Tensor, padding: L...
0dd361239d85ed485594ac0f5e7e2168f0684544
8a54c05c8e1e90d712bd3f843ed06947a2182baf
/tests/test_parsing.py
d02a9c974a8f8ed6cbf0839533d07f18c2d7ab35
[ "MIT" ]
permissive
getslash/gadget-python
99bebb5aa8ec579e0a27a69b09fa9bcfd5063ce5
ff22506f41798c6e11a117b2c1a27f62d8b7b9ad
refs/heads/master
2020-07-06T13:08:33.454545
2017-09-25T13:14:47
2017-09-25T13:14:47
65,932,695
1
3
null
2017-02-06T14:03:46
2016-08-17T18:36:39
Python
UTF-8
Python
false
false
232
py
test_parsing.py
import pytest import gadget @pytest.mark.parametrize('invalid_line', [ 'beginningGDG::', 'beginning::end', 'nothing', ]) def test_parse_invalid_line(invalid_line): assert gadget.parse_log_line(invalid_line) is None
7de19a85a6a05bd2972b11571d5f05219c6beb1a
c1d83c08db525b59adec4a41cf8df2a09d9413f6
/move_directories.py
e639d7279e86a73b5c9827fe89d3201d63cb11ec
[]
no_license
ejoonie/dicom_extract
72b530debe64ea31a32f5d484f933c45fc72e870
9561b189df37162236486f7186d25407968ef803
refs/heads/master
2021-08-08T17:18:57.746469
2020-09-15T13:03:43
2020-09-15T13:03:43
219,730,886
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
move_directories.py
import os import shutil # root_path = '../from_1691' root_path = 'C:/Users/koyou/Desktop/test' # 실수할 수도 있으므로 dry_run 을 설정해서 로그만 찍을 것인지 # 실제 작동도 진행할 것인지 결정한다. # dry_run = True dry_run = False def move_directory(input_directory_path, output_directory_path): print("moving %s to %s" % (input_directory_path, output_d...
c85d7e799a652e82bfaf58e1e8bfa9c4606a8ecb
d3081d1ef6b313b6cfdd2b35db053f91d13ac1ef
/src/text_clf/config.py
74fb545bc78b09e6c205f40c53aecb83a736248e
[ "MIT" ]
permissive
YanJiangJerry/text-classification-baseline
8bd111a089fc7f3bfd36075e025442b62bea0805
6db3dd81a2a2b88c3105e3da468f6930763f0615
refs/heads/main
2023-08-25T05:47:20.820412
2021-11-06T08:58:44
2021-11-06T08:58:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
config.py
import ast import datetime from pathlib import Path from typing import Any, Dict import yaml from .lemmatizer import LemmatizerPymorphy2, Preprocessor def get_config(path_to_config: str) -> Dict[str, Any]: """Get config. Args: path_to_config (str): Path to config. Returns: Dict[str, An...
73ff1444b5ab1469b616fe449ee6ab93acbbf85a
8805ca35d6b451c5c61006761c28ff609aaa7fa1
/Gemensam kod/gis_layer_creation.py
673a2807cb7ceccffa655de5aaaafaeab5301e82
[]
no_license
nafalt94/Route_set_analysis
5a5b072e045edfa6ca0aae69aca4f03a5ffbc4e6
6832e8cc7cb41bcb9ad3e13805f923e1bd8b7cb0
refs/heads/master
2020-12-27T15:51:18.653385
2020-08-18T07:28:00
2020-08-18T07:28:00
237,958,004
1
0
null
null
null
null
UTF-8
Python
false
false
26,077
py
gis_layer_creation.py
import time from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtSql import * from PyQt5.QtWidgets import * from qgis.core import QgsFeature, QgsGeometry, QgsProject from shapely import wkb print(__name__) # Function definition def TicTocGenerator(): # Generator that returns time differences ti...
4d9575c178b672815bb561116689b9b0721cb5ba
ebd043c5edd3dfc9ac65fb14a6cddf990e46dc17
/Taller #2.py
b192883e533f59b1f7aa3525849cdaff246d6a1e
[]
no_license
Luis587/python
bf4546b9192ba8b5a15944b25cc172da16ffa7a9
a31de1fbb0faaa64ab65c74316d13fe924f8de7e
refs/heads/master
2022-11-29T19:53:00.738557
2020-08-07T23:07:14
2020-08-07T23:07:14
271,057,243
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
Taller #2.py
# -*- coding: utf-8 -*- """ Created on Thu Jun 25 15:14:15 2020 @author: luisa """ horast = int(input("Horas Trabajadas: "+"\n\t\t")) tarifa = int(input("Tarifa por hora: "+"\n\t\t")) descu = int(input("Descuentos: "+"\n\t\t")) resp0 = horast - descu resp1 = (resp0 * tarifa)/2 resp2 = (horast * tarifa) ...
af3b22e976646fcf28db5f54aa1bd64af135311f
0ce167ff7deb37b5245e5322387b076d2de0a8bf
/yslawards/views.py
4e8fe601da858a2c53ad409c5ad9eace17649597
[ "MIT" ]
permissive
Alvin-21/award
fe4175a5abf9e5d8810b414d718d3aafcc1307fe
5794b5c05c54e39e7f95693c153d27525705d86e
refs/heads/main
2023-05-13T19:07:14.298975
2021-06-08T14:10:25
2021-06-08T14:10:25
371,899,227
0
0
null
null
null
null
UTF-8
Python
false
false
3,018
py
views.py
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, Http404, HttpResponseRedirect from .models import * from .forms import * from django.urls import reverse from django.contrib.auth.decorators import login_required from rest_framework.response import Response from rest...
5afd3f0befb7749d106b1ffa722fe38ed5847ac2
007937677b189a6d09d430acc795109b4986c68f
/main.py
f81852e0325fac00deaade1447a511f34c65065a
[]
no_license
kheuch2018/twitter_data_acquisition
4777809f6f8dccb4f09e85ca72f36ebfb23fa7ff
e0940bb18cb6a0ab4552f28a06c8f3bc361d0ece
refs/heads/master
2023-03-31T07:01:11.542505
2021-03-29T19:58:37
2021-03-29T19:58:37
352,768,907
1
0
null
null
null
null
UTF-8
Python
false
false
700
py
main.py
from bs4 import BeautifulSoup from urllib.request import Request, urlopen import urllib import re import requests import wget headers = { "Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAJg4HAEAAAAAI7wVLWvggNhh7yVTgQZNUHb8BzU%3DmyJqu4rdLtFdHwwFxVgbyqBCMhGAZ2niVlWkLofq3ZFVDMMkEl" } r = requests.get("https://api.twitte...
13899adc4b81d0051ca550054ac712bd4a31a494
9c4a2ff6c7078ad3e2d15b29006c0750975ce7a9
/politiekeagenda/main.py
37b61a9381103cec47bc31bcb4db901393bc9156
[ "BSD-3-Clause" ]
permissive
bitsoffreedom/politieke-agenda-tracker
0b004447e608996a5dc5a71f64e60d7fc9de7e7c
03fdf1c1d342bc717f0361cd81e587b1d26235e3
refs/heads/master
2020-05-20T07:16:13.647089
2014-05-19T10:54:07
2014-05-19T10:54:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,307
py
main.py
import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../"))) import cherrypy import time from datetime import datetime, timedelta import models import database from config import * from helpers import * cherrypy.config.update({ 'server.socket_port': 301...
f4ba92ad0aad0cd3fa171203913935133b6d9399
005860bcdafaac404f76705a53f71a227cbbb4e7
/authors/apps/authentication/tests/test_social_login.py
a0f8d29f66082425827aff89731ff62e852c175f
[ "BSD-3-Clause" ]
permissive
andela/ah-magnificent6
1c0d3f6d3687df3799784198be1e73d6b4d82076
daf55ce4819f57cec8510c5726e86a0b1e78e3e1
refs/heads/develop
2022-12-11T23:25:03.214848
2018-10-29T13:28:22
2018-10-29T14:47:02
145,090,859
0
2
BSD-3-Clause
2022-12-08T02:52:43
2018-08-17T08:01:05
Python
UTF-8
Python
false
false
2,765
py
test_social_login.py
from django.urls import reverse from rest_framework.test import APIClient, APITestCase class SocialAuthentication(APITestCase): def setUp(self): """ Setup data for tests """ self.oauth_url = reverse('authentication:social_auth') self.client = APIClient() self.access_token_oauth2 = "...
7b3e66002fe9948007b9c454882a560d01efa14b
f5c22bae9d36b10ad9bd3aaf2c66e47cd2cf23b9
/win32/Tools/compute_hash.py
c7e1b37fb2656b94966bfc245e09087a27fa410f
[]
no_license
fengjixuchui/Shellcode-6
7a0835435574224e4ead3a614c00286183eccc2f
255dd47f9a17add86eba3fc0d781ce8ff2e60dfd
refs/heads/master
2021-06-01T01:18:44.003548
2016-07-01T12:10:00
2016-07-01T12:10:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
compute_hash.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if sys.version_info.major < 3: print("[-] You need Python 3."); sys.exit(255) ############################################################################# # Code. # ##########################...
f16cf1a7e41459dd7f018c395b9ffe6b418a373b
ef8bb711a0d41bac76bbc4ee63401983b94b7ceb
/appfigures/ranks.py
adacd330c51e28ea3af33bf06b273967d325d72f
[]
no_license
NickRoss/appfigures-api
e59f1e6a2c139db9d31c60107e0cb12e49721fae
33e169730fcde1395b7d32460eaedb0e14de11b4
refs/heads/master
2020-12-25T09:28:49.029832
2012-08-14T13:13:13
2012-08-14T13:13:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
ranks.py
from base import BaseClient RANKS_BASE_URI = "ranks" TIMEZONE_USER = "user" TIMEZONE_UTC = "utc" TIMEZONE_EST = "est" class RanksClient(BaseClient): def __init__(self, result_service, uri=RANKS_BASE_URI): super(RanksClient, self).__init__(uri, result_service) def get_ranks(self, products, gra...
fe8fb399d1e55d57afd0c026e16bf98cbdfca5e6
c6c3939dbe0978fc7d545358a477e2e50067bed3
/sas_app.py
4c951a5026df956b6c4ffcc1a1f5c3a5500e6fa7
[]
no_license
ksato9700/sas
0f2449f89b53da3b167753c6dbde3e305c1d314f
e928eca44592ab941b5cfc6074af9a5220151215
refs/heads/master
2020-05-22T12:32:16.666353
2011-07-31T21:09:50
2011-07-31T21:09:50
2,116,829
0
0
null
null
null
null
UTF-8
Python
false
false
10,853
py
sas_app.py
# -*- coding: utf-8 -*- # # Copyright 2011 Kenichi Sato <ksato9700@gmail.com> # # # import # from mako.lookup import TemplateLookup from mako.exceptions import RichTraceback from wsgiref.handlers import format_date_time from wsgiref.util import request_uri, shift_path_info, FileWrapper import os import time import u...
acfc9cde14bec0260d426e33368e947037006453
a416a70f5cf487e30be8e07405a19f76dec75dc7
/sphere_loss.py
fdcbd1e92e12f505926fe595b15d2e228e410dbe
[ "MIT" ]
permissive
CoinCheung/SphereReID
1106b8f07754b47a2b508d52b9b082365c850d36
e02c7b93bf8098ab0d73f3e6ec22723689344ac4
refs/heads/master
2020-04-02T21:41:16.152732
2019-03-26T08:45:18
2019-03-26T08:45:18
154,808,419
39
11
null
null
null
null
UTF-8
Python
false
false
2,314
py
sphere_loss.py
#! /usr/bin/python # -*- encoding: utf-8 -*- import torch import torch.nn as nn class OhemSphereLoss(nn.Module): def __init__(self, in_feats, n_classes, thresh=0.7, scale=14, *args, **kwargs): super(OhemSphereLoss, self).__init__(*args, **kwargs) self.thresh = thresh self.scale = scale ...
1d42b28388258219cd745e1114b12346a470b3f5
e8fc0f2ad966d39dd0f1a00a02beea0a30102e9c
/Data Structures/OrderedHashtable.py
c6c874f9e9215ca40a0009387ff1ade51c2de62d
[]
no_license
b72u68/coding-exercises
f20a9509486d40be72caccb7512773698eef7825
5b00e295244a2a4f6903b3318b69557ddc9300ff
refs/heads/master
2022-12-28T15:52:56.081400
2020-10-09T01:42:38
2020-10-09T01:42:38
271,180,494
0
0
null
null
null
null
UTF-8
Python
false
false
3,251
py
OrderedHashtable.py
class OrderedHashtable: class Node: def __init__(self, index, next=None): self.index = index self.next = next def __init__(self, n_buckets=1000): self.indices = [None] * n_buckets self.entries = [] self.count = 0 def __setitem__(self, key, val): ...
50137f3a6036d37ad5ac4d14a5f25d2215d4384a
599529d4f64f35a6248f64473121d61d05c1ef8e
/linkloving_purchase_invoice/models/purchase_order.py
3dae0c5bae9141a2707499164d7ebfcf72746d79
[]
no_license
iverson2937/linklovingaddons
2670ad16297abfbc94c883afc65b4f2082e7df0c
eea92d44bee76053619be00aa601b1efc4249589
refs/heads/master
2021-01-13T09:44:33.002594
2017-04-06T07:07:25
2017-04-06T07:07:25
72,824,679
1
3
null
null
null
null
UTF-8
Python
false
false
9,530
py
purchase_order.py
# -*- coding: utf-8 -*- import odoo.addons.decimal_precision as dp from odoo import models, fields, api, _ from odoo.exceptions import UserError from odoo.tools import float_is_zero, float_compare class PurchaseOrder(models.Model): _inherit = 'purchase.order' partner_invoice_id = fields.Many2one('res.partner...
23a8535cd9c70c72b2592376b7c40110177106c2
fb37abd2fea80177915b0045cd03ad71e2c16724
/evennia/src/objects/models.py
b0e2773269797225a0396ca5ad80dad736fc3c47
[ "BSD-3-Clause", "Artistic-1.0" ]
permissive
OthersGames/asylum-jam
a01703f248bf9c134ff01178fe019798a5484edc
2d1bc81977d2bbfc1e07498becb1a94af43fa91e
refs/heads/master
2020-04-21T05:25:53.180874
2013-10-12T06:42:49
2013-10-12T06:42:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
40,637
py
models.py
""" This module defines the database models for all in-game objects, that is, all objects that has an actual existence in-game. Each database object is 'decorated' with a 'typeclass', a normal python class that implements all the various logics needed by the game in question. Objects created of this class transparentl...
aecd2fb18d950118f62f3ae972fe6120e4785109
717dce0379d47c6442d789cae5d8cf3197142d35
/sageintacctsdk/apis/constants.py
3e2888a308c4df7690d3f0ac9e276d91029714f1
[ "MIT" ]
permissive
fylein/sageintacct-sdk-py
02545e0725f94ff8dcc8063375ca72c2234d7d3f
b84e0396f6305af56b0ab72102959716fa144c5f
refs/heads/master
2023-08-07T17:12:47.879995
2023-07-26T13:58:45
2023-07-26T13:58:45
195,482,433
11
22
MIT
2023-08-18T12:31:44
2019-07-06T00:56:55
Python
UTF-8
Python
false
false
14,971
py
constants.py
dimensions_fields_mapping = { 'COSTTYPE': [ 'RECORDNO', 'PROJECTKEY', 'PROJECTID', 'PROJECTNAME', 'TASKKEY', 'TASKID', 'TASKNAME', 'COSTTYPEID', 'NAME', 'STATUS', 'WHENCREATED', 'WHENMODIFIED' ], 'GLACCOUNT': [ ...
15604ff51e33f1b9cd78767c5a2763e9535f26e9
70866e522be6e15753cd5f03b8bc3115e34c8ce0
/dataStructures/SumTillSingleDigit.py
9f831faeba99dcf4e5b6fe5a0a766f0dd3038731
[]
no_license
KshitijVerma852/PythonCourse
4e72f557d7c116dcc59c9e51d6c5b07a2e4e0821
44629633b870f9276915126939f7ef18597422b8
refs/heads/master
2023-03-22T14:41:08.025343
2021-03-09T18:30:39
2021-03-09T18:30:39
292,621,354
1
0
null
null
null
null
UTF-8
Python
false
false
349
py
SumTillSingleDigit.py
num = input(">> ") length = len(num) num = int(num) if num <= 10: print("Sum is ", num) else: while(num > 10): sum = 0 # calculate the sum while (num > 0): reminder = num % 10 #3, 123 num = int(num / 10) # 12 sum += reminder num = sum...
d61a94a1e188f905d3182e55f1ae310f9bb109c5
0fafa6b8bb10145f910cc32750fb16a1397c008c
/stock/forms.py
32abd1bf454a9bc791b9123558e9461ba2c0a706
[]
no_license
gugajung/stockwatch
2a652e9f263b710d32a92db32cf0821676c61b1e
0efed23ba6c6fabd323ccc27bdb75bb434be8411
refs/heads/master
2022-01-13T18:44:50.621393
2019-07-05T22:50:23
2019-07-05T22:50:23
295,495,176
1
0
null
2020-09-14T17:52:16
2020-09-14T17:52:15
null
UTF-8
Python
false
false
1,284
py
forms.py
from django.db import models from django import forms from stock.models import Ticker from stock.stock import apikey, get_data, Stock class TickerForm(forms.ModelForm): class Meta: model = Ticker fields = ['ticker', 'time_series', 'interval'] def __init__(self, *args, **kwargs): # Override init to access re...
dadee4af604726caa29092ef1cecde76278e1c08
d1c211737d24a160943820b749558b8eebde5fc9
/goods/views.py
39b4b696b6d846fea43abdeb60755faeac3b8201
[]
no_license
MariaImangalina/shop
46c2ff79cc9297b48193a1135a91bd7b1c0efcf6
dbc6d93b1f000a5d2b18fc5c6e411517ac3c412d
refs/heads/master
2023-02-04T16:14:37.227690
2020-12-24T10:43:01
2020-12-24T10:43:01
291,252,884
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
views.py
from django.shortcuts import render from django.urls import reverse_lazy from django.views import generic from .models import Good from django.contrib.auth.mixins import LoginRequiredMixin class GoodsList(generic.ListView): model = Good class GoodDetail(generic.DetailView): model = Good class CreateGood(gen...
96b762647088067afac354b91df7c9d8474a1b73
8ff76efb5ec3bdf0b65f3b25a05827dc53715b0e
/send_audio_block/serial_com.py
afdf48f9b5a2d4ef4d5eb689891be8bb93f5dbd8
[]
no_license
hermeszhang/JARVIS
4ac4f862fd1b811c205335ff395a2806b363ab6d
27c87bb527066cf2573a927cd642ac3bf93fe7cc
refs/heads/master
2021-06-15T01:01:13.784297
2017-03-25T13:38:58
2017-03-25T13:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
serial_com.py
import serial import matplotlib.pyplot as plotter ser = serial.Serial('/dev/ttyACM1', 57600) #s = numpy.ones(10) s = 0 ampl = [] ctr = 0; while ctr < 3000: #read_serial = ser.readline() s = float(ser.readline()) #print s ampl.append(s) ctr += 1 ser.close() #Display data print ampl plotter.plot(ampl) plotter.show(...
52af879bba5a5b97644b20b6cfb3ecfb99fd8afa
bbe108c401856f808e5da4454689872aed3cae05
/python/game/index/migrations/0009_auto_20180712_1900.py
1c3295cbe6d139450789ee99ad4f8342bedff962
[]
no_license
neverqaz/code
0dd8ce44c6d14aefc575f7488342969fb9606494
4447903730466ef88442c3019c33a4117544c2a1
refs/heads/master
2020-03-29T13:40:16.984748
2018-10-15T04:42:32
2018-10-15T04:42:32
149,975,725
1
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
0009_auto_20180712_1900.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-12 11:00 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('index', '0008_auto_20180712_1548'), ] ...
f003bde40877e35311b5d2d49fc93bbbece61021
4b4df51041551c9a855468ddf1d5004a988f59a2
/leetcode_python/Depth-First-Search/number-of-distinct-islands-ii.py
22726b6b623b237e1e9d1517a5e1100c22efe1c6
[]
no_license
yennanliu/CS_basics
99b7ad3ef6817f04881d6a1993ec634f81525596
035ef08434fa1ca781a6fb2f9eed3538b7d20c02
refs/heads/master
2023-09-03T13:42:26.611712
2023-09-03T12:46:08
2023-09-03T12:46:08
66,194,791
64
40
null
2022-08-20T09:44:48
2016-08-21T11:11:35
Python
UTF-8
Python
false
false
9,788
py
number-of-distinct-islands-ii.py
""" LeetCode 711 - Number of Distinct Islands II https://protegejj.gitbooks.io/algorithm-practice/content/711-number-of-distinct-islands-ii.html Given a non-empty 2D arraygridof 0's and 1's, an island is a group of1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edge...
61c35c35ae6de9e16f7558232759a78b7ef5547a
9a4bf3864d9e66ba285e2d28d570b920b47d1ae9
/Explore/Decision Tree/Implementation/Calculate_Entropy_Entropy.py
9059a89206eb8a140edcf7d7e507b94b7eca10a7
[]
no_license
actcheng/leetcode-solutions
bf32044bcd916912c86294d83638be08a27b9d8f
4bf1a7814b5c76e11242e7933e09c59ede3284a3
refs/heads/master
2021-06-28T19:15:30.089116
2020-08-25T08:17:48
2020-08-25T08:17:48
139,708,553
2
1
null
null
null
null
UTF-8
Python
false
false
381
py
Calculate_Entropy_Entropy.py
# Calculate Entropy # Date completed: 2019/10/13 class Solution: def calculateEntropy(self, input: List[int]) -> float: if not input: return 0 from math import log2 counts = collections.Counter(input) n = len(input) entropy = sum([counts[x]*log2(counts[x]/n) for x in counts...
60fd9413e84bdc2b9483e5a107c518afe87dbe6f
e9524e8c2e3cde9f64b1d8cf9c128e66d93147ab
/shellshocker-pocs/dhcpshock.py
6161d27207795045785aabc37bcbfda8185c79ce
[ "MIT" ]
permissive
karthikeyathotak4/BugBounty-Tools
728c02e31bdf85825964f7150aaa51d2791dd909
00758d337c765bb746be8b7e577c064a5273e22f
refs/heads/main
2023-03-28T03:25:30.827760
2021-03-29T20:02:25
2021-03-29T20:02:25
352,761,030
3
0
null
null
null
null
UTF-8
Python
false
false
2,763
py
dhcpshock.py
#! /usr/bin/env python #Based on the PoC from https://www.trustedsec.com/september-2014/shellshock-dhcp-rce-proof-concept/ #Created by @byt3bl33d3r import binascii import argparse import logging logging.getLogger("scapy.runtime").setLevel(logging.ERROR) #Gets rid of IPV6 Error when importing scapy from scapy.all im...
625c918ea6f4d134fb17d757da96651401845215
c8880f876133096479f97e7729d5185a6a3fd2ae
/jeeves_commons/tests/unit/base_storage_test.py
2cbf3cda2fd47e8d654b3f98d11608399350d565
[]
no_license
adamlavie/jeeves-commons
e68f5125a7efbfb03babcaa513feeeda8b7250f4
3c36d767825e0f8628505735fed5379b741d0aa5
refs/heads/master
2023-07-20T16:04:45.374397
2018-10-06T21:36:37
2018-10-06T21:36:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
base_storage_test.py
import unittest import tempfile from jeeves_commons.storage import database from jeeves_commons.storage.storage import StorageClient class BaseStorageTest(unittest.TestCase): @classmethod def setup_class(cls): _, path = tempfile.mkstemp(prefix='jeeves-db') database.db_url = 'sqlite:///{}'.fo...
40a8aa1d89a777819c1285425996bfc56c5ba7e9
d3c87e641adfe702ccac00101909f4f7d179a7f3
/setup.py
0d0a8b8430b15786d15e3942372f9c14a65af424
[ "MIT" ]
permissive
sepandhaghighi/pyrgg
21941bdc6c8f2ea083e66a5cab7317512ac777a3
d4fe3604c4e1a27f44ed8c482a8188057dda15ee
refs/heads/master
2023-09-01T05:20:43.389161
2023-07-06T18:09:32
2023-07-06T18:09:32
89,410,101
204
32
MIT
2023-08-19T12:47:25
2017-04-25T21:49:53
Python
UTF-8
Python
false
false
3,399
py
setup.py
# -*- coding: utf-8 -*- """Setup module.""" try: from setuptools import setup except ImportError: from distutils.core import setup from textwrap import fill _description = """\ Pyrgg is an easy-to-use synthetic random graph generator written in Python which supports various graph file formats including DIMACS ...
db117b2dbff531219f174fcf40b67d5266b6fde3
f2f81dd67cb4fe4d2d395bee4cf8446b28b4d709
/plotting_pretty/poster_gaze_states_bin.py
81b59107e8f8b4c7a618cc7f30987b78841393a5
[]
no_license
amennen/penn_plotting_additions
c48b54a4222a57de485b288807f5c64a5a94598b
a06275dc101f3855f9e86d794e0e1ba82d4ad9c3
refs/heads/master
2023-02-07T16:48:09.263804
2020-12-31T20:14:16
2020-12-31T20:14:16
256,343,635
1
0
null
null
null
null
UTF-8
Python
false
false
17,365
py
poster_gaze_states_bin.py
# purpose of function: read in amygdala contrasts and get average for each session, run for subjec # %matplotlib inline # import IPython # from IPython import get_ipython # get_ipython().magic('matplotlib inline') import scipy import matplotlib import matplotlib.pyplot as plt #from nilearn import image #from nilearn.i...
d04779fd72b6ac7e08aae1090917f3465fe98bac
f53857b77ae9e6c3bbcf02cb725edd645517fbec
/32.py
c2d730faf0c6b623ec0972ff7d2ed84989d5e9b1
[]
no_license
cory-weiner/python-euler
b21862258472b9e9a7e1c6f1f7f346a6281cac9f
421439f26f7159f3b1d75f437d8edd468bd150cb
refs/heads/master
2020-12-23T17:51:47.810277
2020-02-03T22:41:49
2020-02-03T22:41:49
237,224,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
32.py
def solution(): results = set() for i in range(1,99): if i < 10: s = 1234 if i > 10: s = 123 for r in range(s,10000//i): product = i * r num_string = str(i) + str(r) + str(product) if is_pandigital(num_string): r...
cd20b069d21e9046ff7aacf41f6dd9bd759bdc02
e49317edf3fd07455ea0cba15d3c36e47742469c
/cargador/rover/test/pwm_f.py
0e9ef214c94b6cc4597373bd12bd503c2b9e0408
[]
no_license
ROVER-UTFSM/platform
182278e24833bb7c2c5b4b0f908e111350824439
e31fa4691353c94e72c08de836c11fcc5d16ecce
refs/heads/master
2021-01-10T16:10:49.996206
2015-11-15T03:34:22
2015-11-15T03:34:22
36,619,992
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
pwm_f.py
#!/usr/bin/env python import RPi.GPIO as GPIO import time if __name__=="__main__": GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.OUT) pwm = GPIO.PWM(17, 42) pwm.start(70) try: interval = () for f in range(100, 10, -10): # Change period from 10 to 100[ms] pwm.ChangeFrequency(f) print "Period ", 1000/...
d59797a59c4afca6d52910824271c1c6784b3685
e22eeb5256e17a96a98b3ff25433aec2d641cd2c
/openstack/tests/unit/cloud/test_accelerator.py
5afe6f3f60afa4b25fefcd02b04500e145287c52
[ "Apache-2.0" ]
permissive
openstack/openstacksdk
b4b95fd7869653feea5a3b783e9a5c588235c039
d474eb84c605c429bb9cccb166cabbdd1654d73c
refs/heads/master
2023-09-03T22:50:03.398512
2023-07-27T14:09:35
2023-08-29T16:28:46
16,223,378
124
130
Apache-2.0
2023-09-06T02:52:47
2014-01-25T02:48:00
Python
UTF-8
Python
false
false
13,079
py
test_accelerator.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
f587bc7b644b8799c5652e97f2e74117373b89e7
9fb696c5d09baf3b30543d85847bf851e0953201
/helloworld.py
234ebc5234381f5a2ef98f678537edf6d41449de
[]
no_license
TrifonovSlavON/hometask
a4c2b0ee18aaedb8f41ab4b14699026f92442467
988cd62325b306e832b536c132ab550e8a29cfa3
refs/heads/master
2021-06-26T12:04:21.776101
2017-09-11T20:23:33
2017-09-11T20:23:33
103,184,159
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
helloworld.py
print "first line" print "Hello World!" print "Welcome to Dolgoprudny!" print "I like python!!" print "last line" print "line after merging"
7089b9e5ea81de5ffc05a279a8e0e0153d23c85c
07a345ea5ad2075e506995a1d6add123099867e0
/myfirst/apps/log_in/views.py
37504eef93c0484c87c4c02d5051eb7c46626c89
[]
no_license
E6YJI6EK/Python-Project
ec6fb8bd57ffca19da171ef8e3bad22358576dd5
0ef0b4ded2c0431f0d3330a04d270708db202409
refs/heads/master
2022-11-07T22:48:31.766073
2020-06-26T19:58:07
2020-06-26T19:58:07
269,038,325
0
0
null
null
null
null
UTF-8
Python
false
false
2,546
py
views.py
from django.shortcuts import render, redirect from django.contrib.auth.views import LogoutView from django.http import HttpResponse, Http404, HttpResponseRedirect from django.urls import reverse from django.contrib.auth import authenticate, login from articles.models import Article, Comment from .models import Profile ...
6340cc37c348e33a18a28d375adc467fd9b21487
6fc22305b3d1182b7b929bfe3868a859cf694671
/inner_crawler.py
d0eb927a5da21e2aed955de09112dad88e9d1d09
[ "MIT" ]
permissive
leofmr/crawler_cafe
1027ce798ed25137bb179f7d56d1452810ec4b57
176ab3b92b383c4bc143f4aeb27183a4941a42b7
refs/heads/main
2023-03-05T02:30:18.835805
2021-02-22T13:58:24
2021-02-22T13:58:24
339,401,766
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
inner_crawler.py
from selenium import webdriver import time import pickle def load_hrefs(file_path=r'data\test_scrap.pickle', href_loc='empresa_href'): with open(file_path, "rb") as file: regs_data = pickle.load(file) return [reg[href_loc] for reg in regs_data] def empresa_parser(link, wait=5, driver = r"assets\chro...
6cecc7fddb8446d68db3165b355d94e529cfd9d0
3f9a88faa37691892f987d77b088aaa7d766eaf8
/public/serializers.py
21617db102351b8ffc2effe87fc2effbe90083b5
[]
no_license
raghavankit11/certify
cc5c73f02b39ba715da238bba4381c7b9245e068
5137e287367e013ee294b253d84b81ea3708b8fb
refs/heads/main
2023-07-16T22:31:16.404966
2021-09-04T18:07:44
2021-09-04T18:07:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
serializers.py
from rest_framework import serializers from common.serializers import BaseSerializer from .models import * class PublicCertificateSerializer(BaseSerializer): class Meta: model = PublicCertificate fields = '__all__'