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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70bca24141d01f412ddf2658b8bd9044edbf515f | 4319c693a5d74d45ad583761a8de686d2351fdc5 | /ml/extract_features.py | 890cb522b3f17ad1403115e0094d33dac77eb0f3 | [] | no_license | r3lay/rvyt | 132832ebc8b8f5f7b5d0a00209088622d5b9dd1d | 33e14d0ddf6639f9a7742c5237af3a8c30562b1a | refs/heads/master | 2020-12-03T05:20:56.010173 | 2012-08-23T15:51:53 | 2012-08-23T15:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py | from top_20 import DATA_DIR, VIDEO_ID
import json
import os
import os.path as P
json_files = filter(
lambda f: not f.startswith('top20') and f.endswith('.json'),
os.listdir(DATA_DIR))
lines = open('labels.txt').read().strip().split('\n')
yval = {}
for line in lines:
video_file, y = line.split('... | [
"misha.penkov@gmail.com"
] | misha.penkov@gmail.com |
775b71cb288151db83b8fdafc6f3d27161b41f52 | e7f18cbc36b0086d05c6cc683361a8be78c3c71c | /python/test/test_join_config.py | 5002dfe365476017213d9b15e084e8dab85fe906 | [
"Apache-2.0"
] | permissive | pulasthi/cylon | c63b2f34a1ceb5f1e0c8dc0595bde0b83533ac7d | 65e305cb6961d0d282f879494bbc81acd3f18baa | refs/heads/master | 2022-12-06T12:33:30.017180 | 2020-08-27T12:27:10 | 2020-08-27T12:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | ##
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
f3b4c08624c8fa973c5c8da1e2b2ed9b6d07b7c4 | 78a4e581cc1256de0828b88cf92568b0e1fff417 | /ui/findwidget_ui.py | 83b2e921018e45bbcebc162b94a275790921baf0 | [] | no_license | lamborghini1993/FileCompare | dc60bc09262b4dc8aa1917801906cf0dd1fd0b8f | ec26e3d54b11843505f38dec05f17db26e01b514 | refs/heads/master | 2021-06-04T09:45:17.977024 | 2018-09-11T06:32:10 | 2018-09-11T06:32:10 | 140,391,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'E:\mygithub\FileCompare\ui\findwidget.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
... | [
"1323242382@qq.com"
] | 1323242382@qq.com |
7264f3015086aaee6a7a6bf57d683123654a370c | 2f3df96aedf649d0947fbd343b019b1f9a8ed9ed | /competitions/bin_sqrt.py | 9ed3633f7d9c2ddfc212b12f8692d1aafd344d45 | [
"MIT"
] | permissive | rcbyron/python-projects | f0b7abff3fbdb945c7a0594ff622262abb680479 | a8a71c4ae938a31f85144e614b73f1154cb4a3af | refs/heads/master | 2021-01-13T07:14:23.811870 | 2017-05-22T18:00:25 | 2017-05-22T18:00:25 | 71,503,353 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """ Finds the square root of a number with binary search """
import math
def root(num, power=2):
low = 0
high = num
mid = high / 2
test = mid**power
dx = 1
while not math.isclose(test, num, rel_tol=1e-10):
print(low, mid, high, dx)
if test < num:
low = mid + dx
... | [
"rcbyron@utexas.edu"
] | rcbyron@utexas.edu |
73d6062b8001a4c578ed0ab01051d0684e3d6f88 | bcdb24b6e8ffb2f0616e68965c1cb69841bde302 | /recommend_explore/recall/LMF/MF.py | 2a0239fe2bb0ea34fe0efdc1dc75ca758c131bcf | [] | no_license | Fisher87/ai_explore | 962fcf66acf81077ffe5cbd37108ea12ca2eb70a | 90898f8315a71207f746c57476a175bb92ef7a85 | refs/heads/master | 2022-09-12T23:42:28.360063 | 2022-09-01T07:06:35 | 2022-09-01T07:06:35 | 224,246,505 | 63 | 14 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python
# coding=utf-8
#================================================================
# Copyright (C) 2019 Fisher. All rights reserved.
#
# 文件名称:MF.py
# 创 建 者:YuLianghua
# 创建日期:2019年12月06日
# 描 述:
#
#================================================================
| [
"yulh@tuya.com"
] | yulh@tuya.com |
e899b55c35ffd54170d5c64e90c5ab2b1cb0c792 | f3ff2584f63f15c54e211357f6d6cad967e452d2 | /imgToBinary.py | a36c2d92d953a259ac567ec1ac4f14c1b4f07d50 | [] | no_license | Piyush026/meon_tasks | f8c0ecb8f35276be0c34d411e5882055097d8e32 | 33640e98d5a356ecc7b8652c2d471d04ff7f0bf1 | refs/heads/master | 2022-11-30T08:35:06.124652 | 2020-08-18T08:59:20 | 2020-08-18T08:59:20 | 288,405,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | import sys
class Converter:
def img_to_binary_convert(self):
with open('/home/ezeia/Downloads/09.jpg', 'rb') as f:
img = f.read()
data = bin(int.from_bytes(img, byteorder=sys.byteorder))
print(data)
if __name__ == '__main__':
cnt = Converter()
cnt.img_to_binary_conve... | [
"piyushjaiswal026@gmail.com"
] | piyushjaiswal026@gmail.com |
86dbc913f7c107d6c27f32994211a6f5a9dac652 | 07b186ccb856a3c5e22f6fcf3315b1240b8914b5 | /utility.py | 61456f4ee6f187c5e9ad761794f149fbbcb1bcd4 | [] | no_license | thinksource/WeatherSimulator | bcc31541b0fe9ef86fca1d347398d5cc13564471 | d607fdd91ba67432852803ebe48fe53f71fa315b | refs/heads/master | 2021-01-20T03:04:31.914837 | 2017-10-24T01:00:00 | 2017-10-24T01:00:00 | 101,345,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,313 | py | import json
import random
import time
import os
from datetime import datetime
import math
import requests
import urllib
import config
from myexception import *
def try_except(success, failure, *exceptions):
try:
return success() if callable(success) else success
except Exception:
return failur... | [
"foretribe@gmail.com"
] | foretribe@gmail.com |
ead21b2c1105542d572f990fb94b800b8b150637 | 50f42e142c7b989afc9bc9d9fd53515923aceb56 | /tools_test/Images_processing/cfg.py | b27ef45691689d2dc29da802ec158c5023a69c71 | [] | no_license | shincling/MyCommon | 7d02da4408f1ab0acf883845cbb8b8e54e364076 | ae362fdef8d51c808645f7827a86e43d07db6e0f | refs/heads/master | 2021-01-17T04:10:57.546936 | 2018-11-06T13:17:27 | 2018-11-06T13:17:27 | 45,384,609 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,372 | py | class flickr_cfg():
def __init__(self):
self.id = "Flickr30k"
############### Global Parameters ##############
self.path_to_descriptors = "./DATA/Flickr30k/flickr30k_incp3/"
self.path_to_images = "./DATA/Flickr30k/flickr30k-images/"
self.descriptor_suffix = "_incp_v3"
... | [
"shijing609@163.com"
] | shijing609@163.com |
fea61ecb32d7574fe79d52d27cee4ade8e5dfd33 | 5a281cb78335e06c631181720546f6876005d4e5 | /designate-8.0.0/designate/tests/test_api/test_admin/extensions/test_reports.py | 7b670922c54113dea10bdea98ab31deb3e4fba05 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 6,160 | py | # coding=utf-8
# COPYRIGHT 2015 Rackspace
#
# Author: Betsy Luzader <betsy.luzader@rackspace.com>
#
# 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/LICEN... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
88d9a08f51b120e6ec419f96444279e0af57b80e | 13efeb401d9106e6f48917ab59cdb3a2b86e6285 | /ambassador/ambassador/envoy/v1/v1ratelimitaction.py | 48b9619d6c19f1400fc9b30bdc6bea15fd1cbe54 | [
"Apache-2.0"
] | permissive | danielbryantuk/ambassador | 017e7de9378a5ca5550bb63655e2440f3bafadb6 | 9ccc68bc9c537406601e001e6ae105eca6f94c30 | refs/heads/master | 2020-04-01T13:29:58.057316 | 2019-03-25T15:40:17 | 2019-03-25T15:40:17 | 153,255,029 | 1 | 0 | Apache-2.0 | 2018-10-16T09:00:37 | 2018-10-16T09:00:37 | null | UTF-8 | Python | false | false | 3,483 | py | # Copyright 2018 Datawire. 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 applicable law or agr... | [
"flynn@datawire.io"
] | flynn@datawire.io |
c4bc8b693a0473ccb631259e421d586c48b4d9c2 | 883e066c0f7e2b7bd200924334a1748094d96ba8 | /tests/exceptions/source/ownership/_init.py | dced061600966b41084f09b1c29bea7c21ff5548 | [
"MIT"
] | permissive | skeptycal/loguru | 6cc4a34df596397cb4a2b342aad9c0075f842657 | 8d6d64928bf80c1917c367de04b9579c57fbfe66 | refs/heads/master | 2022-11-28T07:07:59.777989 | 2020-08-07T20:28:33 | 2020-08-07T20:28:33 | 281,988,697 | 1 | 0 | MIT | 2020-07-23T15:27:32 | 2020-07-23T15:27:30 | null | UTF-8 | Python | false | false | 197 | py | import os, sys, sysconfig
usersite = os.path.abspath(os.path.join(os.path.dirname(__file__), "usersite"))
sys.path.append(usersite)
sysconfig._INSTALL_SCHEMES["posix_user"]["purelib"] = usersite
| [
"delgan.py@gmail.com"
] | delgan.py@gmail.com |
93d47612635b3fb5295b2894b5fede2aa0da138e | a35b24c8c3c5bdf861f3cda9396f2fa6795ec929 | /abc/141/C.py | c558dde809b27584b92e3262858bab090b5c8367 | [] | no_license | Msksgm/atcoder_msksgm_practice | 92a19e2d6c034d95e1cfaf963aff5739edb4ab6e | 3ae2dcb7d235a480cdfdfcd6a079e183936979b4 | refs/heads/master | 2021-08-18T16:08:08.551718 | 2020-09-24T07:01:11 | 2020-09-24T07:01:11 | 224,743,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from collections import Counter
def main():
n, k, q = map(int, input().split())
a = Counter([int(input()) for _ in range(q)])
p = [0 for _ in range(n)]
for key, v in a.items():
p[key-1] += v
for s in p:
if s-q <= -k:
print("No")
else:
print("Yes")
... | [
"4419517@ed.tus.ac.jp"
] | 4419517@ed.tus.ac.jp |
c1000e3a4d74ce0333ea1e2a78eb261cb822850f | 45612845ea3626ebb6205eb0af5b2e9f6810509e | /0x00-python_variable_annotations/4-define_variables.py | 06e956da4f17818bec48920b6df859e40a0d2e3b | [] | no_license | julianfrancor/holbertonschool-web_back_end | 75d40c9efbb1c8a733302dd84a254a544ae42856 | 24d3ed8abfb70d862a3371a24382b214dda3a89a | refs/heads/main | 2023-03-25T07:07:11.799060 | 2021-03-19T22:31:29 | 2021-03-19T22:31:29 | 348,918,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | #!/usr/bin/env python3
"""Define and annotate the following variables with the specified values"""
a: int = 1
pi: float = 3.14
i_understand_annotations: bool = True
school: str = "Holberton"
| [
"julianfrancor@gmail.com"
] | julianfrancor@gmail.com |
0036a13efa1fbefbdb3aa43b3fd92886955828a8 | 46c4b0e04152c162dec9fc5713946666532a6e78 | /test/common.py | a1e0f8ecaa86da8d43d786780bf82565f59131d4 | [
"MIT"
] | permissive | Sir-Nightmare/tcconfig | e6baff2d55eb74f4da2f671e07c4a67c6ab212f0 | 1d4a601a01b955f4720450c0f5c37473ea110945 | refs/heads/master | 2020-12-30T11:28:04.154070 | 2017-05-29T12:16:52 | 2017-05-29T12:16:52 | 91,561,694 | 0 | 0 | null | 2017-05-17T09:57:54 | 2017-05-17T09:57:54 | null | UTF-8 | Python | false | false | 561 | py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com>
"""
from typepy.type import RealNumber
from tcconfig._converter import Humanreadable
def is_invalid_param(rate, delay, loss, corrupt):
params = [
delay,
loss,
corrupt,
]
is_invalid = all([
not... | [
"gogogo.vm@gmail.com"
] | gogogo.vm@gmail.com |
ca1e2257bbcad2abf3eb44edcf858cd56b80a1c5 | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week08/不需要重复练的/1491. 去掉最低工资和最高工资后的工资平均值.py | 945d83befecc46461adba13a6906b0352d6d471e | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 455 | py | # 1491. 去掉最低工资和最高工资后的工资平均值.py
from typing import List
class Solution:
def average(self, salary: List[int]) -> float:
_max, _min = float('-inf'), float('inf')
_sum = 0
for s in salary:
_sum += s
_max = max(_max, s)
_min = min(_min, s)
return (_sum... | [
"2403076194@qq.com"
] | 2403076194@qq.com |
1942d4ee2a040205c70b1a61d6ed0475b9d34aa7 | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /UIPy/pyshpDemo.py | 89b405cd6659254e20dcc34c66a31938937cd063 | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py |
#coding:utf-8
import shapefile
import arcpy
import os
shpPath=r'E:\Py_file'
arcpy.env.workspace=shpPath
#Reader------------
# for shp in arcpy.ListFiles('*.shp'):
# sp=os.path.join(shpPath,shp)
# sf=shapefile.Reader(sp)
# print sf
# print sf.shapeName,sf.shapeType,sf.shpLe... | [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
1154207ad0b2f514f026926695f4ea3ebe892cd1 | 1b60858c303bd7d88dae82b8db56273c326ddb44 | /tests/swagger_client_tests/test_search_results_dto.py | cf1eb5828be977d85a75c310ce65c3a33444f2b9 | [
"Apache-2.0"
] | permissive | tspannhw/nipyapi | 1ba076ef669493bad20681579891eea1d43f4fc8 | 30cdd028cf68cc4316b54a23bfa1f0397de3ae23 | refs/heads/master | 2021-07-19T14:37:22.993682 | 2017-10-29T18:52:31 | 2017-10-29T18:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | # coding: utf-8
"""
NiFi Rest Api
The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... | [
"dchaffey@hortonworks.com"
] | dchaffey@hortonworks.com |
77b68d2dc6f0a8f008c816279422ac41a13f7842 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/323/usersdata/293/90527/submittedfiles/mdc.py | 07889d77d9cdb5e0e6e2b0681313bb522455e98f | [] | 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 | 187 | py | # -*- coding: utf-8 -*-
import math
n1=int(input("Digite n1: "))
n2=int(input("Digite n2: "))
mdc=1
for i in range (1,n1+1,1):
if (n1/mdc)%i==0:
mdc=i*mdc
print(mdc) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
df96882d1231f9f6d62b79278beb6d71149c75c5 | 2627881c5c58fb5f58c2a13ceb2600206bc7cf14 | /Website/Production/ExchangeSiteMain/ExchangeSite/apps/main/forms.py | fcf4337456c629935bc3ce3eba8b71d05f0d5d3c | [] | no_license | cnxtech/ProjectExchange | f430b613cc84144ae69f5a8c3e7b753bdab068ca | e2591bcdd834c708a0f585ab7ef48c4ac67c68a9 | refs/heads/master | 2023-08-03T16:31:13.343854 | 2016-12-21T21:36:48 | 2016-12-21T21:36:48 | 185,272,433 | 0 | 0 | null | 2023-08-28T17:18:10 | 2019-05-06T21:10:09 | CSS | UTF-8 | Python | false | false | 1,775 | py | from django import forms
class BasicOrderForm(forms.Form):
CONDITION_CHOICES = [("Bid Price", "Bid Price"),
("Ask Price", "Ask Price"),
("Latest Price", "Latest Price")]
price = forms.FloatField(required=False)
volume = forms.FloatField(required=False)
... | [
"matthewrastovac@yahoo.com"
] | matthewrastovac@yahoo.com |
17701b70e2f7f0b1b2080a7304f41601c82e78bd | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/plugins/completion/kite/providers/__init__.py | 8ff45143e45f389bf8ab79740e5216e51e3db7f5 | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Kite Completion Client method providers."""
from .document import DocumentProvider
class KiteMethodProviderMixIn(DocumentProvider):
pass
| [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
6d01b6969d5cbf577a9fbd4cde631634efa34cd5 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_0583_test.py | 4625353303be38dcb468a26154346f9052226685 | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,420 | py | #coding:utf-8
"""
ID: issue-939
ISSUE: 939
TITLE: Before triggers are firing after checks
DESCRIPTION:
JIRA: CORE-583
FBTEST: bugs.core_0583
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
recreate table test1 (i int, constraint test1_chk check (i... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
5a3f56b92a4ab482dd2e3f51db7a24d098a9e78f | 32a7785a441a8a45a16ec0ae2cbd4368c263e76c | /plato_pylib/utils/unit_tests/utest_supercell.py | 4f8e95cd7f5a34b655c60c51277284cc56c94841 | [
"MIT"
] | permissive | RFogarty1/plato_pylib | 52fa429e61cf3d1d1368320dda2b47d3f1f36f84 | 085425017d6c4f916663e09f412803775ecab87c | refs/heads/master | 2022-02-04T16:25:07.681236 | 2022-01-18T12:08:39 | 2022-01-18T12:08:39 | 179,461,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,913 | py | #!/usr/bin/env python3
import copy
import unittest
import plato_pylib.utils.supercell as tCode
import plato_pylib.shared.ucell_class as UCell
class testCreateSuperCells(unittest.TestCase):
def setUp(self):
fractCoordsA = [ [0.0,0.0,0.0,"Mg"], [0.33333333, 0.33333333, 0.5, "Mg"] ]
origLattVectsA = [ [6.06, 0.00... | [
"richard.m.fogarty@gmail.com"
] | richard.m.fogarty@gmail.com |
6f580a812d331bd4b347291b9de1423771bdbef5 | a1c87e755f83d9ad8c61dab11e637f34d92bf9e8 | /bin/alloc-assets | 293fffaeeb59adb7f278b81b3c45ac5f225a16fd | [] | no_license | 0-artnoc/_dot_files_2_ | dcd8c08e59f10b76c8ece2dd8d7d4d0d72d6fd1e | 58606ed73c085c7a3f5402bc93c3d4fe571ce02a | refs/heads/master | 2023-02-25T14:29:08.946218 | 2021-01-30T14:06:53 | 2021-01-30T14:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,715 | #!/usr/bin/env python
'''
This program takes as an input an asset allocation for an investment
portfolio, along with an amount that one wants to contribute to that
portfolio, and returns how that contribution should be divided between
the assets in order to maintain the asset allocation ratios.
For example, let's say... | [
"jamslam@gmail.com"
] | jamslam@gmail.com | |
e5c30a03944d5314070b749bc99e66bb5a013572 | b7db81464bd3c9ec967d0ef0720224205f5066d4 | /venv/Scripts/pip3.6-script.py | 5a15408ff085a34d40dde1048571f58ef643bd2e | [] | no_license | Evaluater/web_auto | 7f1433c1c388c5173ecd8d56a2faeaeccb2eb1b0 | c7f62b1eb666c799dfd2f9c2a63c03d7c632fdea | refs/heads/master | 2020-09-18T06:39:47.728868 | 2019-11-26T08:26:06 | 2019-11-26T08:26:06 | 224,137,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #!C:\Users\jia\PycharmProjects\web_auto\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"email@example.com"
] | email@example.com |
706831ea818235998789a70d931f0d2782b2c3b7 | 008bc57ad937f0d76edbe29376220b33ff2fddc1 | /Management_Reports/UDISE_Management_report/udise_management_3.py | f83b671e4a284c80f24ed8d325a198ec301d5d86 | [] | no_license | chetandg123/cQubeTesting-2.0 | f1b15d77401e677a6e4d2e9e497a364e3dd001b2 | bd3ab2b6c8be65bfc1aef3a42585360d70483bd5 | refs/heads/master | 2023-07-12T22:10:51.705709 | 2021-08-11T11:20:51 | 2021-08-11T11:20:51 | 374,532,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,895 | py | import time
import unittest
from Data.parameters import Data
from UDISE.click_on_clusters import cluster_button
from UDISE.click_on_schools import click_schoolbutton
from reuse_func import GetData
from UDISE.check_indices_with_download_functionality import udiseindices_scores
from UDISE.check_udise_map_clusterwise_rec... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
ef90ee39e7a6d7ef863749f4383d5e980d7b8045 | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/common_proxy/setting.py | 74f09ca9bba69b24323e7a3e6d9c7a27ee2ce38f | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 812 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from common_framework.x_setting.settings import APISettings
DEFAULTS = {
'MENU': (
),
'WEB_MENU': (
),
'SLUG': 'proxy',
'RELY_ON': [],
# nginx配置中, tcp代理配置文件路径
'NGX_CONF_PATH': '/usr/local/nginx/conf/tcp.d/',
# 重启ngi... | [
"842995907@qq.com"
] | 842995907@qq.com |
bfcc0416ac7375eb0f5c535325a3704a25f44e7c | baf46466d12aec066f5126a3d123b02edbeabfde | /FileSystem/CsvTools.py | 706cf222715d03790d76beb457198c487a2799a7 | [] | no_license | AdamSwenson/AdLib | 6ea4a1f80d6cfcc4ebce3e5af516ea87526fbaf0 | adf30dde2ce6e57ac40bbe1818442ab44993a381 | refs/heads/master | 2022-02-02T16:21:59.507994 | 2020-01-06T18:30:14 | 2020-01-06T18:30:14 | 221,068,550 | 0 | 0 | null | 2022-01-21T20:08:07 | 2019-11-11T20:55:40 | Python | UTF-8 | Python | false | false | 1,889 | py | """
Created by adam on 11/11/19
"""
__author__ = 'adam'
"""
Created by adam on 11/3/16
"""
__author__ = 'adam'
import csv
def write_csv(csvFile, toWrite):
"""TODO: let this figure out whether needs i, j or i"""
with open(csvFile, 'w') as csvfile:
writer = csv.writer(csvfile)
for i in toWrite:... | [
"adam.swenson@csun.edu"
] | adam.swenson@csun.edu |
213d4a6affec05a53c38baa6564a9c4b2cd7cfbe | f54290f045fd150f9be640bf8ab4a91f6b9ae3e3 | /evennia/contrib/grid/slow_exit/tests.py | e3ffb191239477209863fdd02f624de037df32be | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | evennia/evennia | 54d075093f0ff125be40e17a7bc4e1e0e22cf77b | b3ca58b5c1325a3bf57051dfe23560a08d2947b7 | refs/heads/main | 2023-09-02T05:29:35.678676 | 2023-09-01T19:06:05 | 2023-09-01T19:06:05 | 16,120,959 | 1,781 | 1,004 | BSD-3-Clause | 2023-09-12T18:37:23 | 2014-01-21T22:22:28 | Python | UTF-8 | Python | false | false | 824 | py | """
Slow exit tests.
"""
from mock import Mock, patch
from evennia.commands.default.tests import BaseEvenniaCommandTest
from evennia.utils.create import create_object
from . import slow_exit
slow_exit.MOVE_DELAY = {"stroll": 0, "walk": 0, "run": 0, "sprint": 0}
def _cancellable_mockdelay(time, callback, *args, *... | [
"griatch@gmail.com"
] | griatch@gmail.com |
db16edb7451152cb227563d02ec6da19c33a47a9 | bdd5437bb8ad2737f202a2d9d701ce9a7b7173a0 | /home/migrations/0001_initial.py | 52f58f82c6397c26b8923858d4db5280b3d324d5 | [] | no_license | babageedhey/Ecommerce | 6b7c81f9901f62828510370d6468868ef2824ea0 | 766221f13ed2d9575f777d78996c5036bd4cc671 | refs/heads/master | 2020-07-05T10:09:32.970368 | 2019-08-16T16:32:34 | 2019-08-16T16:32:34 | 202,619,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Generated by Django 2.1.5 on 2019-07-05 12:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"babageedhey@gmail.com"
] | babageedhey@gmail.com |
2ecd7a83d1b9407708261a42d3829518e21af8d7 | 7ba05e73515c14fb8d2f3d056b51102131171a11 | /exercise_classes_and_objects/catalogue.py | d274c41d3b7ea2416e6b7faca9a31d51f38344ea | [] | no_license | gyurel/SoftUni-Basics-and-Fundamentals | bd6d5fa8c9d0cc51f241393afd418633a66c65dc | 184fc5dfab2fdd410aa8593f4c562fd56211c727 | refs/heads/main | 2023-07-05T11:16:58.966841 | 2021-08-31T19:25:40 | 2021-08-31T19:25:40 | 401,485,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | class Catalogue:
def __init__(self, name):
self.name = name
self.products = []
def add_product(self, product_name):
self.products.append(product_name)
def get_by_letter(self, first_letter):
self.current_list = []
for pr in self.products:
if pr[0] == fi... | [
"gyurel@yahoo.com"
] | gyurel@yahoo.com |
88aa24d734ec8b6435432a19448b7465e34f3642 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/16-type-conversion_20200412235657.py | e229e59fdcc2e406dbd5b15fac0a75653d8b92d2 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | name = "John Stevens"
age = 34
rel_status = "single"
rel_status = "widower"
print(rel_status)
birth_year = input ('what is your birth year?')
age = 2019 - birth_year
print (f) | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
8b39a791e09487ebf74b839d9307e27e90a3b5f3 | 1d91044544ea0a4772b379cfbb3c23f66adaeeff | /7_7.py | d52205a9fc81e07168c009d7cac5e04571d289b4 | [] | no_license | rursvd/pynumerical | f87d6e72b9178caf926a15503d9a2310c4642677 | 863e9722d273fd1f2dce5d917e3d4d9ad71aba4d | refs/heads/master | 2021-01-22T20:49:09.154726 | 2017-08-19T07:50:34 | 2017-08-19T07:50:34 | 100,776,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from numpy import array
import matplotlib.pyplot as plt
x = array([0,1,3,7,8])
y = array([1.1,2.5,-0.7,3.0,2.9])
plt.plot(x,y,'ko-')
plt.xlabel('x')
plt.ylabel('y')
plt.show()
| [
"noreply@github.com"
] | rursvd.noreply@github.com |
feaa821e4825571724af0afac2dbbcea03d77829 | bc371b9238956bc00cc33654b1d68651c6edf371 | /writeups/2020/pbctf/blacklist/genfiles.py | 4a1b242902e4f942b1ff3e2cab447ec387c49fb4 | [
"MIT"
] | permissive | welchbj/ctf | 447202921fbf5c467af62b4f72f5f489c7c471f0 | 3b54769a8312f755eb97e7b4c954e4b5829af8e1 | refs/heads/master | 2023-08-19T03:28:33.264186 | 2023-08-11T18:38:17 | 2023-08-11T18:38:17 | 213,223,536 | 167 | 28 | MIT | 2023-04-18T13:29:33 | 2019-10-06T18:42:03 | Python | UTF-8 | Python | false | false | 1,469 | py | import string, random, os, sys
pool = string.ascii_letters + string.digits
random.seed(open('/dev/random', 'rb').read(16))
flag_parts = ['F', 'f', 'L', 'l', 'A', 'a', 'G', 'g', '70', '102', '76', '108',
'65', '97', '71', '103', '0x46', '0x66', '0x4c', '0x6c', '0x41', '0x61',
'0x47', '0x67', 'fl', 'la'... | [
"welch18@vt.edu"
] | welch18@vt.edu |
51d7dde2b6e527414ada24adf09df7678c8e4bdf | 4546398a18590e4e182629fb55d185547dd6df0a | /2015/delta/problems/freqletter/input_format_validators/validator.py | 457fc2d309cde005d3063135cb23dec4af91a3b4 | [] | no_license | ForritunarkeppniFramhaldsskolanna/Keppnir | 352341fa97c6349af65b513c03171f3e706f7db2 | 65c8eb5358d8a49f956edf76c2d47b9372accc3c | refs/heads/master | 2023-04-28T15:33:36.396225 | 2023-04-23T15:00:15 | 2023-04-23T15:00:15 | 78,303,702 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | import sys
import re
line = sys.stdin.readline()
assert re.match('^[a-z]{1,1000}\n$', line)
assert sys.stdin.read() == ''
sys.exit(42)
| [
"suprdewd@gmail.com"
] | suprdewd@gmail.com |
6fbffde0c752909e1f2b8926e6d63979e765c0b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03268/s567153035.py | 975ce53c641bd1203ab2a14d5a5103b4d8e066df | [] | 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 | 264 | py | import sys
input = sys.stdin.readline
def main():
N, K = map(int, input().split())
if K % 2 == 0:
ans = (N // K) ** 3 + (N // (K // 2) - N // K) ** 3
else:
ans = (N // K) ** 3
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
694722e214da56c637fd91cfb7413120dc468837 | dbe55a1d8e40a767d3c46a2a53a64ab004a6b354 | /pywebio/platform/bokeh.py | b5f19656d5231d72b438e8ef315ec4b0f864d59d | [
"MIT"
] | permissive | pplonski/PyWebIO | 7a965ff9ec6e366bfb0e128077a594c6d50b52fe | a5c3c8ac608c7a0df5b03847149f3708deae1db8 | refs/heads/master | 2023-03-26T12:06:53.123848 | 2021-02-08T13:12:09 | 2021-02-08T13:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | import asyncio
import re
from collections.abc import Sequence
from pywebio.session import get_info
from pywebio.output import *
requirejs_tpl = """
%s
<script type="text/javascript">
requirejs(['bokeh', 'bokeh-widgets', 'bokeh-tables', 'bokeh-gl'], function(Bokeh) {
%s
});
</script>
"""
def load_notebook(resourc... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
e006592d3b7d2418bf7dc9a27ddaf7a6c19a16b9 | 4738129b25fceb5c8fdc83eebdd7621e41910230 | /python-leetcode/309.py | fad5eb0c726b2f760b74d7426f99a536feb3a9a3 | [
"MIT"
] | permissive | MDGSF/JustCoding | 43aa20773b9c8325e6ba632e9941d235e9e285aa | 2faa46323df991a12014021b49d568387a882233 | refs/heads/master | 2023-07-21T19:07:15.899019 | 2023-07-09T07:29:59 | 2023-07-09T07:29:59 | 201,714,062 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
dp_prei_0, dp_i_0, dp_i_1 = 0, 0, float('-inf')
for i in range(len(prices)):
pre_prei_0, pre_i_0, pre_i_1 = dp_prei_0, dp_i_0, dp_i_1
dp_prei_0 = pre_i_0
dp_i_0 = max(pre_i_0, pre_i_1 + prices[i])
dp_i_1 = max(pre_i_1, pre_... | [
"1342042894@qq.com"
] | 1342042894@qq.com |
9d6ec956f62f5e89452079dea4a8bd554b1ffc1a | c53cb4b7b898feea6ef1fe2de3fe8860bc20a279 | /dashboard/internet_nl_dashboard/logic/create_reports_on_finished_scans.py | 582b30d9979d756e14b6b18f2594c3f178f5b455 | [
"Apache-2.0"
] | permissive | AlwindB/Internet.nl-dashboard | fc20479404ffc6ca98f8562318df8a8a952d0aee | 0fbdfdde9d3093d241de49a2e4aa178c071f34af | refs/heads/master | 2020-07-24T00:41:55.058167 | 2019-08-17T13:16:16 | 2019-08-17T13:16:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import logging
from celery import group
from websecmap.celery import Task
from dashboard.internet_nl_dashboard.models import UrlList
from dashboard.internet_nl_dashboard.tasks import create_reports_on_finished_scans
log = logging.getLogger(__package__)
def compose_task(**kwargs
) -> Task:
urll... | [
"elger.jonker@gmail.com"
] | elger.jonker@gmail.com |
3f26f755c2773c9c6d7ede577249159542306013 | 2100df7054545b15927d66d4ef2f0490e78d0761 | /tests/mockserver.py | 628fba86654baaadd4778e37eb7846e6425d7ddc | [
"MIT"
] | permissive | elkingtowa/pyrake | 79dd6053de604ad52df530e544e873c107333489 | 3f2fbe805e9b153d287fb50b5cb3f5b35495ac52 | refs/heads/master | 2020-12-24T14:01:53.009374 | 2014-08-29T04:44:56 | 2014-08-29T04:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,142 | py | from __future__ import print_function
import sys, time, random, urllib, os, json
from subprocess import Popen, PIPE
from twisted.web.server import Site, NOT_DONE_YET
from twisted.web.resource import Resource
from twisted.internet import reactor, defer, ssl
from pyrake import twisted_version
if twisted_version < (11, ... | [
"elkingtonx@gmail.com"
] | elkingtonx@gmail.com |
691f6323f76b1c8376f1668efbead672a524e7f2 | f7aec3c1105d126cd6a475af72456d760b01781e | /examples/example_schedule_blm.py | 385b0567aaf8e8cd94595eaac45b8d6be5c8ecca | [
"BSD-3-Clause"
] | permissive | imclab/harvest-scheduler | 4daf5ae463b7c847c44f09dd1fb61697b9743506 | 7fe062ba3f1eaa1bf11964ffda2f51d24129dd2b | refs/heads/master | 2020-12-24T09:52:57.484870 | 2014-06-11T17:21:36 | 2014-06-11T17:21:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | """
BLM Harvest Scheduler
Requires a sqlite database with a pre-processed table, fvs_stands
fvs_stands is derived from the outputs of the growth-yield-batch process and
is created using the sql query in scripts/prep_scheduler.sql
"""
import sys
sys.path.insert(0, '/usr/local/apps/harvest-scheduler')
from scheduler.sch... | [
"perrygeo@gmail.com"
] | perrygeo@gmail.com |
28aab4292c6aa06ba573dda0894df98247c9760e | 1f225e7c6b6cb37fe59e5f8eb2b2a9fe5479eeff | /day1/exercise.py | 44a23e1d3de52c2a37e9b1d947896c15c69a0a30 | [] | no_license | dingshuangdian/lsqPython | 0269f51ea7f29d093fdf6345ecbea27f1ff26dd5 | 48d6e73ecb8e51ea4e6629591d1ff2021ca2a113 | refs/heads/master | 2020-03-31T15:46:58.628700 | 2018-10-30T15:17:02 | 2018-10-30T15:17:02 | 152,351,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # 使用while循环输入123456 8910
num = 0
while num < 10:
num += 1
if num == 7:
continue
print(num)
# 求1-100的所有数的和
num1 = 0
total = 0
while num1 < 100:
num1 += 1
total = total + num1
print(total)
# 输出1-100内的所有奇数
num2 = 1
while num2 < 101:
print(num2)
num2 += 2
# 方法二:
count = 1
while count < ... | [
"286502698@qq.com"
] | 286502698@qq.com |
f038b69c040ddb6011fb1e7e0c7153a8b32b2483 | 2f3578a44b5aec16fa66a0f39499bce10de644d1 | /program11.py | 5a94e458ea9943eef78fd20653ee90bb14769cd7 | [] | no_license | rohanwarange/Tcs-Ninja | 09a65bdffcb887c3178602c213d093cdf7234b09 | 72def78a0b4405297f9e236f5d5ee2541513aeda | refs/heads/main | 2023-06-11T01:42:41.642341 | 2021-07-10T17:58:25 | 2021-07-10T17:58:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | ## -*- coding: utf-8 -*-
#"""
#Created on Thu Jul 8 08:13:39 2021
#
#@author: ROHAN
#"""
#
#Question 20
#
#Given an array and a number (say s), find whether any two elements in the array whose sum is “s”:
n=int(input())
arr=[int(input()) for i in range(n)]
m=int(input())
for i in arr:
for j in range(len(arr)):
... | [
"rohanwarange24@gmail.com"
] | rohanwarange24@gmail.com |
ccad549181e9eff2faaecd6acaf567b6bf926fbf | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /demo/GazeboMonitor/ObstacleFinder.py | 29b8dc5840fa878df59a083c66a797e1e30c6b9a | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import cv2
from matplotlib import pyplot as plt
class ObstacleFinder(object):
def __init__(self):
self.filename = None
def loadFile(self, filename):
self.filename = filename
self.img = cv2.imread(filename, 0)
self.edges = cv2.Canny(self.img, 100, 200)
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
7ea2e91afd68899c56e94e2a0f3d3084677d50e8 | 9b5a90ae3fb027eeb7ebd3c724bb6e108482f954 | /lasagnekit/datasets/realtime_augmentation.py | df13f96d09d54ff14dd7e53dc3a8c67a9ba42017 | [] | no_license | mehdidc/lasagnekit | 2a61aabe88324e156cb1f4b7e5c21fea441cd200 | 695b4efed89d6ee3293010f3a08939c8f31412af | refs/heads/master | 2020-12-24T16:25:17.387701 | 2016-05-17T00:06:58 | 2016-05-17T00:06:58 | 42,060,687 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | """
Generator that augments data in realtime
"""
import numpy as np
import skimage
import skimage.transform
def fast_warp(img, tf, output_shape=(53, 53), mode='constant'):
"""
This wrapper function is about five times faster than skimage.transform.warp, for our use case.
"""
m = tf._matrix
if len... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
5b4dad002ecb2f5c2a0eb3a46708f98755b0783e | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/cffi-1.11.5/testing/cffi0/snippets/setuptools_package_1/setup.py | 18ea3f664eb0f2c04b07d0aa1fb61c5e27e47f44 | [
"Apache-2.0",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 203 | py |
from setuptools import setup
import snip_setuptools_verify1
setup(
zip_safe=False,
packages=['snip_setuptools_verify1'],
ext_modules=[snip_setuptools_verify1.ffi.verifier.get_extension()])
| [
"ranade@cloudera.com"
] | ranade@cloudera.com |
5186c4e58eccbed404c75f6b956b98ccacd456eb | dec494542217437afa7f38e8703328b25b183cb8 | /0-1-knapsack.py | fd4ce77bcb6a2a7f14c79508c5f44f258dae310d | [] | no_license | Transi-ent/LeetcodeSolver | ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd | a89e19753666657a6f15c1be589b9b2dbd4b6c84 | refs/heads/master | 2021-04-16T20:37:34.710175 | 2021-02-24T03:51:43 | 2021-02-24T03:51:43 | 249,383,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,847 | py | def knapSack01(w: list, v: list, capacity: int) ->int:
if len(w) == 0:
return 0
assert len(w)==len(v), 'weight数组和value数组具有相同的长度'
# 将求解过程中的子问题结果存储在数组中
# memo[i][j] 表示要考虑第 i 号物品在背包剩余容量为 j 的情况下,
# ...背包可存放的最大容量
memo = [ [0]*(capacity+1) for _ in range(len(w)) ]
# 初始化 memo
for j in ... | [
"1305113016@qq.com"
] | 1305113016@qq.com |
3acfaea76f7c794b34f05b7eeeca96aac5eda6ca | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/managed/update.py | ba2347df5e08d4d1b09e3a5349bd74431a253f5d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 6,324 | py | # Copyright 2017 Google Inc. 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 applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
be26c85c9ffd359771e6d1b9e46fb4ce65763524 | e6dddf6be89554750f6dba04c7672cd8f1f221a8 | /easing_01.py | 61bfced2b81246b3dd7333705e3204a2d95aa601 | [] | no_license | nndrch/progvis | 20936d0fe9fdfbb1462f18213c0b15a5f1f0dbcf | 2336817695382a20e7a4c352b93e35e96bd87715 | refs/heads/master | 2021-01-23T07:20:50.669387 | 2013-01-10T17:21:54 | 2013-01-10T17:21:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | # [h] simple animation with sin
from math import sin, radians
colormode(HSB)
def _draw_background(frame):
s = sin(radians(frame))
hue = abs(s) * .5
_color = color(hue, .5, .2)
background(_color)
def _draw_cross(frame):
x = WIDTH/2
y = HEIGHT/2
s = sin(radians(frame))
hue = abs(s) * .... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
4de6b1fe99bb317f68556a11a7207a9903a137fb | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /mianshi_prep/AMZ_VO_prep/0347_Top_Frequent_Elements.py | f9f3c0de9e8b980b11492c5bdb0f06d889e064e2 | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 776 | py | class Solution:
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
cnt = collections.Counter(nums)
myHeap = [(-cnt[key],key) for key in cnt]
heapq.heapify(myHeap)
res = heapq.nsmallest(k,myHeap)
return [item[1] for item in res]
# bucket search
class Solution:
... | [
"axd8911@hotmail.com"
] | axd8911@hotmail.com |
5d5fd5400197ecd719fc253a1672aba8d9781a0e | 2086ab51cdd48cdb9a2e8e0943cdf95eafd37b06 | /Assignment2 - A Neural Network for Eye Detection/model.py | 83d4fc4986723266978df226f71ee737992fc40a | [] | no_license | bryonkucharski/intelligent_visual_computing | 49bf4f7db293625861b7aa361326d43c01338c0d | 0c9b4afd30c9e728dc0b7edf76c9bed4a285e2bf | refs/heads/master | 2020-04-18T14:10:08.007453 | 2019-02-23T17:07:20 | 2019-02-23T17:07:20 | 167,582,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from collections import defaultdict
class Model(object):
def __init__(self, num_hidden_nodes_per_layer = [16, 8, 4], iterations = 1000, learning_rate = 0.5, momentum = 0.9, weight_decay = 0.00,\
activation = "sigmoid", verbose = True,update_method = 'GD'):
self.num_hidden_nodes_per_layer = ... | [
"bryonkucharski@gmail.com"
] | bryonkucharski@gmail.com |
a00128a6712f75445c50622b7adb19517a0a0887 | f891828ffe9c8501d276560c8c52d319f284056f | /162_find_one_peak_m/main.py | 8b7a1aa24d473e492afb6c72b085fd077fb8e5f3 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | class Solution(object):
def findPeakElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return None
li, hi = 0, len(nums) - 1
while li < hi:
mid = (li + hi) / 2
if nums[mid] < nums[mid + 1]:
... | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
743a3741c89d8db9bb855f4fdd95e69196b35a04 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /iot_write_1/job_cancel.py | efbd5298de7449ee66380c01df6468358dcf9076 | [] | 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,330 | 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/iot/cancel-job.html
if __name__ == '__main__':
... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
8f09473cf78b99e5e45aaf0d2425cf493f587094 | 925b899cff2fa37e8af46a365f561e083a8818d6 | /helpdesk/views/feeds.py | c476ca9ceecb5ef43ec8137a8161ad91f6594890 | [] | no_license | zaiyankhan/djangonew | f2d6ef9ef73ca0fcd0cda14082a20973c93368ce | 31e4bd9d3432a260273fac7c3ae08137983ea106 | refs/heads/master | 2022-12-08T11:57:25.662206 | 2020-04-05T19:34:59 | 2020-04-05T19:34:59 | 253,313,050 | 0 | 0 | null | 2022-11-22T01:59:55 | 2020-04-05T19:15:58 | Python | UTF-8 | Python | false | false | 5,427 | py | """
django-helpdesk - A Django powered ticket tracker for small enterprise.
(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.
views/feeds.py - A handful of staff-only RSS feeds to provide ticket details
to feed readers or similar software.
"""
from django.contrib.auth import ge... | [
"zaiyanwebadda@gmail.com"
] | zaiyanwebadda@gmail.com |
171f8d4555d356c9ccd04b0b59f0595f7a2202e3 | 4c7b662280b86d994f72529de9caf02d9bd31b36 | /Inliner.glyphsFilter/Contents/Resources/plugin.py | d12d02fe4251fc33489cf78776378b7e68d5b9b7 | [
"Apache-2.0"
] | permissive | mekkablue/Inliner | 742bc157691f499de69ebd58f7b317225722234d | cc70f7ec765b06eea5680a1bcfff780fa37b2db1 | refs/heads/master | 2021-09-10T03:29:55.560945 | 2021-09-05T13:46:10 | 2021-09-05T13:46:10 | 216,339,288 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | # encoding: utf-8
from __future__ import division, print_function, unicode_literals
###########################################################################################################
#
#
# Filter with dialog Plugin
#
# Read the docs:
# https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates... | [
"res@glyphsapp.com"
] | res@glyphsapp.com |
daa2d0fcc837cfac591c79bc62249fc1bb554844 | ae9bb7babce2a0349ae932985cf418a03057c670 | /test_mock/map_local.py | f4954b018897e11d8b836b5276e5ca888b04e403 | [] | no_license | Veraun/HogwartsSDET17-1 | d2592fcb4c9c63724c19bcf9edde349ebcd2c8af | 6648dbfb640b065ff2c76cb6889a8f9e4f124b91 | refs/heads/main | 2023-07-02T05:20:32.161248 | 2021-08-06T03:55:13 | 2021-08-06T03:55:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | '''
#!/usr/bin/python3
# -*- coding: utf-8 -*-
@author: wangwei
@project: HogwartsSDET17
@file: map_local.py
@time: 2021/3/22 15:38
@Email: Warron.Wang
'''
"""
Basic skeleton of a mitmproxy addon.
Run as follows: mitmproxy -s anatomy.py
使用mitmproxy 实现map_local功能:不需要跟服务端进行交互,解析提前生成好的json文件
"""
import json
from mitmpro... | [
"wei1.wang@ximalaya.com"
] | wei1.wang@ximalaya.com |
6f5aa058d4517d24df73d1f3b291c6fd1e218348 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/smallestWindow_20200707154357.py | 676d41f20ddce48a5ee48a9597f430cf1dcedc58 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | def min(s,t):
no_of_chars = 256
# first check if the length of the string is less than the string of the given pattern
if len(t)> len(s):
return ""
else:
# store the occurrences of the characters of the given pat in a hash pat
hash_pat = [0] * no_of_chars
hash_str = [0] *... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6e0b85a0f8ae3d2a3b7a7ef560fb640e2b54d48c | 96ddfa44a1394b3bfd1059040620a5f21982c6b9 | /climber.py | 42d84669ab82ad4bc3db7522faf014fcc2c165fe | [] | no_license | justinnhli/routesmith | 67f34981d1d3ee2cdd3c216cf5a6f9cc6af73a32 | ef280a25e5c5b451e66d820475aea668dd5d409b | refs/heads/master | 2016-09-10T16:25:36.040712 | 2014-11-13T02:32:52 | 2014-11-13T02:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,059 | py | #!/usr/bin/env python3
import math
from abc import ABCMeta, abstractmethod
from argparse import ArgumentParser
from collections import Counter, OrderedDict
from copy import copy
from itertools import product
from numbers import Real
from os.path import dirname, expanduser, join as join_path, realpath
from tkinter imp... | [
"justinnhli@gmail.com"
] | justinnhli@gmail.com |
82279cd54424377456ff4c67a16a57e2530d34f5 | 2e9fa98321bbb8996533dfd17d7438c4498b4b10 | /code/Deep Learning/QuestionUserAttention/inference.py | d9cc11b4167fd66a31b518fbe2281ddf195fac42 | [] | no_license | TEAM-IKYO/Deep-Knowledge-Tracing | d093b7b8af19e1aa65b519111dea4d6d8532b025 | 555e85de63a7debf2a6e57550fdf9b93952ac304 | refs/heads/main | 2023-05-30T04:40:30.141741 | 2021-06-26T17:01:35 | 2021-06-26T17:01:35 | 370,618,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import os
from args import parse_args
from dkt.dataloader import Preprocess
from dkt import trainer
import torch
def main(args):
device = "cuda" if torch.cuda.is_available() else "cpu"
args.device = device
preprocess = Preprocess(args)
preprocess.load_test_data(args.test_file_name)
test_data =... | [
"gl_gd@naver.com"
] | gl_gd@naver.com |
7b96d7a5eff6881bf4411aee4cc418d8817f8218 | d2ff7ade7f373406a8e3aa0b562f07c2319f3c9c | /src/ml/recommendation/fp_growth.py | 06e2d04c0b9ac92a8c3beb3733803a40233b17e6 | [] | no_license | littlemesie/spark-learning | ff49d5c412a5538292775f240259ed76c82efb63 | 80c3be15a153adbcddd9ad0dbd1bf25f18138657 | refs/heads/master | 2020-09-01T13:41:35.049581 | 2019-12-25T11:52:08 | 2019-12-25T11:52:08 | 218,970,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | """
FPGrowth 算法
Run with:
bin/spark-submit --py-files='/Users/t/python/spark-learning/src/utils.zip' \
/Users/t/python/spark-learning/src/ml/recommendation/fp_growth.py
"""
from pyspark.ml.fpm import FPGrowth
from pyspark.sql import SparkSession
if __name__ == "__main__":
spark = SparkSession\
.builder... | [
"littlemesie@163.com"
] | littlemesie@163.com |
7a7a77d23ff75ddf5ae81f841a813c39be0499c8 | f92385943346eccca8cc4d7caca66d2d5455caa2 | /2020.7/IntegerBreak.py | f05d18bbcc800e11089226a664d7461c8300a577 | [] | no_license | IamWilliamWang/Leetcode-practice | 83861c5f8672a716141dc6ec9f61f21dc5041535 | c13c0380a3ae9fef201ae53d7004b9f4224f1620 | refs/heads/master | 2023-04-01T12:15:19.335312 | 2020-10-15T14:49:36 | 2020-10-15T14:49:36 | 281,846,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from functools import lru_cache
class Solution:
def integerBreak(self, n: int) -> int:
@lru_cache(maxsize=None)
def dp(rest: int, mustDivide=False) -> int:
if rest == 1:
return 1
result = [] if mustDivide else [rest] # 不切分
for i in range(1, rest... | [
"iamjerichoholic@hotmail.com"
] | iamjerichoholic@hotmail.com |
dfcfa5df540cd7662111f2fdff86ee84f5866976 | 5ef0c2fa4ee0d210d35a5c3e4e7921d249efe5e3 | /setup.py | fbe64450ef268e679e90365ade46f36788c3050e | [
"BSD-3-Clause"
] | permissive | qcscine/puffin | c0271beaf918a03cb82ff791c7589b51b6102c81 | 2b4872f1e19c28dfec1737b2dd38c6f8e9dd6e07 | refs/heads/master | 2023-05-25T12:03:18.287843 | 2023-05-12T07:00:06 | 2023-05-12T07:00:06 | 505,703,091 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | # -*- coding: utf-8 -*-
__copyright__ = """ This code is licensed under the 3-clause BSD license.
Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
See LICENSE.txt for details.
"""
from os import path
from setuptools import setup, find_packages
import sys
min_version = (3, 6)
if sys.version_info <... | [
"scine@phys.chem.ethz.ch"
] | scine@phys.chem.ethz.ch |
9436627e2ddec21cf1b0c8ad1718f1615dabf19e | 8d2abf7ad4c3f35801f6bfdb38a4d6cddf1e0fbd | /0404/demo14.py | 47e65ec8e8817b269461aa609aed78fcaef357bb | [] | no_license | erroren/Python_A | e9dfba73fc09160e4d3b8ea994183e2735f9d36e | 47901316902705e513ea7d6e016f98f1cd2d3e85 | refs/heads/master | 2020-05-04T14:27:29.118843 | 2019-06-13T08:50:03 | 2019-06-13T08:50:03 | 179,197,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import re
s1 = "hello\nworld"
print(s1)
# 在字符串开头
res = re.match("He", s1, flags=re.I)
print(res.group())
# 扫描整个字符串,返回第一个匹配
res = re.search("o", s1)
print(res.span(), type(res))
# 是否完全匹配
res = re.fullmatch("hello", s1)
print(res, type(res))
# 返回列表
res = re.findall("l", s1)
print(res)
# 分割返回列表
res = re.split("o", s1)
pri... | [
"hcy@qq.com"
] | hcy@qq.com |
944ae9fe64a0566be162152070cd988cafd5324b | 172ce38cdad4d64d984b808b3f60738e63aed7f9 | /appengine/swarming/swarming_bot/api/platforms/android.py | 4fdad12a21442b45bf3d5bb80029cc0b58144735 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Slayo2008/New2 | 7dfa0eeacbcc42435b8eb80522cfbdc71b8f2514 | 3fa4c520dddd82ed190152709e0a54b35faa3bae | refs/heads/master | 2021-01-13T05:53:20.555486 | 2017-06-21T01:30:03 | 2017-06-21T01:30:03 | 94,951,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | # Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""Android specific utility functions.
This file serves as an API to bot_config.py. bot_config.py can be replaced on
the server to allow addition... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c51ab29472894e4012d39949962bd9b68ae52dcf | 10ee894d69a89b3735d40b1549886de058bcef56 | /abc011/D.py | e6fda6dbd0c3280229677031bee94de4886ec528 | [] | no_license | kusano/atcoder | bc518250425b478e9363ef17b840213a4961d278 | 22e41e47d9b72c110e3e9a7e0d3edf679ec4f0bd | refs/heads/master | 2021-06-26T17:18:37.092261 | 2020-12-05T07:37:41 | 2020-12-05T07:37:41 | 171,328,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | N, D = map(int, raw_input().split())
X, Y = map(int, raw_input().split())
P = [1]*(N+1)
for i in range(1, N+1):
P[i] = i*P[i-1]
if X%D!=0 or Y%D!=0:
print 0
exit(0)
dx = X/D
dy = Y/D
ans = 0
for U in range(0, N+1):
D = U-dy
if 0<=D:
if (dx+N-U-D)%2==0:
R = (dx+N-U-D)/2
L = N-U-D-R
if ... | [
"kusano@users.noreply.github.com"
] | kusano@users.noreply.github.com |
59f6d95909fe2f6fd6e1774db9c65e11c3e7a8e2 | 1287ad54942fd2020a217ab12004a541abb62558 | /pythonexercicios/Ex076.py | b271f5ff01023037f5ca20ae157ea60ec894d0a1 | [] | no_license | LuPessoa/exerciciospy- | 637f24581722e547a62380973ca645b55ff65d90 | b5faad818f978bb13a65922edceb17888b73a407 | refs/heads/master | 2023-05-12T04:16:39.847184 | 2021-06-04T03:02:24 | 2021-06-04T03:02:24 | 374,410,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | listagen = ('Lápis', 1.75, 'Boracha', 2, 'Caderno', 15.90,
'Estojo', 25, 'Tranferidor', 4.20, 'Copasso', 9.99,
'Mochila', 120.32, 'Canetas', 22.30, 'Livro', 34.90)
print('-' * 40)
print(f'{"LISTAGEM DE PREÇO":^40}')
print('-' *40)
for pos in range(0, len(listagen)):
if pos % 2 == 0:
... | [
"lulenemacedo29@gmail.com"
] | lulenemacedo29@gmail.com |
6a4481a57564deba9625260c7da0177b424bfd4d | 347e68e072d2d779f86ca81d641edde256b19459 | /app/data_product_framework-master/python/bnr/utils/generic_verification.py | 130f2057a3dbf426eec30853fd1e12a60af9bc11 | [] | no_license | prem1982/data-product-framework | 8b40e3c81921e6a9d9fa09025cbf620b4143c2b4 | 9dd10c3656f188f383a11cf373020f904cc37239 | refs/heads/master | 2020-03-25T17:53:12.810941 | 2018-08-08T11:01:42 | 2018-08-08T11:01:42 | 144,001,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """Contains GenericVerification, a class to aid in error checking"""
import numpy as np
class GenericVerification(object):
"""Contains various methods to check the format and value of various objects"""
def __init__(self):
"""Default format and value exceptions"""
self.format_exception = None... | [
"prem1pre@gmail.com"
] | prem1pre@gmail.com |
48c8abbd7689fe090e0120b5943afc43559c6807 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /recipes/recipes_dbus_client.py | 43263d9b83a0e07cc6cb30515ff044423d3ad159 | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #!/usr/bin/env python
usage = """Usage:
python recipes_dbus_service.py &
python recipes_dbus_client.py"""
import sys
import traceback
import dbus
def main():
bus = dbus.SessionBus()
try:
remote_object = bus.get_object("gov.pims.SamsService","/SamsStatus")
except dbus.DBusException:
t... | [
"silversnoopy2002@gmail.com"
] | silversnoopy2002@gmail.com |
fb0c9774d7bbcbda0eddf6a0519f3a9c10b9883b | a61a22f12e12b6d608d67cfb68f1c8abb4d30b63 | /structural_dynamics/pdb_processor/__init__.py | 85cefba58800d402a63c794bf05caffa8294787a | [] | no_license | sunainabanerjee/structural_dynamics | 8fe8c679356a0c5dbb0ee41601e5b0293dcb300d | 753aee50ad6ea44e4151b9a3eb6bcd93a20d1bfb | refs/heads/master | 2021-08-02T20:32:31.402525 | 2021-07-24T11:01:00 | 2021-07-24T11:01:00 | 204,093,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from .amino_acids import *
from .pdb_structure import *
from .trajectory_reader import *
from .amino_builder import *
from .pdb_compressed import *
| [
"sumant199@gmail.com"
] | sumant199@gmail.com |
6bb5c20655eb5807e5ca5504071f83c919c0a56e | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/jsonschema/cli.py | 5aba5b94a7a2d23d5e892cdfd313bcee6cb2d617 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:dd573ca6d736183ef30f12b617e91a9aa9ab13d7f7e5ad8a543191d69d5a7145
size 2310
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
f0fa0de34175cca12b502aaac3d72c8cbd216100 | 920b9cb23d3883dcc93b1682adfee83099fee826 | /itsm/postman/migrations/0009_auto_20210423_2037.py | 7082e91af3662c30c8af11f117f32aaa74c5e11e | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-3.0-only"
] | permissive | TencentBlueKing/bk-itsm | f817fb166248d3059857b57d03e8b5ec1b78ff5b | 2d708bd0d869d391456e0fb8d644af3b9f031acf | refs/heads/master | 2023-08-31T23:42:32.275836 | 2023-08-22T08:17:54 | 2023-08-22T08:17:54 | 391,839,825 | 100 | 86 | MIT | 2023-09-14T08:24:54 | 2021-08-02T06:35:16 | Python | UTF-8 | Python | false | false | 1,836 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-ITSM 蓝鲸流程服务 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-ITSM 蓝鲸流程服务 is licensed under the MIT License.
License for BK-ITSM 蓝鲸流程服务:
------------------------------------------... | [
"1758504262@qq.com"
] | 1758504262@qq.com |
7403af500b9611f0bcb4175b9bb9d30bcf1d9b47 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day09/jiangyi/day09/code/star_tuple_args.py | 4550b18b630c2e07767613e469c246b304aaf89c | [] | 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 | 260 | py | # star_tuple_args.py
# 此示例示意星号元组形参的定义及使用
def func(*args):
print("实参个数是:", len(args))
print("args=", args)
func()
func(1, 2, 3, 4)
func(1, 2, 3, 4, 'AAA', 'BBB')
func(*"ABCDEFG") # func('A', 'B', ....'G')
| [
"442315617@qq.com"
] | 442315617@qq.com |
6583307ce190d45adb72be69c75a862a44808cae | 0b7b36144d95a8bd157ae6a41988f8ed37825212 | /app/main/views.py | 73ba2f22d21819dc095d66bf66bde95dd7882737 | [
"MIT"
] | permissive | derriqo/Housemngr | 562eccab8358c789efb4d32702ff1db67b66d138 | a58a3cb26c1149235eba1e641e7974b9091bc86b | refs/heads/master | 2022-10-02T02:07:53.741076 | 2019-10-01T17:32:17 | 2019-10-01T17:32:17 | 211,842,921 | 0 | 0 | MIT | 2022-09-16T18:10:24 | 2019-09-30T11:19:28 | Python | UTF-8 | Python | false | false | 188 | py | from flask import render_template, request, redirect, url_for,abort
from . import main
from .. import db
@main.route('/')
def index():
return '<h1> Welcome to Football Fantasy </h1>'
| [
"aomware@gmail.com"
] | aomware@gmail.com |
addd4ea5b5e6245ef28fe2a539833276daf035f7 | 33ff484c12f1af1eacbc52f9d29fc1ccbf839501 | /highlighter/tests/models.py | eed8863f4e4f7c51a1e165bb50af4f8f5bf04e4a | [] | no_license | kaleidos/django-highlighter | 7f3cdc5f2cc34109fc7f76a3d75d8e9349f8ef58 | 9ebbdf44134f80afa5d21dba8b17656bb1dcd18b | refs/heads/master | 2021-01-01T05:31:17.115121 | 2012-04-03T08:12:34 | 2012-04-03T08:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
from ..models import HighlighterMixin
class TestModel(HighlighterMixin, models.Model):
name = models.CharField(max_length=10)
| [
"jesus.espino@kaleidos.net"
] | jesus.espino@kaleidos.net |
557edc9c7035222cbf7cee6e07099f793e688d79 | abd9537f8b90a990e195ded5f9fafdcc108d2a48 | /swea/mock_exam/4012/4012_cook.py | fd0ad4bcf44be47082a9cd039cc6f504a2a8f540 | [] | no_license | ohdnf/algorithms | 127171744631406c1d08cc2583aa569a094fa2cd | 6f286753dab827facc436af4f2130f11dad2d44f | refs/heads/master | 2023-08-09T11:19:56.445351 | 2021-08-31T13:11:46 | 2021-08-31T13:11:46 | 236,180,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | import sys
sys.stdin = open('input.txt')
def dfs(length, half, number, last):
if length == half:
ingr_a = [num for num in range(n) if check[num]]
ingr_b = [num for num in range(n) if not check[num]]
s_a = s_b = 0
for i in ingr_a:
for j in ingr_a:
s_a += s... | [
"jupyohong7@gmail.com"
] | jupyohong7@gmail.com |
3707c7f1567fafbefb0b8258a7550cb8c220853d | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v2/model/application_key_create_attributes.py | 3949ee2db31f954f975c293c1be4248ca71e08de | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,209 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import List, Union
from datadog_api_cli... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
3c897fd25419ad4d43183f577c18504c7c5e3df2 | 22e2ef95386b10187756bc07267b57a93c480de5 | /lifelines/fitters/generalized_gamma_fitter.py | a06b6f6ffe6f0e0c0a4b2eb412b9a9d990bb9c06 | [
"MIT"
] | permissive | datali01/lifelines | aee0933e8119f75d2b6f61fd7c13f5441f460947 | a73d441f6347332ca870bf2ec32eeeca410dc6de | refs/heads/master | 2020-09-17T21:31:40.197277 | 2019-11-21T16:10:13 | 2019-11-21T16:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,703 | py | # -*- coding: utf-8 -*-
import autograd.numpy as np
from autograd.numpy import exp, log
from scipy.special import gammainccinv, gammaincinv
from autograd_gamma import gammaincc, gammainc, gammaln, gammainccln, gammaincln
from lifelines.fitters import KnownModelParametricUnivariateFitter
from lifelines.utils import Cens... | [
"cam.davidson.pilon@gmail.com"
] | cam.davidson.pilon@gmail.com |
f6498e8a9415ce9dee9317eb6e677f9dec3b5ac5 | b96ed10d6247e22d4fa1d28bc3314bc319d3109c | /LessonSample/chapter20/other/asyncio05.py | 91f35b945f53ad0ba3ea7be7089fc5f955920092 | [] | no_license | 13555785106/PythonPPT-01 | ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c | 40e5883f248cb342f3a7fc7ad12ba02ebde4c619 | refs/heads/master | 2020-04-26T16:49:59.675964 | 2019-03-04T07:16:21 | 2019-03-04T07:16:21 | 157,095,747 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import asyncio
import time
now = lambda: time.time()
async def do_some_work(x):
print('Waiting: ', x)
await asyncio.sleep(x)
return 'Done after {}s'.format(x)
start = now()
coroutine = do_some_work(5)
loop = asyncio.get_event_loop()
task = asyncio.ensure_future(coroutine)
loop.run_until_complete(task)... | [
"312655424@qq.com"
] | 312655424@qq.com |
9bf82b3bc4c1d49d1a69bdb22c2abb305dc32057 | afbc73121b15120a584f6ad36c8d8a3cca292ce7 | /ostap/core/meta_info.py | 04c0e39ac9125c2b3e05fc0bf3efbe23b9750acb | [
"BSD-3-Clause"
] | permissive | bopopescu/ostap | eb8ad9728685f8eb7f05b6f58dc50311e9bae53c | cd3309106ba4ae965217021fdfa775256c231874 | refs/heads/master | 2022-11-26T08:14:26.247014 | 2020-07-23T19:50:56 | 2020-07-23T19:50:56 | 282,063,115 | 0 | 0 | null | 2020-07-23T21:52:23 | 2020-07-23T21:52:23 | null | UTF-8 | Python | false | false | 2,921 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
## @file ostap/core/meta_info.py
# Meta-info for ostap
# @author Vanya BELYAEV Ivan.Belyaev@itep.ru
# @date 2020-05-30
# ============================================================... | [
"ivan.belyaev@cern.ch"
] | ivan.belyaev@cern.ch |
d5189122d685ae031814682a14c3d3c8786830b1 | cc5a3fa80d2ae90afc2626e4a82b9a927726dfa0 | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/apply_certificate_to_host_request.py | e8163a7bb9e19d6feaa786b32d269ab6934d4c1d | [
"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,825 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ApplyCertificateToHostRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dic... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
1188811823b2097d9ba419acccad50b63a568c6c | b1571f4ee376d789b8094777fd81c4fb47a89cf1 | /AtCoder/本番/ABC/ABC158/E.py | bd8a762c9fe3d9ded6aaf43ca778cd4976d42313 | [] | no_license | hiroyaonoe/Competitive-programming | e49e43f8853602ba73e658cab423bd91ebbe9286 | 2949e10eec3a38498bedb57ea41a2491916bab1c | refs/heads/master | 2021-06-23T21:56:33.232931 | 2021-05-30T15:27:31 | 2021-05-30T15:27:31 | 225,863,783 | 2 | 0 | null | 2020-06-14T17:54:28 | 2019-12-04T12:37:24 | Python | UTF-8 | Python | false | false | 795 | py | n,p=map(int,input().split())
s=input()
genL=[set() for i in range(n+1)]
ans=0
def ser(l,gL):
global kari
for gR in genL[l+len(str(gL))]:
new=str(gL)+str(gR)
if new not in genL[l]:
kari.add(new)
ser(l,new)
if p==2:
for i in range(n):
if int(s[i])%2==0:... | [
"onoehiroya@gmail.com"
] | onoehiroya@gmail.com |
a8f730d4e441187caf281bf81f4c992510bcefa4 | 07bd6d166bfe69f62559d51476ac724c380f932b | /build/voxel_grid/catkin_generated/pkg.develspace.context.pc.py | 3e42a10d7ebed26b56d7936684137361e4771c41 | [] | no_license | Dangko/webots_differential_car | 0efa45e1d729a14839e6e318da64c7f8398edd17 | 188fe93c2fb8d2e681b617df78b93dcdf52e09a9 | refs/heads/master | 2023-06-02T16:40:58.472884 | 2021-06-14T09:19:58 | 2021-06-14T09:19:58 | 376,771,194 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/dango/dango_file/software/webots/web_con_ws/src/voxel_grid/include".split(';') if "/home/dango/dango_file/software/webots/web_con_ws/src/voxel_grid/include" != "" else []
PROJECT_CATKIN_DEPENDS =... | [
"1477055603@qq.com"
] | 1477055603@qq.com |
646bdcab82d15a01b6f683a17f83f45d55239284 | dad9579a08ff0eff8f70f87b29ae5343c969e486 | /01.Knowledge-11Tensorflow与深度学习/02.代码实现-03自编码器-03双隐层自编码器.py | e38000e0641e7973d2e8acc80aa0778e79b59efd | [] | no_license | myboyliu/MachineLearning | cd3caac06d0eba49f4f67dc4d1c00277d5a78260 | fa246e4e0e3841ec5e4544d585adbcbf9d60a1f8 | refs/heads/master | 2021-07-09T19:11:26.222674 | 2017-08-25T07:38:06 | 2017-08-25T07:38:06 | 104,562,647 | 3 | 0 | null | 2017-09-23T11:28:28 | 2017-09-23T11:28:27 | null | UTF-8 | Python | false | false | 4,022 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import os
from tensorflow.examples.tutorials.mnist import input_data
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
learning_rate = 0.01
training_epochs = 20
batch_size = 256
display_step = 1
examples_to_show = 10
# 784 -> 256 -> 128 -> 256 -> 784
n... | [
"jeffcobile@gmail.com"
] | jeffcobile@gmail.com |
e732ab2d677c26b61422e604d505f98179d114f4 | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /greedy20210529-2.py | 840eb735a1c02c147dd627e27189e254d23ad91a | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | N = int(input())
road = list(map(int, input().split()))
price = list(map(int, input().split()))
# 처음 도시에서는 길이 만큼 곱해서 가야해
answer = 0
answer += road[0] * price[0]
# 이거는 무조건 해야해 그래야 갈 수 있어 다음도시로
# 두번째 도시에서 3번째 도시로 갈건데 이때 첫번째 도시의 기름이 더 싸면 첫번째 도시에서 넣고 아니라면 2번째 도시에서 넣어야 해
for i in range(0,N-2):
if price[i] >= price[i... | [
"sangmin3285@gmail.com"
] | sangmin3285@gmail.com |
61f581a5167ca23fb9265edbb4ea0f43df2bde7b | a39070a46b9223dff0246a66054da1c9fb1103d7 | /edit.py | 02d615d8a6ae6c0c23c4e7e652f258c7dc6aeb0a | [] | no_license | esheldon/rmweb | 3230df753a3ffd566207b11cdd1ce2a066c89b0b | c7b3a3118d0d3e8bfa95186e150eb24e8a384e2b | refs/heads/master | 2021-01-20T02:47:27.782744 | 2012-12-31T13:20:57 | 2012-12-31T13:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/usr/bin/env python2.7
import rm_util
import cgi
print "Content-type: text/html\n\n"
print
fs = cgi.FieldStorage()
if 'id' not in fs:
print "You must send an id"
else:
cluster=rm_util.get_cluster(fs['id'].value)
comments=cluster.data['comments']
print "<form action='update.py'>"
print " Co... | [
"erin.sheldon@gmail.com"
] | erin.sheldon@gmail.com |
f12911bc745fcf648152bf6ad629fed1425de55c | d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189 | /pyplusplus_dev/unittests/balanced_files_tester.py | 7736ea65c0170e610cd952e7419936de5fb80240 | [
"BSL-1.0"
] | permissive | gatoatigrado/pyplusplusclone | 30af9065fb6ac3dcce527c79ed5151aade6a742f | a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede | refs/heads/master | 2016-09-05T23:32:08.595261 | 2010-05-16T10:53:45 | 2010-05-16T10:53:45 | 700,369 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import sys
import unittest
import autoconfig
from pyplusplus import utils
import fundamental_tester_base
f... | [
"roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76"
] | roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76 |
d1a7a5adc211cd805ed7191a0ecdcf8e9bff8105 | 898c5364cab1d8bf6366de22753509bd021b45f3 | /0x0B-python-input_output/1-number_of_lines.py | b7ada85b55aae230a07d03ce156630209b9122d4 | [] | no_license | jozsa/holbertonschool-higher_level_programming | 98cc071321934f221ad592a066349e0be293c865 | 7920933ecf983c1856930d4d3b707e230b589231 | refs/heads/master | 2020-04-09T10:02:42.163683 | 2019-05-17T02:08:41 | 2019-05-17T02:08:41 | 160,255,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/python3
"""number_of_lines(filename="")
Only one function that counts the
number of lines in a file.
"""
def number_of_lines(filename=""):
"""
Counts the number of lines in a file
"""
count = 0
with open(filename, encoding='utf-8') as a_file:
for line in a_file:
co... | [
"allisonjoyweiner@gmail.com"
] | allisonjoyweiner@gmail.com |
fbf38664b6aeb77902c22fb9fd5e49a8b5bf6917 | f40086079bdcb465da32bfc4c244d0a699a735e3 | /informatics/series 8 advanced/chutes_and_ladders.py | 2eb2423692b0ec88d07600c1bca772fdc180b0b7 | [] | no_license | isk02206/python | e6dfc1e219ae3a51bde80fed75412bed98b3defe | b2fc6d1aa1155c0758883677eb2e37d9f92a4382 | refs/heads/master | 2022-12-06T15:14:55.264792 | 2020-09-02T01:02:11 | 2020-09-02T01:02:11 | 292,142,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,282 | py | '''
Created on 2018. 11. 09
@Subject : chutes_and_ladders
@Author : Son Jee Hun
@Student Number : 01406444
'''
def merge(chutes, ladders):
'''
>>> chutes = {98: 78, 95: 75, 93: 73, 87: 24, 64: 60, 62: 19, 56: 53, 49: 11, 47: 26, 16: 6}
>>> ladders = {1: 38, 4: 14, 9: 31, 21: 42, 28: 84, 36: 44, 51: 67, 71: ... | [
"67949037+isk02206@users.noreply.github.com"
] | 67949037+isk02206@users.noreply.github.com |
551ac8776887783fa1cdff54f97adcdcbb9bafd9 | 60e4baae4d6b323b3d3b656df3a7b0ea3ca40ef2 | /project/mhealth/settings/base/env.py | cd4b1ec20e8f94db1f515dccc0d5c98120d33b31 | [] | no_license | Burzhun/Big-django-project | a03a61a15ee75f49324ad7ea51372b6b013d1650 | 1a71f974b7b5399a45862711b5f858c0d4af50d2 | refs/heads/master | 2020-04-11T00:16:06.211039 | 2018-12-11T19:13:38 | 2018-12-11T19:13:38 | 161,381,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # Best place to change this env variables is mhealth/settings/local_env.py file. It loads after this one specially to
# allow you manage env without touching project code.
import os
PRODUCTION = False
DEBUG = True if not 'PRODUCTION_ENV' in os.environ else False | [
"burjunov@yandex.ru"
] | burjunov@yandex.ru |
4a1b7da95a43748be5f678fbf0697b663273ff66 | 9311a77e41c34859742d61822c0fe29ebc9c4832 | /CNNperpatient.py | 51cc717ff754548b68e1ee090cb18942b17dcc53 | [] | no_license | zafarali/MindReader | 03d2cece21ae6eb68b3b6c6c9b5ca15dc961eb55 | 5953c53ccaf39af18d771bb1746e0db4b1c1385f | refs/heads/master | 2016-08-08T18:42:35.119272 | 2015-12-12T03:01:01 | 2015-12-12T03:01:01 | 46,383,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py |
# coding: utf-8
# In[1]:
import numpy as np
import matplotlib.pylab as plt
from collections import Counter
import IOutils
import random
# from neuralnetworks.templates import BasicCNN
from sklearn.metrics import confusion_matrix, classification_report
import theano
import lasagne
from lasagne import layers
from lasa... | [
"zafarali.ahmed@gmail.com"
] | zafarali.ahmed@gmail.com |
7860f2b73d4b109298cbbeb7a7f0656fa2092d0e | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/141822/AXA_Telematics-master/Features/modules_janto/preprocessing.py | b1c7f2a3ef65481bd9b95690d874e5924fe87eac | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | # -*- coding: utf-8 -*-
"""
(c) 2015
@author: Janto Oellrich
email: joellrich@uos.de
CONTENT:
Contains PREPROCESSING funtions (smoothing and geometric transformations,
such as flipping, rotating or normalizing north) for the
AXA telematics competition.
FUNCTION LIST:
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
9b26b607e63a2e38c64267e93358e9707ee6af33 | 414b21e4645117e92582fb3ad76026a10c6d00d5 | /Python150Challenges/ForLoops/35-44 Challenges/Challenge37.py | 800f978b639b28575f4736d3b28ef065017b9ebf | [] | no_license | srinivasskc/Python-Programming-Learning | 1a8caf1a4fc602ef5b819d6168377fcfe6ba7351 | 4d4523473521b94f76709b204251bd4ef6ab5f1e | refs/heads/master | 2022-11-14T20:10:02.453767 | 2020-07-07T03:58:03 | 2020-07-07T03:58:03 | 272,511,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # 037 Ask the user to enter their name and display each letter in their name on a separate line.
name = input("Enter the name: ")
for i in name:
print(i)
| [
"srinivas.skc30@gmail.com"
] | srinivas.skc30@gmail.com |
eff9db2e8aec8065980f1bfabf32481a1f2c1323 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /EventFilter/CTPPSRawToDigi/python/totemTriggerRawToDigi_cfi.py | 893588f74e999fea15317fb3bb472e5258b856d2 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 283 | py | import FWCore.ParameterSet.Config as cms
totemTriggerRawToDigi = cms.EDProducer("TotemTriggerRawToDigi",
rawDataTag = cms.InputTag(""),
# IMPORTANT: leave 0 to load the default configuration from
# DataFormats/FEDRawData/interface/FEDNumbering.h
fedId = cms.uint32(0)
)
| [
"jan.kaspar@cern.ch"
] | jan.kaspar@cern.ch |
d2fd90b4ff1298aaa3f71b2a5d5add0cad963221 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/tutorial/gui/Scaleform/quests/proxy.py | f41212c048c86d95640b43d82a8c6f40e7f03109 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,417 | py | # 2016.11.19 19:54:51 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/gui/Scaleform/quests/proxy.py
from tutorial.gui import GUI_EFFECT_NAME
from tutorial.gui.Scaleform import effects_player
from tutorial.gui.Scaleform.lobby.proxy import SfLobbyProxy
from tutorial.gui.Scaleform.quests import se... | [
"info@webium.sk"
] | info@webium.sk |
1625ec9e5cad78d1af0021988f5f3c27360cfe81 | 43559abbd57c4ff99b958b0bb9db85006461f16d | /366. Find Leaves of Binary Tree/366. Find Leaves of Binary Tree(AC).py | 3b8c7e14a4a659f63e506e5bd0c543a440da83f6 | [] | no_license | BohaoLiGithub/Leetcode | 6f97e701822d2a913bca300c875ca5c8a16d509a | d87acd5481a2dbfad7288b73750e6e086650a17d | refs/heads/master | 2020-04-22T18:42:49.350725 | 2019-04-18T00:52:19 | 2019-04-18T00:52:19 | 170,585,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def findLeaves(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
... | [
"bli107@syr.edu"
] | bli107@syr.edu |
bb8fc8af16ada048f34e6549a6d663aca7f055bc | eac88ae13e006b6771c89e92057a31b509f0bc0d | /eagle_bot/reinforcement_learning/replay/replay_handler.py | fb010a358b284442ef6c410a22529461051f58e7 | [
"MIT"
] | permissive | twobackfromtheend/challenger | 7c75fd8c80ee9efa7e374aac16547eec51d89154 | 01d131487209029df342e68075e8aae133c4e632 | refs/heads/master | 2020-05-04T23:32:02.312927 | 2019-08-12T11:01:37 | 2019-08-12T11:01:37 | 179,546,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | import random
from collections import deque
from typing import Deque, List
import numpy as np
from eagle_bot.reinforcement_learning.replay.experience import Experience, InsufficientExperiencesError
class ExperienceReplayHandler:
"""
TODO: Look at deque: https://github.com/keras-rl/keras-rl/issues/165
""... | [
"harry1996@gmail.com"
] | harry1996@gmail.com |
8bdfb8f771f40ac6abc26ac346c80d02cc7e25dd | d1376938086c65e8b7d5d0d9618278fd8dfb1cfd | /Python/Scripts/file7.py | 18860fa2a0edc53977f68c84427b5a89769bec98 | [] | no_license | DataEdgeSystems/Project | a6d235b1c0800a9ffb19e6163e69f07918ebce29 | 09ec31b385c7be62275079a7fb1826377d861365 | refs/heads/master | 2022-11-20T18:39:22.850454 | 2020-07-17T06:46:16 | 2020-07-17T06:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | fh=open('emp.txt','r')
print 'file ptr position :', fh.tell()
print ' 1st 15 char :', fh.read(15)
print 'file ptr position :', fh.tell()
fh.seek(-9,2)
#fh.seek(30,0) --> move fp 30 bytes from bof
#fh.seek(- + 22,1) --> move fp 22 bytes from current pos
#fh.seek(-10,2) --> move fp 30 bytes from bof
print ' last ... | [
"ripattna@gmail.com"
] | ripattna@gmail.com |
29e4024a76f5472a62c2d6cb55110a9547c6be88 | 7d5f8abc0cafdcc81cd3ade7fc288a25bc2782fd | /zimit/utils.py | b7828249b469bf5a005c9ebb89bfeae5c5c6e89e | [] | no_license | almet/zimit | 53ac71e46d00b35e3c21515a232782018c1ed0d9 | 6f1a49d494bbd836a1e29c20a271bd692fb04be5 | refs/heads/master | 2021-01-17T14:26:03.167549 | 2016-06-21T14:14:38 | 2016-06-21T14:14:38 | 49,345,954 | 10 | 1 | null | 2016-01-10T11:16:43 | 2016-01-09T23:34:55 | Python | UTF-8 | Python | false | false | 970 | py | import os
import shlex
import subprocess
def spawn(cmd, logfile=None):
"""Quick shortcut to spawn a command on the filesystem"""
if logfile is not None:
with open(logfile, "a+") as f:
prepared_cmd = shlex.split("stdbuf -o0 %s" % cmd)
process = subprocess.Popen(prepared_cmd, std... | [
"alexis@notmyidea.org"
] | alexis@notmyidea.org |
0365e01b33d9e35923d5489b026e3766279d043b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/47/usersdata/83/17073/submittedfiles/lecker.py | 6e07abf9a47376d9bb689386426b68f2c120ce3f | [] | 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 | 515 | py | # -*- coding: utf-8 -*-
from __future__ import division
def lecker(lista) :
cont=o
for i in range (0,len(lista),1):
n=0
if lista[i]>lista[i+n] and lista[i]>lista[i-n] :
n=n+1
cont=cont+1
if cont==1 :
return S
else :
return N
la = []
lb = []
a = ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d86beed850c15a4125d857cb6e0db98590540b0a | 1c7fa268ee031395806f38d52b6a7282ba5a4633 | /hr_python/regex_parse/medium/ValidatePostalCode.py | 2e7140f6d2f4404811572077811be950c7561ed8 | [] | no_license | murugesan-narayan/hr_python | d2f562ecd2aa6c4eef4aab8363d5d040447ed727 | 86542342fc77cf7c95ebd08e5142186410f6385d | refs/heads/master | 2022-04-12T14:59:16.293611 | 2020-03-24T14:25:30 | 2020-03-24T14:25:30 | 249,729,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import re
regex_integer_in_range = r"^[1-9][\d]{5}$" # Do not delete 'r'.
regex_alternating_repetitive_digit_pair = r"(\d)(?=\d\1)" # Do not delete 'r'.
if __name__ == '__main__':
P = input()
print((bool(re.match(regex_integer_in_range, P)) and
len(re.findall(regex_alternating_repetitive_digit_p... | [
"murugesan.narayan@gmail.com"
] | murugesan.narayan@gmail.com |
8b2518793c4e8ac0ba037f830c236dfbbe14a200 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/65/usersdata/188/38865/submittedfiles/investimento.py | 144ae4073b1909b67cb1d357315cb6165f44d60d | [] | 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 | 493 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE SEU CODIGO AQUI
v=float(input('Digite o valor do investimento:'))
t=float(input('Digite o valor da taxa de crescimento anual:'))
v1=v+(t*v)
v2=v1+(t*v1)
v3=v2+(t*v2)
v4=v3+(t*v3)
v5=v4+(t*v4)
v6=v5+(t*v5)
v7=v6+(t*v6)
v8=v7+(t*v7)
v9=v8+(t*v8)
v10=v9+(t*v... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.