blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
3df115b3dffbcbdc55a87e74face40f87c7cca8f
00504f069d4f0eb93ed8777b627a6cd7de0fe94d
/10.0/auth_allowed_ips/__init__.py
4f27000c587c01350a8ffde35f37c6c282bb6e4c
[]
no_license
Gofekra/odoo-2
6e1a688a9e04cc0ecd1ca91ad7fca004194f1c4a
a2f870a695663fe505451b6d97692433a4ea2b1d
refs/heads/master
2021-04-09T13:32:46.994819
2018-03-13T07:52:55
2018-03-13T07:52:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
# coding: utf-8 import re import logging from odoo import models, fields, SUPERUSER_ID, api _logger = logging.getLogger(__name__) class User(models.Model): _inherit = 'res.users' allowed_ips = fields.Text(string='Allowed IPs', help=u"""正则匹配 如:^192\.168\.2\.\d{1,3}$, 支持多个正则,每一个正则单独一行。满足任意一行即可通过。 """) ...
760b0eb4c5e3ffc5e8dc4d8b21479bb959617a91
0a28bcde2499e6a41e16d88ed62cd2e80a5b464d
/hb_quant/huobi/model/subuser/trade_market.py
74d22b7034eb44acc3ad53c865621798e9a56b5f
[ "MIT" ]
permissive
wenli135/Binance-volatility-trading-bot
2cfe66007294b13a89b16d1622d50ce1615f1d66
75a03ad61df0e95492128fb6f1f419d4dc256ab3
refs/heads/main
2023-06-13T06:40:43.855256
2021-07-01T02:03:25
2021-07-01T02:03:25
373,853,320
0
0
MIT
2021-06-04T13:38:26
2021-06-04T13:38:26
null
UTF-8
Python
false
false
658
py
class TradeMarket: """ The trade information with price and amount etc. :member subUid: sub user ID. accountType: activation: sub user account state for given accountType. """ def __init__(self): self.sub_uid = "" self.account_type = "" self.activat...
214b3914aab920368717b8b7efce2aa7628cfc34
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/benchmarks/tree-491.py
b791356b5b8ce529fe2fb5cf44c992b2430b4224
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: return self.left.insert(x) elif x > self.value: if self....
e73e71b19defdf97b66220f6612d3d90b742c593
954e69e23e10e18d6f8ac721d8e42d6aabceb9ab
/topytorch_all.py
c9c65555052d46e5aa3dce65220f004f795fe386
[]
no_license
jie311/2018--ZJUAI--PyramidBoxDetector
53fc001d6e60fdc67d22ab0864ed1b574c53c182
cc9b87b5082df65704a24117ff7136f9d077f49e
refs/heads/master
2022-09-09T02:30:05.219093
2020-05-28T07:37:59
2020-05-28T07:37:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
# pdpd输入格式的txt pdfile = './final_all.txt' # pytorch输入格式的txt ptfile = './final_all_pt.txt' f = open(pdfile, 'r') f_pt = open(ptfile, 'w') lines = f.readlines() i = 0 rect = 0 total = 0 while i < len(lines): if 'jpg' in lines[i]: im_id = lines[i].rstrip() # print(im_id) num = int(lines[i + 1...
249ab99aec490d4e6164883dbd8dea5220340a17
19d6bddc562b8cc3c7a6e67465f7601c74979e05
/results/190902/failed/lifelong-stochastic-tight-big_h-11_w-11/stochastic-tight-big.py
9b63dc6b158b73d05568948f1f0b3b6fa474c43e
[]
no_license
SuReLI/llrl
3bca1d1c755e5c59a5d242c18df997ed17f546d0
5f581cdded3cdecf69a8af76dc624494d82a4034
refs/heads/master
2023-01-08T04:04:28.358563
2020-11-06T10:27:33
2020-11-06T10:27:33
169,303,041
9
3
null
null
null
null
UTF-8
Python
false
false
3,358
py
""" Lifelong RL experiment in constant transition function setting """ import numpy as np from llrl.agents.rmax import RMax from llrl.agents.lrmax import LRMax from llrl.agents.maxqinit import MaxQInit from llrl.agents.lrmaxqinit import LRMaxQInit from llrl.utils.env_handler import make_env_distribution from llrl.exp...
6fdf82764e7bedb0106b8819a6f2767a11903402
e315e9ad3c77289702517ebf464f8d8d8efcaf90
/LGTVRemote/PythonistaKit.framework/pylib/Cookie.py
68d989383e053a126368a37b2851b709104ee722
[]
no_license
Megarushing/LGTVRemote
856123c7907777fe1cbbd431669aaa5e5490746c
abc5e92fa91cd41df68104df7dc9d13270914550
refs/heads/master
2020-03-23T12:51:42.635735
2018-08-10T19:48:40
2018-08-10T19:48:40
141,586,628
2
0
null
null
null
null
UTF-8
Python
false
false
25,822
py
# #### # Copyright 2000 by Timothy O'Malley <[email protected]> # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software # and its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies and that ...
6dcec5b996d8a262227be3e7686fc90e5ef05185
fc5816b2ba73124a4744d08b7acf8f62ced66640
/timer.py
ec255d136560e92c284404460b1a319a77e14567
[]
no_license
rkdarst/fitz
51e2b9e28a36ffe2b58f49ff36a4593ca55c5045
b2ac6aaff47217f40ac39042d27ffd130b8a36a5
refs/heads/master
2016-09-05T17:20:52.187546
2015-05-16T10:49:14
2015-05-16T10:49:14
22,289,724
0
0
null
null
null
null
UTF-8
Python
false
false
2,755
py
# Richard Darst, 2006 """Provides a stopwatch for code. Classes ======= There is a class defined called Timer. It has the following methods: __init__ -- argument is `clock`, which is the timing function to use for this timer. It defaults to proctime. reset -- zero the stopwatch. The getrusage system ...
16a3fc07f5076c8209e850bf5fae219bc5f9d24a
a718de5d51c8d430e791aca6092669c04548fd64
/Census-Analyser-master/census_analyser/test_census.py
a1d7d9093033bac09637e510c928fb25d4e80fa1
[]
no_license
santoshikalaskar/Basic_Advance_python_program
d0fef4134ed4b14f84ff05a3b37e1773c111a2d1
84df5c336d5304c3c727102194ba62417640643a
refs/heads/master
2023-01-22T15:06:24.909145
2020-12-02T14:01:29
2020-12-02T14:01:29
314,511,681
0
0
null
null
null
null
UTF-8
Python
false
false
4,451
py
import pytest from stateCensusAnalyser import CSVStateCensus, SortData, Mapping from custom_exceptions import ( FileIsNotCSVTypeException, EmptyFileException, InvalidDelimiterException) sort_ref = SortData() map_ref = Mapping() class TestCensus: ...
0c80371e2bfa26e44298ef6ee0467de3c1f87c35
d697c1d45e96bd440be9c17ab14243a5882b1f52
/qianfeng/常用模块/Tkinter/Button.py
b271d275b4103dc54132277c710592fefe06f946
[]
no_license
ithjl521/python
9eeda2e60dda97ee36e8764c06400eb12818689f
f4fe50799501c483cb64445fd05ee0f30f56576c
refs/heads/master
2020-07-12T23:10:53.608276
2019-11-08T08:59:35
2019-11-08T08:59:35
204,931,359
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
import tkinter def fun(): print('hello word') win = tkinter.Tk() win.title('title-hjl') win.geometry("400x400+200+50") # 创建按钮 button = tkinter.Button(win, text='按钮', command=fun, width=10, height=10) button.pack() button2 = tkinter.Button(win, text='按钮', command=win.quit) button2.pack() win.mainloop()
ff5da7da6b07126320c3f20bf185a5bb97f29a76
45edff14271724c5bf27e62e96eeb635840eae22
/DeepLearning/tensorflow/10-1验证码生成.py
088f13b02cdcbe8d829ad08df6367e5e7919adc9
[]
no_license
DaiJitao/machine_learning
1e41208dc94836a97e57a4b0f5778f8da2bb81d4
49e1db9ecbfbf886a11ce416eea402d214cf2049
refs/heads/master
2021-06-25T23:52:06.066315
2021-02-07T16:17:50
2021-02-07T16:17:50
209,712,507
3
1
null
null
null
null
UTF-8
Python
false
false
1,595
py
# coding: utf-8 # In[1]: # 验证码生成库 from captcha.image import ImageCaptcha # pip install captcha import numpy as np from PIL import Image import random import sys from DeepLearning.utils import mkdir number = ['0','1','2','3','4','5','6','7','8','9'] # alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m'...
ea796738c0ea8c09243d2bef06d9183481be9d08
d2f7471c1429f1ca454bb4cc982bbbecc31f8160
/app/conf/wsgi.py
9cc41bf59a4f0f8c847660a80aebaaa9ea5625f6
[ "MIT" ]
permissive
HenriqueLR/hangman-game
1e442735f688c4e0b2ada6f2208360a01e0df353
6cb29ae1ab666af0d6b054b2e1d598ebb5ff8db3
refs/heads/master
2021-08-22T03:39:08.156486
2017-11-29T05:08:56
2017-11-29T05:08:56
108,403,950
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for app project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "conf.settings_production") from django.co...
baaea832d2de21fc9bdca57ef60c88bc7b43cf92
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/website_sale/models/product_image.py
eea9afb69671067f39780fa6041a4031d9e785e0
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
2,699
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, tools, _ from odoo.exceptions import ValidationError from odoo.addons.website.tools import get_video_embed_code class ProductImage(models.Model): _name = 'product.image' _...
c227bd7e8a5d2110d0ff22a4bd3d177ce65344de
d8db486c6c0e4f7c4da3dd9d8752a2de0174a1d6
/test/apiv2/rest_api/v1_test_rest_v1_0_0.py
acd6273ef57d7afcf195aca5cd60f67e8b9c27dd
[ "Apache-2.0" ]
permissive
isabella232/podman
49c10ca0df99bbc4362b8ec284b43bf05c38cca8
dcd498a6885f0293934214af0c6fc2d3c7717bd5
refs/heads/master
2023-03-07T23:36:51.958197
2020-11-18T15:59:41
2020-11-18T15:59:41
314,002,564
0
0
Apache-2.0
2021-02-23T16:35:32
2020-11-18T17:06:49
null
UTF-8
Python
false
false
7,662
py
import json import os import shlex import signal import string import subprocess import sys import time import unittest from collections.abc import Iterable from multiprocessing import Process import requests from dateutil.parser import parse PODMAN_URL = "http://localhost:8080" def _url(path): return PODMAN_UR...
e4d23a56aa95cac0d11bf916aabdb1ea0d1d364c
4dd1d8fa59e20061e2c12e540fc52b1b305e575b
/source/sims/s286/double-harris-ic.py
ba4ee31039abd673c146d855b94be5ecfb63344d
[ "MIT" ]
permissive
ammarhakim/ammar-simjournal
f63521906a97d55ab290a5960d94758139944c89
5019f4723e20db80a20db6f2bd454c2fd3241412
refs/heads/master
2023-06-08T08:18:11.722779
2023-06-02T15:06:43
2023-06-02T15:06:43
204,050,516
3
3
null
2022-02-01T16:53:13
2019-08-23T18:28:44
Lua
UTF-8
Python
false
false
1,554
py
from pylab import * import numpy Lx = 100.0 Ly = 50.0 NX = 200 NY = 100 B0 = 0.1 me = 1.0 mi = me*25.0 qe = -1.0 qi = 1.0 dlambda = 1.0 n0 = 1.0 ninf = 0.2*n0 psi0 = B0 dx = Lx/NX dy = Ly/NY X = linspace(0.5*dx, Lx-0.5*dx, NX) Y = linspace(0.5*dy, Ly-0.5*dy, NY) XX, YY = meshgrid(X, Y) Bx = numpy.zeros((NX, NY), nu...
f1f6ea249402b6419fc6f324019956dc69813c50
69633bcb719e5caa2859c30d38f0fb0ff33b05a7
/app/api/urls.py
8ab6b71db340bc097ea2d0ae7dd19e923cae9533
[]
no_license
Zarinabonu/employee_version_2
e0ed3df43633241774686b7eaba01fbf2bebfa1a
991d8fce23d3736df0271c3ca3e380a13ab6e5c0
refs/heads/master
2022-11-26T03:22:47.067982
2019-12-07T08:14:36
2019-12-07T08:14:36
223,534,726
0
0
null
2022-11-22T04:50:39
2019-11-23T05:12:50
Python
UTF-8
Python
false
false
498
py
from django.urls import include, path urlpatterns = [ path('group/', include('app.api.group.urls')), path('employee/', include('app.api.employee.urls')), path('salary/', include('app.api.salary.urls')), path('accountant/', include('app.api.accountant.urls')), path('attendance/', include('app.api.a...
deda7c2da31cde83eeb0a317505f79f8db6fb75e
326c6ad82d59bb7509c02c76695ea9035993da70
/lib/modules/powershell/situational_awareness/network/powerview/set_ad_object.py
2a0e745b9ae829fc42345a0a3330e60ab4217790
[ "BSD-3-Clause" ]
permissive
Arvanaghi/Empire
0c08bd7ddfba9be10e96bb0834b8ce3bc829059b
fd168ebf8acb1c2ee59d56f2c393ebd7a297603e
refs/heads/master
2021-01-20T14:15:34.864581
2017-08-05T17:51:44
2017-08-05T17:51:44
99,435,848
2
0
null
2017-08-05T16:50:16
2017-08-05T16:50:16
null
UTF-8
Python
false
false
4,526
py
from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Set-ADObject', 'Author': ['@harmj0y'], 'Description': ('Takes a SID, name, or SamAccountName to query for a specified ' 'domain ob...
0b2ea839276a4ec36c3be5661e2ffc16dd965171
c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123
/venv/lib/python3.6/site-packages/pyomo/core/base/suffix.py
aa87df3782834ac58feecd227e58f1e7c93b5655
[]
no_license
igorsowa9/vpp
a27520f19a54d7490534016ded9cd66f4ef5385b
ea91e3b2db921e7b1a450d243f39dbcf61231107
refs/heads/master
2021-04-30T03:28:56.642244
2019-09-16T09:01:49
2019-09-16T09:01:49
121,514,524
3
1
null
null
null
null
UTF-8
Python
false
false
15,481
py
# ___________________________________________________________________________ # # Pyomo: Python Optimization Modeling Objects # Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of Sandia, LLC,...
b988547aeade1c42cfea0da062e3ba6a62e711c9
c2fb6846d5b932928854cfd194d95c79c723f04c
/python/coursera_python/MICHIGAN/wikicrawler/fin5.py
6ca16eb862d2f226ef4bed731e6432b820b1b03d
[ "MIT" ]
permissive
Jimut123/code-backup
ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59
8d4c16b9e960d352a7775786ea60290b29b30143
refs/heads/master
2022-12-07T04:10:59.604922
2021-04-28T10:22:19
2021-04-28T10:22:19
156,666,404
9
5
MIT
2022-12-02T20:27:22
2018-11-08T07:22:48
Jupyter Notebook
UTF-8
Python
false
false
3,200
py
# To run this, you can install BeautifulSoup # https://pypi.python.org/pypi/beautifulsoup4 # Or download the file # http://www.py4e.com/code3/bs4.zip # and unzip it in the same directory as this file import sqlite3 conn = sqlite3.connect('wiki1.sqlite') cur = conn.cursor() cur.executescript(''' CREATE TABLE IF NOT ...
fa8309731559f5f28c23907d10d8809df78cf6ea
7142c3941481e661075154d714a29d5e283a3074
/KeywordArguments.py
7238526401ef054445d4af584ad76d295e46f26a
[]
no_license
nirajan5/Demo
5642a9669fedcca47b0304ac423c0b3e6333b8e2
2451875bf5698cd38af69baa117c14099951bc9f
refs/heads/master
2023-07-27T17:04:03.689673
2021-09-15T11:14:25
2021-09-15T11:14:25
406,732,005
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
# function func is called with the name and message as the keyword arguments def func(name, message): print("printing the message with", name, "and ", message) # name and message is copied with the values Mike and hello respectively func(name="Mike", message="hello")
baf79214692455db57861792b2f1ca24f8f899e9
7d8022661a756f77f715ee4d099fb17cb9da671a
/feature/zoo/Skewness_Daily.py
65ff2a7ce6ebc641dccfe4e1a9bbef343ece64da
[]
no_license
lxj0276/Quant-Util
a7d70d88fc47eb16a08149faefa7b128c01c670e
2706ecba72a293ee01105ad22508a8d6b20e1394
refs/heads/master
2020-04-25T13:40:36.700892
2018-10-15T04:35:54
2018-10-15T04:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
from feature.base import NonPersistentFeature from feature.ops import * from feature.zoo.ChangeRate_Daily import ChangeRate_Daily class Skewness_Daily(NonPersistentFeature): description = '个股历史22日收益率的偏度' formula = 'Skewness = E[(R)^3], R=(r-mu)/sigma ' granularity = 'day' def _create_feature(self, in...
42d4e14bfa94bd62f6a98bae988d6c52e6d4f11d
12139fb270a099b01e4d68ce66aa7482f9eed189
/backend/delivery_order/migrations/0001_initial.py
b001253df4ca0fca357aab50cc409aed84cd07ea
[]
no_license
crowdbotics-apps/himi2-25342
610a85cba7221f3412de3ee3e00af182b9cb2fd4
ba9c7c90e42984b26d234a281ea50f2738b2146f
refs/heads/master
2023-04-03T05:05:43.969021
2021-03-29T13:35:53
2021-03-29T13:35:53
352,651,097
0
0
null
null
null
null
UTF-8
Python
false
false
2,609
py
# Generated by Django 2.2.19 on 2021-03-29 13:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('delivery_user_profile', '0001_initial'), ('menu', '0001_initial'), ] operations = [ ...
e48dd44a6f32d70bb408a6cef32b370ce27ed821
711756b796d68035dc6a39060515200d1d37a274
/output_cog/optimized_35426.py
f2b6425c5719c07256d34c3c3090f1c6c421232f
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
10,841
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
3b4c3ebcc95f6891385346ebc2ece840427a93c5
9c3f16a3474948468215a0bb8de481b685acf0b7
/pwkit/environments/casa/util.py
0c44962c7d305ee183f9370cd5831d29460b900a
[ "MIT" ]
permissive
BunnyBuster/pwkit
4b738ecddf2bb4fae26a73d5a5e62cad96d5b87f
ce20bf4b0d54aa9bf2ebbaadadadeb1d4eb88ba2
refs/heads/master
2021-01-17T22:18:28.541008
2015-08-06T19:31:10
2015-08-06T19:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,772
py
# -*- mode: python; coding: utf-8 -*- # Copyright 2015 Peter Williams <[email protected]> and collaborators. # Licensed under the MIT License. """pwkit.environments.casa.util - core utilities for the CASA Python libraries Variables: INVERSE_C_SM - Inverse of C in s/m (useful for wavelength to time conversion) INVE...
f22e0886db6f9382a5e20f45bcfbf625ccc3c4b8
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc076/B/3550700.py
8f96f6d28852e7726701218eb446f377441ebaf7
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,186
py
# -*- coding: utf-8 -*- n = int(input()) ax = [] ay = [] for i in range(n): x,y = map(int, input().split()) ax.append((x,i)) ay.append((y,i)) ax.sort() ay.sort() edge = [] for i in range(n-1): v = ax[i][1] u = ax[i+1][1] c = abs(ax[i][0]-ax[i+1][0]) edge.append((c,v,u)) ...
a7bdf555c5c6d3f96279b3733f29b9c8b469e4e2
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc114/C/4911470.py
7120757865868e9a23be1abac95852d41aafe750
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
428
py
n=int(input()) import bisect import itertools l=len(str(n)) ans=[] num=[] x=['3', '5', '7'] for k in range(3,l+1): m=list(itertools.product(x, repeat=k)) num.extend(m) for i in range(len(num)): y=num[i] if '3' in y and '5' in y and '7' in y: number='' for j in range(len(y))...
4bfae37ee37f293153a442a5301b4ea1d1887493
7cd0b68c088bf8d42e048c3e4c2b3428a914b988
/mk-ckeck-ints-py2.py
b5e236d2cf8f7ab5e2b24ee8432412a594fb0cd9
[ "Apache-2.0" ]
permissive
mykespb/pythoner
9603904be46298f52ce54f7e421889e6d88b1c8e
5049b20018890d18d9fd8076ad13f176e1f037e3
refs/heads/master
2023-07-26T07:17:42.848231
2023-07-23T19:30:20
2023-07-23T19:30:20
42,587,225
1
0
Apache-2.0
2022-07-06T21:09:43
2015-09-16T12:59:54
HTML
UTF-8
Python
false
false
3,741
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # mk-check-ints.py (c) myke 2015-11-07 # check first integer predefined refs for i in range (-10, 300): a = i+0 b = i+0 if a is b: print i, "equals" else: print i, "not equals" -10 not equals -9 not equals -8 not equals -7 not equals -6 no...
781480b6b7c9c10bf5e38599c8db5a2b48975330
4e3eedbf46a032c42665c3b212a48bc30652c1ed
/day09/03 作业.py
0f6da2b7095362708f20d35f0057463e18209925
[]
no_license
zranguai/python-learning
7eb2a842f6f4624f550ee1c4ff7cd64ac948097a
acf19c9f85eec4bee3e3e3a00712c4a53aa9d249
refs/heads/master
2023-03-24T14:36:32.248437
2021-03-15T08:24:01
2021-03-15T08:24:01
347,874,326
1
0
null
null
null
null
UTF-8
Python
false
false
4,475
py
# # 1.整理函数相关知识点,写博客。 # # 2.写函数,检查获取传入列表或元组对象的所有奇数位索引对应的元素,并将其作为新列表返回给调用者。 # def odd_element(li): # l1 = li[1::2] # return l1 # # # l2 = [1, 2, 3, 6, 5, 8] # tu2 = (1, 2, 3, 6, 5, 8) # res = odd_element(l2) # res1 = odd_element(tu2) # print(res) # print(res1) # 3.写函数,判断用户传入的对象(字符串、列表、元组)长度是否大于5。 # def judge_leng...
55c0ddc10dfebaabc5ebad6bab71d2634378ec9e
887811408e187da2422900a31859925d59d4d6ec
/UniquePaths.py
5e5e9cbb532d75cf1af78435b7bb02a6042e8d8b
[]
no_license
adityachhajer/LeetCodeJuneChallenge
5a998baf6dc5207c56c48ccd36c82ef44f41217c
8ed8b0c012691387e417bcf45009debe4d5f8551
refs/heads/master
2022-11-12T16:40:25.360578
2020-07-01T06:31:51
2020-07-01T06:31:51
268,749,503
2
0
null
null
null
null
UTF-8
Python
false
false
686
py
class Solution: def solve(self,n,m,t): if n-1==0 and m-1==0: return 1 elif t[n][m]!=0: return t[n][m] else: if n - 1 == 0 and m - 1 != 0: t[n][m]=self.solve(n, m - 1, t) return t[n][m] elif n - 1 != 0 a...
a4121b364c978347da27194b9061f3bd495259a0
871b3fa6647983570ecc0a8f4764dd2af4765427
/roxanne/main.py
08b439409202f5e1b432bc061bb3ebca88dcd4b2
[]
no_license
kwarwp/anita
5eaa8f6b587bdc8d702aeae775803bec60856fbc
b813492175365a0f7b8934c710cc09b0ff26763f
refs/heads/master
2022-10-17T01:02:37.845442
2022-09-26T15:05:06
2022-09-26T15:05:06
216,602,314
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
# anita.roxanne.main.pyhttps://i.imgur.com/u1dActr.jpgV from _ spy. violino.main import cena,elemento,texto, STYLE STYLE["width"]=600 STYLE["heigth]= "200px" linkdatalita="https://i.imgur.com/6rLmVNz.jpg" linkdocolete="https://i.imgur.com/PV7WWPJ.jpg" linkquartodatalita="https://i.imgur.com/wdKENXo.jpg" linkdosubmarino...
f3a01b868d231358e9f762b09e2d8400c33d7e03
b39d9ef9175077ac6f03b66d97b073d85b6bc4d0
/Torisel_WC500039912.1.py
e171724fdab26401b59865112ccd9ffbabce2d73
[]
no_license
urudaro/data-ue
2d840fdce8ba7e759b5551cb3ee277d046464fe0
176c57533b66754ee05a96a7429c3e610188e4aa
refs/heads/master
2021-01-22T12:02:16.931087
2013-07-16T14:05:41
2013-07-16T14:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,874
py
{'_data': [['Common', [['Immune system', u'Diabetes mellitus 10 (3,1) 2 (0,6) Dehydrering 17 (5,3) 8 (2,5) Hypokalcemi 21 (6,5) 5 (1,6) Hypofosfatemi 26 (8,1) 14 (4,4) Hyperlipidemi 4 (1,2) 0 (0,0) Psykiska Mycket vanliga Insomni 45 (14,0) 1 (0,3) st\xf6rningar Depression 16 (5,0) 0 (0,0)'], ...
[ "daro@daro-ThinkPad-X220.(none)" ]
daro@daro-ThinkPad-X220.(none)
4049a02fd60ab4a249f4d40702531b9eafed09fd
a9fe1b5c320cdef138ac4a942a8b741c7f27de7c
/LC742-Closest-Leaf-in-a-Binary-Tree.py
f3a487514bfb862775af04044d8e89b47e295321
[]
no_license
kate-melnykova/LeetCode-solutions
a6bbb5845310ce082770bcb92ef6f6877962a8ee
ee8237b66975fb5584a3d68b311e762c0462c8aa
refs/heads/master
2023-06-28T06:35:33.342025
2021-07-30T06:59:31
2021-07-30T06:59:31
325,106,033
2
1
null
null
null
null
UTF-8
Python
false
false
4,287
py
""" Given a binary tree where every node has a unique value, and a target key k, find the value of the nearest leaf node to target k in the tree. Here, nearest to a leaf means the least number of edges travelled on the binary tree to reach any leaf of the tree. Also, a node is called a leaf if it has no children. In ...
fb8a1445699331f925683dbd999d5a4054e78cd8
6d45ba4adff74b2cb1b6764dc684f37407b41ba9
/PirateBoxMessageBoard/settings.py
1193cea6cdedb820fe1d514892d7e3735830b66f
[]
no_license
bussiere/PirateBoxMessageBoard
bbf478af1886caf811f38802bde5528593bba2c4
8626a8a44d5bdbf06486fac65682a50e4209396d
refs/heads/master
2021-01-23T11:56:22.905167
2013-03-08T16:33:08
2013-03-08T16:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,926
py
# Django settings for DrakBus project. try : import dj_database_url except : pass import os.path PROJECT_ROOT = '/home/pi/PirateBox/PirateBoxMessageBoard' # The '/..' is needed to work with Django 1.4+, remove for older versions. DEBUG = False TEMPLATE_DEBUG = DEBUG INTERNAL_IPS = ('127.0.0.1',) ADMINS = ...
532900bebd339267ebc10dfaff3592998f41e76f
5b22437902bffa0f62b375d56bfb2b4485ef43f0
/src/video_inpainting/create_padded_masked_video_dataset.py
2550634c0f8d379f97bcce53a9e71e7662817ff7
[ "MIT", "CC-BY-SA-3.0", "CC-BY-SA-4.0" ]
permissive
JohnsonzxChang/devil
eafa09f5258b4f33eda9564077814c6e63473a0f
296115cd5f4952c7dc65bbcaaf2d1d5c55ef5d35
refs/heads/public
2023-07-03T12:07:58.917440
2021-08-10T00:06:38
2021-08-10T00:06:38
555,846,483
1
0
MIT
2022-10-22T13:22:43
2022-10-22T13:22:42
null
UTF-8
Python
false
false
820
py
import os from .padded_masked_video_folder_dataset import PaddedMaskedVideoFolderDataset from .padded_masked_video_tar_dataset import PaddedMaskedVideoTarDataset def create_padded_masked_video_dataset(frames_dataset_path, masks_dataset_path): if os.path.isdir(frames_dataset_path) and os.path.isdir(masks_dataset_...
06e6a38e865091a553dcec1b2b286abf65848f83
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_344/ch53_2019_03_31_15_57_40_910628.py
842c153c78e87eff9b5ce32522a0897f56a27f48
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
def inverte_lista(lista): i=0 while i<len(lista): lista=lista[::-1] return lista
ba50dd86cdaa99cd34695548a76e5f6592516bc7
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2696/60765/305370.py
3d1f7821f1511367fc86d5ab1dbfcfe888cd8ca5
[]
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
1,954
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import math import sys import re from collections import * from itertools import * from functools import * def solve(): # =list(map(int,input().split())) # =int(input()) # def root(i): # if unions[i]<0: # return i # else: # ...
175a95df1b171942b913d77561029a1915f14dea
7162c36b73d97c82b165d6fd14d568552a0269d8
/setup.py
37f71d57aab9125965f253b2077c743f7b916d16
[]
no_license
welbornprod/findfunc
d90cbe0110a0f9b656b0ff70846e0c29a583f703
0247cba193fb3193c60399c3d2f9910e85319493
refs/heads/master
2021-01-19T09:29:10.707496
2019-04-02T23:14:08
2019-04-02T23:14:08
87,763,285
0
0
null
null
null
null
UTF-8
Python
false
false
2,355
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ FindFunc Setup -Christopher Welborn 04-09-2017 """ try: from setuptools import setup except ImportError: from distutils.core import setup # Try using the latest DESC.txt. shortdesc = 'Finds function definitions/signatures from the command line.' try: wi...
46cb1c572815f8a6d20635acff1d237fcd0d8db4
215bf668b69b5ebea1b538be217a7cd91db1772a
/bin/condor-compute-psd
7e2e02878351d44edbb14260ba2a9af208a2b15f
[ "MIT" ]
permissive
reedessick/exposure
a2fce2e0a2ff059200d0498ae68e81a6e2bb1b9c
10aeb1fb29befbbb305d65c379d983fd8bad5693
refs/heads/master
2022-04-05T09:36:15.969152
2020-02-28T23:24:05
2020-02-28T23:24:05
105,042,945
0
0
MIT
2019-08-08T16:09:08
2017-09-27T16:35:52
Python
UTF-8
Python
false
false
6,825
#!/usr/bin/env python __doc__ = "a very basic wrapper that schedules `compute-psd` jobs. The resulting DAG should run to completion if everything worked correctly (i.e. nodes should not raise exceptions" __author__ = "Reed Essick ([email protected])" #------------------------------------------------- import os im...
42c5f9db30567097bc2bfb0f4424be748d2301fc
0b5be4b9162c19cf0d98972e52ce80aa8af47f0a
/Thread/thread/concurrent_futures.py
5b0040e31097304271f9bf34a179dee1e60395c7
[]
no_license
Air-Zhuang/Test35
374c974a2a7693fff21be81278c1bb59a050f7ee
d9f92b7a025c91b7503f02afc896ac769f818a84
refs/heads/master
2021-06-19T12:36:13.383878
2019-09-21T08:02:43
2019-09-21T08:02:43
147,629,865
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
''' 用于线程池和进程池编程(顶层的包,高度封装) 主线程中可以获取某一个线程的状态或者某一个任务的状态,以及返回值 当一个线程完成的时候我们主线程能立即知道 futures可以让多线程和多进程编码接口一致 ''' from concurrent.futures import ThreadPoolExecutor,as_completed,wait import time def get_html(times): time.sleep(times) print("get page {} success".format(times)) return str(times) ...
c97c300158c4f94cf5638626ee2d67678df0fbee
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/network/v20200401/get_virtual_network_gateway_learned_routes.py
dc0c3a5ca849b2e3f6452ce8aa86df4484b07682
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
2,485
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
c52d224e402e87d8d7bbd7f8372abf8d931c4167
02338bb8111fc1aa88e830ac09a11664720eb2d4
/tmp/azure_rm_jobversion.py
544592c6f9d2166c6ff192b0e8a5c5bd17aecd3a
[]
no_license
Fred-sun/fred_yaml
a49977b0e8505c7447df23dd80c7fef1be70e6bc
295ca4cd2b59b8d2758f06eb7fd79920327ea524
refs/heads/master
2023-04-28T05:51:56.599488
2023-04-25T13:52:10
2023-04-25T13:52:10
131,376,340
0
1
null
2020-07-06T14:22:46
2018-04-28T05:34:49
TSQL
UTF-8
Python
false
false
7,350
py
#!/usr/bin/python # # Copyright (c) 2020 GuopengLin, (@t-glin) # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
d4160e38a5fe5b321cdff170039b55d5691b1787
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2692487_0/Python/Sibi/osmos.py
358f3037cb7d86476c1f1042cd07a622eda406f5
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,084
py
from math import log def solve(mySize,sizes): if len(sizes) == 0: return 0 while sizes[0] < mySize: mySize = mySize + sizes.pop(0) if len(sizes) == 0: return 0 if sizes[0] < 2*mySize-1: return 1+solve(2*mySize-1,sizes) for insertions in range(1,100): if mySize*(2**insertions)...
16b9d3fbc328cf5c773764022eb697014b9ad4bb
ccc1bb07a8fbf0f7ef7dc6f8fa5ce4d215dba847
/Scripts/sims4communitylib/utils/sims/common_age_utils.py
ea831e676a7ea2d6b81436c44be87b3c2bc0888c
[ "CC-BY-4.0" ]
permissive
JaidenBettencourt/Sims4CommunityLibrary
9ab9b6b2173c4cbf0813a774261ff617d556f109
6818fee38499b66748d3118037b6dbfe17fb571a
refs/heads/master
2022-12-28T04:09:34.034010
2020-09-29T20:34:01
2020-09-29T20:34:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,786
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from pprint import pformat from typing import Union from s...
4711c9358a365a673a560438a3d01eaa7bc1cdcd
abd9537f8b90a990e195ded5f9fafdcc108d2a48
/swea/d4/1861/1861_june.py
8790efff9e44731cc0c47a060c8eb6dc902bcd0a
[]
no_license
ohdnf/algorithms
127171744631406c1d08cc2583aa569a094fa2cd
6f286753dab827facc436af4f2130f11dad2d44f
refs/heads/master
2023-08-09T11:19:56.445351
2021-08-31T13:11:46
2021-08-31T13:11:46
236,180,615
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
import sys sys.stdin = open('input.txt') sys.stdin = open('n1000.txt') dx = [0, 1, 0, -1] dy = [1, 0, -1, 0] t = int(input()) for test_case in range(1, t+1): n = int(input()) room = [list(map(int, input().split())) for _ in range(n)] v = [0] * (n**2 + 1) for i in range(n): for j in range(n): ...
e410945fdc90dfec260540d9e96b5aa39d3d487e
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/bootstrap/blueprint.py
cce0f666235dc8c6007c3badae3b258b1efdbb60
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
349
py
from __future__ import unicode_literals from fossir.modules.bootstrap.controllers import RHBootstrap from fossir.web.flask.wrappers import fossirBlueprint _bp = fossirBlueprint('bootstrap', __name__, template_folder='templates', virtual_template_folder='bootstrap') _bp.add_url_rule('/bootstrap', 'index', RHBootstr...
856bafa4536d68bf54de8ad934805089bf2d0897
0bce7412d58675d6cc410fa7a81c294ede72154e
/Python3/0303. Range Sum Query - Immutable.py
4d1cb2c5dbaf4b75edcda2762e7d6aa9aa227e01
[]
no_license
yang4978/LeetCode
9ddf010b0f1dda32cddc7e94c3f987509dea3214
6387d05b619d403414bad273fc3a7a2c58668db7
refs/heads/master
2022-01-15T04:21:54.739812
2021-12-28T12:28:28
2021-12-28T12:28:28
182,653,666
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
class NumArray: def __init__(self, nums: List[int]): self.temp = [0] for i in nums: self.temp.append(self.temp[-1]+i) def sumRange(self, i: int, j: int) -> int: return self.temp[j+1]-self.temp[i] # Your NumArray object will be instantiated and called as such: # obj = NumA...
d956771952eed80b045a0369c29b226eac1ad680
a9f3ce38fa6bac4317da099788e5e58dadade2a3
/karlooper/web/application.py
fd6a11591d410cabc640f67767af37e63bc7874a
[]
no_license
MoiraJune/karlooper
2763e40b52fc37f81d23ba2766b4c392242402e6
89ef82cb96070360ebee2bcb398c972b1aef4e58
refs/heads/master
2020-06-25T10:19:24.405902
2017-08-04T11:09:39
2017-08-04T11:09:39
96,974,844
1
0
null
2017-08-04T09:05:17
2017-07-12T06:49:20
Python
UTF-8
Python
false
false
24,623
py
# -*-coding:utf-8-*- """ application ~~~~~~~~~~~ Use this model to initialize web application. Usage ===== >>> from karlooper.web import IOModel >>> from karlooper.web.application import Application >>> application = Application(handlers={}, settings={}, port=8080, log_conf="./config.log") >>> application.run(io_mod...
b93689c0be7a720edd4a7d4908073df64f921dc6
29a4c1e436bc90deaaf7711e468154597fc379b7
/modules/ieee/doc/ulpdist.py
ac366398b04284aadd5b1cb7da038ae261d73daf
[ "BSL-1.0" ]
permissive
brycelelbach/nt2
31bdde2338ebcaa24bb76f542bd0778a620f8e7c
73d7e8dd390fa4c8d251c6451acdae65def70e0b
refs/heads/master
2021-01-17T12:41:35.021457
2011-04-03T17:37:15
2011-04-03T17:37:15
1,263,345
1
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '2', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'typename boost::result_of<nt2::meta::arithmetic(T)>::type', }, 'simd_types' : ['real_'], 'type_...
91e45e105497e90a01f63258bc61dd9638245813
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc121/B/4971858.py
85a9a317171327639376a274c3b93a09195fc306
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
284
py
N,M,C=list(map(int,input().split())) B=list(map(int,input().split())) a=[] for i in range(N): a.append(list(map(int,input().split()))) cnt=0 for k in range(N): sum=0 for j in range(M): sum+=a[k][j]*B[j] if sum+C > 0: cnt+=1 print(cnt)
7871e98f8480ddaec7ab0d3d64ff3ecdf9d6e751
4ca44b7bdb470fcbbd60c2868706dbd42b1984c9
/20.11.23/백준_1018.py
125a30305d44671fe2572d9e6f4d2a4da5de720e
[]
no_license
titiman1013/Algorithm
3b3d14b3e2f0cbc4859029eb73ad959ec8778629
8a67e36931c42422779a4c90859b665ee468255b
refs/heads/master
2023-06-29T17:04:40.015311
2021-07-06T01:37:29
2021-07-06T01:37:29
242,510,483
2
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
import sys; sys.stdin = open('text3.txt', 'r') # def check(x, y): # temp = 0 # color = '' # for p in range(8): # for q in range(8): # if p == 0 and q == 0: # color = arr[x + p][y + q] # continue # if arr[x + p][y + q] == color: # ...
ed3f0747a03be29e372e99f9cf90afa6a0bcb387
19f698ab74cba74ae52c780f5986d273fb319308
/SWExpertAcademy/D5/1242.py
e82ef68270ba4d0834822e4878c2c2d888764f6f
[]
no_license
naye0ng/Algorithm
15023f1070eb7cc5faca9cf7154af2ecffab92c2
1e8848e3e2574b01dc239212ea084b0a4837bc03
refs/heads/master
2021-06-25T14:18:46.117411
2020-10-16T10:47:37
2020-10-16T10:47:37
149,326,399
2
0
null
null
null
null
UTF-8
Python
false
false
3,505
py
""" 1242.암호코드 스캔 """ import sys sys.stdin = open('input.txt','r') match = [[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]] T= int(input()) for test_case in range(1, 1+T): N, M = map(int, input().split()) # 중복되는 암호문 입력 안받음 empty = str(0)*M arr = [0]...
3bfc14d1d230a18045d9e8d9fb084c3c5c9a87a0
3fe1b6f36bfd02156f606cf90797d69b18dd19d2
/creme/utils/inspect.py
bf12fcf5404537a35e4d08489d98d2d98889f465
[ "BSD-3-Clause" ]
permissive
mihir-thakkar-ai/creme
a19a1975bb462a1a93046b6ea55830e88846cb88
008b0c1beb26b36b448fc3d04537e02e66d402b3
refs/heads/master
2022-12-18T01:15:18.132117
2020-09-15T20:17:16
2020-09-15T20:17:16
296,288,773
0
0
BSD-3-Clause
2020-09-17T10:04:27
2020-09-17T10:04:26
null
UTF-8
Python
false
false
1,404
py
"""Utilities for inspecting a model's type. Sometimes we need to check if a model can perform regression, classification, etc. However, for some models the model's type is only known at runtime. For instance, we can't do `isinstance(pipeline, base.Regressor)` or `isinstance(wrapper, base.Regressor)`. This submodule th...
58794e3389ada30651487ebcafdf441f1dd0d6f3
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/lint/tests/base.py
f624276e3be4c16d8acd1226e8f4e128812cbd2e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
295
py
def check_errors(errors): for e in errors: error_type, description, path, line_number = e assert isinstance(error_type, str) assert isinstance(description, str) assert isinstance(path, str) assert line_number is None or isinstance(line_number, int)
5547d118a16dcd0b4cebc4a30404d27ad74d3fe2
fca6a986e735843b667e3714b11cafaed0f390e8
/fastai2/text/models/core.py
235083d04a808132f5d60a270d60480a07014007
[ "Apache-2.0" ]
permissive
mbrukman/fastai2
2c631b515a13738800b5bcce781be6dac807368a
404383912503b69b244e175f3b26a06b532ee4bd
refs/heads/master
2020-11-27T17:59:33.125318
2019-12-21T08:22:48
2019-12-21T08:22:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,013
py
#AUTOGENERATED! DO NOT EDIT! File to edit: dev/33_text.models.core.ipynb (unless otherwise specified). __all__ = ['LinearDecoder', 'SequentialRNN', 'get_language_model', 'SentenceEncoder', 'masked_concat_pool', 'PoolingLinearClassifier', 'get_text_classifier'] #Cell from ...data.all import * from ..core im...
c98395864af6a107b993684c44803e2fb2b6fca7
2181d99f84f4f7556efb13ac203a533fc87f9acd
/tools/CodeGenerators/codegen/app/src/generated/Gui/ComboBoxes/LithologicUnitInBedComboBox.py
9ed3aae608989a0c741cc39df512c59f76b25e5c
[]
no_license
BackupTheBerlios/profilelogger-svn
0f80fd8f63c3b413dc06ecc6d2be623f8ae2cc8c
5ba067205316b0955f0c8876dd8b0f10672abc0a
refs/heads/master
2020-05-18T16:33:31.154612
2010-04-24T16:51:28
2010-04-24T16:51:28
40,822,739
0
0
null
null
null
null
UTF-8
Python
false
false
384
py
from InBedComboBox import * class LithologicUnitInBedComboBox(InBedComboBox): def __init__(self, parent, managementDialogClass, finderClass): DataSelectionComboBox.__init__(self, parent, LithologicUnitInBedManagementDialog, ...
[ "jolo@28dda339-3e7f-0410-9691-cab309f6cb01" ]
jolo@28dda339-3e7f-0410-9691-cab309f6cb01
98e8617fddd53b570991cb56f984fbf05598530a
34a2046714261a5e42692ab7a656eec708395243
/appcode/mri/results/create_nifti_from_raw_data.py
893307757154dbb38935566262c95113f314919d
[]
no_license
royshau/thesis
a64893ca25981bd8fff394161829d0147934a324
a02a8cfea9e00bd98289419eb9f7fb78c36c028e
refs/heads/master
2021-06-03T19:24:21.110455
2020-07-22T13:30:59
2020-07-22T13:30:59
115,911,615
0
0
null
2018-01-01T10:16:46
2018-01-01T10:03:25
Python
UTF-8
Python
false
false
6,904
py
# !/home/ohadsh/Tools/anaconda/bin/python import numpy as np import os from appcode.mri.k_space.k_space_data_set import KspaceDataSet from appcode.mri.data.write_nifti_data import write_nifti_data from appcode.mri.data.mri_data_base import MriDataBase from common.files_IO.file_handler import FileHandler from appcode.mr...
b65efc5b76e81a98e3d8dbd1d9eeb2f0c675189f
3940b4a507789e1fbbaffeb200149aee215f655a
/lc/399.EvaluateDivision.py
c17e9249c1acf2d9f8603f76a20ff582cbf7453c
[]
no_license
akimi-yano/algorithm-practice
15f52022ec79542d218c6f901a54396a62080445
1abc28919abb55b93d3879860ac9c1297d493d09
refs/heads/master
2023-06-11T13:17:56.971791
2023-06-10T05:17:56
2023-06-10T05:17:56
239,395,822
0
0
null
null
null
null
UTF-8
Python
false
false
3,013
py
# 399. Evaluate Division # Medium # 2633 # 209 # Add to List # Share # You are given equations in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating-point number). Given some queries, return the answers. If the answer does not exist, return -1.0. # The input ...
c2356c672e81c8d0028769668339da65ff1697aa
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/waf/webknight.py
d46383a64c36e0f5877762772612a77f656d3ac9
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
import re from config import HTTP_HEADER __product__ = "WebKnight Application Firewall (AQTRONIX)" def detect(content, **kwargs): headers = kwargs.get("headers", None) status = kwargs.get("status", None) detection_schema = ( re.compile(r"\bwebknight", re.I), re.compile(r"webknight", re....
4c18b17007a61eeb0415eb384a1b4980e476f0ba
0d01d65ed67faf09b31b6333013393194b4a25d0
/twitter.py
1bfef6c0550af908369c3cbe09c1674970e8f41f
[]
no_license
AshithaL/twitter-streaming
0d5b16c56c92810496f6b635b03024679cc2c10b
993b6e87fd1d546dcdde5c12db7e49791a5f5890
refs/heads/master
2022-11-09T02:52:17.843457
2020-06-15T04:43:41
2020-06-15T04:43:41
270,915,616
0
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
import socket import sys import requests import requests_oauthlib import json from sql_connection import conn # Replace the values below with yours ACCESS_TOKEN = '1252513694992330753-YpQY1SlyBWIN66ngHXeM8hcZWvvTeZ' ACCESS_SECRET = 'reoC4xZdgp3bqRPjTC2ptxn00vUPrftWlhprHOBIp29jA' CONSUMER_KEY = 'eLsiPuE8adtsJUt8hr0iMku...
66c5b2d003be821beb2127b0ffef1023020ef83a
4b44a299bafbd4ca408ce1c89c9fe4a449632783
/python3/14_Code_Quality/04_mocking/example_5/test_mymodule2.py
fee202b03daf17899388a56cf126c60e665c2088
[]
no_license
umunusb1/PythonMaterial
ecd33d32b2de664eaaae5192be7c3f6d6bef1d67
1e0785c55ccb8f5b9df1978e1773365a29479ce0
refs/heads/master
2023-01-23T23:39:35.797800
2020-12-02T19:29:00
2020-12-02T19:29:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from mymodule import rm from unittest import TestCase, mock class RmTestCase(TestCase): @mock.patch('mymodule.os') def test_rm(self, mock_os): rm("any path") # test that rm called os.remove with the right parameters mock_os.remove.ass...
31f19af81a8c9456a85f2bb8d9ab67906b28f744
a034d4ba39789e4a351112c46dd04a38180cd06c
/appengine/findit/findit_v2/model/atomic_failure.py
8c09489dd8dc8824de2e446a083c0238f3c8698b
[ "BSD-3-Clause" ]
permissive
asdfghjjklllllaaa/infra
050ad249ab44f264b4e2080aa9537ce74aafb022
8f63af54e46194cd29291813f2790ff6e986804d
refs/heads/master
2023-01-10T21:55:44.811835
2019-07-01T14:03:32
2019-07-01T14:03:32
194,691,941
1
0
BSD-3-Clause
2023-01-07T07:12:37
2019-07-01T14:45:29
Python
UTF-8
Python
false
false
3,725
py
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from google.appengine.ext import ndb from findit_v2.model.gitiles_commit import Culprit class FileInFailureLog(ndb.Model): """Class for a file mentioned...
176f55c02c04c05f69692175fb1e2ad43a67c3e1
ac39baffc572b72ddd4d25617014a51522ee30a8
/challenge29-34/simpledu/forms.py
dcdb80fff200e1000ecdcd852c6560cf019f5e08
[]
no_license
Yao-Phoenix/challenge
01d72a63eb6c144bb59cd4d5f658e170c8ad0092
d5ce1659f47cbe5295f65b7ac05ca25c79955f00
refs/heads/master
2020-09-24T17:42:02.380190
2020-02-17T03:15:25
2020-02-17T03:15:25
225,810,003
0
0
null
null
null
null
UTF-8
Python
false
false
4,259
py
#!/usr/bin/env python3 from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import Length, Email, EqualTo, DataRequired, URL, NumberRange,Regexp from simpledu.models import db, User, Course, Live from wtforms import ValidationError, TextAreaFi...
b06f3ce756d293fc54760884cb39ee8ec0e66023
52877e2b60ed675eb16ea66c7398127294a313d3
/t2t_bert/utils/tensor2tensor/models/transformer.py
1968d1ca7843d41a518b60482ff1e30df1f5e8ee
[ "Apache-2.0" ]
permissive
yyht/BERT
0dc82ea8e141cad4774e638dd7d44f781d77b6c3
480c909e0835a455606e829310ff949c9dd23549
refs/heads/master
2023-04-07T03:32:28.123608
2021-02-17T02:15:58
2021-02-17T02:15:58
162,232,730
37
12
Apache-2.0
2022-11-21T21:15:04
2018-12-18T05:02:27
Python
UTF-8
Python
false
false
104,406
py
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
ae0708cc0342891c5fb01dace708ffbc954432d3
e23a4f57ce5474d468258e5e63b9e23fb6011188
/021_module_collection/namedtuple/_exercises/namedtuple_002_Other Ways to Specify Field Names_template.py
49045eb80045bf9453e1f2c3957cb3e8c0bb1e29
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,796
py
# from collections ____ n_t_ # # # Other Ways to Specify Field Names # # There are a number of ways we can specify the field names for the named tuple: # # we can provide a sequence of strings containing each property name # # we can provide a single string with property names separated by whitespace or a comma...
40ad9596e5995a4fe0ac18d2fdc15a8855e1aa5a
bd62843278ffc297ef8f6d75a931f1f4ca4caaa7
/exercises/friends_family/ff_dictionary/friends_dk_mod.py
e7db5bf1184a32c5d7919883f7ca191f03d5850c
[]
no_license
raysmith619/Introduction-To-Programming
d3bae042b4fc17bd56e8631a4d660233d8cd165b
bedc16eb5f6db0ad3b313355df6d51b5161c3835
refs/heads/master
2023-07-19T08:43:41.229893
2023-07-15T19:22:28
2023-07-15T19:22:28
132,622,195
3
0
null
null
null
null
UTF-8
Python
false
false
4,228
py
#friends_dk_mod.py 13Oct2020 crs # Adapted from friends_mod.py """ A friends "module" which can be used by other programs via from friends_mod import * """ my_friends = {} # Initialize dictionary of friends(names) as an empty list def list_friends(): """ list friends """ nf = 0 ...
a125fabf6f8c28a59be672821e363432a14a3230
7b34cecc88b257752af3682ce198adb529f22f52
/httoop/codecs/text/html.py
7afddd060b630b351f19a225b0bf9d040b9adc0b
[ "MIT" ]
permissive
spaceone/httoop
c6a3c61f6b01804fa004e3ea1d46c5417b110f08
bd170d5de030ff855d76b688f3e9d9d4f717a30a
refs/heads/master
2023-01-05T18:36:09.904939
2023-01-03T20:57:56
2023-01-03T20:57:56
9,329,173
17
10
null
2015-06-20T21:55:10
2013-04-09T19:02:18
HTML
UTF-8
Python
false
false
107
py
# -*- coding: utf-8 -*- from httoop.codecs.codec import Codec class HTML(Codec): mimetype = 'text/html'
de46d2d1fb94ab7a5c96224c56459fe16cb981cf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02716/s082816838.py
81eab4bb1d4a40d68a77f483f2899018f648da49
[]
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
529
py
N = int(input()) A = list(map(int, input().split())) DP_odd = [0, 0, A[0]] DP_even = [0, max(A[0], A[1])] if N >= 3: DP_odd = [DP_even[0], max(DP_odd[1] + A[2], DP_even[1]), DP_odd[2] + A[2]] for i in range(3, N): if (i + 1) % 2 == 1: DP_odd = [max(DP_odd[0] + A[i], DP_even[0]), max(DP_odd[1] + A...
7840fe7574a34dded1c942db0fb65b5a62ba8699
ed10dc841d5b4f6a038e8f24f603750992d9fae9
/lldb/test/API/commands/settings/TestSettings.py
23f4de05ea0cb8f300266e31b0d8010f1e670d70
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
WYK15/swift-Ollvm10
90c2f0ade099a1cc545183eba5c5a69765320401
ea68224ab23470963b68dfcc28b5ac769a070ea3
refs/heads/main
2023-03-30T20:02:58.305792
2021-04-07T02:41:01
2021-04-07T02:41:01
355,189,226
5
0
null
null
null
null
UTF-8
Python
false
false
32,795
py
""" Test lldb settings command. """ import os import re import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class SettingsCommandTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) NO_DEBUG_INFO_TESTCASE = True def tes...
111534e2e8de66694688967bcfb3a213ec10094b
12346be5075d772878a6015053d6eeb4e7227acc
/21. Design Patterns/behavioral/template.py
b5f260abd7cbf6bd3ca2bef6a2a0ad0bdfa3fa25
[ "MIT" ]
permissive
elenaborisova/Python-OOP
2a46bfafce868f03481fb699580fb3e60ca4e3bd
584882c08f84045b12322917f0716c7c7bd9befc
refs/heads/main
2023-04-02T17:41:23.440617
2021-04-10T13:56:38
2021-04-10T13:56:38
321,376,083
1
1
null
null
null
null
UTF-8
Python
false
false
539
py
from abc import ABC, abstractmethod class Storage(ABC): @abstractmethod def get_storage_list(self): pass def save(self, data): self.get_storage_list().append(data) class SelfListStorage(Storage): def __init__(self): self.list = [] def get_storage_list(self): ret...
10878b61c5e0ebf2a18f06f4fa888b9efee34475
ee904d3335b8fdc5dbb6c260f87dd0e01b7bb605
/personal/models.py
2a3381d9a1a6aa4c51c481316fcf4cac75a423cd
[]
no_license
sudhanshu8917/Techy-Blogger
32930136b479635ec5616e44cc48b7d02bce2795
f7fd26cb223276bd9c35023c8166243ab430b6b4
refs/heads/master
2022-04-25T01:03:57.281784
2020-04-23T19:46:48
2020-04-23T19:46:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
from django.db import models # Create your models here. # PRIORITY = [ # ("H","Low"), # ("L","Medium"), # ("H","High"), # ] # class Question(models.Model): # tilte =models.CharField(max_length=60) # question =models.TextField(max_length=400) # priority ...
3e216e3ee3078736267939ddfdd51b2ed51045cd
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/wxtbx/phil_controls/boolctrl.py
eb5df59dfbe39578d721ac70b72c30df2989b55a
[ "BSD-3-Clause", "BSD-3-Clause-LBNL" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
2,534
py
from __future__ import absolute_import, division, print_function from wxtbx import phil_controls import wx from libtbx import Auto WXTBX_PHIL_BOOL_TRIBOOL = 1 WXTBX_PHIL_BOOL_AUTO = 2 class BoolCtrl(wx.CheckBox, phil_controls.PhilCtrl): def __init__(self, *args, **kwds): kwds = dict(kwds) self._bool_style ...
44b05c375e36adc5e091b2377a51205d852b42fc
45de3aa97525713e3a452c18dcabe61ac9cf0877
/src/secondaires/jeux/jeux/poquiir/combinaisons.py
4bf4664b25400af967a27eaa73edd21d60a641ff
[ "BSD-3-Clause" ]
permissive
stormi/tsunami
95a6da188eadea3620c70f7028f32806ee2ec0d1
bdc853229834b52b2ee8ed54a3161a1a3133d926
refs/heads/master
2020-12-26T04:27:13.578652
2015-11-17T21:32:38
2015-11-17T21:32:38
25,606,146
0
0
null
null
null
null
UTF-8
Python
false
false
8,931
py
# -*-coding:Utf-8 -* # Copyright (c) 2012 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # l...
a50506c6f1e9b437891467aeec49f7ce0e5d0e3c
5e9b2d0d2a4399fd028c738a082921a1df1f8321
/hacker rank/30 Days Of Code/Day 04 - Class vs. Instance.py
2f6aaced92bd0e97a00c76adb993e0adff08a560
[]
no_license
sunilsm7/python_exercises
42e5a1aee0a0d5402b585e1b1631517145aa1e00
b2754c51464dcd81319c8514c24249a13e18d825
refs/heads/master
2020-12-02T16:19:20.266436
2017-10-27T10:22:37
2017-10-27T10:22:37
96,534,650
0
1
null
null
null
null
UTF-8
Python
false
false
876
py
""" In this challenge, we're going to learn about the difference between a class and an instance; because this is an Object Oriented concept, it's only enabled in certain languages. Task Write a Person class with an instance variable, age, and a constructor that takes an integer, initial_age, as a parameter. The const...
a92d6441a0fd2f223bc21e0d866ebddf7a054b36
17821ba5f1345bcb5181092cec7808e08355abd0
/Django_projects/P2-video fail/my_proj/src/my_proj/migrations/0005_video_name.py
e9e93aa7fe462157356740f1f0b77bf76382fe25
[ "MIT" ]
permissive
Coni63/scripts_Python
be1a416dc702c919120645f2946596c68a6a3fbb
b1ac0bee706504abcc86fd7a72b8ec625ffa12b3
refs/heads/master
2021-07-11T16:50:56.719758
2018-02-25T12:19:29
2018-02-25T12:19:29
95,472,736
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-05-17 09:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('my_proj', '0004_remove_video_name'), ] operations = [ migrations.AddField( ...
1596db543519340af331ebc5b52159918fd4ee73
8848bd7a4ca88e0061ce1c7dfbf45c488968ea52
/ravens/tasks/insertion_goal.py
fc0615b9afcb813910b6af74eada86ff53f36564
[ "Apache-2.0" ]
permissive
gautams3/deformable-ravens
5f390d6bf5af26fa9c746232a8d90403a89fd7ce
1324243b804532d229d91f2af13ee84c6fd4771c
refs/heads/master
2023-08-15T01:46:47.025808
2021-10-13T16:10:32
2021-10-13T16:10:32
416,812,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
#!/usr/bin/env python import numpy as np import pybullet as p from ravens.tasks import Task from ravens import utils as U class InsertionGoal(Task): """Using insertion, but in a goal-based Transporters context.""" def __init__(self): super().__init__() self.ee = 'suction' self.max_s...
26ff43671dca13288c13c63813a52087fc0064b9
136a174f8de72746004aaf28a7ec959fddbd689b
/test_scripts/xx4.py
aca9862f32eab929bf99b84ef4e4d77742fecf20
[]
no_license
xod442/imcServiceNow2
ff3c74ffd633f67ef984c5ab9a65da0010e3bc9d
0dd86659816bae19e5d43bcb8c894005564597cb
refs/heads/master
2021-01-18T18:33:50.203685
2018-01-09T21:25:22
2018-01-09T21:25:22
86,862,461
0
1
null
null
null
null
UTF-8
Python
false
false
1,927
py
import time from flask import Flask, request, render_template, redirect, url_for, flash, session, send_file from flask.ext.bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from models import db, Imc_alarm_ids from settings import APP_STATIC import os from flask import Flask, request, redirect, url_for...
8af17fb2e3ab102cd0d02489f823a5800a3dac93
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Lazymux/websploit/core/help.py
8b341ed650071223766e292675f6d56d447f26f8
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:ad1e9de5e3288e6454391464b0dbe8b0b42084b82cfbc0f4789743568bbccdf1 size 1001
b4f7cdeec17ecd205cbc93e2f5b6bc0444aacb08
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2864/60591/310678.py
b3ddf43088c2b9c36f5b42543811c99ee8acaf76
[]
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
541
py
n = eval(input()) nums = list(map(int, input().split(" "))) if (len(nums) == 1): print(nums[0]) elif(len(nums) == 2): if(abs(nums[1] - nums[0]) == 1): print(max(nums[1],nums[0])) else: print(nums[1] + nums[0]) else: result = 0 temp = [] for x in range(max(nums) + 1): temp...
d8a5c1939b6c95386264908ad58cff196f78ef17
5963c12367490ffc01c9905c028d1d5480078dec
/homeassistant/components/numato/switch.py
505d28d0c4036acb28906ca213dd68232a6cd195
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
3,419
py
"""Switch platform integration for Numato USB GPIO expanders.""" import logging from numato_gpio import NumatoGpioError from homeassistant.const import ( CONF_DEVICES, CONF_ID, CONF_SWITCHES, DEVICE_DEFAULT_NAME, ) from homeassistant.helpers.entity import ToggleEntity from . import CONF_INVERT_LOGIC,...
380d34e9731daa55c6f70d3e860fe21844cf1912
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/core/util/semver.py
8fa1edb39fbcb2ec9cf241dd02e65fa0e28e8c38
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
6,611
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. 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...
0f03a2ac1686b80d47dda000ad3fd21ef99f7f7a
1ef68ba8f4754bf4d4d86d945bb1392be3ff5beb
/mlagents/envs/communicator_objects/custom_action_pb2.py
1c16809b0b0d05a34b2fe0fb5193e54c3337f10e
[ "MIT" ]
permissive
Abluceli/HRG-SAC
fc1b5fb720f391390b0ac86c23c46187178a3691
334df1e8afbfff3544413ade46fb12f03556014b
refs/heads/master
2022-12-29T22:51:35.584254
2020-02-19T13:39:23
2020-02-19T13:39:23
241,630,517
7
1
MIT
2022-12-08T06:18:57
2020-02-19T13:36:58
Python
UTF-8
Python
false
true
1,939
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagents/envs/communicator_objects/custom_action.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf imp...
8de8ea6b1c58ca9b9e86f7823a753e50cc5c3b33
553e6acd1019bb2c7d6a1b08009ca50ef2fa0ad1
/mammoth/optim.py
b7f17e1cecf96cd1842270f07004067b512eda4a
[]
no_license
bkj/mammoth
ac0cfd6f8c5165ce72a5a7e591a938cf823270d3
0bd0122b5bac5ce897436a2318cb47b2fbc84164
refs/heads/master
2021-05-15T00:23:48.290164
2018-07-26T16:15:23
2018-07-26T16:15:23
103,467,821
3
0
null
null
null
null
UTF-8
Python
false
false
2,805
py
#!/usr/bin/env python """ optim.py """ import math import torch import numpy as np class LambdaAdam(torch.optim.Optimizer): """ ADAM optimizer that mimics hypergrads - Difference is addition of `lam` parameter. I noticed that my hypergrad test was converging to eps < 1e-10. Setting ...
8cf1a9534a126b14369a0c65201592f19a07b52f
7a1a65b0cda41ea204fad4848934db143ebf199a
/automatedprocesses_firststage/adsym_InventorySources_v2_DD_testapi.py
3f6dcf9326e7f74dfb04f362aaeebd1489663c43
[]
no_license
bpopovich44/ReaperSec
4b015e448ed5ce23316bd9b9e33966373daea9c0
22acba4d84313e62dbbf95cf2a5465283a6491b0
refs/heads/master
2021-05-02T18:26:11.875122
2019-06-22T15:02:09
2019-06-22T15:02:09
120,664,056
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
#!/usr/bin/python2.7 import json from mysql.connector import MySQLConnection, Error from python_dbconfig import read_db_config import aol_api def connect(): # """Gets AOL Data and writes them to a MySQL table""" db = "mysql_dl" # Connect To DB: db_config = read_db_config(db) try: print(...
97e4669eaaef04e481d3c1a28889378009c43f5e
c97ae1cc922a037484c5d4794d0a657561cf47f3
/config.py
53c8a1a210fb59cef99d47b41017842907143b96
[]
no_license
AlenAlic/clubpromoters
3059078b02b77745e7a1e49d998f9d24554082e8
f44b3b20c20d5669c1658036cea35fb9a4f223fc
refs/heads/master
2022-12-11T14:38:37.824769
2019-09-08T19:02:49
2019-09-08T19:02:49
190,430,315
0
0
null
2022-12-09T22:02:49
2019-06-05T16:29:25
JavaScript
UTF-8
Python
false
false
664
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) ENV = 'development' SECRET_KEY = 'test-key' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db?check_same_thread=False') SQLALCHEMY_ECHO = False SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_RECORD_QUERIES = False # MAIL SERVERS #...
2cbf983911e50399c3a76fb804444089fce74a61
c071eb46184635818e8349ce9c2a78d6c6e460fc
/system/python_stubs/-745935208/_ast/__init__/Global.py
e9f88c95a0171f4bb4c222f70243e1403b25fc9c
[]
no_license
sidbmw/PyCharm-Settings
a71bc594c83829a1522e215155686381b8ac5c6e
083f9fe945ee5358346e5d86b17130d521d1b954
refs/heads/master
2020-04-05T14:24:03.216082
2018-12-28T02:29:29
2018-12-28T02:29:29
156,927,399
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
# encoding: utf-8 # module _ast # from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\util\_move.cp37-win_amd64.pyd # by generator 1.146 # no doc # no imports from .stmt import stmt class Global(stmt): # no doc def __init__(self, *args, **kwargs): # real signature unknown ...
af7582913055c33dfb0d2fb42261bb2d00085cbd
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/55/usersdata/120/22966/submittedfiles/av2_p3_civil.py
ec623fcaf0928a3823b671b83b40cb785119d3ff
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
686
py
# -*- coding: utf-8 -*- from __future__ import division import numpy as np #definir somalinha def somalinha(a,linha): soma=0 for j in range(0,a.shape[1],1): soma=soma+a[linha,j] return somalinha #definir somacoluna def somacoluna(a,coluna): soma=0 for i in range(0,a.shape[0],1): ...
1f8b9d0f62221cd8a4ea43b57dfb8951433fe248
5c81a33883e052070c557c76b5968aa501d5526e
/products/migrations/0005_attribute_attributeitem.py
24c44104e06e383020c74f454c2c93a8a182519b
[]
no_license
worlddeleteRin/rabbit_vkusno
2ebacdf72d87700d191965481c56e78bfec33e9b
017cdff4b40fa7e9a0f7729e4f7b754f48e93c3a
refs/heads/master
2023-04-03T23:32:42.770973
2021-04-08T06:43:04
2021-04-08T06:43:04
355,661,649
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# Generated by Django 3.0.8 on 2020-10-11 12:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('products', '0004_auto_20201010_1810'), ] operations = [ migrations.CreateModel( name='Attribute...
0f2011cb5b2aadf3215ef9f7b51b9c97d83a2488
43ab33b2f50e47f5dbe322daa03c86a99e5ee77c
/rcc/models/study_site_view_rpc.py
a9556784eb2812cdd56b265c2e06679096439101
[]
no_license
Sage-Bionetworks/rcc-client
c770432de2d2950e00f7c7bd2bac22f3a81c2061
57c4a621aecd3a2f3f9faaa94f53b2727992a01a
refs/heads/main
2023-02-23T05:55:39.279352
2021-01-21T02:06:08
2021-01-21T02:06:08
331,486,099
0
0
null
null
null
null
UTF-8
Python
false
false
8,149
py
# coding: utf-8 """ nPhase REST Resource REDCap REST API v.2 # noqa: E501 The version of the OpenAPI document: 2.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from rcc.configuration import Configuration class StudySiteViewRpc(object): "...
55d11a1f12e6188a1ad698f562dad455168768b3
4129ae27e90b3aa76187203e42aa0ecbae69216f
/img/test.py
b8e635ba0fa6d08d2030bb90c4ad0473dfa34e66
[]
no_license
PinoJoe/WebCrawler
d1a6b84629832222cbebb1037f1cbc0771deadcf
94929bc73bde98569b2992f8bc648c2f39afcccc
refs/heads/master
2022-01-23T13:09:35.853177
2019-08-05T13:40:44
2019-08-05T13:40:44
122,821,572
1
1
null
null
null
null
UTF-8
Python
false
false
1,406
py
#-*-coding:utf-8 -*- import urllib from lxml import etree import requests import time from contextlib import closing def ProcessBar(blocknum, blocksize, totalsize): speed = (blocknum * blocksize) / (time.time() - start_time) speed_str = '下载速度: %s' % format_size(speed) recv_size = blocknum * block...
b376047b8fffc918dea88a06d8f95217ed1a01eb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_coolants.py
52648d1c9cbfeb1d8e6f52d2d454be9cc0ff0119
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _COOLANTS(): def __init__(self,): self.name = "COOLANTS" self.definitions = coolant self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['coolant']
ae8384d7325ab05aae05cc3dff842e3ae00aef65
632b9b323dc29c67fd6b8cdbec6ec80161ad484a
/extractInstitution.py
126544f887ba375a7c57a7e8e67987ecdd57ee55
[]
no_license
SixingYan/Academic-Relationship-Network
3a08f7cf5d9d1a73f8639c883257fc76dbe86376
94dbfcc76a734005ffceb08e31763112b0d4462b
refs/heads/master
2021-01-21T17:57:14.388478
2018-02-23T09:48:31
2018-02-23T09:48:31
92,003,208
0
1
null
null
null
null
UTF-8
Python
false
false
3,655
py
# -*- coding: utf-8 -*- import re from tool import getResult,getCursor,readTXT from bs4 import BeautifulSoup import os files_path = 'E:/Code/Data/dlibrary' conn,cur = getCursor() #import os;os.chdir('e:/Code/Python');import extractInstitution;extractInstitution.mainFunction() def cleanInstit(instit): # institNe...
fa3e1e5a03b34cf9667f4072e97ba84be7134e14
f8ef8828377131f38a75e25f1571d3e0ea7b4837
/api/migrations/0006_match_expansion.py
6d76c5f3773954536724f113207af5736a647ccb
[]
no_license
szpone/bg-journal
8b46742e2b71db820e5fb1e5f690c0362586661e
80a3570414773daf34458ca068d051cbfe29a8b7
refs/heads/master
2022-05-05T06:10:33.957525
2019-05-02T17:11:48
2019-05-02T17:11:48
165,717,971
0
1
null
2022-04-22T21:07:23
2019-01-14T19:04:02
Python
UTF-8
Python
false
false
499
py
# Generated by Django 2.1.7 on 2019-03-18 20:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0005_remove_user_confirm_password'), ] operations = [ migrations.AddField( model_name='m...
cb562f1501ebd70b4953051bffe97d1b3be9ab1f
147d0863f4590649a90ea5f78c66974723a87247
/api/api_request.py
7e3ae65e10c255203d5ebc25a3c87d4874377cbe
[]
no_license
jinchuika/ligabot
af5bd5443dc0df7d929e7b866869ba075c91db55
69544912e1ac46f281ba2fc78ff913d60d9a2a38
refs/heads/master
2021-01-20T12:50:32.894359
2017-05-08T14:07:47
2017-05-08T14:07:47
90,419,163
0
0
null
null
null
null
UTF-8
Python
false
false
6,788
py
import requests import click from django.conf import settings from datetime import datetime class RequestHandler(object): BASE_URL = settings.BASE_URL API_TOKEN = settings.API_TOKEN LIVE_URL = 'http://soccer-cli.appspot.com/' verbose = False def __init__(self, verbose=False): self.verbos...
f75f33d950309ba2333f6b2ace38e72f6bf95b7c
65675a487fee2ff9651675ae6a09c8d62682c2a4
/23b.py
e44397b4dee9ab0ef0746d70edcb656548770bd5
[]
no_license
Abarn279/advent-of-code-2020
e132f4b04ee1b777ddc00bb97322f707a72c86e0
ea840ee1e7a8cafedfe6f0b9f3e64a2e8b6f0c80
refs/heads/master
2023-02-04T21:11:06.771592
2020-12-26T02:37:25
2020-12-26T02:37:25
317,412,968
0
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
node_dict = {} class SLLNode: ''' Singly linked list node ''' def __init__(self, nxt=None, data=None): if nxt is None: self.next = self else: self.next = nxt self.data = data node_dict[self.data] = self def insert_after(self, other_val): ...
dba760a081168b07da49364f0d7449d2b7849238
b6b380e6f5353dba2256211033cebec638dffe4a
/packages/fuego/fuego/serialization/chemkin/unpickle/parsers/Species.py
cb4d4a0b1bd9d21462be0519db57925920608495
[]
no_license
danse-inelastic/pyre-all
0ddf640b68f6089e40345e9a8e20562a8b035b3c
59cc235b6481586c58415535bbec660470218e31
refs/heads/master
2021-01-18T12:31:27.905459
2015-04-26T04:57:46
2015-04-26T04:57:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2007 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~...
d1aa49ff888c33fc8ce933754b64cb779c56098e
9a335e0c99250de6c0429b367107153ff0633fe5
/sine_of_num.py
d8f72e1928f379707c9fa205b00c72a59b9f297c
[]
no_license
felcygrace/guvi_player
16f4e92be00625490b013f0f833350c9b4185fe3
cf74f455707ab66d08a0801440033a63871102dd
refs/heads/master
2020-05-31T10:31:42.720423
2019-06-22T09:39:23
2019-06-22T09:39:23
190,242,881
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
import math n=int(input()) a=math.randians(n) if a>0 and a<1: print(round(math.sin(a),2)) else: print(round(math.sin(a)))
f7debe817af0afd601474afec973beb67886808b
f9183ce2308090dbb6a8c2f5d96c17c56a8ca768
/main/forms.py
c9618dd619531607d80ecd51fc59f05971ac3664
[]
no_license
asad2200/UrlShortener
a9b0e0f5cce203dd2bcc1244de7feb99588c6c71
055d83d5a1bbf9628a8f045d152dc85c58e9460f
refs/heads/master
2023-05-13T23:44:09.748618
2021-05-29T10:56:17
2021-05-29T10:56:17
371,616,730
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from django import forms from .models import URL class URLForm(forms.ModelForm): class Meta: model = URL fields = ["name", "url"] widgets = { "url": forms.Textarea(attrs={"rows": 2, "cols": 5}), }
0835966ff2ce83229633c6df3ebc0d562c265106
82770c7bc5e2f27a48b8c370b0bab2ee41f24d86
/microblog/flask/venv/lib/python2.7/site-packages/scipy/stats/tests/test_mstats_basic.py
d4606a58c0ee10a92b657014fb576d2ae6809fe9
[ "Apache-2.0" ]
permissive
johankaito/fufuka
77ddb841f27f6ce8036d7b38cb51dc62e85b2679
32a96ecf98ce305c2206c38443e58fdec88c788d
refs/heads/master
2022-07-20T00:51:55.922063
2015-08-21T20:56:48
2015-08-21T20:56:48
39,845,849
2
0
Apache-2.0
2022-06-29T23:30:11
2015-07-28T16:39:54
Python
UTF-8
Python
false
false
48,883
py
""" Tests for the stats.mstats module (support for masked arrays) """ from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy import nan import numpy.ma as ma from numpy.ma import masked, nomask import scipy.stats.mstats as mstats from scipy import stats from co...
d7a25d94dee5bb5c016aa6033dc187cfe73cf882
40f4908483b98fc4f370ff4f2d520e1284d045b3
/phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/analysis/profiling/simpleresourcedependencyassertion.py
fd72bc793c259cc64cb2bc4289b0667e7140091c
[]
no_license
TF-185/bbn-immortals
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
e298540f7b5f201779213850291337a8bded66c7
refs/heads/master
2023-05-31T00:16:42.522840
2019-10-24T21:45:07
2019-10-24T21:45:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
from pymmortals.datatypes.serializable import Serializable from pymmortals.generated.com.securboration.immortals.ontology.core.resource import Resource from pymmortals.generated.com.securboration.immortals.ontology.measurement.codeunitpointer import CodeUnitPointer from typing import Type # noinspection PyPep8Naming ...
f57d10cb23fa6300616fe2080588f7d3c6404adb
190072bc404751d83e5aceb99a34ccba1067caae
/photobot/examples/Layer_function_select.py
6437d18ae66b047371f687e0ca0497d59b8a25ed
[ "MIT" ]
permissive
karstenw/Library
ab751bde79bb0bd2bd7f705901dab415ba154476
9c3f665be4988c14d939d28e7729c72819bba446
refs/heads/master
2023-08-14T04:53:15.559747
2023-07-16T12:27:19
2023-07-16T12:27:19
46,520,062
0
0
null
2023-05-18T14:06:29
2015-11-19T21:00:38
Python
UTF-8
Python
false
false
1,223
py
import sys, os # need a different name import random as rnd import pprint pp = pprint.pprint import pdb kwdbg = 0 W, H = 542, 1050 fullwidth = int(W-20) tilewidth = int((fullwidth-10) / 2.0) # check for Nodebox NB = True try: _ctx except(NameError): NB = False if NB: size(W, H) pb = ximport("phot...
19a267b88eeda5563af6a304dcbd755284124dfc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_84/177.py
db6951d5ed962140a11a025f300265217eb10a9c
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# coding: shift-jis import sys f = file(sys.argv[1]) test_cnt = int(f.readline()) for case in range(1, test_cnt+1): V, H = map(int, f.readline().split()) row = [list(f.readline()[:-1]) for _ in range(V) ] ret = True for v in range(V): for h in range(H): if row[v][h] == '#': if v == V...