blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
9f849fb8840dd75f8cb2cab2ce55da7520d1b95f
fad9600919055a160d5fa53f2d54278f373685c5
/archive/io_mesh_msh/mshImport2.py
526b0833268a2e0fcdd42cf8c160b5489ad6323c
[]
no_license
miklobit/blenderpython
f666ef26db6be03a1b1fe6a7f2cb5e31aad1b423
2b0e93437ac5e894e990ebc18c1d713b5f7ebe29
refs/heads/master
2021-01-15T09:33:31.092850
2015-04-11T12:22:03
2015-04-11T12:22:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,691
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "meta.androcto1@gmail.com" ]
meta.androcto1@gmail.com
625fc27220aca42beb67b339b282954b5aa1e91c
4e95bf83a066a76cd1910fea4a02e3bca795c689
/posts/views.py
47484692277e3bcc011e4f4943a167fe05669a14
[]
no_license
RootenberG/crud_app_drf
57f7f3d72d6104478dd41f8812ae71d10694f0a5
ee6dc8b83d30792525823d883a940fc72bdf5a62
refs/heads/master
2023-08-25T04:05:01.161653
2020-06-26T21:34:30
2020-06-26T21:34:30
274,443,481
0
0
null
2021-09-22T19:18:36
2020-06-23T15:34:49
JavaScript
UTF-8
Python
false
false
700
py
from rest_framework import viewsets from rest_framework.permissions import IsAuthenticatedOrReadOnly from .mixins import LikedMixin from .models import Post, Comment from .permissions import IsAuthorOrReadOnly from .serializers import PostSerializer, CommentSerializer class PostViewSet(LikedMixin, viewsets.ModelView...
[ "savichevdenis244@gmail.com" ]
savichevdenis244@gmail.com
a98093204444c84c39f5af87c020227d99abbd9d
0124528676ee3bbaec60df5d6950b408e6da37c8
/Projects/QTPy/adafruit-circuitpython-bundle-7.x-mpy-20220601/examples/displayio_layout_tab_layout_simpletest.py
20ad427d80b2fe555aed6518bfa23095a35ec6e8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
land-boards/lb-boards
8127658dc537dcfde0bb59a5018ab75c3f0087f6
eeb98cc2003dac1924845d949f6f5bd387376568
refs/heads/master
2023-06-07T15:44:46.110742
2023-06-02T22:53:24
2023-06-02T22:53:24
4,847,305
10
12
null
null
null
null
UTF-8
Python
false
false
4,076
py
# SPDX-FileCopyrightText: 2022 Tim C # # SPDX-License-Identifier: MIT """ Make a TabLayout and illustrate the most basic features and usage. """ import time import displayio import board import terminalio from adafruit_display_text.bitmap_label import Label from adafruit_display_shapes.rect import Rect from adafruit_di...
[ "doug@douglasgilliland.com" ]
doug@douglasgilliland.com
c839d12b7e17ef381ac1a8bcaf64d3875daeda26
daee54824cb107f9b5749e3c12e7f09f544bac0e
/modules/insight/tpgac.py
eac2aff57b60cb9db59fd5fccefb846468bf138e
[]
no_license
JoonVan/devide
8fa556d2b42c5ad70c3595303253f2a171de0312
586225d68b079e2a96007bd33784113b3a19a538
refs/heads/master
2020-12-26T06:25:01.744966
2017-01-22T19:47:50
2017-01-22T19:47:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,998
py
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class tpgac(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
[ "cpbotha@users.noreply.github.com" ]
cpbotha@users.noreply.github.com
f98b3389795bfe5693e4f156f992b5387ca3f40e
f96937b4f6ee9865413978fb85fa2e99e2f842ff
/lessons/migrations/0029_auto_20160923_1041.py
b81da1eccde3c7913d6e327947e396532af6ade6
[]
no_license
mrjoshida/curriculumbuilder
8adf22d91eae2f3205b177e18dbd8a0909fb2d58
3b700d6a6fea6d1d7d7ed18d5612d6e0853449c3
refs/heads/master
2021-01-17T02:28:11.094855
2019-10-17T22:47:46
2019-10-17T22:47:46
36,847,693
6
3
null
null
null
null
UTF-8
Python
false
false
1,045
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields import mezzanine.core.fields class Migration(migrations.Migration): dependencies = [ ('lessons', '0028_lesson_questions'), ] operations = [ migrations.AddFiel...
[ "josh@code.org" ]
josh@code.org
0a4e03320954118da6e7c47bae562a2d28f484ea
6fc9e93c883d36a9da92a9f907127925e41d49c3
/dpipe/video_reader.py
be5a03827cc0346565053e994442a5ee79ef3721
[ "Apache-2.0" ]
permissive
aiporre/multidataloader
add19491012aaf38bac22c5ee5bc8bb87029d340
61bac3bddc5ac99a82f6d39a23b446a1372cab7f
refs/heads/master
2023-04-08T15:02:51.540935
2023-02-21T06:27:25
2023-02-21T06:27:25
238,936,055
9
0
Apache-2.0
2023-03-25T00:55:08
2020-02-07T13:58:20
Python
UTF-8
Python
false
false
595
py
def _cv2_vread(path): import cv2 import numpy as np cap = cv2.VideoCapture(path) frameCount = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) frameWidth = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frameHeight = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) buf = np.empty((frameCount, frameHeight, frameWidth...
[ "ariel.iporre.rivas@gmail.com" ]
ariel.iporre.rivas@gmail.com
c9db1995f99b7059a2d889e20446f7febb76e851
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_arm/source/joblib/externals/loky/backend/popen_loky_posix.py
970dead0b4b45b05e53ac8daf5eaf7fe7870c416
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
7,113
py
############################################################################### # Popen for LokyProcess. # # author: Thomas Moreau and Olivier Grisel # import os import sys import signal import pickle from io import BytesIO from . import reduction, spawn from .context import get_spawning_popen, set_spawning_popen from...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
f4d1a6180c81f2f6aa2f6416c1fe676d24073b5f
bc08bab7959045d3f051d66c901b8ca364b71c49
/plugins/exalead.py
662934d466e521a24e5becf0b067898423d65c92
[]
no_license
PatronSaintOwl/email-harvester
4c7c5c0f9eef359ffb12b8e24795ef2e7b6b2d43
cd2644e51720432723c8259e10836a28d9af949d
refs/heads/master
2023-04-13T04:00:54.198410
2020-11-17T11:47:42
2020-11-17T11:47:42
314,182,506
0
0
null
2023-04-03T23:53:11
2020-11-19T08:26:36
null
UTF-8
Python
false
false
521
py
#!usr/bin/env/python app_emailharvester = None def search(domain, limit): url = "http://www.exalead.com/search/web/results/?q=%40{word}&elements_per_page=10&start_index={counter}" app_emailharvester.init_search(url, domain, limit, 0, 50, 'Exalead') app_emailharvester.process() return app_emailharveste...
[ "krisna.pranav@gmail.com" ]
krisna.pranav@gmail.com
3e9a8096749408a7523cab2136ccab0e37552f70
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_quantizer/vai_q_tensorflow2.x/tensorflow_model_optimization/python/core/quantization/keras/vitis/vai_q_tensorflow/tools/reset_onnx_weights.py
855ac7a8806f67975bb03f93007a2471ee319896
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-...
permissive
Xilinx/Vitis-AI
31e664f7adff0958bb7d149883ab9c231efb3541
f74ddc6ed086ba949b791626638717e21505dba2
refs/heads/master
2023-08-31T02:44:51.029166
2023-07-27T06:50:28
2023-07-27T06:50:28
215,649,623
1,283
683
Apache-2.0
2023-08-17T09:24:55
2019-10-16T21:41:54
Python
UTF-8
Python
false
false
1,627
py
import onnx from onnx import numpy_helper import numpy as np model_name = "mlperf_resnet50" # model_name = "sd" model_path = "./{}/quantized.onnx".format(model_name) save_path = "./{}_reset_weights.onnx".format(model_name) model = onnx.load(model_path) graph = model.graph inits = graph.initializer init_map = {} for...
[ "do-not-reply@gitenterprise.xilinx.com" ]
do-not-reply@gitenterprise.xilinx.com
4a73ecb5ca9151ab3ee4c0d6352e8cf3cbf3ab63
1e0355b293100873cedfcac789655a35180781db
/BOJ10177.py
dcf63c2f0429177a13c906108bacd8ac57e4fb06
[ "MIT" ]
permissive
INYEONGKIM/BOJ
47dbf6aeb7a0f1b15208866badedcd161c00ee49
5e83d77a92d18b0d20d26645c7cfe4ba3e2d25bc
refs/heads/master
2021-06-14T13:50:04.124334
2021-03-09T14:04:14
2021-03-09T14:04:14
168,840,573
2
0
null
null
null
null
UTF-8
Python
false
false
703
py
r="" for _ in range(int(input())): n=int(input());a=[];f=True for _ in range(n): a.append([int(i) for i in input().split()]) th=sum(a[0]) for i in range(1,n): if sum(a[i])!=th: f=False break if f: for i in range(n): t=0 for j in...
[ "noreply@github.com" ]
INYEONGKIM.noreply@github.com
dc10f71844bc1da5303d2a6190e89f4c85848a47
ceb8e7c0d8b8be7b2570162f4bc77944ac67a8c4
/Transfomer_ViT/models/losses.py
8fa8b131a3140f2f0d26db66d558a2cd9ab5a113
[]
no_license
Yagami360/MachineLearning_Exercises_Python_PyTorch
9cf036bc443b6b6786448cb47dd286cc5516f58e
97e1bd1eebc528d8c682a41031c750fa2066a713
refs/heads/master
2022-04-28T12:43:22.080804
2022-04-05T06:39:01
2022-04-05T06:39:01
167,186,108
18
1
null
null
null
null
UTF-8
Python
false
false
7,575
py
# -*- coding:utf-8 -*- import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models #============================================= # Cross entropy loss #============================================= class ParsingCrossEntropyLoss(nn.Module): def __i...
[ "y034112@gmail.com" ]
y034112@gmail.com
2ec62867bb3cfe7783b988310c5337fbacf06d88
d833487ba7a78e900ce535d60c123986ab5ebfee
/Strings/7. Pattern Matcher/Solution.py
260e6156458082d7e4b31dd99cb1eafed7758073
[]
no_license
ceteongvanness/Algorithm-Python
b71af3bca4d2573f4a0d18dc991012b996746d6a
0151e7bac3f4032bbc76caa209bb63cdfa8a581e
refs/heads/master
2023-01-31T04:17:22.425719
2020-12-14T05:21:15
2020-12-14T05:21:15
263,880,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,388
py
# O(n^2 + m) time | O(n + m) space def patternMatcher(pattern, string): if len(pattern) > len(string): return[] newPattern = getNewPattern(pattern) didSwitch = newPattern[0] != pattern[0] counts = {"x": 0, "y": 0} firstYPos = getCountsAndFirstYPos(newPattern, counts) if counts["y"] != 0: for lenOfX in rang...
[ "ceteongvanness@hotmail.com" ]
ceteongvanness@hotmail.com
42f1de1ed9fa0fb7d5262b06da1864a17ccd9226
5ca4a0d91f5bd119e80478b5bd3d43ed30133a42
/film20/userprofile/admin.py
87fe205dcedba7b6075d9c8d1cd566f1ccb2f4ef
[]
no_license
thuvh/filmmaster
1fc81377feef5a9e13f792b329ef90f840404ec5
dd6a2ee5a4951b2397170d5086c000169bf91350
refs/heads/master
2021-01-17T16:10:54.682908
2012-04-29T18:19:52
2012-04-29T18:19:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
#------------------------------------------------------------------------------- # Filmaster - a social web network and recommendation engine # Copyright (c) 2009 Filmaster (Borys Musielak, Adam Zielinski). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Af...
[ "email@ibrahimcesar.com" ]
email@ibrahimcesar.com
ca670d9b704d57ebc726682de7bb70aad0318fbb
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventhub/azure-mgmt-eventhub/generated_samples/private_end_point_connection_get.py
72a0e92eed06e0a332f3762802813e53d1ad3936
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,665
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
9847114744af83ec32039de3082aa2899e27f2d5
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_54/321.py
57328e2ae34e0135c257fbe0466ac0992e28cc89
[]
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
1,183
py
def even(x): return (x % 2 == 0) def gcd(x, y): if (x < y): return gcd(y, x) if (y == 0): return x else: if even(x): if even(y): return (gcd(x >> 1, y >> 1) << 1) else: return gcd(x >> 1, y) else: ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
2511c448031af58c8c57c3e68ee027d1752fee7c
0c03fcf9b3bdb43473a740935c4bf028b40e5ec4
/AegisServer/BowserCountry/earth.py
a774c66c29b08f5259fc9bc7d995a2a4e6c48d22
[]
no_license
Bowserinator/AegisServer2
afe6b7fbd826e031a00aec94501db7f88a133b5f
06fc64e54adcaf82ff9a62f1047f5aee5c07672a
refs/heads/master
2021-01-01T03:56:38.310579
2016-05-24T22:21:19
2016-05-24T22:21:19
59,434,565
0
2
null
2016-10-28T23:47:40
2016-05-22T21:10:50
Python
UTF-8
Python
false
false
379
py
COAL = 100.0 #Coal left in the world, decreases by coal power plants and factories URANIUM = 100.0 #Uranium left in the world, used up by nukes and nuclear powerplants TEMPERATURE = 14.6 #Average global temp in C MONEY = 0 #Sum of every nation's money #GLOBAL DISASTERS #SUPER VOLCANO, once every 2000 years #SUPERSTOR...
[ "bowserinator@gmail.com" ]
bowserinator@gmail.com
b3bf93f04644a4a58d190fb29b045ea9243dda21
71e324d2e7c9557a9cfec01997a44a66539ac2e6
/Chapter_07/module_os.py
e49185c51e0219eb7c2e6e2d32a13cdf5f4b0496
[]
no_license
ulillilu/Python_Practice
2706a72b22243f4d76bf239f552bd7da2615c1ef
f2b238176f7e68b3fa0674ce4951aaa4206c15d3
refs/heads/master
2022-11-29T17:58:52.035022
2020-08-13T17:01:49
2020-08-13T17:01:49
287,334,050
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
#os 모듈 import os print("현재 운영체제:", os.name) print("현재 폴더:", os.getcwd()) print("현재 폴더 내부의 요소:", os.listdir()) #폴더가 비어있는 경우 폴더 생성 및 제거 os.mkdir("hello") os.rmdir("hello") with open("original.txt", "w") as file: file.write("hello") os.rename("original.txt", "new.txt") os.remove("new.txt") os.sys...
[ "noreply@github.com" ]
ulillilu.noreply@github.com
67dc55ea77ef89e1149a5d0f1f61ed69cc2faba5
f0878fc502a45d11016322b3922f98fea922eeda
/test/Scripts/createfontdatachunk.py
3457279fee7131e4e30b5b8aa046627e84c8e43e
[]
no_license
yuong1979/voterablev2
8ab4a4248a28542b347fe330dcd75dc055d8a5dc
00385a100589c2e8e8f2d405552f11a9634df24e
refs/heads/master
2022-12-10T09:34:57.706011
2020-09-16T14:43:40
2020-09-16T14:43:40
296,034,393
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
#!c:\users\yu\desktop\voterable\test\scripts\python.exe from __future__ import print_function import base64 import os import sys if __name__ == "__main__": # create font data chunk for embedding font = "Tests/images/courB08" print(" f._load_pilfont_data(") print(" # %s" % os.path.basename(fo...
[ "yuong1979@gmail.com" ]
yuong1979@gmail.com
c9594ca839162fd4b3dfe7ceebd0af65a10fd3f0
0064d4b6f3908b2989a7965e49afa3f4bf65d095
/python/opencv.py
f9f1dda24afc6a5ff4dd1ca3bb1a73056ca4857e
[]
no_license
MyHiHi/myLeetcode
d7a5c1c3a3a30ba517183f97369ed6c95e90cae3
ca36041af7f73d91c95cdbe9599ac5ec15a1243c
refs/heads/master
2021-05-20T08:29:37.017725
2020-05-03T05:17:05
2020-05-03T05:17:05
252,196,933
2
0
null
null
null
null
UTF-8
Python
false
false
3,406
py
import PySimpleGUI as sg # pip install pysimplegui import cv2 # pip install opencv-python import numpy as np # pip install numpy # 背景色 sg.theme('LightGreen') # 定义窗口布局 layout = [ [sg.Image(filename='', key='image')], [sg.Radio('None', 'Radio', True, size=(10, 1))], [sg.Radio('threshold', 'Radio...
[ "909535692@qq.com" ]
909535692@qq.com
f0730b0b82081c20866c34bbb760866343e22d1d
1c6a83c0334b616569a5fd94ffaa37ea8cf605b6
/voiceAssistant/Text_classification/test_2.py
5a45d941fc5e97a7cd67e8df29282094d28bc0b9
[]
no_license
xiejunbiao/cloudbrain-assistant
711368bc9c91762df6680e90cd4063c04d27e3dd
f363453025fde1d8f1bdbac6928452940b70f234
refs/heads/master
2022-12-11T19:04:32.264349
2020-08-27T14:04:51
2020-08-27T14:04:51
290,790,010
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
from voiceAssistant.Text_classification.test_1 import S class B(object): def __init__(self): self.S = S() def b1(self): return self.S.s1(12)
[ "996790454@qq.com" ]
996790454@qq.com
63159bf343a6344daae7d6ec7595fe047b89b5f8
bdc3c35eed9b8c243a4c095ad919f188456a51ea
/billing/templatetags/amazon_fps_tags.py
5168806ed97e46e7c6a839b24e8ad9b7903762e2
[ "BSD-3-Clause" ]
permissive
dragonx/merchant
3c47f3dad731ddec23ac2a279638ab3e5ce994cd
a112665cfc0a59485be548f71d2298e5e0a4cc56
refs/heads/master
2021-01-16T22:17:02.854964
2013-04-10T20:06:34
2013-04-10T20:06:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
''' Template tags for Amazon FPS offsite payments ''' from django import template from django.template.loader import render_to_string register = template.Library() class AmazonFPSNode(template.Node): def __init__(self, integration): self.integration = template.Variable(integration) def render(self, c...
[ "thejaswi.puthraya@gmail.com" ]
thejaswi.puthraya@gmail.com
90b1c1b085383a3f8c7a9a293b076c36e0d50180
94bb879816dbdd69559ecfcc70a09f33d104af67
/source/functions/sqlmap/extra/dbgtool/__init__.py
f5f6aa0e91088f6517914af49fd23756e658f013
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-other-permissive", "GPL-2.0-only", "LicenseRef-scancode-commercial-license", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-other-copyleft", "GPL-1.0-or-later", "GPL-CC-1.0", "LicenseRef-scancode-unknown", "MIT" ]
permissive
51000000/CampusCyberInspectionTool2021
f328ad571ab88051aa6928a67209dd94ce25eb6c
27a2de7ff3707ba6ab084acfce79a7d3f42b8f84
refs/heads/main
2023-03-28T01:11:22.678066
2021-04-01T05:23:54
2021-04-01T05:23:54
353,502,239
0
0
MIT
2021-03-31T22:06:49
2021-03-31T22:06:48
null
UTF-8
Python
false
false
146
py
#!/usr/bin/env python """ Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ pass
[ "55148245+51000000@users.noreply.github.com" ]
55148245+51000000@users.noreply.github.com
9670c62eb2ea175b4a32e4125922a623e417c152
9ad740a76844e7fd324f2e78111607c00ac53f83
/knn_utils.py
12cdcf89be5a45e489ca9c92a5333f4eee6bcce9
[ "MIT" ]
permissive
FangmingXie/mctseq_over_under_splitting
20da6b16935f1a82fee2e3a3973e9f6615639f8c
15655dc448e62be008426b7e52852f3866cd4406
refs/heads/master
2022-07-03T17:30:09.280544
2020-05-12T06:41:12
2020-05-12T06:41:12
261,609,273
1
0
null
null
null
null
UTF-8
Python
false
false
5,374
py
""" """ from __init__ import * from scipy import sparse from annoy import AnnoyIndex def build_knn_map(X, metric='euclidean', n_trees=10, verbose=True): """X is expected to have low feature dimensions (n_obs, n_features) with (n_features <= 50) return: t: annoy knn object, can be used in the followin...
[ "fmxie1993@gmail.com" ]
fmxie1993@gmail.com
83c22a8d7e1ca692ef7fda08a34a8d360ea5a6b0
eca5f28257f7f4e32d7bf5a5406ace65d9b62836
/dev-utils/nasm/nasm.py
8cdfaf59da925fd2279090add4454a38be0ba359
[ "BSD-2-Clause" ]
permissive
TheOneRing/craft-blueprints-kde
9a32b1c7ede6635b41efb90b974d07a3fc72aba4
b352b24a504db891dc3ba3a5aed0205a0c3a6568
refs/heads/master
2021-04-06T20:23:29.504909
2018-11-19T16:10:04
2018-11-19T16:10:04
125,181,066
0
0
null
2018-03-14T08:37:52
2018-03-14T08:37:51
null
UTF-8
Python
false
false
1,454
py
import info class subinfo(info.infoclass): def registerOptions(self): self.parent.package.categoryInfo.platforms = CraftCore.compiler.Platforms.NotLinux def setTargets(self): for ver in ["2.13.03"]: if CraftCore.compiler.isWindows: self.targets[ver] = f"https://www...
[ "vonreth@kde.org" ]
vonreth@kde.org
aa2b6adc2424eca21986968d89a1c53d78ce41eb
ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd
/clients/client/python/test/test_permission_api.py
a0676c83c14751456db345ac06a123e6ecb1a7a8
[ "Apache-2.0" ]
permissive
ory/sdk
fcc212166a92de9d27b2dc8ff587dcd6919e53a0
7184e13464948d68964f9b605834e56e402ec78a
refs/heads/master
2023-09-01T10:04:39.547228
2023-08-31T08:46:23
2023-08-31T08:46:23
230,928,630
130
85
Apache-2.0
2023-08-14T11:09:31
2019-12-30T14:21:17
C#
UTF-8
Python
false
false
1,511
py
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v1.1.51 Contact: support@ory.sh Generated by: https://ope...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com
ccfd9db31197819ce95c2dd507491e994662cf17
0bfb55b41282803db96b90e7bba73d86be7e8553
/usermgmt/group_models.py
fa6d16be2e9269f372d2884984e4da38dc5c0053
[ "MIT" ]
permissive
OpenFurry/honeycomb
eebf2272f8ae95eb686ad129555dbebcf1adcd63
c34eeaf22048948fedcae860db7c25d41b51ff48
refs/heads/master
2021-01-11T01:52:40.978564
2016-12-29T18:08:38
2016-12-29T18:08:38
70,649,821
2
2
null
2016-12-29T18:08:39
2016-10-12T01:22:38
Python
UTF-8
Python
false
false
365
py
from django.contrib.auth.models import User from django.db import models class FriendGroup(models.Model): """A group of friends for managing permissions on submissions.""" name = models.CharField(max_length=100) users = models.ManyToManyField(User) def __str__(self): return self.name def...
[ "madison.scott-clary@canonical.com" ]
madison.scott-clary@canonical.com
4edc29a072d281ba19043738c548caefd1b400b5
b24a89056bf207144c01f2c049cef0e961a99fb7
/7-22 找鞍点 (20 分).py
051d74d37ba381bded31e59f3114c4fac5eb1b9c
[]
no_license
toooooodo/python-programming
0788fba5ada7216ede1e97eac77cf6ea7d953079
fac61a42183e8e8ec29810433e73e5e8475d7c0b
refs/heads/master
2020-05-07T08:02:57.301075
2019-06-03T08:21:32
2019-06-03T08:21:32
180,304,635
7
0
null
null
null
null
UTF-8
Python
false
false
447
py
n=int(input()) matrix=[list(map(int,input().strip().split())) for i in range(n)] for i in range(n): #index=matrix[i].index(max(matrix[i])) index=0 for j in range(1,n): if matrix[i][j]>=matrix[i][index]: index=j flag=True for j in range(n): if matrix[j][index]<matrix[i][in...
[ "1042178105@qq.com" ]
1042178105@qq.com
f4988240fd443e118ec3fe58104c5ee089d4da26
efd5d2e831bb9a22a4358f7db3d684f8e0e1e889
/find_pivot_index_724.py
fa89cbe5221245b5e4c7ca57778868a0ff642b00
[ "Apache-2.0" ]
permissive
danielsunzhongyuan/my_leetcode_in_python
b8112bac812fa0ea06121dec2c6c86d0a3d49e84
34d34280170c991ea7a28d74a3f2338753844917
refs/heads/master
2020-12-24T19:46:47.813091
2018-12-05T15:51:22
2018-12-05T15:51:22
56,480,882
0
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
""" Given an array of integers nums, write a method that returns the "pivot" index of this array. We define the pivot index as the index where the sum of the numbers to the left of the index is equal to the sum of the numbers to the right of the index. If no such index exists, we should return -1. If there are multip...
[ "sunzhongyuan@lvwan.com" ]
sunzhongyuan@lvwan.com
530cf482db8f9081d1bd519aca076fca45dd44ae
86c082438a001ba48617aa756439b34423387b40
/src/the_tale/the_tale/game/bills/jinjaglobals.py
f90456c5aead187e869d4d1dc4c868bc00875dd2
[ "BSD-3-Clause" ]
permissive
lustfullyCake/the-tale
a6c02e01ac9c72a48759716dcbff42da07a154ab
128885ade38c392535f714e0a82fb5a96e760f6d
refs/heads/master
2020-03-27T21:50:56.668093
2018-06-10T17:39:48
2018-06-10T17:39:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
# coding: utf-8 from dext.common.utils import jinja2 from the_tale.game.bills.bills import BILLS_BY_ID @jinja2.jinjaglobal def bills_menu_types(): return sorted(BILLS_BY_ID.items(), key=lambda x: x[1].type.text)
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com
88e0eb5e520cee0a43c79cef13757b686ae14ceb
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_116/2451.py
56638a6dc7a0e815a0655145d910ab35b652d148
[]
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
1,655
py
import sys DEFAULT_MESSAGE = 'Game has not completed' WILDCARD = 'T' GAME_LENGTH = 4 global dot_count class FoundWinner(Exception): def __init__(self, winner): self.val = "%s won" % winner def __str__(self): return self.val class FoundDraw(Exception): def __init__(self): pass def __str__(...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
84f168940325b9770c36b88380034ee4e2f33d1b
274500e3733d500627ba41d6a6daddf05d79b849
/jishaku/features/__init__.py
2e5683d46e3bf0949226b880be364e17ab95122f
[ "Apache-2.0", "MIT" ]
permissive
Cryptex-github/jishaku
ed155406424d3d7e0141990f149d5cfa2d67cea4
4368a55ba561e2ae8262e5159825631f00eb77d6
refs/heads/master
2023-07-02T20:48:26.402615
2021-08-07T02:12:00
2021-08-07T02:12:00
393,553,702
0
0
MIT
2021-08-07T02:11:32
2021-08-07T02:11:31
null
UTF-8
Python
false
false
246
py
# -*- coding: utf-8 -*- """ jishaku.features ~~~~~~~~~~~~~~~~~ The namespace containing the Feature components that go into the final Jishaku cog class. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """
[ "sansgorialis@gmail.com" ]
sansgorialis@gmail.com
da4bd7fd652e161f0c64a8f1bcdd988372d0d75d
20a0bd0a9675f52d4cbd100ee52f0f639fb552ef
/transit_odp/organisation/migrations/0010_auto_20191009_0924.py
1be02e621dd3dda65187bcff31dece9fecb4605d
[]
no_license
yx20och/bods
2f7d70057ee9f21565df106ef28dc2c4687dfdc9
4e147829500a85dd1822e94a375f24e304f67a98
refs/heads/main
2023-08-02T21:23:06.066134
2021-10-06T16:49:43
2021-10-06T16:49:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
# Generated by Django 2.2.5 on 2019-10-09 08:24 import logging from django.db import migrations from django.db.models import F, Q logger = logging.getLogger(__name__) def fill_published_at(apps, schema_editor): logger.info( "Populating published_at field of published dataset revisions using created time...
[ "ciaran.mccormick@itoworld.com" ]
ciaran.mccormick@itoworld.com
51c4bc58ec8d2cedab610f8561be83ea802f10b9
e7d6e79f9ae4bf215729adf92c2d2e9f0ce2a17a
/formats/benchmarks/bm_fstring.py
9e75dd1bc12219e5498d7aae7a6bb15eb06fa0a3
[]
no_license
mlouielu/python-string-format-microperformance
830315601b46697b6603615549cf40cb133987fe
2e6f8f8c9c65f79973faae2b086b0b19d5b0e612
refs/heads/master
2021-01-01T15:40:09.431320
2017-07-24T03:26:02
2017-07-24T03:30:05
97,672,560
1
0
null
null
null
null
UTF-8
Python
false
false
699
py
import random import string import perf def rstring(N=6): return ''.join(random.choices(string.ascii_uppercase + string.digits, k=N)) inputs1 = [random.randint(0, 2 ** 32 - 1) for i in range(10)] inputs2 = [rstring(10) for i in range(10)] def bench_fstring(): s = f'{inputs1[0]}-{inputs1[1]}-{inputs1[2]}-{...
[ "git@louie.lu" ]
git@louie.lu
83791d6a8dad40080bbef8f993ae57622420180e
5023f3f6f493a6cf3a6e4acf7ee742fdecc2a558
/ScopeFoundryHW/ni_daq/hw/ni_digital_out.py
19cc74850f61cdf9367ef454a01861f9d05cab72
[ "MIT" ]
permissive
erictang000/stackbot
1a0de1a30c0b17a67808cbb7f084149f0c744070
e9a20930d790c995163192b29394a266af54a3d0
refs/heads/master
2022-04-10T06:48:25.785204
2020-03-18T23:08:57
2020-03-18T23:08:57
248,362,086
1
3
null
null
null
null
UTF-8
Python
false
false
2,386
py
from ScopeFoundry import HardwareComponent import PyDAQmx as mx import numpy as np class NIDigitalOutHW(HardwareComponent): name = 'ni_digital_out' def __init__(self, app, debug=False, name=None, line_names="01234567"): self.line_names = line_names HardwareComponent.__init__(self, app...
[ "esbarnard@lbl.gov" ]
esbarnard@lbl.gov
1daf07bed018aade0e0a9511391cb3fab95395c6
d95ba414b4922e276ea39e74fa645118823142f0
/instagram/email.py
c6a88dde1d9fbfc6f079caa7940794fe4e4d7ad1
[ "MIT" ]
permissive
Rubyroy12/instacom
1ba4f183a74b43261756a7de3c5a5c1401f27714
d2ceb33971309839fbce46340641289966a2c6de
refs/heads/master
2023-06-14T18:45:28.831497
2021-07-13T12:10:20
2021-07-13T12:10:20
384,556,645
1
0
null
null
null
null
UTF-8
Python
false
false
598
py
from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string def send_welcome_email(name,receiver): # Creating message subject and sender subject = 'Welcome to the Instagram' sender = 'fitstargilii1194@gmail.com' #passing in the context vairables text_con...
[ "you@example.com" ]
you@example.com
73a13f4f39cd6374ae6041690db65383cb2ce552
b000127408f96db7411f301553585f5da0e426cd
/code/How-Many-Numbers-Are-Smaller-Than-the-Current-Number.py
08b0741793fcbd1fb4bf5edee8364ea75babc9f8
[]
no_license
SaiVK/Leetcode-Archive
5f758faf97d1ab559c4c75d26ae5cf7a256baef8
56bafeaaced2d0fd3b3d2f1a0365d24d5b41e504
refs/heads/master
2022-11-23T08:50:17.610247
2020-07-27T02:09:53
2020-07-27T02:09:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
class Solution(object): def smallerNumbersThanCurrent(self, nums): sortedVals = sorted(nums) return [sortedVals.index(x) for x in nums]
[ "christopherlambert106@gmail.com" ]
christopherlambert106@gmail.com
41489afbbcc96535c70c6c12b811db2b2cacd64a
56623552dd284fce6e1f0292e91c016a21641468
/blockchain_network/wallet.py
7ddbe642592d3c5444598456333924c5fe960f4d
[ "MIT" ]
permissive
thieu1995/mpoc_code
12c02adb812432c9836a2417f300175648bd6f28
58dccc097ae1027154d1b3b15692b1658fbdf86a
refs/heads/master
2023-01-24T09:20:32.063479
2020-11-23T02:47:29
2020-11-23T02:47:29
315,182,596
1
0
null
null
null
null
UTF-8
Python
false
false
697
py
class Wallet: def __init__(self, address=None, balance=None, stake_value=None): self.address = address self.start_balance = balance self.balance = balance self.stake_value = stake_value def send_transaction(self, transaction_fee): if self.balance <= self.stake_value: ...
[ "nguyenthieu2102@gmail.com" ]
nguyenthieu2102@gmail.com
1d33ba8e234f93582ca04e3a77b3db030cfd2193
421b0ae45f495110daec64ed98c31af525585c2c
/File_Handling/empactdata.py
77fe1192c1a7ffd92eb4f3fae3a51704c4cc121d
[]
no_license
Pradeepsuthar/pythonCode
a2c87fb64c79edd11be54c2015f9413ddce246c4
14e2b397f69b3fbebde5b3af98898c4ff750c28c
refs/heads/master
2021-02-18T05:07:40.402466
2020-03-05T13:14:15
2020-03-05T13:14:15
245,163,673
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import json FILE_NAME = "empdata.json" def read_emp_info(): 'to read all employee info from json file' # openig file in read mode fr = open(FILE_NAME) # reading all data from json file info python compative info = json.load(fr) fr.close() for item in info: print("%d\t%s\t%0.2f"%(item["ECode"],it...
[ "sutharpradeep081@gmail.com" ]
sutharpradeep081@gmail.com
1e3f2a68c17f2d76ac6de37997ac0ec591f08c7b
af35f890c0c6a2fa531f47a4c2ed132e8920190d
/python/leetcode/tree/993_cousins_bintree.py
acfe11c7e529fd1015054f5af34e2e84571ff51f
[]
no_license
Levintsky/topcoder
b1b17cd3fddef5a23297bcbe4e165508d09a655d
a5cb862f0c5a3cfd21468141800568c2dedded0a
refs/heads/master
2021-06-23T10:15:27.839199
2021-02-01T07:49:48
2021-02-01T07:49:48
188,175,357
0
1
null
2020-05-19T09:25:12
2019-05-23T06:33:38
C
UTF-8
Python
false
false
1,842
py
""" 993. Cousins in Binary Tree (Easy) In a binary tree, the root node is at depth 0, and children of each depth k node are at depth k+1. Two nodes of a binary tree are cousins if they have the same depth, but have different parents. We are given the root of a binary tree with unique values, and the values x and y o...
[ "zhuoyuanchen2014@u.northwestern.edu" ]
zhuoyuanchen2014@u.northwestern.edu
3e66a6f0b907e8ce211c65303c1f542aeb1bb1ac
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2081/60896/301516.py
ca745a995ab38f3a9371cf6dd30167d2a4ab607c
[]
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
160
py
str1=input() str2=input() count=0 for i in range(0,len(str1)-len(str2)+1): str3=str1[i:i+len(str2)] if(str2==str3): count+=1 print(count,end='')
[ "1069583789@qq.com" ]
1069583789@qq.com
83629d9146b53c789a50a3755a0b38d86ea1d19a
ec45bee420713f64d2d00a5d1c15a9a5f66a940b
/study/pickle_study/pickle_study.py
ddc12f6bd3f1a0e29e2c276dbe531d34b326289d
[ "MIT" ]
permissive
strawsyz/straw
a7dc5afef9525eeb3b1a471b5a90d869a3ba5084
cdf785856941f7ea546aee56ebcda8801cbb04de
refs/heads/master
2023-06-08T17:18:53.073514
2023-06-05T05:51:41
2023-06-05T05:51:41
253,447,370
2
0
null
null
null
null
UTF-8
Python
false
false
216
py
import pickle def write(file_name, args): with open(file_name, 'wb') as f: pickle.dumps(args, f) def read(file_name): with open(file_name, 'rb') as f: tmp = pickle.loads(f) return tmp
[ "836400042@qq.com" ]
836400042@qq.com
afe6f15499217bfbe5a65dbd271f1741968a63cd
f198e4b48539731edf53e21fa4abac3e6cc30105
/kwargs.py
bb1fd2217a0557c14674130ace715efe62c1144e
[]
no_license
sanjaydangwal/Python
594a3db4cabed576bd0233a24374d6609a87775b
b33853e3ae7ef590f4771d1aed9b888378775095
refs/heads/master
2020-11-29T14:12:57.226422
2019-12-25T17:30:00
2019-12-25T17:30:00
230,133,845
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
def kwargs_exampel(**kwargs): for k,v in kwargs.items(): print(f"{k} : {v}") kwargs_exampel(name='sanjay',age=19) user_info = { 'name' : 'sanjay dangwal', 'age' : 19 } kwargs_exampel(**user_info)
[ "sanjay.dangwal199@gmail.com" ]
sanjay.dangwal199@gmail.com
23083283d6dce09cf367ced28487d34e5a359d01
369da6157ca39d92d03d24b04384fb654cc5aebe
/tests/compilation/request/test_request_compiled.py
2122b5f6e101c2bda1952f27504eb42e4070ca2d
[ "MIT" ]
permissive
lasta/preacher
d1f5a243f4c3b9903419edf61096ee82dfd62127
5e50f8eb930fac72a788e7614eb5a85903f7bde6
refs/heads/master
2022-11-28T17:35:44.314163
2020-08-09T05:39:03
2020-08-09T05:39:03
284,201,226
0
0
MIT
2020-08-01T06:23:08
2020-08-01T06:23:07
null
UTF-8
Python
false
false
2,346
py
from unittest.mock import Mock, NonCallableMock, sentinel from preacher.compilation.request.request import RequestCompiled from preacher.compilation.request.request_body import RequestBodyCompiled from preacher.core.request import Method PKG = 'preacher.compilation.request.request' def test_replace(): initial =...
[ "ymoch.dev@gmail.com" ]
ymoch.dev@gmail.com
54711467f9d94e96cd67c6afefc2c2f00e3f7a38
9e21dbdf075dc51ca86023eee305032eb2b7a4ba
/planemo_ext/galaxy/tools/deps/resolvers/modules.py
84b013f008fb58cf3b97778e48065d4997c52200
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
davebx/planemo
9a742e4aa6fbcb636dae26fc5e1e6ab09d7fed63
6c0dc20a56d23be0398b4b966938cbdd8058a62d
refs/heads/master
2021-01-18T07:36:55.512560
2015-10-15T17:41:51
2015-10-15T17:41:51
27,385,752
0
0
null
null
null
null
UTF-8
Python
false
false
6,098
py
""" This file contains the outline of an implementation to load environment modules (http://modules.sourceforge.net/). This is a community contributed feature and the core Galaxy team does utilize it, hence support for it will be minimal. The Galaxy team eagerly welcomes community contribution and maintenance however....
[ "jmchilton@gmail.com" ]
jmchilton@gmail.com
2396474a650f05fe4803c371a467bea14ac2aae4
5676e967d357068aada5b1d937e8d733fd2c38f4
/app/main.py
175714f0416bb2ba919e9a80ed196df865d66818
[ "MIT" ]
permissive
Sanix-Darker/b4sh-api
bcd6c464fcdb3f1c13ca0cb30bc23f50f1a89018
936d6a6f87bf4766899efee1bd0c11f1730bf901
refs/heads/master
2023-08-23T08:24:33.075396
2021-10-30T10:03:20
2021-10-30T10:03:20
326,267,342
2
0
MIT
2021-03-01T20:37:25
2021-01-02T20:41:37
JavaScript
UTF-8
Python
false
false
5,436
py
# coding: utf-8 # b4sh REST-API from flask import Flask, jsonify, request, render_template, send_file from flask_cors import CORS, cross_origin from app.utils import * app = Flask(__name__) CORS(app, support_credentials=True) # / @app.route("/") @cross_origin(supports_credentials=True) def _index(): return rend...
[ "s4nixd@gmail.com" ]
s4nixd@gmail.com
158e0ea9055d5f6f01170e62d26bd94d483aeca0
c0ea89d58fd6f780a23f10a0b5535b3feada5a1a
/anchore_engine/services/policy_engine/api/models/feed_metadata.py
0864d042a662bca6b64a4e80cd83ebd9b4c2dc33
[ "Apache-2.0" ]
permissive
longfeide2008/anchore-engine
b62acbab8c7ebbf7fa67a2503768c677942220e4
622786ec653531f4fb216cb33e11ffe31fe33a29
refs/heads/master
2022-11-08T10:02:51.988961
2020-06-15T18:00:37
2020-06-15T18:00:37
274,068,878
1
0
Apache-2.0
2020-06-22T07:27:39
2020-06-22T07:27:38
null
UTF-8
Python
false
false
5,204
py
# coding: utf-8 from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from anchore_engine.services.policy_engine.api.models.base_model_ import Model from anchore_engine.services.policy_engine.api.models.feed_group_metadata import FeedGroupMetadata # noqa: F401,E501 from anch...
[ "zach@anchore.com" ]
zach@anchore.com
27cf6a1ab054bec1484b8c4b518d8d9b1deca690
ebe7c57183b0eeba9af1bdc72f0f81b9b8129ca9
/4. DP/416.py
d91f49c89b8cec091e509f9b23e79f057db613bd
[]
no_license
proTao/leetcode
f2e46392b56b69606e1dd25cf5738cb0ad275645
97533d53c8892b6519e99f344489fa4fd4c9ab93
refs/heads/master
2021-11-24T10:23:56.927122
2021-11-18T04:28:05
2021-11-18T04:28:05
110,225,265
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
class Solution: def canPartition(self, nums): """ :type nums: List[int] :rtype: bool """ target = sum(nums) // 2 if target * 2 != sum(nums): return False dp = [True] + [False] * target print(dp) for n in nums[::-1]: f...
[ "836807627@qq.com" ]
836807627@qq.com
3af73274e68ba008ec95c07321b6f279035f82f8
86a26119af259e3858cb5e57ea2e41e3b25c5fa7
/$RECYCLE.BIN/S-1-5-21-228534858-3824383051-2225680591-1001/$RKEJ7KF/StockerLogin_support.py
4e990d192045fcfb6e4075e942891f7f9d5bcb8a
[]
no_license
deshmukhshweta/project2
747ca7972a7bfdc4aed20dbb4ee3f6d2f009ca83
8bf07454d259456dc616e7283c266b35fe7b870d
refs/heads/master
2020-04-19T09:57:05.541157
2019-01-29T09:27:01
2019-01-29T09:27:01
168,125,342
0
0
null
null
null
null
UTF-8
Python
false
false
1,475
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Support module generated by PAGE version 4.13 # In conjunction with Tcl version 8.6 # May 27, 2018 02:27:42 PM import sys from tkinter import messagebox from firebase import firebase as fb try: from Tkinter import * except ImportError: from tkinter impor...
[ "123deshmukhshweta@gmail.com" ]
123deshmukhshweta@gmail.com
e471ad2105eb72f3aa27e6c759635e187445bf05
1749147fb24b13803d3437e0ae94250d67d618bd
/keras/keras39_cifar10_1_imshow.py
cfcd10479560bfe9c8bcdc2e0fe908049a83407d
[]
no_license
MJK0211/bit_seoul
65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e
44d78ce3e03f0a9cf44afafc95879e4e92d27d54
refs/heads/master
2023-02-06T00:45:52.999272
2020-12-26T07:47:30
2020-12-26T07:47:30
311,308,648
1
0
null
null
null
null
UTF-8
Python
false
false
738
py
#Cifar10 show plt import numpy as np import matplotlib.pyplot as plt from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv2D, MaxPooling2D, Flatten from tensorflow.keras.datasets import cifar10 #dataset인 cifar10추가 from tensorflow.keras.utils import to_categorical (x_train, y...
[ "kimminjong0211@gmail.com" ]
kimminjong0211@gmail.com
d71dcde45b118bcb41cb3834380ad8bf521a0b73
b1a6c00363fd672d26b67fbcc3b24fc4afd30311
/scripts/reference_scores/generate_ref_min_score.py
6fa258c01eff14116e6b7c92298c5b8addb92038
[ "Apache-2.0", "CC-BY-3.0", "CC-BY-4.0" ]
permissive
vermouth1992/d4rl
dccdbe9c0dab7129d5a62588544594d41edf8bbc
a65b64681f21601be5317d3af3171dc7c91f031d
refs/heads/master
2023-01-07T17:37:11.895404
2020-11-09T04:39:50
2020-11-09T04:39:50
284,762,809
0
0
Apache-2.0
2020-08-03T17:24:25
2020-08-03T17:24:24
null
UTF-8
Python
false
false
959
py
""" Generate "minimum" reference scores by averaging the score for a random policy over 100 episodes. """ import d4rl import d4rl.flow import argparse import gym import numpy as np def main(): parser = argparse.ArgumentParser() parser.add_argument('--env_name', default='', help='Environment Name') parser...
[ "justinjfu@gmail.com" ]
justinjfu@gmail.com
3dc0f4d964e1c382b3eec04c655ad6f0b997d502
b769be8c39204015642e79d5464471de372ce164
/Python/PythonC++Scala/python/test (2).py
b03fc9f65be3b38918f390c154b00865e532ed3a
[]
no_license
cash2one/dataMining-1
2248968fe7649b33f263a4a3df1472c027e46ad0
05dae4225db1fedbe738d317bf44aca8604c9eed
refs/heads/master
2021-05-31T23:51:39.694667
2016-05-19T08:27:19
2016-05-19T08:27:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
#_*_coding:utf-8-* class people: #定义基本属性 name = '' # python 也是这样的 age = 0 #定义私有属性,私有属性在类外部无法直接进行访问 __weight = 0 #定义构造方法 def __init__(self,n,price): self.name = n self.price = price def getprice(): print price def add(self,x,y): return x+y ...
[ "1209398893@qq.com" ]
1209398893@qq.com
76b54b2219e1a70e37c89dc4da4f703ef3afe14f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/wbhjXmdbPSxCSE5hW_24.py
77f7ff33768fcaa3f67ecb70054d75f7f0342ae6
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
def sigilize(desire): unl1 = [] for x in list(desire)[::-1]: if x not in unl1: unl1.append(x) l2 = '' for x in unl1: if x.capitalize() in 'QWRTYPSDFGHJKLZXCVBNM': l2 += x.capitalize() return l2[::-1]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0c5d745394360d0951f750522749d5076df21e84
1924da60fa3298e386acc6dac9bd390784a9b5bb
/test16.py
5b2f2df0151caee0485d4ec535f3a6b6abf5b6ea
[]
no_license
yukitomo/NLP100DrillExercises
c8a177b56f798cef225ace540e965809a1fc1fbc
ea2ceb366de1fa1f27d084e3b9328cc6f34ac1dd
refs/heads/master
2020-06-01T02:55:11.423238
2015-06-10T15:39:03
2015-06-10T15:39:03
37,205,750
1
0
null
null
null
null
UTF-8
Python
false
false
686
py
#!/usr/bin/python #-*-coding:utf-8-*- #(16)括弧表現のうち,括弧の内側がアルファベット大文字の文字列,括弧の左側が漢字の文字列のものを抽出せよ.このとき,括弧の左側の表現と括弧の内側の表現をタブ区切り形式で出力せよ. #python test16.py tweets.txt import sys import re pattern = re.compile(r'([一-龠]+)(\([A-Z]+\))') #pattern = re.compile(r'\([A-Z]+?\)') for line in sys.stdin: match=pattern.search(line) ...
[ "over.the.tr0ouble@gmail.com" ]
over.the.tr0ouble@gmail.com
e9101a3d6dec48121d70106cd22a02580dab9818
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/329/usersdata/278/91305/submittedfiles/dec2bin.py
595fc5831851ef370d1fdd817a1809e93e8e5f6c
[]
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
273
py
# -*- coding: utf-8 -*- p = int(input("Digite um inteiro: ")) q = int(input("Digite um inteiro maior que o anterior: ")) i=10 x=0 while (p>0): p=p//10 i=i*10 while (q>0): q=q%i if p==q: print("S") break x+=1 if x>0: print("N")
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9bf760add05e7d4c2ad7476a1297914743a8d579
7933d55de7e2d3a9e78a372fa76f064f5ed5eb6f
/maths/utils/transformations.py
b71bd71a05f893e0fb0e985318f6880c90645e56
[]
no_license
o2edu/MathsExams
4921f6683e1d6d96aa834d5b01f30bd66522887d
8e2c0aeba6bbad52103c420747ead1dad6380408
refs/heads/master
2021-05-29T17:42:32.442055
2014-05-31T10:18:12
2014-05-31T10:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,233
py
import sympy import random from sympy.abc import * from .. import not_named_yet def translation(lb=-5, ub=5, direction_of_change=None): amount = not_named_yet.randint(lb, ub, exclude=[0]) if direction_of_change is None: direction_of_change = random.choice(['x', 'y']) matrix = sympy.zeros(2, 1) ...
[ "ben.lucato@gmail.com" ]
ben.lucato@gmail.com
a6b36d3c91288ef7abec4035eff6d36f80262027
225a76477f1db049764cd796ebab2c27ae291e30
/blog/models.py
58bad25123edd31dc26f08e1586f459978f755b6
[]
no_license
lubakach/myfirstblog
3c4e36a9dfbf77b57e4bdfadbba2bcd1067543ae
e111f3fffe0994e1cf2985cf0f9b71fa8b786220
refs/heads/master
2022-06-02T06:06:28.346017
2020-05-05T13:14:32
2020-05-05T13:14:32
259,961,381
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
from django.conf import settings from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeFiel...
[ "you@example.com" ]
you@example.com
88649eb358b60e371e1a0612153225a457aab025
ee8756f9beff74584b4a6df9c2c31b4acab1c3bf
/_GTW/_OMP/_PAP/Person_has_VAT_IDN.py
785a801b87be85fe1cba2ba10bbff630fec07c80
[ "BSD-3-Clause" ]
permissive
JPilarr/tapyr
5d13da8138f677c744ab357fe04e4e67b1e21d55
4235fba6dce169fe747cce4d17d88dcf4a3f9f1d
refs/heads/master
2022-11-13T09:59:01.541995
2020-06-29T12:35:55
2020-06-30T09:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
# -*- coding: utf-8 -*- # Copyright (C) 2016 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is part of the package GTW.OMP.PAP. # # This module is licensed under the term...
[ "tanzer@swing.co.at" ]
tanzer@swing.co.at
6d4b2e4a0bcd107e940a784d4f8a9dc27e8799b9
8ae0bd8fc5ceceacd839b941c6327c12f31f46b5
/rhea/system/_reset.py
011efb899f21b83303633ffec293f92054cce856
[ "MIT" ]
permissive
gbin/rhea
9406ef72985b80ea44ad2a3a699b2842f8d45157
7bf8a9b5446fe6777bd15535bb29eb62196287a5
refs/heads/master
2020-05-25T11:28:12.059208
2015-12-11T19:45:14
2015-12-11T19:45:14
47,847,156
0
0
null
2015-12-11T19:38:06
2015-12-11T19:38:06
null
UTF-8
Python
false
false
777
py
import myhdl from myhdl import delay class Reset(myhdl.ResetSignal): def __init__(self, val, active, async): myhdl.ResetSignal.__init__(self, val, active, async) def pulse(self, delays=10): if isinstance(delays, int): self.next = self.active yield delay(delays) ...
[ "chris.felton@gmail.com" ]
chris.felton@gmail.com
c1b386c649e599b7f3262762f787efd48cc491df
feff14c6b38485e0ac77e04701b020acc2ca91b4
/App_Login/migrations/0001_initial.py
69e691e07dc49d21cc6de529745c612481cf4e3f
[]
no_license
afiksourav/MyBlogDjango
0531555566fdb3d319fc44a648de8e6a42188a52
5eec20033e9de012e1ab0ef0ee5808357ced562a
refs/heads/master
2022-11-13T05:04:21.975383
2020-07-13T21:24:53
2020-07-13T21:24:53
279,412,226
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
# Generated by Django 3.0.6 on 2020-06-19 21:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "you@example.com" ]
you@example.com
b0c2572826e2614c03f83de594a825d28dcb2e0d
018d3ade7ce3c9797ec53e5b29e93c343cbd41e3
/torch/distributed/fsdp/api.py
9e1327c80633c421ecbd9e2d0da94a2629280b54
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
aiot-tech/pytorch
016574055a306f58a46308e4971cf180ffc92e4d
46730aec35ee047b92b288e0366da0f7e993e5ae
refs/heads/master
2022-11-18T14:01:22.576441
2022-11-04T23:11:17
2022-11-05T05:42:07
102,860,737
0
0
null
null
null
null
UTF-8
Python
false
false
6,770
py
""" This file includes public APIs for FSDP such as the classes used for the constructor arguments. """ from dataclasses import dataclass from enum import auto, Enum from typing import Optional import torch __all__ = ["ShardingStrategy", "BackwardPrefetch", "MixedPrecision", "CPUOffload"] class ShardingStrategy(E...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
2afa179259c8c63875807be60b33ef0d0407efed
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_service_now/tests/test_fn_snow_helper_update_datatable.py
2645906bac55fabfa0c971c1d99bc22a1fb17114
[ "MIT" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
2,152
py
# -*- coding: utf-8 -*- """Tests using pytest_resilient_circuits""" from __future__ import print_function import pytest from resilient_circuits.util import get_config_data, get_function_definition from resilient_circuits import SubmitTestFunction, FunctionResult from sn_test_helper import * from copy import deepcopy i...
[ "travis@example.org" ]
travis@example.org
2b1c1d5d8b54d1b2012c886dad1cf76539818866
dc4bfd8a002320ac8ed3767957bbc4db96230216
/example/config.py
4433e8a0113f8e75a28d1f334bd15f997c6d76fc
[ "MIT" ]
permissive
antikytheraton/nbChatbot
5aee172432a20ca8936a0c6612c214934d48bd32
54776fc5e4e26950fb58ccd0a2fe98a7084df850
refs/heads/master
2022-12-09T15:11:37.764848
2020-04-16T18:09:15
2020-04-16T18:09:15
93,900,722
4
0
MIT
2022-12-07T23:58:00
2017-06-09T22:16:50
Python
UTF-8
Python
false
false
169
py
CONFIG = { 'FACEBOOK_TOKEN': 'EAAbYZAtdQxxxxxxxxxxxxxxxxxxxxxNg4WSc9Flu56XQLRRBjgZDZD', 'VERIFY_TOKEN': 'verify_nbchatbot', 'SERVER_URL': 'heroku app url' }
[ "binauralvoice@gmail.com" ]
binauralvoice@gmail.com
982cf380119747dfd4ab555ba1709527d99e676c
f8666599b83d34c861651861cc7db5b3c434fc87
/plotly/validators/barpolar/_selectedpoints.py
42c6675b37aa8c90da3726019e97afc754168a53
[ "MIT" ]
permissive
mode/plotly.py
8b66806e88c9f1820d478bab726f0bea81884432
c5a9ac386a40df2816e6c13264dadf14299401e4
refs/heads/master
2022-08-26T00:07:35.376636
2018-09-26T19:08:54
2018-09-26T19:19:31
60,372,968
1
1
MIT
2019-11-13T23:03:22
2016-06-03T19:34:55
Python
UTF-8
Python
false
false
475
py
import _plotly_utils.basevalidators class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name='selectedpoints', parent_name='barpolar', **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, p...
[ "noreply@github.com" ]
mode.noreply@github.com
197f9a0ceb0d7fe664ef26f910397dd944f3067a
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/networkmanager_write_1/site_create.py
366c0d1e0841bb4326b60b68e3fdd04fd303e662
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/networkmanager/create-site.html if __name__ == '...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
934f197f63186c00c0aa67e347098d67e76e8f11
4c0bbd1b8c821fd096435aa06f8bb08bedb917e9
/pbt.py
1f2bf330d096effe1e4642bb8e69a93239b0f06d
[]
no_license
sparticlesteve/heptrkx-gnn-tracking
ec301a6984af217956302ec90781153b8255ff2a
85d257f6fed79d0f6f0f25e2ba10ac8d3487c39f
refs/heads/master
2021-06-20T12:17:55.124924
2019-09-05T05:31:55
2020-04-19T20:45:51
167,315,319
6
10
null
2021-01-14T00:57:45
2019-01-24T06:27:41
Jupyter Notebook
UTF-8
Python
false
false
3,245
py
import os import argparse import time from crayai import hpo def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('config', nargs='?', default='configs/agnn_pbt.yaml') parser.add_argument('--nodes', type=int, default=16, help='Number of nodes to run optimizatio...
[ "sparticlesteve@gmail.com" ]
sparticlesteve@gmail.com
c129ee002f6d78f0d81c4c2a136f877bca34f397
eae8d7821f73233ef52f916b2d22b392fa056086
/python_one_learn/day17/common/list_helper.py
023e71741dd20da48f838f91b6887d1ee442f3a1
[]
no_license
Wuskysong/python01_-
cad75d90dab945cc85719dcb1bb138ce81b813e5
4cef60bc5812524f7331e0f97f68c41db7082db7
refs/heads/master
2020-06-21T23:59:20.121964
2019-07-18T12:54:40
2019-07-18T12:54:40
197,584,017
1
0
null
2019-07-18T12:44:26
2019-07-18T12:37:03
Python
UTF-8
Python
false
false
1,533
py
""" 列表助手模块 """ class ListHelper: """ 列表助手类 """ @staticmethod def find_all(list_target, func_condition): """ 通用的查找某个条件的所有元素方法 :param list_target: 需要查找的列表 :param func_condition: 需要查找的条件,函数类型 函数名(参数) --> bool :return: 需要查找的元素,生成器类型....
[ "865997553@qq.com" ]
865997553@qq.com
522e7c30860e3bd7ee521bede2a09b7acdf5101c
27b86f422246a78704e0e84983b2630533a47db6
/tests/test_09_cython_acceleration/test_903_acc_matrix44.py
4ac34138cc30e532696762180ccc43733e00e6c1
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
2,052
py
# Copyright (c) 2020-2023, Manfred Moitzi # License: MIT License # Test only basic features of Cython implementation, # Full testing and compatibility check with Python implementation # is located in test suite 605. import pytest import numpy as np matrix44 = pytest.importorskip("ezdxf.acc.matrix44") Matrix44: matri...
[ "me@mozman.at" ]
me@mozman.at
6610629d54b2c5ac59da26cba068dd2d1f43a0f7
485c7e76b32df2255b70534f93f1865f556ddb7f
/worksheet/migrations/0002_todo_reminder.py
58d7b84938c72608be6d7b7d189760d7d0a743cb
[]
no_license
srrobin/personal-book
ec0c07b95d0e24946950238a8aa2b5ac41eabfa2
82add4f2de22f88ba9b822ba4e0ecc727554111f
refs/heads/master
2022-11-30T07:37:06.978056
2019-09-10T05:38:02
2019-09-10T05:38:02
207,211,267
1
0
null
null
null
null
UTF-8
Python
false
false
371
py
# Generated by Django 2.2.3 on 2019-07-23 17:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('worksheet', '0001_initial'), ] operations = [ migrations.AddField( model_name='todo', name='reminder', f...
[ "you@domain.com" ]
you@domain.com
d84883d411e4ad65d46ac21140b7a520f85b9369
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/gui/Scaleform/framework/entities/abstract/VoiceChatManagerMeta.py
b2d3fa4227d019e0454b3829a8fe98a670b3d8cd
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,201
py
# 2017.02.03 21:51:16 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/Scaleform/framework/entities/abstract/VoiceChatManagerMeta.py from gui.Scaleform.framework.entities.BaseDAAPIModule import BaseDAAPIModule class VoiceChatManagerMeta(BaseDAAPIModule): """ DO NOT MODIFY! Generated with...
[ "info@webium.sk" ]
info@webium.sk
d2b9df7e94f38ee983c30d5363ebc16205dda68c
b3bb0d8e42e1a38e5cd84e64e9990bf05d63ddde
/ft/tests.py
7ff0161f40a31368a807238d6d6df32b473c74ad
[]
no_license
vassily-la/obey01
7a9b2433f1b7c09a210ab77c108d3caa097f26e4
958badabf5549dd627150b5f94af13324dfd159b
refs/heads/master
2020-03-08T20:38:43.552362
2018-04-09T17:59:52
2018-04-09T17:59:52
128,387,334
0
0
null
null
null
null
UTF-8
Python
false
false
5,570
py
import os, time from django.contrib.staticfiles.testing import StaticLiveServerTestCase from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.keys import Keys MAX_WAIT = 10 class NewVisitorTest(StaticLiveServerTestCase): def setUp(self): ...
[ "vasil.deville@gmail.com" ]
vasil.deville@gmail.com
65d79a8adef04fdbc70e590cb1025aa748e9e9a7
eae50e84483d129d915ea62692ef34b9ac64af68
/moss/core/migrations/0001_initial.py
5ad773d1cb1eff1326054797c9e83c3ab9813c35
[]
no_license
Elicarlos/ifpi-project
785cba465a90bf93f0ac61674f990e1853d96fd5
fb13556726fe4e2317223e88ed4fc53261667d04
refs/heads/master
2020-03-23T14:08:13.390179
2018-07-27T06:08:25
2018-07-27T06:08:25
141,658,552
0
0
null
null
null
null
UTF-8
Python
false
false
1,469
py
# Generated by Django 2.0.6 on 2018-07-26 23:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Chamado', fields=[ ('id', models.AutoField(...
[ "elicarlosantos_@hotmail.com" ]
elicarlosantos_@hotmail.com
da80f0b87d1b6ddfae31337351eca0f9c9c2d213
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/1137.第-n-个泰波那契数.py
a777ba13f377e8e91336da1a7cfec2c1d4ed6ce6
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
# # @lc app=leetcode.cn id=1137 lang=python3 # # [1137] 第 N 个泰波那契数 # # https://leetcode-cn.com/problems/n-th-tribonacci-number/description/ # # algorithms # Easy (52.68%) # Likes: 39 # Dislikes: 0 # Total Accepted: 15.2K # Total Submissions: 28.8K # Testcase Example: '4' # # 泰波那契序列 Tn 定义如下: # # T0 = 0, T1 = 1, T...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
42ae24c5e27301e7c1af69885ee6fb72db779a79
89f1c415c744170e268f33c403214ecc197d8375
/Chapter11/CNN_TDC_STRATEGY.py
9f94cc245da8e221c319e855b5f9d7efe17e4548
[ "MIT" ]
permissive
deadphilosopher/Artificial-Intelligence-By-Example
620abc5e05689b537249ee84c3b0b6370ebd3ec1
fbb5fb56c816d5cefefe2cdad0affcd7b3321081
refs/heads/master
2022-11-02T08:21:14.271368
2022-06-13T15:07:54
2022-06-13T15:07:54
193,830,647
0
0
MIT
2019-06-26T04:41:05
2019-06-26T04:41:05
null
UTF-8
Python
false
false
2,418
py
#Copyright 2018 Denis Rothman MIT License. See LICENSE. from keras.preprocessing.image import load_img from keras.preprocessing.image import img_to_array import matplotlib.pyplot as plt import keras import numpy as np from keras.preprocessing.image import ImageDataGenerator from keras.models import model_from_json from...
[ "prasadr@packtpub.com" ]
prasadr@packtpub.com
eb2bd8abbc7f912dfa40133c45c02f66526b71a2
994c1b533fe64265715231d6458a9f316ce82cbf
/users/forms.py
34d47092d282474eb8c2de50d4c673242cd68db6
[]
no_license
zerobubus/hw05_final
07320a8fcc1119f28cf3bd5e3285d381470f7f47
ed89bdd5fa088c71bdb127a780fc2eac3bcda47c
refs/heads/master
2022-11-24T23:09:29.335507
2020-07-29T16:49:10
2020-07-29T16:49:10
282,685,996
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model User = get_user_model() # создадим собственный класс для формы регистрации # сделаем его наследником предустановленного класса UserCreationForm class CreationForm(UserCreationForm): class Meta(UserCreationForm...
[ "spb.etr@yandex.ru" ]
spb.etr@yandex.ru
bb9ea5783768afdeea7cd6a5508620b2d7af587d
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/tags/wxPy-2.9.2.2/wxPython/cfg_version.py
ebe70ff24da82d693db9366fc5c3806f62d8c9c3
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
# wxPython version numbers used in build VER_MAJOR = 2 # The first three must match wxWidgets VER_MINOR = 9 VER_RELEASE = 2 VER_SUBREL = 2 # wxPython release num for x.y.z release of wxWidgets VER_FLAGS = "" # release flags, such as prerelease or RC num, etc.
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
0eba2abfbc6b06e28fc7e2042a9f4aeaf406d89e
91f0ada382a529bb928d3eb122fd65900d0702f5
/03.Third_week_exersice/03Football_cards.py
309caf08577fd76f7ab6edecfc7eb6f6c5f285a2
[]
no_license
skafev/Python_fundamentals
aa62208ae0fdfc9ed6a9dcc0905c4a8e5aefd2be
959f9bca948cc901ac3f10694f540d1d533585b5
refs/heads/main
2023-06-09T19:33:21.370459
2021-07-01T16:29:30
2021-07-01T16:29:30
382,092,763
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
text = input().split(" ") team_A = 11 team_B = 11 less_then_seven = False for text_one in set(text): if "A" in text_one: team_A -= 1 if "B" in text_one: team_B -= 1 if team_A < 7: less_then_seven = True break if team_B < 7: less_then_seven = True break pri...
[ "s.kafev@gmail.com" ]
s.kafev@gmail.com
4e0dfcb09266aa4877dbacacaf17ce807eaf09d9
289818a63e8213606fd437c0ab29f0dba6750357
/search/urls.py
147bf92651599f02ee1e91018879a0b443ddbdda
[]
no_license
dzynin/django-mtr
642b9e4b7f568d89059cedcf3dd8a4061a94ba83
15c9ba13b2f91cacd76b9c04da1c6ee4cdfe9aeb
refs/heads/master
2021-05-29T07:29:42.303984
2015-09-06T13:54:41
2015-09-06T13:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
from django.conf.urls import patterns, include, url urlpatterns = patterns('', #url(r'^$', include('haystack.urls')), #url(r'^advanced/$', 'search.views.index'), #url(r'^autocomplete/$', 'search.autocomplete.autocomplete'), url(r'^$', 'search.views.results', name='search'), )
[ "derek@disflux.com" ]
derek@disflux.com
2358df38a615ac477179f9b02b827d6a91d6cba4
45b2504be9214e1b4e25aa41b9043ffa808215fa
/blog/blog/urls.py
4325a6851fc976aebac6b58c669670f3676f81fe
[]
no_license
jai-singhal/pyclub
b53a9d2ac1f5f2e8332d242c681700e67af20afc
a7d1eca85e225d9d852c126bfe58da233ba1e363
refs/heads/master
2021-07-09T09:18:49.653342
2017-10-06T17:27:42
2017-10-06T17:27:42
106,029,120
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "=" ]
=
4d0dc9942b5c1604a67ef352576e93d48ef56627
22319631f2027c3bfa724c283bf7762992336b5b
/wsgi.py
b4080b9296ea0f3fa14dfb463816e253ff9b7db3
[]
no_license
rodolfolotte/webgis
eefcb7912ae40d3ae353c154ad08d5fe67f75e15
e27d1d14f08262ea37de6079abc3e7dd12c74bb6
refs/heads/master
2022-12-03T02:04:51.409836
2020-08-19T17:50:24
2020-08-19T17:50:24
288,797,772
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for webgis 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "rodolfo.lotte@gmail.com" ]
rodolfo.lotte@gmail.com
ee126199d7cd2366e17798ecf8a532b5b6192bb8
1b83e95009f7e883c9da4ec50aa19f9902ccc9ab
/python/dazl/cli/sandbox.py
0b46a18f9aa01aa4038d3d51f011f02545301360
[ "Apache-2.0" ]
permissive
ballon3/dazl-client
327ec6d2a3acbd3748fd03766d93acb2699a7805
baa9eb975cac26a000fed076f3d1c23569068f5b
refs/heads/master
2021-02-27T06:29:45.046458
2020-02-11T22:03:17
2020-02-11T22:03:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 from asyncio import get_event_loop from argparse import ArgumentParser from .. import sandbox from ..util.dar import DamlcPackageError from ._base import CliCommand class SandboxCo...
[ "davin.tanabe@digitalasset.com" ]
davin.tanabe@digitalasset.com
31c31dd70f600c146fbe4ca24233f4d5559ece54
ffbce1ba05737fc8403e91a565bd64b72f7c3ab9
/.history/vicky/views_20210512104007.py
995108e3690c927c1bc9fc0cdfe4fa44e10b7300
[]
no_license
Crixtiancub/Feedback_Vicky2.0
ffa1f9af8e81abb55540dbb10e3324866d23be2d
bc97740eba40c1edcacc309b8206f94fdee62cb6
refs/heads/master
2023-04-12T05:39:21.113454
2021-05-19T21:54:28
2021-05-19T21:54:28
368,983,043
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
from django.shortcuts import render, redirect import os from modelo_IA.archivos_Python.pipeline import Pipeline from vicky import templates from .models import * from django.template.response import TemplateResponse model = Pipeline() # Create your views here. def home(request): num_visits = request.session.get...
[ "Cristian.cubillos@interedes.com.co" ]
Cristian.cubillos@interedes.com.co
7143e094b37877a6546a35c155447afe22e4ac98
ee50c362e090b03276fcda9509632df3f2088292
/easyirctests/test_connection.py
a65059446ddf4999e1c824fc2cc01ccbbe7605c8
[ "BSD-2-Clause-Views" ]
permissive
youknowone/easyirc
a208eacaeefb29eca8e83e9691f9ec7f5f136454
294630acb4ec931b0deff342faf1904120200650
refs/heads/master
2021-01-01T15:44:31.606522
2017-12-29T14:59:58
2017-12-29T14:59:58
9,749,876
3
1
null
null
null
null
UTF-8
Python
false
false
4,284
py
# -*- coding: utf-8 -*- import time import pytest from easyirc.connection import DispatchConnection, CallbackConnection, EventHookConnection from easyirc.command import protocol from easyirc.event import EventManager from easyirc.const import * from easyirc import util from mocksocket import MockSocket from test_sock...
[ "jeong@youknowone.org" ]
jeong@youknowone.org
33b7fafb2c489da4c821b0f2d6c5bd2e4a4f86d4
28e6ef83fa54713c70a3f0115d390ddfa91d00a1
/mmfeat/miner/freesound.py
e3ac502f630f5960767499f4963d54bf5d05871e
[ "BSD-3-Clause" ]
permissive
braingineer/mmfeat
11029fb680460a242ce71807a2d22b31adda6c35
fdb59c4f60f5d910722ab72b469b7e317046e2d2
refs/heads/master
2020-12-27T15:15:05.376984
2016-08-15T15:23:27
2016-08-15T15:23:27
66,103,807
1
0
null
2016-08-19T18:27:23
2016-08-19T18:27:21
Python
UTF-8
Python
false
false
3,181
py
''' FreeSound API miner ''' import os import requests import shutil import time import urllib from .base import BaseMiner class FreeSoundResult(object): def __init__(self, result, api_key): self.ID = result['id'] self.format_url = 'http://www.freesound.org/apiv2/sounds/{}/?token={}' self....
[ "douwe.kiela@cl.cam.ac.uk" ]
douwe.kiela@cl.cam.ac.uk
ea2f67c98f18b60516584d6e34cfb6f1083eee5d
19a39bc9ec8c300f60e17a61cd4c6ec911842573
/count_coins_and_bills.py
3796cf18cdb818d95dbb4a39ea83cd1e52307568
[]
no_license
caiosuzuki/conta-moedas-e-notas
07f6d89b2be43eaa2508087de550e985e7822d86
3843d6c9e70c51b57f5666dfb307dc6601a70b5c
refs/heads/master
2020-08-27T15:01:27.400193
2019-11-09T01:26:05
2019-11-09T01:26:05
217,414,629
0
0
null
null
null
null
UTF-8
Python
false
false
3,968
py
import cv2 as cv import numpy as np MATH_MORPH_KERNEL_SIZE = 3 BLUR_KERNEL_SIZE = 11 DEFAULT_INPUT_IMG_PATH = './notas-e-moedas-exemplo/0c2n-3.jpg' def calculate_area_of_rect(rect): return rect[1][0] * rect[1][1] def calculate_rect_ratio(rect): width = rect[1][0] height = rect[1][1] if width > height...
[ "cpolidoro@gmail.com" ]
cpolidoro@gmail.com
8cd818444c27b4f781c9fcb4f938acbe5fb6b0aa
97c5af22476b1efb5cacb91686a2e704f4249437
/Topic/recieve_logs_topic.py
49400f7daf78dbb7fb53cfd52637148c4d8c228d
[]
no_license
mcclayac/RabbitMQ_python
5b3a6f8604123901eb63878c5a37e216d7e6c60b
f2a743b1187499bc79a6b0045b508f92c457243b
refs/heads/master
2021-01-11T02:50:12.542891
2016-10-15T13:00:57
2016-10-15T13:00:57
70,917,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
__author__ = 'anthonymcclay' __project__ = 'RabbitMQ' __date__ = '10/15/16' __revision__ = '$' __revision_date__ = '$' #!/usr/bin/env python import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters( host='localhost')) channel = connection.channel() channel.exchange_declare(excha...
[ "anthony.mcclay@nielsen.com" ]
anthony.mcclay@nielsen.com
f72b7398402b93378a713bc1e809276281b5c7d3
b631ee6ebf35f9c09bb0f288e3be3eb3c9667504
/src/pedidos/apps.py
3389169b43c7bc12b0841a54c0a5a8f7f9b27068
[]
no_license
loristron/SimuladorDePedidos
39145602f87944217e55747c8acd64f98144627a
81c99c6c1ff9bc3a1df258176fcf54d722ffff50
refs/heads/master
2023-03-16T13:56:44.823338
2021-03-07T21:10:09
2021-03-07T21:10:09
345,128,838
1
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.apps import AppConfig class PedidosConfig(AppConfig): name = 'pedidos' def ready(self): import pedidos.signals
[ "loremmiranda@gmail.com" ]
loremmiranda@gmail.com
ab1cd998831a83dfff01278c0eb0f2a0825fb1cb
14a2a310a0b1022e12858bed60e5b0235c6d2cc4
/demo/oop/concatenate.py
773ba6984fec5ddadfaed4071e134e85916f38b6
[]
no_license
srikanthpragada/python_18_jan_2021
0f32b8ea05b5a7ebfc747c86161543711225bfa5
5197176e39b4f72a486d8bbe4f108ca783dd51ea
refs/heads/master
2023-03-13T14:25:20.046629
2021-03-01T14:18:14
2021-03-01T14:18:14
331,602,844
1
0
null
null
null
null
UTF-8
Python
false
false
161
py
def cat(st1, st2): if isinstance(st2,str): return st1 + st2 else: return st1 + str(st2) print(cat("abc", "xyz")) print(cat("abc", 10))
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
2db24c5c9eb872707f7249df40008aa9ac62b2b6
e5d130e183b5dea1b7aad23a047c703fa0d2b3bf
/lightbus_vendored/aioredis/abc.py
5c1bed890fcba6bae0602711e53bf29b7d888982
[ "Apache-2.0" ]
permissive
adamcharnock/lightbus
4a86428b8203bfe98f77a32375ac961ef398ce16
cf892779a9a9a8f69c789ffa83c24acfb7f9a336
refs/heads/master
2023-08-26T04:19:39.395735
2023-08-23T11:07:44
2023-08-23T11:07:44
94,617,214
193
22
Apache-2.0
2023-08-10T21:21:51
2017-06-17T10:39:23
Python
UTF-8
Python
false
false
3,746
py
"""The module provides connection and connections pool interfaces. These are intended to be used for implementing custom connection managers. """ import abc __all__ = [ 'AbcConnection', 'AbcPool', 'AbcChannel', ] class AbcConnection(abc.ABC): """Abstract connection interface.""" @abc.abstractm...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
e76ce8a2f472e3b1aa0ab5ddaf95486255b9ea6d
89841a2b522b7b1ab7965560f62b4b401b2d0a4d
/gravity physics/gravity simulation.py
105b78ee8eb670cd9124ca39718d4366f32d17f6
[]
no_license
sidd5sci/python-basics
14d621d52d3219943e2b0136c610dd769cc36a29
fea620141292cb6beee782cddb5a7d4eeb067e9a
refs/heads/master
2021-01-20T00:22:29.496330
2017-04-22T17:03:00
2017-04-22T17:03:00
89,123,461
0
0
null
null
null
null
UTF-8
Python
false
false
3,715
py
import random import math from Tkinter import * import time PI = 3.14159 g = 9.87 #m/s2 ctime = 0.0 class vector: def __init__(self): self.direction = 0.0 self.magnitude = 0.0 def asign(self,drct,mag,angletype): if(angletype == 'R'): self.direction = ...
[ "sidd5sci@gmail.com" ]
sidd5sci@gmail.com
672679732bb66c1cc979a3bd42a4d337e9a4a74a
a468016412cc2b435501de4d3ee5c4d2be5fa19f
/coupons/views.py
0a2a87766e6bc3b9517fd0e671635ecb1af860dd
[]
no_license
sadakchap/first-full-ecom
ef022596c05c29cae0842bae34d201cd4af08b93
881b39ec60dff3aef04105e3d08e3be3e16f6420
refs/heads/master
2020-08-07T05:02:48.165873
2019-10-07T06:16:16
2019-10-07T06:16:16
213,308,847
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
from django.shortcuts import render,redirect from django.views.decorators.http import require_POST from .models import Coupon from .forms import CouponApplyForm from django.utils import timezone # Create your views here. @require_POST def coupon_apply(request): now = timezone.now() form = CouponApplyForm(reque...
[ "aliceprerna@gmail.com" ]
aliceprerna@gmail.com
4b7692155915de88723646d645baaf844492989c
3fc2d97e926462209cf780595cf99b46f3026958
/runtest/arith/require.py
b5023e2932d8bc7c476ea455151de6ce90858e87
[]
no_license
thautwarm/frontend-for-free
9390d945bf83940f114356b08112844ed9ac3244
ee414b3efbdc49827f4de08f361b14234ef65a62
refs/heads/master
2022-09-11T16:52:55.427092
2022-08-07T10:23:07
2022-08-07T10:23:07
238,334,426
38
1
null
null
null
null
UTF-8
Python
false
false
227
py
import operator def unwrap(x): return int(x.value) ops = { '+': operator.add, '-': operator.sub, '*': operator.mul, '/': operator.floordiv, } def arith(op, lhs, rhs): return ops[op.value](lhs, rhs)
[ "twshere@outlook.com" ]
twshere@outlook.com
a758e4305012863ee9a7f3fbf37cb50c333f0adc
2d209b39c9916c327daf676c48a36f9dcebebfd2
/challenges/models/submission.py
a2fab70c12348dcd046e11f8fb45b17f16d3ec28
[ "MIT" ]
permissive
JasbirCodeSpace/CTF
d8f5fe32fb8625479df9c591a304b5835fa792a5
ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2
refs/heads/main
2023-08-30T00:47:27.747787
2021-10-29T17:38:38
2021-10-29T17:38:38
364,883,410
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
from challenges.models.challenge import Challenge from django.db import models from django.utils import timezone from challenges.models import Challenge from accounts.models import Profile class Submission(models.Model): challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE, related_name='solves') ...
[ "shikhawat.jasbir@gmail.com" ]
shikhawat.jasbir@gmail.com
46b342eca1711fd45f56468d44219f0422874c1e
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q1402_Reducing_Dishes.py
ff1daae3c2d8e861ba9a9621d7b035d26073bf7c
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
from typing import List from collections import Counter,defaultdict from math import * from functools import reduce,lru_cache import numpy as np from heapq import * from bisect import bisect_left class Solution: def maxSatisfaction(self, satisfaction: List[int]) -> int: satisfaction.sort() dp = def...
[ "444980834@qq.com" ]
444980834@qq.com
f54264f91358bc09bf754fc2b9d0db3b8bd2a345
c9d960931bf542822fff2ebc6fc6964ed26dea3a
/source/tests/conftest.py
7d4d4dd1cbb69e29f871f3df8e54b2af05f78814
[ "BSD-3-Clause", "Python-2.0", "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ajayarunachalam/improving-forecast-accuracy-with-machine-learning
a2a10994551f22bfaea5225cbafe915cbf844e1f
2a56cf26181f34609881b5a78c93616f98f39c9e
refs/heads/main
2023-08-20T15:05:49.539911
2021-10-01T18:18:03
2021-10-01T18:18:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,412
py
# ##################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
[ "ssdzd@amazon.com" ]
ssdzd@amazon.com
0452f74a4baa5bd0539e1b2071270b21279fd3c9
adaecf1ac540d51a5314987602b21fbf5e44e995
/components/studio/projects/migrations/0003_volume.py
e63a468902743d9d830ee51afc97ae24bdaed5f6
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
carmat88/stackn
3dd49b1e896c1ed23ce389090f4751cc2a4b6782
c2d07c5ffc78df6cf73a9cc6e9dfde2f3d19dac9
refs/heads/main
2023-08-28T00:20:29.746474
2021-10-30T15:24:33
2021-10-30T15:24:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,228
py
# Generated by Django 2.2.13 on 2020-12-02 16:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('deployments', '0005_auto_20201029_2008'), ('projects', '0002_remove_project_environment'), ] operations = ...
[ "stefan@scaleoutsystems.com" ]
stefan@scaleoutsystems.com
beb9459d17f3fe4c1087770f58961cea6547b6aa
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/11_动态规划/dp优化/贪心+dp/1531. 压缩字符串 II-删除子序列-dp.py
f6e75d357f9d3e4bc8c335678844885933a6f5a8
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,986
py
# 你需要从字符串 s 中删除最多 k 个相邻的字符,以使 s 的行程长度编码长度最小。 # 请你返回删除最多 k 个字符后,s 行程长度编码的最小长度 。 # 1 <= s.length <= 100 from functools import lru_cache # O(n^3)解法:两个状态+内部一层遍历 # 内部遍历可以jump # 也可以决定`选择一段连续的字符` # to jump or not to jump INF = int(1e20) @lru_cache(None) def getLRELen(blockLen: int) -> int: """blockLen...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
747b859d67b9de71ffcc89d3a83d64b0cbe42b08
20a9c98bb59304dd406353c0b5c675801081f056
/ExcelCalculate-with-Django/ExcelCalculate/sendEmail/migrations/0002_delete_user.py
f0fb1b5908a25f2e29e1536072d2746aa693847d
[]
no_license
jungeun919/Django
b585fdbf75c973b7f57dc13320db5ab9f50fd10f
71fe0449b7b849e7ea66a78d38104fa18d5a95f3
refs/heads/master
2023-07-21T13:49:36.632867
2021-09-04T14:39:42
2021-09-04T14:39:42
323,032,804
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
# Generated by Django 2.2.1 on 2021-07-15 20:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sendEmail', '0001_initial'), ] operations = [ migrations.DeleteModel( name='User', ), ]
[ "renee8369@likelion.org" ]
renee8369@likelion.org
290b76b8fd9522d9c83b853ce735d41ee8c7c72a
fab3563a3996b441ae56387fe1b12cc8c1cd416c
/Leetcode/100. Same Tree/solution2.py
082351df33fea0e3356557a52801c1db9b2c0e04
[ "MIT" ]
permissive
astlock/Outtalent
f103b2485752cd22eac2267d67496fc92c85acac
c500e8ad498f76d57eb87a9776a04af7bdda913d
refs/heads/master
2022-12-18T20:57:11.520740
2020-10-06T21:28:45
2020-10-07T21:06:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isSameTree(self, p: TreeNode, q: TreeNode) -> bool: stack1 = [p] stack2 = [q] w...
[ "info@crazysquirrel.ru" ]
info@crazysquirrel.ru
3d301614faa32f1871f2706e8e3119411e86783a
dd769d13607457ab50f59e9dd468c7040be92c01
/scripts/prettyprint.py
4aa39c689d67a599584de8c7be8907ec20de866d
[ "MIT" ]
permissive
spyysalo/finnish-registers
a4c293635d288ddcfd5fc106b26d7d8b85159302
fc9b7fa42b24044bdd620a6c9deb0defad3b790a
refs/heads/master
2020-05-24T07:32:51.384402
2019-06-05T10:04:02
2019-06-05T10:04:02
187,163,102
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
#!/usr/bin/env python3 import os import sys import json def argparser(): from argparse import ArgumentParser ap = ArgumentParser() ap.add_argument('file', metavar='JSON', nargs='+', help='annotations') return ap def main(argv): args = argparser().parse_args(argv[1:]) for fn in args.file: ...
[ "sampo.pyysalo@gmail.com" ]
sampo.pyysalo@gmail.com
78a2606ca1b65b8b29b754484494bab6309cdf25
4691e48ccae192b3598ba4d3a236be2eb0ee412d
/accounts/migrations/0003_customer_profile_pic.py
4ce2bc0ca7671335a9b8347bca141360bdfb7739
[]
no_license
Dihfahsih1/customer-order-system
a58d96c12208cb248fbdc7681a198aa43566b20b
22d6afa2f8c475e06bd7a2f8e6c963a1f8ac4924
refs/heads/master
2023-01-02T18:55:12.655785
2020-10-29T22:42:39
2020-10-29T22:42:39
299,816,416
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
# Generated by Django 2.2.8 on 2020-10-01 12:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_customer_user'), ] operations = [ migrations.AddField( model_name='customer', name='p...
[ "dihfahsihm@gmail.com" ]
dihfahsihm@gmail.com