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
816c06241279d59d0958aa9420c9f991c9924d28
80cf90559b5c1d49e5d5ef76f9deafa44da46611
/watchlist/models.py
9e9b4fb285dc0d630fa6b421a71fd313920c0720
[]
no_license
J3rryPie/Stock-Market-Watch
5525b5b68dd75cc5298d8077397c904f85511bdf
7a40910412e6de282ea44a0d16f2c7ab945a25e8
refs/heads/master
2023-05-24T13:21:11.130058
2021-06-20T05:51:21
2021-06-20T05:51:21
377,483,723
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
models.py
from django.db import models # Create your models here. class script(models.Model): code = models.CharField(max_length = 16) price = models.DecimalField(max_digits=10, decimal_places=2,default=0) buy_quantity = models.IntegerField(default=0) buy_price = models.DecimalField(max_digits=10, decimal_places...
05396a61fc7a4ff8507f48ae65875721bbbbcddb
5b47d423f321a860594691428ee017291fcae3a1
/NarcissisticNum.py
64aa885ce141c222ce6050c10e577382af2fb715
[]
no_license
max397574/Codewars
1c50014dcd61cd45ff91f2b598a92c3cccf8cb13
ff8cae16bbffd74117cfa215c2b7f349e0c142dc
refs/heads/master
2023-07-19T14:16:47.866353
2021-09-12T07:00:39
2021-09-12T07:00:39
368,877,707
0
0
null
2021-09-11T10:07:26
2021-05-19T13:24:06
Python
UTF-8
Python
false
false
265
py
NarcissisticNum.py
#https://www.codewars.com/kata/5287e858c6b5a9678200083c/train/python def narcissistic(value): str_value = str(value) total = 0 for num in str_value: total+=pow(int(num),len(str_value)) if total == value: return True return False
eb68f8823b05477a98a41b09afd2c1495a03c7a8
50aaf7a32228fd29c53fbe59dda51253b308ebfb
/common_stock/day_data_representation.py
46fc42d5e64593a5620108b1a9036a18108f867e
[]
no_license
xnsua/--pystock
7300b35ecd9fad0e035ab58c91592739d94212cf
d1d414624b316b5fb01d02f99efa79a07eef5d53
refs/heads/master
2020-04-09T04:22:00.780773
2018-12-02T06:18:25
2018-12-02T06:18:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,679
py
day_data_representation.py
import math import numpy from common.scipy_helper import pdDF class DayK: def __init__(self, open_, close, high, low): self.open = open_ self.close = close self.high = high self.low = low self.max_open_close = max(open_, close) self.min_open_close = min(open_, clo...
a6541b2a9c76b8c821c2840094dd5e172f6807ec
f9b63a1ff94bee402f6f4286e54d54d94a1c9d58
/pymmseg-cpp/build/scripts-2.7/pymmseg
0bb4e4f4b8a7a39891bc83b8e831861ee1c128c5
[ "MIT" ]
permissive
wcyz666/snsrouter-modified
1dae4e53b2d135ffc4c400b1a5d281c6c83bb226
511199951ece945003d4334648a73e368ccaff7f
refs/heads/master
2015-07-25T20:53:29
2014-12-10T10:06:09
2014-12-10T10:06:09
27,813,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,838
pymmseg
#!/usr/bin/python import sys import pstats import cProfile from cStringIO import StringIO def profile(fn): def wrapper(*args, **kwargs): profiler = cProfile.Profile() stream = StringIO() profiler.enable() try: res = fn(*args, **kwargs) finally: profil...
7b07e2e9c739e44e5b740983732226b224c7de20
db81e23128b3bfe2682f00b34848ffec484577cd
/traffic_qtgui/console.py
adabd22bfe42a0aa7ff399a2f6df8f87566ca6f8
[ "MIT" ]
permissive
traffic-viz/traffic_qtgui
1e2697549078b224f10f7f585d3141d519044001
7f79be49873c00059e86952ea3b14bd8312f3b90
refs/heads/master
2021-09-08T07:26:36.270219
2021-09-06T14:19:09
2021-09-06T14:19:09
191,648,069
1
0
null
null
null
null
UTF-8
Python
false
false
57
py
console.py
from . import layout def main(args): layout.main()
063a64c4816e8808fbe3860337f7be99efbe85f3
1ddf4ca18a7d137cc702f0890d6699f784694e0d
/Submission/Tutorial_3/task2/task2.py
4d2f93440b83bbf767ec99b28309e7aa489cbc2d
[]
no_license
pfackeldey/statistics
03bff8c3f5e6901af729edb26a9adbccce0bb9f2
030a3c25fb888c207752d685a05867dded1ab369
refs/heads/master
2021-01-20T04:28:52.960807
2017-07-12T10:28:45
2017-07-12T10:28:45
89,696,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,345
py
task2.py
import numpy as np import matplotlib.pyplot as plt import scipy.integrate as integrate def quadratic(x): return x**2. def linear(x): return x def trapezoidal(a,b,func,n): intervals=n-1 h= (b-a)/intervals value=(func(a)+func(b)) for i in range(1,intervals): value=value+2.*func(a+i*h) value=h*0.5 *value ...
fae1dd5ff86cba6f5f3779ecd13e1d40a1903015
1bdf38834c22b0100595cb22f2862fd1ba0bc1e7
/code1048LongestStringChain.py
118f8f0942b0158d906f08f643109d5df277f2f5
[]
no_license
cybelewang/leetcode-python
48d91c728856ff577f1ccba5a5340485414d6c6e
635af6e22aa8eef8e7920a585d43a45a891a8157
refs/heads/master
2023-01-04T11:28:19.757123
2020-10-29T05:55:35
2020-10-29T05:55:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,384
py
code1048LongestStringChain.py
""" 1048 Longest String Chain Given a list of words, each word consists of English lowercase letters. Let's say word1 is a predecessor of word2 if and only if we can add exactly one letter anywhere in word1 to make it equal to word2. For example, "abc" is a predecessor of "abac". A word chain is a sequence o...
9da513878ce7668c1d1fabf7fce8f23fae546038
07e750cb558de03104f7c033286329b69bbdfc23
/Chapter3_OtherTransformDomain/pr3_4_1.py
f2a04ff2f651c3a955bdf931c6317649235f8731
[ "MIT" ]
permissive
BarryZM/Python_Speech_SZY
d1e2fb6eadd6b10cfa5a65a622ae73f578d2f6d1
0074ad1d519387a75d5eca42c77f4d6966eb0a0e
refs/heads/master
2023-03-09T21:47:54.465905
2021-03-02T17:21:32
2021-03-02T17:21:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,560
py
pr3_4_1.py
# pr3_4_1 # 小波变换 from scipy.signal import find_peaks from Universal import * import numpy as np import pywt def mwavdec(data, wavelet, level): """ 参考MATLAB wavdec 对时间序列进行一维多分辨率分解 :param data: 待分析时间序列 :param wavlet: 选区的小波函数 :param level: 分解层数 :return C: 时间序列的一维多分辨率分解系数 :return L: 各系数长度,末尾元素为总长度 """ coeffs = ...
fa7dfe1e4b1bf7d79f36fb86b1b4512a3531463f
cfe03aecedaa085ffb63a376a1471b7805aec422
/appomatic_django_vcs/appomatic_django_vcs/__urls__.py
e9b0ba28ee8f66b201bec9f06191ff3a3a7a6efe
[]
no_license
lukehuang/appomatic
5ce46a33f2889ed638569af1d1d9c93f914249fc
4e3cbf9ca43a6421f3953ca667607b1b1b0a28d2
refs/heads/master
2021-01-23T05:56:08.864264
2017-08-08T12:46:44
2017-08-08T12:46:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
__urls__.py
from django.conf.urls.defaults import * from django.conf import settings urlpatterns = patterns('', url(r'^repos/', include('django_vcs.urls')), )
34c640ab0e858f3c9fbfea110ebd5c41ca3a0142
760fbf0e4675212a89dbba28ef771bf7ff7a0d91
/Leetcode2019/回溯/47. 全排列 II「中」「2刷」.py
01d40ce8d118d7c1fdab9467a59bc29adff9bc57
[]
no_license
chixujohnny/Leetcode
1a420e318005140a2be036ab7c3fcd054b4ae011
3faa41556f13f45a08b49d4dcd371ed590f9cb14
refs/heads/master
2021-06-19T14:44:28.464335
2021-01-11T08:16:26
2021-01-11T08:16:26
155,142,704
1
0
null
null
null
null
UTF-8
Python
false
false
1,194
py
47. 全排列 II「中」「2刷」.py
# coding: utf-8 # class Solution(object): # def permuteUnique(self, nums): # """ # :type nums: List[int] # :rtype: List[List[int]] # """ # # res = [] # # def helper(nums, path): # # if nums == [] and path not in res: # res.append(path[:]) ...
38c9e3e34c768b7357fb1b82f6488f3339fb03e1
752116ef4b69a3049fef0cfe9b3d212548cc81b1
/sources/scripting/wrappers/__init__.py
0a482db001935d87943cd96f27834c19c53c4373
[]
no_license
VDOMBoxGroup/runtime2.0
e54af4af7a642f34b0e07b5d4096320494fb9ae8
cb9932f5f75d5c6d7889f26d58aee079b4127299
refs/heads/develop
2023-07-07T11:06:10.817093
2023-07-03T06:11:55
2023-07-03T06:11:55
62,622,255
0
12
null
2023-05-23T02:55:00
2016-07-05T09:09:48
Python
UTF-8
Python
false
false
748
py
__init__.py
from server import VDOM_server from application import VDOM_application from session import VDOM_session from log import VDOM_log from request import VDOM_request from response import VDOM_response from tasks import Task # from obsolete_request import VDOM_obsolete_request from .. import packages server = VDOM_serv...
f81cd655babcadec3b45696091a852a56b8ccd92
d6ad504ed2bd7288fc12ba70151301e867d9e2cc
/warm-ups/wall-painting.py
6bfb393272a5dd8097996b588adab4541a26a0b0
[]
no_license
ajorve/pdxcodeguild
571f4440d78d250b2e9457d7331b1401fa81d5b2
91265b69ac0c61485757659508392bd2231e9eb1
refs/heads/master
2022-11-02T11:21:14.736382
2017-03-29T23:00:08
2017-03-29T23:00:08
79,478,400
0
1
null
2022-10-11T01:57:54
2017-01-19T17:42:12
Jupyter Notebook
UTF-8
Python
false
false
564
py
wall-painting.py
""" This is a Multiline Comment. THis is the first thing in the file. AKA 'Module' Docstring. """ def wall_painting(): wall_width = int(input("What is the width of the wall?")) wall_height = int(input("What is the height of the wall?")) gallon_cost = int(input("What is the cost of the gallon")) ...
710a5d33b412c4428482925494eeddacdfb5c14a
de615a630a13603d9c1ea0166af95f2384575002
/Level_5/cio.py
11c0a546608fa2f8c027e00bca568583d7eea89e
[]
no_license
ayushkumar2000/CS641-Modern-Cryptology
2daec1c8bfd5512e5542d42aa98c163ad250a207
164a81fc2915746da5044f651562ccc312c6638a
refs/heads/master
2022-12-27T23:27:48.817769
2020-10-01T17:37:11
2020-10-01T17:37:11
280,795,355
0
2
null
2020-10-01T17:37:12
2020-07-19T05:02:50
TeX
UTF-8
Python
false
false
1,923
py
cio.py
ALPHABET = 'fghijklmnopqrstu' def _byteToChar(bytec): byte = bytec[:] byte.reverse() n = 0 for i in range(8): n += byte[i]*(2**i) return str(chr(n)) def _to4Bit(char): n = ALPHABET.index(char) bi = [] for i in range(4): r = n % 2 n = n//2 bi.append(r) ...
cd8520d93b37279fa8360a4c484f3112abb58235
c385205b2a46afd200c28fd0ee29347b9768c7e9
/PaddleDetection_traffic/ppdet/utils/traffic_eval.py
b3bff906e0fdbc1c8faa3e1ff9902fc0b979ce21
[ "Apache-2.0" ]
permissive
LJoson/2020_BaiduStar_Developer_Competition
4f6fbdfbaa55e2e0a8793946309f1e21586f5f5a
aa796b91e806582dbe70e7e7f52feb50c3f2b753
refs/heads/master
2023-03-14T15:58:44.066174
2021-03-20T04:26:32
2021-03-20T04:26:32
305,881,867
0
0
Apache-2.0
2021-03-20T04:26:33
2020-10-21T02:03:20
Python
UTF-8
Python
false
false
10,358
py
traffic_eval.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # 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 appli...
9123608978699c8579a3eda96bb1f815f748d0b1
d77e181c541a50b66f20969f353e11aacbebbe83
/short/converter.py
1d4e3e4e5969ec01ab7d30c4f711e550f95f2bb0
[]
no_license
SilentCtrl/url-shortener
bd72f7e5a0e7f9a024510b6f3c1f2add9bc51b96
7fe4506f648f4b075a045d68c9f118a7266c174b
refs/heads/master
2020-03-19T07:16:09.152208
2018-09-17T23:25:57
2018-09-17T23:25:57
136,100,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
converter.py
digit_offset = 48 upper_offset = 55 lower_offset = 61 def key_to_short(x): """Converts the integer key to a short url """ url = '' while x > 0: url = int_to_char(x % 62) + url x = x // 62 return url def short_to_key(s): power = 0 sum = 0 for c in s[::-1]: sum +=...
5970dd05b058f8594c4a729b594cd4c31b54458a
2483c57d363f4b1d4aa5d4c937621e53c4400342
/env/Scripts/initialize_HomeBanking_db-script.py
f6bc5453a280d8dd3f2afbfc5322bf8eb11edf43
[]
no_license
candidate856478/BEA
240e9db179ae39e309398fef8787329521d4e272
1b0d364a170874c5fcec31d6a2b97513979379e7
refs/heads/master
2021-08-19T14:39:43.625174
2017-11-26T16:32:05
2017-11-26T16:32:05
101,270,253
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
initialize_HomeBanking_db-script.py
#!C:\env\HomeBanking\env\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'HomeBanking','console_scripts','initialize_HomeBanking_db' __requires__ = 'HomeBanking' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
c46f82924852d14f2df616f7325dfdb273faa302
6dfe2219a65c05a4ccf91c0f2849e3ea1f9abb9f
/model/medicalhistory.py
67ebe013ec6016853dbf7896ec4ef3819a74828a
[ "Apache-2.0" ]
permissive
health20houston/medform.me
5153a4d253a17097e6249a2f6f74b40a4831c072
c4ec032eb7b969320714c3afdaaa40605b282470
refs/heads/master
2021-01-13T02:24:04.717301
2013-03-29T22:42:51
2013-03-29T22:42:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
medicalhistory.py
import config from elixir import * metadata.bind = config.DB_CONNECTION_STRING metadata.bind.echo = True class MedicalHistoryGroup(Entity): using_options(tablename="medicalhistorygroup") groupName = Field(Unicode(50), nullable=False) sortOrder = Field(Integer(), nullable=False, default=0) items = OneToMany("Me...
6129c7c53b55e77109918dca8bd03e99ca781217
9a566cea4c5f4f6a3cdbb58e0bd2367f2e6db232
/mangebook/views.py
e72c7cb573f941332c5ab4104bbe1b91b32c7b8e
[]
no_license
Bogdankozlovskiy/DRF4student
8ebdb0c0989adec2f62f72724aa09220863c3c36
0debf5bb12b61bbf39d3f2f921b9a63e75e1bafa
refs/heads/master
2023-01-10T14:35:40.200925
2020-11-04T18:19:37
2020-11-04T18:19:37
308,827,877
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
views.py
from rest_framework.generics import ListAPIView, CreateAPIView, DestroyAPIView, UpdateAPIView from mangebook.models import Book, Comment from mangebook.serialize import BookSerializerRead, BookSerializerWrite, CommentSerializer class ListBook(ListAPIView): serializer_class = BookSerializerRead queryset = Book...
5960e4a25e033479342ca78c02d512fec0976f7b
e19f4bb182542ea13f8949ca8be394a3537125dd
/cabbie/apps/notice/views.py
ed303b49e07a4bb04d7a7cecf5d0826e66563ba5
[]
no_license
bossjones/cabbie-backend
d548eeb0b7258937ffc760aea54add0f15ca647c
0a27f43fb17d9b9a493a7051f8093376b7f20367
refs/heads/master
2021-01-18T00:24:15.443279
2015-12-31T03:45:43
2015-12-31T03:45:43
61,125,829
1
0
null
2016-06-14T13:39:44
2016-06-14T13:39:42
null
UTF-8
Python
false
false
2,237
py
views.py
# -*- coding: utf-8 -*- import datetime from django.db.models import Q from rest_framework import viewsets from rest_framework.permissions import AllowAny from cabbie.apps.notice.serializers import NoticeSerializer, AppPopupSerializer, AppExplanationSerializer from cabbie.apps.notice.models import Notice, AppPopup, Ap...
dbed3816c3d8db6aed9a0b1074462d1eea719dd2
4a7b414baa834bf9e13b40cd62e10dad6b89a310
/note/KSN.py
ce0af1b388a39ae1e2e59cea2c2dd612a5d01a97
[]
no_license
MrNbaYoh/notehax
0b64879e01af167e7cfd47911dc97cf12ee0c1d1
8e9a5fcda1383fd9724b0477d7d9f968bed4c68d
refs/heads/master
2021-03-27T16:43:35.788193
2017-09-28T20:38:45
2017-09-28T20:38:45
95,589,381
38
9
null
2017-09-28T20:38:46
2017-06-27T18:38:15
Python
UTF-8
Python
false
false
183
py
KSN.py
include("../ropdb/DB.py") import os add_word(0x0) add_word(ROP_OFFSET_KSN + os.path.getsize("../rop/build/rop.bin")) org(0x1C + ROP_OFFSET_KSN) incbin("../rop/build/rop.bin")
3d737d0ee9c3af1f8ebe4c6998ad30fa34f42856
54b08f4f2e84dff980f97708f5cdc23b9744a2d3
/apps/dashboard/views.py
9ed984c1cafdb6b5eae00c20060ed537ef664bb7
[]
no_license
Bthelisma/Express-Yourself
a57b4a059505ed523e719a85f152ff1ab894c486
a9114f7cf0ed52848fab9502c8c92c11ed09b801
refs/heads/master
2021-06-20T05:39:21.474748
2019-08-22T05:36:31
2019-08-22T05:36:31
192,324,617
0
0
null
2021-06-10T21:36:15
2019-06-17T10:21:59
HTML
UTF-8
Python
false
false
492
py
views.py
from django.shortcuts import render from .. login.models import * def user(request): context = { "users" : User.objects.all(), "user_level" : User.objects.get(id = request.session['user_id']) } return render(request, 'dashboard/user.html', context) def admin(request): context = { ...
937d01eaa82cbfe07b20fae9320c554a0960d7b1
b830936f2705734171ddc33e38c657db98d6754b
/20061.py
6621a4c415b56546441222d1707e2f23e093eb57
[]
no_license
endofmovie108/Algo-baekjoon
9ec2893e388c06ad7bcc2ce35f6345a0af1cbdbd
2be94783f1abdd5cc5916527f3e6d964439615cf
refs/heads/main
2023-08-15T11:28:10.097155
2021-10-23T02:25:18
2021-10-23T02:25:18
382,849,347
0
0
null
null
null
null
UTF-8
Python
false
false
4,107
py
20061.py
import sys sys.stdin = open('input.txt', 'rt') BLOCK_0 = 1 BLOCK_1 = 2 BLOCK_2 = 3 N = int(input()) X, Y = 10, 10 # x: 행 , y: 열A GRN = 0 BLU = 1 maps = [[0]*Y for _ in range(X)] dx = [1, 0] dy = [0, 1] def outMaps(x, y): global X, Y if 0<=x<X and 0<=y<Y: return False else: return True def meetBlock(x, y, ...
ebe546794131eddea396bd6b82fbb41aeead4661
c08c5770fcb0c618630deaa1f097f91fabc60522
/linux64/turbine.py
f43a8334d59eea10b171ca0b0739058dd0bd8f14
[]
no_license
qianqisteven/SEUIF97
7205309827435af93ad59172d8bf302548dc1e70
9595f412808b2b3fec2533e4cc12139ca43023b5
refs/heads/master
2021-01-21T06:18:31.911173
2017-02-24T15:50:49
2017-02-24T15:50:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
turbine.py
# -*- coding: utf-8 -*- """ This is a simple sample for seuif.py License: this code is in the public domain Author: Cheng Maohua Email: cmh@seu.edu.cn Last modified: 2016.4.20 """ from seuif97 import * import matplotlib.pyplot as plt import numpy as np p1,t1 = 16, 535 p2,t2 = 3.56,315 h1 = pt2h(p1, t1) s1 = ...
906265182a9776fec5bad41bfc9ee68b36873d1e
a6a421145e68023a028c6229da12dec59d3da8e6
/hello50.2주차과제6.py
56a28adfafa5eceb53dd9933761503c4b7d8ffcf
[]
no_license
DasomJung24/pythonpractice2
afd9abcdfaf5e06a28728cfe1536e04331a46c65
a7965c4f4c9c1363002208d9064b0efecfe4fc89
refs/heads/master
2022-11-30T07:10:07.254673
2020-08-03T05:57:49
2020-08-03T05:57:49
280,533,648
1
0
null
null
null
null
UTF-8
Python
false
false
271
py
hello50.2주차과제6.py
#예외처리 문법을 활용하여 정수가 아닌 숫자를 입력했을때 에러문구가나오도록 작성.(에러문구:정수가아닙니다) try: x = int(input('정수를 입력하세요: ')) print(x) except: print('정수가 아닙니다.')
b7aa99e9e4af3bef4b2b3e7d8ab9bf159a093af6
7d1f032ea9dab81401e2d79202a16c75cdff0fae
/safecastCoastline.py
bbaee11fbd125beaae796038df0941b70967c873
[ "CC0-1.0" ]
permissive
bidouilles/safemaps
9ca343ceaa4b022138ea38d49d7d28b0bcc359d8
be20982bbbb098623c3822ec8f863156419bca2b
refs/heads/master
2020-03-31T12:29:58.976602
2011-11-11T01:52:24
2011-11-11T01:52:24
2,648,158
2
1
null
null
null
null
UTF-8
Python
false
false
3,217
py
safecastCoastline.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # # Copyright (C) 2011 Lionel Bergeret # # ---------------------------------------------------------------- # The contents of this file are distributed under the CC0 license. # See http://creativecommons.org/publicdomain/zero/1.0/ # ----------------------------------------...
aa4d872c6a529d8acf18f1c3b477bc1816ac2887
aa7c82614031d7d7ab3603042b940838fa73771a
/day05/test_adcit.py
7d196bcdd086038257d3a92954bf78f727b93b30
[]
no_license
wswwew/wsw
f79fee4c25d9416417ebecec34fafe1664a00aef
bfc3a1c0c98a3b35fd29b60946d1ada045159c68
refs/heads/master
2020-04-05T04:00:14.933968
2018-11-17T10:02:15
2018-11-17T10:02:15
156,534,607
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
test_adcit.py
adict ={'name':'bob','age':23} print('bob' in adict) print('name'in adict) for key in adict: print('%s:%s'%(key,adict[key])) print('%(name)s:%(age)s'%adict)
ebc050544da69837cc2b8977f347380b94474bab
d2af98a0f12a25dcf554637bc48f00580d2ef56b
/LeukemiaPrediction/leukemia_cnn_supplementary.py
6ad2e7dec09e1bb48c1718939a8146a8fdcae4b1
[]
no_license
naozin555/AI
b249decc531314703040fcc6a6eb9f5f84ea0364
67fa26e4c357711edbff92149c1fdc9d7af511c3
refs/heads/master
2021-03-07T10:33:22.536660
2020-11-04T05:39:44
2020-11-04T05:39:44
246,260,257
0
0
null
null
null
null
UTF-8
Python
false
false
16,806
py
leukemia_cnn_supplementary.py
import os import numpy as np from keras.models import Sequential, Model from keras.layers import Dense, Dropout, Flatten, concatenate from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D, Activation from keras.layers.normalization import BatchNormalization from keras.optimizers import SGD from keras....
ed2f3bbc7eb0a4d8f5ccdb7a12e00cbddab04dd0
7a53cd1f29876eed9e341a42ee2a3cbfda29271e
/fuzzy_matching/dist.py
955836ad9e53494d9cf129526b9ed2d2b8c0d717
[ "Apache-2.0" ]
permissive
INK-USC/procedural-extraction
a5d756e2e783f9b66fe9cbb74f30052448fb0ee5
6b53d8a03bdd24560e96960fd0eddeee9ff8bc6f
refs/heads/master
2020-04-07T14:27:27.099644
2019-06-28T10:47:46
2019-06-28T10:47:46
158,448,240
5
0
null
null
null
null
UTF-8
Python
false
false
884
py
dist.py
_method_adaptors = dict() def register_dist_adaptor(method_name): def decorator(func): _method_adaptors[method_name] = func def wrapper(*args, **kwargs): func(*args, **kwargs) return wrapper return decorator def get_nearest_method(method_name, parser): """ all candi...
837534ebc953dae966154921709398ab2b2e0b33
1d899ee0e1ef31c3c461034eb85d179d00d3d825
/mnelab/utils/__init__.py
88c712dc02932690770abd6a5788e637cbc33768
[ "BSD-3-Clause" ]
permissive
cbrnr/mnelab
ad78582513e7704b45090c103379793e4fe73c74
73f1331b411341408adaa1359a3ee20d8dec07f3
refs/heads/main
2023-07-25T10:06:39.883997
2023-07-16T09:21:04
2023-07-16T09:21:04
95,255,424
208
66
BSD-3-Clause
2023-09-11T07:14:00
2017-06-23T20:48:48
Python
UTF-8
Python
false
false
199
py
__init__.py
# © MNELAB developers # # License: BSD (3-clause) from .dependencies import have from .syntax import PythonHighlighter from .utils import count_locations, image_path, interface_style, natural_sort
29c630b56eb56d91d1e917078138a2bbf562e0bf
e8b232f55e3d03bec68a0fcc86894f77426ac2d4
/python/doc_manifest/get_current_manifest.py
721dbb42b8a36f1c7d9a4530c20d910d39f23d0d
[]
no_license
igorshekhtman/QA
65c4ef1f5b500a3707f9233fe823615415fd64b5
aec9c082657cf96a8f3328abcead49ea16781b37
refs/heads/master
2021-07-06T06:47:56.099346
2017-10-02T03:28:50
2017-10-02T03:28:50
105,490,100
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
get_current_manifest.py
import pyhs2 import sys import datetime i = datetime.datetime.now() # args if len(sys.argv) < 2: print "Run with python version 2.6" print "Requires arg: <orgId>" sys.exit() orgId = sys.argv[1] print "\n\nCreating document external ID manifest for Org ID: " + orgId ## strings fileLine = "%s\...
12baf7dc1d0367b046508cfbbe37aa10538d823d
e989de6807f5a8e63fe31eb4f53419f6eaa03965
/Array/Sums/P560_SubarraySumEqualsK.py
181b66d4cdde39ff63dc28c1e86b24cbbcd1db58
[]
no_license
sxu11/Algorithm_Design
7babfed8a81408b47cfb375dd396ec5926957d93
774cf38ac680aebd79eba1f9ef7ffdf8f94633fc
refs/heads/master
2021-06-05T03:59:29.068629
2021-05-22T02:40:08
2021-05-22T02:40:08
155,038,317
0
0
null
null
null
null
UTF-8
Python
false
false
2,705
py
P560_SubarraySumEqualsK.py
''' Question: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 1000] and the range of the in...
1a7bd2507db64793902d12ddb3b474358ef6c357
8f415891f30ac71bd336bb9400db6db4fe850159
/tests/examples/projects/BicycleDynamical/resources/bicycledynamical.py
3af401a95e223b052102617162cb721e41392f3c
[]
no_license
tongue01/pyfmu
a078bd07d383cc4a8dd14db7ee5f3feb6b7fe0e1
1082811cf4db3e67eb28c0e457a97d331daabd99
refs/heads/master
2021-04-02T02:04:29.917709
2020-03-18T12:40:58
2020-03-18T12:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
bicycledynamical.py
from pyfmu.fmi2slave import Fmi2Slave from pyfmu.fmi2types import Fmi2Causality, Fmi2Variability, Fmi2DataTypes class BicycleDynamical(Fmi2Slave): def __init__(self): author = "" modelName = "BicycleDynamical" description = "" super().__init__( mod...
229ec7679a83cffbdcae1c44032ea5b06c516445
7120a5f8dec18274e3def0d173085b738b20a28e
/qprop_parsed/FortranToPython.py
ad881c72f8d2a0e386ee3a6353da3a72ce3add4c
[]
no_license
n89sharma/qprop
a97ced7ad9152e25f1a4f9c9dff9ee5c6dd40463
fbf87bce7603768b28c5b355dd5fb1bf9cacaa17
refs/heads/master
2021-01-25T04:37:38.007891
2018-12-03T19:38:04
2018-12-03T19:38:04
93,458,501
0
0
null
null
null
null
UTF-8
Python
false
false
22,663
py
FortranToPython.py
import re import sys def beginningOfLoopOrConditional(lineContent): return re.match(r'\bPROGRAM\b', lineContent) or\ re.match(r'\bSUBROUTINE\b', lineContent) or\ re.match(r'\bDO\b', lineContent) or\ re.match(r'\bIF\b.*\bTHEN\b', lineContent) or\ re.match(r'\bFUNCTIO...
b24156d20b38b467b8485781c89be176bb09c9fc
39fba7945dd692c2da7311f32d703559d667ec98
/dags/variables.py
147bf09bf3d7b05a39e42e7c52cc2ee2201bd97e
[ "Apache-2.0" ]
permissive
shaunacademic1/docker-airflow
81789b790a4b60e80049885d90a7441be8a326ba
3953be0be67a302395abc46236aae552651297d8
refs/heads/master
2020-12-30T03:51:18.954618
2020-02-07T05:38:04
2020-02-07T05:38:04
238,850,636
0
0
null
2020-02-07T05:28:15
2020-02-07T05:28:15
null
UTF-8
Python
false
false
85
py
variables.py
from airflow.models import Variable START_DATE = Variable.get('SECRET__START_DATE')
d113f730b640d123b26214870d4d214c2fa1734f
e9fae355348c6f4116dadaf96a5f276f598279fa
/app.py
9ed621e3b7d9a4c79bc2381cdaa6a8c3f24ebb43
[]
no_license
itucsdb1928/itucsdb1928_Old
65b9d31377d7d779764c5ad803749b5be2aea11f
809781ea1c59105a15d001d53ba4ea0c867ad89b
refs/heads/master
2020-08-13T23:51:04.424649
2019-12-04T19:16:38
2019-12-04T19:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,682
py
app.py
from flask import Flask, redirect, render_template,flash,url_for,current_app,request from forms import RegistrationForm,LoginForm from datetime import datetime from urllib.parse import urlparse import os import psycopg2 as dbapi2 from arrangement import Database from datetime import date app = Flask(__name__) app.co...
db0b6b186f0f099aba45b75874b98288400ac312
208fe20752a8223ebe51832b4eccdd132cd6e8fc
/policy/migrations/0001_initial.py
862dea5a104de1df186bb724569f17ba71d42a51
[]
no_license
sakura09/PolicyWeb
1ba90f72e3f4b321e3396a2468becd21e6a1140d
f0610865991c7b4036488f5a76b99e9a5bacc7b3
refs/heads/master
2020-11-28T06:59:28.150293
2020-01-13T08:26:10
2020-01-13T08:26:10
229,735,814
0
0
null
null
null
null
UTF-8
Python
false
false
2,113
py
0001_initial.py
# Generated by Django 3.0.1 on 2020-01-03 07:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='talentType', fields=[ ...
b4dd3157df865bc4b71fb989d3b469d1be737e4a
ecb984cc7604205350a32d1dae4137eacb42086a
/feedback_plotting.py
950cf93b02699ecc208715af1e348e08cf33e9aa
[]
no_license
laurennc/BmoreCGM
1c130cf7b56c10efe9ba4a12d3d6bb7d08b3c462
9d43bac1255c302b573f5528e3a3b3da67eeccfb
refs/heads/master
2020-09-25T21:47:53.092015
2019-09-09T02:53:43
2019-09-09T02:53:43
66,972,646
0
0
null
null
null
null
UTF-8
Python
false
false
17,625
py
feedback_plotting.py
import matplotlib matplotlib.use('Agg') import yt import numpy as np import matplotlib.pyplot as plt from yt.analysis_modules.star_analysis.api import StarFormationRate from yt.data_objects.particle_filters import add_particle_filter import os from radial_data_nozeros import * import trident import cPickle def fdbk_r...
9b7cdc10fe69c402702ee6822c011053d9ee1cc4
a9f3de552ff0c7bbe2a85a383aa291daa268055f
/myproject/imagegallery/urls.py
2ea6d0f6a1f93e56af863d5861913784ded09386
[]
no_license
JasonEb/EHImageGallery
4412ed8855743c2c2e2806c08324cead09482aa4
a8dce1b68d92ca992d3815d9fe08a11599fb8477
refs/heads/master
2021-05-28T06:39:42.888881
2015-02-07T01:21:51
2015-02-07T01:21:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
urls.py
from django.conf.urls import patterns, url from imagegallery import views urlpatterns = patterns('', url(r'^testgallery/$', views.index, name = "test-gallery") # ex: /gallery/15_wildcostume url(r'/gallery/^(?P<base_name>)', views.thumbnails, name='thumbnails'), # ex: /gallery/15_wildcostume/01 url...
c40abb66cac3c79487c597d22359a18ed86e243e
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/tests/models/gpt_neo/test_modeling_flax_gpt_neo.py
58574a8b1da3ead1c85ab8452e1c17e618624540
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
14,723
py
test_modeling_flax_gpt_neo.py
# Copyright 2021 The HuggingFace Team. All rights reserved. # # 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 applicabl...
d81d186fa521d3f376b4174a279cac497e6e44fa
b1bfe80be3955977af7670a69db9fdae36a6ffe6
/Tasks 1-99/Task 07/Task-7.py
365589434cfaf96e0a97f82867db4e8e41870896
[]
no_license
WillGreen98/Project-Euler
e0dc52aa57c6b1d5f2be9be51cf1b76a722a8420
933caf03a1f2c191749445bd3c481117ce510b49
refs/heads/master
2021-06-05T04:33:34.911902
2018-09-02T07:09:03
2018-09-02T07:09:03
108,697,100
0
1
null
2021-04-29T19:18:31
2017-10-29T01:44:47
Python
UTF-8
Python
false
false
600
py
Task-7.py
# Task 7 - Python # 10001st Prime import math import time primes = [] def is_prime(n): # Task 3 lambda done correctly accoring to PEP8 if n % 2 == 0 and n > 2: return False return all(n % i for i in range(3, int(math.sqrt(n)) + 1, 2)) def prime(n): i = 2 while n > 0: if is_prime(i): ...
96cb389bc8c1adc066dd09611dd826104d1218a4
fa9cc9cc469a3f0c5bdc0bc4e562dbbd3ff7e465
/host/models/FileNode.py
5f00004c091a2a127a50007a3341a579aa6952ae
[ "MIT" ]
permissive
zadjii/nebula
ddd86ea30791b46b2a1aeb000ae5dfea9a496168
50c4ec019c9f7eb15fe105a6c53a8a12880e281c
refs/heads/master
2021-01-24T17:08:30.607634
2018-09-18T00:35:36
2018-09-18T00:35:36
36,847,552
2
1
null
null
null
null
UTF-8
Python
false
false
1,228
py
FileNode.py
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey, Table from sqlalchemy.orm import relationship, backref from host.models import nebs_base as base import os __author__ = 'Mike' class FileNode(base): __tablename__ = 'filenode' id = Column(Integer, primary_key=True) parent_id = Column(I...
c1dcffa15957b4c002453207235fc3bd4efafcab
06436106d693585de32ea99a9dcf1343968de711
/management/forms.py
0ca3cafee4b64707441077e9f6b2726b0153b2ec
[]
no_license
gevendra45/Librarymangement
99e217fce4f9a0073a1e751d562a77845986b470
fa31218ab24e5663090807f9623ad8c86664bd89
refs/heads/master
2023-05-01T12:15:26.437223
2021-05-25T05:16:53
2021-05-25T05:16:53
369,998,131
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
forms.py
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class UserRegisterForm(UserCreationForm): """ Formdata from user registration form is fetched and validated """ first_name = forms.CharField(max_length=30, required=False) ...
a9a3b53e366f7359863fb8af98cf633e24bea51a
c7e0c86a24521a13c3b06c73244e9f5854f47284
/zoo/evaluation/metrics/offroad/offroad_data_parse.py
e4c2323bba000663255827d0b28a72d54df5e3a4
[ "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "CC-BY-NC-4.0", "GPL-1.0-or-later", "LicenseRef-scancode-generic-exception", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.0-or-later", "GPL-3.0-or-later", "BSD-3-Clause", "MIT", "LGPL-...
permissive
huawei-noah/SMARTS
243d1f1fa4d3afe52a1dd8f7c6c500054d4a1a97
2ae8bd76a0b6e4da5699629cec0fefa5aa47ce67
refs/heads/master
2023-08-31T05:06:29.064270
2023-08-28T23:11:31
2023-08-28T23:11:31
301,903,883
824
212
MIT
2023-08-08T14:52:00
2020-10-07T02:11:23
Python
UTF-8
Python
false
false
1,578
py
offroad_data_parse.py
from zoo.evaluation.metrics.utils import ( get_scenario_agents_data, save_evaluation_result_to_json, ) class OffroadEvaluation: def __init__(self, scenarios_data_path, result_path, agent_name_list): self.scenarios_data_path = scenarios_data_path self.result_path = result_path self....
99caf65becef910bed8adc48e8532c1032ec6a18
91c8ea87e879ec6f4f7234c9846d48af756ae33e
/visualize.py
39033feceac21352cacdf8a31a6ead5afa1f7993
[]
no_license
akshayswaminathan/bolivia
92ab4c2a77b93d8e512bbb1e22de3f754b127a0f
56c3b862d5a45201638713300f34cb05f8fe2b6b
refs/heads/master
2020-03-09T13:43:24.437354
2018-04-08T20:59:59
2018-04-08T20:59:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
visualize.py
import csv import numpy as np import matplotlib.pyplot as plt import random toread = ["Fake_Binary_Data.csv"] alldata = {} current_person = None for r in toread: with open(r, 'rt') as csvfile: spamreader = csv.reader(csvfile, delimiter=',', quotechar='|') binaryqs = {} for row in spamreader: if ro...
ded62f6cc63ea46e97da6d6244b9b407440aa189
acbc8ec77ba06afa19b286c16618989d5c07bfaa
/src/main.py
7c6eab710d9362e28f632b21c3981c56dc445a49
[]
no_license
ZReKoJ/space-planification
a92ba1353a7d105c51c4c1283a5914f342ccc396
7c87f1f8f8f9c796bcc569f2c6a6d50adc46bb20
refs/heads/main
2023-01-10T00:21:07.062362
2020-11-15T17:58:24
2020-11-15T17:58:24
306,161,854
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
main.py
import numpy as np from cv2 import cv2 import os RUTA_BASE = os.path.abspath(os.path.join(os.getcwd(), '..')) def cargar_histogramas(path): dict = {} for file in os.listdir(path): if file.endswith(".csv"): dict[file[:-4]] = np.genfromtxt(os.path.abspath(os.path.join(path, file)), delimiter...
f963b7aa8604960bf443995ff4f0378155d8bf47
4be445064295f804fd86dc90c8a1127eee2d6299
/index_method_on_list.py
f692e0156e3df7325fde5656cf77af6b77b7c725
[]
no_license
pydevjason/Python-VS-code
7fe81b0b33339acee3cd7ca403e1a4719c9342d1
9a06779fbac03a0a6b294e1c425bfb8fb805f4d2
refs/heads/master
2023-01-05T18:29:49.983084
2020-10-25T21:32:45
2020-10-25T21:32:45
283,069,154
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
index_method_on_list.py
# returns the first index position of a given element in a list. stickers = ["Sass", "Google", "Bitcoin", "Slack", "Perl", "Google"] print(stickers) print() print(stickers.index("Google")) print(stickers.index("Perl")) print() if "nginx" in stickers: print(stickers.index("nginx")) else: print(False) ...
e8b8db8f1adbd9fd304d0587b674295ffb5d0df4
50d084207f2563d409632cb4d8c8d92f08cf9dd1
/hapax_legomenons.py
944dcdfb483d0d29a0d38bbb03a0daa4932bc159
[]
no_license
2RMalinowski/algorithms-and-katas
d096eeb26505fc3ffe83480b9d96271421ee71b1
a5f8a6df5698f82f0b6d1ba8214b27b804356036
refs/heads/master
2020-04-17T18:04:15.112430
2019-03-22T09:32:11
2019-03-22T09:32:11
166,810,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
hapax_legomenons.py
""" An hapax legomenon (often abbreviated to) is a word which occurs only once in either the written record of a language, the works of an author, or in a single text. Define a function that given the file name of a text will return all its hapaxes. Make sure your program ignores capitalization. """ def words_from(wo...
e2194eb352f163ac7bb7bc34e526a1c9fc92227f
403a317299f95c13adfee06bfebb4baec11d00ab
/hello.py
3e2c643baf991ff6c4750d4b4fd79dcdb7316ca2
[]
no_license
jxtsly111/python-work
6b361b6cfca4d6b219836b08855f95b363191124
7d6bd2b222228be39ceaffe8226668ee4da58bd3
refs/heads/main
2023-06-24T16:38:03.676313
2021-07-21T17:46:54
2021-07-21T17:46:54
388,206,215
1
0
null
null
null
null
UTF-8
Python
false
false
2,923
py
hello.py
# print("hello world") # # integer # a=2 # print(a) # b=9223720936737 # print(b) # # Floating point # pi = 3.14 # print(pi) # # string # c = "a" # print(c) # name = "john Doe" # print(name) # #boolean # q = True # print(q) # # Null data type # x = None # print(x) # a = 2 # # type # print(type(a)) # # assigning multiple...
8401b2ff139e07d716583725c28efbe309c7a73c
6bd0136f0f115f54ec6a840924a1032a98b8ab62
/gui.py
85c57c480516f96ef5d10817dd8865eaa801bf23
[]
no_license
feuera/pymap
e0dc1f0c31d54251544879deea968f4334bba06c
51e2c4fc10dace61377fe35f163d7611f0296886
refs/heads/master
2021-01-11T15:37:19.022789
2018-09-06T14:46:22
2018-09-06T14:46:22
79,902,562
0
0
null
null
null
null
UTF-8
Python
false
false
10,233
py
gui.py
#!/usr/bin/env python2 from PyQt5.QtCore import QObject, pyqtSlot, QUrl, QDir, QDateTime from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtWebKit import QWebSettings from PyQt5.QtWidgets import QMainWindow, QFileSystemModel, QAbstractItemView # from fitparse import Activity from PyQt5 import uic #...
a1912ffe7b983cce6c3ec5119d89a01a0a747635
fd02e8924ba325f2a62bbf97e460740a65559c74
/PythonStart/0722Python/循环.py
6e97b5c0cfd955e8823bf5ef1a968b1dc63d9ef4
[]
no_license
ShiJingChao/Python-
51ee62f7f39e0d570bdd853794c028020ca2dbc2
26bc75c1981a1ffe1b554068c3d78455392cc7b2
refs/heads/master
2020-07-08T00:05:16.532383
2019-10-14T15:19:49
2019-10-14T15:19:49
203,512,684
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
循环.py
# for i in range(1, 1001): # print("第%d" % i, "次hello word", end=',') # i=1 # while i < 100: # print(i, end=" ") # i += 1 a = 1100 b = 2255 print(a & b) c = 0b100011001111 print(a&c)
c3aff99e18c489dabb8048a7b0103279a105e5cd
54eac2adec8baf407b7cdc0563c0e7ea85922aeb
/Core/DISET/private/Transports/SSLTransport.py
60ec902ab0d52dc21ee0aab85bcf75b683241ea3
[]
no_license
madamFZU/DIRAC
0052d1857e3e806158a54df716de2678f66f6967
1a6a337f7049067c0046cfd3c64f35aea987477d
refs/heads/master
2021-01-19T09:27:14.541246
2015-06-22T15:58:49
2015-06-22T15:58:49
27,924,499
0
0
null
null
null
null
UTF-8
Python
false
false
9,393
py
SSLTransport.py
# $HeadURL$ __RCSID__ = "$Id$" import os import types import time import GSI from DIRAC.Core.Utilities.LockRing import LockRing from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK from DIRAC.Core.DISET.private.Transports.BaseTransport import BaseTransport from DIRAC.FrameworkSystem.Client.Logger import gLogger...
5160611bf1f80393bd17fd352cc911971da98ecf
e9bf5fb440305c7b17935438fd515ca2541babc4
/repeatarray.py
09ff6d4239fec30a0b4f4f7c7221ad739875107a
[]
no_license
jyothiesai/guvij
748518673509d4849803fc22b03cd6b2b0b3392f
fdcd29f5548c12095f259ff2f74024317787b110
refs/heads/master
2020-04-16T01:42:44.848569
2019-08-07T13:24:44
2019-08-07T13:24:44
165,183,822
0
1
null
null
null
null
UTF-8
Python
false
false
117
py
repeatarray.py
#jyothi1 word=raw_input() list=[] for i in word: if i not in list: list.append(i) else: break print(len(list))
2c74229684b864f12a36ab8f173389678f8aaa6b
f95d2646f8428cceed98681f8ed2407d4f044941
/numpydemo/02/day02/demo09_semilogy.py
dc03de782fcd5bf79c0848b157fbd6141836256a
[]
no_license
q2806060/python-note
014e1458dcfa896f2749c7ebce68b2bbe31a3bf8
fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983
refs/heads/master
2020-08-18T01:12:31.227654
2019-10-17T07:40:40
2019-10-17T07:40:40
215,731,114
1
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
demo09_semilogy.py
""" demo09_semilogy.py 半对数坐标系 """ import matplotlib.pyplot as mp mp.figure('Grid Line', facecolor='lightgray') mp.subplot(1, 2, 1) mp.title('Grid Line', fontsize=16) mp.xlabel('X', fontsize=12) mp.ylabel('Y', fontsize=12) mp.tick_params(labelsize=10) # 绘制刻度网格线 ax = mp.gca() ax.xaxis.set_major_locator(mp.MultipleLocat...
36f260a0696fc12b89489322b544b077e961d3d8
57d5fd53191394c9f7587226dc6468d9d0f7d1c4
/solutions/problem_070.py
82f62a2f2809a2cdd0b894e69a3ccdc2ca5929db
[]
no_license
dmendelsohn/project_euler
05143bc16a3a74ede8a77b8e842cb1ee0c338477
0327d1f8f021475fe0d4d435ecde52551a03fa7b
refs/heads/master
2021-04-29T05:51:22.673091
2017-05-29T01:59:00
2017-05-29T01:59:00
78,003,413
1
0
null
null
null
null
UTF-8
Python
false
false
393
py
problem_070.py
import utils import fast import array # Find the value of n, 1 < n < 10^7, for which phi(n) is a permutation of n and the ratio n/phi(n) produces a minimum. def compute(verbose=False): MAX = 10**7 answer = fast.p70_helper() text = "The n for which phi(n) is a permutation of n and n/phi(n) is minimized" ...
9c71c827db32e4f5447eeacab444a2dd54a5f4c6
2a131dc1f458ee17bf737288d3e3ebb968600486
/courses/handlers.py
dd87a284913ba6151b53dc0fe5c38bc0ee20797e
[]
no_license
jonejone/golfstats
f0f535e29281525767c4123d158b9526a06fb330
292f198f247357d1ffb9c95391070355af2a5e31
refs/heads/master
2020-12-25T00:07:10.124803
2012-03-12T21:28:55
2012-03-12T21:28:55
2,373,844
1
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
handlers.py
from piston.handler import BaseHandler from piston.utils import rc from datetime import datetime from courses.models import Course, CourseHole class CourseHandler(BaseHandler): allowed_methods = ("GET",) model = Course fields = ("id", "name", ) def read(self, req, pk=None): base = Course.ob...
24bbbe432b6ecb3f1b3c8bae17a7e25da32fbd1b
1a9290186be813a0a4855e3202b47faf52e410d4
/check_score.py
3cb2727d0c1af0c6829408a243631685adfbf191
[]
no_license
sakamoto777/hotentry-sa
a8e60bdb56891fb391b40ea51aba70fd8b6ef7e4
4e86690267cf281077f01bc3afbcbaa6188f301b
refs/heads/master
2020-03-09T06:14:59.371348
2018-04-08T11:30:51
2018-04-08T11:30:51
128,634,224
11
0
null
null
null
null
UTF-8
Python
false
false
2,219
py
check_score.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from google.appengine.api import urlfetch import json import datetime import datastores def call_hatebuapi(url): hatebuapi_url = 'http://b.hatena.ne.jp/entry/jsonlite/' + url fetch_result = urlfetch.fetch(hatebuapi_url,deadline=60) if fetch_result.status_c...
1b10921b4a0c2138d17a1a81b57fb837d5293e3e
e605a104ef178fd6758c363f0f3f4fc2771708df
/main.py
624704cb42c9401c4b3b18a1d09c7352fe0da787
[]
no_license
data-science-z/hello-world
5b666dba658d6ad2a219c67d29e74ad76d59ffdd
3380f6947e2dbd62835140d00c4313adb283d4c8
refs/heads/master
2022-03-23T23:41:21.884791
2022-02-08T03:05:21
2022-02-08T03:05:21
134,647,355
0
0
null
2022-02-08T03:05:21
2018-05-24T01:58:21
Python
UTF-8
Python
false
false
154
py
main.py
print("work hard new year 2022!") print("happy everyday") print("make more money 2022") print("police") print("bingdundun") print("test") print("rename")
6dd6652e8a06263a2b6b861e4ebbdb6482425387
98ad223ed5c6192d0ff53675f14a79956df2a0a6
/EXapps/migrations/0002_auto_20200404_2148.py
38356a3470a96848acf811bf19a905a9ef8e0292
[]
no_license
OladimejiDMJ/Excursion_API
c95cac5fb7338fd475ad92bcd3878034faee3f44
afd425f53da678b6af0f8084e7024434e55ef422
refs/heads/master
2022-08-26T15:25:57.726694
2020-05-27T12:23:23
2020-05-27T12:23:23
267,102,407
0
0
null
null
null
null
UTF-8
Python
false
false
2,758
py
0002_auto_20200404_2148.py
# Generated by Django 2.2.6 on 2020-04-04 20:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('EXapps', '0001_initial'), ] operations = [ migrations.AlterField( model_name='apidata', name='activityLevel', ...
f511ae1eddcf20700b7bd87bc1715efa19cc6d28
9832d2a97465741f418cf5a18d9d5ca5aa9ca700
/code/featurer.py
374804b25c5b274b6982c699686cce2ada849b86
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
BlancRay/SeqFace
2aed4f5a218a962438cad6258e0381ee237ea096
72bdeb1d5f463df9c8c164466f3a7125421b975c
refs/heads/master
2020-03-30T03:24:58.399513
2018-09-28T10:43:19
2018-09-28T10:43:19
150,687,950
0
0
MIT
2018-09-28T04:59:04
2018-09-28T04:59:04
null
UTF-8
Python
false
false
3,597
py
featurer.py
#!/usr/bin/env python # coding: utf-8 # author: BlancRay caffe_dir = "/root/image_server/lib/caffe/python/" import os import sys sys.path.insert(0, caffe_dir) import util import numpy as np import caffe class Featurer(): def __init__(self, deploy_prototxt, model_file, mean_file=None, ratio_file=None, label_fil...
eda2efc47a266465d244f450a6e78b52c3af5fe9
0767c320de0584ae3b3bb80a19cda3df5681281b
/setup.py
b10cd363b33cb8a6bae7b3ae533196876d998fa1
[]
no_license
ksbg/faceorienter
37c9e3c0ad04dc646ac94193d99970516307b4fd
e6681f317ddd7036ff2a2b462037bf2e98f29c75
refs/heads/master
2020-03-27T04:28:30.542618
2018-08-25T08:24:35
2018-08-25T08:24:35
145,943,267
6
0
null
null
null
null
UTF-8
Python
false
false
705
py
setup.py
from setuptools import setup with open('requirements.txt', 'r') as req_file: requirements = req_file.readlines() setup( name='faceorienter', version='0.1', url='https://github.com/ksbg/faceorienter', author='Kevin Baumgarten', author_email='kevin@ksbg.io', description='A small proof of con...
42fe57e95b73344cf8b5035937c434c1d1279024
357b5521fbed915656a9c42110965cdb6b83eb48
/Association rules 2.py
a8e54ccda824db8a14730437ce98848bc54822a2
[]
no_license
m-sahana/Association-Rules
65e967f91a1557cf5e725bb62cd8b8283245790b
797a03447ac16fcff21377cf4f0af9fbe1510dfe
refs/heads/main
2023-04-02T03:37:31.485242
2021-04-07T15:41:11
2021-04-07T15:41:11
355,597,915
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
Association rules 2.py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd from mlxtend.frequent_patterns import apriori,association_rules # In[4]: movies_1=pd.read_csv("D:\projects\Association rules\my_movies.csv") # In[5]: movies_1.head() # In[14]: movies=movies_1.iloc[:,5:15] # In[15]: movies # In[38]: ...
0596583022fa76e44189b9cc5aae9b93162b8e20
385b08994583ccd3bf234532490b271e52033f90
/Runtime/NewTypeSystem.py
1e84fc642d3d27b6dcbfb10a786c46cbad10a7f4
[]
no_license
BrianRickardMason/Piewik
801e992fa90e869aeae8bfaca67a91d69d667db1
79da04f8f4ce5b2ac17c5d434dac1d846a3e4278
refs/heads/master
2021-01-10T19:40:18.059287
2012-09-04T03:18:11
2012-09-04T03:18:11
5,131,871
2
0
null
null
null
null
UTF-8
Python
false
false
21,815
py
NewTypeSystem.py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Piewik Project. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, th...
1f4c5ef2a859942cf0c6e353cc202dd27d327987
508b9f95818b20a6ada796824f01b1991184067e
/calculate_auc.py
404e20ba527001212856034c562d1f223f350d2d
[]
no_license
buptjz/TOOL
4ce44d6ef1f53d963cb2ecb25eecbabc0e2e5a36
e32e0bb311d16010731289628cadf4e835972aa4
refs/heads/master
2021-01-18T14:31:35.985150
2014-09-08T15:40:03
2014-09-08T15:40:03
22,799,187
1
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
calculate_auc.py
#http://blog.csdn.net/cserchen/article/details/7535182 ''' 在广告中,根据CTR预测的高低,将最有可能被用户点击的广告按顺序依次展现, 根据点击反馈,可以生成ROC曲线(y方向,点击+1;x方向,未点击+1), 很明显,用户点击的越多,被点击的广告排序越靠前,ROC曲线下的面积越大, 即AUC越大,则表明广告投放的效果越好,也就是CTR预测越准确 ''' def scoreClickAUC(num_clicks, num_impressions, predicted_ctr): """ Calculates the area under the ROC cur...
8a686a246e57256c26e342eedb7e27e550354484
dbf35ec4f640799ffa25d0d30c002fb4e7c82efa
/crystal/defects/__init__.py
3e8505fcdb65aa54a62a434dde50bae8d61074fb
[]
no_license
Shibu778/LaDa
8962553c2f62882960b402f1a0761a9b80410ca6
9c0ab667f94dc4629404a8ec99cbeaa323f0c8b3
refs/heads/master
2023-03-16T19:58:44.411851
2013-06-16T10:59:11
2013-06-16T10:59:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
40,010
py
__init__.py
""" Point-defect helper functions. """ __docformat__ = "restructuredtext en" __all__ = [ 'inequivalent_sites', 'vacancy', 'substitution', 'charged_states', \ 'band_filling', 'potential_alignment', 'charge_corrections', \ 'magmom', 'low_spin_states', 'high_spin_states', 'magname', \ ...
0c9b12307a59d09328ea45b2402e57020172a5a9
3a7eeceb14859c4cf9f612f0c04e9c5efafb7191
/solutions/selections/exercise_06.py
c45e9d3128ca1a3e9ef05d7e909dc1c5a4ebba84
[]
no_license
cs50puyo/check50ap
ebd998fcbca8489a89dc71e40ca3fcec014c8011
6fd220c5e8434e84e2cd90af178fb6ca5b705659
refs/heads/master
2020-03-10T02:00:58.819373
2018-05-02T18:31:58
2018-05-02T18:31:58
129,125,283
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
exercise_06.py
import random # generate a number betwen 1 and 13 inclusive for the rank random_rank = random.randrange(1, 14) # generate a number betwen 0 and 3 inclusive for the suit random_suit = random.randrange(4) if random_rank == 1: rank = 'Ace' elif 2 <= random_rank <= 10: rank = str(random_rank) elif random_rank == ...
cc667f341442a0baf41011a49b63a85155eb24d3
049132a78040480f12fef99066685262f9560e1c
/cluster/clusterS.py
c54b712ad63abf59a15f1895233b4a5a8f85040c
[ "MIT" ]
permissive
ansin218/reddit-comments-data-analysis
d6f5d588ec9d507f8e60081a58e03e1d081eae96
bf2c3980d36000c895b71337997ea15b03cce7ec
refs/heads/master
2021-01-11T10:03:31.809264
2017-11-22T14:08:54
2017-11-22T14:08:54
77,864,313
7
1
null
null
null
null
UTF-8
Python
false
false
7,920
py
clusterS.py
import execnet import nltk import clusterC import os import cPickle as pickle from collections import Counter import numpy as np import time import help_functions as hp from sklearn.cluster import MiniBatchKMeans, DBSCAN, KMeans from scipy.spatial.distance import cdist, pdist from sklearn import cluster, metrics from ...
74e2abaa86c9e9d07c1f02351c5939151a610a6e
0bdc5a3c8ea6bd65d4dd5022c1158775f4de4695
/vocabulary_generator.py
c7715752ce265374539a154ca2dfb5f7819ec3e2
[]
no_license
PandrPi/TextGenTool
dadc3a00884a9d533d11b4d7ac42cfee2a0fc445
452775ef1fa746b19b3d5d3c3fa8fcd9f331e88b
refs/heads/master
2023-05-14T17:02:08.854803
2021-06-06T18:02:52
2021-06-06T18:02:52
347,430,694
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
vocabulary_generator.py
import json import re import time import easygui from tqdm import tqdm from helpers import helper clean_pattern1 = re.compile(r"([^'’a-zA-Z- ])|([\s]{2,})") clean_pattern2 = re.compile(r"([\s]+)") def get_formatted_string(text: str) -> str: result = re.sub(clean_pattern1, ' ', text.lower()) # replace unwanted...
8e77e159b0a78bfcb7371158980d7abfb2495168
5a43ca55ff514547d110d66003c3be1f635e4595
/Search/SearchAPI/src/app.py
41324a3a514ffd206da5c58d74f41dcfa45a1a99
[]
no_license
igemsoftware2020/SYSU-Software
8210340c1a4597cceb9974907a4886df09ab5b7e
a7a5c331203684e2689822d3cdcb048ab0a124a8
refs/heads/master
2023-01-11T20:25:09.322227
2020-11-15T05:40:43
2020-11-15T05:40:43
302,128,324
3
1
null
2020-11-15T05:40:44
2020-10-07T18:38:30
C++
UTF-8
Python
false
false
2,604
py
app.py
from flask import Flask, jsonify, request from typing import Dict, Tuple, List import dao import os import json from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route('/api/element/totalsize', methods=['GET']) def totalsize(): return dao.getTotalSize() @app.route('/api/element/elementlist/offse...
6590b3f482538795244e147cb57926443bdec063
5d4b77711ec42dff386724a46f346133e1ab8bc0
/scripts/question_upload.py
8491ee2a98c0b584828be4b2745a5263fdcc8094
[]
no_license
amardeepsoni/BDA_Portal
a50539e1833fcd29ffc8af2eed7319bbc61a5f4a
00142c1cbc3b5c15d8d6b90797f547b7127da6f8
refs/heads/master
2023-01-12T20:30:56.877792
2020-03-31T13:46:37
2020-03-31T13:46:37
246,495,408
0
0
null
2022-12-27T15:36:51
2020-03-11T06:45:25
PHP
UTF-8
Python
false
false
17,608
py
question_upload.py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import pymysql.cursors import sys # In[2]: def get_data(file_name): path = '' data_frame = pd.read_csv(path + file_name) return data_frame # In[3]: # Connect to the database connection = pymysql.connect(host='intellifydb.cgurwbqxi...
6d8409c77c0091ebdddc83060b39305e5fc8e936
6127f45e641a2fca33f205a21585d3191600b565
/src/tests/analyses_tests/test_collection_analysis_same_album_in_directory.py
870f672982893521e05bd596e5dbec44280709c5
[]
no_license
KieranEMiller/media-foreman
9e6d6f8a4816641a405f899b965e9c6ae68ca9d2
4084a72f65b49d0a69b6df8a01bbc37dc4dfdb2e
refs/heads/master
2022-07-06T14:06:25.953514
2022-07-02T01:50:28
2022-07-02T01:50:28
230,265,158
0
0
null
null
null
null
UTF-8
Python
false
false
6,102
py
test_collection_analysis_same_album_in_directory.py
import unittest from tests.test_base_fs import TestBaseFs from mediaforeman.media_file import MediaFile from mediaforeman.media_collection import MediaCollection from mediaforeman.analyses.analysis_type import AnalysisType from mediaforeman.analyses.analysis_issue_property_invalid import AnalysisIssuePropertyInval...
ee6a762f5eeca0ccc9b962ae36e9a4e68292b233
32f5a0787edaecbc36451f6ca5fc0c035b1ea116
/Level2/ejercicio3.py
0276c02cd5e9a0a6b3ab8a20f095afb1289739f3
[]
no_license
rsaravia/PythonBairesDevBootcamp
8f19b0936589b1be3352772639e80c96707e8716
ad33e20f8d5fe66e90493ec210364f008f50f093
refs/heads/main
2023-07-26T11:21:51.835511
2021-09-01T17:27:46
2021-09-01T17:27:46
402,135,085
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
ejercicio3.py
#3. Write a Python program that takes user input and runs it as a command using the os module. import os #Intro command by user as a text command = input("Introduce command: ") os.system(command)
e6387eaf6fa9439e995c140fb2748cc121217c0b
ac34bccdc42fc21d629ca607321ca3cf3ffdfa12
/accounts/models.py
b8593d7fdfe52aa8d60d8ceda8bc5e5c19edd3fe
[]
no_license
krismwas/ecomm
d2e30e4ef43ee2362d6d713add005b51eae28e22
f50745f6fe8f0b3d8e36b34a35760d27f17e1a14
refs/heads/main
2023-06-09T01:41:56.794251
2021-06-29T14:57:13
2021-06-29T14:57:13
376,731,411
0
0
null
null
null
null
UTF-8
Python
false
false
5,068
py
models.py
from django.db import models from django.conf import settings from django.db.models.signals import pre_save, post_save from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.template.loader import get_template from django.core.mail import send_mail from ecomm_home.utils import unique_key_...
ae90ccc95dc116ec4398f2e7f66d4692d7fa6c3d
229d7845e42fc8d62a17502771f2d8174650f7df
/microservice_1/app.py
532bf44d0a6bd1e3cc1ed02490127670fe5ec994
[]
no_license
javargas1098/Andes_microservicio
a6b85e1e2498f478f4db3b11c55e3ce0de2d5dee
b7bac1f2debc0becd2d18d8a36ca16669501ffa0
refs/heads/master
2023-07-20T12:12:09.746047
2021-09-06T01:29:36
2021-09-06T01:29:36
403,450,750
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
app.py
from flaskr import create_app from flask_restful import Api from .vistas import VistaCitasMicro app = create_app('default') app_context = app.app_context() app_context.push() api = Api(app) api.add_resource(VistaCitasMicro, '/citas')
130264e49474a35883a3a3427be9391de9fbeca3
657f3f704fd3506a84d41d5f7af97233363d9e8c
/stocks.py
22be2d8ac87160ca892b22115c6fedd64e878fe0
[]
no_license
Deanna2000/python-dictionaries
f5fad4a4d9823453db6609132677eb2dca55833f
5a4211daf587fa9f6bdabe103bbe3a144bbc10f7
refs/heads/master
2020-03-22T18:16:10.123838
2018-07-12T14:09:11
2018-07-12T14:09:11
140,448,467
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
stocks.py
# Create a simple dictionary with ticker symbols and company names. stockDict = { 'GM': 'General Motors', 'CAT':'Caterpillar', 'EK':"Eastman Kodak" } # Create a simple list of blocks of stock. These could be tuples with ticker symbols, number of shares, dates and price. purchases = [ ( 'GE', 100, '10-sep-2001', 48 ),...
d509cef0d2d6012f02f2e7393e1d407fe4b31793
ab35b3e64441abd052462dce8568dffb58d51ce9
/python/pygames/test_game/ko_08_one_demo.py
b43224536d025bb9bbe471eb9e60c5e2d7bdaf57
[ "Apache-2.0" ]
permissive
Jovons/Tutorials
4061155e0a2f1abc63644dec0c09ca9adebf511b
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
refs/heads/master
2023-06-15T00:02:46.499383
2021-07-13T16:01:34
2021-07-13T16:01:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,499
py
ko_08_one_demo.py
# _*_ coding:utf-8 _*_ from random import randint import pygame from pygame.locals import * from sys import exit __author__ = 'admin' ''' 童年的回忆:掌上游戏机之赛车 ''' pygame.init() # 设置屏幕宽度 SCREEN_SIZE = (320, 400) # 颜色 BLACK = (0, 0, 0) WHITE = (250, 250, 250) BLUE = (0, 255, 255) RED = (255, 0, 0) GREEN = (0, 255,...
853ebf2da679f50b813a72f698a58a14649c8e4b
5a3c29acbb3b1f1eee226ad2c0202a0e3513fd47
/src/PythonCode/coinproblem.py
79c8f5073301ab00ea8fa8875e785e9298f07a41
[]
no_license
claguna/hacker_rank
f6eab6761c6c5e40af3627cfdd58807550ab78c3
9697be6510f5099da3b4fdaa94e995021ebb3263
refs/heads/master
2021-01-17T08:00:29.356318
2016-06-28T05:27:16
2016-06-28T05:27:16
41,865,597
0
1
null
null
null
null
UTF-8
Python
false
false
584
py
coinproblem.py
import numpy as np def knapsack_coins(currencies, dollars): m = np.matrix(len(currencies),dollars) for i in range(len(dollars)): if i mod currencies[1] == 0: m[1,i] = 1 else: m[1,i] = 0 for i in range(2, len(currencies)): for w in range(dollars): ...
1c2093fc16d55687ba5279e07d81597d84d16708
93c8f870cf87857d1f9400d50db031b8293e9f8f
/bkp_sql2ftp.py
7b16c9a878acc59e94c1e6e823fa1f696acab3cb
[]
no_license
bostvl/scripts
78afb858c9e5dc2a420f47eac56e7d491da97244
f876c4516fd7959e6004873122fcabd2483f7acf
refs/heads/master
2021-01-17T12:50:36.053331
2016-10-07T15:26:48
2016-10-07T15:26:48
59,732,808
0
0
null
null
null
null
UTF-8
Python
false
false
2,375
py
bkp_sql2ftp.py
#!/usr/local/bin/python #*********************************** Version 0.1 *************************** import datetime,os,sys,gzip,shutil,ConfigParser from ftplib import FTP config = ConfigParser.ConfigParser() config.read("/root/scripts/bkp_sql.conf") LocalDIR=config.get('conf','LocalDIR') RemoteDIR=config.get('conf'...
765068aaeba5e6c69e09ba79333fb76c3f008870
11b2ccfb60e935273731c84569f185b544271ac5
/replykeyboards/replykeyboard.py
8dff9313a618f260da2eba6c7f04510ed883bfb7
[]
no_license
Sherkhan7/kitappuzbot
f04e3632e0c6bb1e02e4f6ba1c89abd9563e8e68
ce4b16891b0acddbafaa14ddbb1ea86427551198
refs/heads/main
2023-06-18T19:54:19.023763
2021-07-16T13:55:02
2021-07-16T13:55:02
319,229,864
0
0
null
2021-07-16T13:55:03
2020-12-07T06:52:21
Python
UTF-8
Python
false
false
739
py
replykeyboard.py
from telegram import ReplyKeyboardMarkup, KeyboardButton from replykeyboards.replykeyboardtypes import * class ReplyKeyboard(object): def __init__(self, keyb_type, lang): self.__type = keyb_type self.__lang = lang def __create_reply_keyboard(self): reply_keyboard = [ [Keyb...
06be6303fb79ee8f92c72a6dbe51ca6976e6b0de
71ecb7aaec719b5d9338aab5f7ce0a0d8ae62c82
/miniebay/miniebay/app.py
605c29024cd6a324d34f5ca476711bb56ba0f13b
[]
no_license
xinyik14/miniebay
be7ed50d4d9683a8c9169b77364a56cf978beeb7
1184fdec91827bb0704561dd7d3d59d3409b1004
refs/heads/master
2021-05-10T23:54:57.533240
2018-01-24T19:07:36
2018-01-24T19:07:36
118,290,814
0
0
null
null
null
null
UTF-8
Python
false
false
5,777
py
app.py
from flask import ( Flask, Response, abort, jsonify, redirect, request, render_template, send_from_directory ) from flask_login import ( LoginManager, login_required, login_user, logout_user ) from flask_marshmallow import Marshmallow from sqlalchemy.orm import sess...
aa83539dacd3427d26a55b87640e60030632e355
da03b097e81ed8d71e34517b35f285cc2a44912c
/modelServer.py
d4826112e997afab04ba962500ffd57491c12ee9
[]
no_license
SaileshSiva/gRPCLoader
b22c2c6f06575ff826d6be0ca0d381d51d56fef6
94686747cf544e660d02cb6c143d11455cb9ffef
refs/heads/master
2023-01-08T09:48:40.160616
2020-11-16T18:29:51
2020-11-16T18:29:51
313,388,241
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
modelServer.py
import grpc from concurrent import futures import time # import generated classes import loaderConnector_pb2 import loaderConnector_pb2_grpc #import python file loads models import calculator class ModelLoaderServicer(loaderConnector_pb2_grpc.LoaderConnectorServicer): def ModelLoader(self, request, context): ...
ce26ad27b7729164e27c845e2803a670b506bad8
0099a18232e5e1bc2d8387b71e1c935f19291085
/quotes/quotes/spiders/quoteEsxtractor.py
e33c12ebf4664d1c6cb73272ef8ccd1072f3a714
[]
no_license
hattaputra/Scraping
28dd7890918899f377ad6a45ed95d9aa841ea3df
c6661a3711decd7589c6550adfb03b4f5e6a72a9
refs/heads/master
2020-09-11T00:25:23.980401
2019-11-18T07:49:30
2019-11-18T07:49:30
221,871,222
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
quoteEsxtractor.py
# -*- coding: utf-8 -*- import scrapy class QuoteesxtractorSpider(scrapy.Spider): name = 'quoteEsxtractor' allowed_domains = ['quotes.toscrape.com'] start_urls = ['http://quotes.toscrape.com/'] def parse(self, response): for quote in response.css('.quote') : # print(quote.getall()...
09788cf04ab5190a33b43e3756f4dbd7d78977a5
ab8316dada0f12a81fd9bb469f44b287240c490d
/deeplearning/ml4pl/graphs/labelled/graph_tuple_database.py
96e916b530721bc17cf303e4841512a3f3a79cf2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
island255/ProGraML
7680b09526af6e9884770a1667afcfd424e1848a
6c4ea50639773009e7c287feb62c6994fa4f3445
refs/heads/master
2022-10-02T18:03:55.735979
2020-06-10T09:26:31
2020-06-10T09:26:31
271,277,075
1
0
null
null
null
null
UTF-8
Python
false
false
26,819
py
graph_tuple_database.py
# Copyright 2019-2020 the ProGraML authors. # # Contact Chris Cummins <chrisc.101@gmail.com>. # # 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...
be1bfa3e366d715d32613284924cf79abde06d41
2de12f02786bc94b1da5908303fe7c65c1bc180f
/example/task_worker.py
50ab5bb77377759e10296d9fb5bb19c6b50c58af
[]
no_license
EdwinSmartBoy/python_example
08a3ff6d0dd4e4ece04ca8cbb7fc4f298f611875
062d5597ca899aa00538f9ef013222aef5cb852f
refs/heads/master
2021-09-03T06:57:30.965131
2018-01-06T16:33:18
2018-01-06T16:33:18
116,487,554
1
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
task_worker.py
# -*- coding: utf-8 -*- """ ----------------------------------------- IDEA Name : PyCharm Project Name : HelloWorld ----------------------------------------- File Name : task_worker Description : Author : Edwin Date : 2018/1/4 23:38 ----------------------------------------- Cha...
63d9a0fa0d0747762e65f6f1e85e53090035454c
2636a59af722e55ad926795db83299d4b4c1849b
/models/Category.py
56bb9472ed51f4c87dfa04c19fb2d0f5251f9d2a
[]
no_license
sahchos/dummy_budget_bot
5a320f17443acab224758ffe0ccf204589e0cf34
8003e8f0b51ce545c6b58a0a61c40d66b9d7974a
refs/heads/master
2022-10-22T21:30:01.414991
2020-06-12T18:49:02
2020-06-12T18:49:02
267,022,157
0
1
null
null
null
null
UTF-8
Python
false
false
734
py
Category.py
from mongoengine import Document, StringField, BooleanField, ListField, Q import exceptions class Category(Document): id = StringField(primary_key=True) name = StringField() is_base_expenses = BooleanField(default=False) aliases = ListField(StringField()) @classmethod def get_category_by_tex...
7163be250ae3a22931de037cb6896c2e6d5f00a8
28a85934ead3f1bf0b1b2fc8f1c1f70903be51bf
/optimizacion.py
76c34d9e06af0966c82a327a2a4a4638e7bd6834
[]
no_license
Diegofergamboa/POO
866ea44a65cdedc72ad47fd858a623e859d73d7c
625cb4b5f01f04143eebc215d63bc9d6566bb1ee
refs/heads/master
2023-01-14T07:09:27.831986
2020-11-17T00:40:32
2020-11-17T00:40:32
302,118,860
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
optimizacion.py
''' Encontrar el valor mas alto el mas rapido, el mas lento para eso son los algoritmos de optimizacion Para eso debemos pensar en una funcion que queramos maximizar o minimizar Se aplican mas que todo para empresas como despegar, en donde se pueden generar buenas empresas Empresas a la optimizacion...
b5275fc068526063fd8baf13210052971b05503f
bd0a388ee4050055b830eadc4144f67a6013a3c4
/c60.py
686b32616d813841583ccd77888c30cbc6269f58
[]
no_license
drubery/Cryptopals-Solutions
1f6a4a611ceb2ba80fba6afb11e283f4ff5ded13
415af8e15a8546e900a617e174cd4ef059f2516d
refs/heads/master
2022-05-15T20:33:23.031765
2016-08-07T13:52:41
2016-08-07T13:52:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,593
py
c60.py
from matasano import * ec = EC_M(233970423115425145524320034830162017933,534,1,4,order=233970423115425145498902418297807005944) assert(ec.scale(4,ec.order) == 0) aPriv = randint(1,ec.order-1) aPub = ec.scale(4,aPriv) print("Factoring...") twist_ord = 2*ec.prime+2 - ec.order factors = [] x = twist_ord for...
aa4fd27382119e3b10d2b57c9b87deff32b5c1ab
3981410f2a5f4911b0cdcfb4731b45aa4e0eb01a
/webapp/mood_to_color.py
4fef74149fa488bedaedbd1a235f440ba27371c7
[]
no_license
shakarbhattarai/MoodLamp
cf945eb99ec290f55d12d129b233ab8bd4bf65c1
eab4cbfa0ad739d9709d2130f624f7951a3a041f
refs/heads/master
2021-01-13T07:04:35.242532
2017-02-11T14:17:08
2017-02-11T14:17:08
81,600,945
10
0
null
null
null
null
UTF-8
Python
false
false
537
py
mood_to_color.py
from final import getMood import pickle def get_mood(username_t,username_i): mapping={'sadness':'0,0,255','angry':'255,0,0','happy':'0,255,0','surprise':'139,69,19','neutral':'189,183,107','fear':'255,165,0'} #Sad: Blue, Angry: Red, Happy: Green, Surprise: Brown, Neutral:Yellow,Fear:Orange ...
dee1ab3adb7f627680410c774be44ae196f63f6c
ec8b46effd3f22d5ed1ca6c9061fb40be1149542
/emails.py
84c73a3eae66ca12502692ebfe30b2823222f9f7
[ "MIT" ]
permissive
noeldolores/email_pdf_bot
62bb8f6f6eddc065fde55ee72293cd29f4a247a2
76b4f3b9e9f8e5a8946ce56d544100176aa572e3
refs/heads/master
2023-04-15T11:33:41.156899
2021-04-26T21:26:37
2021-04-26T21:26:37
349,859,117
0
0
null
null
null
null
UTF-8
Python
false
false
6,055
py
emails.py
#!/usr/bin/env python3 import base64 from apiclient import errors import os from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders import mimetypes def Get_Attachments(service, userId, msg_id, store_dir): """Get and store...
c4b9fdba9e9eeccc52999dab9232302f159c882a
3fe272eea1c91cc5719704265eab49534176ff0d
/scripts/npc/trademaster.py
4ce7e660cca1b1e1fef9598c18a575a57fe1e309
[ "MIT" ]
permissive
Bratah123/v203.4
e72be4843828def05592298df44b081515b7ca68
9cd3f31fb2ef251de2c5968c75aeebae9c66d37a
refs/heads/master
2023-02-15T06:15:51.770849
2021-01-06T05:45:59
2021-01-06T05:45:59
316,366,462
1
0
MIT
2020-12-18T17:01:25
2020-11-27T00:50:26
Java
UTF-8
Python
false
false
671
py
trademaster.py
# Created by MechAviv # [Maestra Fiametta] | [9390220] # Commerci Republic : San Commerci if sm.hasItem(4310100, 1): sm.setSpeakerID(9390220) sm.sendSayOkay("You can't start your voyage until you finish the tutorial quest!") else: sm.setSpeakerID(9390220) sm.sendNext("What? You threw away the coins wi...
5a103a4f72b9cd3ea3911aeefeeb2194c8ad7df0
6a34f771edd1b7623f26b0b295789e3efa839f0a
/bloom_filter/bloom_filter.py
1c9cb7507db383d7a9211ced1981536cf5d2c2a9
[]
no_license
liushooter/learn-blockchain
64fd17130229dbc0393809a71d7e093a17d7e575
e5ab34ca38f2c1faa5fdf0b3cea57ac23b0f77df
refs/heads/master
2023-03-16T18:21:24.839075
2023-03-02T13:58:53
2023-03-02T13:58:53
114,752,756
35
10
null
2023-03-02T13:44:42
2017-12-19T10:40:01
Solidity
UTF-8
Python
false
false
1,571
py
bloom_filter.py
#coding: utf-8 import mmh3 from bitarray import bitarray BIT_SIZE = 1 << 30 class BloomFilter: def __init__(self): # Initialize bloom filter, set size and all bits to 0 bit_array = bitarray(BIT_SIZE) bit_array.setall(0) self.bit_array = bit_array def add(self, val): ...
94170a1686bff7c62271d17fc7c50102cef166d0
e3dd3fae158378960002537cbe934373ffd87c38
/SYSC 3010/Term Project/Python/avenger/robot/robot.py
2c67c1c4c3bc7d0cdb885ef59ddacf6353e794c1
[]
no_license
elanteigne/school-assignments
4264e9a29e51601015f7682dfc6bb03f78daffd4
76054f1e1abb884535e68406a1ef59c5c198a8f8
refs/heads/master
2020-12-26T04:38:33.444729
2014-10-30T15:30:24
2014-10-30T15:30:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,341
py
robot.py
import RPi.GPIO as GPIO import unittest from xml.dom import minidom from socket import * import sys import select import avenger.robot.motors as motorMod import avenger.robot.leds as ledMod class receiveXml: # Test Python networking code def __init__(self): pass def getXml(): host = "0.0....
dfa787757626f247d9936abd21a810408608ed42
b41392fff537679621d913e5122d9553e82da83c
/unilearn/views.py
c46a12a23748ced716633b48666745d2eb0d4a51
[]
no_license
IIKovalenko/UniLearn
d665f7d8c965c0ff21e49b216d8ba608cf43f49c
31d73d17d2ed830b9e59c6361f6cd7171f6c94f5
refs/heads/master
2020-06-02T12:50:08.857474
2013-02-11T12:25:28
2013-02-11T12:25:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
views.py
from django.views.generic import TemplateView class IndexPageView(TemplateView): template_name = 'unilearn/index.html'
36ed1b5796dd81a34459c097c82d2adf23429b3c
6313bd09fb8d58b8376fcfc27286bc7d9d0ddac5
/aztk/internal/cluster_data/__init__.py
bebc623f62db87a75dd1d2816cb8c1ed4b88cb38
[ "MIT" ]
permissive
lachiemurray/aztk
bf2c1d0fd656f1328047d13949c8989f6e3e8678
8d00a2c444313e77b6b0662f8287fcd9fd67898c
refs/heads/master
2021-04-12T08:01:47.086001
2018-03-16T18:25:56
2018-03-16T18:25:56
126,002,886
0
0
MIT
2018-03-20T10:49:55
2018-03-20T10:49:52
Python
UTF-8
Python
false
false
78
py
__init__.py
from .blob_data import * from .node_data import * from .cluster_data import *
cee99000c369175b2f82a91608d78091d638df61
c1c5e277d1b6171cadd33fedd643df47761f199a
/apps/comentario/models.py
8b0988659bf8607ef01aae9283860fbab659a37f
[]
no_license
TaiEspol/YuGiOhGYEProyecto2
67db98dd8a9c32aa9f1c5ba2c5cefdebabf67641
cab8418d55e5e52d37d1be7278dc8fbeb4a152e6
refs/heads/master
2021-01-22T07:47:47.618576
2017-08-31T17:52:57
2017-08-31T17:52:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from apps.ygoapp.models import Usuario # Create your models here. class Tema(models.Model): usuario = models.ForeignKey(Usuario, on_delete=models.CASCADE) descripcion = models.CharField(max_length=60) fecha = mod...
482ad9730f4ed5aaa805e7a5a76b8819344d1cbf
e151545f8fa57760511eab528b915f8e681d42f4
/servidor-calendario.py
97a06dd8559015aaf9e8cdcf7d18d4b4454bf0de
[]
no_license
araymoises/SistDistribuidosTarea3
4f964b69eb311c255ae364c8d3c3269d7be0d75f
d749ed337ec4ad66fae1ed8c2648134cdd5e574e
refs/heads/master
2021-08-24T03:05:51.688764
2017-12-07T19:53:42
2017-12-07T19:53:42
113,401,561
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
servidor-calendario.py
# saved as greeting-server.py from datetime import datetime, date, time, timedelta import calendar # saved as greeting-server.py import Pyro4 @Pyro4.expose class GreetingMaker(object): def get_fortune(self, anio): return calendar.TextCalendar(calendar.MONDAY).formatyear(anio, ...
ca144897ba1b85b31bd766598ad6b911913308a9
96d94a354b12414ca8617b0713053f61ceabf7e9
/bin/99-multiple_clusters.py
e73426e6508727235fed22a33a700a6611a0d5ef
[ "MIT" ]
permissive
poornima-krishnasamy/cloud-platform-infrastructure
89fa71d860688b8564bf64ea2547166685bddaff
f3bafdc831af124ee2cc41bb7787b9d2dbbadeea
refs/heads/main
2023-05-18T19:54:15.617375
2021-06-07T18:03:05
2021-06-07T18:03:05
347,948,734
0
0
MIT
2021-03-15T11:50:21
2021-03-15T11:50:21
null
UTF-8
Python
false
false
2,009
py
99-multiple_clusters.py
#!/usr/bin/env python3 import subprocess import json import shlex statestore = 'moj-cp-k8s-investigation-kops' domain = '.k8s.integration.dsd.io' def run(command): process = subprocess....
86b039560d0e0457b159461b2ba7384a66e79ada
55d4c09974e261a48f2dc457f9afd9d4cc116852
/1. 读取csv文件/1. Read_csv_file.py
76312aa01caf35879e27c81b1f16df797ba0a393
[]
no_license
xiaoxinhub/PythonTutorials
61b767fd0094f7f0440aed025acb3f72a7d6d4b0
d86b68458da79d2d54bd9f8e66f1f5a1a496f8dc
refs/heads/master
2022-08-31T10:31:04.078835
2020-05-22T13:11:32
2020-05-22T13:11:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
1. Read_csv_file.py
# -*- coding: utf-8 -*- # @Author: AlvinPy # @github: https://github.com/AlvinPy/PythonTutorials.git # @码云:https://gitee.com/alvinfeng/PythonTutorials.git # 导入需要使用的模块,pprint模块是为了格式化打印- # 结果,一般情况下可不用 import csv import pprint # 创建列表用来存储文件中的数据 dataList = [] # 打开data.csv文件并按行存入dataList with open('data.csv'...
209077e7f37f457266824bfdfcf81033d1206b50
316125e137b195c41ba702a9ccc65203faa3919e
/components/select_layout.py
49c4d758eb33199b105e2281c753d9788e4b5def
[]
no_license
felipeboffnunes/Rectangulum
cae875579e986d7995acd41db632f825c333366f
6ce63397761d3fdd314841a1a9d05521fc9a9007
refs/heads/master
2022-11-16T05:10:12.638984
2020-07-10T01:05:39
2020-07-10T01:05:39
264,322,725
0
0
null
null
null
null
UTF-8
Python
false
false
3,759
py
select_layout.py
from components.templates.acmart import ACMART from components.create_table import create_table from faker import Faker from random import randint, shuffle import os ORIGINAL_PATH = os.getcwd() IMG_PATH = f"{ORIGINAL_PATH}\\data\\images" def select_layout(idx): template = ACMART() layout = {} layout_order...
0990524ff4553b1a071e1b7fc0b15daf4edcd24c
76f82f408c65939f99f6edecf652588e6de823bf
/movies.py
ceafe9cf3ff16d65a8d8840c9a14fe12b1f96f5a
[]
no_license
paulofbc/Flask_RESTful_API
2574701ea31854dc819ae6e2cc5b981eb484d268
a8d89598ddca1f552ce27cab5eb7ee5ff48594a8
refs/heads/main
2023-04-12T09:32:17.687708
2021-05-10T03:46:19
2021-05-10T03:46:19
365,908,523
0
0
null
null
null
null
UTF-8
Python
false
false
1,857
py
movies.py
from settings import * import json # Inicializando o banco de dados db = SQLAlchemy(app) # A classe Movie irá herdar o db.Model do SQLAlchemy class Movie(db.Model): __tablename__ = 'movies' # Criando o nome da tabela id = db.Column(db.Integer, primary_key=True) # Atributo identificador tit...
09820cf6e3a05fbf78b92e78028c131a70db6958
4d4fac22c8ecf0762dc3c31ff547ff93e7e75fba
/CircuitPython/external_neopixel_pot.py
1277555b881e70faa70ec00e8605e9497acf6861
[]
no_license
mariehuynh/ardunio
060a5267569aac14663b88b3d38338809ef6c4e2
743ea92c30de4e7dcbf1084c63d95de62d8b11b2
refs/heads/master
2020-04-25T16:15:21.177483
2018-06-22T16:02:59
2018-06-22T16:02:59
21,044,888
0
1
null
null
null
null
UTF-8
Python
false
false
1,300
py
external_neopixel_pot.py
# Marie Huynh # External NeoPixel with Brightness Control # Runs on Circuit Playground Express + 24 NeoPixel ring + potentiometer # Note: Gemma M0 uses D1 but Circuit Playground Express uses A1 for NeoPixels import time import board import analogio from neopixel import NeoPixel pixel_pin = board.A1 pot_pin = analogi...