blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1368e7d59993e242bd8df5f4001e611ee15a8ea1 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /others/language/python/flask/projects/flask-api-swagger-doc/app.py | cde3f48bff736128aa64aada4524a75af42aa4b0 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,853 | py | from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from apispec_webframeworks.flask import FlaskPlugin
from flask import Flask, jsonify, render_template, send_from_directory
from marshmallow import Schema, fields
app = Flask(__name__, template_folder='swagger/templates')
@app.route('/'... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
71c207ff2c246376bcee9e9845a3679638b40e55 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/base/lib/shlex.py | f8196f4308aac174c8527a20cb7eb897ddf14814 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 66,133 | py | import os
import re
import sys
from collections import deque
from io import StringIO
__all__ = ['shlex', 'split', 'quote']
class shlex:
def __init__(self, instream=None, infile=None, posix=False, punctuation_chars=False):
if isinstance(instream, str):
instream = StringIO(instream)
... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
1e34501c813604e30eaf8cac50b7813ecb41e56c | 755c0476da2bde006303b355371270132541c63c | /data_structures/tree/preorder.py | f9422a08eba0279ca625225241e27470c0af6ef3 | [] | no_license | diegoami/hackerrank-exercises | d411164eb32f4a5ac36df1ca81fa40cc51ae6fab | 4daaa81273ec27278e530ab882445c040041cbd7 | refs/heads/master | 2021-03-24T13:04:26.105170 | 2017-08-27T20:07:25 | 2017-08-27T20:07:25 | 90,566,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | """
Node is defined as
self.left (the left child of the node)
self.right (the right child of the node)
self.data (the value of the node)
"""
def scan(node):
return [str(node.data)] + scan(node.left) + scan(node.right) if node else []
def preOrder(root):
print(" ".join(scan(root)))
| [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
48dc96d39678bff752cc24ce6348a458d01041fd | 0ba65f7c0e36c6eacdc559ecf6df221a6be89365 | /myshop/__init__.py | 37b137633c6d9184212ac2616855685c3a232ec3 | [] | no_license | maciejbihun9/django_tutorial_shop | a9811352dbf3ae20bb88972e4d593e6b7b4c2b4f | f2c0154ec47ba81a9ce5901c82aca50968380aa2 | refs/heads/master | 2021-08-31T18:49:44.787321 | 2017-12-22T12:25:03 | 2017-12-22T12:25:03 | 115,113,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # Import celery.
# Konieczne jest zaimportowanie modułu celery w pliku
# __init__.py projektu, aby mieć pewność,
# że zostanie wczytany podczas uruchamiania Django.
from .celery import app as celery_app | [
"mac.bih@wp.pl"
] | mac.bih@wp.pl |
73da36fb856c2e81d8b4903cbe62c6b5394362b7 | b2b79cc61101ddf54959b15cf7d0887d114fb4e5 | /web/pgadmin/tools/debugger/tests/test_debugger_poll_result.py | a19a968f21c3e24f8698a1fbe2cee3a5e4d98c57 | [
"PostgreSQL"
] | permissive | 99Percent/pgadmin4 | 8afe737eb2ec1400ab034ad1d8a4f7c4ba4c35c8 | 5e0c113c7bc4ffefbec569e7ca5416d9acf9dd8a | refs/heads/master | 2021-10-10T20:08:48.321551 | 2021-09-30T12:51:43 | 2021-09-30T12:51:43 | 165,702,958 | 0 | 0 | NOASSERTION | 2019-01-14T17:18:40 | 2019-01-14T17:18:39 | null | UTF-8 | Python | false | false | 3,016 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2021, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import json
from... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
8de46a477f2b4ba26e46c99e2c0cf70696d64f32 | 1310ca784c1b0b9238f2407eb59d0704b8ae5a08 | /NextGen/circuitpython/adafruit-circuitpython-bundle-6.x-mpy-20201114/examples/gps_echotest.py | 326255efd4551edee0ab37c713ecdbe28cbe8600 | [] | no_license | RyannDaGreat/LightWave | 6b89838bfd48dba010eb5229b84b206be4e8ccbb | d055b0c01b01b3795d9e6c28b6b70f969893ed97 | refs/heads/master | 2023-07-20T08:23:47.526629 | 2023-07-18T00:25:02 | 2023-07-18T00:25:02 | 123,113,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # Simple GPS module demonstration.
# Will print NMEA sentences received from the GPS, great for testing connection
# Uses the GPS to send some commands, then reads directly from the GPS
import time
import board
import busio
import adafruit_gps
# Create a serial connection for the GPS connection using default speed an... | [
"sqrtryan@gmail.com"
] | sqrtryan@gmail.com |
a02e37cb873e78b9f8c832b6479e5964babeccbb | 567123af2df15856e443f0202a1a44479bf77544 | /claf/model/multi_task/bert.py | 1245e11dd871a8db18c23ac61b7d1e7805677811 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | y1027/claf | 36d0d902dd06cbde868b8cdd9ebd9c7b4ff5d807 | 56422a8b0a91b9626425deeee5a57110b7b45605 | refs/heads/master | 2020-08-06T02:31:49.301180 | 2019-10-03T17:12:10 | 2019-10-03T17:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,776 | py |
from overrides import overrides
from pytorch_transformers import BertModel
import torch.nn as nn
from claf.data.data_handler import CachePath
from claf.decorator import register
from claf.model.base import ModelWithoutTokenEmbedder
from claf.model.multi_task.category import TaskCategory
from claf.model.multi_task.mix... | [
"humanbrain.djlee@gmail.com"
] | humanbrain.djlee@gmail.com |
d97e5381d0709cc8ce03fd994e5b6cbcae03fc18 | dfc2c18053b8e7576f88e7b2524d7ca3a8f47282 | /ch01/section1/37.py | c8e30da41f75a18dde4404f0de40fdaed2599207 | [] | no_license | Xoozi/tchomework | a6eed3bbf697ff12af8d42249ec58a139aed0c4c | 627c98b0b652ef20fd93025a17341bba76fbfce6 | refs/heads/master | 2021-01-23T21:18:15.793703 | 2018-10-21T11:05:55 | 2018-10-21T11:05:55 | 57,583,655 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | #磨光发动机气缸使之变窄到横截面积为9平方英寸之前, 需要知道它和标准的气缸直径x0=3.385英寸的偏差有多少.
#容许所要求的9平方英寸面积有0.01平方英寸以内的误差. 为求容许偏差, 设A(x) = pi*(x/2)**2
#求区间, 在该区间内所有的x都有|A(x) - 9| <= 0.01
#
# |A(x) - 9| <= 0.01
# => -0.01 <= A(x) - 9 <= 0.01
# => 8.99 <= pi*(x/2)**2 <= 9.01
# => 2*sqrt(8.99/pi)<=x<=2*sqrt(9.01/pi)
def g(x):
... | [
"wwfxtt@gmail.com"
] | wwfxtt@gmail.com |
716aba24b7c3bfb62f58316d5ba3598a3923dbdf | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/Overflow/_Learning/problems/problem_01_while_loop.py | 81d830d837ce843244290f0fe32399965dad1a0f | [
"MIT",
"Python-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 735 | py | # WHILE LOOP
#
# In this problem, write a function named "my_while_loop" that accepts an
# iterable of strings as a parameter and returns a new list with strings from
# the original list that are longer than five characters. The function must use
# a while loop in its implementation. The order of the strings in the new... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
2064722d83023f32a337a5d533cd2a04636219f4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2603/61106/286389.py | 35e5a9b32b98fc8534ed27e662e9aad73c7de7b4 | [] | 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 | 311 | py | ori=input()
nums=[ori[i] for i in range(1,len(ori),2)]
k=int(input())
if nums!=[]:
for i in range(len(nums)):
nums[i]=int(nums[i])
nums.sort()
result=[]
for i in range(len(nums)):
n=i+1
while n<len(nums):
result.append(nums[n]-nums[i])
n += 1
result.sort()
print(result[k-1]) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c678dfd352b74976c8f6fa986563092b5def9b0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03327/s297227585.py | a516928e563406e47dec9baa926559fd14bc992f | [] | 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 | 204 | py | import sys
def input(): return sys.stdin.readline().rstrip()
def main():
N = int(input())
if N >= 1000:
print('ABD')
else:
print('ABC')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e644614e732ce14a452280dc39f0a321b105376b | 05f9f4d091c1b79d524c3fc047b5209bbb27156c | /acoustics/standards/iso_9613_1_1993.py | 0f84ca937a3406bd677d90ad7be901d809aeb104 | [
"BSD-3-Clause",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | miftanurfarid/python-acoustics | 2c73b39c3e98690d313e07b7829561074cc76bbd | 03aacc0f36c83e19d33c9989d91048af1ab752e6 | refs/heads/master | 2020-03-11T14:05:55.396964 | 2018-04-08T11:21:23 | 2018-04-08T11:21:23 | 130,044,011 | 1 | 0 | null | 2018-04-18T10:12:53 | 2018-04-18T10:12:53 | null | UTF-8 | Python | false | false | 4,931 | py | """
ISO 9613-1:1993
===============
ISO 9613-1:1993 specifies an analytical method of calculating the attenuation of sound
as a result of atmospheric absorption for a variety of meteorological conditions.
"""
import numpy as np
SOUNDSPEED = 343.2
"""
Speed of sound.
"""
REFERENCE_TEMPERATURE = 293.15
"""
Referen... | [
"fridh@fridh.nl"
] | fridh@fridh.nl |
b94f13c430ff4e7bd671e0187dee59046813b3de | ae13e905feec06f2f94245481b31fcb605e485de | /practice/algorithms/implementation/the_bomberman_game.py | f731627a64180310dd3e39cc0f18d333133626d3 | [] | no_license | feadoor/hackerrank | e7a84bb20c01d420a3c37f0a7e5176ab0aac6604 | 8fa88b71d37ae83b0826a76499c9e69f947d0aeb | refs/heads/master | 2021-05-04T17:28:27.089671 | 2019-02-21T17:25:34 | 2019-02-21T17:25:34 | 120,271,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/local/bin/pypy
BOMB = 'O'
EMPTY = '.'
def neighbours(x, y):
return [(x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1)]
def next_value(board, x, y):
if board[x][y] == 0:
return 0
elif any(board[n_x][n_y] == 1 for n_x, n_y in neighbours(x, y) if 0 <= n_x < len(board) and 0 <= n_y < len(board[n_... | [
"sam.capplemanlynes@gmail.com"
] | sam.capplemanlynes@gmail.com |
2fb73694654fc6905a84a964a772f70523ec131d | ecb7e109a62f6a2a130e3320ed1fb580ba4fc2de | /reference-code/lambda/cm-premembers-setting/github-to-create_CodePipeline/action_fail_notification.py | d324d7ae420ac5b8b6c9cb52538ab48ac8bae923 | [] | no_license | nisheeth84/prjs_sample | df732bc1eb58bc4fd4da6e76e6d59a2e81f53204 | 3fb10823ca4c0eb3cd92bcd2d5d4abc8d59436d9 | refs/heads/master | 2022-12-25T22:44:14.767803 | 2020-10-07T14:55:52 | 2020-10-07T14:55:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | import logging
import os
import json
import boto3
logger = logging.getLogger()
log_level = os.getenv('LOG_LEVEL', default='INFO')
logger.setLevel(log_level)
lambda_client = None
def lambda_handler(event, context):
detail = event['detail']
state = detail['state']
logger.debug("Received event: " + json.dum... | [
"phamkhachoabk@gmail.com"
] | phamkhachoabk@gmail.com |
3a80c05f6704a2de17aa722bded43b906b10f096 | 7f7213fe407f252b2323025c9b9e381a73474b7d | /analysis/summarize_results.py | 45276c2dda5e706f9078f707749e49e0772a3185 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 1,104 | py | import os
import numpy as np
import pandas as pd
import pdb
trials = ['a', 'b','c']
constants = ['50', '100', '125']
#constants = ['250', '500', '1000']
angles = ['0']
#angles = ['0', '15', '30', '45']
df = pd.DataFrame()
curr_dir = os.getcwd()
for k in constants:
for a in angles:
all_forces = []
... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
048e94b3a99ff1def1070784c1b9e04fbe6136a7 | 46684dd05ac738cdf99a63ab30b1b30544564098 | /math300/test.py | 6c0d76af421b583c97d8cb75a956801886ba8523 | [
"MIT"
] | permissive | johnnydevriese/wsu_courses | ed0e0a4c98defaea1b4dc467395101504ff075fc | b55efd501c2d8f0651891f422a486e32533f5aa0 | refs/heads/master | 2020-12-02T22:23:03.263500 | 2017-07-03T15:16:24 | 2017-07-03T15:16:24 | 96,124,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #done on 12.15.15 an interesting way to make a 21 x 2 matrix.
from numpy import *
#~
#~ a = 2 * ones(21)
#~
#~ b = arange(1,19 + 1, 2)
#~
#~ c = zeros(21)
#~
#~ for i in arange(len(b)):
#~ c[i] = b[i]
#~
#~ z = append(a,c).reshape(2,21)
#~
#~ z = transpose(z)
#~
#~ print z
#perhaps a more traditiona... | [
"johnnydevriese22@gmail.com"
] | johnnydevriese22@gmail.com |
312109917f757ebdf6b55ea0418859c583dbe428 | 8fc7fa4f10691d44563df09b093ff493b7d02e28 | /eoxserver/services/opensearch/v11/search.py | 6780066fa1764ba83bf0b0abd8ee36575312c4b6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | constantinius/eoxserver_combined_merge_ours | f023126aefc83bd2e2dcb07bbc5028a2d3147628 | 0bc751fe4780d9095892b5be4baf11dcde2126a5 | refs/heads/master | 2021-01-17T06:39:10.461762 | 2016-04-15T14:32:11 | 2016-04-15T14:32:11 | 56,326,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | #-------------------------------------------------------------------------------
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2015 EOX IT Services GmbH
#
# Permission... | [
"fabian.schindler.strauss@gmail.com"
] | fabian.schindler.strauss@gmail.com |
f6a5603118608acf248d8651056781609c4b02bb | b872ccff0c2f79886c0136b32da5f04cb8d3276c | /etce/testdirectory.py | b30f5feb64f4abd34cd4a1e23ebbf7b4ed9aa8a5 | [] | no_license | prj8121/python-etce | 9c22b3a182f103f46b1d865d13ded277482e4a34 | bbd74a65280a09f3edc05457961b8c51ec009165 | refs/heads/master | 2022-11-18T05:19:19.324966 | 2020-04-02T15:15:47 | 2020-04-02T15:15:47 | 276,674,792 | 0 | 0 | null | 2020-07-02T14:57:07 | 2020-07-02T14:57:06 | null | UTF-8 | Python | false | false | 8,510 | py | #
# Copyright (c) 2014-2018 - Adjacent Link LLC, Bridgewater, New Jersey
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# ... | [
"eschreiber@adjacentlink.com"
] | eschreiber@adjacentlink.com |
c1dd32cf1fe3d0358e1900c84b2d4c2300278ace | 88e286474dd82c7e2e94dc4e9c7b729ef5a3a8ba | /票据打印配置修改.py | 7f5f081e07b02c6bcb340b9f970bf27c26aa02df | [] | no_license | FengZiQ/sp_gui | d02d06e94d9980c6f763039edc2de0272cb18a86 | f9c60f26f9d0dccc5c363cb422179152456e1d01 | refs/heads/master | 2020-03-28T05:04:12.877598 | 2018-12-18T11:03:37 | 2018-12-18T11:03:37 | 147,754,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | # coding=utf-8
from gui_test_tool import *
from dataForTest import *
tool = GUITestTool()
def modify_receipt_config():
print_type = ['默认', '追加', '覆盖']
# 前置条件
add_receipt_printer_config('票据打印配置modifyTest')
# 点击支付配置管理标签
tool.click_action(
'//ul[@id="leftNav"]/li[4]',
'支付配置管理标签'
... | [
"feng1025352529@qq.com"
] | feng1025352529@qq.com |
9cdfdaedfc70944b3269a00af13bd9deefe4deaf | 9f9a9413e43d8c45f700b015cb6de664e5115c04 | /0x04-python-more_data_structures/100-weight_average.py | b406ee9ee1dc8637f9719921cecce5dcc67e88f5 | [] | no_license | JennyHadir/holbertonschool-higher_level_programming | d2bfc733800bee7fcca10a408a2d744af40b0d4b | c826d364665e40173e453048dce1ea5cb97b4075 | refs/heads/master | 2023-04-26T19:29:17.370132 | 2021-05-17T23:04:32 | 2021-05-17T23:04:32 | 319,390,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/python3
def weight_average(my_list=[]):
if my_list:
weight = 0
score = 0
for i in my_list:
score += i[1]
weight += i[0] * i[1]
return weight / score
return 0
| [
"hadirjenny@hotmail.com"
] | hadirjenny@hotmail.com |
9af0273121518eccb7ee6a791785c8e7a6ea7a41 | a74b7a424159638508e4083aee927e6fca1e31ad | /vlbdiffwave/impl.py | 5bcf51d38183b552386c6a5e5e1dfb906d318bf7 | [
"MIT"
] | permissive | WN1695173791/jax-variational-diffwave | 77f17c44e6df9086754d15ad314a4a6cc58aff8f | 780f615d76cff6f6210d5db0b9790961fc716905 | refs/heads/main | 2023-07-15T14:58:27.550266 | 2021-09-06T15:07:22 | 2021-09-06T15:07:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,731 | py | from typing import Optional, Tuple
import flax
import flax.linen as nn
import jax.numpy as jnp
from .config import Config
from .diffwave import DiffWave
from .logsnr import LogSNR
class VLBDiffWave:
"""Model definition of VLB-Diffwave.
"""
def __init__(self, config: Config):
"""Initializer.
... | [
"revsic99@gmail.com"
] | revsic99@gmail.com |
5bdf7a1ae800e202382e3d7d0b820fccc7907387 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/docopt-docopts/allPythonContent.py | 27cda325177a0b927e2fbf1d1044a93b41b333f8 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | __FILENAME__ = language_agnostic_tester
#! /usr/bin/env python2
import sys, json, re, os
from subprocess import Popen, PIPE, STDOUT
fixtures = open(os.path.join(os.path.dirname(__file__), 'testcases.docopt'), 'r').read()
# remove comments
fixtures = re.sub('#.*$', '', fixtures, flags=re.M)
testee = (sys.ar... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
768adacbe51e4ff930528aa640c60e9bac3172af | eee480b75e1454832a07bd02ab4ff5058aa8033e | /db/models.py | 8f68f729ef071c222eeabe329b133a153718b6b2 | [] | no_license | 545314690/wechat-spider | 92dac44f8559ab0347b681945541f0b42be994d5 | fe5cbac4aaedf32d974a01ab5fbb3fa33332c91d | refs/heads/master | 2021-01-01T17:45:21.451910 | 2017-07-27T09:40:44 | 2017-07-27T09:40:44 | 98,148,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | # -*-coding:utf-8 -*-
from sqlalchemy import Column, Integer, String, Boolean, INTEGER, DateTime
from db.basic_db import Base, engine
from db.tables import *
class LoginInfo(Base):
# 登录账号表 login_info
__tablename__ = 'login_info'
id = Column(INTEGER, primary_key=True, autoincrement=True)
username = Co... | [
"“545314690@qq.com”"
] | “545314690@qq.com” |
216a2b17f45760c653834956d1a4df19aa73e94e | f9aa857868a2027eb6738e16318e84e2320c2947 | /cookiecutter_django_test/contrib/sites/migrations/0003_set_site_domain_and_name.py | a36c0ace8376e9f56496ffe0c5d8e0ca91082f3e | [
"MIT"
] | permissive | imsure/cookiecutter-django-test | 44ecda7cb9449dcf78dc878a73f8eb9ba9d89f1b | 853a46e6410fc9814cadbef828987f2c5b24fe4d | refs/heads/master | 2020-03-12T18:55:37.943646 | 2018-04-24T00:29:23 | 2018-04-24T00:29:23 | 130,773,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | """
To understand why this file is here, please read:
http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django
"""
from django.conf import settings
from django.db import migrations
def update_site_forward(apps, schema_editor):
"""Set site d... | [
"imsure95@gmail.com"
] | imsure95@gmail.com |
9929059b4cc7d12192264b8307b4f37220bc83da | a1728a475b8c4e64a3a629d9c1f43294999eb769 | /oTree/__temp_migrations/slider_post/0011_auto_20210123_2211.py | e7115dbec75e88987bb50c95d1e413510375e0ba | [] | no_license | Tslilon/experimental_instruments_labor_project | 2fff71db7453b1d455c9f2984e899f6b3f92e5f2 | 489b85eacf145eec03999bd416c4394b4a4bbafa | refs/heads/master | 2023-03-19T02:21:06.279317 | 2021-02-23T11:49:38 | 2021-02-23T11:49:38 | 325,325,614 | 0 | 0 | null | 2021-02-23T11:49:39 | 2020-12-29T15:46:15 | Python | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.12 on 2021-01-24 06:11
from django.db import migrations
import otree.db.models
class Migration(migrations.Migration):
dependencies = [
('slider_post', '0010_auto_20210123_2210'),
]
operations = [
migrations.AlterField(
model_name='player',
... | [
"chenxjiang@berkeley.edu"
] | chenxjiang@berkeley.edu |
82ae6ef5b855de4f23fc4565b954b99b47490386 | 26bc83ba9481257be8ec47ea032c554feb6cb2ba | /setup.py | 99a83a781060b2cdaa43e2d333a0ee84779b7231 | [] | no_license | irachex/zkpython | e8121e20b63db07dcc6e5ed2fcde94a0a1213a9b | a9a87747df9d316c2b26035f928900b72b9deb41 | refs/heads/master | 2021-01-23T12:16:43.143916 | 2014-10-26T14:22:04 | 2014-10-26T14:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not ... | [
"irachex@gmail.com"
] | irachex@gmail.com |
6f9b320f93d5f90a21da0f426a8d2714b87c4352 | 70433b90af33ed71fc9ab6c7ba15fe1b1ec52a90 | /tests/validation/operation/test_produces_validation.py | 5c5b9effd418860017904483a3b07bee22867320 | [
"MIT"
] | permissive | dhilton/flex | f6b54ae2c4c28e760fdcc02e00b7a4df420fba99 | e23e74e246f4ad89c8d8971b029dcdd2fa642526 | refs/heads/master | 2020-04-05T23:10:53.512712 | 2014-11-10T04:35:48 | 2014-11-10T04:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import pytest
from flex.validation.operation import (
construct_operation_validators,
validate_operation,
)
from tests.factories import (
ResponseFactory,
SchemaFactory,
)
#
# produces mimetype validation.
#
def test_produces_validation_valid_mimetype_from_global_definition():
"""
Test that... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
02883ec23d9f5f21ace7da9c6f6be38f2867bfea | e5889e31869f5c00335b6fefb48da4e79bea1801 | /week_4/01_02_delete_max_heap.py | 1a584705e1ab3e6092ff5f929e884704a774cd48 | [] | no_license | HoChangSUNG/sparta_algorithm | 2f4d9767eec1c9e3c17e420be0bc905713bbdb8c | 1572027a6278c5ba6b96f426c904d8739ae3649d | refs/heads/main | 2023-02-02T22:47:22.449648 | 2020-12-21T06:56:20 | 2020-12-21T06:56:20 | 323,255,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | class MaxHeap:
def __init__(self):
self.items = [None]
def insert(self, value):
self.items.append(value)
cur_index = len(self.items) - 1
while cur_index > 1: # cur_index 가 1이 되면 정상을 찍은거라 다른 것과 비교 안하셔도 됩니다!
parent_index = cur_index // 2
if self.items[par... | [
"love47024702@naver.com"
] | love47024702@naver.com |
fb1adf613d3697bc017da6571a975c14f74e45d9 | 76a01339f7ca19536a07d66e18ff427762157a2a | /codeforces/Python/longestuncommensubsequence.py | 7e25e9cb507cd7c7aef28c3e02f0708e98559392 | [] | no_license | shaarangg/CP-codes | 75f99530921a380b93d8473a2f2a588dc35b0beb | 94fc49d0f20c02da69f23c74e26c974dfe122b2f | refs/heads/main | 2023-07-19T21:31:40.011853 | 2021-09-07T05:22:28 | 2021-09-07T05:22:28 | 332,644,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | a = input()
b = input()
if(a!=b):
print(len(a) if len(a)>len(b) else len(b))
else:
print(-1) | [
"shaaranggsingh@gmail.com"
] | shaaranggsingh@gmail.com |
c38888fe571c3fb10c56219cfac5fd6893db8fc7 | 5e9576c368e98927e2965bd2fb23bd35d9993d69 | /featuretools/primitives/standard/aggregation/max_min_delta.py | 74dfcaafb3e71b4d1466672426d6f42b7b5f9afa | [
"BSD-3-Clause"
] | permissive | alteryx/featuretools | c6e319e063e8e84e7684bf232376f95dc5272160 | c284c2d27a95b81e0bae913ac90df2b02c8f3b37 | refs/heads/main | 2023-08-25T12:21:33.945418 | 2023-08-23T16:30:25 | 2023-08-23T16:30:25 | 102,908,804 | 1,783 | 201 | BSD-3-Clause | 2023-09-07T18:53:19 | 2017-09-08T22:15:17 | Python | UTF-8 | Python | false | false | 1,126 | py | from woodwork.column_schema import ColumnSchema
from featuretools.primitives.base import AggregationPrimitive
class MaxMinDelta(AggregationPrimitive):
"""Determines the difference between the max and min value.
Args:
skipna (bool): Determines if to use NA/null values.
Defaults to True to... | [
"noreply@github.com"
] | alteryx.noreply@github.com |
245c4419bddb2b9c46b6e55d7a35a88d77a201d3 | 4c19eac6e53b2c1230257508370ad60c8d83d6a7 | /dxm/lib/DxEngine/DxMaskingEngine.py | 6311f914b659004df881526cf892913c889e0724 | [
"Apache-2.0"
] | permissive | rakesh-roshan/dxm-toolkit | 2c7741c8a02952de1c23715eadb515d84fcaf954 | 2c6e6ebf8615526501767844edf06fb74d878f25 | refs/heads/master | 2020-04-27T19:05:11.293818 | 2019-03-01T13:49:34 | 2019-03-01T13:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,690 | 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 under ... | [
"marcin@delphix.com"
] | marcin@delphix.com |
abc51ee3da4656a2513b1a39da9a2afc1f616f46 | 349893015430768ac3ad0f8ca6fa8007c2e88f65 | /test_appium/cases/test_contact.py | 4501706e8731a6ca095ba7bf88622cfeffc3cc02 | [] | no_license | github653224/HogwartsLG7 | 226aa5640d1862b26f2ddc938c84b50a9e49c6a3 | 17b20d72bab376ce85d76d7ee0cab03f4e176a01 | refs/heads/main | 2023-06-07T08:33:47.293126 | 2021-06-29T14:07:41 | 2021-06-29T14:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | """
__author__ = 'hogwarts_xixi'
__time__ = '2021/4/16 8:48 下午'
"""
from time import sleep
import sys
sys.path.append('..')
from test_appium.pages.app import App
class TestContact:
def setup_class(self):
# 打开应用,进入到首页
self.app = App()
def setup(self):
self.main = self.app.start().got... | [
"xujuan418974188@163.com"
] | xujuan418974188@163.com |
855f056f1316e0015b0e1b25a1ec3771972c8647 | a46e23e8266f7569e059f4df0cc22f3752965c77 | /slack/leetcode-challenge-alarm.py | 1c5b4c28f593f1572146cae2130200e124d8e0ef | [] | no_license | jhy979/all-solved-club | 758ae94f8b144deb8af0eabfd8445445ea43f182 | cc1494b85bc7600cf242cf6ab1a7f5e78698a126 | refs/heads/main | 2023-07-15T22:19:11.084766 | 2021-08-24T03:15:58 | 2021-08-24T03:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import os
from slack_sdk.webhook import WebhookClient
url = os.environ.get("SLACK_WEBHOOK_URL")
webhook = WebhookClient(url)
response = webhook.send(text="LeetCode에서 새로운 챌린지 문제가 출제되었습니다. - https://leetcode.com")
assert response.status_code == 200
assert response.body == "ok"
| [
"jwp0530@gmail.com"
] | jwp0530@gmail.com |
16d50188284e895addc4ad7bb1afa19b64421511 | b09ea1e78e1a1f5d053817af35599c9464e755fe | /filter_utterances.py | cce497ee940a03394c4e60d4ae149f586b515e8e | [] | no_license | aeoling/reddit_tools | 46f0e321bf72889c82b100eae5418ac7a71b9701 | f7fa9f32e547ddb529d55017a7784d00542c3ca0 | refs/heads/master | 2021-06-13T17:57:40.606586 | 2017-03-10T01:34:43 | 2017-03-10T01:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | from argparse import ArgumentParser
from os import path, makedirs, listdir
from collections import defaultdict
import numpy as np
from nltk import word_tokenize
MIN_CONTENT_WORD_FREQUENCY = 10
def load_questions(in_stream):
result = set([])
for line in in_stream:
result.add(line.strip().lower())
... | [
"ishalyminov@gmail.com"
] | ishalyminov@gmail.com |
9884cd78a96910ea51c7b7436511c56069946ac6 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/message/attachment/fields.py | a18f011507b4f126fe1cfce5f33d927754dca5ce | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 3,683 | py | __all__ = ()
from ...field_parsers import (
bool_parser_factory, entity_id_parser_factory, flag_parser_factory, float_parser_factory,
force_string_parser_factory, int_parser_factory, nullable_string_parser_factory
)
from ...field_putters import (
bool_optional_putter_factory, entity_id_putter_factory, flag... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
13f67ec412e8d337686f43866268cea66429a4fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03634/s109235916.py | 458b74a4f790d735865b22558bf7c8d196e50401 | [] | 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 | 1,326 | py | from collections import deque
def bfs(start, g, visited):
q = deque([])
k_neibs = g[start]
visited[start] = (0,start)
for neib, dist in k_neibs:
q.append((neib, neib)) # node, root parent (k neib)
visited[neib] = (dist, neib) # dist, root parent (k neib)
while q:
curr_node, ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c2fc1b0031863d92f615f5df5b863e07c4964440 | 0b2e54f19875e51519950c06c6110a8144d85cb4 | /python_textbook_questions/Graph/graph_dfs__adjList_defaultdictlist.py | 71c4e40cbb2c117d9fd4200802711d1817811a91 | [] | no_license | hemangbehl/Data-Structures-Algorithms_practice | b1f5d5995d4e02de2d3807e18ac0639b900d35af | e125ebd42dd4083701b13a319c368f4a622ca669 | refs/heads/master | 2020-08-06T09:03:42.253388 | 2020-07-10T23:55:39 | 2020-07-10T23:55:39 | 212,916,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.V = vertices
def add_edge(self, src, dest):
self.graph[src].append(dest)
def printAllEdges(self):
print("all edges:")
for i in self.graph:
... | [
"44247931+hemangbehl@users.noreply.github.com"
] | 44247931+hemangbehl@users.noreply.github.com |
a1961d38a64e8fefe13f6f62bcd6d0ee1dd43572 | 101b0ae046501b9eb0990be2d86e5b5538aacd7a | /src/pcg/pcg/grids/square.py | f0f4c09fd1f7fa1e8b04ab8a2b3e8923c0ed3d3c | [
"BSD-3-Clause"
] | permissive | Tiendil/pcg-python | ebd12dd7abba43d758c746dad8057130f61ac720 | 02b54932bdec4a13c179ebeee76fc8ed1b8eba34 | refs/heads/master | 2022-12-15T05:32:02.970053 | 2020-09-15T10:47:18 | 2020-09-15T10:47:18 | 263,430,688 | 2 | 0 | null | 2020-09-15T10:41:29 | 2020-05-12T19:20:30 | Python | UTF-8 | Python | false | false | 3,575 | py | import math
import dataclasses
from PIL import Image
from pcg import colors
from pcg import drawer
from pcg.topologies import BaseArea
from pcg.geometry import Point, BoundingBox
@dataclasses.dataclass(frozen=True, order=True)
class Cell:
__slots__ = ('x', 'y')
x: int
y: int
def __add__(self, cell... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
4528d0bdfaac5df372637ad0bc181a7caac37261 | d35296adaf3942bdd402a4fc146629c6cdf516c0 | /pymatgen/command_line/__init__.py | c3958c2df13754bdc0753e8387e4ca97441be247 | [
"MIT"
] | permissive | leicheng/pymatgen | 76de5d9f09a16a2e1163e363e5a5602ce1907e2c | 76fb4f3f38a3dd54138f793afaf38bbadbf16aa3 | refs/heads/master | 2020-12-24T21:27:13.990717 | 2013-08-23T21:57:26 | 2013-08-23T21:57:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | """
This package contains various command line interfaces to programs used in
pymatgen that do not have Python equivalents.
""" | [
"shyuep@gmail.com"
] | shyuep@gmail.com |
b8d13be6eb295ce9d73ae66e5400dde099535a2c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03946/s886596927.py | 8ddaedd848e91074fcbb5e84cb91d83065d340d1 | [] | 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 | 297 | py | n, t = map(int, input().split())
ns = list(map(int, input().split()))
min_n = 10 ** 10
max_n = 0
max_l = []
for i in ns[::-1]:
max_n = max(max_n, i)
max_l.append(max_n)
max_l.reverse()
l = []
for i in range(n):
l.append(ns[i]-min_n)
min_n = min(min_n, ns[i])
print(l.count(max(l))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9e4820dd94bd2272bd3c98ea0ed4ad3f032a4622 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=0.8_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=25/params.py | fff0f4ebe57c15d0241b34e8b819f2e1e8e6ba77 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.602405',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.8',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 25,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
11d569aa09d84966613f28d3980d5e2949f5b07c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/justdark_dml/dml-master/dml/CLUSTER/kmeans.py | 67e0ce8d2b50cfe1a715e5a08df442b1f2ffb503 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,095 | py | from __future__ import division
import numpy as np
import scipy as sp
import pylab as py
from scipy.cluster.vq import kmeans2,whiten
'''
the scipy contain a kmeans,so there is no need to write one
bu for the convenience of using,I pack it with my code
I don't know how to translate the input space to whitened space
... | [
"659338505@qq.com"
] | 659338505@qq.com |
2fc943c950de622134f2630688a4ea910d09ef57 | 918963bcb425328076ce17400966378bd66f5e7e | /python-openshift-release/openshift_release/models/com_github_vfreex_release_apiserver_pkg_apis_art_v1alpha1_build_list.py | 9de3643f43abfbf8f53738b297933a91c21d3ece | [] | no_license | vfreex/release-apiserver | 884d5ce6c1ef936fc746b668884e8f97a27305d8 | a6e1df25a38f808fc194397fcd63628a999fed95 | refs/heads/master | 2023-03-09T19:05:38.011434 | 2020-05-21T09:25:47 | 2020-05-21T09:25:47 | 247,671,819 | 2 | 0 | null | 2023-02-24T23:14:38 | 2020-03-16T10:20:42 | Go | UTF-8 | Python | false | false | 7,822 | py | # coding: utf-8
"""
Api
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from openshift... | [
"yuxzhu@redhat.com"
] | yuxzhu@redhat.com |
5895a8dbb45ecb20dda14f898b76342ed79c1685 | a73f6f964bd903ab75e1d2cf5010d641b86be520 | /deeplearning/LSTM_OnlyPatch/visualization.py | 4a7f22d50f7e5bd08b04e2f306cd03a1fbb9d080 | [] | no_license | UpCoder/MICCAI2018 | 457fd1aca1841b1b2e39c242af7b3a7945da4d39 | a09a44def100ad0d991beb5265cdae1b7fecd297 | refs/heads/master | 2021-05-09T02:43:21.636074 | 2018-02-08T14:00:04 | 2018-02-08T14:00:04 | 119,219,492 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,387 | py | # -*- coding=utf-8 -*-
import tensorflow as tf
import os
import sys
from load_liver_density import load_raw_liver_density
import numpy as np
from resnet import inference_small
from deeplearning.LSTM.Config import Config as net_config
from utils.Tools import shuffle_image_label, read_mhd_image, get_boundingbox, convert2... | [
"546043882@qq.com"
] | 546043882@qq.com |
c6444febe09bdfdf0db44534477486ada7928f63 | 286c7b7dd9bd48c73fd94f8e89bde99a8d3f74c5 | /modelscript/interfaces/modelc/execution.py | ac1e9752664b2e49d14a9f0f73e4a059fc6b1343 | [
"MIT"
] | permissive | ScribesZone/ModelScript | e7738471eff24a74ee59ec88d8b66a81aae16cdc | a36be1047283f2e470dc2dd4353f2a714377bb7d | refs/heads/master | 2023-03-18T02:43:57.953318 | 2021-03-08T15:26:40 | 2021-03-08T15:26:40 | 31,960,218 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,599 | py | # coding=utf-8
""""""
__all__ = (
'ExecutionContext'
)
import os
from typing import List, Any, Dict, Optional, ClassVar
from collections import OrderedDict
import argparse
# initialize the megamodel with metamodels and scripts
from modelscript.base.files import filesInTree
from modelscript.interfaces.modelc.opt... | [
"escribis@users.noreply.github.com"
] | escribis@users.noreply.github.com |
a0b3f3473e96a829362eb4a6e2795c317ea237ae | ae7ba9c83692cfcb39e95483d84610715930fe9e | /bmw9t/nltk/ch_three/34.py | 887616cb690d8b5f25ba28819605a36c6f85e6a4 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # ◑ Write code to convert nationality adjectives like Canadian and Australian to their corresponding nouns Canada and Australia (see http://en.wikipedia.org/wiki/List_of_adjectival_forms_of_place_names).
import re
import nltk
import pycountry
countries = [country.name for country in pycountry.countries]
def conve... | [
"xenron@outlook.com"
] | xenron@outlook.com |
a87c4be49b0e91e03f99718dedf309a616007fbe | c1d5ca6194e4cf1bf3d3a3dfe758a95dfb87a8bc | /Python-Itertools-Itertools_Combinations_with_replacement.py | ee8e460ebbc0f7edab0aae542397cea4e79f5c83 | [] | no_license | maheshkrishnagopal/HackerRankSolutions | 6924b9ea92f86cab0885016482e08e5b4f801dad | ca16aa8fe726e4a9dac149d407cfde3620cdf96a | refs/heads/master | 2020-08-02T10:51:46.568749 | 2019-06-21T06:15:15 | 2019-06-21T06:15:15 | 211,324,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # itertools.combinations_with_replacement(iterable, r)
# This tool returns length subsequences of elements from the input iterable allowing individual elements to be repeated more than once.
# Combinations are emitted in lexicographic sorted order. So, if the input iterable is sorted, the combination tuples will be ... | [
"noreply@github.com"
] | maheshkrishnagopal.noreply@github.com |
ae2420c44c43955f3134b17593b131ef1ca3bda9 | 9522d6962376dccf073f59e447ce20c993dff5f2 | /src/api/views/articles.py | a66c0bcc5d9f03bb49410ea4f65f1accfc9292bf | [] | no_license | bolekhan1508/django_intro | 6f51085905306989f3fc86c72e01b752d1917d4e | 147bbeef2dc3f3c93771f757b44689a4103bf618 | refs/heads/master | 2022-10-30T09:06:46.476738 | 2020-06-18T10:02:21 | 2020-06-18T10:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import generics, mixins
from api.serializers.v1.article import ArticleSerializer, ArticleModelSerializer
from apps.articles.models import Article
class ArticleApiView(APIView):
... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
209938778c9851b71332d8689c820720afece9d7 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Cars_for_TensorFlow/automl/vega/algorithms/nas/sm_nas/smnas_trainer_callback.py | 8cfff6490cdcbc92ef01f25108da398c4f8e260f | [
"Apache-2.0",
"MIT"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 5,125 | py | """Trainer for SMNas."""
import logging
import os
import mmcv
import torch
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from vega.core.trainer.callbacks import Callback
from vega.core.common.class_factory import ClassFactory, ClassType
from vega.core.common.file_ops import FileOps
@Cla... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
443d05667fa143590ce4377290bb9f55e10a6f94 | 70433b90af33ed71fc9ab6c7ba15fe1b1ec52a90 | /tests/validation/response/test_request_parameter_validation.py | 4a1f85474beb93ce6a2064d0611a4370fa5a897c | [
"MIT"
] | permissive | dhilton/flex | f6b54ae2c4c28e760fdcc02e00b7a4df420fba99 | e23e74e246f4ad89c8d8971b029dcdd2fa642526 | refs/heads/master | 2020-04-05T23:10:53.512712 | 2014-11-10T04:35:48 | 2014-11-10T04:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import pytest
from flex.validation.response import (
validate_response,
)
from flex.error_messages import MESSAGES
from flex.constants import (
PATH,
QUERY,
STRING,
INTEGER,
)
from tests.factories import (
SchemaFactory,
ResponseFactory,
)
from tests.utils import assert_error_message_equal... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
b3b02cd1d0710b21962d9239ab72e90a5965cb4a | fdc0b72a3782a06952df4d723783dfa1bae65753 | /query_deluxe/models/query_deluxe.py | 4719ada08e5ea3a5d8cde3dbb94ce8c223b2cde6 | [] | no_license | Denbho/vendor_portal | 0878ad82bf3c40d38f6e123f6b25a358bfebce4f | 341a7ca77cbd310f3835d4b43de5012354a307c5 | refs/heads/main | 2023-04-19T21:26:56.115346 | 2021-05-17T04:16:53 | 2021-05-17T04:16:53 | 364,744,567 | 2 | 0 | null | 2021-05-06T04:34:51 | 2021-05-06T00:52:09 | Python | UTF-8 | Python | false | false | 3,605 | py | from odoo import api, fields, models, _
from odoo.exceptions import UserError
class QueryDeluxe(models.Model):
_name = "querydeluxe"
_description = "Postgres queries from Odoo interface"
_inherit = ['mail.thread', 'mail.activity.mixin']
tips = fields.Many2one('tipsqueries', string="Examples")
tip... | [
"dennisboysilva@gmail.com"
] | dennisboysilva@gmail.com |
0f9430ff53318e3f34a0143b0e232380dcbd2abf | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/swagger_client/models/access_permission.py | 10bb5782a236f4f03f16b8c20aed316153d4307e | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 7,327 | py | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | [
"noreply@github.com"
] | mrsrinivas.noreply@github.com |
0da4a4157e589feceb1276afdc4affd5eff7eb9c | 58ca273d2a9ee7f75b4bde3990513f74441143f0 | /Python/Cellular Automata and FSMs/Turing Machine 1.0.py | 253213abdb96bfc82a197a43c610dfd0947ce9bc | [] | no_license | Al153/Programming | 6db4b3c9d34747e1248aed2b0ee7fb7a35cef8d2 | 26de0b5607c6329bed2d6454090f00b098bc837f | refs/heads/master | 2021-04-12T04:13:00.945021 | 2019-07-12T17:47:08 | 2019-07-12T17:47:08 | 12,439,227 | 2 | 2 | null | 2014-08-13T19:21:46 | 2013-08-28T16:47:08 | Game Maker Language | UTF-8 | Python | false | false | 1,414 | py | #Turing machine I
def str_list(a):
b =[]
for i in range(len(a)):
c = a[i]
b.append (str(c))
return b
R,r = 1,1
L,l = -1,-1
HALT, Halt, halt = 'halt','halt','halt'
tape = [0,0,1,0,0,0,1,1,1,0,1,0,1,1,0,1,0,0,0]
program = (
([R,0,0],[R,1,1]),
... | [
"al.taylor1105@gmail.com"
] | al.taylor1105@gmail.com |
4d76334adfcd5e688e9261bdf384c7c71abf7550 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/_size.py | 0f201eeb18dd469693d4636f5f0b526e02c1f9b0 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 509 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="size", parent_name="pointcloud.hoverlabel.font", **kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly_name,
parent_name... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
577b554e54aa6ae7fe700e352c980e9e1a182971 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/oobepp.py | 2b9f0053741cbbccfaf4af8a3e6d001662078b1b | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,240 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
f7f6381a89dd15a2e03160b3ce89d1620f1846dd | 38382e23bf57eab86a4114b1c1096d0fc554f255 | /hazelcast/protocol/codec/map_remove_codec.py | 61850d484dc922697b6864594cb5d06d9be6f29c | [
"Apache-2.0"
] | permissive | carbonblack/hazelcast-python-client | e303c98dc724233376ab54270832bfd916426cea | b39bfaad138478e9a25c8a07f56626d542854d0c | refs/heads/gevent-3.12.3.1 | 2023-04-13T09:43:30.626269 | 2020-09-18T17:37:17 | 2020-09-18T17:37:17 | 110,181,474 | 3 | 1 | Apache-2.0 | 2020-12-01T17:45:42 | 2017-11-10T00:21:55 | Python | UTF-8 | Python | false | false | 1,196 | py | from hazelcast.serialization.bits import *
from hazelcast.protocol.client_message import ClientMessage
from hazelcast.protocol.codec.map_message_type import *
REQUEST_TYPE = MAP_REMOVE
RESPONSE_TYPE = 105
RETRYABLE = False
def calculate_size(name, key, thread_id):
""" Calculates the request payload size"""
d... | [
"arslanasim@gmail.com"
] | arslanasim@gmail.com |
e46b45ed01d05ceb5c23f7d30e315dacbc49ecb7 | 0c6990136391d72d3768d5a8a4a6919bd2f6ce6a | /0x16-api_advanced/2-recurse.py | 3de8da02f221e1d898e945b3e379747e81ed5132 | [] | no_license | s0m35h1t/holberton-system_engineering-devops | eef99bcf0297938a20470a72b12e9d603c6153ab | 3aea10e71c49b2a97c7ed02bfae2231fcede1a92 | refs/heads/master | 2020-07-24T02:51:02.279869 | 2020-05-28T22:33:31 | 2020-05-28T22:33:31 | 207,779,574 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | #!/usr/bin/python3
"""
Define: recurse function
"""
import requests
def recurse(subreddit, hot_list=[], after=None):
"""get a list of all hot post titles for a subreddit
Arguments:
subreddit, hot_list, after
Returns:
(list)
"""
if subreddit is None or type(subreddit) is not str:... | [
"adib.grouz@gmail.com"
] | adib.grouz@gmail.com |
2ae4c9670b68771f35af5acc4c3578cfdcd7c4ef | 478422b7042926f243a6dcfa90d9c8640e37ec83 | /PyAlgoTradeCN/01_SamplesFromPyAlgoTradeCN/stratlib/thrSMA_live.py | 952ac0bff90d021982742eb2af5b50f33f4102fc | [
"MIT"
] | permissive | JohnnyDankseed/midProjects | c70e4c19680af50c1a3869726cca4e9ea2cd4de7 | ed6086e74f68b1b89f725abe0b270e67cf8993a8 | refs/heads/master | 2021-06-03T05:24:32.691310 | 2016-07-25T17:13:04 | 2016-07-25T17:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 03 13:06:56 2015
@author: Eunice
"""
if __name__ == '__main__':
import sys
sys.path.append("..")
from pyalgotrade import bar
from pyalgotrade import plotter
# 以上模块仅测试用
from pyalgotrade.broker.fillstrategy import DefaultStrategy
from pyalgotrade.broke... | [
"upsea@upsea.cn"
] | upsea@upsea.cn |
4b6856479ab0e4d71379ae725d7527d7ddf1a2fc | 57d177fbd7d1bac2d97acaf081ff4fa75ed8ba53 | /chrome/chrome_tests_unit.gypi | f781cb2a902dfe5083da2252fc4354d5a8960c78 | [
"BSD-3-Clause"
] | permissive | venkatarajasekhar/chromium-42.0.2311.135 | 676241bb228810a892e3074968c1844d26d187df | 8d6b0c3b1481b2d4bf6ec75a08b686c55e06c707 | refs/heads/master | 2021-01-13T11:57:38.761197 | 2015-05-04T12:43:44 | 2015-05-11T12:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151,024 | gypi | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chrome_unit_tests_sources': [
'../components/autofill/content/renderer/test_password_autofill_agent.cc',
'../components/au... | [
"jonathan.anderson@ieee.org"
] | jonathan.anderson@ieee.org |
83ab91127cfd012ac6082da0ab35a359b9d36368 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2535/60647/283667.py | 9ed53c7cab12facc604a276ec4facf9ffd08731e | [] | 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 | 534 | py | list=input()
#如果从这个数开始,每一个数都比前一个大, 则加一
def num(a,list):
for i in range(len(list)):
if int(list[i])<int(a):
return False
return True
max=0
list1=[]
res=1
for i in range(len(list)):
if int(list[i])>=max:
if i==len(list)-1:
res+=1
else:
max=int(list[i... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b1e51b9190495225dce3a0f41da983608c9957cf | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/script/entities/Spawners/encounterSpawner.py | 4d5bb3f2a0bdebce0ec3d76e2e5daec0453da68f | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\script\entities\Spawners\encounterSpawner.py
from carbon.common.script.entities.Spawners.runtimeSpawner import RuntimeSpawner
class EncounterSpawner(RuntimeSpawner):
__guid__ = 'cef.EncounterSpawner'
| [
"le02005@163.com"
] | le02005@163.com |
d00a29e77a591aa61625df863e903de88e36ea7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03213/s787167232.py | 875bd7ad591f6ef540a3b100a4dfaa4648a17478 | [] | 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 | 1,419 | py | #template
def inputlist(): return [int(k) for k in input().split()]
#template
def factorization(n):
arr = []
temp = n
for i in range(2, int(-(-n**0.5//1))+1):
if temp%i==0:
cnt=0
while temp%i==0:
cnt+=1
temp //= i
arr.append([i, cn... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f0e99347c8713ef9c69c0f8b8fe5543221c7f17f | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /red_canary/komand_red_canary/actions/create_activity_monitor/action.py | 73804a2de359e817432441c993f2c0436e600e90 | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 954 | py | import komand
from .schema import CreateActivityMonitorInput, CreateActivityMonitorOutput
# Custom imports below
class CreateActivityMonitor(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name='create_activity_monitor',
description='Creates a new... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
24c96ba58b6631ab83d625248e7a2ea45d61df78 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7579.py | 716f080560f9fa34d2dda762ac1bf094da068a60 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,744 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9e061540c9d7fbc1ae4b26fd114478d3a32ab5c3 | 720513cd846de7c095a7b7e0b55eba958eda6b0d | /tests/__init__.py | 5cf60c16edddb1e1a5ad7df0390db1e3b1cd521f | [
"MIT"
] | permissive | yoophi/flask-login-sample | 77ca69e919be34be17040f7b7312f3d108e81ef1 | ae76e2c396896f99b1ba8add44c752d5abc22c01 | refs/heads/main | 2023-02-21T00:54:49.636312 | 2021-01-17T10:52:17 | 2021-01-17T10:52:17 | 330,368,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | """Unit test package for flask_login_sample."""
| [
"yoophi@gmail.com"
] | yoophi@gmail.com |
4b105aca2fcf5637f1b9c2ead4204f34d9ebdd74 | 9577a25e8dfca9d45942b739d9b24b1170dd8a0e | /groovebox/app.py | c115e123781f665800f5575ad0b3b7c5d53dac1a | [
"Apache-2.0"
] | permissive | ArchiveLabs/groovebox.org | 31a075dc55b2edc8d633b1bbe3e0017271cd808d | 62378347e7152eac68b9f6685e2e064f39c0a042 | refs/heads/master | 2021-01-18T02:08:49.728837 | 2015-10-22T00:01:33 | 2015-10-22T00:01:33 | 46,458,090 | 3 | 0 | null | 2015-11-19T01:05:43 | 2015-11-19T01:05:42 | CSS | UTF-8 | Python | false | false | 452 | py | #!/usr/bin/env python
# -*-coding: utf-8 -*-
"""
app.py
~~~~~~
:copyright: (c) 2015 by Mek
:license: see LICENSE for more details.
"""
from flask import Flask
from flask.ext.routing import router
import views
from configs import options
urls = ('/favicon.ico', views.Favicon,
'/<path:uri>', v... | [
"michael.karpeles@gmail.com"
] | michael.karpeles@gmail.com |
77d08e574058ab3ecbaf0bdad91021313c004b2e | 4bf12f7854548117cf3299ad5726e6b4e56584e3 | /apps/centro_de_custo/apps.py | 26bb8e89a4264031791121e394946cf176b8be5b | [] | no_license | fgomesc/csc_system | 4a12224b9129933f7713b9f75eb6fbf0ba06da5f | a1f5aacf96f9885a62c16fcb5700ca90c114cc50 | refs/heads/master | 2021-02-06T01:25:10.779361 | 2020-05-29T02:49:39 | 2020-05-29T02:49:39 | 243,857,987 | 0 | 1 | null | 2020-03-02T18:38:06 | 2020-02-28T21:31:12 | Python | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class CentroDeCustoConfig(AppConfig):
name = 'centro_de_custo'
| [
"fgomesc0586@gmail.com"
] | fgomesc0586@gmail.com |
cde792f26d913f7e253f942c3f79c8b50cd05070 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03665/s533070063.py | 36f4b83274d20d183a9103fb57d80ae329081a87 | [] | 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 | 510 | py | from math import factorial
def combinations_count(n, r):
return factorial(n) // (factorial(n - r) * factorial(r))
n,p = map(int,input().split())
a = list(map(int,input().split()))
eve = 0
odd = 0
for i in range(n):
if a[i]%2==0:
eve += 1
else:
odd += 1
eve_cb = 2**eve
odd_cb1 = 0
odd_cb2 = 0
if p==1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7fce737a3eeaedf3089c200e8c6e31876fe362e2 | a8547f73463eef517b98d1085430732f442c856e | /numpy/lib/tests/test_index_tricks.py | 82f66e0584f905f5f42299cd644fbaeb09cebd36 | [] | no_license | EnjoyLifeFund/macHighSierra-py36-pkgs | 63aece1b692225ee2fbb865200279d7ef88a1eca | 5668b5785296b314ea1321057420bcd077dba9ea | refs/heads/master | 2021-01-23T19:13:04.707152 | 2017-12-25T17:41:30 | 2017-12-25T17:41:30 | 102,808,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | ../../../../../../Cellar/numpy/1.13.3/lib/python3.6/site-packages/numpy/lib/tests/test_index_tricks.py | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
75b6137cb632fbf92961924ccf4818e4055d273e | 009d7750dc8636c31bd8da890bdf4be3770bfddd | /tmp/env/lib/python3.6/site-packages/tensorflow/_api/v1/compat/v1/train/experimental/__init__.py | c8952a33efd54ba1f9937e7d3a5c0e526da1988f | [
"Apache-2.0"
] | permissive | Nintendofan885/Detect_Cyberbullying_from_socialmedia | 241a5ae70405494ea5f7e393f9dac273ac2ff378 | 2f3d0a1eca0e3163565a17dcb35074e0808ed176 | refs/heads/master | 2022-11-25T18:56:27.253834 | 2020-08-03T13:16:16 | 2020-08-03T13:16:16 | 284,701,752 | 0 | 0 | NOASSERTION | 2020-08-03T13:02:06 | 2020-08-03T13:02:05 | null | UTF-8 | Python | false | false | 886 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.train.experimental namespace.
"""
from __future__ import print_function as _print_function
from tensorflow.python.training.experimental.loss_scale import DynamicLossSc... | [
"e.fatma.e@gmail.com"
] | e.fatma.e@gmail.com |
bb36f1b7530eb689956bb608eb5bdb38787a27cc | 7437ecc0d856adef02ae0a84b51dd1db04fc7c79 | /matplot.py | fab461f597050c2a5afd30669263b1e5976c235b | [] | no_license | samarthdubey46/Matplotlib | 06c6e2ac1abbd125c1a3d8c0fbe6e57dce0a032b | 31fe567938a5cb5183860b723747675b3741d56b | refs/heads/master | 2022-11-18T13:57:23.610309 | 2020-07-18T11:17:14 | 2020-07-18T11:17:14 | 280,640,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from matplotlib import pyplot as plt
plt.style.use('dark_background')
#DATA
ages_x = [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55]
py_dev_y = [20046, 17100, 20000, 24744, 30500, 37732, 41247, 45372, 488... | [
"samarthdubey46@gmail.com"
] | samarthdubey46@gmail.com |
3ecba571246a2f523371be75f8e62af98fbc9f0f | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/celllimited_gauss_linear_gradient_scheme.py | 29431b00d80dc5ff4282a783ef1a700d8721c50e | [
"MIT"
] | permissive | SimScaleGmbH/simscale-python-sdk | 4d9538d5efcadae718f12504fb2c7051bbe4b712 | 6fe410d676bf53df13c461cb0b3504278490a9bb | refs/heads/master | 2023-08-17T03:30:50.891887 | 2023-08-14T08:09:36 | 2023-08-14T08:09:36 | 331,949,105 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class CelllimitedGaussLinearGradientScheme(object):
"""NOTE: This cla... | [
"simscale"
] | simscale |
d5f4325d7d2975e5aee9e7aded230a775b329c7a | ce8644b929d07e5de2ac2155bd89bb33700d44e5 | /electrum_axe/gui/kivy/uix/dialogs/tx_dialog.py | 6dd37a10719b0756f9a2007516c084946fa6443b | [
"MIT"
] | permissive | Doyoks/electrum-axe | b40d88603eeec87014618b4ffc3b950488b00369 | 15f6c97f34fdf5518aaec472c3346532515929d4 | refs/heads/master | 2020-06-20T18:21:26.031098 | 2019-06-12T16:59:49 | 2019-06-12T16:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,252 | py | from datetime import datetime
from typing import NamedTuple, Callable
from kivy.app import App
from kivy.factory import Factory
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.uix.label import Label
from kivy.uix.dropdown import DropDown
from kivy.uix.but... | [
"slowdive@me.com"
] | slowdive@me.com |
e6c280ba64865152ee2282f92423a4eece3ec74a | 7f313668d00abcbf529858303635c7bf58964487 | /dashboard/dashboard/pinpoint/handlers/new.py | 48d096fbc3f8a6b7b307a66089dd92e04a893569 | [
"BSD-3-Clause"
] | permissive | flychen50/catapult | 70d4f16c313829f312ee76ed4c0d133885406282 | 52e67e75f6c2d0315d510a54a52ed29abe3d57f7 | refs/heads/master | 2022-03-07T00:54:11.401996 | 2021-05-12T17:31:28 | 2021-05-12T18:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,959 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import json
import logging
import shlex
from d... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7b91548e9141af53338a31e7040127830dbfe2eb | b5ac4c1f7906bf6722ffab8b04e1aacde632b9d5 | /server/server/view.py | 174ca7df8d1faefbf616028cb5dc2c3f9c21d7df | [] | no_license | mportela/chrome_plugin | e661d4fbb26685683c067ffd0a6441d88f04766d | 2e84ba8c86e786b86d6ba8572ee28f9f3bb54f15 | refs/heads/master | 2021-01-10T06:10:57.730223 | 2016-03-15T16:40:53 | 2016-03-15T16:40:53 | 53,960,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | import json
from django.http import HttpResponse
from server import models
def display(request):
return HttpResponse(models.UrlReached.objects.all().values('url','date_time'), content_type='application/json')
def process(request):
res_dict = {"true": 1}
name = str(request.GET.get('query')) # not used i... | [
"you@example.com"
] | you@example.com |
b5b3bdb6ee9ad2097b89fd0245c51af814711a6d | 3c4198d76240852d4abcf9b7c940927e217635b3 | /conanizer/template/test_package/conanfile.py | df0cf5cc551fc76ea950b35bd5579c4189adda39 | [
"MIT"
] | permissive | lasote/vcpkg | a3ba4b07936df4395709e4566859bea57cb4a754 | a92528a9ddf626ac640e80762e3b6dc00001812e | refs/heads/master | 2021-01-19T04:49:13.330532 | 2017-03-13T09:14:06 | 2017-03-13T09:14:06 | 69,260,019 | 3 | 2 | null | 2017-03-13T09:08:15 | 2016-09-26T14:43:08 | C++ | UTF-8 | Python | false | false | 1,459 | py | from conans import ConanFile, CMake
import os
channel = os.getenv("CONAN_CHANNEL", "vcpkg")
username = os.getenv("CONAN_USERNAME", "lasote")
class VcpkgwrapperTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = "**NAME**/**VERSION**@%s/%s" % (username, channel)
generators ... | [
"lasote@gmail.com"
] | lasote@gmail.com |
d9303ea004b2f1d96a416f13066197be0e531418 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /run_MatrixElement/test/emptyPSets/emptyPSet_STopT_T_JESDown_cfg.py | 042a3a7c8fdb4c02eb45821cf68f515dc5dea706 | [] | no_license | aperloff/TAMUWW | fea6ed0066f3f2cef4d44c525ee843c6234460ba | c18e4b7822076bf74ee919509a6bd1f3cf780e11 | refs/heads/master | 2021-01-21T14:12:34.813887 | 2018-07-23T04:59:40 | 2018-07-23T04:59:40 | 10,922,954 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import FWCore.ParameterSet.Config as cms
import os
#!
#! PROCESS
#!
process = cms.Process("MatrixElementProcess")
#!
#! SERVICES
#!
#process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageLogger.MessageLogger_cfi')
process.MessageLogger.cerr.FwkReport.reportEvery = 5000
process.load... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
3b9d08febc3ef5b0a1a002a405d4fddb1b6182df | 5a37472eae214d70dbe90b9dc61d03d01b8ccead | /accounts/models.py | 9e4d1366d3e2d05f7d54cc80f88b60c1a2695f51 | [] | no_license | Anuragjain20/ChatApp | 5e65d3264f27fe7bef5fdf8a9c5517220653d767 | 4db975c522a3f410a4e918e96087144e8abe7c06 | refs/heads/main | 2023-08-24T19:23:47.617916 | 2021-10-28T18:55:54 | 2021-10-28T18:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Profile(User):
name = models.CharField(max_length=255)
is_verified = models.BooleanField(default=False)
def __str__(self):
return self.name | [
"anuragjain2rr@gmail.com"
] | anuragjain2rr@gmail.com |
dffdc0c909630a0d178787445594c46956598d25 | dcadfaaf6d5aca5a52b422df68a7ddef67b37ec1 | /pay-api/migrations/versions/7e51d3ce4005_statement_settings.py | 5f5f0dc12d331e69986fef93636af1629b78e6f6 | [
"Apache-2.0"
] | permissive | pwei1018/sbc-pay | ec161e2d2574272b52a7cad38a43cf68e105f855 | 137b64ab57316f0452c760488301e33be6e9bbe0 | refs/heads/development | 2022-06-08T17:36:20.226648 | 2021-04-07T17:00:42 | 2021-04-07T17:01:07 | 168,407,310 | 0 | 4 | Apache-2.0 | 2019-06-12T19:06:58 | 2019-01-30T20:05:36 | Python | UTF-8 | Python | false | false | 4,488 | py | """statement_settings
Revision ID: 7e51d3ce4005
Revises: 567df104d26c
Create Date: 2020-08-18 10:04:08.532357
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '7e51d3ce4005'
down_revision = '567df104d26c'
branch_labels = None
depends_on = None
def upgrade():
... | [
"sumesh.pk@aot-technologies.com"
] | sumesh.pk@aot-technologies.com |
d0fd835e3d61a7db44b259b0c1d9a05bc4796396 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DPGAnalysis/SiStripTools/python/apvcyclephasemonitor_cfi.py | 9814e0f8f7209992f5a68a743eef2f4a9d42ad1f | [
"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 | 198 | py | import FWCore.ParameterSet.Config as cms
apvcyclephasemonitor = cms.EDAnalyzer('APVCyclePhaseMonitor',
apvCyclePhaseCollection = cms.InputTag("APVPhases"),
)
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
dc11481dcd1127650ac017a993ccbc85dc68dfff | 1d23c51bd24fc168df14fa10b30180bd928d1ea4 | /Lib/site-packages/twisted/conch/test/test_manhole.py | b4247f0f7dceafecdd11fad67215eabd6c14773d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BeaverInc/covid19CityMontreal | 62dac14840dadcdf20985663bc2527c90bab926c | 1b283589f6885977a179effce20212a9311a2ac0 | refs/heads/master | 2021-05-22T20:01:22.443897 | 2020-06-21T08:00:57 | 2020-06-21T08:00:57 | 253,067,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,436 | py | # -*- test-case-name: twisted.conch.test.test_manhole -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
# pylint: disable=I0011,W9401,W9402
"""
Tests for L{twisted.conch.manhole}.
"""
import traceback
from twisted.trial import unittest
from twisted.internet import error, defer
from twisted... | [
"36340780+lanyutian88@users.noreply.github.com"
] | 36340780+lanyutian88@users.noreply.github.com |
deae5050d581b1d17e3c50c20f4ab36e74df1bd1 | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /qiskit/circuit/library/templates/nct/template_nct_9c_7.py | b9f87f69effbf1b0646eb719daee998d4d86ad23 | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 1,620 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | 1ucian0.noreply@github.com |
7e7607f6a093f30de9aba7f216f56bb3e00dda94 | ddacbd31a215de3560d4c79489915f8b3bdf9a8d | /vertmodes.py | e4a45500783bee6e110328750660bec3d6ed6c71 | [] | no_license | jklymak/pythonlib | 40cfce6ee34f36a90c03350d3bf50e5e99655e26 | e71b1713394b5ac38ba0ea2f32d3fdff6f5118ff | refs/heads/master | 2021-06-18T12:53:57.051465 | 2017-05-29T19:14:27 | 2017-05-29T19:14:27 | 21,134,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | from matplotlib import pylab
def vertModes(N2,dz,nmodes=0):
"""" psi,phi,ce,z=vertModes(N2,dz,nmodes=0)
Compute the vertical eigen modes of the internal wave solution on a flat bottom
Parameters:
-----------
N2 : (M) is buoyancy frequency squared (rad^2/s^2) as an 1-D
array. ... | [
"jklymak@gmail.com"
] | jklymak@gmail.com |
7d454b4ee957e03dc6015d34bb5973486b64293d | 1e0a8a929f8ea69e476d8a8c5f3455aaf5317de6 | /scripts/utils/_rabbitmq.py | 71b8a0f02aff9298131339204af550da774c7e2f | [
"MIT"
] | permissive | jearistiz/guane-intern-fastapi | aa41400fa22076111e96be695fde0a1ff6f118d0 | 269adc3ee6a78a262b4e19e7df291fd920fae2e1 | refs/heads/master | 2023-06-25T08:58:03.729614 | 2023-06-11T15:28:59 | 2023-06-11T15:28:59 | 370,229,796 | 63 | 9 | MIT | 2021-06-11T01:28:52 | 2021-05-24T04:45:23 | Python | UTF-8 | Python | false | false | 4,175 | py | import time
import warnings
from pathlib import Path
from typing import Tuple
from subprocess import Popen, run, CompletedProcess
def local_rabbitmq_uri(
user: str, pwd: str, port: str, vhost: str
) -> str:
return f'amqp://{user}:{pwd}@0.0.0.0:{port}/{vhost}'
def init_rabbitmq_app(
rabbitmq_user: str,
... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
6ee1a6f11eb61dfb69b6d003f30d8b3a85fad419 | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Compute/nova/virt/vmwareapi/driver.py | 1e0c295d08ca1c7f39ed2cabd4174d8a9e4cb397 | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 28,470 | py | # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2012 VMware, Inc.
# Copyright (c) 2011 Citrix Systems, Inc.
# Copyright 2011 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. Yo... | [
"wwang@linx-info.com"
] | wwang@linx-info.com |
653fdc5ad9a6a125e22f78463105e985e68a1d81 | 79a61715a94e0a78e3268a514f97e5211c3e770b | /processors/notes_to_comments.py | 4653bc214790c24cf0339ee01b7a1289fbb470ce | [
"MIT",
"ISC"
] | permissive | eads/desapariciones | 2f120c18316e9ee3416b4c9eae1d68f72ec00e9c | 6069b21f26cc5175e78af54efb5cda0a64a2d9c5 | refs/heads/master | 2023-03-09T09:16:30.321455 | 2022-05-15T18:40:16 | 2022-05-15T18:40:16 | 188,893,244 | 5 | 0 | MIT | 2023-03-03T00:20:30 | 2019-05-27T18:42:01 | R | UTF-8 | Python | false | false | 577 | py | import click
import csv
from jinja2 import Template
from slugify import slugify
TEMPLATE = """
comment on column processed.cenapi.{{nombre_variable}} is '{{descripción}}';
"""
@click.command()
@click.argument('input', type=click.File('r', encoding='utf-8-sig'))
@click.argument('output', type=click.File('w'))
def ge... | [
"davideads@gmail.com"
] | davideads@gmail.com |
2cff4d3069d8f77d32a1cdbe93772331360cc8ba | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /third_party/libwebp/libwebp.gyp | 67c03685dd3d9b42591b4f5d3b52fc8671446cb8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-google-patent-license-webm",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 7,956 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'conditions': [
['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', {
'cflags!': [ '-Os' ],
... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
c64d298bed0f1f677a17ca3bac15570c447556a7 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/resources/v20190801/get_resource_group.py | 2f0d4bd30068643085cd612cac2f5e047a4d6f33 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,102 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
3621b7bff933e2d4959271d79594fd29094aa68c | 1698fe3ff15a6737c70501741b32b24fe68052f4 | /django-request-master/request/models.py | 102d2270e1323708bb13dd219052f6e37150f524 | [] | no_license | menhswu/djangoapps | 4f3718244c8678640af2d2a095d20a405e337884 | 039a42aa9d1537e7beb4071d86bea7a42253d8b3 | refs/heads/master | 2023-03-04T03:56:01.070921 | 2021-01-28T07:35:02 | 2021-01-28T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | from socket import gethostbyaddr
from django.conf import settings
from django.contrib.auth import get_user_model
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from . import settings as request_settings
from .managers import RequestManager
from .u... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
dbe246c5716bc5805439e941fe6ceb98c1161194 | e9539de5b8832e2a09365917fe201a945bf5d99b | /leetcode16.py | c6fc3a8fc977080489f30d083f334013a3f341b1 | [] | no_license | JoshuaW1990/leetcode-session1 | 56d57df30b21ccade3fe54e3fd56a2b3383bd793 | 6fc170c04fadec6966fb7938a07474d4ee107b61 | refs/heads/master | 2021-09-20T16:18:15.640839 | 2018-08-12T09:40:51 | 2018-08-12T09:40:51 | 76,912,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | class Solution(object):
def threeSumClosest(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
ans = None
minDiff = float('inf')
nums.sort()
for i in xrange(len(nums) - 2):
if i == 0 or nums[i] > nums[i... | [
"Jun.Wang@tufts.edu"
] | Jun.Wang@tufts.edu |
0c28ae315ae4aca9b257d2bda00cbfc798cdca4e | 092a13e08cc412d85f2115b9efaad17e1afdfc1a | /common/models/food/Food.py | 068207c4915f3f47faa1deb6364f04b1ec590403 | [] | no_license | Willanzhang/flask_mvc | 283196e1850f8676f1db52fe6361aa8706276e9d | 408470329494cd40691e4014b85ccdc9ba11711d | refs/heads/master | 2022-12-12T11:13:06.202893 | 2019-08-04T14:21:48 | 2019-08-04T14:21:48 | 173,304,987 | 0 | 0 | null | 2022-12-08T04:54:05 | 2019-03-01T13:18:14 | JavaScript | UTF-8 | Python | false | false | 1,501 | py | # coding: utf-8
from sqlalchemy import Column, DateTime, Integer, Numeric, String
from sqlalchemy.schema import FetchedValue
from application import db
class Food(db.Model):
__tablename__ = 'food'
id = db.Column(db.Integer, primary_key=True)
cat_id = db.Column(db.Integer, nullable=False, server_default=db... | [
"631871612@qq.com"
] | 631871612@qq.com |
9514c4458b97cb367130adb69501908c8ee29532 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P5664.py | 146ff2962cd3355bf82250c46bf4e1657269de8d | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | class Solution:
def minimumBoxes(self, n: int):
t = 0
m = 0
i = 1
while True:
t += (i * (i + 1)) >> 1
if t >= n:
m = i
break
i += 1
if t == n:
return (m * (m + 1)) >> 1
t -= (m * (m + 1))... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
bca93284647db372a5236cc8a447f4654434f78c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_grout.py | 989f969bf4769d1c0640642da950d88a9f05f5b4 | [
"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 | 302 | py |
#calss header
class _GROUT():
def __init__(self,):
self.name = "GROUT"
self.definitions = [u'mortar used for grouting']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f421e5d3c9490ad52705ea07bdcf8dd9763a729b | ec551303265c269bf1855fe1a30fdffe9bc894b6 | /old/t20190416_divide/divide.py | 19521d6d57481134378c263ec0fe597333aca22a | [] | no_license | GongFuXiong/leetcode | 27dbda7a5ced630ae2ae65e19d418ebbc65ae167 | f831fd9603592ae5bee3679924f962a3ebce381c | refs/heads/master | 2023-06-25T01:05:45.683510 | 2021-07-26T10:05:25 | 2021-07-26T10:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: KM
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: yangkm601@gmail.com
@software: garner
@file: divide.py
@time: 2019/4/16 11:56
@desc:
22. 括号生成
给定两个整数,被除数 dividend 和除数 divisor。将两数相除,要求不使用乘法、除法和 mod 运算符。
返回被除数 ... | [
"958747457@qq.com"
] | 958747457@qq.com |
c9e8f678bb4ebbb9ba7388c4c1ddb3c1ffd42804 | e37a4775935435eda9f176c44005912253a720d8 | /datadriven/python/uq/quadrature/marginalization/__init__.py | 36cc5a9cbcc3e8cf29631596630f546a4e697170 | [] | no_license | JihoYang/SGpp | b1d90d2d9e8f8be0092e1a9fa0f37a5f49213c29 | 7e547110584891beed194d496e23194dd90ccd20 | refs/heads/master | 2020-04-25T10:27:58.081281 | 2018-09-29T19:33:13 | 2018-09-29T19:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from marginalization import doMarginalize
| [
"dirk.pflueger@ipvs.uni-stuttgart.de"
] | dirk.pflueger@ipvs.uni-stuttgart.de |
899c7ea862d1368e04b45d33aabd03d943fa2d16 | 1b845de8123c750e8735ccf4297bf1e5861cbb4b | /katas/5kyu/kata11.py | 4c378777c4c279724b5df14f510e2318865c2f63 | [] | no_license | jorgemira/codewars | 3ef2b05fa90722cdd48bb8afb0f7536627bcfec9 | 701a756f3d466dbfe93f228b2e294cf49a7af2ae | refs/heads/master | 2020-12-19T19:07:51.485286 | 2020-01-23T15:54:52 | 2020-01-23T15:54:52 | 235,824,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """
Codewars 5 kyu kata: Finding an appointment
URL: https://www.codewars.com/kata/525f277c7103571f47000147/python
"""
def t2n(time):
h, m = (int(i) for i in time.split(':'))
return (h - 9) * 60 + m
def n2t(num):
h = ('' if num / 60 else '0') + str(num / 60 + 9)
m = ('' if num - num / 60 * 60 else '0... | [
"jorge.mira.yague@gmail.com"
] | jorge.mira.yague@gmail.com |
15a699a1ba9a4aff30701aeada95d57169f75f68 | fc5708b8f291c314dad85f53e23c5728d7b9627f | /week3/excercise_3.py | 81fb9030a46a6251b5d5e74230201b77b1756328 | [] | no_license | OnestoneW/UZH | d271beeb9cfa31c67a5ce9e6f8a7b9ec5d3b8658 | 9c243a6e92c504f83d5fc091a5d67bd05e79d905 | refs/heads/master | 2021-05-07T05:03:58.526573 | 2017-11-22T19:55:46 | 2017-11-22T19:55:46 | 111,398,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | import pylab as plb
import numpy as np
import matplotlib
def calc_average_radiation(data_set):
values = data_set[:,0]
errors = data_set[:,1]
#calc the measurements for "per year":
values = values*365*24
errors = errors*365*24
weights = 1/(errors**2)
average = sum((weights*values))/sum(we... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
45f25cb7ac03ba31a0808b28ae688e323ba4c5d7 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/youtube-dl/2016/12/amcnetworks.py | 87c803e948fd2e04cde6b0b43251d3f804b952a0 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 4,211 | py | # coding: utf-8
from __future__ import unicode_literals
from .theplatform import ThePlatformIE
from ..utils import (
update_url_query,
parse_age_limit,
int_or_none,
)
class AMCNetworksIE(ThePlatformIE):
_VALID_URL = r'https?://(?:www\.)?(?:amc|bbcamerica|ifc|wetv)\.com/(?:movies/|shows/[^/]+/(?:full-... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
5df31c267567c47d939a5162d5348aab8c0045f5 | e91f9c9688e348a2374d42d0df2f22319073e266 | /venv/bin/python-config | 6a0e1e93d04a6a93d5c9ecb17e8a1d021cd8656a | [] | no_license | jobmassaro/motocustom | 8e5be423356e8dfbdc46806b1dfb3dfb3c409e3e | a644317a016244049c6835e33497c79b0207060c | refs/heads/master | 2021-01-13T09:14:46.586785 | 2016-11-05T17:19:13 | 2016-11-05T17:19:13 | 72,467,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | #!/home/developer/tutflask/ciaoline/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ver... | [
"="
] | = | |
8c3cc63178cb6a0d72b3a1b00ef7ca7fcc050cf5 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /140.py | 8533e0a38d71ce3286ff6fbbbf15ed5d61c38e6e | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: List[str]
"""
if len(s)==0 or len(wordDict)==0:
return []
dict=set(wordDict)
dp=[False for _ in range(len(s)+1)]
pre=[[]... | [
"1533441387@qq.com"
] | 1533441387@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.