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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
55788f33556b242120da7dff43c2a5e7578fb64d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/_exercises/_templates/Advanced_Python_Scripting/011_Icons_and_Images/icon_widget/icons/icons.py | 7aa152d9cdd2c88ed2b86e5a59f52b4da42c666a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 453 | py | _____ __
root _ __.path.d_n..(__file__)
icons _ dict(
create_ __.path.j..(root, 'create.png'),
clear_ __.path.j..(root, 'clear.png'),
open_ __.path.j..(root, 'open.png'),
close_ __.path.j..(root, 'close.png'),
save_ __.path.j..(root, 'save.png'),
item1_ __.path.j..(root, 'item1.png'),
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e7e6b528d5a2936474a17e5073c55ffa7bb997be | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03523/s827253358.py | 1164855af7c1bf781ddb8e7f83f67134513679c1 | [] | 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 | 353 | py | #AKIHABARA
S = input()
T = ["AKIHABARA",
"AKIHABAR",
"AKIHABRA",
"AKIHBARA",
"KIHABARA",
"AKIHABR",
"AKIHBAR",
"KIHABAR",
"AKIHBRA",
"KIHABRA",
"KIHBARA",
"AKIHBR",
"KIHABR",
"KIHBAR",
"KIHBRA",
"KIHBR"]
for t in T:
if t == S:
print(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c200ecb927f396d9dd4e952d476445c4b10b3572 | 1e3e731bc1331a9ec35d3c74070ca931f699ea36 | /六月/作业/智联招牌.py | df51228101212a33839ed05aa35563ce9f7bacde | [] | no_license | liruixiong/all | 63180a8503b3f72156f041424db79f7be783b837 | 3fcb7280f7bffa2b5b8be2f06c1417a73da113eb | refs/heads/master | 2020-04-27T16:40:28.550885 | 2019-03-08T07:56:06 | 2019-03-08T07:56:06 | 174,490,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | from selenium import webdriver
import queue,time
import requests
from lxml import etree
from selenium.common.exceptions import NoSuchElementException
class zhilianSpider():
def __init__(self):
opt = webdriver.ChromeOptions()
opt.set_headless()
self.driver = webdriver.Chrome(
e... | [
"1356703763@qq.com"
] | 1356703763@qq.com |
5b22262dd24883caa736009fbd3bf6aab8a7d23d | c29de7ce2d91f572aeb4da56801de7a1dc034054 | /meta_st/experiments/cifar10/exp003_000.py | 59e0293266a428a602d0b647f8e860f25275a033 | [] | no_license | kzky/works | 18b8d754bfc2b1da22022926d882dfe92ea785e6 | b8708c305e52f924ea5a7071e0dfe5f2feb7a0a3 | refs/heads/master | 2021-01-10T08:04:44.831232 | 2018-03-01T15:09:47 | 2018-03-01T15:09:47 | 54,316,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from meta_st.cifar10.experiments003 import Experiment000
from meta_st.utils import to_device
from meta_st.cifar10.datasets import Cifar10DataReader, Separator
import numpy as np
import os
import numpy as np
import sys
import time
import chainer.functions as F
from chainer import cuda
from chainer import Variable
def m... | [
"rkzfilter@gmail.com"
] | rkzfilter@gmail.com |
28cb0b77d37d582134de52f6d5392e03ae9a472e | fabb582761feb41bcb1a94c90d16ef0b4c87e212 | /tools/assemble.py | 8dd072efb78f915bd26363e868d8d6019223e518 | [
"MIT"
] | permissive | mfoolio/dbus-recorder | d79665f01ccc61ad93c513f1656be2f5067f2e52 | 89f52b18639827414d99dff7dd2ee91d9692d24e | refs/heads/master | 2023-06-10T17:00:22.959003 | 2021-06-26T12:32:11 | 2021-06-26T12:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | import sys
import dbus
from csv import reader as csvreader, excel_tab
import json
import pickle
class PropertiesChangedData(object):
def __init__(self, time, dbusObjectPath, changes):
self._time = time
self._dbusObjectPath = dbusObjectPath
self._changes = changes
def demarshall(typ, v):
de = {
"INT32": dbus... | [
"isburger@gmail.com"
] | isburger@gmail.com |
c8e75ce19f87ff12350a8ef7b4257ea81fc84f21 | 0fa03797c72ea761206a9b9cb92e1303d9d7e1b1 | /Lesson 11 - Code Clinic/Ch02/solution/gmaps_locator.py | 19291be360d9a33986da1ab4284b0113b04d42c2 | [] | no_license | denemorhun/Python-Reference-Guide | c2de64949a6cb315318b7b541460c51379705680 | 450c25435169311f068d9457fbc2897661d1d129 | refs/heads/main | 2023-05-08T21:49:46.217280 | 2021-03-27T12:03:17 | 2021-03-27T12:03:17 | 319,233,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | #!/usr/bin/python3
# refer here: https://developers.google.com/maps/documentation/geolocation/get-api-key
# api key: AIzaSyDGQ8mM3NUUnXgiRhsGtIvjdNSuIBe469U
""" Geolocation via Google Maps API by Barron Stone for Code Clinic: Python """
import re
import subprocess
import requests
API_URL = 'https://www.googleapis.com... | [
"denemorhun@gmail.com"
] | denemorhun@gmail.com |
a8c13a32f6efd7f849671d0ee59153d6a76176a1 | 3ff9da93557ca808b6bb2210603abac25fe640fd | /TeachingMaterials/BookAndLecutreData/python_middle_class/chapter5_firstclass_function/p_chapter05_04.py | b1e27c77542fde9c6be06ffe3e0404081685d661 | [] | no_license | imn00133/PythonSeminar | 44a83e8ed224fb222aff78cb5b1edf0ec0399074 | 854e172cf2f075b868f6653358fc2a997015fe61 | refs/heads/master | 2021-01-03T11:10:32.652173 | 2020-06-27T07:24:27 | 2020-06-27T07:24:27 | 240,055,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | import time
def perf_clock(func):
def perf_clocked(*args):
st = time.perf_counter()
result = func(*args)
et = time.perf_counter() - st
name = func.__name__
arg_str = ', '.join(repr(arg) for arg in args)
print(f'[{et:0.5f}] {name}({arg_str}), -> {result}')
... | [
"imn00133@gmail.com"
] | imn00133@gmail.com |
496f8d03f42e0528c4c3811815991ef2e322c752 | a34507bee8dc5502c663a71f3e98257f8ff0334d | /16_剑指offer二刷/剑指 Offer 44-数字序列中某一位的数字.py | f91b12f3585773a9375a89532930497598373345 | [] | no_license | michelleweii/Leetcode | 85b7876a3e283f3982dd86de01ccc5470e63388f | 0c09b5a018e7334bd49dd251834fc8e547084cc1 | refs/heads/master | 2022-05-17T07:28:23.684720 | 2022-04-28T12:40:48 | 2022-04-28T12:40:48 | 149,776,312 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | """
middle 找规律
2021-07-20
不用再做了,放弃了
https://leetcode-cn.com/problems/shu-zi-xu-lie-zhong-mou-yi-wei-de-shu-zi-lcof/solution/mian-shi-ti-44-shu-zi-xu-lie-zhong-mou-yi-wei-de-6/
"""
class Solution:
def findNthDigit(self, n: int) -> int:
digit, start, count = 1, 1, 9 # 数字,第几位数,数位数量
while n>count:
... | [
"641052383@qq.com"
] | 641052383@qq.com |
081aa0665dd831edddc678a920abf3da70307d6c | c9fe05f893deff75232aabca4e877c144972249a | /arcpyenv/arcgispro-py3-clone/Lib/site-packages/osgeo/samples/gdal_ls.py | 33a263ecfd823566678387d7b65da968dbf7eca3 | [
"Python-2.0"
] | permissive | SherbazHashmi/HackathonServer | 4d1dc7f0122a701a0f3a17787d32efe83bc67601 | a874fe7e5c95196e4de68db2da0e2a05eb70e5d8 | refs/heads/master | 2022-12-26T06:46:33.893749 | 2019-11-03T10:49:47 | 2019-11-03T10:49:47 | 218,912,149 | 3 | 3 | null | 2022-12-11T11:52:37 | 2019-11-01T04:16:38 | Python | UTF-8 | Python | false | false | 8,262 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# $Id$
#
# Project: GDAL samples
# Purpose: Display the list of files in a virtual directory, like /vsicurl or /vsizip
# Author: Even Rouault <even dot rouault at mines dash paris ... | [
"sherbaz.hashmi@gmail.com"
] | sherbaz.hashmi@gmail.com |
813a367278239ea1c0ec4838dbf730086b309c0a | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/framework/__init__.py | 06d1e63248ff933a629d27f60404c2cdd401d0d5 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 180 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/framework/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
43818a9ff5a1d21cbcf0dc37611d2e9fca62b24b | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/61a_hw4/src/17.py | b6f3a8eaa2efb57181e666d7ef94e6ce6b76cb2a | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 270 | py | def num_common_letters(goal_word, guess):
lst=[]
count=0
for i in goal_word:
for j in guess:
if i==j:
count+=1
lst.append(j)
if lst.count(j)>1:
count-=1
return count
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
47800eb3d666522b8f63a1db7855b30e20d526bf | 7d05b67a6d75b8b182a4eecc95b63f7864c5f5ea | /tests/test_xpath_nodes.py | 4e61c5bf1d7d05f1eb27484c37c5e3d99db22806 | [
"MIT"
] | permissive | byteface/elementpath | 18f90ad2a5978515ee8614d0ca81526ba5fe2560 | 963c14ef7648b46b4af1ce20ac351b9ff50eb296 | refs/heads/master | 2023-08-28T10:33:13.704646 | 2021-11-09T17:24:50 | 2021-11-09T17:24:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,141 | py | #!/usr/bin/env python
#
# Copyright (c), 2018-2021, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author Da... | [
"brunato@sissa.it"
] | brunato@sissa.it |
dcabf49510e5aa7bc29f03ff27b25f63bfe71212 | fd69d76dcfe60b97ca02eb853e3f2cd2b68d990e | /dynamic programming/Coin Change.py | 334ec49540352744274a08d003cc9566ec150b60 | [] | no_license | Levalife/DSA | f3204946c9225f0472ec8470c0fbe29357559f35 | 4e5a94ba94fa5be01f4760a2651001426b3ef973 | refs/heads/master | 2023-01-23T03:51:48.864888 | 2020-11-27T13:58:04 | 2020-11-27T13:58:04 | 298,612,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | '''
https://leetcode.com/problems/coin-change/
https://www.youtube.com/watch?v=jgiZlGzXMBw
Problem can be solved both top-bottom (recursion + memoization) and bottom-top (from subproblems to result) ways.
Bottom-Top approach:
create result array which will contain minimum possible coin change for every amoun <= am... | [
"levushka14@gmail.com"
] | levushka14@gmail.com |
62409831b65674479983f5c9d648acdfa5dc69e2 | 0a6a1c2b22e5b0a6cae8d096d04ab1fda204090a | /.history/main_20200613205457.py | 3c9342047027690c823c773d5bff9375dc5b9986 | [] | no_license | whxb69/pic_merge | 66afb6db671c7e42cea29a110a515efbf157c427 | 46a708b54b58858674450ab147b3a94cb85d7040 | refs/heads/master | 2020-09-05T23:56:17.342784 | 2020-06-16T15:13:58 | 2020-06-16T15:13:58 | 220,250,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | import PIL.Image as Image
from ui import *
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
import cgitb
import math
from xml.etree import ElementTree as ET
import time
import os
import PyQt5.sip
import sip
cgitb.enable()
class Mainwindow(QMainWindow, Ui_MainWindow):
d... | [
"smvlboy@outlook.com"
] | smvlboy@outlook.com |
03de68eea2c5dce71b1a4497f5bb35e21ceb9451 | 07c4c39a3f43aa41327702329cddf555ac489f0e | /.PyCharmCE2019.1/system/python_stubs/1499390420/_contextvars.py | 6a3fbd481ee00dd72d052ee17bf0dbc526d40a1a | [] | no_license | shirotakoki/teran | a2ba42c2d2c605c7421b35dc1dfa5f51baec0fd7 | 13c5e8d7484d148c3490726aa860d5a10165381b | refs/heads/master | 2023-02-04T21:18:51.829188 | 2020-09-27T08:26:54 | 2020-09-27T08:26:54 | 323,551,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # encoding: utf-8
# module _contextvars
# from (pre-generated)
# by generator 1.147
""" Context Variables """
# no imports
# functions
def copy_context(*args, **kwargs): # real signature unknown
pass
# classes
class Context(object):
# no doc
def copy(self, *args, **kwargs): # real signature unknown
... | [
"teranosinn@gmail.com"
] | teranosinn@gmail.com |
8d1dba296144cb22e945dcaf132480e3b1ebd872 | cba90cdd06eced813be6ad80e6295587223c4600 | /betfairlightweight/resources/scoresresources.py | 7598dd9375e6d5bccefe9adca5925db781d2cb18 | [
"MIT"
] | permissive | mberk/betfair | 1a22528b881e02567626dbe7e8c4f0197809c38e | 6b064a68c8d2afceda81b70d74b6a0ee9601f228 | refs/heads/master | 2023-03-07T02:33:06.443407 | 2022-08-16T08:06:10 | 2022-08-16T08:06:10 | 192,976,576 | 0 | 1 | MIT | 2023-03-01T12:03:37 | 2019-06-20T19:28:23 | Python | UTF-8 | Python | false | false | 2,063 | py | from .baseresource import BaseResource
class RaceDetails(BaseResource):
def __init__(self, **kwargs):
super(RaceDetails, self).__init__(**kwargs)
self.response_code = kwargs.get("responseCode")
self.race_id = kwargs.get("raceId")
self.meeting_id = kwargs.get("meetingId")
se... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
1d585fdbfce0610e37d807f1e0f470264a85195e | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /nn_ns/CJK/CJK_common/is_hz.py | 399633878193bc9056ba447ae89f8e2894eba178 | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,498 | py | #__all__:goto
r'''[[[
e ../../python3_src/nn_ns/CJK/CJK_common/is_hz.py
see:
view ../../python3_src/nn_ns/CJK/CJK_common/is_hz.py
view script/字词典囗用字统计囗.py
view ../../python3_src/nn_ns/CJK/CJK_data/raw/拼音用字.py
#注意:PUA/私用区汉字!!
=====
nn_ns.CJK.CJK_common.is_hz
py -m nn_ns.app.debug_cmd nn_ns.CJK.CJ... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
34f00e997feb3e144f1bf4ff4d8fc5354a7de92b | e559ee90bcf7078b2c5a3f3266f8a67436470bbe | /theanolm/architecture.py | 9e20db91b6d3cc95fd10efb547c5bf28d4c3fadd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | anirudh9119/theanolm | d63e31b5df93a5dd373725a04efc6efa3a1420fb | 5ce8a92ccc37b275a141d1a90eadd8c7f06e7a33 | refs/heads/master | 2021-01-12T13:10:07.908450 | 2016-03-07T09:01:23 | 2016-03-07T09:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,538 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from theanolm.exceptions import IncompatibleStateError, InputError
class Architecture(object):
"""Neural Network Architecture Description
A description of the neural network architecture can be read from a text
file or from a neural network state stored ... | [
"seppo.git@marjaniemi.com"
] | seppo.git@marjaniemi.com |
ede9959fa95815e07869c9bb72859cc692c8a2f8 | 1e013dc5f0de0f61e27f2867557803a01c01f4da | /Language/python/grammer/import_module/relative_import/main.py | 08b299234c17012c7007b42320000b2f697579da | [] | no_license | chengyi818/kata | a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9 | a7cb7ad499037bcc168aaa0eaba857b33c04ef14 | refs/heads/master | 2023-04-10T18:39:09.518433 | 2023-01-08T15:22:12 | 2023-01-08T15:22:12 | 53,040,540 | 1 | 0 | null | 2023-03-25T00:46:51 | 2016-03-03T10:06:58 | C++ | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
# =============================================================================
# FileName: main.py
# Desc: main-->module_x
# Author: ChengYi
# Email: chengyi@antiy.cn
# HomePage: http://www.antiy.com/
# Created: 2016-11-26 15:14:... | [
"chengyi818@foxmail.com"
] | chengyi818@foxmail.com |
eabdb3d4ff010f5207f8bb3be3e30d2ded7f11be | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /CLOVER/clov_-10scatter_density.py | 71d305a2448e9ae9a88aa37d8c93783ac93e237c | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | import seaborn as sns
import pickle as pkl
pal = sns.color_palette('Blues')
sns.set_context("paper", font_scale=1.5)
sns.set_style("ticks")
from scipy.stats import gaussian_kde
import numpy as np
import matplotlib.pyplot as plt
import pdb
# In[2]:
dic = pkl.load( open ('/users/global/cornkle/data/CLOVER/saves/bulk_-1... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
cc6cbbbc4f2b7399d8d7e42cb7e619fe7c60a932 | 27ece9ab880a0bdba4b2c053eccda94602c716d5 | /.history/server_20181130085104.py | 6bb14fb5c29497e89348583846d4851d8b85f54c | [] | no_license | Symfomany/keras | 85e3ad0530837c00f63e14cee044b6a7d85c37b2 | 6cdb6e93dee86014346515a2017652c615bf9804 | refs/heads/master | 2020-04-08T20:21:35.991753 | 2018-11-30T08:23:36 | 2018-11-30T08:23:36 | 159,695,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | """
https://pypi.org/project/Flask/1.0.2/
"""
import json, argparse, time
import tensorflow as tf
from load import load_graph
from flask import Flask, request
from flask_cors import CORS
##################################################
# API part
##################################################
app = Flask(... | [
"julien@meetserious.com"
] | julien@meetserious.com |
9f3039b71409b1eddd59337e1c261db1c5ab2cf8 | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/R4B/tests/test_condition.py | e519fbcfc0d898dccc2d57af96fd84f0dab0f16c | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 26,345 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/Condition
Release: R4B
Version: 4.3.0
Build ID: c475c22
Last updated: 2022-05-28T12:47:40.239+10:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import condition
def impl_c... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
bfc6e309461e3735757c9e2e4f881446a7df2732 | 41777d4d219ea97b4632f4a8a31ab6c82a60772c | /kubernetes_typed/client/models/v2beta1_pods_metric_source.py | 62c3b853affb7dca665fd1ab5030b91f3f3be43e | [
"Apache-2.0"
] | permissive | gordonbondon/kubernetes-typed | 501d9c998c266386dc7f66f522f71ac3ba624d89 | 82995b008daf551a4fe11660018d9c08c69f9e6e | refs/heads/master | 2023-07-18T12:06:04.208540 | 2021-09-05T19:50:05 | 2021-09-05T19:50:05 | 319,183,135 | 24 | 2 | Apache-2.0 | 2021-09-05T19:50:06 | 2020-12-07T02:34:12 | Python | UTF-8 | Python | false | false | 397 | py | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V2beta1PodsMetricSourceDict generated type."""
from typing import TypedDict
from kubernetes_typed.client import V1LabelSelectorDict
V2beta1PodsMetricSourceDict = TypedDict(
"V2beta1PodsMetricSourceDict",
{
"metricName": str,
"selector": V1Lab... | [
"noreply@github.com"
] | gordonbondon.noreply@github.com |
53438bac86686bd5e3beeb592ac6564b599c1bd7 | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/logging/simple_logging.py | 0c8609f22a5609fac5aa8959a9ece1e9db94b669 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 225 | py | import logging
logging.debug("debug")
logging.info("info")
logging.warning("warning")
logging.error("error")
logging.critical("critical")
logging.log(logging.WARNING, "another warning")
logging.log(40, "another error")
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
7b2a8228aacea982383e3cf5ef2498e50890a8e3 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/product_matrix/tests/__init__.py | 511e649c9e2bc449235177d5806c956c2664c026 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 121 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import common
| [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
2cfb1cb9f022facb9cf5544929ce8fcce973ff35 | d7ee58bce8294a9462f487c2280508f3d778d987 | /pyfun/users/forms.py | 144a4e023d8c55b777c5c84faa445d9621b2eef4 | [] | no_license | peter-riggs/blug | 7374a60fce9aadeb79166383551deef2bd3cb5db | f91a8ee5570a13546213f2ec4a2d260d7928e3f1 | refs/heads/master | 2022-11-27T21:03:44.162309 | 2020-08-02T04:55:16 | 2020-08-02T04:55:16 | 284,393,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class UserRegistrationForm(UserCreationForm):
email=forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2'] | [
"="
] | = |
5ffd3299ecc1405da61c05747c8720e9c57580a5 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/urm.py | 97a4460785ab0853a2d6a1b6462593208bf5bc2b | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3fafa5628901c4de5b835c8e1cd1f6a22739aa7d | 8b321ef16f11701f66898cb5b0e186bed50aaf46 | /6/3_Gems_admin_page/adminApp/views.py | c722febb2e7db933105fa73c4df72f2120bbbbcb | [] | no_license | TrellixVulnTeam/django_H5IO | 6bed043acfda0e3373fe5b352805f1c11b038e2a | 1ee5407e93f1bbbaeb12b90b7c5d7b96e3ba13e2 | refs/heads/master | 2023-03-16T05:25:59.900947 | 2017-04-18T08:21:47 | 2017-04-18T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | from django.shortcuts import render, HttpResponseRedirect, get_object_or_404
from django.contrib.auth.models import User
from userManagementApp.forms import MyRegistrationForm
from django.contrib.auth.decorators import user_passes_test
# доступ у админке только суперпользователю
# @user_passes_test(lambda u: u... | [
"ostrowskyi@gmail.com"
] | ostrowskyi@gmail.com |
0414c85e38875f1369c4db2af72541947fdfaa99 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/models/keras_model/dev/encode_dataset.py | 652be2093b1381c06a1631f84d3c8b9e4aec86c0 | [] | 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 | 3,092 | py | import os
# Load the required submodules
import tensorflow as tf
from official import nlp
from official.nlp import bert
import trainer_v2.per_project.transparency.mmp.alignment.galign_inf_helper
from cpath import data_path
def main():
processor = nlp.data.classifier_data_lib.TfdsProcessor(
tfds_params="... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
8e1134153ff6a9e5a045b75a2d4b4097abbb8569 | 761eba08f073678ef7a0978a75a928e1e6885906 | /dataloader/products.py | 66b479691b52ea5c5ca73762716031810b0b16df | [
"MIT"
] | permissive | UnderController/AliProducts | 9dc8f84112948d43c4ccf03e8f3ad2b444248741 | 1d499041ac3c348e826d58748f6a8caf36994d61 | refs/heads/master | 2023-02-05T12:36:59.786840 | 2020-12-24T06:37:02 | 2020-12-24T06:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | # encoding=utf-8
import pdb
import torchvision.transforms.functional as F
from torch.utils.data import DataLoader
import os
from PIL import Image
import torch.utils.data.dataset as dataset
from torchvision import transforms
import torchvision.transforms as transforms
import random
import numpy as np
import cv2
from ... | [
"523131316@qq.com"
] | 523131316@qq.com |
196a63cb2548939911c3eba136174f843c9d215f | 688feb2eac8bc384583c4f0960cfbc86c3470d91 | /high_pro/tester.py | 806b18f82d0bbf952653715c65d51bf4d03653e4 | [] | no_license | halida/code_example | 7d2873e92707b4bab673046ff3d0c742e1984b4c | 5c882a24b93696c2122a78425ef6b3775adc80fa | refs/heads/master | 2023-06-08T15:51:23.150728 | 2022-03-27T09:57:43 | 2022-03-27T09:57:43 | 2,458,466 | 2 | 1 | null | 2023-06-06T02:07:28 | 2011-09-26T06:01:29 | Ruby | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
module: tester
"""
import socket
import sys, timeit,
def job():
HOST = 'localhost' # The remote host
PORT = 50007 # The same port as used by the server
res = socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM)
af, socktyp... | [
"linjunhalida@gmail.com"
] | linjunhalida@gmail.com |
f38ae7a9c5794719a03d30f900fd734cf1dbc592 | 225311f69267a2b9f1b670c5cc73698974561a9d | /idk/python_intro.py | 723346e48776fa6d76d1935551a94a251fc11e5e | [] | no_license | lilischaf/my-first-blog | c623559b184a42c4da769e21bb64ec8ff3ce54e2 | 4fb689bab36cb1624793b2c5d090a92a176ef899 | refs/heads/master | 2020-03-27T19:24:10.041958 | 2018-09-01T15:45:55 | 2018-09-01T15:45:55 | 146,986,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #tutorial
def hi(name):
print ('Hi ' + name + '!')
def loop(girls):
for name in girls:
hi(name)
print('Next')
def loop1():
for i in range(1,6):
print(i)
def loop2():
print('loop2')
sum=0
for i in range(1,5):
sum=sum+i
print(sum)
#
print('Hello, Django girls!')
name = 'Lili'
girls=['Name1', 'Name2',... | [
"you@example.com"
] | you@example.com |
8fc14f3c80e794d1ef015872e20b5468d32ce374 | b6f3ebe67036ed93d263305f0fdc849691621f88 | /setup.py | 94789db4721f3f035e523a95990d6af3a02344be | [
"MIT"
] | permissive | AEK-BKF/django-maintenance-mode | 85fcf716fc9409bc3cc2075ac33424af4ec0d503 | baac0dd4960cefdbcacc3631fc35aae637950baf | refs/heads/master | 2020-06-27T22:20:45.328439 | 2019-07-23T16:25:11 | 2019-07-23T16:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
exec(open('maintenance_mode/version.py').read())
github_url = 'https://github.com/fabiocaccamo'
package_name = 'django-maintenance-mode'
package_path = os.path.abspath(os.path.dirname(__file__))
long_description_file... | [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
94e28816a1b8a5e632e5aea2f8bd92e97e339959 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network3546_1.py | 17ab7d7e1d98aaefdca8dcf79ad170e1f0724c9a | [] | 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 | 89,951 | py | species(
label = 'C=CC([O])C[CH]O(12785)',
structure = SMILES('C=CC([O])C[CH]O'),
E0 = (37.7224,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3615,1277.5,1000,2950,3100,1380,975,1025,1650,3025,407.5,1350,352.5,2750,2850,1437.5,1250,1305,750,350,1380,1390,370,380,2900,435,3010,987.5,1337.... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
08f503d4c679ed15a04216513380227efbf541ea | 6c083d19a4e95a5b61637db8ec042ce4a338b6b0 | /python_oracle_crud/api/premium_sizes_.py | c5fd531b5e347900796eed969b30eb95115d5975 | [] | no_license | zeionara/barbershop | a0269e58bbd10a2f969f574f5c4296ba69aa09ca | e4600b7b5483b2692b0fbb6ba0f5b8dbbb839e01 | refs/heads/master | 2021-03-27T10:15:17.820736 | 2017-12-22T15:27:46 | 2017-12-22T15:27:46 | 110,250,691 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import sys
import re
sys.path.insert(0, 'C:/Users/Zerbs/Desktop/databases_kursach/python_oracle_crud/crud/')
import premium_sizes
from commons import get_by_id
import commons_ as cms
from commons_ import get
from commons_ import get_float
field_names = ("id", "name", "description", "min", "max")
field_widt... | [
"zeionara@gmail.com"
] | zeionara@gmail.com |
8f0558ed89bd430d7ab399a60295e2ecef012198 | 1ec366f1160c5520864803d23c90937f705c9798 | /examples/resnet18/bs128/plot_loss.py | f7caa41e6f4e14d5a9e15fcd1c28e51b3cf1f53e | [] | no_license | zachrperkel/nccd | 0778d20a4e20de01d0ca172355cf49733977d70b | 883f740f83b38d645a4bcf461f94bcaa45de31c0 | refs/heads/master | 2023-06-08T11:10:59.826175 | 2020-06-04T15:42:00 | 2020-06-04T15:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # %% Import packages
import os
import argparse
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# %% Parse command line arguments
parser = argparse.ArgumentParser('Model tuner')
parser.add_argument('--data_filename', type=str, required=True)
parser.add_argument('--output_path', type=str, d... | [
"theodore.papamarkou@gmail.com"
] | theodore.papamarkou@gmail.com |
32c052b11365e3aa219b6e250a98164387ded719 | 45284836ae85685226b1f1e3b83e207e184aee0e | /05_ProbabilityAndStatistics/01_ProbAndStatsInPython_Beginner/03_Challenge_DescriptiveStatistics/04_ScatterPlots.py | 07774ae0b5ba183d1b93c5ec5296eb4b34bacd9d | [] | no_license | gaurab123/DataQuest | 5060efc3d3449e6e098cb77d7fed913516aabdbd | a9da9a90fab639d239340edfc7d0b2010edf2b35 | refs/heads/master | 2021-09-14T15:10:13.047034 | 2018-05-02T19:11:23 | 2018-05-02T19:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | import matplotlib.pyplot as plt
import pandas as pd
movie_reviews = pd.read_csv("fandango_score_comparison.csv")
user_reviews_cols = ['RT_user_norm', 'Metacritic_user_nom', 'Fandango_Ratingvalue', 'IMDB_norm']
user_reviews = movie_reviews[user_reviews_cols].copy()
fig = plt.figure(figsize=(4,8))
ax1 = fig.add... | [
"kenneth.kite@gmail.com"
] | kenneth.kite@gmail.com |
5113528cbadcf0cfd0174b4951cb4e0733a8b5df | 6b0cfc5c002c6b1102c986964d58a93ccc7d1c33 | /.history/game_20191117111902.py | 478c8a7801dc09da591dc6137226f5ebfded388c | [] | no_license | cerebrium/pythonTank | c7e16f093323827658b06a086604dc75622fde00 | f315f6f569b189b12e21b18c7c21ef1efe4259e5 | refs/heads/master | 2020-09-12T05:21:08.149486 | 2019-11-17T22:47:10 | 2019-11-17T22:47:10 | 222,322,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,846 | py | import math
def draw_tanks():
# Initial Spacing
top_initial_spacing = ' ' * 3
bottom_initial_spacing = ' ' * 2
middle_initial_spacing = ' ' * 1
# Middle Spacing
top_middle_spacing = ' ' * 30
middle_middle_spacing = ' ' * 16
middle_bottom_spacing = ' ' * 28
# Tank Components
ta... | [
"nicholas.m.shankland@gmail.com"
] | nicholas.m.shankland@gmail.com |
c0b58931ff1cdb4fc0d161b63a1d5072fe8a9f05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02887/s724290303.py | 2238ef5d9f6ee2e311bd7027e7683a3d5f32f497 | [] | 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 | 114 | py | n=int(input())
s=list(input())
for i in range(len(s)-1,0,-1):
if s[i]==s[i-1]:
s.pop(i)
print(len(s))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3ff199eb504afb6c0c39538f5a05707f0f3d3994 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/countingE_20200723120328.py | 7f85c7e7dd31db22fecc86b4b98aa5db35388f2d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | def counting(arr):
# keep count of the occurrences
counts = [0 for i in range(100)]
# final array
outputs = [0 for i in range(100)]
for i in range(len(arr)):
count[i]
counting([1,4,1,2,7,5,2]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7d70b585cd4491500997e4b38aecba755574da8a | 0881aa09f627c8fcde3a81ed9725b400fb718bde | /lolip/models/torch_utils/wideresnet.py | 72c4bbab1373061693a371d062909eabcada3d7e | [] | no_license | arathod2/robust-local-lipschitz | c31c71cecd7c175539ca270c9f601e9b8e16ec2c | 656616ae02453b8d45ffd39c5efb23301b5cca6c | refs/heads/master | 2023-04-29T08:56:18.776885 | 2021-05-17T16:19:48 | 2021-05-17T16:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,859 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, stride, dropRate=0.0):
super(BasicBlock, self).__init__()
self.bn1 = nn.BatchNorm2d(in_planes)
self.relu1 = nn.ReLU(inplace=True)
se... | [
"yangarbiter@gmail.com"
] | yangarbiter@gmail.com |
17149e60658a5f9a6a62dcf311cc84ebdc124c40 | 390d19c3159133d8c688396cb11b4ed3f8178d09 | /SWExpertAcademy/LEARN/12. Trie.py | cff170e971311215c9d78196b1a8e85ca21468ba | [] | no_license | JJayeee/CodingPractice | adba64cbd1d030b13a877f0b2e5ccc1269cb2e11 | 60f8dce48c04850b9b265a9a31f49eb6d9fc13c8 | refs/heads/master | 2021-08-16T17:14:01.161390 | 2021-07-16T00:42:18 | 2021-07-16T00:42:18 | 226,757,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | # https://www.kite.com/python/answers/how-to-create-a-trie-in-python
# https://www.it-swarm.dev/ko/python/python%EC%97%90%EC%84%9C-trie%EB%A5%BC-%EB%A7%8C%EB%93%9C%EB%8A%94-%EB%B0%A9%EB%B2%95/1066653076/
# https://hooongs.tistory.com/28?category=807728
class Node(object):
def __init__(self):
self.count = ... | [
"jay.hyundong@gmail.com"
] | jay.hyundong@gmail.com |
e1b2b36cce7cb721dbd00ea6084947e24a35263b | 56d6257e932e1397ab03b1e7ccc6231378665b04 | /_Komplete_Kontrol/komplete_kontrol_base.py | ddfad71bc807c1102e0ad68f33f5b9a796a71570 | [] | no_license | gluon/AbletonLive10.1_MIDIRemoteScripts | e6c8dc4956cff9630aaa36f3667994387ad1d0cf | 2468b51eba7e5082b06f9e381b3e72027c5f272c | refs/heads/master | 2023-01-10T18:37:46.504180 | 2022-12-23T09:21:48 | 2022-12-23T09:21:48 | 213,423,555 | 205 | 59 | null | 2021-02-12T16:15:01 | 2019-10-07T15:44:52 | Python | UTF-8 | Python | false | false | 10,873 | py | #Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Komplete_Kontrol/komplete_kontrol_base.py
from __future__ import absolute_import, print_function, unicode_literals
from functools import partial
from ableton.v2.control_surface import ControlSurface,... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
1bef00629297823612bf34c99811cea9248194da | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/nsx/vsm/centralized_cli/schema/arp_table_onhost_schema.py | 7a34385383ce9697ecaff07bd83031cb8d4dcd46 | [] | no_license | Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | import base_cli_schema
import vmware.parsers.vertical_table_parser as vertical_table_parser
class ARPTableOnHostSchema(base_cli_schema.BaseCLISchema):
_schema_name = "ARPTableOnHostSchema"
# Select the parser appropriate for the stdout related to this command
_parser = vertical_table_parser.VerticalT... | [
"bpei@vmware.com"
] | bpei@vmware.com |
5223183a756f95933fd65fd1bfcbab6d5d70ecbc | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/vsvinayak_mnist-helper/mnist-helper-master/test.py | 0db40c40a9f5304accdef10d000546b301aeac2c | [] | 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 | 835 | py | from mnist_helpers import *
import cv2
# this is the image we want to distort
test_image = './images//four.png'
if __name__ == '__main__':
# read the grayscale image
image = cv2.imread(test_image, 0)
# just call the function elastic_transform function
# with a suitable kernel size, alpha and sigma... | [
"659338505@qq.com"
] | 659338505@qq.com |
24a0154b66aa6f08c63392d4ad3cc3cf945968a8 | 6db1b8b05c6a4fb68f8514f07bc5725e881691ee | /test/test_analytic.py | fcd908bfadc1a58f3e0d2675cbc3671c79ed7282 | [] | no_license | mooTheo/Python-Moosend-Wrapper | 7cc776dc90a78484b605d33b6e0403fee27f99ac | eaf3b5f82960aef5dfd4201026e57e88ad663005 | refs/heads/master | 2021-07-07T20:55:32.994324 | 2017-10-03T14:17:42 | 2017-10-03T14:17:42 | 104,724,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # coding: utf-8
"""
Moosend API
TODO: Add a description
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import moosend
from moosend.rest import ApiException
from moosend... | [
"theo@moosend.com"
] | theo@moosend.com |
570d11ea76ef82d71125266aa9d41e217059e847 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/conch/checkers.py | 9e92fc063bdcc877dc518dd7efdb203f8bbb4e14 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 10,960 | py | # -*- test-case-name: twisted.conch.test.test_checkers -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Provide L{ICredentialsChecker} implementations to be used in Conch protocols.
"""
import base64, binascii, errno
try:
import pwd
except ImportError:
pwd = None
el... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
3f569f5a7600cb81ac30076293058f6767d25701 | 47e5f90f1b144dcdd58d42cdd3b7595c6777cb0a | /pyspark/Yelp/WEEK_1/task2.py | 91bec622d87b5aecc70b83960a6319a28807edad | [] | no_license | lynkeib/WebProjects | 1a50a2cb34fae03e20982dec799da34b0cead242 | 773a3cba4c9590cd9bf2eb336d854da09105911b | refs/heads/master | 2023-01-11T06:14:07.424967 | 2020-11-08T03:13:32 | 2020-11-08T03:13:32 | 165,100,933 | 0 | 0 | null | 2019-01-10T19:59:37 | 2019-01-10T17:18:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,073 | py | from pyspark.sql import SparkSession
import os
import sys
import json
import time
# Make sure keep the same python version for driver and worker
os.environ['PYSPARK_PYTHON'] = '/usr/local/bin/python3.7'
os.environ['PYSPARK_DRIVER_PYTHON'] = '/usr/local/bin/python3.7'
# You will explore the dataset, review.json, conta... | [
"liuchengyin1234@126.com"
] | liuchengyin1234@126.com |
4b188cec03a42bc9dda9da7530a51e90b8aa5d19 | 527e3ca2c316f7713ecf92faac58cd33cfaacb81 | /tests/testutils.py | 1ca284488b87b833e1be234a1d45f844b70e9ab6 | [
"LicenseRef-scancode-public-domain"
] | permissive | aaw/yaupon | 1bade3ecd61f11468cb7ff7cd131ecdb1031aee7 | 2608e780abec654ff2d02e76d9ddd528d7fa69fa | refs/heads/master | 2021-01-10T21:27:21.727342 | 2011-04-24T15:42:54 | 2011-04-24T15:42:54 | 832,110 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,649 | py | import os
import functools
import sqlite3
import yaupon
import yaupon.backend as backend
import yaupon.graph_impl.dictgraph as dictgraph
import yaupon.graph_impl.sqlitegraph as sqlitegraph
import yaupon.graph_impl.forest as forest
import yaupon.graph_impl.exceptions as exceptions
import yaupon.data_structures.dheap as... | [
"aaron.windsor@gmail.com"
] | aaron.windsor@gmail.com |
e2a5983ca16b431778f358a49cb465251d73a234 | c60c199410289c1d7ec4aea00833b461e1f08f88 | /.history/older-than/older/unittest/5_testsuite.py | 5030e2cb2123d88ebc15bd47d5394023c111c51c | [] | no_license | ver007/pythonjumpstart | 66fb111e6af197fad3e853b2c2d712a1b57a7d59 | 5b1f52479abd07456e2da494149e491d398f3b7d | refs/heads/master | 2021-01-21T01:34:35.501870 | 2015-05-13T14:10:13 | 2015-05-13T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python
import unittest
import unittest1
import unittest2
import unittest3
loader = unittest.TestLoader()
suite = loader.loadTestsFromModule(unittest1)
suite.addTests(loader.loadTestsFromModule(unittest2))
suite.addTests(loader.loadTestsFromModule(unittest3))
runner = unittest.TextTestRunner(verbosit... | [
"ravi@rootcap.in"
] | ravi@rootcap.in |
bb2c2e7304f2e8c53aecea9871e3c2ba30372ebc | 948b4d6deee2a5c093f7f5b1daab00936a30f1b9 | /kali_rootfs/usr/share/sqlmap/plugins/dbms/sqlite/connector.py | a3ced69b8a244a0e51a7e199e37d5b8d67b0e71e | [] | no_license | goutham414/kali-n900 | 0bc476b67ae59ed2f1e25055759cefd38ab72a20 | 1ab8310a5a5e22b35535fe85ad16bd3dd8286d85 | refs/heads/master | 2021-01-10T10:51:51.308505 | 2016-03-21T20:08:39 | 2016-03-21T20:08:39 | 54,414,038 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
try:
import sqlite3
except ImportError:
pass
import logging
from lib.core.convert import utf8encode
from lib.core.data import conf
from lib.core.data import logger
f... | [
"rapol.goutham@gmail.com"
] | rapol.goutham@gmail.com |
30f678aec7c032a05a34d494c7184130004a344c | e72254966a6ea573b152174b9d23f81a942c3ce1 | /House_Spider/House_Spider/items.py | 753bd4a68f4155c421820d892cf89bf0b13ac907 | [] | no_license | Alexanderklau/scrapy-project | d40a9216a22655c2bc1287babefd19fdffc53d5e | b266cbb9da01426266f3431afea1191dcbb0ea52 | refs/heads/master | 2020-04-06T04:53:17.171316 | 2017-02-12T15:46:25 | 2017-02-12T15:46:25 | 73,772,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class HouseSpiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
#名称
HouseName = scrapy.Field()
... | [
"429095816@qq.com"
] | 429095816@qq.com |
f42aff939c852fcff8cae9a3aa3ab76004b9f0b9 | f9e1d9c71d232aa0bcf03627259e6c9f88538b18 | /gs122UpdateView/gs122/asgi.py | 684ba98c963bbfb8de9fa4341b43cf970175031c | [] | no_license | nayan-gujju/Django-Practice | a7db202b6a3627a6a4e9f96953b61e43eaf68cb1 | eafa29e9321a1683867b2ea1d26ca74dfa6db12d | refs/heads/master | 2023-07-27T11:41:43.956705 | 2021-09-09T08:47:44 | 2021-09-09T08:47:44 | 403,917,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for gs122 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
1f3066c7a44875fc6ba513eb9e66a043f295050a | a2f344942fd2c7ea29124112275ae37ba6f7dced | /vspk/v6/nuvport.py | 04d6efd9cbc0536afce9402c1fa08f4256295a1b | [
"BSD-3-Clause"
] | permissive | ivanblem/vspk-python | 305333a4342d2c51b031d0f5b7abbcf6b520db70 | c59989454b35a1f001491aaba434a324ea5ff55e | refs/heads/master | 2020-12-28T06:07:47.201306 | 2020-01-06T17:31:23 | 2020-01-06T17:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,888 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
fcfee0ceb0759cb30c517c56aee97e265dbc2c38 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/run_20200628102413.py | cf76dcfc8ec507336986acd6be8382cc1aea170b | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 66 | py | import os
import sys
from scrapy.cmdline import execute
se_dir = | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
147da2469f0c6ca6494e8acab41b0cb2ee717d34 | 08abc0ae4b0a44d676dbbdff434c27059c0a2655 | /helios/protocol/common/datastructures.py | 0b7ca1d481f67bb99e9f37b0bf37c72546f0074f | [
"MIT"
] | permissive | jtbadn/py-helios-node | 7300282e506e714f2e58a4865de0ff37cb96597d | b049225b4f0632ce3ebc6b2a64d746063e92a9f8 | refs/heads/master | 2020-05-19T10:59:24.878916 | 2019-04-25T03:16:12 | 2019-04-25T03:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py | from hvm.constants import TIME_BETWEEN_HEAD_HASH_SAVE
from hvm.types import Timestamp
from typing import (
List,
Union,
TYPE_CHECKING,
Optional,
Dict,
)
from eth_typing import Hash32
from helios.protocol.hls.sync import get_sync_stage_for_historical_root_hash_timestamp
if TYPE_CHECKING:
from hel... | [
"admin@hyperevo.com"
] | admin@hyperevo.com |
9c296c84f359b7f8eb676b64a3c2868075733e79 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/tests/test_configs/dsl_pipeline/data_binding_expression/input_path_concatenate.py | 6908e3b121713d75f4881114080657f0711647b3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,329 | py | from pathlib import Path
from azure.ai.ml import Input, dsl, load_component
from azure.ai.ml.entities import Data, PipelineJob
from azure.core.exceptions import ResourceNotFoundError
base_dir = str(Path(__file__).parent)
def generate_dsl_pipeline() -> PipelineJob:
# 1. Load component funcs
basic_func = load... | [
"noreply@github.com"
] | Azure.noreply@github.com |
04684e068e795d42062d632ce8b7f4b4984f7dad | 0f173893c46f597f2be9fc45975ee8ab0d1b8eed | /ibp_produced_18760/settings.py | 7e8dcb07112e46294f471032bf80ef812d44311e | [] | no_license | crowdbotics-apps/ibp-produced-18760 | 5c59e2e2207a2adaedcff359e3f7b72283eb9cba | 63142ede18079cb50c75c97f4e72bb570a36fa22 | refs/heads/master | 2022-11-17T09:39:11.657635 | 2020-07-09T19:32:27 | 2020-07-09T19:32:27 | 278,453,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,552 | py | """
Django settings for ibp_produced_18760 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
6ed876d50cc9a2236779243f4d9fc49118538360 | f24ecaf885f46e67291da80b76de260d14853eaa | /dangann/views.py | 77817ca459771bba8d102f6199e8304d40066557 | [
"MIT"
] | permissive | fossabot/dangann | 2cbc6a767f55adf8affad884b6e8ae98f082a8dd | bcc4bdd593e21f38bd3c2ef4f8f7a303d36340a8 | refs/heads/master | 2020-03-27T04:18:03.865747 | 2018-08-24T01:54:28 | 2018-08-24T01:54:28 | 145,928,753 | 0 | 0 | null | 2018-08-24T01:54:27 | 2018-08-24T01:54:27 | null | UTF-8 | Python | false | false | 1,140 | py | from django.shortcuts import render
# Create your views here.
# HTML views
def index(request):
return render(request, 'landing/index.html')
def index_index(request):
return render(request, 'coffice/index.html', {'title': 'index'})
def submit(request):
return render(request, 'static_page/submit.html',... | [
"lsdlab@icloud.com"
] | lsdlab@icloud.com |
eb742ad8766d5aad89b4ab30707b19ec4d933e5d | a7dc6a1984a21d7538fdaba5a166629f8a646f38 | /manage.py | c3606063736e2e996f32632f81e86e691f83b0f6 | [] | no_license | ParentJA/cobwinner | bc9b184891b73d1757ee8fb12ce70fbac1f32a5a | a1a28df5ab6214c2d4aed286984de50d1941dffb | refs/heads/master | 2021-01-23T18:09:01.035585 | 2018-02-05T04:50:53 | 2018-02-05T04:50:53 | 18,822,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cobwinner.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jason.a.parent@gmail.com"
] | jason.a.parent@gmail.com |
3c5a69128dcbb3abef155da9e8a1201a0f38fdfc | 83e3bf7148171b588c8e7fefd25f0e0cf9cf7c12 | /gsd/version.py | 3c4a9fb1c4cc663dca4647bb4ced380cdb7186eb | [
"BSD-2-Clause"
] | permissive | joaander/gsd | 33c351d7b32e76428e4577e2640532850bc3b676 | 422582cc2b0a187391faacf8dc7566d6b5ce49d5 | refs/heads/master | 2021-06-03T15:37:27.497495 | 2021-05-06T20:31:06 | 2021-05-06T20:31:06 | 365,033,353 | 0 | 0 | BSD-2-Clause | 2021-05-06T20:46:08 | 2021-05-06T20:46:07 | null | UTF-8 | Python | false | false | 381 | py | # Copyright (c) 2016-2021 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the BSD 3-Clause License.
"""Define the current version of the gsd package.
This file is kept separate from __init__.py so that it can be imported and used
in other modules within the package.
... | [
"joaander@umich.edu"
] | joaander@umich.edu |
d2eb21c890da271172e466c708a298834531b7df | 3a51de9b289a141f23f7ad7feb97e937484ecbcf | /lib/character.py | ae2da4e145643fb0cb3d7883a4dbc325b6c6892b | [] | no_license | AndyDeany/sunni-remake | 52c40db465db0fa4cd04b9fbcb7f32e58e0fd52d | 3d6c5f742e41cc8c2c39bfd2b380f63ea012ef0f | refs/heads/main | 2023-05-01T05:47:50.858883 | 2021-05-07T17:35:44 | 2021-05-07T17:35:52 | 363,158,917 | 0 | 0 | null | 2021-05-12T13:32:49 | 2021-04-30T14:03:19 | Python | UTF-8 | Python | false | false | 7,767 | py | import math
import pygame
from lib.color import Color
from lib.image import Image
from lib.font import Font
from lib.image import Text
class Character:
"""Class representing a character in the game - player, opponent, other NPCs, etc."""
INFO_X = None
@classmethod
def initialise(cls):
"""I... | [
"oneandydean@hotmail.com"
] | oneandydean@hotmail.com |
3b40935aba4158af3bebf74e570b44cef2236120 | a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e | /graveyard/web/VNET/branches/vnf/vnf/components/ARCSConfigurationApplyer.py | ec93b7c0b6bf74a58297a0b05e3665014b2c23fe | [] | no_license | danse-inelastic/inelastic-svn | dda998d7b9f1249149821d1bd3c23c71859971cc | 807f16aa9510d45a45360d8f59f34f75bb74414f | refs/heads/master | 2016-08-11T13:40:16.607694 | 2016-02-25T17:58:35 | 2016-02-25T17:58:35 | 52,544,337 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"yxqd@users.noreply.github.com"
] | yxqd@users.noreply.github.com |
c2c1a2fa23f7284a062c774bc4e955224c655982 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EWgdCtSDmRqJPrzoz_13.py | eee2832d0e15e67134a0114ad8ba40bbb2ae0ddf | [] | 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 | 1,111 | py | """
Given a list of lists, return a new list of lists containing every element,
**except for the outer elements**.
### Examples
peel_layer_off([
["a", "b", "c", "d"],
["e", "f", "g", "h"],
["i", "j", "k", "l"],
["m", "n", "o", "p"]
]) ➞ [
["f", "g"],
["j", "k"]
]
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1c46ea8e91504753c26f60daa4b5f1e11381079b | 87fe0e123ac10a419e01283d742119c7772c8417 | /testclasses/classlooptwomethodcallcaller.py | a9702ff8f22ae92c47283688aa5819470561af0e | [] | no_license | Archanciel/seqdiagbuilder | 53ede17a5b5767c88e0cc3b8e321718fb0d47ad2 | 8509dc1eac1bf3c9c32362dcd7320990ceecede7 | refs/heads/master | 2020-03-23T02:10:42.933805 | 2019-10-26T16:59:48 | 2019-10-26T16:59:48 | 140,960,687 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from testclasses.classlooptwomethodcall import ClassLoopTwoMethodCall
class ClassLoopTwoMethodCallCaller:
'''
ClassLoopTwoMethodCallCaller is the entry point of our sequence diagram.
'''
def call(self, p1):
'''
call() is the entry method of our sequence diagram.
'''
b =... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
fa81f94518c39e3b68ecc9842ce41f52dc6a9e8c | b49445efd1e741ed0393651169a4782e4aae1669 | /asxscrape/items.py | 1401be951564c77da936beed843f6d2328b026e2 | [] | no_license | maxitron93/asx_options | 478a0b9cf830460db3af4f906c19c4164f68488a | e4ae834bbfdbd4e6f072653a4669905edeca3c6f | refs/heads/master | 2020-03-17T13:36:49.510560 | 2019-02-01T07:05:43 | 2019-02-01T07:05:43 | 133,638,092 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class AsxscrapeItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"maxi.merrillees@gmail.com"
] | maxi.merrillees@gmail.com |
3366e87502414d81781d8f792ea1e23ac11e6422 | 152b12d1de7b3b044c9b38b9a631db1c838b18e3 | /rubicon/objc/objc.py | 6128b64244570f73d36ea26b428531603c2ddcd1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | techdragon/rubicon-objc | 0e30cb472bdc47306b5c0edb0f307f3acf13d494 | d54e4cf851ee2806bc1951e23a236e78188525fe | refs/heads/master | 2020-12-26T00:06:26.732271 | 2016-07-21T14:29:25 | 2016-07-21T14:29:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,707 | py | from __future__ import print_function, absolute_import, division, unicode_literals
import platform
import struct
from ctypes import *
from ctypes import util
from .types import *
__LP64__ = (8*struct.calcsize("P") == 64)
__i386__ = (platform.machine() == 'i386')
__x86_64__ = (platform.machine() == 'x86_64')
if siz... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
26b63b9d969753dffca18dbac23de9f6a1414f1b | d5f75adf5603927396bdecf3e4afae292143ddf9 | /python/paddle/distributed/auto_parallel/operators/dist_update_loss_scaling.py | 9666f882200e53271e1f037d6e361da7825685ba | [
"Apache-2.0"
] | permissive | jiweibo/Paddle | 8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4 | 605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74 | refs/heads/develop | 2023-07-21T03:36:05.367977 | 2022-06-24T02:31:11 | 2022-06-24T02:31:11 | 196,316,126 | 3 | 2 | Apache-2.0 | 2023-04-04T02:42:53 | 2019-07-11T03:51:12 | Python | UTF-8 | Python | false | false | 5,883 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | jiweibo.noreply@github.com |
dca2c773e5be21280b160b4abd41ee1b51892264 | 1457bf059b94e04d4d512012b28a924167c68938 | /Exploration/Network_UI/Basic_Tabs/weight_tab.py | e8771162a6234b740b5d2aaed4110e731657e0ad | [] | no_license | YaminaDJOUDI/PymoNNto | e063c81547d41a9841ff8f8071c4d6347ce792da | 807aa7e0ba38cb29ad7839b39f29752da00eee78 | refs/heads/master | 2023-07-08T03:06:41.722292 | 2021-08-04T11:30:52 | 2021-08-04T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | from PymoNNto.Exploration.Network_UI.TabBase import *
class weight_tab(TabBase):
def __init__(self, title='Weights', weight_attrs=['W']):
super().__init__(title)
self.weight_attrs = weight_attrs
def add_recorder_variables(self, neuron_group, Network_UI):
return
def initialize(sel... | [
"mv15go@gmail.com"
] | mv15go@gmail.com |
11af2c08a076ea9f3909163ace4ec0d9c3a71515 | 5249617c4730ef0474d6470284a7c6a8a84bfdba | /LeetCode/tag字符串/面试题 01.04. 回文排列.py | 69eb6abc3d86415bf3bd0d18e4c90afda6eab4dc | [] | no_license | yangwei-nlp/LeetCode-Python | 72854262ae6b685d30fa67a0f68e8e43a1b073a5 | e420eb456086db32d1d6b9576c8dcd73e041cbef | refs/heads/master | 2023-04-08T12:43:30.911360 | 2021-04-12T16:41:27 | 2021-04-12T16:41:27 | 128,599,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | # 解题思路:
# 能凑成回文:最多只有一个字母是奇数次数,其它都是偶数
class Solution:
def canPermutePalindrome(self, s):
from collections import Counter
single_num = 0 # 落单的字符数目
for char, count in Counter(s).items():
if count % 2 == 1:
single_num += 1
if single_num > 1:
... | [
"943917044@qq.com"
] | 943917044@qq.com |
7ac85a1671233e6cc531a9554f5c3fa8c4c33925 | d0eb582894eff3c44e3de4bd50f571f9d9ab3a02 | /venv/lib/python3.7/site-packages/docutils/utils/code_analyzer.py | 834fc073e0c9621409f0f8da73d163747939c00e | [
"MIT"
] | permissive | tdle94/app-store-scrapper | 159187ef3825213d40425215dd9c9806b415769e | ed75880bac0c9ef685b2c1bf57a6997901abface | refs/heads/master | 2022-12-20T21:10:59.621305 | 2020-10-28T00:32:21 | 2020-10-28T00:32:21 | 247,291,364 | 1 | 2 | MIT | 2022-12-08T03:53:08 | 2020-03-14T14:25:44 | Python | UTF-8 | Python | false | false | 5,166 | py | #!/usr/bin/python
# coding: utf-8
"""Lexical analysis of formal languages (i.e. code) using Pygments."""
# :Author: Georg Brandl; Felix Wiemann; Günter Milde
# :Date: $Date: 2019-08-26 18:46:50 +0200 (Mo, 26. Aug 2019) $
# :Copyright: This module has been placed in the public domain.
from docutils import Application... | [
"tuyenle@Admins-MacBook-Pro.local"
] | tuyenle@Admins-MacBook-Pro.local |
d5dde1361f3a6132cce8c2eb0c957fa9d668cadc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2313/60621/254108.py | 34d01ed14fe8a86c95d5d097ec2ba51676f3ff2a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | class tree:
value=0
left=None
right=None
def __init__(self,v):
self.value=v
b=[]
def middle(node:tree):
global b
if(node==None):
return
else:
if(node.left!=None):
middle(node.left)
b.append(node.value)
if(node.right!=None):
mid... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d8db474403dfc1b8964071020c4c83a24bd54472 | 15e4e57f1e49ec38fe6c6e86f8309b0105093960 | /python/runAgedScenario.py | 95cf40301a9444a39e4004ef04a3c5ea83e5ced5 | [] | no_license | govoni/FlatNtStudy | eb621eb12d3a35bd58cd7f2de2a1c371d81b9eb3 | e58cbfed0c9a5e11822a254a554ecb62a7457ebc | refs/heads/master | 2020-12-24T16:59:17.649955 | 2015-05-13T10:31:05 | 2015-05-13T10:31:05 | 27,048,572 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,729 | py | #! /usr/bin/env pythony
## example python python/runLumiExtrapolation.py --datacardDIR output/DataCards_WW_SS_Inclusive/Card1D/lumiExtrapolation/ --inputVariable ptjj --outputDIR computeAsymptotic --makeAsymptotic --injectSignal 1 --nToys 100 --rMin 0.85 --rMax 1.15
import os
import glob
import math
from array import ... | [
"raffaele.gerosa@cern.ch"
] | raffaele.gerosa@cern.ch |
2592d8bf9c3f3cd2f270e18cba9ba746b9bb2248 | 393356cc58ec66a5a71cdcbafa193f03b9cc8b00 | /numba/roc/tests/hsapy/run_far_branch.py | 5846b767757d37858aa1320f13a44ba417e72adc | [
"BSD-2-Clause",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | IntelPython/numba | f3579b5dd1095e3b2b8851adf7c702d4a242024c | b09c0d618127182818e79fe24f6ac74b64f6ad89 | refs/heads/release0.54-patched | 2023-08-11T13:39:02.742587 | 2023-01-25T20:00:00 | 2023-01-25T20:00:00 | 283,598,145 | 9 | 9 | BSD-2-Clause | 2021-12-18T21:33:54 | 2020-07-29T20:40:29 | Python | UTF-8 | Python | false | false | 1,247 | py | import math
import numpy as np
import numba
def run_far_jump():
gt_as_str = 'float32'
R_EARTH = 6371.0 # km
@numba.roc.jit(device=True)
def deg2rad(deg):
return math.pi * deg / 180.0
sig = '%s(%s, %s, %s, %s)' % ((gt_as_str,) * 5)
@numba.vectorize(sig, target='roc')
def gpu_... | [
"stuart.archibald@googlemail.com"
] | stuart.archibald@googlemail.com |
68c97444c044dddf17e678eb02eda394352763bd | 5b188a06f9b615b8a4541074fc50eeb1bfac5d97 | /数组/K_size_subset.py | 73f350e8ba44c5a1751ea71009119c3caa8f59c2 | [] | no_license | yinyinyin123/algorithm | 3a8cf48a48bd2758c1e156c8f46161fe3697342f | b53f030ea3a4e2f6451c18d43336ff9c5d7433af | refs/heads/master | 2021-01-07T20:07:12.544539 | 2020-08-31T05:16:44 | 2020-08-31T05:16:44 | 241,807,608 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 555 | py |
### one code one day
### 2020/03/04
### leetcode 78 引申出的一种操作
### 求数组中所有的大小为K的子集
### 利用回溯法
def backtrack(first=0, cur=[]):
# print(K)
if(len(cur) == K):
### 注意这句话非常关键,如果写成answer.append(cur) 会出问题,注意注意注意,分析原因
answer.append(cur[:])
else:
for i in range(first, n):
cur.append(nums[i])
backtrack(i+1,cur)
c... | [
"1350526138@qq.com"
] | 1350526138@qq.com |
a1ff59979acbd95f040bee02b3b6eeef7e143285 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003932.py | 0c25b20dfa1b2f7e2826e052f96eb0eee503fda8 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
570d7abe225884d06018c296b1a3f2ab618cd329 | 0eb8bde44f28866596b9612835b4c0bb37c3a30f | /morsels/20200302_make_file/make_file.py | cea2838e84312de6cf735df4888e1b14239280d8 | [] | no_license | gtcooke94/snippets | 609ebc85b40453a79845e28113bd545579796379 | 4792e10cf9f056487e992219cfb088529a53e897 | refs/heads/master | 2021-06-25T13:01:55.282635 | 2020-11-13T21:01:18 | 2020-11-13T21:01:18 | 170,204,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import tempfile
import os
class make_file:
def __init__(self, *, contents=None, directory=None, mode="r+", encoding=None, newline=None):
self.initial_content = contents
self.directory = directory
self.mode = mode
self.encoding = encoding
self.newline = newline
def __en... | [
"gtcooke94@gmail.com"
] | gtcooke94@gmail.com |
9edec04798b9c10d1deab126a0c9a6cc85971734 | cb7d4d30df38696ae45af9197b850a62b5ac2221 | /test/selenium_tests/test_tool_form.py | 6d726c13621b23aecd4dcfefcc1b85cf28529bf3 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chambm/galaxy | d69286c8c18c3b49382af491f04df7d3f207f839 | fd1926767996a161cd2fc8bd184e6835fd688765 | refs/heads/dev | 2021-01-17T16:50:43.454746 | 2017-09-11T16:04:21 | 2017-09-11T16:04:21 | 40,565,357 | 0 | 0 | NOASSERTION | 2019-02-04T20:21:27 | 2015-08-11T21:09:19 | Python | UTF-8 | Python | false | false | 4,615 | py | from .framework import (
SeleniumTestCase,
selenium_test,
UsesHistoryItemAssertions,
)
from galaxy_selenium.navigates_galaxy import retry_call_during_transitions
class ToolFormTestCase(SeleniumTestCase, UsesHistoryItemAssertions):
@selenium_test
def test_run_tool_verify_contents_by_peek(self):
... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
e1499cfebbefdde04c0547d7a6f8b04ca4410425 | ab5684c8bc6de5c0c8d98b3a2a86b741d2e0e7d8 | /execicios/basico/aula22.py | 3164b110b25f148a208daa075e4158f0b4414652 | [
"MIT"
] | permissive | dilsonm/Udemy | 7ff63cc78200020e843850947fcb1b70630ba101 | 9b504968b91f5a2fd32101f87cf59ace063d52b8 | refs/heads/master | 2022-10-10T06:09:23.128561 | 2020-06-11T17:25:33 | 2020-06-11T17:25:33 | 267,133,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | '''
Desafio:
Suponha que temos um carinho com valior produtos e precos.
Preciso que me retorne o total dos produtos que estão no carrinho.
'''
carrinho = []
carrinho.append(('Granpeador', 12))
carrinho.append(('Lapiseira', 8))
carrinho.append(('Caderno', 22))
carrinho.append(('Calculadora', 35))
carrinho.append... | [
"dilson.mascarenhas@gmail.com"
] | dilson.mascarenhas@gmail.com |
f5ad4f741ffaac14ed96c5785488dbc572b94858 | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /stackoperations.py | 69afd9a720324c3730e2d8ad15ab0c0975c9fc26 | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | def performOperation(val1, val2, opr):
ans = [0,0,0,0]
if val1==ans and val2==ans:
if opr=='&':
ans = [9, 1, 3, 3]
elif opr=='|':
ans = [1, 9, 3, 3]
elif opr=='^':
ans = [4, 4, 4, 4]
elif val1==ans or val2==ans:
val=[]
for i in rang... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
00bec142dd81eb273909fdc6fef86bc4cbbb6de5 | 11fe46e5e46755d570696131c98b76d179fcac0b | /cars/urls.py | 09faabc85edb37d2bceaa5861d9b71db3998959c | [] | no_license | leeroywking/django-rest-docker | bbc466ac88c09a1ce751211cda2edbb1fa114564 | bd55fc0a9982fc080f3c5e66d891cabe254fd517 | refs/heads/master | 2022-12-16T02:18:32.038604 | 2020-09-11T02:16:11 | 2020-09-11T02:16:11 | 294,570,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.urls import path
from .views import CarList, CarDetail
urlpatterns = [
path("", CarList.as_view(), name="car_list"),
path("<int:pk>/", CarDetail.as_view(), name="car_detail"),
]
| [
"leeroywking@gmail.com"
] | leeroywking@gmail.com |
914029ca9da01c0831cfeef4e780572f2fdc5f9a | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_groups_api.py | 0bc33120c0dfc510a9ea27a932a29f0652e5c54f | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
bfb541d5418f5960e889597ade3256f2269efad2 | d8457dfa6dbc00fbdb8c30288784b91a861a779c | /DynamicallyMultilayerdNeuralNetwork/1220_nonliner.py | a999e2f7501c5df88993059679fcf0b8ad37d529 | [] | no_license | sasakishun/research | 47d3d9ddbd7976e1476dea9903ff3ddd2fae0410 | bc3ed65f8512513dd3c8db6258c6f00b83cdc52c | refs/heads/master | 2021-07-01T06:16:56.696462 | 2020-08-26T15:28:48 | 2020-08-26T15:28:48 | 136,919,651 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,726 | py | import tensorflow as tf
import numpy as np
import random
import math
import os
import xlwt
import matplotlib.pyplot as plt
# import load_notMNIST_1031
# np.random.seed(20160612)
# tf.set_random_seed(20160612)
np.random.seed(20171109)
tf.set_random_seed(20171109)
image_size = 28 * 28 * 1
output_size = 10
batchsize = ... | [
"Pakka-xeno@keio.jp"
] | Pakka-xeno@keio.jp |
e08860e1d5d732a82dd2b20d23ec2837fb75deec | b897532d373584148f6d868c39964fd0acb0e1fc | /attendace/admin.py | e65dd9d9b6d4ac297c385fa4dc9c9eee969a8ff4 | [] | no_license | cabilangan112/Thesis | 3251d45ff897a4533a256e81d4783e50331cfbba | ca79210e1d4b373843892ba54397f7da2b4e8c3a | refs/heads/master | 2021-08-17T08:24:10.677880 | 2017-11-21T00:32:11 | 2017-11-21T00:32:11 | 111,046,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import student, Department
# Register your models here.
admin.site.register(student)
admin.site.register(Department)
| [
"jassencabilangan@gmail.com"
] | jassencabilangan@gmail.com |
47de00d1ec17daedbbf431c18881dcc9e103a535 | c934802edc057ce109d04c6bbb4606612beacf66 | /test/test_remote_datastore.py | 8a88998db35870929f897614495b41d1f471e37c | [
"BSD-3-Clause"
] | permissive | moltob/pymodbus | 9925a4090c55c9d36ea6aa21e158b99441c54677 | 24cdc56d9f79593cbc1101416caa9cffc2023dd1 | refs/heads/master | 2021-01-15T15:04:40.058704 | 2015-01-22T19:32:37 | 2015-01-22T20:07:41 | 28,333,118 | 6 | 0 | null | 2015-10-19T10:15:07 | 2014-12-22T09:48:15 | Python | UTF-8 | Python | false | false | 2,593 | py | #!/usr/bin/env python
import unittest
from pymodbus.exceptions import NotImplementedException
from pymodbus.datastore.remote import RemoteSlaveContext
from pymodbus.bit_read_message import *
from pymodbus.bit_write_message import *
from pymodbus.register_read_message import *
from pymodbus.pdu import ExceptionResponse
... | [
"bashwork@gmail.com"
] | bashwork@gmail.com |
9d1106ebf5f4a53444eb0e2f200016701860b374 | 4be2c72579486ad04a00db0349028de96d2dce89 | /scripts_unused/zooToolboxPy/zooPyMaya/rigPrim_heads.py | e6348f1906fdba379e91d5ac27ef5b3340a74f29 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | italic-r/maya-prefs | 6a617d40beee8937186b4699c5cead44e01c2d40 | aa21e5e2938dc2698ce5f555ee74a594e08aed2b | refs/heads/master | 2021-09-09T16:31:00.411349 | 2018-03-18T01:40:10 | 2018-03-18T01:40:10 | 86,961,959 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py |
from baseRigPrimitive import *
class Head(PrimaryRigPart):
__version__ = 0
SKELETON_PRIM_ASSOC = ( SkeletonPart.GetNamedSubclass( 'Head' ), )
CONTROL_NAMES = 'control', 'gimbal', 'neck'
def _build( self, skeletonPart, translateControls=False, **kw ):
return self.doBuild( skeletonPart.head, translate... | [
"italic.rendezvous@gmail.com"
] | italic.rendezvous@gmail.com |
98a007daf03f9ae3f9f5e359b282d14b8cc87087 | 14fc2ee47e1081416f0465e8afa18da33169095f | /src/PP4E/Gui/PIL/viewer_pil.py | d615488d61fa5b9979ac261529021e5d98af3fa1 | [] | no_license | madtyn/progPython | d95ea8021b1a54433e7b73de9d3b11d53a3096b7 | f3a1169149afdeb5191dd895462139f60d21d458 | refs/heads/master | 2021-07-09T13:35:27.519439 | 2017-10-04T14:46:57 | 2017-10-04T14:46:57 | 104,866,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | """
show one image with PIL photo replacement object
handles many more image types; install PIL first: placed in Lib\site-packages
"""
import os
import sys
from tkinter import Tk, Label
# from PIL.ImageTk import PhotoImage # <== use PIL replacement class
from PIL.ImageTk import PhotoImage
... | [
"madtyn@gmail.com"
] | madtyn@gmail.com |
6c9d1e9e096b3b6f6e60ccf3533df40fd00eb82f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/text-adventure-games/Game of Thrones/flask/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py | eb513a60277eb308eceb06608d7501dd0c161c98 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:65a43d6691128bc6618be487c4c27002ab3fec49f81a5be311afae24e41a4317
size 2215
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
0fca4438f34dc3f17109a4e78ff11ac7be9cd231 | 689091f14536bf7acda064065c1d23f998f58bfb | /modules/07/exercise.py | 126ddd216a0e47fe679224d6c183b3e7a8a0f549 | [
"CC-BY-4.0"
] | permissive | edsu/inst126 | decff36158bd97b4622f6eea6586fce6d9c0c5aa | a14f2c6901759f87b1f199f79ed1b8a5c03c688d | refs/heads/master | 2022-12-27T07:57:03.808353 | 2019-12-09T18:11:20 | 2019-12-09T18:11:20 | 200,914,561 | 3 | 1 | CC-BY-4.0 | 2022-12-07T21:11:53 | 2019-08-06T19:46:31 | HTML | UTF-8 | Python | false | false | 360 | py | # read mail file and average the X-DSPAM-Confidence
filename = input("Enter the file name: ")
fh = open(filename)
spam = 0
counter = 0
for line in fh:
if line.startswith('X-DSPAM-Confidence:'):
counter = counter + 1
num = float(line[20:])
spam = spam + num
avg_spam = spam / counter
prin... | [
"ehs@pobox.com"
] | ehs@pobox.com |
546c5f6da5d246b180a8bc2f76715149e9d84fee | 2a1f4c4900693c093b2fcf4f84efa60650ef1424 | /py/umpire/server/unittest_helper.py | 1bf7bdce328c5f3a3989c292b8a798f1d5c26d01 | [
"BSD-3-Clause"
] | permissive | bridder/factory | b925f494303728fa95017d1ba3ff40ac5cf6a2fd | a1b0fccd68987d8cd9c89710adc3c04b868347ec | refs/heads/master | 2023-08-10T18:51:08.988858 | 2021-09-21T03:25:28 | 2021-09-21T03:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Collections of helpers for unittests in this package."""
import os
import sys
def ExecScriptWithTrial():
"""Execute the current script with `trial... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
9b1b103f3daec3e2de381995732634a6bee94d21 | b4eef8c2e03378328293bc41303879db3050bc98 | /watsondt/cybox/bindings/hostname_object.py | e9811374eebf2fa991622386c0d3cdebbed4945f | [] | no_license | luisgf/watsondt | 18682a28397b27eece5ce8913ca66bc37c92e555 | 6b3b2f76be23e6a054a0188a02a93a5207099e55 | refs/heads/master | 2021-01-10T07:37:31.010055 | 2016-02-24T22:01:29 | 2016-02-24T22:01:29 | 52,477,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,294 | py | # Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import sys
from cybox.bindings import *
from . import cybox_common
class HostnameObjectType(cybox_common.ObjectPropertiesType):
"""The HostnameObjectType object is intended to specify network
hostnames.Th... | [
"luisgf@luisgf.es"
] | luisgf@luisgf.es |
92cf0ffc04c717ecce9adf3e5923c01c5b640fe4 | ce534cf3d71e800e3e809a6d6d7dd2db9921f672 | /oldp_client/api/__init__.py | 673b35b99f2e7de147103d63ad4b2e143e64591c | [] | no_license | FominIly/oldp-sdk-python | fe64c5503333b873df763a24a26a907fda243924 | e050414454f239dab88853359f3d2d7018721d7e | refs/heads/master | 2020-04-15T13:48:52.089388 | 2018-11-22T20:05:09 | 2018-11-22T20:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from oldp_client.api.cases_api import CasesApi
from oldp_client.api.cities_api import CitiesApi
from oldp_client.api.countries_api import CountriesApi
from oldp_client.api.courts_api import CourtsApi
from oldp_client.api.law_books_ap... | [
"gitlab@i.mieo.de"
] | gitlab@i.mieo.de |
fbb127914d3080abe181894c3425d5ae98953a88 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19179.py | 66fc4fd66dbb8c6344de3c5056c3454e3402bcb4 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # Using json with list of lists. How to append lists in loop in file and later load it as list of lists
with open('database.txt','a+') as myfile:
json.dump(lst, myfile)
myfile.write('\n')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
ed31a3a944b1813966609d123041cede87fb0164 | 4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422 | /_0212_Word_Search_II.py | 09a16ff711958f6e090e8c8fed2b1e73ad616ab9 | [] | no_license | mingweihe/leetcode | a2cfee0e004627b817a3c0321bb9c74128f8c1a7 | edff905f63ab95cdd40447b27a9c449c9cefec37 | refs/heads/master | 2021-06-19T07:46:46.897952 | 2021-05-02T05:13:17 | 2021-05-02T05:13:17 | 205,740,338 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | class TrieNode(object):
def __init__(self):
self.children = [None] * 26
self.word = None
class Solution(object):
def findWords(self, board, words):
"""
:type board: List[List[str]]
:type words: List[str]
:rtype: List[str]
"""
res = []
tri... | [
"10962421@qq.com"
] | 10962421@qq.com |
c18abb4e2756b9e4614a148025efa8d30849a978 | 0c2583011200a5bed73315fde7ef30678075fce7 | /mplwidgetmatrix.py | 7b47a699a29465b7f068f801c6288cb18330f4e5 | [] | no_license | enzococca/pyarchinit_3 | 3d3b5784a3b2e4b753581f28064748043f8c47fe | 00626ba5c24d447fc54c267071f0584a2962182c | refs/heads/master | 2020-03-09T16:59:21.853411 | 2018-03-12T14:49:51 | 2018-03-12T14:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from matplotlib import *
import matplotlib
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from ma... | [
"serena.sensini@gmail.com"
] | serena.sensini@gmail.com |
afd64c24b3fe6cde62817d0273963a802111e7c6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/resnest/cascade_mask_rcnn_s50_fpn_syncbn-backbone+head_mstrain_1x_coco.py | 81d7b17d3145f3d35b41432299abeec05031431a | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,846 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
9fb9f5fd45b7c47ba6e708b7cd386f0612e2e7ae | c7a5eb67fb645ebb71c0968442619ab598615166 | /tests/test_api/test_fetcher.py | 6778398b44b6d9c39a7929c08e3e67e4a9ed44b5 | [
"MIT"
] | permissive | freelancing-solutions/Flask-admin_app | 5ae0227d0968b6648a808dc5cda233a30e7b0012 | 05c1e793e972fb394a00fa0a0aa74cbd0ad43962 | refs/heads/master | 2023-08-12T23:57:44.549867 | 2021-10-17T09:46:57 | 2021-10-17T09:46:57 | 357,324,155 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | import typing
from admin_app.api.fetcher import APIFetcher
from tests import test_app
def test_fetch_stock():
api_fetcher: APIFetcher = APIFetcher()
api_fetcher.init_app(app=test_app())
response, status = api_fetcher.fetch_stock(stock_id="ABC")
json_data: dict = response.get_json()
message = json_... | [
"mobiusndou@gmail.com"
] | mobiusndou@gmail.com |
6826ec12eaa0cbec476b906e6dfaefbbd5f0ce33 | 1aeb828e57be9b046ee25433fff05956f01db53b | /python_bms/ALGORITHMS/방학IM대비/1201/진기의최고급붕어빵.py | 9b29c9778761b60ad7efd8eceb3e533f348f9616 | [] | no_license | LynnYeonjuLee/TIL_BMS2 | 11f2753e2e82c4898a782d6907a21e973c34cf69 | f363723391598caf5ec6b33925fcb8a13a252d9f | refs/heads/master | 2023-01-22T00:45:25.091512 | 2020-12-04T00:22:44 | 2020-12-04T00:22:44 | 290,238,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | T = int(input())
for t in range(1, T+1):
# N 사람 빵,M초의 시간 ,K개의 붕어
N, M, K = map(int,input().split())
secs = list(map(int,input().split())) # N 의 사람 도착 시간 정수
result = 'Possible'
remain = 0 # 남은 붕어빵의 수
for i in range(11112):
# if sorted(secs[i]) < M:
if i != 0 and i % M == 0: # 0일 ... | [
"lynnlyj9@gmail.com"
] | lynnlyj9@gmail.com |
cee61875a2b727eec53212b031a6a56ac4a70fe7 | 5febc7f6386fbe18e8788041c0f8f6be4aabe2af | /test/test_GalKin/test_aperture.py | 547eab34a0aca04a670f30bb3a228e2b23269cb0 | [
"MIT"
] | permissive | guoxiaowhu/lenstronomy | 2b3aa10d6c72061edfd179d773948a40d9c2014a | dcdfc61ce5351ac94565228c822f1c94392c1ad6 | refs/heads/master | 2020-04-05T08:10:34.836586 | 2018-11-06T18:34:52 | 2018-11-06T18:34:52 | 156,704,299 | 1 | 0 | MIT | 2018-11-08T12:33:00 | 2018-11-08T12:33:00 | null | UTF-8 | Python | false | false | 551 | py | from lenstronomy.GalKin.aperture import Aperture
import pytest
class TestAperture(object):
def setup(self):
pass
def test_shell_select(self):
aperture = Aperture()
ra, dec = 1, 1
r_in = 2
r_out = 4
bool_select = aperture.shell_select(ra, dec, r_in, r_out, cent... | [
"simon.birrer@pyhs.ethz.ch"
] | simon.birrer@pyhs.ethz.ch |
9632f4a3f1ef95b09d12719cd6125236cb6af345 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03244/s512793195.py | 121e5d3c5320cc7b109c0c57c3141b4398cd6853 | [] | 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 | 612 | py | import sys
INF = 1 << 60
MOD = 10**9 + 7 # 998244353
sys.setrecursionlimit(2147483647)
input = lambda:sys.stdin.readline().rstrip()
from collections import Counter
def resolve():
n = int(input())
odd = Counter()
even = Counter()
for i, a in enumerate(map(int, input().split())):
if i & 1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.