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
7fbf97b1503386b6939f46cfda12993249f306aa
3a93a50bf80668a6ede701534f1567c3653729b0
/Sept_challenge/arithemetic_slice_II.py
5d4391eb891b132eaff46dae5987441400c9534b
[]
no_license
Tadele01/Competitive-Programming
c16778298b6c1b4c0b579aedd1b5f0d4106aceeb
125de2b4e23f78d2e9f0a8fde90463bed0aed70f
refs/heads/master
2023-09-01T06:00:09.068940
2021-09-13T18:04:30
2021-09-13T18:04:30
325,728,258
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
from typing import List from collections import defaultdict class Solution: def numberOfArithmeticSlices(self, nums: List[int]) -> int: subsequence = 0 cache = [defaultdict(int) for _ in nums] for i in range(len(nums)): for j in range(i): diff = nums[i] - nums[j...
8dbeb21e45db293b1eed3a4d259d0a7190aadd1e
46e6b58d52aad982ac49e8b4b1e72cc19d5855e7
/venv/Lib/encodings/gb2312.py
9e002e015138f7d2e656d95a22e0deba0a85c73b
[]
no_license
Josquin95/Triqui
76584d2801d49546c79422b4635bff5d251b77c9
82e3ac1b0e053993d76e3d7aea88204799540e05
refs/heads/master
2023-07-21T09:38:49.037207
2023-07-17T21:42:29
2023-07-17T21:42:29
113,802,751
0
1
null
2022-10-07T04:32:38
2017-12-11T02:27:58
Python
UTF-8
Python
false
false
1,039
py
# # gb2312.py: Python Unicode Codec for GB2312 # # Written by Hye-Shik Chang <[email protected]> # import _codecs_cn import _multibytecodec as mbc import codecs codec = _codecs_cn.getcodec('gb2312') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class IncrementalEncoder(mbc.Multiby...
677da4b419273dd5a0c14a32c94015dd6bb3ad6b
10c6f6801ff50e7456ef7dacc57e6c019cbe5311
/vendor/pipstrip
67cd04941aefc0845693decab4a56cce0f59c29f
[ "MIT" ]
permissive
2pax-hq/heroku-buildpack-python
6d66f9cc48e80276e65c00bf95d486ff24f5be48
4669a838e7a56a369f97c4ba1c65426774d93d96
refs/heads/master
2021-06-15T18:33:20.806751
2017-03-14T12:52:01
2017-03-14T12:52:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
#!/usr/bin/env python import sys req_file = sys.argv[1] lines = [] with open(req_file, 'r') as f: r = f.readlines() for l in r: lines.append(l.split('--hash')[0]) with open(req_file, 'w') as f: f.write('\n'.join(lines))
3a6dca8992ab5cc806956e4513c10943419020d0
d45cbb9aa98871851efeebf5f39498534c9125a5
/supar/models/constituency.py
38f92d4cceb2d8d625432379412c00c47351464b
[ "MIT" ]
permissive
ashim95/parser
c307e7178128031deb8fbaa08db6410a94e30bf4
61e9cd6bf16dcf1aa2b9d51b3a6c04ed048b3199
refs/heads/main
2023-02-06T02:36:48.404534
2021-01-01T20:05:49
2021-01-01T20:05:49
324,896,816
0
0
MIT
2020-12-28T02:53:43
2020-12-28T02:53:42
null
UTF-8
Python
false
false
10,859
py
# -*- coding: utf-8 -*- import torch import torch.nn as nn from supar.modules import LSTM, MLP, BertEmbedding, Biaffine, CharLSTM from supar.modules.dropout import IndependentDropout, SharedDropout from supar.modules.treecrf import CRFConstituency from supar.utils import Config from supar.utils.alg import cky from tor...
c4b87867633ef1590bf86b17328f7c49e7240a27
74d54aef5bc3fc3aeb01a16c4738d59215085790
/sm/main.py
b92b99e9edc36d8b9194d92c4b5212e3a1a1fb2b
[]
no_license
sarthak77/super-mario
a051cd96bef178a86f1c1f1f46d9f3574e55c7df
1dc97213c735d20f265a9e9e5a1ac51de963b7cf
refs/heads/master
2022-07-10T11:16:41.276036
2019-07-07T06:06:59
2019-07-07T06:06:59
148,191,715
2
2
null
2022-06-21T22:16:09
2018-09-10T17:17:22
Python
UTF-8
Python
false
false
32,053
py
#main code of the game from start import * from mainscene import * from func import * import time import sys import select import tty import termios #GLABAL VARIABLES quit=1 i=0 mariopresent=[33,7] marioprev=["-","-","-","-","-","-","-","-"]# 8 elements life=3 score=0#coins a=time.time() cjump=10#for surprise coin bul...
b1a3c8cc07fae71c627558f8887507229a139da5
1add595fa4a4b2ebd42e4447310a1b389f88d9fe
/aiohttp_cache/setup.py
1e9a3bcf79880be8bf5bf2d1b016be470047d511
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
baldur/aiohttp-cache
95a57fd71feddb3fa0423c88318ed7c2a828b3a3
dc20cb7fb291e2eb755de1e70f356631cc0b16ac
refs/heads/master
2020-06-18T19:18:12.889982
2019-07-11T15:00:24
2019-07-11T15:00:24
196,415,749
0
0
NOASSERTION
2019-07-11T14:59:01
2019-07-11T14:59:00
null
UTF-8
Python
false
false
1,033
py
import logging from aiohttp import web from .backends import * from .middleware import * from .exceptions import * log = logging.getLogger("aiohttp") def setup_cache(app: web.Application, cache_type: str = "memory", backend_config=None): app.middlewares.append(cache_middleware) ...
7e1d3f98f9918b8c57609a3abdbe11d5430f69ca
7f8ae468840f175a4744896986d4ec66895f08c2
/src/logcollection/loggers.py
7f85bc7dc7dc0ceaae168959543cf8019ea29f5d
[]
no_license
TakesxiSximada/logcollection
1ed54554c12d12e10149d1c473cd0eab00bd1cb2
19028f249fe7526227f3fe11607b24812a000b5c
refs/heads/master
2016-09-11T01:19:13.810367
2015-08-30T13:54:24
2015-08-30T13:54:24
29,011,707
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# -*- coding: utf-8 -*- import logging from functools import lru_cache from lazr.delegates import delegate_to from .interfaces import ILogger @delegate_to(ILogger, context='_context') class LazyLogger(object): def __init__(self, name): self._name = name @property @lru_cache() def _context(sel...
8e8bf11e41d2a9d112c996c91aedda605b92f21a
f1a7f108df5b6aef8672844bffa9e938b72089be
/networks/pretrained_net/__init__.py
7f64fa2a15c76b6f62f2786c1f5307871e439b73
[]
no_license
qianqian397/Dogs_vs_Cats_TensorFlow_Keras
1a2325793cb91cc0c0e7f4aaeb7d5e028d3f3332
0e40018efc5ddc9379f840978470834e472f2de0
refs/heads/master
2020-11-26T22:58:20.037355
2019-12-12T10:19:20
2019-12-12T10:19:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from networks.pretrained_net.VGG16.VGG16 import VGG16 from networks.pretrained_net.RESNET50.ResNet50 import ResNet50
deaf0d68b75d76daf2148049eed3e2be5d5008b9
60aa3bcf5ace0282210685e74ee8ed31debe1769
/core/sims4/repr_utils.py
8fe89c74f5e505a9815ce9efad0af05baaee8694
[]
no_license
TheBreadGuy/sims4-ai-engine
42afc79b8c02527353cc084117a4b8da900ebdb4
865212e841c716dc4364e0dba286f02af8d716e8
refs/heads/master
2023-03-16T00:57:45.672706
2016-05-01T17:26:01
2016-05-01T17:26:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,243
py
from types import FrameType import functools import sys def _strip_source_path(path): for f in sys.path: while path.startswith(f): return path[len(f):].lstrip('\\/') return path class suppress_quotes(str): __qualname__ = 'suppress_quotes' def __str__(self): return self ...
129ec1929c1af7937079abce7452c92eea96f8e4
2443f23d928a6b3516f810e3dfdf6f4b72aa0325
/st01.Python기초/py08반복문/py08_16_보초값.py
75f7ddc86a9165bb9ee575c350e7cb0af877175b
[]
no_license
syuri7/Python20200209
48653898f0ce94b8852a6a43e4e806adcf8cd233
5f0184d9b235ce366e228b84c663a376a9957962
refs/heads/master
2021-01-01T10:37:59.077170
2020-03-15T09:15:50
2020-03-15T09:15:50
239,241,118
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
# while문을 사용하여 합계를 구하시오. # 무한 반복과 반목문(루프) 탈출을 결합한 예정 # 페이지 134 참고 # 무한 반복문은 조건식을 True로 하면 된다. # 루프 탈출은 break를 사용하면 된다. sum = 0 count = 0 print("종료하려면 음수를 입력하시오.") while True: # 무한 루프 입력값 = input("성적을 입력하시오.") # 정수로 변환 입력값 = int(입력값) # 입력값이 음수이면 반복문을 종료 if 입력값 < 0: break # 반복문을 종료 ...
[ "d@d" ]
d@d
53882dc73e368f6c749d7838a985265351315fb0
f64d8201c2e55d7631d0a03a7a51d146c7d5c761
/00Python代码/flask_learn/10extends_block/extends_block.py
e882945721804bf0cdb4dafcb648896e538e10a1
[]
no_license
wh-orange/CodeRecord
cd14b5ccc1760a3d71762fef596ba9ab8dac8b8c
0e67d1dafcb2feaf90ffb55964af7a9be050e0ee
refs/heads/master
2022-01-18T10:26:27.993210
2019-08-04T17:38:35
2019-08-04T17:38:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
#encoding: utf-8 from flask import Flask,render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/login/') def login(): return render_template('login.html') if __name__ == '__main__': app.run(debug=True)
c0e4444f72f861346f349b0d3e17248c24e001e7
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/test/python/b12493130ac5924d0181574c0779561a13d48541admin.py
b12493130ac5924d0181574c0779561a13d48541
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
559
py
from django.contrib import admin from repositories.models import Repository, Credential from repositories.forms import RepositoryForm, CredentialForm class RepositoryAdmin(admin.ModelAdmin): form = RepositoryForm list_display = ('name', 'manager', 'endpoint') class CredentialAdmin(admin.ModelAdmin): form ...
fbefe5ee53df4789d1f34bd68a4a528e2a05ab55
a3785b6ff7734d98af1417000cd619a59bd5a268
/part_2_mmntv/regression/mpg/master_process.py
5cb1a476caa23132c8799010886daa0520f3c007
[]
no_license
SuryodayBasak/mst-final-run
bd9800744ab4fb6f0947c258ebc1be1151bc9ff2
2cde94af03d63f66cc3753843e4e60c92c313466
refs/heads/master
2022-07-01T22:40:39.003096
2020-05-09T04:25:18
2020-05-09T04:25:18
260,341,230
0
0
null
null
null
null
UTF-8
Python
false
false
4,352
py
import numpy as np import data_api as da import multiprocessing import time from knn import KNNRegressor, DwKNNRegressor from sklearn.model_selection import train_test_split from ga import GeneticAlgorithm from sklearn.metrics import mean_squared_error as skmse from ga_run import ga_run from pso_run import gbest_pso_ru...
1f1134dae9bc171e4e36131aac07200d449c4ee7
16303a3f6bc8fd1f2116bc3cdd22db8f5e56ae40
/tests/common_tests/formats_tests/newick_tests.py
60dbf5d547dd262269722ddcd8964b3dd46514f3
[]
no_license
jelber2/paleomix
eb3ed410e925437321168710808b67cf8c029bbf
dfb7f8f9410e1e985992e7ed95adc36de7bc0353
refs/heads/master
2020-08-23T01:36:50.778627
2019-10-15T20:17:42
2019-10-15T20:18:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,722
py
#!/usr/bin/python # # Copyright (c) 2012 Mikkel Schubert <[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 restriction, including without limitation the rights #...
2c6c4264cb594c4bc7ecaa40e5d99619f2ca30cf
eee6dd18897d3118f41cb5e6f93f830e06fbfe2f
/venv/lib/python3.6/site-packages/pip/_vendor/distlib/metadata.py
69ef29eb16fc38a48ed43e07359abac03efebd73
[]
no_license
georgeosodo/ml
2148ecd192ce3d9750951715c9f2bfe041df056a
48fba92263e9295e9e14697ec00dca35c94d0af0
refs/heads/master
2020-03-14T11:39:58.475364
2018-04-30T13:13:01
2018-04-30T13:13:01
131,595,044
0
0
null
null
null
null
UTF-8
Python
false
false
40,001
py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Implementation of the Metadata for Python packages PEPs. Supports all metadata formats (1.0, 1.1, 1.2, and 2.0 experimental). """ import codecs from email import message_from_file import json i...
6ca259815af0d360b758e2b3500b632cac6ef117
301a6d0e527c0740faa9d07f3e75ef719c51f858
/gantcal/cal/migrations/0006_auto_20160210_1233.py
e1243e4b17e588761e3b64e02d5c4d74b5ef563c
[]
no_license
akmiller01/gantcal
249eafa2de1d261ba7e54d59a8275e980caaf408
da99526f3a353bcc83fb2900044a4c8e8db0e6b5
refs/heads/master
2021-01-17T15:24:23.206363
2017-02-22T14:21:04
2017-02-22T14:21:04
51,007,120
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-10 12:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
a8b262d5222cd6bfb53827635cddb4926379e537
a93cb5d670ab3b11f75f1afbd925fea2fac3aa92
/backend/maze_game_19808/settings.py
edb194014f1bab70390523539427a56c2ea70179
[]
no_license
crowdbotics-apps/maze-game-19808
156f1d011f8da29906ebde97688885207a1ce0b7
4abba9ca9b5adbb9a6c16005beae1c7946963182
refs/heads/master
2022-12-05T16:41:49.030137
2020-08-27T00:27:17
2020-08-27T00:27:17
290,634,346
0
0
null
null
null
null
UTF-8
Python
false
false
5,901
py
""" Django settings for maze_game_19808 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
24450b29d23b2b7f0f99a3b2bb2811bd670bf89a
babc3e26d66a8084c9f84a0431338bafabae6ffd
/TaeJuneJoung/ACM/brute_force/p1182.부분수열의 합.py
57966b23796f176632ebfe67ed031fd3ce6133ab
[]
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
407
py
""" [완전탐색:Brute-force Search] 집합의 모든 원소의 집합을 꺼내서 합한 후, 해당 값과 같은지 비교하여 같으면 cnt++ """ N, R = map(int, input().split()) arr = list(map(int, input().split())) cnt = 0 for i in range(1, 1 << N): sum_num = 0 for j in range(N): if i & 1 << j != 0: sum_num += arr[j] if sum_num == R: cn...
fceb973003007ef5405eb8febf5ac8a41ce33ad7
b8cc6d34ad44bf5c28fcca9e0df01d9ebe0ee339
/requests模块/5.5、高级用法-异常处理.py
42990463ecb480ba842a6fdf377487716d805e8c
[]
no_license
python-yc/pycharm_script
ae0e72898ef44a9de47e7548170a030c0a752eb5
c8947849090c71e131df5dc32173ebe9754df951
refs/heads/master
2023-01-05T06:16:33.857668
2020-10-31T08:09:53
2020-10-31T08:09:53
296,778,670
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# -*- coding: utf-8 -*- #异常处理 import requests from requests.exceptions import * #可以查看requests.exceptions获取异常类型 try: r = requests.get('http://www.baidu.com', timeout=0.001) except ReadTimeout: print('=======:') except ConnectionError: # 网络不通 print('------') except Timeout: print('aaaaaa') except Request...
[ "15655982512.com" ]
15655982512.com
7a4e323cd0bfbc8996619f0391c5f023deeeeaa8
6c866622c26e36da473d411d8f61252da12ecf4c
/demo/mongodb/runserver.py
dc77eacbd1d8ad03bc3c1518ca54d2e2fa08562e
[]
no_license
mrpadan/resource
d3d5e018ae927871af8f463293ccb762eab3aaa9
fe9cdfc7553c7748c3eb2b7e50ce1dc6167b9e8d
refs/heads/master
2021-01-20T17:33:35.828883
2014-10-13T15:02:25
2014-10-13T15:19:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from datetime import datetime from jsonform import JsonForm from pymongo import MongoClient from flask import Flask from resource import Resource, Filter from resource.index import Index from resource.db.mongo import Collection, MongoSerializer from resource.contrib.fram...
f3ef463a068a6d88ed0913e877237474d96845e8
0f887bc316d8c665899258406b67f6e25838f9cf
/kangaroo.py
18362f5f21c7f43b649fe0f2a3dec1f8224f2523
[]
no_license
bawejakunal/hackerrank
f38489be488f76e782b7f8e8c5fdc2ba1a024c30
999008a19c3196c9706a9165923f5683ea887127
refs/heads/master
2021-01-12T04:31:50.984640
2017-09-08T02:28:44
2017-09-08T02:28:44
77,662,863
1
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/bin/python """ https://www.hackerrank.com/challenges/kangaroo x1 + v1.n = x2 + v2.n n = float(x2 - x1)/(v1 - v2) if n > 0 and whole integer then possible because the kangaroo starting at lesser position will be able to catch up AND land at exactly same position as the kangaroo with a head start """ import sys x1...
1cf467b58fc95dc223aba6b2fc94d92dce2949cd
fa3bf02fdcd6dfa48de8b9345c0131ac61abe0ab
/alphastarmini/core/arch/spatial_encoder.py
7f235287a5f1b98cbaf021d49e8a010734380604
[ "Apache-2.0" ]
permissive
jkchromy/mini-AlphaStar
d56423e2e86cb69ea100518e3d16f59eb6851c5e
9c9f7a4cc53a969da9d53d7dd46122178d83085e
refs/heads/main
2023-09-05T20:54:27.279230
2021-11-15T02:06:23
2021-11-15T02:06:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,155
py
#!/usr/bin/env python # -*- coding: utf-8 -*- " Spatial Encoder." import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from alphastarmini.core.arch.entity_encoder import EntityEncoder from alphastarmini.core.arch.entity_encoder import...
8d665a2fac160226625f5ff47170916d67a561a7
494c191e87ae52470b9eb5d38d4851db168ed7cc
/system_design/designing_twitter_search.py
04d1bfbcb67768989e277cd8f694365b364a79b3
[]
no_license
Jeetendranani/yaamnotes
db67e5df1e2818cf6761ab56cf2778cf1860f75e
1f859fb1d26ffeccdb847abebb0f77e9842d2ca9
refs/heads/master
2020-03-19T01:12:45.826232
2018-05-30T20:14:11
2018-05-30T20:14:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,921
py
""" Design twitter search Twitter is one of the largest social networking service where users can share photos, news, and text-based messages. In this chapter, we will design an service that can store and search user tweets. Similar Problems: Tweet search. Difficulty Level: Medium 1. What is twitter search? Twi...
302dc8251d11ce221c0e3dafc58c003f18e54076
88a856c080080dfd15c6c50e81a82ae4f230b65a
/tests/selenium.py
3b31f912fb83b134f4b47383aa4226e9edd67bb3
[]
no_license
ephremworkeye/nov_ecommerce
682c0776bf86f8656ee968ee13cb95deb73f4a7a
f847bfd1f0fff29f321113d200f7c653ae4c7214
refs/heads/master
2023-09-04T01:32:32.191459
2021-10-28T08:17:02
2021-10-28T08:17:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options @pytest.fixture(scope="module") def chrome_browser_instance(request): """ provide a selenium webdriver instance """ options = Options() options.headless = False browser = webdriver.Chrome(options...
28fdc6ab07daa339e7c05ac8e9fdcee819a5441a
05109979de89fbd5f69d6cc85ac794497dc441d1
/apps/destination/adminx.py
c00a4a4636d2b3fc21bcc9fbe9a56db2b356ce7d
[]
no_license
bbright3493/douxing
c70bdb11d3f0e253d8545ab4bdf89d330b0e0d6f
0607aee7c59aa4845d6bc86940d7885cd83466a6
refs/heads/master
2021-05-06T10:11:22.815128
2017-12-15T09:40:34
2017-12-15T09:40:34
114,102,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,041
py
# -*- coding: utf-8 -*- __author__ = 'bb' __date__ = '2017/12/15 23:34' import xadmin from .models import * from xadmin import views class GlobalSettings(object): site_title="都行后台管理系统" site_footer="都行" menu_style="accordion" xadmin.site.register(views.CommAdminView, GlobalSettings) class DestinationA...
0814cd6f81ee06c0ee5732b9574cd914859e16c9
4610d0284416361643095ca9c3f404ad82ca63c2
/src/sploitego/metasploit/utils.py
1f796affd48ec6853417a13b33a928b7f53ed032
[]
no_license
mshelton/sploitego
165a32874d955621c857552fb9692ecf79e77b7e
3944451a110f851a626459767d114569d80a158c
refs/heads/master
2020-12-25T03:11:58.071280
2012-08-16T22:33:10
2012-08-16T22:33:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
#!/usr/bin/env python from optparse import OptionParser __author__ = 'Nadeem Douba' __copyright__ = 'Copyright 2012, Sploitego Project' __credits__ = ['Nadeem Douba'] __license__ = 'GPL' __version__ = '0.1' __maintainer__ = 'Nadeem Douba' __email__ = '[email protected]' __status__ = 'Development' __all__ = [ 'pa...
5f4e5af81bbc911e9ebdba871a0cb2867f9c8915
07c75f8717683b9c84864c446a460681150fb6a9
/1.Django_cursor/days05_总结/mysite/mytemp/urls.py
a5dd5fde3d50dc66c0aebff2c502336f406cf684
[]
no_license
laomu/py_1709
987d9307d9025001bd4386381899eb3778f9ccd6
80630e6ac3ed348a2a6445e90754bb6198cfe65a
refs/heads/master
2021-05-11T09:56:45.382526
2018-01-19T07:08:00
2018-01-19T07:08:00
118,088,974
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^.*$', views.index, name="index"), ]
ac77fbc3989b6f85e192007025647230f9038e70
f3b233e5053e28fa95c549017bd75a30456eb50c
/ptp1b_input/L77/77-bs_wat_20Abox/set_1ns_equi.py
55249588767ba5d4a982ae8d8e78310b01454d53
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L77/wat_20Abox/ti_one-step/77_bs/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi.in' temp_pbs = filesdir + 'temp_1ns_equi.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in...
28c70b3e1130f8b502b3c9c2c40227b8a0097822
155bf47fa1b33a31576f6b8b90aaa74cd41e352a
/04PythonScraping/chap07提升爬虫的速度/demo08-mutilprocess3.py
16dc3b5e6f88d6f3427e90b4e4c02db36751cbe7
[]
no_license
ares5221/Python-Crawler-Projects
af4ec40a26f4f69ef285a0edf0428192a594d4cd
45b496000631f0f3b887501d9d67f3e24f5e6186
refs/heads/master
2021-07-03T07:11:25.474055
2020-09-08T08:17:17
2020-09-08T08:17:17
145,980,513
3
1
null
null
null
null
UTF-8
Python
false
false
1,105
py
from multiprocessing import Pool, Manager import time import requests link_list = [] with open('alexa.txt', 'r') as file: file_list = file.readlines() for eachone in file_list: link = eachone.split('\t')[1] link = link.replace('\n','') link_list.append(link) start = time.time() def cra...
6f8cd243866fffe00749263f072c8cf6efdb7d38
d62f1c0bd9c35cd8ae681d7465e749d63bb59d4e
/Week1/Informatics/Cycles/While/E.py
eeb7f7f63613891fe718d408bf44c2de1f7951e6
[]
no_license
Yeldan/BFDjango
0134a57ec523b08e4ca139ec11c384eeefec6caa
a390e08b8711613040a972e30a25b4035ff58e37
refs/heads/master
2020-03-27T15:49:53.859506
2018-11-25T22:33:38
2018-11-25T22:33:38
146,742,341
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
n = int(input()) pow2 = 1 k = 0 while pow2 < n: pow2 *= 2 k += 1 print(k)
aada138df4c56627acf62eaa60266b52a077bae2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/429/usersdata/321/107494/submittedfiles/jogoDaVelha_BIB.py
ae59cd865960f39bb8cd8d243bc082c289f59efd
[]
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
7,715
py
# -*- coding: utf-8 -*- # COLOQUE SUA BIBLIOTECA A PARTIR DAQUI import random tabuleiro = [ [' ',' ',' '], [' ',' ',' '], [' ',' ',' ']] def nome(): nome = str(input('Qual seu nome? \n')) return nome def solicitaSimboloDoHumano(): s = str(input('Qual símbolo você deseja...
a4a0b8f3a09ca5ad949545f6df5b75f196e58b74
7b01421591dd7f83b719be4df90b4590904263f9
/bev/__init__.py
e0e4ef5a43398ff89aae02c5b92d8f23e1efde1e
[]
no_license
samokhinv/bev
d54624566d315f3ddf4a71e584bf2c00200a11b6
c3b1bdcdbcdb7be5e65c4cc8d04a40615f4f65b1
refs/heads/master
2023-05-31T15:38:39.816757
2021-06-23T17:37:45
2021-06-23T17:37:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
from .interface import Repository, UNCOMMITTED from .__version__ import __version__
bdf5c1a2838f3284de099196371fc88742604fc6
f73e0439f953f968f2021e54866a367617debff8
/blog/views.py
e4b976339b39b8067c110e831249a1e9e5319cde
[ "MIT" ]
permissive
kkampardi/DjangoTesting
d86542beae8a7cc16fc2fc2774c1c3348142345b
1092c41d9d4930f0512fac79b4d95836c70e5f3a
refs/heads/master
2020-06-16T12:13:17.240496
2017-05-09T07:26:30
2017-05-09T07:26:30
75,104,263
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
from django.shortcuts import render from django.views.generic.base import TemplateView from .models import Entry class HomeView(TemplateView): template_name = 'index.html' queryset = Entry.objects.order_by('-created_at')
a8fe0988ccaba26dd6c06fdb0050af81e79fc56b
bebec878576db20eb38f7e981ab42a7dee20d431
/src/publisher.py
1ee23b019c6b41a01d5afcf236fd07f02ba0045a
[]
no_license
rorymcstay/algo
890809d03c68b3e09ee3e48b3cf71d74ac867215
499e39511b2ad495a6559790c8c7d84bdaa0a32e
refs/heads/master
2021-06-28T06:34:26.410025
2021-03-28T19:39:16
2021-03-28T19:39:16
224,317,279
0
0
null
null
null
null
UTF-8
Python
false
false
3,401
py
import csv import logging import threading from threading import Thread from multiprocessing import Process from event_config import subscribers from src.engine import ThreadPool class EventConfig: def __init__(self, dataClass, mapping, complex=False): """ The configuration class for an event to ...
f300ce2eff2dcc46b9a46377c2b2bbee80217dc6
906171cc2ff7a669149d807c0e6d6db3fbea5f91
/algorithm-books/程序员面试指南/python/递归和动态规划/龙与地下城游戏问题.py
204b196a1cb2565b9aed86764b5bca945d6e2cbb
[]
no_license
Deanhz/normal_works
a2942e9eab9b51d190039b659b6924fe2fba7ae9
7ae3d5b121bb7af38e3c7e6330ce8ff78ceaadb1
refs/heads/master
2020-03-25T20:51:02.835663
2019-02-18T16:34:44
2019-02-18T16:34:44
144,149,031
0
0
null
null
null
null
UTF-8
Python
false
false
2,165
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 12 20:44:57 2018 @author: Dean 本题的更新需要从下到上,从右到左 p223 """ def minHP1(m):#时间复杂度O(M*N),空间复杂度O(M*N) if not m: return 1 row = len(m) col = len(m[0]) #dp[i][j]表示如果骑士走上位置(i,j)前,从该位置能够走到右下角,最少具备的血量 dp = [[0 for j in range(col)] for i in range(row)] ...
10f7ef7944bbc118a972447b591a865681e469ee
502da37d15b473edd9ac56f10871a2e74a774920
/misc/deb-package/spairo-deb-d/usr/lib/python3/dist-packages/spairo/parse/obj.py
003719aee7bc156b13109532cf1d43d4f12fab2a
[]
no_license
adhuliya/sparcv8-ajit
5cf7c8fc1e89dc97b3160c010ba9c95cd993eee6
c121c33f5b1eaabf040cf929678229a21f8283de
refs/heads/master
2022-08-22T08:20:09.423969
2022-07-24T04:10:11
2022-07-24T04:10:11
97,362,905
2
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#!/usr/bin/env python3 import re import sys extractInstruction = re.compile( r"(?P<addr>[a-fA-F0-9]+):\s*([a-fA-F0-9][a-fA-F0-9]\s){4}\s*(?P<instr>[^!]*)") labelSuffix = re.compile(r"<[.$_a-zA-Z][.$_a-zA-Z0-9]*>$") # Parse obj file def parse(filename): instr = dict() with open(filename, "r") as f: ...
069df0b91770278c18cb69fae6abb68bfff5b37e
e76f883f7f93b2d2e735fe1c8a72ddfb146a6ffb
/tests/test_vpx.py
22da24b31ccc3eeca8fe128cd833d5932f3ec619
[ "BSD-3-Clause" ]
permissive
turbographics2000/aiortc
4da92a85b5b3b3ec3286bad46265158f04d7b373
f3275012f59312a4f7a73c932bbf52f6f69f1a1a
refs/heads/master
2021-04-03T07:07:52.485523
2018-03-07T10:49:56
2018-03-07T10:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,467
py
from unittest import TestCase from aiortc.codecs import get_decoder, get_encoder from aiortc.codecs.vpx import (VpxDecoder, VpxEncoder, VpxPayloadDescriptor, _vpx_assert) from aiortc.mediastreams import VideoFrame from aiortc.rtp import Codec VP8_CODEC = Codec(kind='video', name='VP8', ...
b4d624563bfde2acc7337c773ee6135ca29b3bc1
6af81c1e3853255f064ce58e848b34211decdd23
/test/top/api/rest/SubuserDutyDeleteRequest.py
4915d8f74cdf40234090e02dd520a45fee58387f
[]
no_license
dacy413/TBAutoTool
d472445f54f0841f2cd461d48ec6181ae2182d92
ca7da4638d38dd58e38c680ee03aaccf575bce7b
refs/heads/master
2016-09-06T16:13:01.633177
2015-02-01T00:04:50
2015-02-01T00:04:50
29,625,228
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
''' Created by auto_sdk on 2015-01-20 12:36:26 ''' from top.api.base import RestApi class SubuserDutyDeleteRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.duty_id = None self.user_nick = None def getapiname(self): return 'taobao.sub...
adae908424c30f9d4e86f3532d053d8c5c4642a4
10f746943f2b6399bddf1fc79e16b2eec8b1bb0b
/gateway/dummy_secrets.py
26986ea41ef76635f3cf6205f617a66f5da5ab9b
[]
no_license
edgecollective/belfast-harbor
1fa5977a46222f9178a5912ece72beb17891f5e1
5149eca44e95bf0525601249116ab23e59c15c0f
refs/heads/master
2020-09-20T14:16:00.411551
2019-11-29T13:02:49
2019-11-29T13:02:49
224,507,873
1
0
null
null
null
null
UTF-8
Python
false
false
169
py
secrets = { 'ssid' : b'Your WiFi SSID', 'password' : b'Your WiFi Password', 'farmos_pubkey' : 'farmos_pubkey', 'farmos_privkey' : 'farmos_privkey' }
22232bd5654c414b046f470cef574422936a962c
de1b2cfca42e495257a0f50bed026d42d35ecc97
/flaskr/__init__.py
60787156af6e1f0acfafab34d4efb49016cb91eb
[]
no_license
miniyk2012/miniyk2012-flask_tutorial
ad971a000b78b0267f33b40924f03154b0b84173
760d59b8c3ec534cdeb7c198d1adb61493b1bfff
refs/heads/master
2023-01-11T14:57:38.931170
2019-06-04T22:39:09
2019-06-04T22:39:09
189,253,167
0
0
null
2022-12-26T20:56:11
2019-05-29T15:34:03
Python
UTF-8
Python
false
false
1,465
py
import os from flask import ( Flask, current_app ) def create_app(test_config=None): """ create_app是默认的名称, flask run的时候会自动来运行这个函数 :param test_config: :return: """ # create and configure the app app: Flask = Flask(__name__, instance_relative_config=True) # print(app.instance_path) ...
b7405fe0659fd9354d9865949d27d48e40c6325b
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/python/ops/gen_sdca_ops.py
b1922e0314101ad623bed622fb34e7b337445bdc
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:167888a5bf0cec33f73cc87d5babc3869f495c2487658426b093ec2660b669c6 size 52962
[ "github@cuba12345" ]
github@cuba12345
8d4ca6034e19b706a0458c0d23b1c7812275cd6a
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-5322.py
e6c1b10aae1c9db3342d47a6709c5908090674fb
[]
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
23,287
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: ...
2d7bca278667a97eb99f961aef8b06561c6dc55a
6bf492920985e3741440ba53e1c7f8426b66ac1f
/snakemake_rules/rules/kpal/kpal_matrix.smk
e0f458d60c5838003d24e753e3360530f55ba0b6
[ "MIT" ]
permissive
ukaraoz/snakemake-rules
5b2ba7c9ec19d88b56067a46f66fd0c72e48c368
07e96afeb39307cdf35ecc8482dc1f8b62c120b9
refs/heads/master
2020-03-31T15:20:44.444006
2018-09-07T08:53:47
2018-09-07T08:53:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
734
smk
# -*- snakemake -*- include: "kpal.settings.smk" config_default = {'kpal' :{'matrix' : _kpal_config_rule_default.copy()}} config_default['kpal']['matrix'].update({'options' : "-m -S"}) update_config(config_default, config) config = config_default rule kpal_matrix: """kpal: generate matrix.""" params: cmd = c...
bce20665fafee5860f3d0874347ff4fa12928558
1fa6c2650c791e35feaf57b87e832613e98797dd
/LeetCode/Binary Search/! M Search in Rotated Sorted Array.py
1f36ebf53459a4ab0e059c0dfdc4cadc8b3a3ba8
[]
no_license
hz336/Algorithm
415a37313a068478225ca9dd1f6d85656630f09a
0d2d956d498742820ab39e1afe965425bfc8188f
refs/heads/master
2021-06-17T05:24:17.030402
2021-04-18T20:42:37
2021-04-18T20:42:37
194,006,383
1
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
""" Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array. Your algorith...
9a28629a710d0c1e31f69b87934ebcc4916fe3e3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03651/s284460411.py
7a3cadd35f07b8049ff65e723cdebbfad6be1501
[]
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
184
py
import math n,k=map(int,input().split()) a=list(map(int,input().split())) c=a[0] for m in a: c=math.gcd(c,m) if k %c==0 and k<=max(a): print("POSSIBLE") else: print("IMPOSSIBLE")
02c8c0b816a3a71c169216770f654193fbcabcbc
b42879654055f320b7593358330eceb0c06ca1d8
/Hao_Test/data_base_structure/find_element.py
e69721651ac8124e0efbbb28d25c7022d69684fd
[]
no_license
HaoREN211/python-scraping
de3b28b96fb43e47700a6a12b05db6800f583611
c802748e9067e6dfd1e3736ccc20fbd34091f9e5
refs/heads/master
2020-07-18T23:09:23.380362
2019-10-22T01:50:28
2019-10-22T01:50:28
206,331,191
0
0
null
2019-09-04T13:53:26
2019-09-04T13:53:26
null
UTF-8
Python
false
false
1,384
py
# 作者:hao.ren3 # 时间:2019/10/16 18:25 # IDE:PyCharm from python_scraping.Hao_Test.tools.sql import create_mysql_engine from python_scraping.Hao_Test.data_base_structure.init_table import init_data_column_table, init_data_base_table, init_data_table_table from sqlalchemy import MetaData from sqlalchemy.orm.session import...
8d445faa9047767aed6d3755c95e343884f082d2
1ba9e4754ee30e7f45aeb210918be489559dd281
/books/migrations/0009_auto_20180325_1412.py
bfd85093ea4ebec5ee3296a3b5ef14517f90ccd8
[]
no_license
muremwa/Django-Book-s-app
330f36c402f0af59f8e9f81d9751b283602c4b1c
af6829332b5009955d4290ea67af459d2a6b8b69
refs/heads/master
2021-04-15T08:26:13.165957
2018-04-11T22:15:59
2018-04-11T22:15:59
126,845,409
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
# Generated by Django 2.0 on 2018-03-25 11:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('books', '0008_book_votes'), ] operations = [ migrations.AlterField( model_name='author', name='picture', f...
03678610e296f6f34bf63062be58743d3ea319fa
b8dab6e1a07c4c95e0483df722a4188d44356c1e
/backend/endpoints/predict.py
1864ccb83162f82efe89e660e6a5d3f5f4036d7e
[ "Apache-2.0" ]
permissive
maelstromdat/radon-defuse
363578106ea6c63e9b2f33d648b208708a075c25
269f050a656d527712d88d39db9ae1d5642027bf
refs/heads/main
2023-05-26T05:11:10.880316
2021-05-20T09:44:21
2021-05-20T09:44:21
370,704,590
2
0
Apache-2.0
2021-05-25T13:34:38
2021-05-25T13:34:37
null
UTF-8
Python
false
false
1,115
py
import time from flask import jsonify, make_response from flask_restful import Resource, Api, reqparse class Predict(Resource): def __init__(self, **kwargs): self.db = kwargs['db'] self.bucket = kwargs['bucket'] def get(self): parser = reqparse.RequestParser() parser.add_arg...
4b42318ffa82918c518ea028234c2e01d56f329f
cdaaa92f45cac92b34610616fbcab738ebaf0b6d
/project1_22759/urls.py
38ea80b67a152969b919267f41e06bcceea0bf19
[]
no_license
crowdbotics-apps/project1-22759
9317debda23f0eeb7dd8b4bc542297a7971ad016
92a80c481f5601f8d4a89fb9921e5f6144824c99
refs/heads/master
2023-01-13T11:38:02.933334
2020-11-19T04:31:04
2020-11-19T04:31:04
314,136,194
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
"""project1_22759 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
dab8fddf7efb767eb07b5fd72e4b5956cb2acb34
00b7b6a30e8c851cc1f288370a49a593ee7e0172
/bfrs/migrations/0021_auto_20190508_1443.py
0a5c7528281c61467e60b81f2db616d45e428d65
[]
no_license
rockychen-dpaw/bfrs
e907fd5dbceb8af9769a964990dfaab38bc76080
f468794d1e36419f7bab718edad3f7b2939b82fa
refs/heads/master
2021-04-29T19:02:40.930093
2020-01-15T03:01:37
2020-01-15T03:01:37
121,706,290
0
0
null
2018-02-16T02:05:40
2018-02-16T02:05:40
null
UTF-8
Python
false
false
1,105
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2019-05-08 06:43 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bfrs', '0020_auto_20190508_1247'), ] operations = [ migrations.AddField( ...
6d6bb6382252a8618c4eb6a10a181d48b1d1f898
5919508f6fa3756b89b720ca9510423847af6b78
/inputs/loop_helix_loop/get_lhl_distributions.py
ff2570fe3a5b8d20c96d739a23418c00e32f2f3a
[ "MIT" ]
permissive
karlyfear/protein_feature_analysis
0cb87ee340cb1aa5e619d684ebf8040713fee794
fa2ae8bc6eb7ecf17e8bf802ab30814461868114
refs/heads/master
2023-03-16T22:30:45.088924
2020-03-14T20:05:21
2020-03-14T20:05:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,168
py
#!/usr/bin/env python3 '''Get distributions for LHL units. Dump the distributions of various features to text files. Usage: ./get_lhl_distributions.py pdbs_path lhl_info_path edges_file ''' import os import sys import json import numpy as np import pyrosetta from pyrosetta import rosetta def xyzV_to_np_array(x...
0ebec273c17fa7bf8132a5c77df524c49eb07764
df92ea5a3206b2b920086203b3fe0f48ac106d15
/django_docs/onetomany/migrations/0002_car_model.py
6f2951bba6f495c61b627f23e5b211b0d054afe5
[ "MIT" ]
permissive
miscreant1/django_tutorial
b354ea5c28224fe9e3612301e146d0c6a8778f28
736743be66d83ec579b22a0378381042f5207f38
refs/heads/master
2022-04-24T17:48:10.724609
2020-04-27T07:52:24
2020-04-27T07:52:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
# Generated by Django 3.0.5 on 2020-04-20 02:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('onetomany', '0001_initial'), ] operations = [ migrations.AddField( model_name='car', name='model', field...
9146864977a7d2fe9dc29fbd998218d7d8de3ff8
fdf3a655e46424050790540add959c4b0bd308b3
/src/yacctab.py
bc401bd6a9f1ff37a98345f8486ea8d2c6d241e7
[]
no_license
bernielampe1/ast_js_fuzzing
5e456d500e5d9084f279e18f977d1f306222f11f
8be0b49ca5b341270957c0e940471da31590222c
refs/heads/master
2023-05-29T19:09:58.151434
2021-06-15T15:33:36
2021-06-15T15:33:36
377,209,772
0
0
null
null
null
null
UTF-8
Python
false
false
173,068
py
# yacctab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = '\xbd\xf5(\x01\x93\xb1\xff>#\x00}\x88\xda\x97f\xde' _lr_action_items = {'DO':([0,2,5,7,13,19,21,28,29,31,36,43,44,45,50,58,62,65,67,68,72,75,77,111,114,115,116,126,133,143,147,148,163,164,17...
579eac1755cc6dfc8c601ef7df132c1a4a830673
674f5dde693f1a60e4480e5b66fba8f24a9cb95d
/armulator/armv6/opcodes/abstract_opcodes/smlsld.py
55da34bdc70ecb6cd43315893e0a2e0c83e6c62f
[ "MIT" ]
permissive
matan1008/armulator
75211c18ebc9cd9d33a02890e76fc649483c3aad
44f4275ab1cafff3cf7a1b760bff7f139dfffb07
refs/heads/master
2023-08-17T14:40:52.793120
2023-08-08T04:57:02
2023-08-08T04:57:02
91,716,042
29
7
MIT
2023-08-08T04:55:59
2017-05-18T16:37:55
Python
UTF-8
Python
false
false
1,242
py
from armulator.armv6.bits_ops import to_signed, set_substring, to_unsigned, substring from armulator.armv6.opcodes.opcode import Opcode from armulator.armv6.shift import ror class Smlsld(Opcode): def __init__(self, instruction, m_swap, m, d_hi, d_lo, n): super().__init__(instruction) self.m_swap =...
c3f603d4891e64afab9802c2e85b912f517572e7
f698ab1da4eff7b353ddddf1e560776ca03a0efb
/examples/ogbg_molpcba/models.py
f1cfc01d8d5185b83ecd0d6620dd538ae9890250
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
patrickvonplaten/flax
7489a002190c5cd5611c6ee1097d7407a932314c
48b34ab87c7d20afc567f6e0fe5d67e423cf08bc
refs/heads/main
2023-08-23T13:55:08.002500
2021-10-08T09:23:15
2021-10-08T09:23:54
319,617,897
0
0
Apache-2.0
2020-12-08T11:28:16
2020-12-08T11:28:15
null
UTF-8
Python
false
false
6,732
py
# Copyright 2021 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
e1df6fc2583f420d43b25ca435c7e20316b96453
b5c5c27d71348937322b77b24fe9e581cdd3a6c4
/graphql/pyutils/cached_property.py
0727c1949d5a114eb73a371fd40463fb8998efc0
[ "MIT" ]
permissive
dfee/graphql-core-next
92bc6b4e5a39bd43def8397bbb2d5b924d5436d9
1ada7146bd0510171ae931b68f6c77dbdf5d5c63
refs/heads/master
2020-03-27T10:30:43.486607
2018-08-30T20:26:42
2018-08-30T20:26:42
146,425,198
0
0
MIT
2018-08-28T09:40:09
2018-08-28T09:40:09
null
UTF-8
Python
false
false
607
py
# Code taken from https://github.com/bottlepy/bottle __all__ = ['cached_property'] class CachedProperty: """A cached property. A property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. """ def __init__(sel...
dfbb2a64692b993bd4d3388133dc94ce6316ab09
141d1fb160fcfb4294d4b0572216033218da702d
/exec -l /bin/zsh/google-cloud-sdk/lib/surface/dataflow/sql/query.py
8660148df0f94ddf4b5afd8079353232390d6b5c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
sudocams/tech-club
1f2d74c4aedde18853c2b4b729ff3ca5908e76a5
c8540954b11a6fd838427e959e38965a084b2a4c
refs/heads/master
2021-07-15T03:04:40.397799
2020-12-01T20:05:55
2020-12-01T20:05:55
245,985,795
0
1
null
2021-04-30T21:04:39
2020-03-09T08:51:41
Python
UTF-8
Python
false
false
4,392
py
# -*- coding: utf-8 -*- # # Copyright 2020 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...
73bdff696c0f6700a310bb5a449d673efa9b5b3a
866dee1b3d01b863c31332ec81330d1b5ef5c6fa
/openquake.hazardlib/openquake/hazardlib/gsim/rietbrock_2013.py
62e63bdafc600b463ed33925696bfa2c08e799d1
[ "MIT", "AGPL-3.0-only" ]
permissive
rainzhop/ConvNetQuake
3e2e1a040952bd5d6346905b83f39889c6a2e51a
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
refs/heads/master
2020-08-07T16:41:03.778293
2019-11-01T01:49:00
2019-11-01T01:49:00
213,527,701
0
0
MIT
2019-10-08T02:08:00
2019-10-08T02:08:00
null
UTF-8
Python
false
false
12,553
py
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2014-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
6d79e71393d64f0edbbbf664cb42d7c442fe0144
291ab4b5b1b99d0d59ce2fb65efef04b84fd78bd
/tmp_testdir/Forex_Trading212/test7_login_trading212_getlist_clickable_ids.py
aea9cb52055d4c857f788869d5590a1fda71a568
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
cromox1/Trading212
15b5ea55d86e7063228f72dd92525e1fca693338
68f9b91098bc9184e16e9823a5e07e6b31e59602
refs/heads/main
2023-04-17T23:03:07.078229
2021-05-05T23:02:54
2021-05-05T23:02:54
320,100,427
0
2
null
2021-04-13T07:03:41
2020-12-09T22:58:06
Python
UTF-8
Python
false
false
3,499
py
__author__ = 'cromox' from time import sleep from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import WebDriverException # from selenium.webdriver.common.action_chains import ActionChains as hoover chrom...
5b87694f3a2a886ff560e2762344f137ca502f69
434fb731cb30b0f15e95da63f353671b0153c849
/build/hector_slam/hector_slam_launch/catkin_generated/pkg.installspace.context.pc.py
f6f612668cd0e6089313919ad50250aaa8624d2b
[]
no_license
lievech/lhn_ws
e3e10ff20e28e59583e51660d2802ff24c7cd0b5
644fc48b91788078734df9bdece06c8b9f6b45b9
refs/heads/master
2020-08-02T20:21:19.489061
2019-09-28T12:08:26
2019-09-28T12:08:26
211,494,773
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "hector_slam_launch" PROJECT_SPACE_DIR...
3ab187b444848f3432ee2fe85296aa11c48ef180
7cdfbe80ac56a042b9b99c1cb17766683da439b4
/paper2/setup_files/old_setup/results.py
e65818b069a43060086e85eafae81b63aa9666d4
[]
no_license
bacook17/pixcmd
1e918cc6b147abe1885f9533836005b9f2b30012
fac20ced14492fd32448d2722c377d88145f90a1
refs/heads/master
2021-01-18T11:54:13.625834
2019-07-30T15:13:12
2019-07-30T15:13:12
67,228,636
0
0
null
2016-09-02T14:18:59
2016-09-02T14:18:58
null
UTF-8
Python
false
false
6,480
py
__all__ = ['models', 'results', 'pcmds', 'data'] try: import pcmdpy_gpu as ppy except: import pcmdpy as ppy import numpy as np from os.path import expanduser models = {} run_names = {} results = {} pcmds = {} data = {} results_dir = expanduser('~/pCMDs/pixcmd/paper2/results/') data_dir = expanduser('~/pCMDs/p...
1fc1f45b446d4c3afe5b69bf2f9515f4c46607ff
3e381dc0a265afd955e23c85dce1e79e2b1c5549
/hs-S1/icice_ucgenler.py
77342ff2d6194916bac0664099c50bf72246660a
[]
no_license
serkancam/byfp2-2020-2021
3addeb92a3ff5616cd6dbd3ae7b2673e1a1a1a5e
c67206bf5506239d967c3b1ba75f9e08fdbad162
refs/heads/master
2023-05-05T04:36:21.525621
2021-05-29T11:56:27
2021-05-29T11:56:27
322,643,962
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
import turtle as t t.Screen().setup(600, 600) # https://studio.code.org/s/course4/stage/10/puzzle/2 for adim in range(50, 101, 10): # 50 60 70 80 90 100 for i in range(3): # 0 1 2 t.forward(adim) t.left(120) t.done()
a3411e1ceb6ec195c179f41219c2ee0009ff2aee
a851573ec818149d03602bb17b1b97235b810a06
/apps/network1/views.py
4660b228bf38e659146ac63097baf2a2b9f8438a
[]
no_license
kswelch53/mypython_projects2
42afc71714ff7e10e1d8d4e6a5965ff58380e9bd
97d9faa5ea326b86dd7f48be1a822b3a58f3189c
refs/heads/master
2021-04-06T07:22:04.982315
2018-03-30T02:35:20
2018-03-30T02:35:20
125,312,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,143
py
from django.shortcuts import render, HttpResponse, redirect # links model to view functions from .models import User # allows flash messages to html from django.contrib import messages # Note: Registration and login validations are done in models.py # displays a form on index.html for users to enter login or ...
1eb1a20cca4e64744c3c860ba9ffc78209de8c23
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/3339d802402fd2f2ed5e954434c637bf7a68124d-<_make_validation_split>-bug.py
1827f4775913b4407f7cdf26bba80b06443aca84
[]
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
1,278
py
def _make_validation_split(self, y): 'Split the dataset between training set and validation set.\n\n Parameters\n ----------\n y : array, shape (n_samples, )\n Target values.\n\n Returns\n -------\n validation_mask : array, shape (n_samples, )\n Equal ...
214b351155bd5bbd835658ddee5d7b0cf7b101c2
e1fa4f0e678bcc7a71afd23fd1bd693a4f503765
/ss/ss_coroutine.py
b0e5c58010598a07ff04339fa96dc5854805145a
[]
no_license
smallstrong0/spider
b20460b33aeee5989870acd95cc1addd6996c1ed
cb3807978ff9599fbf669fe4068040f4252f6432
refs/heads/master
2020-03-31T07:59:43.046207
2019-01-03T15:47:06
2019-01-03T15:47:06
152,041,262
3
0
null
null
null
null
UTF-8
Python
false
false
522
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/10/18 22:07 # @Author : SmallStrong # @Des : # @File : ss_coroutine.py # @Software: PyCharm import sys import os # 被逼无奈 sys.path.append(os.getcwd().replace('/ss', '')) from spider_core import go from func import exe_time from gevent import monkey...
0f681b24574bb63ce377e1191448ddd879adf9f5
a1a42b2165f8cb899bff02f10d8b081b372ce9d3
/mshub-gc/tools/mshub-gc/proteosafe.py
e07803964ed3cb3f1c66b859fd0c5d1233211319
[ "Apache-2.0" ]
permissive
CCMS-UCSD/GNPS_Workflows
47ca90ba177b3ddc1a71877a3ee92473e0fe392b
8c6772e244c6f3e5ea7cd5eae873b6faa48b7313
refs/heads/master
2023-08-31T13:38:51.911232
2023-08-24T06:06:37
2023-08-24T06:06:37
57,243,138
41
45
NOASSERTION
2023-06-13T16:54:49
2016-04-27T19:52:07
HTML
UTF-8
Python
false
false
72
py
../../../CCMS_ProteoSAFe_pythonAPI/ccmsproteosafepythonapi/proteosafe.py
d8fadea0f97b759ec5a8eb75c034fb3b9505259d
e46a95f42e61c71968c60400f11924b4ad22bf59
/0x09-Unittests_and_integration_tests/test_utils.py
c82ada87f519caa128197f16d307056ad525f535
[]
no_license
mahdibz97/holbertonschool-web_back_end
669b68c7ba6be937757a88999c7acc6afd6b58ca
017a250f477599aee48f77e9d215c74b4bb62a14
refs/heads/master
2023-06-04T15:25:14.752977
2021-06-15T23:39:43
2021-06-15T23:39:43
348,126,696
0
0
null
null
null
null
UTF-8
Python
false
false
2,351
py
#!/usr/bin/env python3 """ unittesting Module """ from typing import Mapping, Sequence import unittest from unittest.case import TestCase from unittest.mock import patch from parameterized import parameterized from utils import access_nested_map, get_json, memoize class TestAccessNestedMap(unittest.TestCase): """...
e372ecde50ffe894a9ac6d0b20f743cc0b640425
b125f9a750a519c9c7a5ed66adb8530e0237367b
/str/StrDemo11.py
5931339c369e670d1e64b0c073cf7184825c807b
[]
no_license
isisisisisitch/geekPython
4e49fe19b4cca9891056f33464518272265e3dab
635e246dca7a221d87a3b3c5b07d1e177527498f
refs/heads/master
2021-05-27T01:29:09.755225
2021-01-18T23:18:46
2021-01-18T23:18:46
254,200,920
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
#the taste is not xxx poor! #the taste is good! #the taste is poor! #the taste is poor! str="the taste is xxx poor" snot = str.find("not") print(snot) spoor = str.find("poor") if spoor> snot and snot>0: str = str.replace(str[snot:(spoor+4)],"good") print(str) else: print(str)
9f52f653a93cd4087e7542d49ffc7bedf4a10ac7
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4066/codes/1846_1273.py
b84605ab2c0be8357722a17f2744c6e7aaf7d32b
[]
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
536
py
from numpy import * from numpy.linalg import * # Nosso sistema aqui tem matriz_dos_coeficientes = array([[1,-1,0,0], [0, 1, -1, 0], [0, 0, 1, 0], [1, 0, 0, 1]]) # Resolução do sistema AX = B # onde A = Matriz dos coeficientes, X = Vetor do Fluxo e B = Matriz das incognitas matriz_da...
54f8f44f719f7d3c0acc91b5c3995ea9a048a642
c0c4b1db16a7f85a74cba224f3ebea5660db379e
/old_files/AGILENT33220A_SERVER.py
9bd730306419b55de399a47b7a53dd5763d04f45
[]
no_license
trxw/HaeffnerLabLattice
481bd222ebbe4b6df72a9653e18e0bf0d43ba15e
d88d345c239e217eeb14a39819cfe0694a119e7c
refs/heads/master
2021-01-16T18:13:36.548643
2014-05-09T21:47:23
2014-05-09T21:47:23
20,747,092
1
0
null
null
null
null
UTF-8
Python
false
false
6,087
py
from labrad.server import LabradServer, setting import serial class AgilentServer(LabradServer): """Controls Agilent 33220A Signal Generator""" name = "%LABRADNODE% AGILENT 33220A SERVER" def initServer( self ): #communication configuration self._port = 'COM11' self._addr = 0 ...
a8f705ff4d757e712d27a813079a6e0403a5da1a
d6215e15d2a6adaf046b40012e6b07019b055e07
/ScoringLayer.py
2c299e11ad288ed59c2928fc906cd548403ccd8e
[ "MIT" ]
permissive
WinVector/YConditionalRegularizedModel
4c53c801eb010e640898da7e6532582b809350d8
c4d488871d05d369dcc7e1b7faf110567742d808
refs/heads/master
2021-05-20T08:54:15.635276
2020-04-02T20:20:24
2020-04-02T20:20:24
252,209,212
1
0
null
null
null
null
UTF-8
Python
false
false
9,194
py
# noinspection PyPep8Naming from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer # check all but first shape index def safe_mult(a, b): if len(a.shape) < 2: raise ValueError("Expected shape to be at least rank 2") if str(a.shape[0]) != "?": raise ValueError("Exp...
e258490c9c96a24d1455e651209ea0988d282c37
83f2c9c26a79fdb2d6dd47218484e06875ccdb77
/rpca.py
3b733283c7cb1ac83b215bfd6a464454110d5b53
[]
no_license
zuoshifan/rpca_HI
4fe7a0c76326b57489a719583e2c8f13d07c363c
f94060ba3adbce5971eb4440bd7867240ebd088d
refs/heads/master
2021-01-21T10:14:01.521672
2017-05-12T06:51:17
2017-05-12T06:51:17
83,398,581
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
import math import numpy.linalg def robust_pca(M): """ Decompose a matrix into low rank and sparse components. Computes the RPCA decomposition using Alternating Lagrangian Multipliers. Returns L,S the low rank and sparse components respectively """ L = numpy.zeros(M.shape) S = numpy.zeros(M...
5ef1e7f10dc123b57434e69de06b120e3e884c89
88ed6ed99589f7fb8e49aeb6c15bf0d51fe14a01
/004_medianOfTwoSortedArrays.py
f50d1fe4f60aca33c8dc8105b02120ac6779206e
[]
no_license
ryeLearnMore/LeetCode
3e97becb06ca2cf4ec15c43f77447b6ac2a061c6
04ec1eb720474a87a2995938743f05e7ad5e66e3
refs/heads/master
2020-04-07T19:02:43.171691
2019-06-23T15:09:19
2019-06-23T15:09:19
158,634,176
0
0
null
null
null
null
UTF-8
Python
false
false
2,215
py
#-*-coding:utf-8-*- __author__ = 'Rye' ''' There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume nums1 and nums2 cannot be both empty. Example 1: nums1 = [1, 3] nums2 =...
38d58c1a1117d022b2d55be2c9392e708dbeb924
583d03a6337df9f1e28f4ef6208491cf5fb18136
/dev4qx/purus-repo/tasks/sync_task.py
b8d89d4424113bbe84c0b939794fb5b17b43eabb
[]
no_license
lescpsn/lescpsn
ece4362a328f009931c9e4980f150d93c4916b32
ef83523ea1618b7e543553edd480389741e54bc4
refs/heads/master
2020-04-03T14:02:06.590299
2018-11-01T03:00:17
2018-11-01T03:00:17
155,309,223
1
0
null
null
null
null
UTF-8
Python
false
false
2,148
py
# encoding: utf-8 import logging import tornado.gen import tornado.ioloop from sqlalchemy.orm import sessionmaker import core request_log = logging.getLogger("purus.request") class SyncTask(tornado.ioloop.PeriodicCallback): def __init__(self, application, callback_time): super(SyncTask, self).__init__(s...
10f15096eff2605cc1b6f34cae9b10d7dbd66012
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/3/usersdata/138/733/submittedfiles/ex1.py
1e83a25bea9a34b44af82f240fef204ac4552b94
[]
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
288
py
# -*- coding: utf-8 -*- from __future__ import division a = input('digite o valor de a:') b = input('digite o valor de b:') c = input('digite o valor de c:') delta = (b**2)-(4*a*c) x1 = (-b+(delta)**(1/2))/(2*a) x2 = (-b-(delta)**(1/2))/(2*a) print('valor de x1') print('valor de x2')
e1f5e6d3be9a072b2c8c54a7db8c2b69ee601459
b60849c71c644b488a9777edd9809883cbaff884
/stringsync/sync.py
ba9ca155174cc1b6c88aba0402ca29118333c4b1
[ "Apache-2.0" ]
permissive
dev-junior/strings-datasync
ded0183a9bea5a715555c4b55ce1ea3ecf2ba6c7
858a0d97687dfc42e0010b25718e2b17084e75fb
refs/heads/master
2020-03-21T02:53:51.338210
2015-10-05T22:41:35
2015-10-05T22:41:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
from StringIO import StringIO import sys from stringsync.mysql2ldif import mysql2ldif, organization_dn from stringsync.ldif_dumper import dump_tree_sorted from stringsync import db from stringsync.ldiff import ldiff_and_apply, ldiff_to_ldif def _sync_db_to_ldap(organization_id, db_server, ldap_server, dry_run): ...
5d9fa9cd1b5f06a381cee08c729581e92b5e5ed0
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/advanced/93_v3/rps.py
6390079246a910365c6f43a18f17e098926b1800
[]
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,078
py
# ____ r__ _______ c.. # # defeated_by d.. paper_ scissors # rock_ paper # scissors_ rock # lose '@ beats @, you lose!' # win '@ beats @, you win!' # tie 'tie!' # # c.. ?.v.. # # ___ _get_computer_move # """Randomly select a move""" # r.. c.. c.. # # # ___ _get_winner compu...
72dd61a158c302f6c81f7b839bd22510c5704f18
9bbc76b0d31fb550392eb387aab54862576c3e6d
/0x08-python-more_classes/6-rectangle.py
df22ebe5faae5a083f60627a756b6e2e54646874
[]
no_license
Jesus-Acevedo-Cano/holbertonschool-higher_level_programming
39c6e99f6368dba61c8668ffac41ea2257910366
ad28e8f296d4c226e1c0d571e476fedb3755fde5
refs/heads/master
2020-09-29T03:20:19.770661
2020-05-15T03:50:10
2020-05-15T03:50:10
226,937,476
0
0
null
null
null
null
UTF-8
Python
false
false
2,391
py
#!/usr/bin/python3 class Rectangle(): """class named Rectangle""" number_of_instances = 0 def __init__(self, width=0, height=0): """Initialization of instance attributes Args: width (int): width of rectangle height (int): rectangle height """ self.w...
3d61667e3088b1f1b05106dc5648b7aaf4002b91
e574bfa1acf6ae4662775e0a1dfa22c6ce751cda
/tests/test_types.py
fe2e949778da128c17786d463a9d0a7d2a111d6e
[ "MIT" ]
permissive
shuric80/aioalice
6ef4193cf9c27c1c1692c5d11a95583119ea3214
e04b122b73ee139b42e13d28e4a5434c4c393bcc
refs/heads/master
2020-03-23T20:06:02.678810
2018-07-11T18:59:36
2018-07-11T19:00:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,390
py
import unittest from aioalice import types class TestAliceTypes(unittest.TestCase): def _test_meta(self, meta, dct): self.assertEqual(meta.locale, dct['locale']) self.assertEqual(meta.timezone, dct['timezone']) self.assertEqual(meta.client_id, dct['client_id']) def test_meta(self): ...
540f489a9e94d400b3027d85897af712b39ac85f
9e549ee54faa8b037f90eac8ecb36f853e460e5e
/venv/lib/python3.6/site-packages/future/backports/http/cookies.py
063ed995ba4a12e6bce07a142806bd886a9751cd
[ "MIT" ]
permissive
aitoehigie/britecore_flask
e8df68e71dd0eac980a7de8c0f20b5a5a16979fe
eef1873dbe6b2cc21f770bc6dec783007ae4493b
refs/heads/master
2022-12-09T22:07:45.930238
2019-05-15T04:10:37
2019-05-15T04:10:37
177,354,667
0
0
MIT
2022-12-08T04:54:09
2019-03-24T00:38:20
Python
UTF-8
Python
false
false
21,705
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 bot...
fa1dcb7cf75c38c73c228a0c326b4791efa0218c
09301c71638abf45230192e62503f79a52e0bd80
/besco_erp/besco_warehouse/general_stock_shipping/wizard/__init__.py
39773324ebf286802583121ca1528961e4ec8a3c
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
# -*- coding: utf-8 -*- #import stock_partial_picking import stock_invoice_onshipping # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
f8b76ee88bf3199ba784eea23e13478c952ee068
225543bcaa194360aa66c738a99b7ad5c291434b
/main_210516.py
8aabc2d068464e871a923d87cbc79014605fd9b0
[]
no_license
m0100434/zendlijsten
f0eecf12ab3fc90c1db9b5c22f1163a92dcdf6f7
171e1c427db71dad01408072081c85035c57a2b2
refs/heads/main
2023-06-19T05:04:31.619139
2021-07-17T07:51:46
2021-07-17T07:51:46
349,770,868
0
0
null
null
null
null
UTF-8
Python
false
false
10,358
py
# -*- coding: utf-8 -*- """ Created on Wed Jan 6 11:56:59 2021 @author: ArxXi """ from selenium import webdriver import time from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by impor...
27a3e0d3c60ec1fc09deb3b837285e09d0373c5c
380a47268c5975473a2e7c38c747bc3bdbd981b1
/benchmark/third_party/transformers/src/transformers/models/swinv2/configuration_swinv2.py
ffffcd12aff0cda9d890cf0c52350bde1c406755
[ "Apache-2.0" ]
permissive
FMInference/FlexGen
07aa9b1918c19b02077e13ad07e76840843810dd
d34f7b4b43ed87a374f394b0535ed685af66197b
refs/heads/main
2023-07-24T02:29:51.179817
2023-07-21T22:38:31
2023-07-21T22:38:31
602,270,517
6,821
411
Apache-2.0
2023-07-07T22:59:24
2023-02-15T21:18:53
Python
UTF-8
Python
false
false
6,527
py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
0c64319d4b22ac9fcd813f02a4b038fd2894fb06
d61183674ed7de0de626490cfba77d67c298d1be
/py_scripts/bench_plot_lasso_path_63.py
fe9f6bc621d038bca5caf96b8eede3fd982255b9
[]
no_license
Giannos-G/python_dataset
bc670a53143d92cf781e88dee608da38b0e63886
18e24cbef16ada1003a3e15a2ed2a3f995f25e46
refs/heads/main
2023-07-25T20:24:31.988271
2021-09-09T10:31:41
2021-09-09T10:31:41
363,489,911
2
0
null
null
null
null
UTF-8
Python
false
false
3,978
py
"""Benchmarks of Lasso regularization path computation using Lars and CD The input data is mostly low rank but is a fat infinite tail. """ from collections import defaultdict import gc import sys from time import time import numpy as np from sklearn.linear_model import lars_path, lars_path_gram from sklearn.linear_m...
266caf0b8aac1131892e35df498ac3d0f0b896d4
801c0f1bb516684308ff78cd7a51616791a0e874
/chroniker/management/commands/test_status_update.py
421eb285e80b9811de5d66c6e334a4e16a2a8f26
[]
no_license
Andy-R/django-chroniker
c63283cb1f45b2dfe6aeb6559323085cad226c15
91d239e69fe3ef5eefa8088e80987ccafb6b45ef
refs/heads/master
2020-04-05T22:58:59.964744
2017-02-10T15:08:33
2017-02-10T15:08:33
62,376,921
0
0
null
2016-07-01T08:18:00
2016-07-01T08:17:59
null
UTF-8
Python
false
false
1,742
py
from __future__ import print_function import time from optparse import make_option import django from django.core.management.base import BaseCommand from chroniker.models import Job class Command(BaseCommand): help = 'Incrementally updates status, to help testing transaction ' + \ 'behavior on different...
01f8f42fb980f7cf74de36d4025987a48d2a02a3
d77e19636cd7d64019be3bf70d23102bf3e22fa8
/pycheribuild/config/jenkinsconfig.py
af5a922903bacb23cbfd6057cee8eb27f5316c34
[ "BSD-2-Clause" ]
permissive
bitvijays/cheribuild
205d28d7e3b31d1ba43e61ab824a2454bfa841a5
860c1f729f40691f49a3df91f608204f7b128cf8
refs/heads/master
2021-01-02T04:55:26.846710
2020-02-10T11:33:25
2020-02-10T11:33:25
239,497,080
0
0
NOASSERTION
2020-02-10T11:36:06
2020-02-10T11:36:05
null
UTF-8
Python
false
false
14,425
py
# # Copyright (c) 2017 Alex Richardson # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # Redistribution and use in source and binary ...
7e0b8ad5684c410de74942820196b3c81c829fbe
d36de316f920342823dd60dc10fa8ee5ce146c5e
/brexit_legislation/urls.py
924cff38cbcfd8a9bf87ee22b129c91f764ff4ba
[]
no_license
DemocracyClub/EURegulation
a621afa3ffae555ebd5fbdc205eceb7746a468d1
7cf0bf31b200ab1cb59922f0b3ca120be3757637
refs/heads/master
2022-07-22T04:48:59.555642
2018-06-26T14:42:19
2018-06-26T14:42:19
80,203,236
2
0
null
2022-07-08T16:02:53
2017-01-27T11:47:20
Python
UTF-8
Python
false
false
318
py
from django.conf.urls import include, url from django.views.generic import TemplateView urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='home.html'), name="home"), url(r'^api/', include('api.urls')), url(r'^browse/', include('browse.urls')), url(r'^search/', include('search.urls')), ]
aa4222d7121296f46a7502528baf20ee183c59f5
af0deaee911417589b932022ad8bd0127fe42f24
/store/urls.py
db22aac04b2701050a91449ba9c4263d85097de3
[]
no_license
mayankkushal/go-green-v1
b74e7ec7ca6ab0921e72fe43b5ea76f8eea739c6
76f16616073ecc101fbbbe9fe49173b9638f597c
refs/heads/master
2022-12-08T21:21:12.223347
2019-02-08T16:29:37
2019-02-08T16:29:37
99,202,678
2
1
null
2022-11-22T01:52:51
2017-08-03T07:14:48
JavaScript
UTF-8
Python
false
false
1,135
py
from django.conf.urls import url,include from django.views.generic import DetailView, TemplateView, ListView from django.views.decorators.csrf import csrf_exempt from . import views from .models import Store app_name = "store" urlpatterns = [ url(r'^create_store/$', views.StoreCreate.as_view(), name='store_add'), ...
5306a2f64af4a94ca1b18c60aedf583b89749974
875bb84440094ce058a2ec25a661a7da6bb2e129
/algo_py/boj/bj5648.py
711657eeb72989ec9d754ee49844ee659979c08d
[]
no_license
shg9411/algo
150e4291a7ba15990f17ca043ae8ab59db2bf97b
8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d
refs/heads/master
2023-06-22T00:24:08.970372
2021-07-20T06:07:29
2021-07-20T06:07:29
221,694,017
2
0
null
null
null
null
UTF-8
Python
false
false
138
py
import sys num = [] while l := sys.stdin.readline(): num.extend(map(lambda x: int(x[::-1]), l.split())) [*map(print,sorted(num[1:]))]
2799157d96b71ff3615a6ab9753f9497cd1bee80
e13cd9a8a53a3d688bcc2621c18e4d0ce79fabcb
/legacy_code/process_back_test_can_1.py
23c21ce071369a7039cd23115f6fb210432d302f
[]
no_license
renewday/sds
2d59560515e67dcc84cb259b61e52ccf08f362f0
167b5fe6d1533506e104981c9beffdec4d274a0f
refs/heads/master
2020-04-03T15:34:20.487630
2016-06-23T01:14:06
2016-06-23T01:14:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
65,401
py
import os import copy import math import sys import matplotlib.pyplot as plt import datetime from scipy.signal import argrelextrema import numpy as np sys.path.append("../emd_util") from generate_emd_data import generateEMDdata from analyze import * from spline_predict import linerestruct from emd import * from leas...
dda22826a3fe9a31734e8493f8266e7652b50549
5c6a1c0d7fc61c13f3c5b370f4c07542ddfbb582
/others/ODES/orbit_adaptive.py
c0f442686a2211dd2f07d297c6eea1163c5a2d34
[ "Apache-2.0" ]
permissive
hbcbh1999/Numerical-Methods-for-Physics
7afab39eb3171ce22ebbad8bdced8d9e0a263607
77c41fdf6184fe15fd6b897c3472f2bc00e4347c
refs/heads/master
2021-01-12T01:28:40.519633
2014-03-20T15:32:37
2014-03-20T15:32:37
78,389,812
6
4
null
2017-01-09T03:19:33
2017-01-09T03:19:32
null
UTF-8
Python
false
false
7,089
py
# orbital motion. We consider low mass objects orbiting the Sun. We # work in units of AU, yr, and solar masses. From Kepler's third law: # # 4 pi**2 a**3 = G M P**2 # # if a is in AU, P is in yr, and M is in solar masses, then # # a**3 = P**2 # # and therefore # # 4 pi**2 = G # # we work in coordinates with the ...
7f2ab6c1bdbd251b25752a7629109fcb73413d66
4e353bf7035eec30e5ad861e119b03c5cafc762d
/QtGui/QWhatsThis.py
5b6146b3bf483cf8974d8bf69fddaa4d3f5f1a53
[]
no_license
daym/PyQt4-Stubs
fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5
57d880c0d453641e31e1e846be4087865fe793a9
refs/heads/master
2022-02-11T16:47:31.128023
2017-10-06T15:32:21
2017-10-06T15:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,497
py
# encoding: utf-8 # module PyQt4.QtGui # from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd # by generator 1.145 # no doc # imports import PyQt4.QtCore as __PyQt4_QtCore class QWhatsThis(): # skipped bases: <type 'sip.simplewrapper'> # no doc def createAction(self, QObject_parent=None): # real si...
8437f6181538d26b696fd736237986f5361a9524
fa2ffc5487bef8240a1a5c7cfb893c234df21ee0
/ormproject1/ormproject1/urls.py
84231ae88dbbf078c2576b57e4b5aaff759cc7e0
[]
no_license
sandipdeshmukh77/django-practice-projects
cfd4d8f29aa74832ed3dc5501a651cba3f201251
78f9bd9f0fac4aaeecce4a94e88c6880e004b873
refs/heads/main
2023-02-11T05:59:28.029867
2020-12-29T22:12:52
2020-12-29T22:12:52
325,446,362
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
"""ormproject1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
bbf399a94e325f9bc2091e29633b06ec8093eecf
b144c5142226de4e6254e0044a1ca0fcd4c8bbc6
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lblearnedinfo_ec56ce29319e76b0e1d8451951f052e6.py
e78c3385472f2daf5a117b909eb5acbcc9efa81a
[ "MIT" ]
permissive
iwanb/ixnetwork_restpy
fa8b885ea7a4179048ef2636c37ef7d3f6692e31
c2cb68fee9f2cc2f86660760e9e07bd06c0013c2
refs/heads/master
2021-01-02T17:27:37.096268
2020-02-11T09:28:15
2020-02-11T09:28:15
239,721,780
0
0
NOASSERTION
2020-02-11T09:20:22
2020-02-11T09:20:21
null
UTF-8
Python
false
false
5,389
py
# MIT LICENSE # # Copyright 1997 - 2019 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
a7e57c370cdd942ba3edee059b279d2474ce76b3
31c50ab5729ee999698f0683c7f893a11c994269
/home/migrations/0002_load_initial_data.py
b3b1bef16fb9c537436e22c7f4f5835b367fe7f8
[]
no_license
crowdbotics-apps/regi-test-20062
e86c2eeabb0156f17c7046820452fa8249ffb8f6
3089a7ccf13444fbdaedb40b02b9347ed7338010
refs/heads/master
2022-12-09T00:20:00.701341
2020-09-06T11:46:38
2020-09-06T11:46:38
293,265,252
0
0
null
null
null
null
UTF-8
Python
false
false
1,290
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Regi Test" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ...
a702e4b80caf7a516d063910b16df3193a3b12f8
c7c1a7030ce94f9678fbb9c9e8469a9726592a0a
/server.py
8f43ad1cccafa8117dc18e3aa062fcf936d5ae0e
[ "WTFPL" ]
permissive
giogodo/hydrus
a7e5d8a6b256109e914216d18efa2e4ed341ccf7
836ae13e1f80b02e063dac9829faaec0e5c89f89
refs/heads/master
2020-04-17T18:52:00.309884
2019-01-16T22:40:53
2019-01-16T22:40:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
#!/usr/bin/env python3 # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COP...
323dc9dfafaaecd399097690749c647753a3ee63
2699b6508febc0fddde5520c5498000746eee775
/metadata/ns_swe20.py
6c5a30471dad8351f5968fbd06f135d5c361138e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
DREAM-ODA-OS/tools
e1c71ddb65c255dc291a1e10778b461f32e1b017
66090fc9c39b35b4ef439d4dfe26ac1349d9c5f2
refs/heads/master
2021-01-19T02:13:59.489229
2017-11-18T10:27:25
2017-11-18T10:27:25
18,381,247
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
#------------------------------------------------------------------------------ # # SWE v2.0 namespace # # Project: XML Metadata Handling # Authors: Martin Paces <[email protected]> # #------------------------------------------------------------------------------- # Copyright (C) 2013 EOX IT Services GmbH # # Permi...
7e674560d2a9be8aff0f294dad3f242b65276e81
fd40d6375ddae5c8613004a411341f0c984e80d5
/src/visions/core/implementations/types/visions_object.py
4ca3062561d0563c83583f542943063a6f1c8e55
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ieaves/tenzing
93c3353e62621c90adefc5a174a2dcde9aacbc46
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
refs/heads/master
2020-04-25T07:14:31.388737
2020-01-07T02:51:13
2020-01-07T02:51:13
172,608,080
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
import pandas.api.types as pdt import pandas as pd from typing import Sequence from visions.core.model.relations import ( IdentityRelation, InferenceRelation, TypeRelation, ) from visions.core.model.type import VisionsBaseType def _get_relations() -> Sequence[TypeRelation]: from visions.core.implemen...
35a8c74de378ac521d1c86e29ff4fb0fe804eba7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03829/s130253347.py
369c68d33d9d4cee44e80bfa246abbd4af28f0be
[]
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
157
py
n,a,b=map(int,input().split()) xs=list(map(int,input().split())) l=[xs[i+1]-xs[i] for i in range(n-1)] ans=[a*k if a*k < b else b for k in l] print(sum(ans))
66b046fca4348342f44b6fccb8ee072e0a4f1306
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03696/s509896752.py
d2b5b083923b99b338db190c7478f534cf557b8f
[]
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
226
py
n = int(input()) s = input() opens = 0 l = 0 for i in range(n): if s[i] == "(": opens += 1 else: opens -= 1 if opens < 0: l += 1 opens = 0 print("("*l + s + ")"*opens)