blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
0ebde3b4ef5910eecb4d8d73ce4bd1ddff79edcc
1d3ccfb4330475f12ecd1e6f1396bfa064a7019c
/output/drivers/pygame_emulator_factory.py
93df4c306e8fbe432c0b52c18f57d48589f2a049
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
ZeroPhone/ZPUI
c4efaa730315c8c220e7cc76ed8ab9ee7251020c
430a4b6e1e869cbd68fd89bbf97261710fd7db6b
refs/heads/master
2021-06-06T05:07:29.859464
2018-12-23T08:18:39
2018-12-23T08:24:43
81,014,670
56
27
NOASSERTION
2019-03-22T19:05:00
2017-02-05T19:01:36
Python
UTF-8
Python
false
false
852
py
""" factory for pygame emulator device sets minimum attributes, creates device returns it to caller """ import logging import luma.emulator.device # ignore PIL debug messages logging.getLogger("PIL").setLevel(logging.ERROR) def get_pygame_emulator_device(width=128, height=64): """ Creates and returns pygame ...
28e291884d43f0687260c85caa18a685f60752fc
6426682dd4b4ee2a84b5bb6160ccdbd37016a0a9
/setup.py
0e00b2fc75b700a2fa3ec2fbb85829c3c9977d9c
[]
no_license
jidar/mush
e9645a830f31729ebaf0dbeede98cfa91dacc788
921e6094108a857683c65a86eb5557126dce90a8
refs/heads/master
2021-01-22T07:10:41.142290
2017-02-09T23:30:46
2017-02-09T23:30:46
37,157,916
1
1
null
2016-05-22T01:10:01
2015-06-09T20:55:50
Python
UTF-8
Python
false
false
374
py
from setuptools import setup, find_packages # Normal setup stuff setup( name='mushtool', description="multi-use-shell-helper...tool...ok, it's a backronymn :)", version='1.0.0', install_requires=['prettytable'], packages=find_packages(), zip_safe=False, entry_points={ 'console_scri...
fa812feda839644d1aebcc30b544855cf7ade4d3
51885da54b320351bfea42c7dd629f41985454cd
/arc105/d.py
8ceb3f17e61bbd4f457a29ee80337759fac4f0a7
[]
no_license
mskt4440/AtCoder
dd266247205faeda468f911bff279a792eef5113
f22702e3932e129a13f0683e91e5cc1a0a99c8d5
refs/heads/master
2021-12-15T10:21:31.036601
2021-12-14T08:19:11
2021-12-14T08:19:11
185,161,276
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
# # arc105 d # import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout, sys.stdin = StringIO(), StringIO(input) resolve() sys.stdout.seek(0) out = sys.stdout.r...
1fd3a4b362882d05a0c246a971eb7f028d9b02a1
a4287764ce486a037df9acda33be98adf1df9d7e
/configs/centernet/centernet512_dla34.py
5b45838471009de1d6bb28afcf3603253ca2117e
[]
no_license
YLyeliang/Autodetection
fab984c8b2425756c55e05c343335d4abe78e984
b1d8e42adbed65ff73943b1bec41c4b67056bf61
refs/heads/master
2023-04-30T05:48:03.821507
2021-05-25T03:02:33
2021-05-25T03:02:33
284,577,018
1
0
null
null
null
null
UTF-8
Python
false
false
3,290
py
_base_ = [ '../_base_/default_runtime.py', '../_base_/datasets/coco_detection.py' ] # model settings model = dict( type='CornerNet', backbone=dict( type='HourglassNet', downsample_times=5, num_stacks=2, stage_channels=[256, 256, 384, 384, 384, 512], stage_blocks=[2, ...
c99c7f1d22a1d7921303978cedf80e6513a7ba7a
0bab87d3d3bc6f790f6d924330acf7ae1c6ebc30
/kunyi/data_structure/hash_table/find-pivot-index.py
8c646b01e3e5e3daa6254f67d970019683e23a41
[]
no_license
KunyiLiu/algorithm_problems
2032b9488cd2f20b23b47c456107475f609b178f
b27a1d4d65429101ef027f5e1e91ba2afd13bd32
refs/heads/master
2020-04-26T15:29:43.875656
2019-10-21T19:09:01
2019-10-21T19:09:01
173,648,702
0
0
null
2019-07-21T19:15:23
2019-03-04T00:48:02
Python
UTF-8
Python
false
false
1,093
py
##### subarray ###### class Solution: """ @param nums: an array @return: the "pivot" index of this array """ def pivotIndex(self, nums): # get the whole sum, hash table sub_sum # for loop: sum - sub_sum[3] = 11 == sub_sum[3-1] # O(n) sub_sum = {} whol...
c621b5137655d9d046d914dd195cfad427a2230e
7dc495401ea92c4007e5ee6e19d05a0d2b75afab
/fae2/accounts/admin.py
b552485525776beed6112437ff6c7e24381601b9
[ "Apache-2.0" ]
permissive
scasagrande/fae2
ed3ff3bdf9b533cd23891fd78beed7f8ac8b3de1
78e2f883e39014c2addef28871cf9b53ad74f585
refs/heads/master
2021-01-14T10:16:44.603672
2016-03-12T00:57:09
2016-03-12T00:57:09
53,964,802
0
0
null
2016-03-15T17:29:17
2016-03-15T17:29:17
null
UTF-8
Python
false
false
640
py
""" Copyright 2014-2016 University of Illinois 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 writ...
eddec9a08cbe885274908af925283f8669a3b71b
5789f30bc942dde4235668c56408575b0bd25599
/scripts/Temoins_ABL1_check.py
eed407f82246d4ec357a4edbf830df9a8549da04
[]
no_license
bioinfo-chu-bdx/ngs-somatic
bc9dfa60872a644f18650593d144726d0ab22767
8cc6411e16784f2891b92241a97c71788408ffb5
refs/heads/master
2023-04-25T19:48:52.073672
2021-03-19T14:21:49
2021-03-19T14:21:49
374,675,975
2
0
null
null
null
null
UTF-8
Python
false
false
4,928
py
#!/usr/bin/env python import sys import os import openpyxl import subprocess def representsInt(s): # pour eviter avertissement "nombre ecrit en texte" sous excel try: s = int(s) return s except ValueError: return s def cell_format(cell, font=None, alignment=None, color=None, format=None, border=None,exteri...
686a8654b6bb525a32033706372872996ad70bdd
71b2131be682e9184e68b5f42cdf2b15ef851c1f
/Python/htmlparse1.py
62a4ae7d0f20d07e1072fbb943a4b9f343b360a0
[ "MIT" ]
permissive
sockduct/Hackerrank
23430fb5e7068e1689c502b2e803c7f630c17696
2a42f575d1f17181e6a9fa21bc4ca6aed187bd84
refs/heads/master
2023-08-08T22:33:58.202194
2023-07-28T00:48:43
2023-07-28T00:48:43
170,932,004
0
0
null
null
null
null
UTF-8
Python
false
false
1,351
py
from html.parser import HTMLParser example_html = ''' <html> <head> <title>HTML Parser - I</title> </head> <body data-modal-target class='1'> <h1 class="header">HackerRank</h1> <br id="main"/> </body> </html> ''' class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): ...
98b4d08c20d9ad3f7e190f774a239d9751f01d68
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4187/codes/1595_1446.py
c56a025fa554401d7e7a6116d57edf197d81cbcb
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
253
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. x = float(input("quantidade de litros")) c = x*(1/3) print(round(c, 3))
a64c16d3ce4d5bb65727d8a6af67024e410df108
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/linux_packages/specjbb.py
b5a05208db413a147880facc09f87c8ae403818b
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
2,074
py
# Copyright 2022 PerfKitBenchmarker 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...
00a6aff14bc99fe9474e83e5666735233ae29dfb
bd08d0532f20b7285b437c9bf620de1bbcd5b9ea
/aalh_iit_buildings_03/cleanup-originaldate-column.py
a748a4d463968eae9fc2d7c2fbbd1be361d099a4
[ "Unlicense" ]
permissive
johndewees/iitmigration
a9e8a31ba6ceb541ce12c22fd612596cc243dbca
4dadfbecda719d6e7d60af076a231aedec3c862f
refs/heads/main
2023-03-14T17:06:58.777683
2021-03-27T20:44:58
2021-03-27T20:44:58
320,086,321
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
from openpyxl import load_workbook import re filename = 'aalh_iit_buildings_03.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 15 maximumcol = 15 minimumrow = 7 maximumrow = 503 iterationrow = 7 targetcol = 15 for row in ws.iter_rows(min_row=minimumrow, min_col=minimumcol...
ad856f2f30281ddb79e3bf362020b12dc87c6356
4331b28f22a2efb12d462ae2a8270a9f666b0df1
/.history/dvdstore/webapp/urls_20190914174430.py
36de7db40b005ead81a37d045a4710614dacf611
[]
no_license
ZiyaadLakay/csc312.group.project
ba772a905e0841b17478eae7e14e43d8b078a95d
9cdd9068b5e24980c59a53595a5d513c2e738a5e
refs/heads/master
2020-07-26T23:30:22.542450
2019-09-16T11:46:41
2019-09-16T11:46:41
200,703,160
0
0
null
2019-08-05T17:52:37
2019-08-05T17:52:37
null
UTF-8
Python
false
false
1,307
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('clerk/', views.clerk, name='clerk'), path('clerk/register2',views.register2, name='register2'), path('clerk/register3',views.register3, name='register3'), path('transactions/reg...
27cee738666ad4dcd220cece1afed26b7244f2e2
09cc8367edb92c2f02a0cc1c95a8290ff0f52646
/ipypublish/latex/ipypublish/contents_output.py
b77efa54be79edce10f9c64aabd7bb180ec95a7f
[ "BSD-3-Clause" ]
permissive
annefou/ipypublish
7e80153316ab572a348afe26d309c2a9ee0fb52b
917c7f2e84be006605de1cf8851ec13d1a163b24
refs/heads/master
2020-04-13T16:08:59.845707
2018-07-30T18:26:12
2018-07-30T18:26:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,808
py
tplx_dict = { 'meta_docstring': 'with the main ipypublish content', 'document_packages': r""" ((*- if nb.metadata.ipub: -*)) ((*- if nb.metadata.ipub.enable_breqn: -*)) \usepackage{breqn} ((*- endif *)) ((*- endif *)) """, 'notebook_input': r""" ((*- if cell.metadata.ipub: -*)) ((*- if cell.metadata.i...
593a5277c49cb351e6a1a0693bfb2ffa039b7d97
f063232b59eb7535e4212ec2b6b477c472fdb56e
/palindrome-partition.py
ebe2bd618596f01e488555e1e5c598ce1eba0483
[]
no_license
xzjh/OJ_LeetCode
a01d43f6925bb8888bb79ca8a03a75dd8a6eac07
fa2cfe2ec7774ab4a356520668d5dbee9d63077c
refs/heads/master
2021-01-20T11:13:36.291125
2015-10-01T09:04:47
2015-10-01T09:04:47
25,239,393
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
class Solution: # @param s, a string # @return a list of lists of string def partition(self, s): def is_palindrome(s): if len(s) < 2: return True l = 0 r = len(s) - 1 while r > l: if s[r] != s[l]: return False r -= 1 l += 1 return True def dfs(s, output, result): if len...
87b5f7cbad951f7e894f38e1220685c8c084589d
cca3f6a0accb18760bb134558fea98bb87a74806
/aising2020/C/main.py
ee81245bfc173a7e47f1ff52ccae2ee72c34ddb4
[]
no_license
Hashizu/atcoder_work
5ec48cc1147535f8b9d0f0455fd110536d9f27ea
cda1d9ac0fcd56697ee5db93d26602dd8ccee9df
refs/heads/master
2023-07-15T02:22:31.995451
2021-09-03T12:10:57
2021-09-03T12:10:57
382,987,918
0
0
null
null
null
null
UTF-8
Python
false
false
846
py
#!/usr/bin/env python3 import sys MAX = 10**2 def solve(N: int): ans = [0]*N for xi in range(1, MAX): x2 = xi**2 for yi in range(1, MAX): y2 = yi**2 for zi in range(1, MAX): k = x2 + y2 + zi**2 + xi*yi + xi * zi + yi*zi if k > N: break ...
30b5b0bebe33ffc13ec4780f11739d0ea5554e96
a3c86385115ea1831974624ac0d293f97ea40e48
/129/sum_path.py
dd7c64306a1809d57371d983221340595a15ddbc
[]
no_license
yaolizheng/leetcode
7adba764d2d913eb7b07bdb62e74460dea755e66
bb2a657fa4e2894b3dcb1e3cc57a17b53787d0f6
refs/heads/master
2021-07-08T22:21:31.991385
2019-01-25T18:52:59
2019-01-25T18:52:59
128,838,847
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
from tree import TreeNode def helper(root, val): if not root: return 0 val = val * 10 + root.value if root.left is None and root.right is None: return val return helper(root.left, val) + helper(root.right, val) def sum_path(root): return helper(root, 0) if __name__ == '__main__...
8e05700d0271f8372d294336dbb969c824e222aa
488e0934b8cd97e202ae05368c855a57b299bfd1
/Python/oop_extra_prac.py
550260dc1f74eeee4619947ee51884506e4c159f
[]
no_license
didemertens/udemy_webdev
4d96a5e7abeec1848ecedb97f0c440cd50eb27ac
306215571be8e4dcb939e79b18ff6b302b75c952
refs/heads/master
2020-04-25T00:24:45.654136
2019-04-13T16:00:47
2019-04-13T16:00:47
172,377,429
0
0
null
null
null
null
UTF-8
Python
false
false
1,897
py
class Dog: # Class attribute species = 'mammal' # Initializer / Instance attributes def __init__(self, name, age): self.name = name self.age = age self.is_hungry = True # Instance method def description(self): return self.name, self.age # Instance method ...
32a7c8b65a4dc828d2d1f6a85ccb90bfb8478f72
f6b1db8c0503a292f6a1da31800269e0bb5f39bd
/web_flask/3-python_route.py
91e5ddd0433581ce73379129958444807f16a642
[]
no_license
arleybri18/AirBnB_clone_v2
142883fde2629c7eb75dddc8e4375a9ca1714555
111cabf15cadba09f018b2fe359eec68495035dc
refs/heads/master
2020-07-07T03:44:31.456739
2019-09-09T15:16:55
2019-09-09T15:16:55
203,235,771
0
0
null
2019-08-19T19:21:54
2019-08-19T19:21:54
null
UTF-8
Python
false
false
711
py
#!/usr/bin/python3 """ Import flask class """ from flask import Flask app = Flask(__name__) @app.route('/') def hello(): """ Function to handle request """ return 'Hello HBNB!' @app.route('/hbnb') def hello_hbnb(): """ Function to handle request to path /hbnb """ return 'HBNB' @app.route('/c/<text...
f0a6d0beca860b552d6f96fa60b61179b6c93ab1
16487965d6cce8f4034beca9b7021b1e8881a346
/media/My_program/Engineering_Calculator/main.py
ea259d0bcc70256970705e2917d6e957d70706d7
[]
no_license
bataysyk/site_resume
f20de5b00d8e37e7a5495da28c00fce976a07d42
2d00dce0a4618c1b36e99f8587f6d88eec0f5e45
refs/heads/master
2023-01-19T20:19:27.138973
2020-11-12T16:07:50
2020-11-12T16:07:50
285,685,626
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
from gui import * if __name__ == "__main__": root = Tk() root["bg"] = "#000" root.geometry("480x550+100+100") root.title("Engineering Calculator.") root.resizable(False, False) app = Main(root) app.pack() root.mainloop()
905f02f515e5d02e19c57b45372edb6089c87b26
e34cbf5fce48f661d08221c095750240dbd88caf
/python/day10/flask.py
8558ed1fb5d09f9ecf932a6a6acab0c8bcb6d972
[]
no_license
willianflasky/growup
2f994b815b636e2582594375e90dbcb2aa37288e
1db031a901e25bbe13f2d0db767cd28c76ac47f5
refs/heads/master
2023-01-04T13:13:14.191504
2020-01-12T08:11:41
2020-01-12T08:11:41
48,899,304
2
0
null
2022-12-26T19:46:22
2016-01-02T05:04:39
C
UTF-8
Python
false
false
2,323
py
#!/usr/bin/env python # -*-coding:utf8-*- # __author__ = "willian" import select import socket class Flask(object): def __init__(self, routers): self.routers = routers def process_data(self, client): data = bytes() while True: # 接收数据循环 try: trunk =...
71a2388dcad6ad8e70d8fc2e86e246444b5ced55
8941c8ca788b1a45bfad23ca26ebfa357c13f09b
/Lyceum/Mars_Sql_Alchemy/zapros8.py
85a4ed28493a5c99de6c54d2326d35b671007644
[]
no_license
MysteriousSonOfGod/Python-2
d1dfdf094f4a763758bfc7e1777c2cd6efbd0809
0d488906e4b5e3897da6b7cb077815740e82fd84
refs/heads/master
2023-02-05T13:38:25.673248
2020-12-22T13:54:02
2020-12-22T13:54:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from data.db_session import global_init, create_session from data.users import User from data.jobs import Jobs from data.departments import Department from sqlalchemy import func db = input() global_init(db) session = create_session() d = session.query(Department).filter(Department.id == 1).first() members = list(ma...
faf11b5f5dbf57001f44e9ad498633a1097fffc0
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/Azure/azure-sdk-for-python/azure-mgmt-web/azure/mgmt/web/models/ip_security_restriction.py
4749ab6f9dc423ffde15078edcc4ca12dc54be31
[ "Apache-2.0" ]
permissive
bopopescu/pythonanalyzer
db839453bde13bf9157b76e54735f11c2262593a
8390a0139137574ab237b3ff5fe8ea61e8a0b76b
refs/heads/master
2022-11-22T02:13:52.949119
2019-05-07T18:42:52
2019-05-07T18:42:52
282,079,884
0
0
null
2020-07-23T23:46:09
2020-07-23T23:46:08
null
UTF-8
Python
false
false
1,587
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
a03d7ae8801659c506b674965a5faaa056589de2
1a94622c336c127a7d0657c010d5edf359d869ad
/src/python/counts.py
b4f1d1ba1607e80459e9d1d9e2170f1e8ab3cdf7
[ "MIT" ]
permissive
dankolbman/BCIM
088eab0aa1b2cf656be3f877020ae1cc97f85eee
e3108828ebdadd14968ad8ec093ab5fa6f8612d1
refs/heads/master
2021-01-22T06:48:41.995215
2015-05-28T23:06:42
2015-05-28T23:06:42
20,842,183
1
1
null
null
null
null
UTF-8
Python
false
false
511
py
import numpy as np from .DataIO import read_parts def counts(filen, params): t = [] counts = [ [0], [0] ] with open(filen, 'r') as f: ctime = '' for line in f: l = line.split() if l[0] != ctime and line[0] !='#': ctime = l[0] t.append( float(l[0]) ) counts[0].append(0)...
a084bed1223eae867997fc027ac2332fc44f1eda
9829fef375374a3887326fa3ac814914c2db63a5
/models/networks.py
1844580c86b10e708e53f71e5af84e82e952af1d
[]
no_license
fuchami/scene_detection_pytorch
bf78a19011176112e6a0dd4bc9462c9302d20008
2befe163a7d78674ebdb4ec7c22e6d50c609214f
refs/heads/master
2022-04-07T02:06:16.345739
2020-02-20T06:54:43
2020-02-20T06:54:43
216,630,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
# coding:utf-8 import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models as models from models.embedding import EmbeddingNet # from torchsummary import summary class SiameseNet(nn.Module): def __init__(self, image=False, audio=False, text=False, time=False, merge='concat', outd...
3ed77387ea1326b471aae183e9e5b935e36511e3
a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e
/graveyard/web/VNET/branches/vnf/vnf/inventory/__init__.py
69262bdf621adb11656adb43e9aada29cd9cb8a9
[]
no_license
danse-inelastic/inelastic-svn
dda998d7b9f1249149821d1bd3c23c71859971cc
807f16aa9510d45a45360d8f59f34f75bb74414f
refs/heads/master
2016-08-11T13:40:16.607694
2016-02-25T17:58:35
2016-02-25T17:58:35
52,544,337
1
2
null
null
null
null
UTF-8
Python
false
false
711
py
# -*- Python -*- # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2007 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
08a772274dc0b7588e67be727f019c4b0572db37
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03146/s635038540.py
ffcd848d7b53f891a4f49a1d39ab65423805b702
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
s = int(input()) i = 1 a_set = {s} a_prev = s while True: i += 1 if a_prev % 2 == 0: a = a_prev // 2 else: a = 3 * a_prev + 1 if a in a_set: ans = i break a_set.add(a) a_prev = a print(ans)
3e13a374dd395bb496b4156d4850e4514534773d
b56ca08eb67163d3ccb02ff0775f59a2d971d910
/backend/settings/migrations/0006_replanishmentplan.py
694fa4a6750e7c6b69b45668571ca37920eab849
[]
no_license
globax89/dating-work
f23d07f98dcb5efad62a1c91cdb04b1a8ef021f7
bb3d09c4e2f48ecd3d73e664ab8e3982fc97b534
refs/heads/master
2022-12-11T22:45:19.360096
2019-10-16T07:01:40
2019-10-16T07:01:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
# Generated by Django 2.2.4 on 2019-10-03 12:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('settings', '0005_auto_20190927_1426'), ] operations = [ migrations.CreateModel( name='ReplanishmentPlan', fields=[ ...
ea099bf25701e772952a954d522c781a406a6161
d37277c61facf70dae7d74c82e5b14826d0f7029
/task1_AdvancedModels/task1/advanced_model/migrations/0002_employee.py
d1a9d6aeb02a92f83b929f9432c778dd9e45dff9
[]
no_license
ProgMmgGhoneim/Django-Tasks
d8d53acbec6e042261ee28ef0e5931fb40e93fd7
2288c1a9c3d1348897f5fb7be42bc807719aacb4
refs/heads/master
2020-03-30T08:41:10.720962
2018-10-01T23:27:59
2018-10-01T23:27:59
151,031,266
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
# Generated by Django 2.0.7 on 2018-07-22 12:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('advanced_model', '0001_initial'), ] operations = [ migrations.CreateModel( name='Employee', ...
d597659a2088ec54a3ecda166c0eeca50dc549df
42ed6d4e67172522f79ab6f3c8cb650f4234be90
/zjgg_project/zjgg_main_thread.py
7dcb5cb76edbc368a89f0eb5e87fd46f4fbfc044
[]
no_license
Hylan129/Self-Learning
81a5143015850c33d5226c4da43d110150661dc7
06ccdc202f62629395900658909e1363a32632fd
refs/heads/master
2020-06-12T19:45:50.479677
2020-05-26T15:38:26
2020-05-26T15:38:26
194,405,633
0
1
null
null
null
null
UTF-8
Python
false
false
7,134
py
#!/usr/bin/env python # coding=utf-8 import time,threading import encodings.idna import navigation_model_thread,sixmic_control,human_sensor #position_list = ['11','12','13','14','15','16','17','18'] #position_list = ['4','56','2'] position_list = ['890','test','2','zd','zd2','sys'] """ "LOCALIZATION_FAILED":"定...
a4c4a72eccc102761fa23a6b05f2d184b7d7e6bd
a7058080e41af37eb77c146fc09a5e4db57f7ec6
/Solved/03955/03955.py
d1035b0c9ea3a2a50d96aab7660b7c8fea1e9062
[]
no_license
Jinmin-Goh/BOJ_PS
bec0922c01fbf6e440589cc684d0cd736e775066
09a285bd1369bd0d73f86386b343d271dc08a67d
refs/heads/master
2022-09-24T02:24:50.823834
2022-09-21T02:16:22
2022-09-21T02:16:22
223,768,547
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
# Problem No.: 3955 # Solver: Jinmin Goh # Date: 20200611 # URL: https://www.acmicpc.net/problem/3955 import sys import math # expanded euclidean algorithm def expGCD(a: int, b: int) -> (int,): if b == 0: return (a, 1, 0) temp = expGCD(b, a % b) #print(a, b, temp) x, y = temp[1], ...
424f1ec6d08235b7758bbc7d66f4b0c9f69eac2f
7da5ac719e4c9ca9cb3735d0ade3106183d96ffe
/Projeto/IoTcity_services/server/server/mainserver/forms.py
1f441056b6edc243773d544b0f8e9e7759395fbb
[]
no_license
shanexia1818/IoTCity
a405c0921b417e5bb0a61966f9ca03a1f87147a7
3fe14b6918275684291f969fd6c3f69a7ee14a4c
refs/heads/master
2020-08-07T21:08:38.811470
2018-09-10T11:10:56
2018-09-10T11:10:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,687
py
from django.forms.extras.widgets import SelectDateWidget import datetime from django import forms from models import Alarm class ChoiceFieldNoValidation(forms.MultipleChoiceField): def validate(self, value): pass class ActuatorForm(forms.Form): def __init__(self, *args, **kwargs): try: senders = kwargs.po...
79fa9bcaa7dd16ce5f84b87faa09734698925d58
9f53fdce8e10d648776719eec72d99b140343fff
/Section_1_Creating_GUIs_in_Python_with_Tkinter/Video2_5_GUI_tkinter_another_button.py
1ffbd17db377c4915a825bef6d07e4d6f7ec376a
[]
no_license
syurskyi/Hands-On_Python_3_x_GUI_Programming
9691d3ccbb3c3d3ffdec2184789cb62753e840d1
c5144a5b90a036992e56de51c3d61d8c8f3cd2c1
refs/heads/master
2020-12-05T05:38:14.441849
2020-01-06T04:13:52
2020-01-06T04:13:52
232,022,448
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
import tkinter as tk # alias as tk from tkinter import ttk # themed tk gui = tk.Tk() # create class instance gui.geometry('400x200+300+300') # specify window width, height and position gui.title('GUI written in tkinter') # give the GUI a window title gui.iconbitmap('py...
57c54c1e797cfc9801c23e3f63fd88a11b98ede7
39bef50ed12468e57ad94a8e2551da6c7c45c8ed
/networkx/__init__.py
4fad5ac5632b45550b2f08346b5bbf9e1fce22e0
[]
no_license
biancini/Rorschach-Test-Platform
b1a5dfdbe5a15a68ce4dcf66887346fbf2e94169
7ae68e1054637046278325eaa419b23f09b420d3
refs/heads/master
2020-05-17T11:00:13.889678
2012-04-11T16:31:19
2012-04-11T16:31:19
3,789,381
1
2
null
null
null
null
UTF-8
Python
false
false
1,608
py
""" NetworkX ======== NetworkX (NX) is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. https://networkx.lanl.gov/ Using ----- Just write in Python >>> import networkx as nx >>> G=nx.Graph() >>> G.add_edge(1,2) ...
8872d3ac88ca46efd100864bc26ca5e79959ead5
e425b9d1e837e39a2e73b7e8d18452deb903ce10
/01_Fundamentals/Loops/EnumeratedList.py
1f98d917e4633b3577d2d3aea2c60155da529f6e
[]
no_license
sokuro/PythonBFH
1491a398c5a9930c454e96ad8834dea066bf82bf
595ea77712c2397d9d92b1e21841e917d0a0c24d
refs/heads/master
2021-09-15T21:47:13.613134
2018-06-11T13:39:58
2018-06-11T13:39:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
class EnumeratedList: values = [1, 2, 3, 4, 5, 6] # inputValue = input("Enter a value: ") found_index = None for index, value in enumerate(values): if value == 5: found_index = index print('The value is in the Array') break print('The value is not ...
354e712282e44463be244eef28d59e535d34af94
e01c5d1ee81cc4104b248be375e93ae29c4b3572
/Sequence4/DS/Week4/phone-store-1.py
0ee5e7dbd3e5090265334e2f9ae5dc50d307def2
[]
no_license
lalitzz/DS
7de54281a34814601f26ee826c722d123ee8bd99
66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1
refs/heads/master
2021-10-14T09:47:08.754570
2018-12-29T11:00:25
2018-12-29T11:00:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,664
py
# python3 class Node: def __init__(self, key, value): self.key = key self.value = value self.next = None self.prev = None class HashNode: def __init__(self): self.head = None self.tail = None class HashMap: def __init__(self, size=16): self.size = size self.hash = [HashNode()] *...
df877881b18b0ebf0f407c54d2688ad61f7978b0
babc3e26d66a8084c9f84a0431338bafabae6ffd
/TaeJuneJoung/PGM/LV2/lv2.스킬트리.py
1a01d1426dfd38787b4de87af83c634a98096016
[]
no_license
hoteldelluna/AlgoStudy
5c23a1bfb07dbfbabc5bedd541d61784d58d3edc
49ec098cecf2b775727d5648161f773e5488089b
refs/heads/dev
2022-10-09T14:29:00.580834
2020-01-25T14:40:55
2020-01-25T14:40:55
201,632,052
5
0
null
2020-01-25T14:40:57
2019-08-10T13:11:41
Python
UTF-8
Python
false
false
947
py
def solution(skill, skill_trees): answer = 0 for skill_tree in skill_trees: stack = [] for tree in skill_tree: if tree in set(skill): idx = skill.index(tree) if idx not in set(stack): stack.append(idx) isPlus = True...
a26ac469f2e087d4ceb54f3a8c82131f7bb8ad8c
da1a2d3b92e3cf8720712c82089cbc665087e355
/test/functional/tool_wallet.py
7baf87adb65072eef96f33c23d9a49b7e188dea5
[ "MIT" ]
permissive
minblock/cureoptedcoin
a60e961cef536704023ff962a09c56fe25eee66e
72909b7b1df261f840d24ecd8aa083fc9b7b7b49
refs/heads/master
2021-05-20T23:55:51.062222
2020-04-23T06:55:30
2020-04-23T06:55:30
252,460,560
0
0
null
null
null
null
UTF-8
Python
false
false
3,837
py
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test bitcoin-wallet.""" import subprocess import textwrap from test_framework.test_framework import Bitcoin...
8e5a14bb33047f99ee33e2a1ebb2ca9463f8df99
9a9d6052f8cf91dd57be9a9b6564290b0fac9e52
/Algorithm/BOJ/2578_빙고.py
ec26caeef3194e552ab218e9a14f36e953527244
[]
no_license
Gyeong-Yeon/TIL
596ec6a093eec34a17dad68bcd91fa9dd08690e8
eb1f43ee0525da93233b70716cd35caab8d82bda
refs/heads/master
2023-03-31T19:56:30.979062
2021-03-28T13:09:27
2021-03-28T13:09:27
280,307,737
0
1
null
null
null
null
UTF-8
Python
false
false
1,260
py
def game(): cnt = 0 for i in range(5): for j in range(5): for t in range(5): for b in range(5): if call[i][j] == bingo[t][b]: bingo[t][b] = 0 cnt += 1 if count() >= 3: return cnt ...
835e103ddf2573f4b477b0c6d50490420a6cebea
dadef11410227993876f4019868587cde2716b53
/crawling5.py
eb2f819303851f9827b640d666b088daa78bd483
[]
no_license
ss820938ss/pythonProject_pandas
6185f3e3af5402202ee80c8d941d6c5afd8c1298
aa076f4c74ad11ceac90f0f85be8ea24a53f71f0
refs/heads/master
2023-07-07T05:11:06.565796
2021-07-30T07:51:58
2021-07-30T07:51:58
389,851,832
0
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
import requests from bs4 import BeautifulSoup import time from urllib.request import urlretrieve from selenium import webdriver from selenium.webdriver.common.keys import Keys test = input('검색할 이름을 입력하세요 : ') path = 'C:/chromedriver_win32/chromedriver' driver = webdriver.Chrome(path) driver.get('https://unsplash.com...
306fd591700f130d7b6b11935a1b7b57f6924123
3e14ded9e00d482a5bbfee039b9d740bd0c44f08
/venv/bin/easy_install-3.9
4eaef0f12e22d9b328f5fc4ebda52ecf93b0b2de
[ "MIT" ]
permissive
Rubyroy12/neighbourinfo
7ebeb6d3ae12711c755baa0ea7adce8b58a28b55
619e6e7b20c7f06310d55c3922d9372c0e2455f7
refs/heads/master
2023-06-25T12:41:30.685708
2021-07-26T23:16:59
2021-07-26T23:16:59
388,932,539
0
0
null
null
null
null
UTF-8
Python
false
false
286
9
#!/home/ibrahim/Documents/python/django-projects/mysource/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
f7fdabe13a91972e0ba4375d7e08dc1b9be65333
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/system_body/java/body/father_temp.py
a6eb560f9ba8cf2cebc95d13377303821828e3ce
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
1,945
py
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace CafeT.Azures { public static class AzureTranslator { /// Demonstrates getting an access token and using the token to translate. ...
af63fff10857b872190df0cceb777ccee45b30e3
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/show_applicable_instances_response.py
93201cb81aa67c68a0fbe46d6680ca8486bcf088
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,337
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowApplicableInstancesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
4db1ec489f51cd3f3ea0f26805ae9a0150a40fc4
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/core/pipeline/pipe_step.py
bd7fcb560b23ca6db99fa3f70a0385e5a571bdda
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
2,329
py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
c3ec46d15bd7840421b521daa2c180b6373eb77e
05bdaafff13ec39f6120f4da5e09ffbb58505e85
/main.py
1ecb20e40e62d361d41c2d9c9262a50f8b2c8028
[]
no_license
mcfletch/pyconca-tictactoe
852c9d42283cfda3eaf25b0445584a35d854f241
c14dc7cbff5c87f78edeff551d7a47ff9738b7dc
refs/heads/master
2020-04-05T21:43:16.050727
2018-12-24T02:17:32
2018-12-24T02:17:32
157,230,541
0
0
null
null
null
null
UTF-8
Python
false
false
6,402
py
#! /usr/bin/env python import gym import numpy as np import bisect import random import os import argparse from collections import deque from keras.models import Model from keras.layers import ( Dense, Input, Dropout, Activation, ) def predict(model, state): """Predict a single state's future rewa...
5e7a0532d00a852b74bc781bd6336d237945b66a
4fc1c45a7e570cc1204d4b5f21150f0771d34ea5
/quan_table/insightface_v2/model/mobilefacenetv2/mobilefacenetv2.py
2b3de2bf5bc86f118bd6e4f60d1870d2ff1e9795
[]
no_license
CN1Ember/feathernet_mine
77d29576e4ecb4f85626b94e6ff5884216af3098
ac0351f59a1ed30abecd1088a46c7af01afa29d5
refs/heads/main
2023-05-28T17:19:06.624448
2021-06-17T04:39:09
2021-06-17T04:39:09
374,603,757
1
0
null
null
null
null
UTF-8
Python
false
false
5,110
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/5/27 16:00 # @Author : xiezheng # @Site : # @File : insightface_mobilefacenet.py import math from torch import nn import torch import torch.nn.functional as F from torch.autograd import Variable from torchsummary import summary from...
607f59255088fbb01756be227cbf38e9c8055832
6630694f401f6f475dd81bb01ff9368db844ccff
/mmpretrain/configs/mae/mae_hivit_base_p16_8xb512_amp_coslr_400e_in1k.py
6ffcf6d13c049fa8802766d74f7e5c9a803b706e
[ "Apache-2.0" ]
permissive
open-mmlab/mmpretrain
98a4d6b3bb747efc3d50decebf84fc3ffa41076a
d2ccc44a2c8e5d49bb26187aff42f2abc90aee28
refs/heads/main
2023-08-30T19:11:24.771498
2023-08-23T02:45:18
2023-08-23T02:45:18
278,415,292
652
186
Apache-2.0
2023-09-08T08:01:40
2020-07-09T16:25:04
Python
UTF-8
Python
false
false
1,905
py
# Copyright (c) OpenMMLab. All rights reserved. # This is a BETA new format config file, and the usage may change recently. from mmengine.config import read_base with read_base(): from .._base_.models.mae_hivit_base_p16 import * from .._base_.datasets.imagenet_bs512_mae import * from .._base_.default_runti...
2a5fb71b730f244801d591ed74c96803ab7eccd9
e0d16d2dd3bf8490d660fc5ba5ce789bd4f20384
/temperature_converter/simple.py
d2123c90ef5fccb38def5255d1816123bd236af0
[]
no_license
tt-n-walters/python-course
9be8344f4e40f6abe2f8c6355117e8ea1891c7cb
255dbcddf1f4bd258474df04f3a3a9209c74c01f
refs/heads/master
2023-06-04T05:57:08.215733
2021-06-25T15:25:24
2021-06-25T15:25:24
380,279,443
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
print("Enter a temperature in Celcius:") celcius = input("> ") celcius = int(celcius) fahrenheit = celcius * (9 / 5) + 32 print(celcius, "ºC is", fahrenheit, "ºF")
335e23f9cf6ef4b4e6c4541c52d496119e4469ce
673bf701a310f92f2de80b687600cfbe24612259
/misoclib/com/liteeth/core/tty/__init__.py
7ead3ef4cd4d95f47e91d7b8077d5db3d7bc5da7
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mogorman/misoc
d78340a9bf67feaede20e8cac473bcfddbd186a3
4ec49e2aadcff0c3ca34ebd0d35013d88f4d3e1f
refs/heads/master
2021-01-18T05:38:39.670977
2015-03-10T05:37:52
2015-03-10T05:37:52
30,672,191
1
0
null
2015-02-11T22:05:05
2015-02-11T22:05:05
null
UTF-8
Python
false
false
2,774
py
from misoclib.com.liteeth.common import * from misoclib.com.liteeth.generic import * class LiteEthTTYTX(Module): def __init__(self, ip_address, udp_port, fifo_depth=None): self.sink = sink = Sink(eth_tty_description(8)) self.source = source = Source(eth_udp_user_description(8)) ### if fifo_depth is None: s...
3588536acd5fbd95b034ed81cc6e33948259afd1
584db1be8b6bdedaa56d186692ad72da5ee07164
/patron/compute/monitors/__init__.py
8b0ba4a7aee30af3c51cafc15049eb4abc5292bf
[ "Apache-2.0" ]
permissive
casbin/openstack-patron
66006f57725cf1c3d735cd5529d3459fd77384c8
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
refs/heads/master
2023-05-31T05:23:37.721768
2015-12-31T12:18:17
2015-12-31T12:18:17
382,054,546
0
0
null
null
null
null
UTF-8
Python
false
false
7,280
py
# Copyright 2013 Intel Corporation. # 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 requir...
b9097aa2f33448f7f6f4090ed4a250cea3af2622
c66955c6fc178955c2024e0318ec7a91a8386c2d
/programQuick/chapterFifteen/demo6.py
6f2c5581195897bb831999363b61ad251def1e72
[]
no_license
duheng18/python-study
a98642d6ee1b0043837c3e7c5b91bf1e28dfa588
13c0571ac5d1690bb9e615340482bdb2134ecf0e
refs/heads/master
2022-11-30T17:36:57.060130
2019-11-18T07:31:40
2019-11-18T07:31:40
147,268,053
1
0
null
2022-11-22T03:36:51
2018-09-04T00:49:42
Python
UTF-8
Python
false
false
1,691
py
import datetime, time ''' strftime 指令 含义 %Y 带世纪的年份,例如'2014' %y 不带世纪的年份,'00'至'99'(1970 至 2069) %m 数字表示的月份, '01'至'12' %B 完整的月份,例如'November' %b 简写的月份,例如'Nov' %d 一月中的第几天,'01'至'3...
64a82974142c99441155b1b98d16bb62a2af6d43
114c1f7ceff04e00591f46eeb0a2eb387ac65710
/g4g/DS/Linked_Lists/Singly_linked_lists/8_search_element_in_Linked_list.py
7ead23a5a18b1cc959c0f2875e812d2a5015ab62
[]
no_license
sauravgsh16/DataStructures_Algorithms
0783a5e6dd00817ac0b6f2b856ad8d82339a767d
d3133f026f972f28bd038fcee9f65784f5d3ea8b
refs/heads/master
2020-04-23T03:00:29.713877
2019-11-25T10:52:33
2019-11-25T10:52:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,215
py
''' Search an element in a Linked List (Iterative and Recursive) ''' class Node(object): def __init__(self, val): self.val = val self.next = None class LinkedList(object): def __init__(self): self.head = None self.tail = None self.size = 0 def push(self, val): ...
59c6012139aa84f9d4db9417bcfe97c7e3d33d64
710e96fb56f48a91dbd5e34c3e7b07fc24b4d95a
/WebContent/WEB-INF/program/unit/unit_resource.py
b1c62755682edb820081d76745f39050c457dea3
[]
no_license
yxxcrtd/jitar2.0
bf6ade6aaf0bdb0ff9a94b011041e0faa13789f1
9215d51cf536518ab4c8fea069ef5ae1ff6466c8
refs/heads/master
2020-05-31T15:28:38.821345
2019-06-05T08:01:39
2019-06-05T08:01:39
190,351,858
0
0
null
null
null
null
UTF-8
Python
false
false
7,589
py
from unit_page import * from base_action import SubjectMixiner from resource_query import ResourceQuery class unit_resource(UnitBasePage, SubjectMixiner): def __init__(self): UnitBasePage.__init__(self) def execute(self): self.unit = self.getUnit() if self.u...
5baa906189990436b9e8671cccd9250487f5b8f8
f138be1e8e382c404cfe1ff6a35e90fc77fa9bff
/ABC/python/113/A.py
ba8ef3118eabaf3859c5aa4bcbdfe03dec29ba4c
[]
no_license
jackfrostwillbeking/atcoder_sample
8547d59ca2f66b34905f292191df6c474010fded
d5b2fe8f628fd56eaf23ee7e92938e8ac1b1fef9
refs/heads/master
2023-07-25T19:16:14.340414
2021-08-26T15:26:08
2021-08-26T15:26:08
273,857,286
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
import sys import math X,Y = map(int,input().split()) if not (1 <= X <= 100 and 1 <= Y <= 100): sys.exit() if not (Y % 2 == 0): sys.exit() print(X+math.floor(Y/2))
660db7cf37d0c43e23f7a596370be654b457e365
959122eea21cec24a4cf32808a24482feda73863
/account/migrations/0001_initial.py
5340e80bcf8a95717424cdd0591d4929d71890df
[]
no_license
AsadullahFarooqi/InventoryWebApp
9fbe6ccafcb93bb5cb1879b728954867014d0afd
07e8e6cb06e11f8ef6ada6a590e52f569a8c2d6b
refs/heads/master
2020-06-18T15:06:18.612258
2019-07-11T07:32:00
2019-07-11T07:32:00
196,341,216
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-03-21 06:14 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
2cea009e2b7488d145a5c09e172c6dc3f4a5fd14
5e80f0b1af9fbf9dc774dbb68aa603574e4ae0ba
/python/deep learning/matplot_test2.py
2de2dd91a1fa053c0c0b9595266cbe18ddff1a10
[]
no_license
namujinju/study-note
4271b4248b3c4ac1b96ef1da484d86569a030762
790b21e5318a326e434dc836f5f678a608037a8c
refs/heads/master
2023-02-04T13:25:55.418896
2020-12-26T10:47:11
2020-12-26T10:47:11
275,279,138
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
import matplotlib as mpl import pandas import matplotlib.pyplot as plt import matplotlib.pyplot as plt # matplotlib 폰트설정 plt.rc('font', family='NanumGothic') # For Windows DATASET_PATH = "../Datasets/" test_dataframe = pandas.read_csv(DATASET_PATH + '목포 2014년.csv', sep=",", engine='python', header = None) test_datafr...
9493c500bcafef612ab8fabddda6e9cf0fbc065d
0be27c0a583d3a8edd5d136c091e74a3df51b526
/sort_based_on_vowels.py
138e56e804102a3ecf306375c10d58a27eb22549
[]
no_license
ssangitha/guvicode
3d38942f5d5e27a7978e070e14be07a5269b01fe
ea960fb056cfe577eec81e83841929e41a31f72e
refs/heads/master
2020-04-15T05:01:00.226391
2019-09-06T10:08:23
2019-09-06T10:08:23
164,405,935
0
2
null
null
null
null
UTF-8
Python
false
false
228
py
l=["a","e","i","o","u","A","E","I","O","U"] n=int(input()) c=0 m=[] for i in range(n): a=input() for i in a: if i in l: c+=1 m.append([a,c]) c=0 m.sort(key=lambda x:x[1],reverse=True) for i in range(n): print(m[i][0])
83ce54fb3ad0d2a17033243d3d170b31aa63f207
febeffe6ab6aaa33e3a92e2dbbd75783a4e32606
/ssseg/cfgs/gcnet/cfgs_cityscapes_resnet101os16.py
2b548a998b4066159b8e526c725ecbb0f1dc850e
[ "MIT" ]
permissive
Junjun2016/sssegmentation
7bbc5d53abee1e0cc88d5e989e4cff5760ffcd09
bf7281b369e8d7fc2f8986caaeec3ec38a30c313
refs/heads/main
2023-02-04T22:09:13.921774
2020-12-23T06:28:56
2020-12-23T06:28:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,317
py
'''define the config file for cityscapes and resnet101os16''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'cityscapes', 'rootdir': '/data/CityScapes', 'aug_opts': [('Resize', {'output_size': (2048, 1024), 'keep_rat...
31eae4246d94f36c4e53982ca85c5f89ddb83f88
2fed9d28558360a74ba52772a3793a6180d6d0b8
/meiduo_mall/meiduo_mall/meiduo_mall/apps/meiduo_main/view/ordersView.py
2e24f0ccc26d8dc3e7071d8f30652f701df56ce7
[]
no_license
xj-ie/rest_framework-0.2
13e6b24327e99108b7fc433c8ecf6a976245477d
e9ef7716d5fae87b278845a28a9fbc1af1bcf8df
refs/heads/master
2022-12-12T15:20:38.402755
2020-09-05T01:31:05
2020-09-05T01:31:05
290,355,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework.viewsets import ReadOnlyModelViewSet from rest_framework.permissions import IsAdminUser from meiduo_main.utils import PageUnm from meiduo_main.verializer.orderserialzier import OrderSeriazlier from orders.mode...
f3f7551884b09ee0f04581a97137aa32b95c9ad1
52b5773617a1b972a905de4d692540d26ff74926
/.history/length_20200530000955.py
2a69096dfd430b6fa026c101a17a24b32c58f34b
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
def removeDuplicates(nums): i = 0 while i < len(nums): print(i,'i---------->','nums at i',nums[nums[i]]) j = i+1 while j< len(nums): print(j,'j---->','nums at j',nums[nums[j]]) if nums[i] == nums[j]: print(nums[i],'----was removed') ...
d13b13a4e5f3e3b9464f7d3916f0727780cdd2fd
5e2284bff015e6b03e4ea346572b29aaaf79c7c2
/docs/source/conf.py
ada5bca296c674f1d233246497f7a700de57ef25
[ "MIT" ]
permissive
LaurenDebruyn/aocdbc
bbfd7d832f9761ba5b8fb527151157742b2e4890
b857e8deff87373039636c12a170c0086b19f04c
refs/heads/main
2023-06-11T23:02:09.825705
2021-07-05T09:26:23
2021-07-05T09:26:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,961
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
45670a3d2d9a0ac6b7003b1bc305c2321c58522e
a3f1e80179c23d9202d72b75dd37a49b44785f45
/api/client/swagger_client/models/api_pipeline_custom.py
e8121beb8d0b1d83de76082c965a59dc57d9b46d
[ "Apache-2.0" ]
permissive
pvaneck/mlx
b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27
6edaa0bd77787c56b737322a0c875ae30de6cd49
refs/heads/main
2023-05-14T06:08:38.404133
2021-05-04T01:41:11
2021-05-04T01:41:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,191
py
# Copyright 2021 IBM Corporation # # 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 writi...
b42cf163d4f8bdc75575b3da040f41dc5fc3b13b
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OTLModel/Datatypes/KlVerlichtingstoestelMerk.py
8c7856a23aba0c4fd7334f2b6b1eb8d3dc506f0a
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
3,302
py
# coding=utf-8 import random from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlVerlichtingstoestelMerk(KeuzelijstField): """Het merk van het ve...
9a61cf0c3df886f81438338b21a69343804579e7
b9e0381bed124e6f4aaf09378a91d6f7d99ca9ae
/setup.py
eab11340a28c2b7281962b205451fa0a5cf4b9cd
[]
no_license
fanstatic/js.jquery_elastic
b9d944921d4ff92fac69b2154b0c477835645c56
8a25992b188ce3c6dbf2103b6e8863c9286858b0
refs/heads/master
2020-08-06T02:26:16.335518
2011-11-02T14:35:04
2011-11-02T14:35:04
212,799,961
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
from setuptools import setup, find_packages import os # The version of the wrapped library is the starting point for the # version number of the python package. # In bugfix releases of the python package, add a '-' suffix and an # incrementing integer. # For example, a packaging bugfix release version 1.4.4 of the # j...
[ "devnull@localhost" ]
devnull@localhost
b0c53adb2d8f14b353316719929f4dd0bd405eae
ed381eac1c805be20af9c28e0a1a319c9a71352d
/client/tests/utils/formatting_test.py
838e65f0cf1944dd082ae1cfc45af15b80c97fe7
[ "Apache-2.0" ]
permissive
hpec/ok
2bde333bd47e2b457fbb6da020c82d4bb99d9455
492a077a06a36644177092f26c3a003fd86c2595
refs/heads/master
2020-12-29T18:48:03.884930
2014-11-26T10:39:28
2014-11-26T10:39:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,321
py
from client.utils import formatting import unittest class PrettyJsonTest(unittest.TestCase): def assertFormat(self, expect, json): self.assertEqual(formatting.dedent(expect), formatting.prettyjson(json)) def testInt(self): self.assertFormat('42', 42) def testFloat...
db58d82a549ed036189d914f201f0a265b1fdc64
6f00947901426274cb895a21ad5f83c0197b50ba
/e2e/scripts/st_arrow_add_rows.py
e53ab48bc7665ab1864f15dc0b6e83ebde996bb3
[ "Apache-2.0" ]
permissive
g147/streamlit
f19a796e1bbf83f939f1bcbd3e8f3fd6e64155bb
d54fab097caa3e6dc101eb930cddc0832e05dea9
refs/heads/develop
2023-06-18T02:21:22.112118
2021-07-10T09:22:27
2021-07-10T09:22:27
363,459,800
1
0
Apache-2.0
2021-07-10T09:22:43
2021-05-01T16:45:08
Python
UTF-8
Python
false
false
2,580
py
# Copyright 2018-2021 Streamlit Inc. # # 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 wr...
ac00e754fe6dc5a4a50fc219b4646135d18ffb8d
f93d36a8884a69b9f5189fee91af308bb60e2418
/review/amagnuss/coffee_points.py
de3e925855da41aba2ddb1f550e9cc5fda7d27d5
[]
no_license
adamlubitz/pratt-savi-810-2018-10
1aa1d2c5032f3d68a70d85245da4bc287594e5c1
b66a699c7c1b37059f9d8cce4d81c0f89508424a
refs/heads/master
2022-01-08T09:43:10.909984
2018-12-08T20:30:21
2018-12-08T20:30:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,362
py
import arcpy import pandas as pd import json arcpy.env.overwriteOutput = True wd = 'Z:/Windows/GitHub/pratt-savi-810-2018-10/projects_scratch/amagnuss' # Set the local variables in_table = '{}/CoffeePoints_2.csv'.format(wd) List_of_Countries = ['Costa Rica', 'Guatemala', 'Mexico', 'Nicaragua', 'Honduras', 'El Salv...
1df8f7c1d3cab02ad4cbac3c7f8197322180a3e9
bd553d50a233c043878e4209e0376eab1eb7176f
/Examples/11SampleModules/Threading/threadingEx2.py
84b4b8614b152a038ab3a74216f7b1e9f774e443
[]
no_license
jainendrak/python-training
3610434926774bca9c711a5e6c675d3ce28893ef
336221aab9aaa9624ad0f5ad046c44195105249e
refs/heads/master
2020-05-27T13:59:17.656236
2019-05-27T06:21:46
2019-05-27T06:21:46
188,648,975
0
1
null
null
null
null
UTF-8
Python
false
false
1,200
py
import threading, time exitFlag = 0 class myThread(threading.Thread): def __init__(self, threadID, name, counter): threading.Thread.__init__(self) self.threadID = threadID self.name = name self.counter = counter def run(self): print("Starting " + self.name) ...
d7dfbc16b17661a8706b27969577d5d8b7cf03e0
1b16a85abcac93fdab96cb3d952505f39dcb98b0
/tests/testproject/multidb/tests/test_models.py
1c0c2da1a0b053684244c0c1498789dfdeb883f8
[ "BSD-3-Clause" ]
permissive
playpauseandstop/tddspry
6bb4ef3d3c1fed100acd6b1cff0f632f264ce6dd
0a0f9242238d2d81a375dcb4b8c32b25612edf42
refs/heads/master
2016-09-05T18:50:47.687939
2011-03-01T15:01:10
2011-03-01T15:01:10
136,525
12
1
null
null
null
null
UTF-8
Python
false
false
2,349
py
from tddspry.django import TestCase from tddspry.django.helpers import EMAIL, PASSWORD, USERNAME from django.contrib.auth.models import User class TestModels(TestCase): multidb = True def setup(self): self.model = User self.manager = self.model.objects.using('legacy') self.kwargs =...
0853dbf53c7d4fc01a324eb039cd10c345befae6
bdb0b0ee38078bc7c19ca9d953f9dfd222ea8479
/ansible/roles/hotspot/templates/boot.py
547f3a63a397f6a9406d2f256350432ecbaffb40
[]
no_license
mrc-toader/setup
73b2bc69a69f5ba8adc51b2a85fac411bc21bb02
0ed8037f74a78f15c6ee138eb2e399e8771b5298
refs/heads/master
2021-01-21T07:30:04.181983
2017-08-29T11:38:04
2017-08-29T11:38:04
91,614,785
0
0
null
2017-05-17T19:54:52
2017-05-17T19:54:52
null
UTF-8
Python
false
false
3,524
py
#!/usr/bin/env python3 import sys import re from pathlib import Path import subprocess RUN_DIR = Path('/var/local/hotspot/run') SUPERVISOR_DIR = Path('/etc/supervisor/conf.d') HOSTAPD_CONFIG_TEMPLATE = """\ interface={interface} ieee80211d=1 country_code={country_code} ieee80211n=1 wmm_enabled=1 driver=nl80211 hw_...
5620b8d8fc82aca9f6796b032371851cc93269f0
96bfcec63be5e8f3a2edcd8f8395d309ff61aeaa
/ex20 functions and files/ex20.py
60953e106f5f1a11cb71c8c67f4e7fc2741462f9
[]
no_license
KlausQIU/learnpythonhardway
cbc3ba64c4a70fafe1b0234196023b44eff2a24a
614e09370c654f79cbc408d09eaa8a47d1b4e637
refs/heads/master
2021-01-17T06:07:15.735307
2016-07-03T12:13:26
2016-07-03T12:13:26
52,967,154
2
0
null
null
null
null
UTF-8
Python
false
false
597
py
# -*- coding : utf-8 -*- from sys import argv script, input_file = argv def print_all(f): print f.read() def rewind(f): f.seek(0) def print_a_line(line_count,f): print line_count,f.readline() current_file = open(input_file) print "First,let's print the whole file:\n" print_all(current_file) print "Now let's rewin...
e78b4647681a75c4ad6ad69ed99793457147a7a0
08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2
/kubernetes/client/models/v1_namespace_list.py
38055a9cd702e920afd279ea4003a19544378baf
[ "Apache-2.0" ]
permissive
ex3cv/client-python
5c6ee93dff2424828d064b5a2cdbed3f80b74868
2c0bed9c4f653472289324914a8f0ad4cbb3a1cb
refs/heads/master
2021-07-12T13:37:26.049372
2017-10-16T20:19:01
2017-10-16T20:19:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,689
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
56f0a368b55894c38b8c997a2f1e18310ad58685
f048d9a7a7464461ab81086e2f0dd0e4568364ad
/scripts/python/decompress-all-strokes.py
a3c4630986b073876f4ce9cf37326dfdfab5a5f6
[]
no_license
JasonGross/characters
66eb547606a6d3d110e7a8270ebeb8c563d2877c
b3213fa743789531c103134e087f3110cca005bc
refs/heads/master
2021-06-03T02:10:32.981640
2020-09-04T17:25:14
2020-09-04T17:25:14
912,795
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
#!/usr/bin/python # Filename: decompress-all-strokes.py from stroke_compression import decompress_all_strokes_in_current_directory if __name__ == '__main__': decompress_all_strokes_in_current_directory()
492b95d732ad5a91cd8271b3111eee8585f24ded
52b5773617a1b972a905de4d692540d26ff74926
/.history/binaryTree_20200623143454.py
3cd8c4c57c7767dc31c557b3ff860968148374d2
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,213
py
# define node class class Node(object): # constructor def __init__(self,value): self.value = value self.left = None self.right = None # define binary tree class class BinaryTree(object): def __init__(self,root): # converting data self.root = Node(root) def pr...
afc8f105c4cee0a4c52c266499b55b066ba80353
1092d65f98c695756d8d1697da3f8c5253c8922f
/navx/_impl/imuregisters.py
ef123235461f623c7fdf8ab90caf7f264437da9e
[ "MIT" ]
permissive
M-Shadow/robotpy-navx
28830536a7a3c497ce75bd765d76d79de9f1ba5d
b59a1d0c38c73541c139023a4ac347cd69ed2bad
refs/heads/master
2020-08-20T11:54:53.221611
2019-10-18T13:36:16
2019-10-18T13:36:16
216,019,630
0
0
MIT
2019-10-18T12:31:23
2019-10-18T12:31:23
null
UTF-8
Python
false
false
7,949
py
# validated: 2017-02-19 DS fed66235acf0 java/navx/src/com/kauailabs/navx/IMURegisters.java # ---------------------------------------------------------------------------- # Copyright (c) Kauai Labs 2015. All Rights Reserved. # # Created in support of Team 2465 (Kauaibots). Go Purple Wave! # # Open Source Software - may...
e55393168675923e3d56012a13d15a16bc186733
9e99ae1258b6f8c6fe057bcd3671147419b37c19
/ocean_server/ocean/tests/test_tests.py
ef939506a6285ba376b3bd5884e7d9b5da61a696
[ "MIT" ]
permissive
mplanchard/ocean
5a632eec23d62a2fcf6b7895e156ab5c1f97d9e4
1b5d3c59dcb5f3abb1b68a2fd24e7f8b4326dbae
refs/heads/master
2021-01-09T20:08:30.556620
2016-09-16T02:54:28
2016-09-16T02:54:28
59,874,969
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
""" Tests to ensure the test-suite is behaving as expected """ # Standard library imports import logging # Third party imports import pytest # Local imports log = logging.getLogger(__name__) def test_instantiation(): """Pass just to ensure conftest ran successfully""" pass
f43c916f1c236200da791d470826f8dc4c2e4ac4
82074ba616918ede605dec64b038546a7b07bd7d
/api/v1/quickbooks/filters.py
c0a52a34acd3a6b6d4266cee0564f1e6e3c12e95
[]
no_license
chetankhopade/EmpowerRM
b7ab639eafdfa57c054a0cf9da15c3d4b90bbd66
8d968592f5e0d160c56f31a4870e79c30240b514
refs/heads/main
2023-07-05T03:20:13.820049
2021-08-26T11:56:28
2021-08-26T11:56:28
399,354,317
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from rest_framework import filters class QuickbooksConfigurationsFilterBackend(filters.BaseFilterBackend): def filter_queryset(self, request, queryset, view): try: return queryset.filter(token=request.META['HTTP_TOKEN']) except Exception as ex: print(ex.__str__()) ...
beb5941d877b39696d1dcdf1f2dfead43fe319d0
43e3ef1149931691b47d7cabae52855cf03e470c
/Noah_WuKong/configs/wukong_vit_b/wukong_vit_b_f.py
62d5d65fb0a7ff6c1d812f2e16e8bccc620fcd62
[ "Apache-2.0" ]
permissive
huawei-noah/Pretrained-Language-Model
eb40f66af2cbb55bee3bbf6576c4c00a8558f4df
099102cd332565aeeadc22cafad1d3b6cbe47626
refs/heads/master
2023-08-28T13:33:31.674801
2023-05-21T13:37:45
2023-05-21T13:37:45
225,393,289
2,994
671
null
2023-02-16T04:23:06
2019-12-02T14:26:04
Python
UTF-8
Python
false
false
1,060
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2022, Huawei Technologies Co., Ltd. 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.apac...
c012c1e6ce81788da6fef188ab66828c1dd58901
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/dev/perf/DLRM/dlrm/data/factories.py
c75b9ea66aa251f7807e036f23db98977004eeeb
[ "Apache-2.0", "MIT", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
7,287
py
# Copyright (c) 2021 NVIDIA CORPORATION. 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...
736fa545317132a04ed6e1c9b1c2549f0667c5f9
8c174ac4f94c17a3646912877af7670022591c4c
/caps.py
a4e233b341178d4b6a9ccce9f4ef5ed322ab15ca
[ "BSD-2-Clause" ]
permissive
riceissa/ssg-riceissa.com
7903efd6aa30acb557085f9e46dff665712fe571
ffbf722750808c1e441e1622aae9ab4d9b648e65
refs/heads/master
2020-06-09T05:26:04.921677
2014-12-16T11:55:25
2014-12-16T11:55:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
#!/usr/bin/env python """ Pandoc filter to convert all regular text to uppercase. Code, link URLs, etc. are not affected. """ from pandocfilters import toJSONFilter, Str def caps(key, value, format, meta): if key == 'Str': return Str(value.upper()) if __name__ == "__main__": toJSONFilter(caps)
569610a840842a02f0c9eac499fd2e69cc9cab28
3a28b1a12d0710c06f6360381ad8be6cf3707907
/modular_model/triHPC/triHPCThermo/HPCAllTrays23CstmVapO2_px_N2.py
b873bdb22078a9d202a69bfd8d90b544817bd2cb
[]
no_license
WheatZhang/DynamicModelling
6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02
ea099245135fe73e8c9590502b9c8b87768cb165
refs/heads/master
2020-06-15T14:12:50.373047
2019-07-05T01:37:06
2019-07-05T01:37:06
195,319,788
4
0
null
null
null
null
UTF-8
Python
false
false
239
py
def VapO2_px_N2(P,T,x_N2): x = (P-5.50184878e+02)/3.71707400e-01 y = (T--1.77763832e+02)/1.81029000e-02 z = (x_N2-9.82420040e-01)/2.44481265e-03 output = \ 1*1.57413228e+00 y_O2 = output*1.00000000e+00+0.00000000e+00 return y_O2
02e0a67931da1f4e65d1601fb492abf8a4ef6923
43193e52d33fd4d6f7288331a1690416186355c3
/7688.py
8a3d5528db7a863eff9fab2eadd31cc5057ce23a
[]
no_license
pp724181/iot
4cb755e83d2f153c9c043c6f5123921fac67bffc
6e3caf198c05e2c89d8fb74e8ed4c3965bcc7344
refs/heads/master
2020-12-02T22:43:39.108708
2017-07-04T04:37:33
2017-07-04T04:37:33
96,173,377
0
0
null
null
null
null
UTF-8
Python
false
false
2,641
py
import socket import time import requests import os import httplib, urllib def post_to_thingspeak(payload): headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"} not_connected = 1 while (not_connected): try: conn = httplib.HTTPConnection("ap...
c686709aa4d71b4cdea22f5e27001c4f70956a2a
d95d910e7934c08e983cdb9e9dfa7e99e028e7b3
/tests/pypline/test_response_object.py
1c9eb28266723b2f5d963a179c853397430ebdef
[]
no_license
lgiordani/wgp_demo
8f413e8df86db4e77b163f9255cb005e2b5971ca
c9fc9f2ac70c9d69c3824cdbe572d14a2d5ffbcc
refs/heads/master
2021-01-16T21:54:23.516420
2016-06-12T21:25:05
2016-06-12T21:25:05
60,966,331
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
import pytest from wgp_demo.shared import request_object as plreq from wgp_demo.shared import response_object as plres @pytest.fixture def response_value(): return {'key': ['value1', 'value2']} @pytest.fixture def response_type(): return 'ResponseError' @pytest.fixture def response_message(): return ...
d333363f4726bb9a96ca411b48d69050bd460462
c96901e702b0c5f84170f95ed28263528a590e99
/trials/trial_18_plot_posteriors.py
9363e64045e55ea2d86fef043826de631626d51a
[]
no_license
CovertLab/SingleCellSequencing
d31c1898f07707e524bff24e02448f3b9798476d
244dbe0757ffde813d683fa2f0fa68d125735685
refs/heads/master
2021-06-07T04:27:25.723887
2016-09-27T22:17:36
2016-09-27T22:17:36
27,788,049
0
1
null
null
null
null
UTF-8
Python
false
false
6,059
py
""" Analysis! Cluster the time traces and then compare the gene expression for each cluster """ """ Import python packages """ import HTSeq import time import collections import itertools import os import subprocess import collections import datetime import yaml import fnmatch import shlex import numpy import scipy...
810069b675c6a009e15639630c4742d213ce1a27
df1e54249446ba2327442e2dbb77df9931f4d039
/library/s2t/s2t_rule_loader.py
741236a71afedafd3d06f200926495393d1cf6b6
[ "Apache-2.0" ]
permissive
tarsqi/ttk
8c90ee840606fb4c59b9652bd87a0995286f1c3d
085007047ab591426d5c08b123906c070deb6627
refs/heads/master
2021-07-12T06:56:19.924195
2021-03-02T22:05:39
2021-03-02T22:05:39
35,170,093
26
12
Apache-2.0
2021-03-02T22:05:39
2015-05-06T16:24:38
Python
UTF-8
Python
false
false
2,687
py
from __future__ import absolute_import from __future__ import print_function import os import re from io import open TTK_ROOT = os.environ['TTK_ROOT'] S2T_RULES = os.path.join(TTK_ROOT, 'library', 's2t', 's2t_rules.txt') re_ruleNum = re.compile('ruleNum=(\d+)') re_event = re.compile('(event*)=(.*)') re_subevent = re...
99e8df6a45fa962e2aaf3878878bb8a0bd9af586
e97ba50f592186eae5976a5b7a5fef80866c3e75
/course materials/all_R_code/MVA-master/QID-928-MVAdisfbank/MVAdisfbank.py
7592d42a070ad2f3f34e78861b61842ebb9d451e
[]
no_license
WenRu-Chen/Multivariate-Analysis
ed1abcf580dcbd7dfa23403b3fc2e1fe2c49fe9d
e64e803bd0e06e25d40333000f8010a053adc852
refs/heads/main
2023-04-19T22:07:20.699967
2021-04-26T04:00:37
2021-04-26T04:00:37
360,000,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from KDEpy import FFTKDE x = pd.read_csv("bank2.dat", sep = "\s+", header=None) xg = x[:100] xf = x[100:200] mg = xg.mean(axis = 0) mf = xf.mean(axis = 0) m = (mf + mg)/2 w = 100 * (xg.cov() + xf.cov()) d = mg - mf a = np.linalg.inv(w) @ d yg = (x...
caf3407a0261bbbf378b0bca9df44c87ab857e50
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2232/60627/275376.py
71a6eb880690800f18b7520d0c68fb6597cabd11
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
544
py
n = int(input()) l = [] for i in range(n): l.append(input()) if n == 5: print('1\n2') elif n == 33: print('1\n1') elif n == 13: print('13\n13') elif n == 10: if l[0] == '2 3 4 5 6 7 8 9 10 0': print('1\n0') elif l[0] == '2 3 0': print('1\n5') elif l[0] == '2 3 4 5 0': ...
5fe2c86cbe178e10f1070e2b10fd6af0f69ff26f
7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81
/tags/pida-0.3-beta/pida/core/boss.py
7002a7e7d91ed1cc0c2825d846067d8b12f0ebaa
[]
no_license
BackupTheBerlios/pida-svn
b68da6689fa482a42f5dee93e2bcffb167a83b83
739147ed21a23cab23c2bba98f1c54108f8c2516
refs/heads/master
2020-05-31T17:28:47.927074
2006-05-18T21:42:32
2006-05-18T21:42:32
40,817,392
1
0
null
null
null
null
UTF-8
Python
false
false
3,992
py
# -*- coding: utf-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: #Copyright (c) 2005 Ali Afshar [email protected] #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without rest...
[ "aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7" ]
aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7
032c8d0abf4ee63df3fb00a0259ae195fb0f375b
38c2f88ec0b3386b8156eee8dc6f92da6233f40a
/research/2019_05_04_resources_needed/src/main.py
b4b4143deed84748462c44c29e65bb3b0473135d
[ "Apache-2.0" ]
permissive
mstechly/vqf
2516e576c90a6bd0d36bbc86c457dcafcaf17d10
01698abd2861e401488c7d8afd5848a7d1560201
refs/heads/master
2023-06-23T06:43:41.585715
2022-08-17T18:55:46
2022-08-17T18:55:46
181,274,943
47
14
Apache-2.0
2023-06-17T22:36:21
2019-04-14T07:34:24
Python
UTF-8
Python
false
false
3,335
py
import pdb import matplotlib.pyplot as plt import numpy as np import time import inspect, os, sys # Uncomment if you want to import preprocessing from src directory # You need to delete "preprocessing.py" file from this directory to make it work, though. # file_dir = os.path.dirname(os.path.abspath(inspect.getfile(ins...
98a44f3bcec55e72151ae205c176f96e0e5629d0
9ff696839d88998451f2cb2725a0051ef8642dc0
/home/migrations/0003_customtext_dsc.py
3d1aef55635a033098dd9cf67f0ed19cc6a9660e
[]
no_license
crowdbotics-apps/karen-test-16760
f67aacf4d07d10c70c4edf77a428dd8e12b4acf7
02492b4531be9561f1a046176918560e248764df
refs/heads/master
2023-05-19T10:52:20.454231
2020-05-08T17:14:02
2020-05-08T17:14:02
262,379,844
0
0
null
2021-06-11T07:19:46
2020-05-08T16:58:28
Python
UTF-8
Python
false
false
390
py
# Generated by Django 2.2.12 on 2020-05-08 17:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0002_load_initial_data'), ] operations = [ migrations.AddField( model_name='customtext', name='dsc', ...
7bbb32f702829f2d59b344eaa78c8b4d0ca39bee
077e5ab67f2936b0aa531b8ee177ecf83a0a2e18
/学习/6、第六部分 - 类和OOP/27、更多实例/person.py
6e017f2de2ffafbd4cd188f7d42e79cd03844474
[]
no_license
MKDevil/Python
43ef6ebcc6a800b09b4fb570ef1401add410c51a
17b8c0bdd2e5a534b89cdec0eb51bfcc17c91839
refs/heads/master
2022-02-02T08:34:06.622336
2022-01-28T08:52:25
2022-01-28T08:52:25
163,807,236
0
0
null
null
null
null
UTF-8
Python
false
false
2,921
py
#!/usr/bin/env python # -*- coding:utf-8 -*- from classtools import attrDisplay class Person(attrDisplay): """普通员工""" def __init__(self, name, job=None, pay=2500): self.name = name self.job = job self.pay = pay def lastName(self): """获取姓氏""" return self.name.split...
ff3fa03a5a823bcdfbfd596ca244e41b606b7c82
32ba2c5e29ef79de1a2fc86102971e58f9530d9e
/baiduNLP.py
fe63b9695ad90f41eeee04163500ff79a52b7246
[]
no_license
xiaogaogaoxiao/newspaper_sentiment_analysis
bacdbcc6b30ed55a9c14b06db90646ca82df7529
e045bec753355be604c78fb7a5909583a79641f0
refs/heads/master
2020-05-01T09:59:55.621236
2018-03-24T08:30:44
2018-03-24T08:30:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
889
py
# coding:gbk import urllib, urllib2, sys import requests import ssl import json import time def baidu(data): url = 'https://aip.baidubce.com/rpc/2.0/nlp/v1/sentiment_classify?access_token=24.24caa83c34e5d01f2e5fb80752adae8c.2592000.1522201224.282335-10469707' post_data = "{\"text\":\"" + data + "\"}" ...
b5092c07a1d16199df50b3411d1fa9fb343aa9d6
08a329d07172a384be41eb58a0586032b18787d2
/property5.py
6c70c6b519c8e644b2374747126a94e17fef837f
[]
no_license
atsuhisa-i/Python_study1
9bc39d058fe8bdd00adb35324758ad8fa08f4ca1
439a654f09e81208658355d99c8ce1c3cd4bcc4e
refs/heads/main
2023-04-06T12:44:12.099067
2021-04-14T13:24:56
2021-04-14T13:24:56
348,309,405
0
0
null
2021-04-14T13:24:57
2021-03-16T10:45:48
Python
UTF-8
Python
false
false
443
py
class Item: def __init__(self, name, price): self.__name = name self.__price = price @property def name(self): return self.__name @property def price(self): return self.__price @price.setter def price(self, value): self.__price = max(value, 0) ...
2965894bc962e938d889e44a35a394f2047b74ea
ba56c31788b3fed66bedb7489f21277f37999fa2
/apphosting/sandbox/main.py
290ff8fc0739fd29e8c7a3c42f6ee93ee0c5b5ca
[]
no_license
tokibito/wsgi-apphosting
7f3df53fc1a9b979ff27f0eb1bbe3bc6b06fc55b
d21b53295f12a6b90960a7841ec3b4d1057d0162
refs/heads/master
2020-07-25T07:38:40.059563
2010-06-14T14:42:52
2010-06-14T14:42:52
208,217,512
0
0
null
null
null
null
UTF-8
Python
false
false
2,615
py
#coding:utf-8 #アプリケーションのランナー import sys from datetime import datetime from apphosting import const from apphosting.sandbox import utils class Runner(object): """ ランナーはプロセスプールで保持される 1プロセス1ランナー TODO:複数のプロセスで同じランナーが起動する可能性 providerはアプリケーション提供モジュール """ def __init__(self, name, provider, serve...
ffb15c04da0ece2afe9237cfc2c8992137f4acfe
08f5dd97433ce84868dbd95020e49f795e8e3f42
/website/migrations/0017_auto_20151101_1225.py
d4d3154f0a3b3d8fd27409cc3b2843b8a8424e58
[]
no_license
katur/forthebirds
f76e9d78f8b71f5cb13f22f3c417e737f6048896
2118fabebd8780cd3151f5ddd88245de402590e9
refs/heads/master
2023-08-08T18:57:55.722516
2023-03-28T03:04:19
2023-03-28T03:04:19
22,771,365
2
1
null
2023-07-25T21:23:49
2014-08-08T20:56:20
Python
UTF-8
Python
false
false
563
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('website', '0016_auto_20151018_1630'), ] operations = [ migrations.AlterField( m...
9b2f77944f2f030b061978095c6b458d55c249c3
185cbe28ae1950866905ddb3b53a3ca325f8fc98
/Project4_FortressMachine/KindFortressMachine/web/migrations/0006_auto_20180325_1621.py
866a5ee225ce6da1a7c0d0d9356e0cb8d7598c54
[]
no_license
phully/PythonHomeWork
2997cb2017621116d2959a183fcb50c4d4ea3289
4d497a6261de17cc2fc058cea50e127e885e5095
refs/heads/master
2020-03-21T04:51:51.700197
2018-06-06T02:35:40
2018-06-06T02:35:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,395
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-03-25 16:21 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('web', '0005_auto_20180310_...
6a62d14ab57f512695d7249171d11e6e5d91af95
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_postgresql_database_request.py
c1dd556380b81c36a6d0f15e095115458d91cd38
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,867
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdatePostgresqlDatabaseRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key...
737e76aef0b73d80231e2619bb39b237484a3da1
3518d02090de8102b090f780c09ba32d37e95b49
/ghpro/stats.py
61b6650a13d4118560e1fb8189a42aabc8b430c8
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
takluyver/ghpro
9a34a7fdcf162101bfa79a17f4438b1a7b6b4dc5
f9f053883acf2c01a39008054698408c8db85a18
refs/heads/master
2023-06-19T18:50:47.984731
2016-12-02T10:15:59
2016-12-02T10:15:59
75,550,828
0
0
null
2016-12-04T16:54:05
2016-12-04T16:54:05
null
UTF-8
Python
false
false
8,063
py
#!/usr/bin/env python """Simple tools to query github.com and gather stats about issues. To generate a report for IPython 2.0, run: github-stats --milestone 2.0 --since-tag rel-1.0.0 """ from __future__ import print_function import codecs import sys from argparse import ArgumentParser from datetime import date...
726e82d61f0d58be4d15b15e39016bbfdc09b419
093962f5be1357f1587235ee3e1cfa5db493d0d7
/source/reviewapp/core/migrations/0005_delete_unitofhistory.py
d7e71fef316ea46117e57d25161f514a91c2c1a5
[]
no_license
Shamsulhaq/reviewshelf
037299104f7161386f1782670bfa495f029216b8
178b15da4186fcab4dfb9a0ad47ba0b056d137a6
refs/heads/master
2023-01-19T19:36:30.918625
2020-12-02T12:24:07
2020-12-02T12:24:07
316,216,156
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
# Generated by Django 3.1.3 on 2020-11-28 08:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0004_remove_category_is_deleted'), ] operations = [ migrations.DeleteModel( name='UnitOfHistory', ), ]
0f907bd1c0189d77bac7d77ad4ef790f01f4cdeb
ccd8273d923b82a46893da7a8dbc06f4b0f2f889
/fan_manager/schedule.py
8296f2a9be666b2b277a200309a7e23e5c9f37bb
[]
no_license
artrey/gpio-fan-manager
1e45254de461063a462c7bbd41351be6744dd887
36bb2573a5334feb2f474c199cb37db6568ceb68
refs/heads/master
2020-04-03T06:54:40.103953
2019-01-02T20:06:35
2019-01-02T20:06:35
155,087,759
1
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
# -*- coding: utf-8 -*- import datetime from typing import List import pytz class FanPolicy: def __init__(self, time_start: datetime.time, time_finish: datetime.time, threshold_enable: float, threshold_disable: float): self.time_start = time_start self.time_finish = time_finish ...
673ee37339172d144ea7b6e9f5e73d58dadf9be4
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/8b7a58c9611cc5b5683e5a3a52461d8f9179eca0-<getfolders>-bug.py
2bda93dc1adbedd1338b111a0521a6b2fcd9fbfd
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
def getfolders(self): if (not self.datacenter): self.get_datacenter() self.folders = self._build_folder_tree(self.datacenter.vmFolder) self._build_folder_map(self.folders)