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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2d187805986b4813c156c325f0651f991420875 | 898aafc2b28aa68d73a1ed3dd63b62aa775f71cc | /lib/python3.8/site-packages/pip/_vendor/urllib3/contrib/appengine.py | 26e869f35452030771221e5dbcc61029349f6549 | [] | no_license | ChesterNut999/Python_Lab_03_Test_Py_Flask_RestFul_SqlAchemy | 462dc404822043f27e53f932f8149ad3f0315a8d | 5889689cae8b64da4b1706def12c763d6a43b502 | refs/heads/master | 2023-06-22T15:00:58.498000 | 2021-07-13T01:27:47 | 2021-07-13T01:27:47 | 385,432,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,034 | py | """
This module provides a pool manager that uses Google App Engine's
`URLFetch Service <https://cloud.google.com/appengine/docs/python/urlfetch>`_.
Example usage::
from pip._vendor.urllib3 import PoolManager
from pip._vendor.urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox
if is_a... | [
"maurilio_sjc@outlook.com"
] | maurilio_sjc@outlook.com |
cfe480d022ad715c760a2b50cc3d97fa9baf03a5 | 5374bd9a9fc8cc07f6966c490a137003ddc64d9b | /VEnCode/scripts/validation.py | 14fa681c8adc40990d15197e91301865df279be4 | [
"BSD-3-Clause"
] | permissive | AndreMacedo88/VEnCode | 31f9f545019f62e0af716395a11961515c229394 | 667c777c6ef12c43e993660e5c695d4d6d43385e | refs/heads/master | 2021-01-06T03:55:44.385885 | 2020-11-24T18:05:38 | 2020-11-24T18:05:38 | 90,248,803 | 0 | 1 | NOASSERTION | 2020-02-04T22:29:39 | 2017-05-04T10:02:48 | Python | UTF-8 | Python | false | false | 4,091 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
""" validation.py: file used to cross-validate VEnCodes found using the FANTOM5 data set. """
import os
import sys
import VEnCode.outside_data
file_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(file_dir)
from VEnCode import internals... | [
"andre.lopes.macedo@gmail.com"
] | andre.lopes.macedo@gmail.com |
049f94be6d12bfee0f18ebcd3db8d97694c6293e | 22d8565bf563adcbc38f666dec3b57a1c3fd11f4 | /build/husky/husky_base/catkin_generated/pkg.installspace.context.pc.py | 84e0ed79d5a30c4ff0815b97e19969e016fab682 | [] | no_license | JJHbrams/DynamoP2.0 | 4c4160fcb81b7d6a4f2f0ce10e863fd8aa190a82 | a0d554b0620ac90ea3388ec3c2f5225baa6237c3 | refs/heads/master | 2021-01-03T19:55:42.136766 | 2020-11-11T04:42:43 | 2020-11-11T04:42:43 | 240,215,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include".split(';') if "${prefix}/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "diagnostic_updater;hardware_interface;husky_msgs;roscpp;sensor_msgs".replace(';', ... | [
"dpswpfrhdid@naver.com"
] | dpswpfrhdid@naver.com |
ed05634f40ffd828dade32145311476d092888ca | 951bd2ae0de80ebb03cdb5214d06c71b617dbdf6 | /Spark Streaming/TweetRead.py | 744587f609d2ff6dfff0cce8154dc29f2d82a2bd | [] | no_license | albertopformoso/Spark-and-Python-for-Big-Data-with-PySpark | c259fdc1d18e43dd4dbdbfa60c8eaff3080a2781 | 8789a0f0b218a46bd9accca27ca8faaea2ed7cdc | refs/heads/master | 2023-02-23T02:12:38.730739 | 2021-01-24T19:26:29 | 2021-01-24T19:26:29 | 330,278,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | from dotenv import load_dotenv, find_dotenv
import tweepy
from tweepy import OAuthHandler
from tweepy import Stream
from tweepy.streaming import StreamListener
import socket
import json
import os
if len(find_dotenv()) == 0:
raise RuntimeError("Can't find your .env file")
# Set up your credentials
consumer_key = o... | [
"albertopformoso@gmail.com"
] | albertopformoso@gmail.com |
f6e7f7cf4f1a49aa64ffb503f49ad5eeb1ce2097 | c6b15c628a185d9f71c91543aac3a90495152c09 | /Python Unit-Testing Course/.idea/VirtualEnvironment/Scripts/easy_install-3.7-script.py | 42bf3bd2e8c73d16b39b6f563df885427bd62bc2 | [] | no_license | reichlj/PythonBsp | 3e47d3b22b75cf1f67d3e47b83b125a1ddbc518d | 51c25370495d3a8847f46a9de1bc8e0d811ae5a7 | refs/heads/master | 2021-06-12T22:32:15.365906 | 2021-05-08T20:44:01 | 2021-05-08T20:44:01 | 173,499,716 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!"C:\dev\PythonBsp\Python Unit-Testing Course\.idea\VirtualEnvironment\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[... | [
"jakobreichl@gmail.com"
] | jakobreichl@gmail.com |
37e98194ea73e6a1e99634dbf212cd5d261da891 | 3fbfabfaaada7b9b77e8a1df8fed4de444070d49 | /session_10/create_db.py | c1c70ca97f2955670dfb74a0e794333f80293c9c | [
"MIT"
] | permissive | dravate/spark_python_course | df36a561ab2cf8f763dd02655319cd6bf5b7876c | 519389fdb21d78cd6d19e1ad2f7c782bc1449a83 | refs/heads/main | 2023-07-08T06:53:27.635106 | 2021-08-03T14:44:55 | 2021-08-03T14:44:55 | 385,127,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import os
import sqlite3
db_filename = 'todo.db'
new_db = not os.path.exists(db_filename)
conn = sqlite3.connect(db_filename)
if new_db:
print ("Please create Schema")
else:
print ("DB is already created - mostly the schema exists")
conn.close()
| [
"sopan.shewale@gmail.com"
] | sopan.shewale@gmail.com |
170b7b398ab61f3b24b1986299996fa4ce73ce29 | d24a6e0be809ae3af8bc8daa6dacfc1789d38a84 | /other_contests/PAST2019/H.py | 5b5e04e27939ddcd508e3e8a2e1ea67db3e4dc3d | [] | no_license | k-harada/AtCoder | 5d8004ce41c5fc6ad6ef90480ef847eaddeea179 | 02b0a6c92a05c6858b87cb22623ce877c1039f8f | refs/heads/master | 2023-08-21T18:55:53.644331 | 2023-08-05T14:21:25 | 2023-08-05T14:21:25 | 184,904,794 | 9 | 0 | null | 2023-05-22T16:29:18 | 2019-05-04T14:24:18 | Python | UTF-8 | Python | false | false | 1,782 | py | def solve(n, c_list, q, s_list):
res = 0
dec_list_n = [0] * n
global_dec = 0
odd_dec = 0
global_min = min(c_list)
odd_min = min(c_list[0::2])
for i in range(q):
s = s_list[i]
if s[0] == "1":
_, x, a = map(int, s.split())
x -= 1
if x % 2 ... | [
"cashfeg@gmail.com"
] | cashfeg@gmail.com |
2ebb4a3c821548b4cd7fbbd2eed1c70047122136 | e26cfc715513ae3b4393ea918e78ed5f27664dff | /src/textgrid_tools_tests/intervals/common_py/test_merge_intervals.py | f9d043c5f90ec45d259c06d011eee8b6db3d3313 | [
"MIT"
] | permissive | stefantaubert/textgrid-ipa | f4cd52b2c9d53570587b030dec758176229ee5e0 | ada294513315d76db7e91cbbfb7c386a75f84966 | refs/heads/main | 2023-06-09T01:30:18.159171 | 2023-05-30T15:23:18 | 2023-05-30T15:23:18 | 301,960,070 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from textgrid.textgrid import Interval
from textgrid_tools.intervals.common import merge_intervals
def test_component_include_empty():
intervals = (
Interval(0, 1, ""),
Interval(1, 2, "b"),
Interval(2, 3, " "),
Interval(3, 4, "c"),
Interval(4, 5, "d"),
)
result = merge_intervals(list(inter... | [
"stefan.taubert@posteo.de"
] | stefan.taubert@posteo.de |
103c351cc0110671b6dbd67e7c9bb14049d877a7 | 57235e5fbd29dc5e0b3f24649e15a48935edd65f | /boa3_test/test_sc/list_test/PopListMismatchedTypeArgument.py | 4ae5589168d11ccf6d57b6d11b7eecfc3dd0b849 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | DanPopa46/neo3-boa | ae75543bdc4e0aeadf45578b6b5e4c45b9253557 | e4ef340744b5bd25ade26f847eac50789b97f3e9 | refs/heads/development | 2023-04-01T19:25:08.216180 | 2021-04-15T17:45:38 | 2021-04-15T17:45:38 | 358,663,228 | 0 | 0 | Apache-2.0 | 2021-04-16T16:46:46 | 2021-04-16T16:46:31 | null | UTF-8 | Python | false | false | 79 | py | def pop_test() -> int:
a = [1, 2, 3, 4, 5]
b = a.pop('2')
return b
| [
"mirellamedeiros.09@hotmail.com"
] | mirellamedeiros.09@hotmail.com |
11f859a7d2ceaac0b717f0b785430b13ea39ee51 | cff2b7c96ca0355a44116f6d18f026da69e412b0 | /script.module.Galaxy/lib/resources/lib/modules/youtube.py | aad8ebbdf56a5370160d29b30a05da9d5af36820 | [
"Beerware"
] | permissive | krazware/therealufo | cc836e4e7049d277205bb590d75d172f5745cb7d | 4d6341c77e8c2cc9faec0f748a9a2d931b368217 | refs/heads/master | 2020-03-19T00:41:22.109154 | 2019-11-12T05:06:14 | 2019-11-12T05:06:14 | 135,496,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,193 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | [
"krazinabox@gmail.com"
] | krazinabox@gmail.com |
67cfe06d88e3de17422ae039a63a853c1b86bb5e | 064190a2de1ad156e1060f0efdee7e754a96b4bb | /Unit1/1.5.py | 07c1c3c95a554ba8ca6b0432b654b42f2fe5c8eb | [] | no_license | zqy1/pythonCookbook | 7254fadf3fac277b107941bc32e4716de3f7c329 | 89a05a2a4d723fb49548e0e87d2542bd5d07fbee | refs/heads/master | 2020-08-03T17:27:09.351396 | 2015-09-18T13:05:14 | 2015-09-18T13:05:14 | 73,540,483 | 1 | 0 | null | 2016-11-12T08:14:50 | 2016-11-12T08:14:50 | null | UTF-8 | Python | false | false | 1,758 | py | #!/usr/bin/env python
# encoding: utf-8
"""
1.5 ๅฎ็ฐไผๅ
็บง้ๅ
ๆไปฌๆณๅฎ็ฐไธไธช้ๅ๏ผๅฎไผๆ็ปๅฎ็ไผๅ
็บงๆฅๅฏนๅ
็ด ๆๅบ๏ผ
ไธๆฏๆฌก pop ๆไฝๆถ้ฝ่ฟๅไผๅ
็บงๆ้ซ็้ฃไธชๅ
็ด
heapq ๆจกๅๅฝๆฐ:
heappush(heap, item) # ๅฐitemๅๅ
ฅๅ ไธญ
heappop(heap) # ๅฐๅ ไธญๆๅฐ็ๅ
็ด ๅผนๅบ
heappushpop(heap, item) # ๅ
ๅฐitemๅๅ
ฅheapไธญๅๅผนๅบheap็ๅ ้กถๅ
็ด
... | [
"neo1218@yeah.net"
] | neo1218@yeah.net |
1bf7eaa168fb2f7be9f2f08b4db4ea83c94a4ac3 | 772c3a28ee43665420ba53db4df5d96739884918 | /django/trail_threshold_variability/management/commands/buildstatic_ttv.py | 234a08aaf2286807ef5f59b56f35869d19ebb12f | [] | no_license | hmslincs/hmslincs | 4af60b3622750688e9dfd087bcb53daf9caf5c06 | a94a832cc2d9f963c4597eafd6593cd332bfe433 | refs/heads/master | 2021-04-15T05:44:37.226124 | 2020-08-28T16:58:05 | 2020-08-28T16:58:05 | 5,276,090 | 8 | 5 | null | 2020-07-30T18:50:44 | 2012-08-02T18:20:25 | JavaScript | UTF-8 | Python | false | false | 9,895 | py | # -*- coding: utf-8 -*-
import sys
import os
import re
import codecs
import argparse
import itertools
import unipath
import csv
import django.conf
from django.template.loader import render_to_string
from django.core.management.base import BaseCommand, CommandError
from django.contrib.flatpages.models import FlatPage
f... | [
"jmuhlich@bitflood.org"
] | jmuhlich@bitflood.org |
292162c5cafc53d1a12dc03d491b24cf96e78e25 | 1254f553b70353c6d4ee85c2497db23ebb7903f2 | /test/test_component_history_dto.py | 4355b4f43a4156efe6b2297894e9425535b89a0a | [
"Apache-2.0"
] | permissive | tspannhw/nifi-python-swagger-client | 05137bd2ad36706f323621ab2510abb124ce9bf9 | 0cc73d31a1143c3fa73237fd3d4702a7c3c5b3b1 | refs/heads/master | 2021-01-20T02:24:36.484855 | 2017-08-24T12:52:46 | 2017-08-24T12:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | 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 |
6da0bcecf30603f283acccf783ffabe67f975332 | e3402d37d5a9fb7ee3c3c73e95732d778f48b6fb | /com/kute/algorithms/__init__.py | fda4ab1360693493004b434ada15fd4d10c6bff4 | [] | no_license | kute/purepythontest | 51d3186ddaa2f1142382768380b776a1ba9469ed | 2baa1746a34cefe0be0e5f59be21450d330491a7 | refs/heads/master | 2020-04-12T06:20:14.957566 | 2018-03-18T07:03:22 | 2018-03-18T07:03:22 | 65,204,109 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = 'kute'
# __mtime__ = '16/5/24 21:40'
def main():
pass
if __name__ == '__main__':
main()
| [
"kutekute00@gmail.com"
] | kutekute00@gmail.com |
484fb1aa20f41b92a393cd858ddb44178f0c42cf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2482/60708/267104.py | aad8d1301873e9edbe9c748d5974ac162ce03841 | [] | 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 | 610 | py | N=int(input())
for n in range(0,N):
x=int(input())
y=int(input())
result=list(str(x/y))
a=""#ๅฐๆฐ็นๅ
b="."
for i in range(0,len(result)):
if(result[0])=='.':
a=a+result[0]
result.pop(0)
b=''.join(result)[0:]
break
else:
a=a... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
742e6ea7de50bcac003bc3d80347733854493805 | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/one_of_velocity_inlet_bc_net_radiative_heat_flux.py | b26f7a002aaa6f9893e3aa80e77d6c8f7b0d3f5c | [
"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 | 6,040 | 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 OneOfVelocityInletBCNetRadiativeHeatFlux(object):
"""NOTE: This... | [
"simscale"
] | simscale |
adacebb3ba78137de88beae5fab192ad6c360797 | 571ebcf06cc01309231a97a963f531f8dd90963d | /Hacking Scripts/reverseShellClient.py | 8d0e051c123e16c061dada96f83f7e7f1da281dc | [] | no_license | SV-ZeroOne/Python-Projects | 3da0ec813e2764d5a3cd8f1d9825e698e368a84e | 8820c346e0dde3b4023ce400cb722d08c1b4c52e | refs/heads/master | 2023-08-19T20:43:07.294205 | 2021-10-16T11:57:33 | 2021-10-16T11:57:33 | 95,302,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import socket
import subprocess
import os
def transfer(s, path):
if os.path.exists(path):
f = open(path, 'rb')
packet = f.read(1024)
while len(packet) > 0:
s.send(packet)
packet = f.read(1024)
s.send('DONE'.encode())
else:
s.send('File not found'.encode())
def connect():
s = socket.socket()
s.con... | [
"steve@elitehost.co.za"
] | steve@elitehost.co.za |
5fef595807aff3c1ec3c72433953ec333d323341 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_4/75.py | 8d4a612aa342b0b8858f654fcd10500e495a8f9b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import sys
f = open(sys.argv[1])
o = open(sys.argv[1].split('.')[0] + '.out', 'w')
nCases = int(f.readline().strip())
for case in range(nCases):
dimension = int(f.readline())
v1 = map(int, f.readline().strip().split())
v2 = map(int, f.readline().strip().split())
v1.sort()
v2.sort()
v2.reve... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a3f35d160cbff7a6e359c74755f53d3753b84b49 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn4/M-105.py | 72c9b3399cabf41ee7dae145d599b123516d8116 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,446 | py | '''
Seznam krajev, iz prejลกnje naloge. Uporabno, ฤe ni testov.
kraji = [
('Breลพice', 68.66, 7.04), ('Lenart', 85.20, 78.75), ('Rateฤe', -65.04, 70.04),
('Ljutomer', 111.26, 71.82), ('Rogaลกka Slatina', 71.00, 42.00), ('Ribnica', 7.10, -10.50),
('Dutovlje', -56.80, -6.93), ('Lokve', -57.94, 19.32), ('Vinica'... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
bc291688aa3ce741509d6240563d380a29e2dd1a | 62d6a37e1fb1b224b53e14a1cf151ef0571aa20f | /orun/http/__init__.py | 5d27eb7d2410dda8fe4263aa9eb1974206200fbe | [] | no_license | katrid/orun | 4fa0f291a1ef43f16bc1857a170fc0b2e5e06739 | bfc6dae06182124ba75b1f3761d81ba8ca387dea | refs/heads/master | 2023-08-30T03:58:34.570527 | 2023-08-09T04:05:30 | 2023-08-09T04:05:30 | 66,562,767 | 14 | 4 | null | 2023-01-06T22:29:37 | 2016-08-25T14:01:44 | Python | UTF-8 | Python | false | false | 1,004 | py | from orun.http.cookie import SimpleCookie, parse_cookie
from orun.http.request import (
HttpRequest, QueryDict, RawPostDataException, UnreadablePostError,
)
from orun.http.response import (
BadHeaderError, FileResponse, Http404, HttpResponse,
HttpResponseBadRequest, HttpResponseForbidden, HttpResponseGone,
... | [
"alexandre@katrid.com"
] | alexandre@katrid.com |
2f2e173cedfb3e0b03918438536ae26ad4faaab9 | 2ca998dd8361984c4d4312f80b0c4ff67fcc84f4 | /mid2names.py | 24c72dac715ed35ecb5f14d4fefbc984ac4b12ae | [] | no_license | rohitpatwa/dbExtend | 31a7f1935d240595bc10f3d3641c7d051abf2047 | dad7de67141edc3d7353c5f1762a8786b9e3b997 | refs/heads/master | 2022-03-31T04:16:06.719265 | 2020-01-22T23:28:20 | 2020-01-22T23:28:20 | 235,421,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | """Create LUT from a given db
Script to create a LUT table with FID.MID as the keys and English names as values. The script assumes the file structure
to be F0001/MID1 for all FIDs. It then reads all the mid.csv files in the MID? folders and append them to a dataframe.
The purpose of this script is to prepare FIW for... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
3784205655c4e6b4cfa9c7dfccd811231c871938 | ac15eda44e8dcfee6dff62f514c5b98a3382f50d | /python/les5/les5_3.py | f7632dd52e6ce6a4948be0711a402c746542fd4a | [] | no_license | yangruihan/raspberrypi | 5789c1a2e72d4012d46563d0644b08d032d346e6 | 22bc1a06b25e129a4314f4bc9cec5112affda136 | refs/heads/master | 2022-12-27T09:27:05.102020 | 2020-10-13T09:41:24 | 2020-10-13T09:41:24 | 32,977,936 | 4 | 0 | null | 2022-12-16T01:47:53 | 2015-03-27T09:30:43 | Java | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/env python3
import pickle
with open('mydata.pickle', 'wb') as mysavedata:
pickle.dump([1, 2, 'three'], mysavedata)
with open('mydata.pickle', 'rb') as myrestoredata:
a_list = pickle.load(myrestoredata)
print(a_list)
| [
"yangruihan@vip.qq.com"
] | yangruihan@vip.qq.com |
40b8cf0d6ea7ccb94390214e6f73406717a8998d | 91c702af361deb5301c7f7f420cd09383480878a | /gastrack/countParticles.py | 96964c3c5d77fd8cb72f3571512a9ffa907b5b13 | [
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | myinxd/gastrack | 88baff1972d21c48cfd5419a0f6136b029c7e28b | da2f7390eace2ba231f6d3b28968be0ca7331a44 | refs/heads/master | 2021-01-12T11:44:49.618338 | 2017-11-24T01:17:37 | 2017-11-24T01:17:37 | 72,290,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,510 | py | # !/usr/bin/python3
# Copyright (C) 2016 Zhixian MA <zxma_sjtu@qq.com>
"""
A tool to count amont of particles in the provided regions.
"""
import os
import sys
import re
import h5py
import numpy as np
import utils
class Cluster:
"""
The cluster class
Parameters
----------
... | [
"zxma_sjtu@qq.com"
] | zxma_sjtu@qq.com |
8b51fa52d6cef1d961cb8e29185932c1f2371400 | a95a398f7f1e4306367f22ff59a9da72a8c23b46 | /course-files/lectures/lecture_04/07_activity.py | c4bf8d853793765bb768a13eb6186ba70431a59a | [] | no_license | eecs110/spring2020 | 74ff8a317cf009aa727ad46e143e1c6619c83086 | a726d32c5eb418f4bf0fe27fae1f6479e4ae8140 | refs/heads/master | 2022-10-18T21:58:19.690897 | 2020-06-03T01:04:20 | 2020-06-03T01:04:20 | 251,242,896 | 0 | 0 | null | 2022-10-06T10:22:24 | 2020-03-30T08:17:53 | Python | UTF-8 | Python | false | false | 445 | py | from operator import add, mul, sub, truediv, mod, floordiv, pow
# for more info, see the docs: https://docs.python.org/3/library/operator.html
# Challenge: Create a custom function called "hypotenuse" that calculates
# the hypotenuse of any triangle. Then, invoke that function using the
# following triangle dimensi... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
07d6d0d03eb9241e5ed49723bdf77dc4844cac19 | d07f4cd12b40fb4e009b4e36c4d8c0b42b35768d | /chalice/package.py | 642f4878836bd056bc1932395c3295c4d75224c8 | [
"Apache-2.0"
] | permissive | birkoff/chalice | b865d17d085dc92842da09d82033411001a2e01c | 83ffea3773519a26bf1c72ef48b33c149ccdcc2f | refs/heads/master | 2021-01-21T20:56:46.260466 | 2017-05-23T17:03:40 | 2017-05-23T17:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,897 | py | import os
import copy
import json
import hashlib
from typing import Any, Dict # noqa
from chalice import __version__ as chalice_version
from chalice.deploy.swagger import CFNSwaggerGenerator
from chalice.deploy.swagger import SwaggerGenerator # noqa
from chalice.deploy.packager import LambdaDeploymentPackager
from ... | [
"js@jamesls.com"
] | js@jamesls.com |
6a87563d50a56154d56a3e17b55a97e0d205ef9b | aa3dc5ae4fa7d531bbaa75c3008031f2a1b8845d | /1460. Make Two Arrays Equal by Reversing Sub-arrays.py | bf19eb4de403cc17d243c4a1a98166c93118834e | [] | no_license | alankrit03/LeetCode_Solutions | 354e797d1d5f5a78b116c1f9a3034dd651d71d9a | f8ca46afdfbd67509dde63e9cdc5fd178b6f111b | refs/heads/master | 2021-01-08T17:41:22.976375 | 2020-11-03T17:01:37 | 2020-11-03T17:01:37 | 242,097,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | class Solution:
def canBeEqual(self, target, arr) -> bool:
from collections import Counter
return Counter(target) == Counter(arr) | [
"alankritagarwal9@gmail.com"
] | alankritagarwal9@gmail.com |
43f07e970a3ab93ee5c4e86d16c7fc72c4f5b1d9 | 64ff0d2b1f12c321e8fe44d0524bb444820b21f7 | /test/test_parser_yaml.py | 0c77dd18718c76c0ed43fed9d0a856c302417e4d | [
"BSD-2-Clause"
] | permissive | Aniket-Pradhan/python-odml | 8ffd460cd8560b03f439b46b85fc1c78292c6191 | 48e55a264e38829d90f3b8def37e4d2d7b39337f | refs/heads/master | 2020-12-04T11:32:21.717225 | 2020-01-16T06:34:09 | 2020-01-16T16:59:29 | 231,748,290 | 0 | 0 | NOASSERTION | 2020-01-04T10:58:14 | 2020-01-04T10:58:14 | null | UTF-8 | Python | false | false | 1,495 | py | import os
import unittest
import yaml
from odml.tools import dict_parser
from odml.tools.parser_utils import ParserException, InvalidVersionException
class TestYAMLParser(unittest.TestCase):
def setUp(self):
dir_path = os.path.dirname(os.path.realpath(__file__))
self.basepath = os.path.join(dir_... | [
"michael.p.sonntag@gmail.com"
] | michael.p.sonntag@gmail.com |
56c2fc2b809384b7692cba50dfc269fcf1af96cc | e6f1137903b9658e5e3c1ee51201a931894303b9 | /deepiu/image_caption/algos/history/v1/show_and_tell_predictor.py | 63ca6f464f3d5f17f6249c5f15a71bc02c5e91e1 | [] | no_license | fword/hasky | 8ed69ef85bb34823d9ade27bb3b19aac02872440 | d3c680ffa04f7487b931a5575977798157b42b7e | refs/heads/master | 2021-01-23T01:18:49.275631 | 2017-03-18T13:01:27 | 2017-03-18T13:01:27 | 85,898,744 | 1 | 1 | null | 2017-03-23T02:39:06 | 2017-03-23T02:39:06 | null | UTF-8 | Python | false | false | 4,840 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file show_and_tell_predictor.py
# \author chenghuige
# \date 2016-09-04 17:50:21.017234
# \Description
# ================================================... | [
"29109317@qq.com"
] | 29109317@qq.com |
4e3d7ecbd55853ed72a0d64d4f743af1f873e7b8 | ce4f1810b8011f05f4e9f8b67959b6a2994ac821 | /GAVOCoverage/temp-python/lib/python2.7/site-packages/pip/req/req_uninstall.py | 90a593628d08a707f6d3d9fc6c65406149bd8b5e | [] | no_license | Hyradus/VO_QGIS3.x_plugin | b11d3b18e473861b6d0733c3783c40af6e8eb039 | 9ab9acb4756c415797b5a7e64389978a84a32c23 | refs/heads/master | 2022-04-14T00:25:12.283460 | 2020-04-02T17:18:50 | 2020-04-02T17:18:50 | 248,215,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,937 | py | from __future__ import absolute_import
from builtins import object
import logging
import os
import tempfile
from pip.compat import uses_pycache, WINDOWS, cache_from_source
from pip.exceptions import UninstallationError
from pip.utils import rmtree, ask, is_local, renames, normalize_path
from pip.utils.logging import ... | [
"giacomo.nodjoumi@hyranet.info"
] | giacomo.nodjoumi@hyranet.info |
c5c52a34b30735cf8048a66d5858079d6df8527b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /vAk9SBqYmj6hXKfrD_16.py | a18522316d4af7072720d687cb474b1b2f6e58b9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | """
In this challenge, you have to implement a function that returns the given
distance `kilometers` converted into miles. You have to round the result up to
the fifth decimal digit.
### Examples
km_to_miles(2) โ 1.24274
km_to_miles(6) โ 3.72823
km_to_miles(8) โ 4.97097
### Notes
1 kilomete... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1955002f06ce2a8c4cb851a8219ebe39c214db28 | 8f0ee068dc5f78491812ee8fec4ecc4ad48be8b5 | /search/search.py | fc18b93f5127bdc5849bdba83db82fd26f0fd190 | [] | no_license | russkingit/Pacman-project-Artificial-Intellengence-python | b36dc48b12f35082b6ac2aac4620d50dec9b3ddf | 553618ed58de51a7c1d1eaa90fb0441dc9d8e34b | refs/heads/master | 2020-04-20T02:27:31.226385 | 2019-02-01T05:03:40 | 2019-02-01T05:03:40 | 168,390,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,893 | py | # search.py
# ---------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# A... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
0e04795723c5e4257eec9e7bdd971712e6369da2 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/tintbrowser/testcase/firstcases/testcase7_023.py | fb1e9d767741ee7ec7143ea90c07655d38f16cfe | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,905 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
66ae5218e083cec68b52061e500c88077eb68ff4 | 0c95806a805e63a65ce524bac9f2c230c08787dc | /examples/get_temps.py | 18a948ce04c96b2251e7cff05c33435f375c1809 | [
"MIT"
] | permissive | chenchix/melcloud | 4a8e9684e4f38e63871ec543b6a1fdb22fc7628e | 64fe66195ca4e0811391f9b52670ff27954043de | refs/heads/master | 2022-08-16T01:34:40.749190 | 2020-05-29T08:27:40 | 2020-05-29T08:52:47 | 267,796,720 | 0 | 0 | null | 2020-05-29T07:40:36 | 2020-05-29T07:40:36 | null | UTF-8 | Python | false | false | 957 | py | # coding=utf-8
from melcloud import MELCloud
from melcloud.constants import Languages
__author__ = "Gareth Coles"
platform = MELCloud(Languages.EN)
platform.login("<EMAIL ADDRESS>", "<PASSWORD>")
if platform.logged_in:
print(f"Logged in as {platform.account.name}")
platform.load_devices()
for building i... | [
"gdude2002@gmail.com"
] | gdude2002@gmail.com |
9df24ae01ad33110298fab7d26828948da2c375d | 65148257eabf62c5a60c5a2723792c3549887f49 | /froide/upload/models.py | 9ff7dd6fd021ba5cbe44e90f0ae71f86445b1fb8 | [
"MIT"
] | permissive | infoaed/froide | 083ba5d501f10c29f6f75bc7ae656ebee98fc08c | 532b626e62f6ad3d5017261d305721d00c16cd43 | refs/heads/master | 2021-02-11T17:20:02.449999 | 2020-03-02T17:01:19 | 2020-03-02T17:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,279 | py | import json
import os
import tempfile
import uuid
from django.db import models
from django.urls import resolve, Resolver404
from django.contrib.auth import get_user_model
from django.utils.translation import ugettext_lazy as _
from django.core.exceptions import ValidationError
from django.core.files import File
from ... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
5536ffabb4a849aff4936655f2c2158c58a21ffe | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/containerinstance/v20170801preview/container_group.py | 31219fad7b37c7ad4b625bd5ec100406e05a516e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,291 | 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"
] | vivimouret29.noreply@github.com |
ac1630018ac308daa7325e487f00b2acbe3b7d63 | 1271ef78335bc7b3af9fd0d7e988edc3c3ff6edf | /python/models/sampling_model.py | 48c383d7637ce57ce95cecd01ee047b1d4f512cd | [] | no_license | BB8-2020/FARM-deforestation | 97b60699ae4468e3a53b5b970b395b2137047915 | 5b9df46ed6ff125f5697d6753a301bbf9538e555 | refs/heads/main | 2023-06-08T21:01:55.212018 | 2021-06-25T14:56:58 | 2021-06-25T14:56:58 | 351,037,514 | 0 | 0 | null | 2021-06-25T14:56:59 | 2021-03-24T10:28:56 | Jupyter Notebook | UTF-8 | Python | false | false | 2,708 | py | """File to host a modified unet implementation with emphasises on a additional up/downsampling layer."""
from keras import Input, Model
from keras import layers as keras_layers
def get_sampling_model(img_size: tuple = (512, 512), num_classes: int = 2) -> Model:
"""Create and return a UNET model.
Parameters
... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
d91641c566c3d076846c9b064aa4cad9824e56fe | 243515329480040575331d2336152f4023fbc475 | /tests/test_interface.py | c7beecd72246899831b41544150867edc8d9ab96 | [
"MIT"
] | permissive | Ariyatina/skidl | 439eec7a6ae36a58fc052d8b827f88c89756cc13 | 5aace5c463403b29604a1dc2c32f4da8c86796d3 | refs/heads/master | 2023-07-18T09:23:24.173653 | 2021-07-21T13:54:39 | 2021-07-21T13:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | import pytest
from skidl import *
from .setup_teardown import *
def test_interface_1():
"""Test interface."""
@subcircuit
def resdiv(gnd, vin, vout):
res = Part("Device", "R", dest=TEMPLATE)
r1 = res(value="1k")
r2 = res(value="500")
cap = Part("Device", "C", dest=TEMPL... | [
"devb@xess.com"
] | devb@xess.com |
204d8cf4a426abf12e53d13fbed07ba251bde4a7 | 722de5766ccf7e7a2d63c425a0c8dd78287f1853 | /homework4/Ex12.py | fd1aefcab13cf603c44acf56864e46ba515620a2 | [] | no_license | Alice-Avetisyan/project | 79a61bbd0ce3f5d8571a3c1d112f078f85583e0b | eb51676cdce1ff787738317aacb4c869a001b769 | refs/heads/master | 2020-07-30T09:04:07.555681 | 2019-12-15T17:15:05 | 2019-12-15T17:15:05 | 210,166,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import re
string = 'A reaaaalllyyy long string'
search = re.search('rea', string)
print(search) | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
4bc4705b0c5f6e25b33b4c3b440a2931839d8e1d | e43702704709b5c64722f8f21c530e81cbcfa3f4 | /Hack_et_Bidouille/step_9/MacroKeyboard.py | bb84c068b0693c1f03f4030a9ca5d21071edbeaa | [] | no_license | GLMF/GLMF200 | 0db0546607343743ea1abe22c5836fe88b3f8459 | 56d80954566b4ab3f602d97e931ba20bba65a7e8 | refs/heads/master | 2021-01-12T06:48:31.098483 | 2016-12-19T06:02:13 | 2016-12-19T06:02:13 | 76,832,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,346 | py | import evdev
from evdev import ecodes, UInput
import key
from configparser import ConfigParser
import ast
from gui.KeyboardLeds import KeyboardLeds
from gui.Notify import Notify
import logging
import logging.config
import pyautogui
class MacroKeyboard:
MOUSE_BTN = {key.BUTTON_LEFT : 'left', key.BUTTON_RIGHT : 'rig... | [
"tristan.colombo@gmail.com"
] | tristan.colombo@gmail.com |
b3d298466335c9f5ca3764f658192afc3d03c556 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/taxonomy/builtin_functions/slice/error_slice_parameters.py | 6c7b78a0cf9f6ccf806fb2b85a199b8498b304a2 | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: # coding=utf-8
2: __doc__ = "slice method is present, but is invoked with a wrong number of parameters"
3:
4: if __name__ == '__main__':
5: # Call options
6: # (AnyType) -> <type 'slice'>
7: # (AnyType, AnyType) -> <type 'slice'>
8: # (AnyT... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
63f5c6f169809e05a1c1c88bec3d9875c56284bd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_thudded.py | a00c7db9bd98c96d51333c65808b2fee71f3d38a | [
"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 | 218 | py |
#calss header
class _THUDDED():
def __init__(self,):
self.name = "THUDDED"
self.definitions = thud
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['thud']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5d6b71efebb6a271a66b3250e0e7046636ba5f4d | 32f5bc330388a96877d93fdd7b21599a40735400 | /Python/bitbybit.py | 4d3828f05ee797f54e45115008e3d6f1e9edac58 | [] | no_license | alexlwn123/kattis | 670180d86f0863328a16e12ed937c2fefb3226a2 | c1163bae3fdaf95c1087b216c48e7e19059d3d38 | refs/heads/master | 2021-06-21T16:26:15.642449 | 2020-12-24T20:59:10 | 2020-12-24T20:59:10 | 152,286,208 | 1 | 1 | null | 2018-10-14T22:40:09 | 2018-10-09T16:40:48 | Java | UTF-8 | Python | false | false | 891 | py | def main():
n = int(input())
while n:
bits = [-1 for i in range(32)]
for i in range(n):
line = input().split()
if line[0] == 'SET':
bits[int(line[1])] = 1
elif line[0] == 'CLEAR':
bits[int(line[1])] = 0
elif line[0] == 'AND':
i, j = int(line[1]), int(line[2])... | [
"asl0028@auburn.edu"
] | asl0028@auburn.edu |
736d6c3a30b3f19c88dbb1dfae335929360d9d92 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/plugins/strategy/test_strategy_linear.py | 4c854f532cb71f360af50c823f22c8a95ec4c5f8 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,853 | py | # Copyright (c) 2018 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.notstdlib.moveitallout.tests.unit.compat im... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
46f958cb763206d56bc7da152abd572fd4efbcdd | f848ebf1adb25cc6d188f43fb02c06dad1b01651 | /script/test_inrm_login_params.py | 5495769f03c5f39cd9e6a55464118c0e8a19183c | [] | no_license | miao88318/day03_apiTestIHRM | 673320c724d9a661fa9ed120a62e0d82118719d9 | 213e4a498055e693993b21ca2bc7942af2a25c74 | refs/heads/master | 2022-07-28T04:39:05.390142 | 2020-05-21T07:06:23 | 2020-05-21T07:06:23 | 265,769,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # ๅฏผๅ
import unittest
import logging
import requests
from parameterized import parameterized
import app
from api.login_api import TestLoginApi
from utils import assert_common, read_login_data
# ๅๅปบๆต่ฏ็ฑป,็ปงๆฟunittest.TestCase
class TestIHRMLogin(unittest.TestCase):
def setUp(self):
self.login_api = TestLoginApi... | [
"stan@stan.com"
] | stan@stan.com |
f5066bcfc3cd5773cce13c4c7639419c5523cd4a | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /opencv/opencv-3.4.2/samples/python/tutorial_code/core/BasicGeometricDrawing/basic_geometric_drawing.py | ec25d64a455c231b53d1115a53f1480bab1b6d82 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | Python | false | false | 3,092 | py | import cv2 as cv
import numpy as np
W = 400
## [my_ellipse]
def my_ellipse(img, angle):
thickness = 2
line_type = 8
cv.ellipse(img,
(W / 2, W / 2),
(W / 4, W / 16),
angle,
0,
360,
(255, 0, 0),
t... | [
"lihuibin705@163.com"
] | lihuibin705@163.com |
8524d570eba1d25b43e2af97a5dbfbeccd5cddf8 | fc73e7249e227e5507976bd3825af037fbe6b46b | /legacy/lcc_codes/lcc_ccvv.py | 9e7115bdb17baa96e0163bf5d61d2702fd92c978 | [
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | mussard/SecondQuantizationAlgebra | 32d10d85abae82da343c9b41764802f3f541d551 | ee32159e24d510654a6d38df391b544ec9ffeb4a | refs/heads/master | 2020-03-17T21:46:28.875095 | 2019-07-10T17:31:26 | 2019-07-10T17:31:26 | 133,974,911 | 0 | 0 | null | 2018-05-18T15:50:13 | 2018-05-18T15:50:13 | null | UTF-8 | Python | false | false | 7,597 | py | import secondQuantizationAlgebra as sqa
import writeCode
import geraldCode
sqa.options.verbose = False
# definitions
tag_core = sqa.options.core_type
tag_active = sqa.options.active_type
tag_virtual = sqa.options.virtual_type
a = sqa.index('Va', [tag_virtual], True)
b = sqa.index('Vb', [tag_virtual], True)
c... | [
"bastien.mussard@colorado.edu"
] | bastien.mussard@colorado.edu |
27e81b006347dc87e451cca4626b5d9a652d671e | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/labelspace_buum91dgvsyw5nzs9sywjlbfnwywnl.py | 07c893743c85322fac1af7af913f0cc8e9d27226 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 3,341 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
0e2bc5af47220d0e776cd4bfd2f23a7afeb398d4 | 789a540bbb79c334cbeaf3687876bfd939e4290b | /app/handlers/private/default/message/menu/sellers/show_category_sellers.py | db4caa4d7348436fd646cd2e4ad4ab67492dde55 | [] | no_license | ExissBrr/TRIGON-GARANT-BOT | 2cc96f5f6f195f4e76c164db4f8acafbfa5b7662 | 812acf060eb92e6fad21568a75e6dba7ce0da4d9 | refs/heads/main | 2023-07-04T18:22:43.507453 | 2021-08-17T14:51:30 | 2021-08-17T14:51:30 | 392,725,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from aiogram.dispatcher.filters import Command
from aiogram.types import Message
from app import keyboards
from app.data import text
from app.data.types.category_data import ServiceCategoryType
from app.data.types.links import category_link
from app.data.types.seller_data import SellerStatus
from app.loader import dp
... | [
"vladbelykh2002@gmail.com"
] | vladbelykh2002@gmail.com |
076e2398568768a8a288eeb4e5dd7d351fd1ea99 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003/Gather3_W_fix3blk_C_change/train/pyr_0s/L4/step09_0side_L4.py | f05661764ce1d26fa473aac73bbf00769cf8c4ad | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,007 | py | #############################################################################################################################################################################################################
from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C
from step08_b_u... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
cf9a6b4197df455636515613c5824e6d9f7308fb | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/next-greater-element-iii/282256643.py | f2f7254ab8ded0ed13d4530720a51054bf710131 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # title: next-greater-element-iii
# detail: https://leetcode.com/submissions/detail/282256643/
# datetime: Thu Nov 28 18:18:27 2019
# runtime: 28 ms
# memory: 12.7 MB
import bisect
class Solution:
def nextGreaterElement(self, n: int) -> int:
if n < 10:
return -1
digits = []
whil... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
3a408a86fe1300ed34d82149434b6881b3685bb5 | 80ea03860dedce77e53594472385657bfcd5b6cd | /test/test_cons.py | 963ab07dd3c8c669dd3fa0ffbe02335e985d7c7f | [] | no_license | RelationalAI-oss/relationalai-sdk-python | 434f0531226367d7eccc66ab6c77caafafaa3ce5 | fdea5fdec84231ae0bb3f2bfd32ed84e962052ae | refs/heads/master | 2023-06-10T01:48:05.624101 | 2021-06-29T15:07:44 | 2021-06-29T15:07:44 | 379,428,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | """
Delve Client SDK
This is a Client SDK for Delve API # noqa: E501
The version of the OpenAPI document: 1.1.3
Contact: support@relational.ai
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import rai_api
from rai_api.model.cons_all_of import ConsAllOf
from rai_api... | [
"helmiinour@gmail.com"
] | helmiinour@gmail.com |
9b57f8a69b3a2a57d25b3c849795e6816bdaf79f | 34cc1aeb6f7d0e612026905d12c85aeea989a83a | /host.py | ea56c1dc1b3f7bead8cf4ca8fd139af5b8e6233d | [] | no_license | mverzett/.bin | 83de7c0c0c16d75ca39df6c5ed95957f4ec79f9a | a1b652f5660c07690f61e79793372ad7e9d6099d | refs/heads/master | 2021-01-18T15:05:42.366559 | 2019-07-11T17:51:05 | 2019-07-11T17:51:05 | 8,330,975 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
host = os.environ['HOSTNAME']
public_html = ''
root_dir = ''
web_home = ''
#Site-dependent information
if 'wisc' in host:
public_html = '/afs/hep.wisc.edu/home/%s/public_html/' % os.environ['USER']
root_dir = 'public_html'
web_home = 'http://www.hep.wisc.edu/~mverzett'
elif 'cern.ch' in host:
... | [
"mverzett@cern.ch"
] | mverzett@cern.ch |
c34762a2d3793cb0cfb3c1d72c81137d5420837e | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/multithreading/56InterThreadComEventObjectRemoveConsumerSleep.py | b926cace99d531efc0f3c545ed4a68c5d8f0d0b3 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from threading import *
import time
def producer(event):
print("Producer thread producing items:")
print("Producer thread giving notification by setting event")
event.set()
def consumer(event):
print('Consumer sleeping')
time.sleep(3)
print(t1.getName(), 'is active:', t1.isAlive())
print... | [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
be3ca6a59c8af3295105d05abd669f9eb2c92d43 | b042a014d668bd2d9e07bcfc756022137e5b0f97 | /module3-nosql-and-document-oriented-databases/assignment3.py | 2489aa19f8091748835faafd36ce7732de8ef74d | [
"MIT"
] | permissive | JeffreyAsuncion/DS-Unit-3-Sprint-2-SQL-and-Databases | 82895211b55b08b99e9c9c426f37cb04ba6f57c6 | 5d22fe0e2dd09c4130232b5f17c52e271d9b7f6b | refs/heads/master | 2022-11-24T10:48:13.916529 | 2020-08-01T05:06:58 | 2020-08-01T05:06:58 | 281,016,493 | 0 | 0 | null | 2020-07-20T04:51:39 | 2020-07-20T04:51:39 | null | UTF-8 | Python | false | false | 1,557 | py | # Store RPG data in our MongoDB instance
import os
import sqlite3
import pandas as pd
import pymongo
from dotenv import load_dotenv
from pymongo import MongoClient
from pdb import set_trace as breakpoint
#
# Part One: get data from 1. Sqlite or 2. Postgresql
#
DB_FILEPATH = os.path.join(os.path.dirname(__file__), ".... | [
"jeffrey.l.asuncion@gmail.com"
] | jeffrey.l.asuncion@gmail.com |
56936c2628230019da57a06dab6a469fd426fba2 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-009/pedwin.py | 8c09a2eb25c02fcc984578038fd24fbea4242150 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,392 | py | #!/usr/bin/env python
import signal, os, time, sys
import gobject, gtk, gconf
import subprocess
import peddoc, pedconfig, pedofd
import pedync
# Into our namespace
from pedmenu import *
from pedui import *
from pedutil import *
STATUSCOUNT = 5 # Length of the styatus bar timeout (in sec)
tr... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
3df0a1ceeeace730a593525fe10af770673e4a9f | 57522f0bdc09c57e32f8a8e34e4c5da64aedbc86 | /ERROR_UNUSUAL/ERROE_FROM_PYTHON.py | 6ce889b0debfc93ea890cfb822d651f105813efb | [] | no_license | Alexanderklau/Start_again-python- | 97b30345e2ef13d4552d7efd82498e7e615c262e | 7ffbc2a6d53e1cff1c57258169c66bbab87210bc | refs/heads/master | 2021-01-19T03:27:53.865013 | 2017-05-01T13:47:31 | 2017-05-01T13:47:31 | 87,314,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # -*-coding:utf-8 -*-
__author__ = 'Yemilice_lau'
# NameError
# ZeroDivisionError
# SyntaxError
# KeyError
# IOError
# AttributeError
# ImportError
# ๆฃๆตๅผๅธธ
try:
try_site()#ๆฃๆต่ฟ้็ๅผๅธธ
except IOError,e:
print 'Error is:',e
# if __name__ == '__main__': | [
"429095816@qq.com"
] | 429095816@qq.com |
e54187180a4b3c1c7bb03c5ea33d3a7e525b28f0 | 7327ec847993aee7d19f647499a99aaa335894f0 | /ExceptionsClasses.py | 5f39dbc10b34c380ebfc8c145d7c28bb7d60478b | [] | no_license | chetat/chingu-journal | ae56749fd62076ab31398afbcd78acef22519033 | 1a6ef77075e866d08613a884d474303e96cb7aa8 | refs/heads/master | 2023-02-05T08:13:38.987587 | 2019-08-29T22:33:36 | 2019-08-29T22:33:36 | 200,136,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | from flask import jsonify
class BadRequest(Exception):
status_code = 400
def __init__(self, message, status_code=None, payload=None):
Exception.__init__(self)
self.message = message
if status_code is not None:
self.status_code = status_code
self.payload = payload
... | [
"yekuwilfred@gmail.com"
] | yekuwilfred@gmail.com |
4d080f5004c60a7a65725ed543f71140381ea82a | 665455c521cc7cf76c5436337ed545de90976af4 | /cohesity_management_sdk/models/protection_runs_stats.py | 07e3d61720f3193a37daf1c0aaeaedb77522bcca | [
"Apache-2.0"
] | permissive | hsantoyo2/management-sdk-python | d226273bc8eedcf9220ea4999a6f0b9a1a30d99c | 0093194d125fc6746f55b8499da1270c64f473fc | refs/heads/master | 2023-03-01T06:09:39.644085 | 2021-01-15T08:23:16 | 2021-01-15T08:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
class ProtectionRunsStats(object):
"""Implementation of the 'ProtectionRunsStats' model.
Specifies the Protection Runs statistics response.
Attributes:
num_archival_runs (long|int): Specifies the count of archival Runs.
num_backup_r... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
0c27d20fdc87eca7ffd5e3dd23dc7183700d8b76 | 503d2f8f5f5f547acb82f7299d86886691966ca5 | /atcoder/abc152_a.py | 9ff50dea04ec97c69fb7147455ba99f12c361aed | [] | no_license | Hironobu-Kawaguchi/atcoder | 3fcb649cb920dd837a1ced6713bbb939ecc090a9 | df4b55cc7d557bf61607ffde8bda8655cf129017 | refs/heads/master | 2023-08-21T14:13:13.856604 | 2023-08-12T14:53:03 | 2023-08-12T14:53:03 | 197,216,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # https://atcoder.jp/contests/abc152/tasks/abc152_a
N, M = map(int, input().split())
if N == M:
print('Yes')
else:
print('No')
| [
"hironobukawaguchi3@gmail.com"
] | hironobukawaguchi3@gmail.com |
c1cb40301e773f59af6f3d697501c53cd539d985 | 95884a6b32f6831e68c95d7785bc968a56877121 | /cifar_imagenet/imagenet_lmdb_fixed_drop.py | b0cceb1b5a01f6c87a137f3495ed598b0687dd30 | [
"MIT",
"Apache-2.0"
] | permissive | minhtannguyen/RAdam | d89c4c6ce1ce0dd95b0be3aa2c20e70ea62da8b0 | 44f403288df375bae0785cc82dd8c888eaaaa441 | refs/heads/master | 2020-08-09T07:53:50.601789 | 2020-02-17T06:17:05 | 2020-02-17T06:17:05 | 214,041,479 | 0 | 0 | Apache-2.0 | 2019-10-09T23:11:14 | 2019-10-09T23:11:14 | null | UTF-8 | Python | false | false | 25,843 | py | '''
Training script for ImageNet
Copyright (c) Wei YANG, 2017
'''
from __future__ import print_function
import argparse
import os
import shutil
import time
import random
import fcntl
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import to... | [
"mn15@rice.edu"
] | mn15@rice.edu |
0fd81e0c525d6d7d7955212ffee3b926f8fce3b1 | d039da1c0b99e2642d3c354de9faa6f427141ee3 | /problems/leetcode/AddBinary.py | 808381e8e1d6c8ea369dad3c843f8d22c2e756a4 | [
"MIT"
] | permissive | qicst23/pyshua | 5a3e317823d0620d2034adfe345eddd6a722c7ff | 4ae7bb8b626f233ebc2267024ba67dcfe49051ed | refs/heads/master | 2016-09-15T20:26:16.694738 | 2013-12-15T04:50:04 | 2013-12-15T04:50:04 | 15,198,867 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | from problems.leetcode.LeetcodeProblem import LeetcodeProblem
class AddBinary(LeetcodeProblem):
def solve(self, a, b):
array = []
i = len(a) - 1
j = len(b) - 1
plusOne = 0
while i >= 0 and j >= 0:
d1 = 1 if a[i] == '1' else 0
d2 = 1 if b[j] == '1' ... | [
"baidingding7@gmail.com"
] | baidingding7@gmail.com |
92d380a45dfc641f0c4dd4893b526402f12b7a81 | 8e4e612bd50302fce4c9b2496bd7fa58b7151f92 | /docs/examples/metaflow/src/deploy.py | 06b83b50c0ba1757b7c065fd062ee2a633d81915 | [
"Apache-2.0"
] | permissive | yaliqin/tempo | 1b30db685adcb37d2d46c356fc3b347579654d89 | 0878ae32ed6163a1c5115f20167d991a28535364 | refs/heads/master | 2023-09-02T10:51:22.167955 | 2021-11-10T07:53:26 | 2021-11-10T07:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import tempfile
from typing import Tuple
import numpy as np
from metaflow import FlowSpec, IncludeFile
from tempo.metaflow.utils import create_s3_folder, save_pipeline_with_conda, upload_s3_folder
from tempo.serve.model import Model
from tempo.serve.pipeline import Pipeline, PipelineModels
from tempo.serve.utils impo... | [
"cc@seldon.io"
] | cc@seldon.io |
6e061aed0334c5aabbf9c797a0301cfaf8794128 | 0e806bd0081741b64e499cc5aa5160e3441faf05 | /setup.py | e7bd2684c8cbd49b5e06af2799c78c537af52f41 | [
"BSD-3-Clause"
] | permissive | AngeloKandah/py4web | 8e36f749707c807d462daca690d4284223688434 | 8fc8349f7f3d87dd3d98bd256980a9f83af40361 | refs/heads/master | 2023-05-28T12:35:50.647129 | 2021-06-07T23:53:18 | 2021-06-07T23:53:18 | 370,612,357 | 0 | 0 | BSD-3-Clause | 2021-05-25T08:01:09 | 2021-05-25T08:01:09 | null | UTF-8 | Python | false | false | 1,573 | py | """
The future of web2py
"""
import subprocess
import re
from setuptools import setup
def get_version():
regex = re.compile("__version__\s*\=\s*['\"](?P<version>.+?)['\"]")
return regex.findall(open("py4web/__init__.py").read())[0]
setup(
name="py4web",
version=get_version(),
url="https://github... | [
"massimo.dipierro@gmail.com"
] | massimo.dipierro@gmail.com |
af81e0db25a608e71b0508000dc02e02530b7234 | 75db8f938e8f766ad6977b813c4170490ea570c0 | /images/img.py | 84bd12f6906bac9e98b587f98385a64d9154a869 | [] | no_license | Nzparra/Chatbot_Haana | da0df1c012a969c023e13e9a495263ca68a083ed | 7965876b68b579c0cbc248e31fe91dc35aaa0fed | refs/heads/main | 2023-04-17T11:58:44.057523 | 2021-05-05T21:38:11 | 2021-05-05T21:38:11 | 364,453,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from tkinter import *
imagelist = {
'banner': ['banner.jpg', None],
'Haanna': ['Haana.png', None],
}
def get(name):
if name in imagelist:
if imagelist[name][1] is None:
print('loading image:', name)
imagelist[name][1] = PhotoImage(file=imagelist[name][0])
return imagelist[name][1]
return N... | [
"nzparra@gmail.com"
] | nzparra@gmail.com |
cc2f34c27a84ac3c53ca9f2fdd8828c8b1ecb4ef | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/282/83193/submittedfiles/testes.py | 306b1527049883c70372090e3ca6455e127fa65f | [] | 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 | 98 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n = int(input('Digite um numero: '))
if n=>0:
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8c4a0a056672ebe9c3ab02af2964b3c37ab112a1 | 402cb8ac32c5ca7a53f5875688d1ebba1e96474b | /set103.py | 20f04fb7293b6b0248c32679c6948d0789c03aa5 | [] | no_license | Srija-U/codekataplayer | c073a13d8621f641a8aba8f23ebee4e1b673d58f | 392f24f35f178b034cfb76d2acc31bbc4b3a5814 | refs/heads/master | 2020-05-02T10:59:45.052802 | 2019-07-22T00:27:46 | 2019-07-22T00:27:46 | 177,914,184 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | n=int(input())
t=0
if(n%2==1):
n=n-1
t=1
l=[int(i) for i in input().split()]
r=[]
for i in range(n):
if(i%2==0):
r.append(l[i+1])
else:
r.append(l[i-1])
if(t==1):
r.append(l[n])
print(sep=" ",*r)
| [
"noreply@github.com"
] | Srija-U.noreply@github.com |
018cb05750fc80d8c67df193536f4cdb378257ce | 4d327de5447519d3c00e6572f74362380783006f | /source/res/scripts/client/gui/impl/windows/__init__.py | 62086e5e820d17c53b13514fc18efc2662b63020 | [] | no_license | XFreyaX/WorldOfTanks-Decompiled | 706ac55d919b766aa89f90c97a75672bf2142611 | 5025466edd0dd3e5e50a6c60feb02ae793f6adac | refs/heads/master | 2021-09-21T15:10:32.655452 | 2018-08-28T07:34:00 | 2018-08-28T07:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/windows/__init__.py
from frameworks.wulf import WindowFlags
from gui.impl.windows.content_menu_id import ContextMenuID
from gui.impl.windows.context_menu_window import ContextMenuContent, ContextMenuWindow
from gui.impl.win... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
3cea620947c202587408de931f65151901e7d471 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/106/usersdata/191/51970/submittedfiles/questao2.py | dc6a45115c8ab2373b6df6e309d2ac7593d76b60 | [] | 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 | 861 | py | # -*- coding: utf-8 -*-
ap1=int(input('digite o primeiro numero apostado:'))
ap2=int(input('digite o segundo numero apostado:'))
ap3=int(input('digite o terceiro numero apostado:'))
ap4=int(input('digite o quarto numero apostado:'))
ap5=int(input('digite o quinto numero apostado:'))
ap6=int(input('digite o sexto numero... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4ccdd823740fe9f5733cbda40c7455622cb8a1b9 | 4908b1d34d69c1cb652f25049552562574e1075f | /2020/Day-21/Allergen_Assessment/solve_1.py | bc99cdd01a13e1505ee0f04c259e5b8bf69fda85 | [
"MIT"
] | permissive | sreekesari-vangeepuram/adventofcode | 3d4ad98a25a30640182d928538b421e00ad8259d | 645531be0208affe042ac0328105b9ef3cfc9dbf | refs/heads/main | 2023-07-26T13:36:03.036721 | 2021-08-11T08:27:25 | 2021-08-11T08:27:25 | 317,850,039 | 1 | 0 | MIT | 2021-08-11T08:27:26 | 2020-12-02T12:08:13 | Go | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python
def pair_up(ingredients_list):
buff_dict = dict()
all_ingredients = list()
for row in ingredients_list:
ingredients, allergens = row.replace(")", "").split(" (contains ")
ingredients, allergens = set(ingredients.split()), set(allergen.strip() for allergen in allergens... | [
"kesari.vangeepuram@gmail.com"
] | kesari.vangeepuram@gmail.com |
d0f36bff5a8e9441f03620fa0d8be3b18a40d2c2 | 79f42fd0de70f0fea931af610faeca3205fd54d4 | /base_lib/ChartDirector/pythondemo/shadowpie.py | c14b2d3667d78add97f394492cf2a5f7860ad9dc | [
"IJG"
] | permissive | fanwen390922198/ceph_pressure_test | a900a6dc20473ae3ff1241188ed012d22de2eace | b6a5b6d324e935915090e791d9722d921f659b26 | refs/heads/main | 2021-08-27T16:26:57.500359 | 2021-06-02T05:18:39 | 2021-06-02T05:18:39 | 115,672,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | #!/usr/bin/python
from pychartdir import *
def createChart(chartIndex) :
# the tilt angle of the pie
angle = chartIndex * 90 + 45
# The data for the pie chart
data = [25, 18, 15, 12, 8, 30, 35]
# Create a PieChart object of size 110 x 110 pixels
c = PieChart(110, 110)
# Set the center o... | [
"fanwen@sscc.com"
] | fanwen@sscc.com |
0b581dfd0400c5c54324568a3983a2c3fb21fe1e | 6d8d05e6fce7ff4a6b58c4ab021ea605e8d00878 | /PDF/urls.py | 2a48ebda94a510517922c077bbd612edf326d994 | [] | no_license | joy1954islam/How-to-create-PDF-files-in-a-Django-project | 727cfd758123392b37d4f7e625c58901d0b7ef9b | 442a438536ce290009d3bf2559c7bcdfef4cefbf | refs/heads/main | 2022-12-29T17:18:52.812433 | 2020-10-14T18:07:59 | 2020-10-14T18:07:59 | 304,097,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """PDF URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"joyislam1954@gmail.com"
] | joyislam1954@gmail.com |
3969ff07af1dcbc0f0f9d92c21c339379ec8c241 | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /Week_02-Hash&stack&queue/08_nTreeLevelorder.py | 885576cab7b3f2b497b3db36a89c5a61006c158a | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,504 | py | #!/usr/bin/python3
# coding=utf-8
# TODO
# BFS ไฝฟ็จ้ๅๅฎ็ฐ queue deque
# ๆ ็จไบๆทฑๅบฆไผๅ
ๆ็ดข
import collections
class Node(object):
def __init__(self, val=None, children=None):
self.val = val
self.children = children
class Solution(object):
def levelOrder(self, root):
"""
:type root: Node
... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
352d33ea6c330f082f7b8af1d5d5a548eca76fd4 | 9b2bb0c822a2d637354c92eea8dddbdbbfea89d2 | /Generic/common/registration/api/signup_completion/apidocumentation_signup_completion.py | c16f8bf0315cf8af42f9934bb40848107e28edbb | [] | no_license | archiemb303/common_backend_django | 69d299c9bc564ef520b9c9130e7f5abd7ff68306 | 36eb9931f330e64902354c6fc471be2adf4b7049 | refs/heads/master | 2023-06-26T19:25:27.355021 | 2021-07-24T06:23:49 | 2021-07-24T06:23:49 | 389,017,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # Sample Input:
# {
# "APIDetails":{
# "token_type":1,
# "token_vendor_id":1,
# "token_string":"sdxfcgvbhjnmklasdfghjk",
# "dev_key":"sjdkljagagerukjdgjncjdsnjkfhkjasdghreuiuie@#$%$dgd#$@d234"
# },
# "APIParams": {
# "first_name":"raj",
# "last_name":"raj",
#... | [
"archiemb303@gmail.com"
] | archiemb303@gmail.com |
8078afef56368c393a9ce27d6c53b841545144d9 | cad9c13ad5864317d7687b44f39db42a402f36f0 | /lec05_module/module04.py | 96b6933788465ef6d16690f7b9e549ba9a7b5e99 | [] | no_license | handaeho/lab_python | 12b686eb0d57358509f2d0cd607064deced5b25d | da068ea62682ffa70c7d23dde4ef132c49a81364 | refs/heads/master | 2020-11-26T08:22:27.656109 | 2020-04-13T02:28:47 | 2020-04-13T02:28:47 | 229,013,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | """
module04.py
utils ํจํค์ง ์์ mymath01, mymath02 ๋ชจ๋์ ์ฌ์ฉํ๊ณ ์ ํ๋ค.
"""
# from ํจํค์ง import ๋ชจ๋
from utils import mymath01
from utils import mymath02
print(mymath01.pi)
print(mymath02.div(10, 20))
| [
"mrdh94@naver.com"
] | mrdh94@naver.com |
0370295f0a04bef959d0c9e07c0a941f55f712d2 | 0c6dd99ecc2c3228ed9d47f30b26b4ef6b207b67 | /integration_tests/conftest.py | 01fbb282c4bb6499015e574d83d96c6d67f630bf | [
"BSD-3-Clause"
] | permissive | yaelmi3/backslash | 68d14bbca63d2fe7c160418768d5573f92dcdfb5 | 3d3a10c07a01a8a3a1214a85ace70566b10697a2 | refs/heads/master | 2020-12-28T22:47:13.782026 | 2019-08-06T10:35:37 | 2019-08-06T10:35:37 | 245,207,397 | 0 | 0 | NOASSERTION | 2020-03-05T16:02:12 | 2020-03-05T16:02:11 | null | UTF-8 | Python | false | false | 2,482 | py | import json
import time
import subprocess
import requests
import pytest
from urlobject import URLObject
_docker_running = False
def pytest_addoption(parser):
parser.addoption(
"--app-url", action="store", default=None, help="Integration App URL"
)
parser.addoption("--admin-username", action="sto... | [
"vmalloc@gmail.com"
] | vmalloc@gmail.com |
61e246152188598c94c222cacb195f78cdb2a0e1 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01/aio/operations/_registries_operations.py | eb191cf74fde208bb18c065d79b2c7958a03c0fe | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 68,934 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ba1d47b84928ddee170164408faa078f1f1dd689 | 3d7a3cb5044ad1334353fd06e6c4d8aa0990de89 | /tests/test_templatetags.py | f88ecbfa12a27294518006f9316519055bbfb499 | [
"MIT"
] | permissive | Convious/django-concurrency | ed46faf91e54be58d7ed8e030b764d9537bed240 | 815230336aa173bd73df1f411a77434944958c39 | refs/heads/develop | 2023-05-11T07:10:46.448831 | 2019-08-27T17:29:39 | 2019-08-27T17:29:39 | 225,925,608 | 0 | 0 | MIT | 2023-05-02T05:10:32 | 2019-12-04T17:53:48 | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import logging
import pytest
from demo.models import SimpleConcurrentModel
from concurrency.templatetags.concurrency import identity, is_version, version
logger = logging.getLogger(__name__)
@pytest.fixture
def obj():... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
9d1001b8abd5c5a9bd0ccdf3d5411d67d97ac9cc | 61a21ed2dcdfe9a43588c5582eea38ce8fdfcbf2 | /akshare/bond/bond_futures.py | 404381fb3be49c7c36c462965ae3ccc93718a333 | [
"MIT"
] | permissive | huanghyw/akshare | 44187c6c56872d499651bb62c178ee837c776388 | ed84e937773c0420cc003793d74b73e64223e08b | refs/heads/master | 2023-04-22T07:06:08.929307 | 2021-05-02T16:05:59 | 2021-05-02T16:05:59 | 319,346,216 | 13 | 5 | MIT | 2021-05-02T16:05:59 | 2020-12-07T14:32:08 | null | UTF-8 | Python | false | false | 1,089 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2020/10/10 13:42
Desc: ๅฝๅบๆ่ดงๅฏไบคๅฒๅธ็ธๅ
ณๆๆ
http://www.csindex.com.cn/zh-CN/bond-valuation/bond-futures-deliverable-coupons-related-indicators?date=2020-09-22
"""
import pandas as pd
import requests
def bond_futures_deliverable_coupons(trade_date: str = "2020-09-23") -> ... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
99f34fa74eaf2e0f18522bb675fe078774e0b38b | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /repos/simpleapi-master/example_project/client/python/flask/testclient.py | 467379407d15db6ef518a0bf3549f60eed722cb8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
import sys
sys.path.append("../../../../")
from simpleapi.client import Client, RemoteException
calculator = Client(ns='http://localhost:5000/api/',
transport_type='xml', timeout=60)
print "5 + 5 =", calculator.add(a=5, b=16) | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
74db1bd87aa3d7a2b8f7237fe22f7e0d6381601d | f1d9df04036fc43c9e5cc7998b83261f4daa94b8 | /tests/base_test_case.py | 618b5e7cad75c6d2d82d4d926a30004158dacbc8 | [] | no_license | Eaterator/web | 019eb6547995be30b3468e5c44ecc52f05858fb4 | 9c598607f76ad770c66d85c47ffcec05f92f4d66 | refs/heads/master | 2021-01-09T20:30:13.417308 | 2017-04-25T02:44:35 | 2017-04-25T02:44:35 | 81,286,177 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | from datetime import datetime
import json
import random
from application.app import create_app
from application.auth.models import Role, User
from application.auth.auth_utilities import PasswordUtilities, ACCESS_TOKEN_HEADER
from application.recipe.models import Ingredient, IngredientRecipe, Recipe
from application.aut... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
c40a4d51b0c5e6ad6b99005c2341a3eccd0a3b90 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/111 Minimum Depth of Binary Tree.py | f77921ed53bd989cfd4ee577d98dec3b06404713 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 875 | py | """
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.
"""
__author__ = 'Danyang'
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
c... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
efd5603bda7dcc385b754567a05f493a43bc8d0b | ed48e992ad5fbb579afae6d0f7e6df775f8d306e | /lib/util.py | d5df4f598dd4accf11d107af1830400849d1696e | [] | no_license | sterlingbaldwin/e3sm_to_cmip | 6a23b92145c042af16979ff67b17555c3a9222e8 | bc5bcfaad5901eb6f07ab450eeab20144f4029cb | refs/heads/master | 2020-03-12T12:08:30.743456 | 2018-04-25T23:27:47 | 2018-04-25T23:27:47 | 130,611,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import sys
import traceback
def format_debug(e):
"""
Return a string of an exceptions relavent information
"""
_, _, tb = sys.exc_info()
return """
1: {doc}
2: {exec_info}
3: {exec_0}
4: {exec_1}
5: {lineno}
6: {stack}
""".format(
doc=e.__doc__,
exec_info=sys.exc_info(),
exec_0=sys.exc_... | [
"baldwin32@llnl.gov"
] | baldwin32@llnl.gov |
f8108f1761c2e56a4f7449a8e629de145543dded | e3f5f41b242650b4bef68aa191a5779aedd3e02e | /Chapter03/config.py | d12aeca3649c2d96b68e8b32d23a06c74a03f285 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Flask-Web-Development-Second-Edition | d4675c047bb51b0154958205f53c962ab4d32e4c | c3174127b40f8af1e2ab5e614994ffed7acbc11b | refs/heads/master | 2023-05-11T00:23:30.213655 | 2023-01-18T09:14:14 | 2023-01-18T09:14:14 | 154,667,293 | 168 | 131 | MIT | 2023-05-01T20:52:13 | 2018-10-25T12:30:58 | Python | UTF-8 | Python | false | false | 483 | py | class Config(object):
POSTS_PER_PAGE = 10
class ProdConfig(Config):
SECRET_KEY = '\xcb\xd7\x8a.\x82\x9c1Lu\xf1&2\xf6i\xfa\x8e\xb1\xc9t^\xccW\xdbw'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
class DevConfig(Config):
DEBUG = True
SECRET_KEY = '\xa8... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
ccf8ee337ea275a691e6d35ae32738e200fead01 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ZH3l/STXS_nanoAOD/v5/Full2018nano_STXS_1p1/aliases.py | 303e9601b0371fd3ca5cf4bb282c6e5665853816 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 2,914 | py | #Aliases (mostly btag)
mc = [skey for skey in samples if skey not in ('Fake', 'DATA')]
#2017
#bWP = '0.1522' #Loose
bWP = '0.4941'
aliases['bVeto'] = {
'expr': '(Sum$( CleanJet_pt > 20.0 && Jet_btagDeepB[CleanJet_jetIdx] > '+bWP+' ) == 0)'
}
aliases['dphilmet_mme'] = {
'expr': '( (abs(PuppiMET_phi-Lepton_phi[... | [
"Susan.Dittmer@cern.ch"
] | Susan.Dittmer@cern.ch |
0f549c7b98395f5a504787ed41be7b2cb7f15398 | 3d5bcd57b893c95bbcbfafe77bbc33c65432c9ed | /Algorithms/LeetCode/L1268suggestedProducts.py | 6022d3b1d95efdd64998c9ee172cc452f33506fb | [] | no_license | arunachalamev/PythonProgramming | c160f34c7cb90e82cd0d4762ff9dcb4abadf9c1c | ea188aaa1b72511aeb769a2829055d0aae55e73e | refs/heads/master | 2021-06-04T03:50:37.976293 | 2020-11-12T19:52:28 | 2020-11-12T19:52:28 | 97,364,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # Given an array of strings products and a string searchWord. We want to design a system that suggests
# at most three product names from products after each character of searchWord is typed.
# Suggested products should have common prefix with the searchWord. If there are more than three products
# with a common pre... | [
"arunachalamev@gmail.com"
] | arunachalamev@gmail.com |
a3a3f127f0d5d5d6cd29ffc6073cb8100e216345 | 976f270299c39d9c1c20a3ac3022ac1a32fc2f68 | /project/helper.py | d4455cd0799708cf80401e7ac4100741675059e2 | [
"Apache-2.0"
] | permissive | yazici/starthinker | 958bfe35e4a8a422c7f4146c8eb36de05c2e6761 | bdbac52ee57add39f71c37e599fbf5eb03782e20 | refs/heads/master | 2020-04-29T21:23:36.852893 | 2019-03-11T07:31:24 | 2019-03-11T07:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | ###########################################################################
#
# Copyright 2018 Google Inc.
#
# 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
#
# https://www.apache.org... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
79bf0be94707c72897e7b2b72d58a43560d61f7d | 5708bbb9da243bec789a3ddff394e12cf89c956e | /tests/write_separate_files.py | 58e04e16985c97f39e36590ecec220a4b00e12f5 | [] | no_license | webclinic017/CacheFS | 39d9f2898ab3f9cf3dc0d1dd64a4a323be8fe09d | 8a50cfe0301e1938753817138411dcc4b0a68bcd | refs/heads/master | 2023-03-14T20:14:00.018678 | 2020-08-04T12:48:47 | 2020-08-04T12:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import sys
import os
import shutil
num = int(sys.argv[1])
assert 0<num<20
port = 1234 + num
path = '/data/cache%d/yxr' % num
if not os.path.isdir(path):
os.makedirs(path)
def app(env, start_response):
name = path + env['PATH_INFO']
with open(name, 'w') as f:
shutil.copyfileobj(env['wsgi.input'], f... | [
"617080352@qq.com"
] | 617080352@qq.com |
75efac61085d8599a4694b34ba6e566b551e5886 | 6773e281d2000faf724713571a326fe5440acce2 | /phone/migrations/0002_auto_20210320_2137.py | fff685720e89d0996234dbaf8a556e1cac735d1a | [] | no_license | abhisheksahu92/Phone-Directory | 4a16f69504e5153c29fbeceaad0c4a7e19f72c1c | 87ed73c015caf3c05364e02b6364756d2e1f87a4 | refs/heads/main | 2023-04-20T09:56:56.697106 | 2021-05-10T12:35:10 | 2021-05-10T12:35:10 | 349,765,236 | 0 | 0 | null | 2021-05-10T12:33:51 | 2021-03-20T15:37:39 | HTML | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.7 on 2021-03-20 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('phone', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='phonemodel',
name='middle_name',
... | [
"70888785+abhisheksahu92@users.noreply.github.com"
] | 70888785+abhisheksahu92@users.noreply.github.com |
9b993cbfd369e7ff3ce902afd7a151cb5a0aeeec | ed79ce1f816daf0e9b27092a0cfdd24ed727994b | /services/core/SEP2Agent/tests/SEP2DriverTestAgent/test_agent/agent.py | 2b5e12e0e750b2908708cc6e80a8ec1eab675204 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | cbs-iiith/volttron | ca00430c5c89f612fbf8fedc7c65fb90cae16ee3 | a676d4af19a808581dde172ab08820087854e157 | refs/heads/dev-cbs-iiith | 2022-09-11T03:35:59.311254 | 2020-01-21T10:29:57 | 2020-01-21T10:29:57 | 59,084,828 | 2 | 0 | NOASSERTION | 2020-01-21T10:33:38 | 2016-05-18T05:31:50 | Python | UTF-8 | Python | false | false | 16,826 | py | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
# Copyright (c) 2017, SLAC National Laboratory / Kisensum Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
... | [
"sambabug@gmail.com"
] | sambabug@gmail.com |
dd68c7efbbedecd20d7e2eff84b6e32ac1718b24 | 1065a2782e4947b5bf14ec4536e4ad7addc7aec3 | /strategy/crystalball/cbparameters.py | 8c14b84a9ff8bc41f5a523fbe7de690157eb87d1 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Johannesduvenage/siis | 0bf6875d4a5f3638cadb01ed5541aab29ba1d77a | 57e537cf9b6a71c8ad0b3bb0759772d126496a17 | refs/heads/master | 2020-09-10T21:51:56.814014 | 2019-11-13T23:57:34 | 2019-11-13T23:57:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,831 | py | # @date 2019-01-19
# @author Frederic SCHERMA
# @license Copyright (c) 2019 Dream Overflow
# Crystal ball strategy indicator default parameters.
DEFAULT_PARAMS = {
"reversal": True,
"pyramided": 0,
"hedging": False,
"max-trades": 3, # max number of simultaned trades for a same market
"trade-dela... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
f8c640ad9578ce1e96ba5f59ec9a5fe0ccec315b | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211028131744.py | 21593a603e8e73c799d5612010a2ae348848b646 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 9,428 | py | import data as list_product
import random
# def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
# self.Id = Id
# self.Product_code = Product_code
# self.Product_name = Product_name
# self.Brand = Brand
# self.Year = Year
# self.Size = Size
# Thรชm sแบฃn phแบฉm
def AddProduct():
... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
09402cd9cb8b46c4bea215f5fb80144e37a7266b | 045025f41201dba54c005dd0601d97ccdedf3062 | /ScrapePlugins/MangaPark/FeedLoader.py | fd8b09f1220b87bdd841d7a1030882891c7728a3 | [] | no_license | Gazzilow/MangaCMS | 6720c45c63c0429cc0e0a37d99738bfb553ca98b | e620bfef62c9b3d4678b635a2ea6463ffb26fc34 | refs/heads/master | 2021-01-22T09:40:17.277953 | 2015-12-19T21:33:25 | 2015-12-19T21:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py |
import webFunctions
import bs4
import re
import urllib.parse
import time
import calendar
import dateutil.parser
import runStatus
import settings
import datetime
import ScrapePlugins.RetreivalDbBase
class FeedLoader(ScrapePlugins.RetreivalDbBase.ScraperDbBase):
loggerPath = "Main.Manga.Mp.Fl"
pluginName = "Ma... | [
"something@fake-url.com"
] | something@fake-url.com |
6605bcf24b243c6cbe8ac5a6bd439b0d5204fe19 | dd05adda58c40b3a6593d89c53be1ce64df2be0a | /partd/encode.py | 3e3a15f7966f18e7ac388517e92437fc832a5ecd | [] | permissive | dask/partd | 4fb98971d4f9b891ca944584517be3157e06de81 | 4183caf149b686538752608bac6acbaa052dba23 | refs/heads/main | 2023-07-20T04:38:51.234966 | 2023-07-17T21:12:35 | 2023-07-17T21:12:35 | 35,185,364 | 94 | 35 | BSD-3-Clause | 2023-07-17T21:12:37 | 2015-05-06T22:08:45 | Python | UTF-8 | Python | false | false | 1,287 | py | from .core import Interface
from .file import File
from toolz import valmap
from .utils import frame, framesplit
class Encode(Interface):
def __init__(self, encode, decode, join, partd=None):
if not partd or isinstance(partd, str):
partd = File(partd)
self.partd = partd
self.en... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
6612c6f4c3bdadebf80c104974b4eb724807ed7d | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network2841_1.py | 7b1d642fe6767e4eb58b8f5522f08e99ec0b79c4 | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,701 | py | species(
label = '[CH]=CC([CH2])([CH2])[O](9680)',
structure = SMILES('[CH]=CC([CH2])([CH2])[O]'),
E0 = (664.937,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3120,650,792.5,1650,3010,987.5,1337.5,450,1655,3000,3033.33,3066.67,3100,415,465,780,850,1435,1475,900,1100,212.485,212.488,212.4... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
6028ec0837d82763699b394753bc8459206e12af | 8b2ff2f65b8bc55d1a4643e29cc6f30d6cba5688 | /live/django_form/articles/views.py | 425af1be08ecd3ce793270e9b42caa24c3d60822 | [] | no_license | chloe-codes1/Django | a177161a89b3f3592b04c5711246847d4f0dd32f | 496d7219d7f9aa7269d160f46f2efa4b9bf07431 | refs/heads/master | 2023-08-07T21:27:34.523326 | 2023-05-27T13:10:22 | 2023-05-27T13:10:22 | 250,606,673 | 0 | 1 | null | 2023-09-04T08:49:57 | 2020-03-27T17:57:34 | Python | UTF-8 | Python | false | false | 1,759 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from .models import Article
from .forms import ArticleForm
# Create your views here.
def index(request):
articles = Article.objects.order_by('-pk')
context = {
'articles': articles
... | [
"juhyun.kim@lindsey.edu"
] | juhyun.kim@lindsey.edu |
b8f094584d71326d60fc7d0ae1dc6345b4a8c508 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-k8s/tests/clustering/assisted-clustering.py | 7a76ab10eaba664de63a610c5d9aaabf790e4cb0 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 7,324 | py | import requests
import argparse
import sys
import os
import time
from kubernetes import client, config, watch
def wait_deployment_ready(deployment_name: str, namespace: str) -> client.V1Deployment:
"""
Waits until a deployment of given name is reported to be in status `Ready` by Kubernetes.
A deployment ... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
34a8508b05c051e30a87c9cb6406fa5fa9cd3217 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/aio/operations/_load_balancer_outbound_rules_operations.py | 4ab8d34ddefaee388144231247b7c4e6d8cca28f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 8,678 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
30fd9db05df431710018b687699b91fdd66bbcdb | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abc051/abc051_c/Main.py | 98d9a7d6607c0487dc39d1ee50d494f2896dd483 | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | sx,sy,tx,ty=map(int,input().split())
x=tx-sx
y=ty-sy
print("U"*y+"R"*x+"D"*y+"L"*(x+1)+"U"*(y+1)+"R"*(x+1)+"DR"+"D"*(y+1)+"L"*(x+1)+"U")
| [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
750fb27f6a170e51ac8642a895809d77abbe5c79 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/tlm/model/horizon.py | 7be9064ed94952c7a890c3e99e51cc021bd43131 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 15,593 | py | from typing import List
import math
import tensorflow as tf
from models.transformer import bert_common_v2 as bc
from models.transformer.bert_common_v2 import get_shape_list2, create_attention_mask_from_size
from tlm.model import base
from tlm.model.base import mimic_pooling
from tlm.model.units import Embedding2
deb... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
d5de6683f124bae4468b8e2827a58b7b9fde5378 | 0b514feea82eaa2e341130d9e23d13d72271d644 | /3.Python_Coding_Basic/Step_01/Unit_11-1.py | 79a6192f84771f6e99d0e62b4531770a79637d29 | [] | no_license | Jerrykim91/FromZero | f8478012130948a11978a46ab6ec7922cb354a8f | fdd5a0716b29c77019cfcd1e1eab7ed4afd1aed4 | refs/heads/master | 2022-12-25T15:04:22.656462 | 2020-10-10T14:35:06 | 2020-10-10T14:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | # ์ฌ์ฉ์ ํจ์
from fun_pkg.random_num import random_num # ๋๋ค ์ซ์ ์์ฑ
# Unit_11-1.py
# ์ธ๋ฑ์ค ์ฌ์ฉํ๊ธฐ
txt_index = """
# ์ธ๋ฑ์ค ์ฌ์ฉํ๊ธฐ
=> ์ํธ์ค ๊ฐ์ฒด์ [](๋๊ดํธ)๋ฅผ ๋ถ์ด๊ณ []์์ ๊ฐ ์์์ ์ธํ
์ค๋ฅผ ์ง์ ํ๋ฉด ํด๋น ์์์ ์ ๊ทผ๊ฐ๋ฅ
- ์ํธ์ฆ ๊ฐ์ฒด์ ๋ค์ด์๋ ์์์ ์ ๊ทผํ๋ ๋ฐฉ๋ฒ์ ํ์ธ
- ์ํธ์ฆ ๊ฐ์ฒด์ ๊ฐ ์์๋ ์์๋ ์ ํด์ ธ ์์ผ๋ฉฐ ์ด ์์๋ฅผ ์ธ๋ฑ์ค๋ผ๊ณ ํจ
์ํธ์ค ๊ฐ์ฒด[์ธ๋ฑ์ค]
## ์ธ๋ฑ์ค( index, ์์ธ )
- ์์นซ๊ฐ์ ๋ปํ๋๋ฐ ๊ตญ์ด์ฌ์ ์๋ฉด์ ใฑ, ใด... | [
"sun4131@gmail.com"
] | sun4131@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.