blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d5e608579841a44031e64c373d497d78288e98e | 80f2fa4f1f4d56eef9471174f80b62838db9fc3b | /xdl/xdl/python/backend/mxnet/convert_utils.py | 1182f929bb080337b4f5368b36c8a279477309a7 | [
"Apache-2.0"
] | permissive | laozhuang727/x-deeplearning | a54f2fef1794274cbcd6fc55680ea19760d38f8a | 781545783a4e2bbbda48fc64318fb2c6d8bbb3cc | refs/heads/master | 2020-05-09T17:06:00.495080 | 2019-08-15T01:45:40 | 2019-08-15T01:45:40 | 181,295,053 | 1 | 0 | Apache-2.0 | 2019-08-15T01:45:41 | 2019-04-14T10:51:53 | PureBasic | UTF-8 | Python | false | false | 3,191 | py | # Copyright 2018 Alibaba Group. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"[email protected]"
] | |
8470b45483b504a9ac0a11ddad19a85fd67badf5 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /爬虫1905/day07/07_maoyanspider.py | a58245ebcd950ce02c7237e81b5a8a7f1daa3da5 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from selenium import webdriver
url = 'https://maoyan.com/board/4'
browser = webdriver.Chrome()
browser.get(url)
# 基准xpath: [<selenium xxx li at xxx>,<selenium xxx li at>]
li_list = browser.find_elements_by_xpath('//*[@id="app"]/div/div/div[1]/dl/dd')
for li in li_list:
item = {}
# info_list: ['1', '霸王别姬', '主演:... | [
"[email protected]"
] | |
852490d729b985e69d687a1f0ed8e5043d18b59a | bc539788b876773e294383863252c1637de9eb7f | /scrapy/PycharmProjects/Reptile/automation_Testing/pageobjects/primeur.py | b5765198c8c00001d1762535bb5b9cbf98cb42fa | [] | no_license | umsung/scrapy | 4eb56bf74f3e617e49dcdec61cf77010eb912f4f | deacd9f289159c5af114b0dd3110448ad7eb43e8 | refs/heads/master | 2020-05-31T14:11:46.530793 | 2019-10-16T01:32:25 | 2019-10-16T01:32:25 | 190,321,772 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | from framework.base_page import BasePage
import time
from selenium.webdriver.common.by import By
import random
from framework.logger import *
logger = Logger('Primeur').getlog()
class Primeur(BasePage):
navbox = (By.XPATH, "//*[@class='navbox']/a[4]")
gopage = (By.XPATH, '//*[@id="gopage"]')
... | [
"[email protected]"
] | |
9caa0a55e144b6e14c9cb2a644b72b93caec68d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02407/s588681694.py | 198ea6576032a9e20876cd8043d50eef73ac6a9b | [] | 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 | 182 | py | num = int(input())
data = list(map(int, input().split()))
lengh = len(data)
for tmp in range(lengh):
if tmp == lengh-1:
print(data.pop(-1))
else:
print(data.pop(-1), end=" ")
| [
"[email protected]"
] | |
c9b64c4bfdc00788592a94875e52019ca0453b03 | 2451f5297cdad588f5c1450336bf4de7cd38ebd8 | /hotline/styles/__init__.py | a1af3599f2045b6c43336f947b7e68c0dffaddfa | [
"MIT"
] | permissive | danbradham/hotline | 45aebfa2e3ef53b5782dfcd006351daeed8b45ac | 267037d2b783f2fd5ed9ad16afaad9a51e821a5f | refs/heads/main | 2021-12-15T02:05:22.577499 | 2021-07-03T13:12:11 | 2021-07-03T13:12:11 | 11,076,114 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # -*- coding: utf-8 -*-
import os
import sys
from glob import glob
this_module = sys.modules[__name__]
this_package = os.path.dirname(__file__)
for file in glob(os.path.join(this_package, '*.css')):
with open(file, 'r') as f:
data = f.read()
style_name = os.path.basename(file).split('.')[0]
setatt... | [
"[email protected]"
] | |
b1159fafc24bc513627ba31c35d9f0208fb1d6a7 | d2a818967193f8f7f9e980ef5ba7decea6cb1065 | /L1Trigger/L1TMuonEndCap/python/fakeEmtfParams_2017_MC_cff.py | 3343034d1d16d8aaf7170908508f36e31701472f | [
"Apache-2.0"
] | permissive | panoskatsoulis/cmssw | 1f5bfc6664856032db6609fad1b793d63b31afa6 | 5e32e53f9a775ea197e83fdb1462f99d4c9cb1a9 | refs/heads/l1t-integration-CMSSW_9_2_8 | 2022-08-14T15:22:14.881299 | 2017-09-01T06:17:20 | 2017-09-01T06:17:20 | 102,378,833 | 0 | 1 | null | 2021-02-12T12:09:50 | 2017-09-04T16:01:18 | C++ | UTF-8 | Python | false | false | 1,459 | py | import FWCore.ParameterSet.Config as cms
## Fills CondFormats from the database
from CondCore.CondDB.CondDB_cfi import CondDB
CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
## Fills firmware, pT LUT, and PC LUT versions manually
emtfParamsSource = cms.ESSource(
"EmptyESSource",
record... | [
"[email protected]"
] | |
fa124ae1000dfb25e11780f6a3e0bfed4690739f | c6c61ae056151292b84cb8840bc90120bdea0152 | /payment_bridge/tests/common.py | 1a1c907589d6f1860c4644e7e52c44c1170984d4 | [] | no_license | zbyte64/active_merchant_compat | a61bd0a1dbdbd2e76af71264aff0cefc606f1cfc | e9a95563c8c7afec684b13ff40836a8177c3a0f2 | refs/heads/master | 2021-01-25T08:55:06.816324 | 2012-11-28T19:54:51 | 2012-11-28T19:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | import base64
import json
import unittest
import yaml
import os
from payment_bridge.wsgi import BaseDirectPostApplication
global_config = {}
inpath = os.path.join(os.getcwd(), 'gateways.yaml')
if os.path.exists(inpath):
infile = open(inpath)
global_config = yaml.load(infile) or {}
else:
print "Please crea... | [
"[email protected]"
] | |
e3f10a7582e6fc5d779950e44c40a5806c9fe248 | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/test_close_non_image_window.py | 2cd2c6e0e90d945001ede2dac8896cf07f92104b | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 470 | py | from ij import IJ, ImagePlus, WindowManager, Prefs, ImageStack
import jmFijiGen as jmg
IJ.run("Close All")
# load an image and create a Result Window and a ROI Manager
imp = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif")
imp.show()
IJ.setAutoThreshold(imp, "Default");
IJ.run("Convert to Mask")
IJ.run(imp, ... | [
"[email protected]"
] | |
af3a768529efb8bb50385450db2321e290882c18 | f0d583a064cc53510d8b00b42ac869832e70bf41 | /facerecognition/evaluate/FaceCropper.py | 6826195a7621246c2a234747f1b31805e68464ca | [] | no_license | PaulZoni/nn | 918d543b4b2d955ff991da70ce4e88d4d94d13c8 | 25a81579499c893584b040f536ddbef254197f4e | refs/heads/master | 2020-04-27T19:05:10.968050 | 2019-06-27T12:22:16 | 2019-06-27T12:22:16 | 174,564,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | import cv2
import numpy as np
class FaceCropper(object):
CASCADE_PATH = "/home/pavel/PycharmProjects/nn/facerecognition/evaluate/haarcascade_frontalface_default.xml"
frontal_face_extended = "/home/pavel/PycharmProjects/nn/facerecognition/evaluate/haarcascade_frontalcatface_extended.xml"
def __init__(self... | [
"[email protected]"
] | |
e874ce17a476b6813ee430fd51b64ccbb202365f | e174e13114fe96ad2a4eeb596a3d1c564ae212a8 | /Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_03_Code/4375OS_03_22_dir2_default_input_value.py | 2c4bf3307842ec868e3d734bbc87c545bf5e7179 | [] | no_license | Kevinqian0501/python_books | c1a7632d66dceb46db439f7cbed86d85370aab42 | 0691e4685af03a296aafb02447e3585db55ce461 | refs/heads/master | 2021-08-30T19:27:03.985464 | 2017-12-19T05:56:31 | 2017-12-19T05:56:31 | 104,145,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """
Name : 4375OS_03_22_dir2_default_input_value.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/25/2013
email : [email protected]
[email protected]
"""
# with a default input value
def dir2(path='c:\python32'):
fr... | [
"[email protected]"
] | |
0e266919ea78b49136e3fa48756b2e0ad863ee7f | 6390a7f030cc6b2ff61237e41360af2d270e1efb | /tests/numpy/type.py | bf439e924a092a27e2e2c855344ea182de7bcdd3 | [
"MIT"
] | permissive | davidkellis/py2rb | b999ca4c3b9316d19ac42c6d57fbbc158ee35700 | 4518a1549cfacc25a1ea3c736bca3de15a123878 | refs/heads/master | 2023-06-22T05:32:16.209823 | 2021-07-05T01:55:53 | 2021-07-05T01:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # coding: utf-8
import numpy as np
print(np.int8)
print(np.int16)
print(np.int32)
print(np.int64)
print(np.int)
print(np.uint8)
print(np.uint16)
print(np.uint32)
print(np.uint64)
print(np.uint)
print(np.float32)
print(np.float64)
| [
"[email protected]"
] | |
1343447d884966d58eae60eff8a5d897df8e129a | 0aec617440075b73e5da64cd1477b6a098ed864c | /data_structures/recursion/binary_search.py | 496f81ebb3311fb3e671c99933525b63e1203629 | [
"MIT"
] | permissive | severian5it/udacity_dsa | 0b1512cc8c5125149d6be6f78fa14446e7ab5c25 | e47f27b0179961d6107fe46a236ac7d887fe6816 | refs/heads/main | 2023-03-07T02:24:37.299599 | 2021-02-14T10:34:50 | 2021-02-14T10:34:50 | 316,949,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | #bear in mind, this is log(n)
def binary_search(arr, target):
return binary_search_func(arr, 0, len(arr) - 1, target)
def binary_search_func(arr, start_index, end_index, target):
if start_index > end_index:
return -1
mid_index = (start_index + end_index) // 2
if arr[mid_index] == target:
... | [
"[email protected]"
] | |
2bc186d49fd3741a5945895a8313e016d372f690 | d10724d15f2888c5d2de8abb340995aa2a2074b9 | /examples/python/src/07fizzbuzz/main.py | a7bacd972b2efa6b474803bcf2f437439b106265 | [
"MIT"
] | permissive | podhmo/prestring | 5849e7f7de3626e8a1f48740190d98cd55bd3721 | 8a3499377d1b1b2b180809b31bd7536de5c3ec4d | refs/heads/master | 2021-07-16T06:35:10.555681 | 2021-03-28T05:35:37 | 2021-03-28T05:35:37 | 31,548,112 | 10 | 1 | MIT | 2021-03-28T05:27:35 | 2015-03-02T15:53:34 | Python | UTF-8 | Python | false | false | 292 | py | def fizzbuzz(n: int) -> str:
if n % 3 == 0 and n % 5 == 0:
return "fizzbuzz"
elif n % 3 == 0:
return "fizz"
elif n % 5 == 0:
return "buzz"
else:
return str(n)
if __name__ == "__main__":
print(", ".join(fizzbuzz(i) for i in range(1, 21)))
| [
"[email protected]"
] | |
694a55ffe10f4262a60d4c2029e30a6b57a22ff9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/499.py | b15fef3836eebfaaa053844940f5b5fa956d25de | [] | 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 | 514 | py | for _ in xrange(input()):
print "Case #%d:" % (_+1),
n = raw_input()
l = len(n)
nn = map(int, n)
def dfs(c, less, st):
if c == l:
return int(st)
if less:
v = dfs(c+1, 1, st + '9')
else:
v = 0
if c == l-1 or nn[c] <= nn[c+1]:
... | [
"[email protected]"
] | |
45b7193b9e36e0ceb7d6cdceeb758a380ea8adb4 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=75/sched.py | 580c5a476d4a3ce082bab13eb8366ff4f2034cf6 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | -X FMLP -Q 0 -L 2 84 250
-X FMLP -Q 0 -L 2 79 400
-X FMLP -Q 0 -L 2 66 300
-X FMLP -Q 1 -L 1 54 250
-X FMLP -Q 1 -L 1 50 250
-X FMLP -Q 1 -L 1 49 400
-X FMLP -Q 2 -L 1 41 300
-X FMLP -Q 2 -L 1 37 125
-X FMLP -Q 3 -L 1 35 250
-X FMLP -Q 3 -L 1 31 300
30 125
28 125
26 300
25 100
21 100
19 12... | [
"[email protected]"
] | |
2adfa7d968a07dd30d191878d89081daf3f7949b | c7e028d71b5dd72eb18b72c6733e7e98a969ade6 | /src/demos/datastructures/fifo.py | 74444fc181f799a0428cb21e7b27d0e754254573 | [
"MIT"
] | permissive | antoniosarosi/algoritmia | da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f | 22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b | refs/heads/master | 2023-01-24T06:09:37.616107 | 2020-11-19T16:34:09 | 2020-11-19T16:34:09 | 314,302,653 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | #coding: latin1
#< full
from algoritmia.datastructures.queues import Fifo
dfltFifo = Fifo([0, 1])
listBasedFifo = Fifo([0, 1], createList=lambda data: list(data))
for i in range(2, 6):
listBasedFifo.push(i)
dfltFifo.push(i)
while len(listBasedFifo) > 0:
print(dfltFifo.pop(), listBasedFifo.pop()... | [
"amarzal@localhost"
] | amarzal@localhost |
b64d842a5f0f64d7ae91f197a6e0a98a5a0be31d | f7a474af31989a7492411b9e18ba76d3c1527029 | /Day-18/DjangoForm/views.py | b64cc455fe609dd5123bb340d8d00f2c33eeac6a | [] | no_license | chikkalarameshsaikumar/Django-TOT | 01fa4190ca7d2c23e3e0d74e704037babd5b3217 | fb91bb6b2db306b1379f2c00f8d5d27e9b5821f2 | refs/heads/main | 2023-02-05T00:13:03.310573 | 2020-12-25T11:10:03 | 2020-12-25T11:10:03 | 339,008,757 | 0 | 1 | null | 2021-02-15T08:18:18 | 2021-02-15T08:18:18 | null | UTF-8 | Python | false | false | 1,545 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
# Create your views here.
# from DjangoForm.forms import DynamicHtmlFormGen, RegisterForm
from .models import Register
from .forms import Reg
def registerForm(request):
if request.method=='POST':
#data = request.POST
#print(data)
... | [
"[email protected]"
] | |
fc34da7d0a63f931eb43704be15efd3f638678f9 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/tools/fDepreciation_data.py | 832cfd0bbed68f7aae6e702a9f8b189942aee073 | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import sys
import com.ihsan.foundation.pobjecthelper as phelper
def FormSetDataEx(uideflist,params):
config = uideflist.config
uipData = uideflist.uipData.Dataset.AddRecord()
app = config.AppObject
res = app.rexecscript('accounting','appinterface/AccountingDay.GetLastCloseDate',app.CreateValues())
... | [
"[email protected]"
] | |
e7591c29d28eb94dede0687778c05ae5ebba9be1 | b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6 | /verp/hr/doctype/department/department.py | 78df3a770042e793040a9911f00f7b77bfe97d92 | [] | no_license | vsadminpk18/verpfinalversion | 7148a64fe6134e2a6371470aceb1b57cc4b5a559 | 93d164b370ad9ca0dd5cda0053082dc3abbd20da | refs/heads/master | 2023-07-13T04:11:59.211046 | 2021-08-27T06:26:48 | 2021-08-27T06:26:48 | 400,410,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import NestedSet, get_root_of
from verp.utilities.transaction_base import delete_events
from frappe.model.docu... | [
"[email protected]"
] | |
212ae839fc4995842e57d2a227c3fc5d77dc51fb | 8a58b02b1dfc97bf56a5fd94732316c032e24a70 | /api/tests.py | d76ab163735695925faa78e7a7a3345bf8ab58bb | [] | no_license | momentum-team-2/example--django-recipebook | ab04d4957268ed8251e84d8a09cfc60a138c9d9f | 4a4e17c396fcc9f4c648cea494c4ae6d5dc5e570 | refs/heads/main | 2022-11-28T13:40:13.301591 | 2020-08-05T14:09:55 | 2020-08-05T14:09:55 | 279,464,956 | 0 | 0 | null | 2023-09-04T18:58:14 | 2020-07-14T02:50:58 | Python | UTF-8 | Python | false | false | 762 | py | from django.test import TestCase
from rest_framework.test import APIClient
from users.models import User
from rest_framework.authtoken.models import Token
# Create your tests here.
class RecipesAPITestCase(TestCase):
def test_user_is_added_to_recipe_on_creation(self):
user = User.objects.create(username="t... | [
"[email protected]"
] | |
718559c2ac4ab854f51d624b912324dcf7fe2be7 | 20b76d0a9a2d31ec929ffcdb082931201b58361f | /homework/2020-09-20/2020-09-20-杨婷婷.py | 46f6234d029e6c75645919444ff24e57147ec43e | [] | no_license | yangtingting123456/interfaceiframe | 3a6ff3f386cb98dcf7849ea3ab52a8ce93c6d306 | 12fc9ec2366f220a5cb1ce51c3a6a9ad7316316e | refs/heads/master | 2023-01-02T00:13:53.878122 | 2020-10-26T06:08:16 | 2020-10-26T06:08:16 | 306,569,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # 1、charles 的 三种过滤方式操作截图做成文档
#见charles四种过滤数据文档
# 2、charles 抓取 论坛 注册 、发帖数据,截图抓到了请求即可
# 3、requests 编写脚本 实现获取access_token、增加标签接口、实现查询标签接口、实现删除标签接口
# 用的公司项目做的,登录(获取token,密码md5加密)-获取用户列表-用户更新,详情,-退出等;
# 4、requests 模拟 https://www.qq.com的请求,用re模块截取出
# <meta name="description" content="(.+?)" />中的content内容
# import requests... | [
"[email protected]"
] | |
8d6dee6211d3b8e0bd8f42cb2ce3ca58cf345e87 | 54bc239124576563c1f0c72e381fb2a4fcaa6a9e | /Adafruit_AD8495_Guide/AD8495_Temperature.py | 4546df8dcb61aa12248110733193b2823c7e335d | [
"MIT"
] | permissive | jonsampson/Adafruit_Learning_System_Guides | 79359154e26e710b088e0c1cbc9969a26a938a25 | b941d8209cec42e3dce5f5e6b533584e3e99ac73 | refs/heads/master | 2020-07-29T17:43:53.439741 | 2019-10-14T01:53:01 | 2019-10-14T01:53:01 | 209,904,940 | 3 | 1 | MIT | 2019-09-21T01:04:35 | 2019-09-21T01:04:34 | null | UTF-8 | Python | false | false | 283 | py | import time
import analogio
import board
ad8495 = analogio.AnalogIn(board.A1)
def get_voltage(pin):
return (pin.value * 3.3) / 65536
while True:
temperature = (get_voltage(ad8495) - 1.25) / 0.005
print(temperature)
print(get_voltage(ad8495))
time.sleep(0.5)
| [
"[email protected]"
] | |
db985281b42e7256f86e97b45e00e71da8cd0b1d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/psu/instpol.py | 82e180acf3f6c666ea7d10c6bd65a11d575327f0 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,877 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
ea44472cf613f7a505cdbd709dcbf6b69628ed94 | 35d42fa466f6457c83f9e89b6e87e050c0189bf2 | /news/urls.py | 8cd7b45c9fe79d8f08621a003fef854c096236ef | [] | no_license | Burence1/The-Moringa-Tribune | 4c0473f50f84f0f6563369b805d7b00bf8aa43ec | b035a082580eb1e8841e504c87f56392f85ae43e | refs/heads/main | 2023-05-12T11:17:26.898628 | 2021-05-27T13:48:13 | 2021-05-27T13:48:13 | 365,954,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path,re_path
from . import views
urlpatterns = [
path('',views.news_today,name='newsToday'),
re_path('archives/(\d{4}-\d{2}-\d{2})/',views.past_days_news,name = 'pastNews'),
path('search/',views.search_results,nam... | [
"[email protected]"
] | |
b7e4e280e4c4ea18117163135448ed4e9f3b14b8 | 19be48da7eb090f31fd88b1cef9c8ef3a6aaa0eb | /funcion23.py | c746bc134e246f9f9e9ecf9b80faae8d064e47c1 | [] | no_license | smith-sanchez/t09_Carrion_Villavicencio | 376608d60dd175d872f2622b38ff220b6160ff9a | 4cbb0e0694b35fd7135748bc7ef13db7c7374390 | refs/heads/master | 2020-11-27T05:08:14.629793 | 2019-12-20T18:36:00 | 2019-12-20T18:36:00 | 229,316,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # funcion 23
# salario de un chef
import libreria
import os
#import os
dia=int(os.sys.argv[1])
precio_dia=float(os.sys.argv[2])
# import libreia
salario_total=libreria.salario(dia,precio_dia)
print(" el salario es:",salario_total) | [
"[email protected]"
] | |
3cdf8011b618b07498f42f587746389db19ab840 | e7964338707afba0228866a33f954a974fcc693b | /code/linreg/boston3d_loss.py | 93704fc901be370ade12eb00fcf6b4701c31b2e4 | [
"MIT"
] | permissive | anawatbk/msds621 | f96346ddc4fd47d7b9c3a40e2632da7a39aaf2e0 | 869a309e235359119f30477c7a57763e222197e5 | refs/heads/master | 2023-03-25T10:20:02.072200 | 2021-03-10T09:39:33 | 2021-03-10T09:39:33 | 333,196,889 | 0 | 0 | MIT | 2021-03-10T09:39:34 | 2021-01-26T19:41:04 | Jupyter Notebook | UTF-8 | Python | false | false | 2,523 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from mpl_toolkits.mplot3d import Axes3D # required even though not ref'd!
from matplotlib import rcParams
import matplotlib as mpl
from sklearn.linear_model import LinearRegression, Ridge, Lasso, LogisticRegression
from sklearn.ensemble import Rand... | [
"[email protected]"
] | |
bfb4f12275d4630557cbb7716232b552fb2bc121 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2014/w33.py | e5aa36b9425bc3b95b355755a29e3a5445ba785d | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | n=input()
ar=[0]*1000001
i=0
while i<n:
k=input()
x=raw_input().split(' ')
j=0
while j<k:
ar[int(x[j])]=1
j=j+1
i=i+1
i=1
while i<=1000001:
if ar[i]==1:
print i,
i=i+1
| [
"[email protected]"
] | |
7d6ab9147f7e2b8536e088e2f9369d2f7f13d547 | 4a36849188747a1e3cc4b052eb6bc3a21e3e53bb | /POJ/3061.Subsequence/3061.Subsequence.py | e877888939ef6ca21888b36bf9aeb5ccaf105122 | [] | no_license | koking0/Algorithm | 88f69a26f424d1b60a8440c09dd51c8563a86309 | 2828811ae2f905865b4f391672693375c124c185 | refs/heads/master | 2022-07-06T17:10:07.440930 | 2022-06-24T14:59:40 | 2022-06-24T14:59:40 | 216,952,717 | 35 | 48 | null | 2020-07-21T02:46:26 | 2019-10-23T02:41:09 | Java | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
# -*- coding: utf-H -*-
# @Time : 2020/1/28 16:27
# @File : 3061.Subsequence.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author : Alex
# >>> QQ : 2426671397
# >>> Mail : [email protected]
# >>> Github : https://github.com/koking0
# ☆... | [
"[email protected]"
] | |
a976c9d14e1dee06b2ff83170340b7db50d36e35 | f0cdda3cf2817bcf991a14cf46e38c353e6872a6 | /src/epuck2_gazebo/scripts/epuck2_control_codes/epuck_pid_controller.py | 83a881db1ca46ec151e0f02e6df04aef77f70ca8 | [] | no_license | vinits5/gym-vinit | efc1b5312674840333eea4fb3912aa579c295f5f | 3ebd79ee94a51c12a6b64fe743ebc742f8d5e63d | refs/heads/master | 2020-03-22T00:55:19.272167 | 2018-06-30T19:00:12 | 2018-06-30T19:00:12 | 138,631,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,760 | py | #! /usr/bin/python
import rospy
import math
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
import matplotlib.pyplot as plt
import numpy as np
import tf
from tf.transformations import euler_from_quaternion
from std_srvs.srv import Empty
import time
velocity_publisher = rospy.Publisher('epuck2/cm... | [
"[email protected]"
] | |
774d66cb1470234449465f0188cd76c1b7dd3b9f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_gigabits.py | 5b528902501ccb6eb2a2803116afd4524cf7a3d7 | [
"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 | 245 | py |
from xai.brain.wordbase.nouns._gigabit import _GIGABIT
#calss header
class _GIGABITS(_GIGABIT, ):
def __init__(self,):
_GIGABIT.__init__(self)
self.name = "GIGABITS"
self.specie = 'nouns'
self.basic = "gigabit"
self.jsondata = {}
| [
"[email protected]"
] | |
ea2f3fd552459d85a170b03d4f5e904f7c191349 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s750895351.py | 7378de763ab9a50cfa785771268623df0b68e5e7 | [] | 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 | 604 | py | import sys
input = sys.stdin.buffer.readline
from collections import defaultdict
def main():
H,W,N = map(int,input().split())
d = defaultdict(int)
for i in range(N):
a,b = map(int,input().split())
a -= 1
b -= 1
for x in range(3):
for y in range(3):
... | [
"[email protected]"
] | |
6c39c671da8ea030b974588fc017b2bac50a4db6 | feeeab5dc580786a35dbddcb99ddab85bc893668 | /managers/cc_help.py | 208cebfbd552ce1485297a7e2ef7c4c00e44949c | [] | no_license | idelfrides/POC_test_creditCard_type | 54dd3c5de02547802074e2acf50295463e92f17d | 10792ac8f3393a6e3d621d24a43eb794ec241a02 | refs/heads/master | 2020-08-08T01:58:54.997806 | 2019-10-08T14:43:23 | 2019-10-08T14:43:23 | 213,668,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py |
# from .help import get_digits
import re
from .help import get_digits
# there are codes --> code
CC_TYPE_GENERIC = 0
CC_TYPE_VISA = 1
CC_TYPE_AMEX = 2
CC_TYPE_DINERS = 3
CC_TYPE_DISCOVER = 4
CC_TYPE_MASTERCARD = 5
CC_TYPE_ELO = 6
CC_TYPE_JCB = 7
CC_TYPE_MIR = 8
CC_TYPE_UNIONPAY = 9
CC_TYPES = (
(CC_TYPE_... | [
"[email protected]"
] | |
b603e746dc5f758e8ad5e6b8160c2676e856d555 | 6fbd56a12f8675c8ee6dd9ad23101a9c02d34387 | /setup.py | 9ee9310affb4d9f8071f556091f427c1ae42963a | [
"MIT"
] | permissive | matthiasdebernardini/topology | aa666940786dfdbc1fe1f732b73365d1eb596893 | 5cb7cb1e9a602874e7a325f95e50dfe110ca8efb | refs/heads/main | 2023-02-14T18:54:40.751005 | 2021-01-05T09:29:01 | 2021-01-05T09:29:01 | 328,508,598 | 0 | 0 | MIT | 2021-01-11T00:26:57 | 2021-01-11T00:26:56 | null | UTF-8 | Python | false | false | 846 | py | from setuptools import setup
import io
with io.open('README.org', encoding='utf-8') as f:
long_description = f.read()
with io.open('requirements.txt', encoding='utf-8') as f:
requirements = [r for r in f.read().split('\n') if len(r)]
setup(name='lntopo',
version='0.1.0',
description='Tools to wo... | [
"[email protected]"
] | |
75beee39f655ccdabb0e887a3fea8cafc7e95c8a | e2897c39ec494856e0f110c57f3f0bb4740ac4de | /task_2/task_2/wsgi.py | d926bbe042842485d5f7b8e6eef5a2e769852adf | [] | no_license | ksuvarna85/app_school | fc3f75eddf18535fff8cbf2b38d1fd39bf313102 | 9804cd0d9c629e37d72cd72738c675536ce1dd24 | refs/heads/master | 2022-12-10T23:24:30.967284 | 2020-09-02T05:13:16 | 2020-09-02T05:13:16 | 292,185,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for task_2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"[email protected]"
] | |
953dfcb4dd312ccbcb7d455b544179ac4a617b59 | 2d4005c1bce1bad26fa9cba6c8ccab913e27c4ec | /Python高级/7丶http协议丶web服务器/4丶根据用户的需求返回相应的页面.py | 98eb031fe68132eb0345e8427d55a43e7c9ea1ae | [] | no_license | wfwf1990/learn | 4b801f2c082ce180a6d70d680c8cadbc5c6ec3cf | 5ed32454ddf083866fabd730d5b2ffb544a30e08 | refs/heads/master | 2020-03-21T18:16:20.284168 | 2018-07-18T11:35:29 | 2018-07-18T11:35:29 | 138,881,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | # Author: wangfang
# Author: wangfang
import socket
import re
def handle_data(client_socket):
recv_data = client_socket.recv(1024)
#接收的数据进行解码
recv_data = recv_data.decode("utf-8")
#接收的数据进行合并
recv_data = recv_data.splitlines()
#获取请求头中的URI
url = re.match("[^/]+(/[^ ]*)",recv_data[0]).group... | [
"[email protected]"
] | |
67e955dc2e70709a21813dde1e1e3ecf9da1ec54 | 41c26da9c57052a3c9cd17b81d91f41ef074cf8d | /MyLeetCode/FB/Sqrt(x).py | e57f5f518cdc5ab67b63761318a1cca55c7a2c24 | [] | no_license | ihuei801/leetcode | a82f59a16574f4781ce64a5faa099b75943de94e | fe79161211cc08c269cde9e1fdcfed27de11f2cb | refs/heads/master | 2021-06-08T05:12:53.934029 | 2020-05-07T07:22:25 | 2020-05-07T07:22:25 | 93,356,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | ###
# Binary Search
# Time Complexity: O(logn)
# Space Complexity: O(1)
###
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
if x <= 0:
return 0
if x == 1:
return 1
l, r = 1, x
while l + 1 < r:
... | [
"[email protected]"
] | |
e45e92ac2a515b699091a99231db873b58ea6c9e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy786.py | f2b65f32ed029be9c4178c2a3b37eb138cc9f1e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=19
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"[email protected]"
] | |
63a817e8557c763d366712c27c996a9e667b18c3 | ebe7c57183b0eeba9af1bdc72f0f81b9b8129ca9 | /23. HashTable/387.py | 8b7b7473758a3bccdd09c324c10a8ef2fb84a148 | [] | no_license | proTao/leetcode | f2e46392b56b69606e1dd25cf5738cb0ad275645 | 97533d53c8892b6519e99f344489fa4fd4c9ab93 | refs/heads/master | 2021-11-24T10:23:56.927122 | 2021-11-18T04:28:05 | 2021-11-18T04:28:05 | 110,225,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from collections import Counter
from math import inf
class Solution:
def firstUniqChar(self, s: str) -> int:
count = Counter(s)
for i, c in enumerate(s):
if count[c] == 1:
return i
return -1
def firstUniqChar(self, s: str) -> int:
alpha = "qwertyuiop... | [
"[email protected]"
] | |
a6664ec1cdda715d878aabeded1980ae5457a15c | 6f4f4d2ff85574a42a6e539d43becce5815e4530 | /lyman/tests/test_frontend.py | 639f8dc1d503c8f8798aa0fc2826f066d4bf4007 | [
"BSD-2-Clause"
] | permissive | toddt/lyman | b6aa656b6f8a6a235b9bf2f64d035a1b78dc188f | e3a5519fce41a765ae593d8d161e995c5f9aae8c | refs/heads/master | 2021-01-22T12:53:33.693352 | 2014-01-15T21:33:10 | 2014-01-15T21:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from argparse import Namespace
from nose.tools import assert_equal
from .. import frontend
def test_determine_engine():
plugin_dict = dict(linear="Linear",
multiproc="MultiProc",
ipython="IPython",
torque="PBS")
for arg, plugin_str in plug... | [
"[email protected]"
] | |
8c6a5a3e278d1c8a19d73033246e3453833eb81e | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /web/apps/admin/groups.py | b0ad4bfe977abf42bf38d551d4f9ce035134e1a5 | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | """
system users
"""
from zoom.components import success, error
from zoom.collect import Collection, CollectionController
from zoom.forms import Form
from zoom.helpers import link_to, url_for
from zoom.models import Group, Groups
from zoom.tools import now
import zoom.validators as v
import zoom.fields as f
from... | [
"[email protected]"
] | |
cc247e80135181a627d1df3c82785a5871e3b13c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1485023/snippet.py | 55f1081e778224a3121589a27e60a6f8ebd07476 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,053 | py | # You need gevent 1.0 and pyzmq 3.x
#
# pip install --user git://github.com/SiteSupport/gevent.git
# pip install --user pyzmq
#
import gevent
import zmq.green as zmq
import os, sys
ADDR = 'tcp://127.0.0.1:5555'
def run_parent():
ctx = zmq.Context()
sock = ctx.socket(zmq.PUSH)
sock.bind(ADDR)
for i in... | [
"[email protected]"
] | |
2868e0431b4695d3c0c1bf5f09a50754ff439a4e | 983f77449bbea7ae1993a93d7f4431f0f07193f0 | /lab/agent_exercising/model.py | 3593f4708457d6223c507bb9e459248134d29983 | [] | no_license | johnholl/TDnets | 09d45f2bab138639e3be107d2e44df01533c10c3 | 00afc8a5ad412047c658deed2f487a98f062788b | refs/heads/master | 2020-06-19T06:41:42.159903 | 2017-03-13T13:02:11 | 2017-03-13T13:02:11 | 74,916,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,714 | py | import numpy as np
import tensorflow as tf
import tensorflow.contrib.rnn as rnn
def normalized_columns_initializer(std=1.0):
def _initializer(shape, dtype=None, partition_info=None):
out = np.random.randn(*shape).astype(np.float32)
out *= std / np.sqrt(np.square(out).sum(axis=0, keepdims=True))
... | [
"[email protected]"
] | |
2f211ee9858ffddacd1a6b995f06cd8455450b80 | 4d9ce4ab1f0ce0a857f215edc2ffc99ce3b82623 | /tfx/orchestration/experimental/core/mlmd_state_test.py | 6faacc6cc12f8ce1e987bfdbb57b7de35f8efd41 | [
"Apache-2.0"
] | permissive | vpipkt/tfx | 448fd85a177f7e3a3a6dacf262eb0c93f459f534 | 42f4f4095ff3c3e23fe2ac1076c9a0fdfc631d23 | refs/heads/master | 2023-06-20T12:27:56.083959 | 2021-05-25T18:31:23 | 2021-05-25T18:33:12 | 370,820,614 | 0 | 0 | Apache-2.0 | 2021-05-25T20:31:22 | 2021-05-25T20:31:22 | null | UTF-8 | Python | false | false | 2,934 | py | # Copyright 2021 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"[email protected]"
] | |
f7d962573d6c4eeb3ac79b56b3303e17fe27a433 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_VSCODE-extensions/vscode-python/pythonFiles/runJediLanguageServer.py | a473bf76b3a84a8c79ff0f8fd1ea6b94dcf2f432 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 451 | py | import re
import sys
import os
# Add the lib path to our sys path so jedi_language_server can find its references
EXTENSION_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.join(EXTENSION_ROOT, "pythonFiles", "lib", "python"))
from jedi_language_server.cli import cli
# Trick... | [
"[email protected]"
] | |
b59c150b00f4f258483032fd787f347eff062302 | 229e1e103bc24dda4d8fef54b762009e19045a45 | /configs/nowd/gc/res101_d_gc.py | ad3d4ce5f80de72c915fef67bf6c818a89d6128a | [
"MIT"
] | permissive | yinmh17/CCNet | c0be71919877c0d44c51cd8fd8ad8f644ef618a6 | d5e90fe5ccfa16389fd25bdd3e2160ffe2dfbd22 | refs/heads/master | 2020-06-18T13:03:46.781284 | 2019-11-12T06:26:59 | 2019-11-12T06:26:59 | 196,311,075 | 1 | 1 | MIT | 2019-07-21T19:48:39 | 2019-07-11T03:10:01 | Python | UTF-8 | Python | false | false | 1,097 | py | model = dict(
type='basenet',
pretrained='',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
block_num=[3, 4, 23, 3],
),
att=dict(
with_att=False,
type='glore',
att_stage=[False,False,True,False],
att_pos='after_add',
at... | [
"[email protected]"
] | |
a76ac90843514fd223703c25311d3db82fdcb1d9 | fb86f0dca6e525b8a8ddb63f10b8d220ddd7f7fe | /test/functional/sapling_changeaddresses.py | f8aa5d49517df753cb930c26fe101290083c7303 | [
"MIT"
] | permissive | ORO-mlm/UNO-Core | 14fcdb3c2db4bde256e48ea661ada61579ccf403 | d6e6769ce57466cfc9e7cab681eab880cdb8e3e8 | refs/heads/main | 2023-06-16T08:21:00.808606 | 2021-07-12T07:08:35 | 2021-07-12T07:08:35 | 383,350,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Zcash developers
# Copyright (c) 2020 The PIVX developers
# Copyright (c) 2021- The UNO developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework... | [
"[email protected]"
] | |
e74a4232dc7fc3b1de106635f6beb9dc191f4f63 | 373e44ad5fba391d86543f28b91a2cdf9a22f874 | /model/TestPar45_60_varydatasize/60/PowerPredEDFA_average.py | d70aad24fd3ba2b6baa9d93a86d69d68d3e1e57a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | szhu3210/oopt-gnpy | c311fe00b869d3bcfabae4e22366cbc2215eb91d | 83768480eb9aedad560ab9a722493f04cfe80c9c | refs/heads/master | 2020-04-02T00:24:48.608431 | 2019-04-01T18:32:11 | 2019-04-01T18:32:11 | 153,803,494 | 1 | 0 | BSD-3-Clause | 2018-10-19T15:22:16 | 2018-10-19T15:22:15 | null | UTF-8 | Python | false | false | 1,521 | py | # coding: utf-8
# In[171]:
# Ido Michael
import tensorflow as tf
import os, struct
import numpy as np
import matplotlib.pyplot as plt
import ParsePowerEDFA
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_absolute_error
import math
import sys
import configparser
import random
print(tf... | [
"[email protected]"
] | |
a030538c5ca7316deb104f9555029252bad5e681 | 3c40dce2af71dd6216f4b64e5f42d4d6d5bc6b25 | /auto_client/libs/plugins/__init__.py | 02afa5f43fb806ca16c94112950069f750df338e | [] | no_license | huzhou520/cmdb | 1c93ad47d2a5e564c1e8f34ec9015590208fafeb | b6b4aba4184ed316a0a0b5f2b1a876473ec4cdbc | refs/heads/master | 2020-09-11T22:36:31.588900 | 2019-12-27T01:55:40 | 2019-12-27T01:55:40 | 222,212,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from settings import PLUGIN_DICT
def get_server_info(hostname, ssh_func):
"""
:param hostname: 要操作的远程主机
:param ssh_func: 要执行的方法
:return:
"""
info_dict = {}
for key, path in PLUGIN_DICT.items():
# 1.切割settings文件中的字典
"""
例:libs.plugins.board.Board,切割settings文件中的value... | [
"[email protected]"
] | |
315dde5190931ae95728751f22a8752b3de8b9e1 | a439ca43178d38cfe6daaee50ea134ca6c52b502 | /thaniya_client/src/thaniya_client/tools/ThaniyaMySQL_native.py | a110c96dca5ffc807f8d9a6352e11b529c08a02e | [
"Apache-2.0"
] | permissive | jkpubsrc/Thaniya | 37ca727abdc6f9f605257813889fe3a033995bba | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | refs/heads/master | 2023-03-05T20:58:59.528746 | 2021-02-15T19:31:06 | 2021-02-15T19:31:06 | 331,318,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py |
import os
import typing
import tarfile
import jk_simpleexec
import jk_utils
from ..ThaniyaBackupContext import ThaniyaBackupContext
from .EnumTarPathMode import EnumTarPathMode
from .ThaniyaService import ThaniyaService
class ThaniyaMySQL_native:
@staticmethod
def mySQLDump(ctx:ThaniyaBackupContext, dbNam... | [
"[email protected]"
] | |
716ed2177858886621060abad9ac3e5c264f152a | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/battle/shared/timers_common.py | fa0fb189e2e6d1344d6ee8d161432c625338e6e9 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,809 | py | # 2017.08.29 21:46:09 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/timers_common.py
import BigWorld
from gui.shared.utils.TimeInterval import TimeInterval
class TimerComponent(object):
__slots__ = ('_panel', '_typeID', '_viewID', '_totalTime', '_startTime',... | [
"[email protected]"
] | |
e6c68eff9e6a0fdc168b30b5b841532a1cf4b03d | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_inv/trend_constant/cycle_7/ar_/test_artificial_32_inv_constant_7__0.py | a69b8bc01e2baf94726fff51468a7e4e6843851d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 7, transform = "inv", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"[email protected]"
] | |
ade16edad2cbac40e9bacca1b0aba5e260577e2f | dfe925c32292ba1e054b86ea660546eb9eac921b | /example/gs/__init__.py | c371d57c6a673838f1d0eb1f56482200e99ebb74 | [] | no_license | keul/example.gs | bc64488d5e67492994b5a12a99d0fa64f1af87de | 5435e9f4fde66b810ff184c25e2dc26aa40900df | refs/heads/master | 2020-04-30T09:50:23.781896 | 2013-05-01T18:02:15 | 2013-05-01T18:02:15 | 9,789,567 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # -*- coding: utf8 -*-
import logging
from zope.i18nmessageid import MessageFactory
from example.gs import config
from example.gs.tool import FooTool
from Products.Archetypes import atapi
from Products.CMFCore import utils
logger = logging.getLogger('example.gs')
gsMessageFactory = MessageFactory('example.gs')
def... | [
"[email protected]"
] | |
db2b8203bfcc6e719473a13b065bcf0d51007f50 | b15fd3fa4431c3bc0e9098b8ece4cb1e3bb45d50 | /data_providers/downloader.py | ec29f6d09b6514f00c036b6841ea965efcc7c89b | [] | no_license | SoulDuck/DenseNet | 0cdbb86f0cb4a685585f562374c894c165b3459f | 96581dd8e2df973560cf69ff99da211e91af55bb | refs/heads/master | 2021-07-10T04:22:31.868745 | 2017-10-06T13:23:57 | 2017-10-06T13:23:57 | 105,623,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import sys ,os
from urllib import urlretrieve
import tarfile
import zipfile
def report_download_progress(count , block_size , total_size):
pct_complete = float(count * block_size) / total_size
msg = "\r {0:1%} already downloader".format(pct_complete)
sys.stdout.write(msg)
sys.stdout.flush()
def dow... | [
"[email protected]"
] | |
2cd1a1a76fe6766a6854de9064bedf52a1da8564 | a2f9d55d686425c4b47ce150aa1a23ea933055cc | /crossposting/spawnprocess.py | 0fa69d71efbd3ebead59242be16e3f573bf5535b | [] | no_license | wd5/blombum | b31c581f2c36c220164901189be1ba95a8341e0e | fe11efb369fe2cec67af1e79bc8935a266df2f80 | refs/heads/master | 2020-12-25T02:23:30.297939 | 2010-06-29T10:03:31 | 2010-06-29T10:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | #!/usr/bin/python
import subprocess
subprocess.Popen([
'/home/nide/code/kanobu/src/manage.py', 'rebuildindex', '--site_id', '4', '--parse', 'none'
])
subprocess.Popen([
'node', '/home/nide/code/blombum/crossposting/test.js'
], stdin = subprocess.PIPE).communicate('[{somevar: 1}, {somevar: 44}, {somevar: 22}]')
pr... | [
"[email protected]"
] | |
51da8e312770d0a2581c84ac2ef664dca607d04f | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /full_segmentation_histogram_creator.py | 97bc397018dc6ce79e45c96098caf6d100fa396d | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 1 12:43:28 2016
@author: lpsmith
"""
from __future__ import division
from os import walk
import lucianSNPLibrary as lsl
nsamples_min = 10 #Arbitrary value: minimum number of samples we require
data10_12 = []
data13_20 = []
data21_50 = []
data51_500 = []
data501_5000 =... | [
"[email protected]"
] | |
a7cb86c2e4cbd4332442225c33eccf63b66b7f00 | de4e1332950d37707620c54a9613258c1dd9489c | /dongyeop/4주차/주식가격.py | 66a1fd2587ee46a60471b010445f940fe0c01ebf | [] | no_license | PnuLikeLion9th/Summer_algorithm | 8fe74066b9673fb891b7205f75f808a04c7fe750 | dcfcb6325854b3b4c529451d5c6b162298b53bc1 | refs/heads/master | 2023-07-10T13:57:05.511432 | 2021-08-15T07:50:00 | 2021-08-15T07:50:00 | 378,679,514 | 3 | 10 | null | 2021-08-15T07:50:01 | 2021-06-20T15:32:18 | Python | UTF-8 | Python | false | false | 943 | py | # 브루트포스
# def solution(prices):
# answer=[0]*len(prices)
# for i in range(len(prices)):
# for j in range(i+1,len(prices)):
# if prices[i] <=prices[j]:
# answer[i]+=1
# else:
# answer[i]+=1
# break
# return answer
def solution(pr... | [
"[email protected]"
] | |
a9959f969e1eb4d2abb88b4c50c283f909536ea4 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/H/hanse/vol_essen.py | b2d4485b5664a460fc906ebcf35661445fb64799 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import scraperwiki
import lxml.html
pageCounter = 1
while True:
page = scraperwiki.scrape("http://essen.vol.at/welcome.asp?page=%d" % (pageCounter))
root = lxml.html.fromstring(page)
for entry in root.cssselect('div[class="Entry"]'):
data={
"Name":entry.cssselect... | [
"[email protected]"
] | |
bda191301750ca690fb5cac1d9f9abe3f859c48c | b773ca4e5f4a8642149316d3aded4c8b1e6037d2 | /sprint-challenge/aq_dashboard.py | e05d226a6c975acfb3676de3141310ccde108ea6 | [
"MIT"
] | permissive | echiyembekeza/DS-Unit-3-Sprint-3-Productization-and-Cloud | c2157e9078ec49b1f59d28220146a197dda3b25c | 64958ae8e9d2310d6c72606109a6ccf456bc5949 | refs/heads/master | 2020-08-04T18:39:27.405320 | 2019-12-11T03:11:28 | 2019-12-11T03:11:28 | 212,239,896 | 0 | 0 | MIT | 2019-10-02T02:27:48 | 2019-10-02T02:27:48 | null | UTF-8 | Python | false | false | 1,662 | py | """OpenAQ Air Quality Dashboard with Flask."""
from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
from decouple import config
from os import getenv
import openaq
APP = Flask(__name__)
APP.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'
DB = SQLAlchemy(APP)
API = openaq.OpenAQ()
mmen... | [
"[email protected]"
] | |
695d0d073402440740fc8500b7e5f345c02b68c8 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/Learn/PyCharm/Introduction to Python/Condition expressions/Boolean operators/tests.py | 470706706d0ff91198294d3ffe34a83d348960e6 | [
"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 | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:539e49395fbd7e0e4b30294456efe7d922a26823d5ac4c0eea6d348bb18cfba3
size 413
| [
"[email protected]"
] | |
318a74534f2ec00ecb9d3d2d90042ac5ad963a45 | 56a7dd75f2a3f45d599ca89aaa9ca45390fbd546 | /ejercicios_preparcialito/parcialito_2/diccionarios/ejercicio_62.py | 28412a76c350229698e62a66e240a63a6c3ce189 | [] | no_license | facundoPri/algoritmo-programacion-i-essaya | e030d74de832b7642ff84a77212f8ea429d560d8 | 5ff7a8fc66f6683d47bc9faf80a35f9902b1e1a3 | refs/heads/master | 2023-04-07T01:04:10.221473 | 2021-04-10T13:05:59 | 2021-04-10T13:05:59 | 299,450,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Escribir una función que reciba una cadena y devuelva un diccionario cuyas claves sean las letras y cuyos valores sean la cantidad de apariciones de dicha letra. Por ejemplo, si recibe 'catamarca' debe devolver: {'c':2, 'a':4, 't':1, 'r':1, 'm':1}.
"""
def contar_caracteres(cadena):
"""
Recibe una cadena
... | [
"[email protected]"
] | |
ec8498ae54869540f229014677d6853284fde9fc | d4c67b2a12e990d4193e7ab06f04824a348067bf | /rl_trainer/ddpg_impl/flower/actor_critic/tf_ddpg_agent.py | 68c2dcbba15a6708b6789a492d9ba35ba24c020f | [
"BSD-3-Clause"
] | permissive | Roboy/nips-2018-ai-for-prosthetics | 2d57688ce85126379793e8643cbf0030c8f56beb | acb69f267a0cc852842828edbbfb47d1840c0a17 | refs/heads/master | 2020-03-26T05:39:25.565440 | 2018-11-01T23:28:08 | 2018-11-01T23:28:08 | 144,567,613 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | import numpy as np
from typing import Callable, Collection
import tensorflow as tf
from gym.spaces import Box
from overrides import overrides
from typeguard import typechecked
from rl_trainer.agent import GymAgent
from rl_trainer.agent.replay_buffer import ReplayBuffer, InMemoryReplayBuffer
from rl_trainer.commons im... | [
"[email protected]"
] | |
e1c04602eb11935c3019f76fedd8f5debbf6c2c4 | b9c4c4e2ba9a54cf79169bb2c43e29b6994618f4 | /source/webapp/models.py | 5d3cd21c50b5fbf0b491d7e211c3065189b6e5ec | [] | no_license | big-arturka/exam_9 | 37bf8be08e0fd922bf36b0663babd4611d1ffb04 | 3505e39d9e2110c2912fc7f474e6ec297a8df4dd | refs/heads/master | 2022-12-31T14:06:53.576579 | 2020-10-24T13:24:24 | 2020-10-24T13:24:24 | 306,677,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.models import User
from django.db import models
class Photo(models.Model):
image = models.ImageField(upload_to='images', verbose_name='Фото')
signature = models.CharField(max_length=200, verbose_name='Подпись')
created_at = models.Dat... | [
"[email protected]"
] | |
d9688ce59735aea7ef8f1d52da614763b7f2d036 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/SiteEngine5_xPagejumpScript.py | 36b3f98ef2796868c8a3a3a6381ac72f04f32ea9 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
list = []
try:
domain = ob['domain']
detail = u''
url = "%s://%s%s" % (ob['scheme'],ob['domain'],ob['base_path'])
expurl="%s%s"%(url,"admin/images/css.css")
url+="api.php?ac... | [
"[email protected]"
] | |
2e858c17d93645b79fec3bc950bfad4291ef27b3 | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/cura/Backups/BackupsManager.py | ba6fcab8d75e54207a7423215cf29cc707d74109 | [
"LGPL-3.0-only",
"GPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 3,039 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Dict, Optional, Tuple, TYPE_CHECKING
from UM.Logger import Logger
from cura.Backups.Backup import Backup
if TYPE_CHECKING:
from cura.CuraApplication import CuraApplication
## The BackupsManager i... | [
"[email protected]"
] | |
3c639d64247b4a49b28c974d5d915777ea97abc0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /egHeSWSjHTgzMysBX_11.py | 07299dceba5a669196df27a142df5458fa762af5 | [] | 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 | 501 | py | """
Create a function that takes a number as an argument and returns half of it.
### Examples
half_a_fraction("1/2") ➞ "1/4"
half_a_fraction("6/8") ➞ "3/8"
half_a_fraction("3/8") ➞ "3/16"
### Notes
Always return the simplified fraction.
"""
def half_a_fraction(fract):
fraction = fract.... | [
"[email protected]"
] | |
22cca10d1314023d365cc0bdaae9d23ec9feeb56 | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/utils/ocr/handle_image_20210209170155.py | 17a1ffee42abc92b121aff59d84aa5bebaf2bf31 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | import os
import cv2
import re
import numpy as np
from PIL import Image
import pytesseract
from pytesseract import Output
from fpdf import FPDF
'''
IMAGE HANDLING METHODS
'''
# get grayscale image
def get_grayscale(image):
return cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
# blur removal
def remove_blur(image):
... | [
"{[email protected]}"
] | |
b15ae00c90717a2a67c39cb9e72a1951ed5f1ae4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_217/ch21_2019_08_26_19_58_29_478795.py | 8e46bdfeb1e79e43246166f70246709b75ed0188 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | def valor_da_conta(valor):
valor = int(input('Qual valor da conta?:' ))
com10% = valor + valor*(10/100)
return com10%
print("Valor da conta com 10%: R${0}".format(com10%)) | [
"[email protected]"
] | |
6c907dbb07bf1ef1ce4fdced214be391d28b2ca8 | eda9187adfd53c03f55207ad05d09d2d118baa4f | /python3_base/python_class_method.py | 4bb8dc5866ce970db1d955879a443c4426f31c41 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
@Author: Yan Errol
@Email:[email protected]
@Date: 2019-05-20 17:22
@File:class_method.py
@Describe:静态方法
'''
from math import sqrt
class Triangle(object):
def __init__(self, a, b, c):
self._a = a
self._b = b
self._c = c
@staticmeth... | [
"[email protected]"
] | |
b6db4caaa1b3f409974642244d2e45e58bea2b74 | d94d22ab20a11ab6c473d8aba4038c97f75806c4 | /python小栗子/t57.py | c34766c279355c2457734c45293ae01587fccbaf | [] | no_license | songszw/python | a1d0419b995df13aee5997d24c09dccab91ac9e0 | 5135a3efcdcc2a37f7321ae19271c9315f48bcaf | refs/heads/master | 2020-02-26T16:24:28.411919 | 2017-04-26T09:08:41 | 2017-04-26T09:08:41 | 71,195,225 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | print('|--- 欢迎进入宋氏通讯录 ---|')
print('|--- 1:查询联系人资料 ---|')
print('|--- 2:插入新的联系人 ---|')
print('|--- 3:删除已有联系人 ---|')
print('|--- 4:退出通讯录程序 ---|')
contacts = dict()
while 1:
num = int(input('please enter the number you want to do: '))
if num==1:
name = input('please enter the name you waht to... | [
"[email protected]"
] | |
509b043958ecf41f0f38c5f2c9c22a9f3826f34b | 074279d6b63c9cd25c1353624710ed1fb422b30f | /j2ee模式-前端控制器模式.py | 53e5ab14544ddcb6c8ff3233c365a535f8179b88 | [] | no_license | qqizai/python36patterns | edd106f496a1aa7eda5d9070a6d82f142a808621 | 39052df13db9a54cb8322d87edbc2dbe6ff06a07 | refs/heads/master | 2022-11-12T14:01:32.341802 | 2020-06-29T02:23:46 | 2020-06-29T02:23:46 | 281,970,231 | 0 | 1 | null | 2020-07-23T14:13:31 | 2020-07-23T14:13:30 | null | UTF-8 | Python | false | false | 2,562 | py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/10/9 0009 15:32
"""
前端控制器模式(Front Controller Pattern)是用来提供一个集中的请求处理机制,所有的请求都将由一个单一的处理程序处理。该处理程序可以做认证/授权/记录日志,或者跟踪请求,然后把请求传给相应的处理程序。以下是这种设计模式的实体。
前端控制器(Front Controller) - 处理应用程序所有类型请求的单个处理程序,应用程序可以是基于 web 的应用程序,也可以是基于桌面的应用程序。
调度器(Dispatcher) - 前端控制器可能使用一个调度器对... | [
"[email protected]"
] | |
d81ca3d2f986e4c7af9c64432aef10385266e46b | 8cc30a27835e205a3476783106ca1605a6a85c48 | /amy/workshops/migrations/0066_merge.py | ef0455252831a8b0cfaf3e51343f4267be07ade1 | [
"MIT"
] | permissive | gaybro8777/amy | d968edc78bbd3f63f3353450334721628dbbc0f4 | 3cf99aed58a0f0acf83d2645a30d8408208ccea9 | refs/heads/develop | 2023-03-07T22:08:28.692700 | 2021-02-23T18:06:06 | 2021-02-23T18:06:06 | 341,930,505 | 0 | 0 | MIT | 2021-02-24T17:22:08 | 2021-02-24T14:40:43 | null | UTF-8 | Python | false | false | 304 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('workshops', '0064_dc_instructor_badge'),
('workshops', '0065_multiple_memberships'),
]
operations = [
]
| [
"[email protected]"
] | |
f9023a1da5efba1124204d1d8a76778d9c15c29d | d18f74c0683fa412833fc7b68f737226dcf0f5df | /setup.py | 70e68c224d914b125b04f0aa01c8f602ff39fa0f | [] | no_license | phymhan/gomoku | ab22b19c2f59ea63aba3015f2b3ce53bf1b440e5 | e48e215fe24236ccccfa5edb0709a22bed4624b9 | refs/heads/master | 2021-08-28T23:06:50.620937 | 2017-12-13T07:49:45 | 2017-12-13T07:49:45 | 114,087,358 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | import cx_Freeze
executables = [cx_Freeze.Executable("fivechessonline21.py")]
cx_Freeze.setup(
name = "Five-Chess",
options = {"build_exe": {"packages": ["pygame"],
"include_files": ["./sources/pics/board.png",
"./sources/pics/cp_k_29... | [
"[email protected]"
] | |
54fdb90defd17f79a01648b7ef2c33d62cb46d3b | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /cpmpy/sliding_sum.py | 01b48796c45a4a65f16a0e45cf1d93b7cf1cdcf1 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 1,355 | py | """
Sliding sum constraint in cpmpy.
From Global Constraint Catalogue
http://www.emn.fr/x-info/sdemasse/gccat/Csliding_sum.html
'''
sliding_sum(LOW,UP,SEQ,VARIABLES)
Purpose
Constrains all sequences of SEQ consecutive variables of the collection VARIABLES so that the
sum of the variables belongs to interval [LOW, U... | [
"[email protected]"
] | |
c73953e48af931827b1da62eb65e647668cfd10d | 5e45f1d1d9f58aa1456777b0d75334d6efd43840 | /challenges/hackerrank/algorithms/dynamic/max_subarray/python/max_subarray.py | 7a4bd11931255b0775dd3b4438356b773e6b06e1 | [] | no_license | missingdays/nerdy.school | 604953dc9b3c38a0f71793f066ce2707aa980dae | 051673e0ebc54bc2f7e96a6477697d1d528dc45c | refs/heads/master | 2021-01-17T08:10:19.558851 | 2016-06-06T15:29:01 | 2016-06-06T15:29:01 | 59,897,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 missingdays <missingdays@missingdays>
#
# Distributed under terms of the MIT license.
"""
Maximum subarray problem solution
"""
def max_subarray(array):
curr_sum = 0
curr_index = 0
best_sum = 0
best_start_index = 0
... | [
"[email protected]"
] | |
878bdb34e11bc1501de1b6b0dfd2018dfcf3aa4a | 63191be7f688591af69263972d68423d76fb5f74 | /geekshop/adminapp/views/categories.py | b42b65dd0c4181601279fe52418c7aef8c7ee7a5 | [] | no_license | IliaNiyazof/Django | 5eee4c226a1f06178fdbb5626444fff406886de7 | 052cb4f3f142c4224454ebac9fb27f63de9cbc47 | refs/heads/master | 2021-07-19T05:52:56.620026 | 2020-06-05T16:17:47 | 2020-06-05T16:17:47 | 166,776,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | from django.contrib.auth.decorators import user_passes_test
from django.shortcuts import render, HttpResponseRedirect, reverse, get_object_or_404
from mainapp.models import ProductCategory
from adminapp.models.categories import ProductCategoryEditForm
@user_passes_test(lambda u: u.is_superuser)
def categories(request... | [
"[email protected]"
] | |
91feb4ba59077254f4d6a9ed644bd5d3663554bf | 60bb3ef7dd8a147761918f1fa021918d6898202d | /.history/main_20210623141903.py | eee65d95a67254bb6a9d60f7a4da85315eba9d6c | [] | no_license | sanjayMamidipaka/bbtautomationscripts | c1d29d9ea5c0fa982a53895b10db50b66e475c8f | 12c35a3459cb0ead71ae616b2efad21c555cf8a0 | refs/heads/master | 2023-06-06T06:25:09.152797 | 2021-06-23T18:21:34 | 2021-06-23T18:21:34 | 362,836,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | import pandas as pd
import numpy as np
import csv
import xlsxwriter
from timeprofile import timeprofile
from masterdata import masterdata
from virtualReference import virtualReference
from keyfigures import keyfigures
from planninglevels import planninglevels
from attributesaskf import attributesaskf
from attributes im... | [
"[email protected]"
] | |
ad56100aae986b9d39225d2009c1864556132f8f | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /test/image_load.py | 834165562d2d100c68a6bd98d20ca2faaea7dd90 | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 622 | py | #coding=utf-8
import urllib
import re
def getHtml(url):
page = urllib.urlopen(url)
html = page.read()
return html
def getImg(html):
reg = r'src="(.+?\.jpg)" pic_ext'
imgre = re.compile(reg)
imglist = re.findall(imgre,html)
x = 0
for imgurl in imglist:
urllib.urlretrieve(imgurl,... | [
"[email protected]"
] | |
ef9743d94d29deebd30fc55ae31439a2db8b093d | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715222321.py | fcf2188b6928a2756355ea80e53ded7f525f6620 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,763 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"[email protected]"
] | |
1a17c0e753532ecf7f5f5d0b99fb308e5ec83ca9 | bdcab42a9124d7a3878a904076170bd4bff7451f | /src/hessian/random_sample_points.py | 44047bd5934ab4c7ec808b9b9c3a87972695717a | [] | no_license | hwang595/data_augmentation_playground | aa30685213083bb271ae56996d8aff831ef975ab | 5b11a5d5c2d9254b5ffa293eebf8e3e6269edd69 | refs/heads/master | 2021-01-25T09:14:30.059368 | 2020-03-01T21:33:06 | 2020-03-01T21:33:06 | 93,801,194 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | import numpy as np
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
DIST_ = 20
def rand_point_generator(point_num=None):
'''
we want y \in [1.5, 2.5], x \in [-0.5 0.5] for datapoints with label 1
we want y \in [-0.5, 0.5], x \in [1.5 2.5] for datapoints... | [
"[email protected]"
] | |
54aa25a623bcd141ceb60503e4862c6560334415 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch79_2020_04_08_17_16_37_430613.py | 3692e00bb61b220fb835ac8e529d71a5ac2851ad | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def monta_dicionario(lista1, lista2):
dicionario={}
for i in range(len(lista1)):
dicionario[lista1[i]]=lista2[i]
| [
"[email protected]"
] | |
ff93f81a89b9f25fa80f463b60f894e744aea0dd | 69a36ca23409b994a31759bad58971b197cad236 | /config/settings.py | 3445021fab5cfbc2c6ca87cdbd98f719463686c2 | [] | no_license | matt700395/awesome_repo | 56601cf817106df0e210e78c7bb1f11af1e60c3a | d49b1e55b6ade24f1f2058319ac6859b45e511bc | refs/heads/master | 2023-08-27T16:45:15.570115 | 2021-11-11T14:16:06 | 2021-11-11T14:16:06 | 427,026,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"[email protected]"
] | |
c474ddcdc642369145b11ba23644182f63331500 | 116a4a2fcd3e9c3d216f96103006c707daa6001a | /HelloDjango/apps/awards/migrations/0017_auto_20200726_0254.py | 1dccd60f9a05a0237dcea616506c43eae765cb60 | [] | no_license | Eldar1988/a_white_birds | 22d743ed1fa651062f070c0e81b7ac665be7a72a | 0430d5322b3a55b6f55e9541675d6670f5d8a518 | refs/heads/master | 2022-12-18T20:23:26.293059 | 2020-09-15T04:27:59 | 2020-09-15T04:27:59 | 283,169,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Generated by Django 3.0.6 on 2020-07-25 20:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awards', '0016_juryapproved_project'),
]
operations = [
migrations.RemoveField(
model_name='jury',
name='user',
... | [
"[email protected]"
] | |
ec6e3a87299b3f0b27c39ebb22357a57cd9e2f35 | 04afb34356de112445c3e5733fd2b773d92372ef | /Sem1/FP/S13/venv/Scripts/pip-script.py | ecfdd60747e705166efa7dda1830c8ac7fb753a9 | [] | no_license | AndreeaCimpean/Uni | a4e48e5e1dcecbc0c28ad45ddd3b0989ff7985c8 | 27df09339e4f8141be3c22ae93c4c063ffd2b172 | refs/heads/master | 2020-08-21T19:12:49.840044 | 2020-05-15T17:22:50 | 2020-05-15T17:22:50 | 216,222,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!D:\Facultate\UniRepo\Sem1\FP\S13\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"[email protected]"
] | |
07ee5ca8244bc40fdcfdffc0e184e8d66225d837 | 91d13f45f8527c368ebc6e44c75142a043f0583b | /test_zappa_cookiecutter/users/tests/test_drf_urls.py | 5c5a28e94cb0566c442fdcd429e5dbf1a914a39c | [
"MIT"
] | permissive | Andrew-Chen-Wang/cookiecutter-django-lambda | 6beed03d82eeecf95281c7f03a279c9c8b2ca85c | c4c64e174f653205c399ffa683918141f2f058d7 | refs/heads/master | 2022-11-16T12:20:00.589856 | 2020-07-19T20:19:41 | 2020-07-19T20:19:41 | 280,943,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import pytest
from django.urls import resolve, reverse
from test_zappa_cookiecutter.users.models import User
pytestmark = pytest.mark.django_db
def test_user_detail(user: User):
assert (
reverse("api:user-detail", kwargs={"username": user.username})
== f"/api/users/{user.username}/"
)
as... | [
"[email protected]"
] | |
221eabeb7855ab26b445ce0626620cf82ea4dd10 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/series/a713022194c640d79ae14ee2e504dd88.py | eb7a127a4563a635852c50f164844820a748ca91 | [] | 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 | 221 | py | def slices( N, size ):
if (size == 0 and len(N) > 0) or (len(N) < size):
raise ValueError('Bad input!')
return [ [ int(d) for d in N[s:s+size] ]
for s in range( len(N) - size + 1 ) ]
| [
"[email protected]"
] | |
deca411428980e2f3479946e16bec2cf5d7bc3c3 | 516932b326f58f9dc7c008e379f80cafd820acc0 | /src/helixtariff/test/logic/test_user_tariff.py | efde456f49fbfc657f1b000a05a4043a1fc4b16b | [] | no_license | sand8080/helixtariff | ffa4021fac16876bbbad8a4a8f1c53a9e4fd71d7 | 0bb56ad9e954509961db6bf636bce3a541709b93 | refs/heads/master | 2020-12-24T14:57:01.276045 | 2012-07-12T14:59:56 | 2012-07-12T14:59:56 | 1,605,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | import unittest
from helixcore.error import RequestProcessingError
from helixtariff.test.logic.actor_logic_test import ActorLogicTestCase
class UserTariffTestCase(ActorLogicTestCase):
u_id = 22
def test_add_user_tariff(self):
t_id = self._add_tariff('tariff one', currency='RUB')
self._add_u... | [
"[email protected]"
] | |
0e512d5cc3c40a98f88773bb04257a5009284703 | a8062308fb3bf6c8952257504a50c3e97d801294 | /test/test_1680_concatenation_of_consecutive_binary_numbers.py | 2e973fa95d840dec8ee1b362d393d6690776c76f | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from unittest import TestCase
from problems.N1680_Concatenation_Of_Consecutive_Binary_Numbers import Solution
class TestSolution(TestCase):
def test_concatenatedBinary(self):
self.assertEqual(1, Solution().concatenatedBinary(1))
def test_concatenatedBinary_1(self):
self.assertEqual(27, Solutio... | [
"[email protected]"
] | |
20a59d30363f13db08a271bd7d4156a4795b5037 | 9fa71d5834dae1c8900b3444f564b11326374d36 | /packages/ipm_cloud_postgresql/folha/rotinas_envio/tipo-afastamento.py | 81f76c9ccfb467f9f87b432e8845eb17d8d9c18f | [] | no_license | JoaoPauloLeal/toolbox | a85e726cfeb74603cb64d73c4af64757a9a60db7 | 924c063ba81395aeddc039a51f8365c02e527963 | refs/heads/master | 2023-06-07T02:17:42.069985 | 2021-06-28T19:06:40 | 2021-06-28T19:06:40 | 381,128,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | import packages.ipm_cloud_postgresql.model as model
import bth.interacao_cloud as interacao_cloud
import json
import logging
from datetime import datetime
tipo_registro = 'tipo-afastamento'
sistema = 300
limite_lote = 500
url = "https://pessoal.cloud.betha.com.br/service-layer/v1/api/tipo-afastamento"
def iniciar_pr... | [
"[email protected]"
] | |
c3a9262abc44ac5508726e238bdcacc3f8454599 | 24cee07743790afde5040c38ef95bb940451e2f6 | /acode/abc284/e/update.py | cbe323dede2e63602d87336c493cc58525a7c3eb | [] | no_license | tinaba96/coding | fe903fb8740d115cf5a7f4ff5af73c7d16b9bce1 | d999bf5620e52fabce4e564c73b9f186e493b070 | refs/heads/master | 2023-09-01T02:24:33.476364 | 2023-08-30T15:01:47 | 2023-08-30T15:01:47 | 227,594,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,006 | py | import sys
sys.setrecursionlimit(500005)
#sys.setrecursionlimit(10**9)
#import pypyjit # this is for solving slow issue for pypy when using recursion but python will not need this (test will fail but submit works)
#pypyjit.set_param('max_unroll_recursion=-1')
N, M = list(map(int, input().split()))
mp = [[] for n in r... | [
"[email protected]"
] | |
00e61e3359148ae5195cff96ee8a1f87917fa3ba | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/e0a24819976e888969becc8f9ec8d2f0e7e377efurls.py | e0a24819976e888969becc8f9ec8d2f0e7e377ef | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 591 | py | #coding:utf-8
from controller.index import Index
from controller.article import Article
from controller.signin import Signin
from controller.write import Write
from controller.signout import Signout
from controller.page import About,Type
from controller.api import Article as ART,Comment as com
urls = [
#首页
(r'/', In... | [
"[email protected]"
] | |
626c922de9219080952e7221d26a8a4a2740ad29 | 6e8b606bca1eaddd8858fffc0fdeda039a438af5 | /source/precipitation/precip_stats_for_central_arctic_to_timeseries.py | 3af2eff5c86951f4471ed3fd8fddbaeec12bb877 | [] | no_license | andypbarrett/SnowOnSeaIce | 1f93a0523933fff0bfdd89fc87ad32b371bae359 | b8fe84a23bf790eb8efc43f4b89725fb7ba7d73c | refs/heads/master | 2023-01-20T11:53:30.835890 | 2023-01-18T17:43:19 | 2023-01-18T17:43:19 | 137,275,118 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | #----------------------------------------------------------------------
# Calculates mean of precipitation stats for Arctic Ocean excluding
# Barents and Kara seas. This region conforms to the regions with
# data from the NP drifting stations.
#----------------------------------------------------------------------
im... | [
"[email protected]"
] | |
b586bc73c8abf2ab0858af5c05cb97731f7d31fa | a366db0f2a117e0a8cf923e9b4de5c643155e047 | /bench/state.py | 08dad6e8fdc6e4fca68111ef1035197012e312ac | [] | no_license | genome/nessy-server | d2ff6aa7bb692f50e5cabb435a380670be75b2b9 | f8207310d33bf259130df806b4d759ef1a883e56 | refs/heads/master | 2021-01-10T18:59:38.910186 | 2014-12-29T22:11:16 | 2014-12-29T22:11:16 | 15,785,645 | 0 | 0 | null | 2014-12-29T22:11:16 | 2014-01-10T01:57:38 | Python | UTF-8 | Python | false | false | 2,115 | py | import collections
import datetime
class State(object):
UNSET = object()
def __init__(self, resource_names):
self._state_index = collections.defaultdict(set)
self._state_index['released'].update(resource_names)
self._resource_index = {r: 'released' for r in resource_names}
s... | [
"[email protected]"
] | |
fad0a9d402c2a9c652ef1ffc6eb8328b5bf559c7 | 5257652fc34ec87fe45d390ba49b15b238860104 | /nn_interpretation/nn_unique/get_nn_unique.py | 0aefadbf1cc44379399634748c270b52f7fc9a45 | [] | no_license | thekingofall/alzheimers_parkinsons | cd247fa2520c989e8dd853ed22b58a9bff564391 | 4ceae6ea3eb4c58919ff41aed8803855bca240c8 | refs/heads/master | 2022-11-30T22:36:37.201334 | 2020-08-12T01:23:55 | 2020-08-12T01:23:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | buddies_nn=set(open('buddies_nn.txt','r').read().strip().split('\n'))
sig_svm=set(open('sig_svm.txt','r').read().strip().split('\n'))
nn_unique=buddies_nn-sig_svm
outf=open('nn_unique.txt','w')
outf.write('\n'.join(nn_unique)+'\n')
| [
"[email protected]"
] | |
184bfebb357383b520e0be4fda111faf8a4b9ffa | e4fcd551a9d83e37a2cd6d5a2b53a3cc397ccb10 | /codes/eval_metrics/writing/mmocr/tools/dataset_converters/textdet/synthtext_converter.py | 811b1cc0e669b8dd185dbcf8156595002713a850 | [
"Apache-2.0"
] | permissive | eslambakr/HRS_benchmark | 20f32458a47c6e1032285b44e70cf041a64f842c | 9f153d8c71d1119e4b5c926b899bb556a6eb8a59 | refs/heads/main | 2023-08-08T11:57:26.094578 | 2023-07-22T12:24:51 | 2023-07-22T12:24:51 | 597,550,499 | 33 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,177 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import json
import os.path as osp
import time
import lmdb
import mmcv
import mmengine
import numpy as np
from scipy.io import loadmat
from shapely.geometry import Polygon
from mmocr.utils import check_argument
def trace_boundary(char_boxes):
"""Tra... | [
"[email protected]"
] | |
dba9826fd017a5155e4aeb88ce6828001cac6adb | f4a4c9a68a4ead50c0882832f3f73b9cb29271f6 | /backend/cardgameapp_22189/settings.py | 5d1e2e15e8ab4ff8efd7b0549a39e0e1e23558cb | [] | no_license | crowdbotics-apps/cardgameapp-22189 | 276e0c18661a3e1ae474f2deb11b6fc32b66eb38 | 200ca6880781d3d832be39f44b8aa290db481ec2 | refs/heads/master | 2023-01-11T11:45:35.488695 | 2020-11-01T17:50:20 | 2020-11-01T17:50:20 | 309,153,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,111 | py | """
Django settings for cardgameapp_22189 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/
"""
im... | [
"[email protected]"
] | |
e1286fa2a637e5aa1f0465a38d82e1bd3905c8d1 | 659a7a65c877f2eb0adbb6001a1f85f063d01acd | /mscreen/autodocktools_prepare_py3k/AutoDockTools/VisionInterface/Adt/Input/PublicServerLigandDB.py | 26991dad68bfc2d248eec6fec64dacb18f2d6a6b | [
"MIT"
] | permissive | e-mayo/mscreen | da59771be250ebe341feb102e0cbf41aab70de43 | a50f0b2f7104007c730baa51b4ec65c891008c47 | refs/heads/main | 2023-06-21T17:47:06.519307 | 2021-08-09T16:06:29 | 2021-08-09T16:06:29 | 345,008,321 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | #########################################################################
#
# Date: Nov 2001 Authors: Michel Sanner
#
# [email protected]
#
# The Scripps Research Institute (TSRI)
# Molecular Graphics Lab
# La Jolla, CA 92037, USA
#
# Copyright: Michel Sanner and TSRI
#
###########################... | [
"[email protected]"
] | |
a625b979deaf6a06f61b88dd43ac56027f5f5322 | c59d6587ed5d7e7c4f4cbad2e4c8188eee741ad9 | /conftest.py | 134e36c3a4f3b5465cce6e8c54ef587ba3565484 | [] | no_license | n1k0din/kekino-api | 921d83b1be0c50e7dfb0b2411ba63fd9f3dc8039 | 4fef4b1c6bdec970fae1b599be4c719eee06e999 | refs/heads/master | 2023-08-27T18:21:16.640031 | 2021-11-07T11:13:01 | 2021-11-07T11:13:01 | 425,223,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import pytest
from django.conf import settings
@pytest.fixture(scope='session')
def django_db_setup():
settings.DATABASES['default'] = {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'db.sqlite3',
}
| [
"[email protected]"
] | |
d564c8aa72b8618e3d89a78ea6866c695c94cd74 | 7462f315c3f011f50dc0d1ce89cf3d5f2eb024db | /tramp/likelihoods/abs_likelihood.py | 8ad31af49a0340c934ae371dcc2c870f70851570 | [
"MIT"
] | permissive | Artaxerces/tramp | 060bcceb50f59ad5de96ab4eba8aa322651d90cf | e5351e65676f2e9a1b90d0f4eaf11d8259b548ef | refs/heads/master | 2023-04-03T04:49:14.345162 | 2021-04-08T08:55:54 | 2021-04-08T08:55:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import numpy as np
from scipy.stats import norm
from .base_likelihood import Likelihood
from ..utils.integration import gaussian_measure_2d
class AbsLikelihood(Likelihood):
def __init__(self, y, y_name="y"):
self.y_name = y_name
self.size = self.get_size(y)
self.repr_init()
self.y ... | [
"[email protected]"
] | |
f357eb496bccb34a809712c97c9517ac6f0fdd70 | 8ed3d2d285bb7255209b56a5ff9ec83bb4b8f430 | /setup.py | 6a083b3b06d7ee5d3ed16d73aacfe015edf07f6e | [] | no_license | MarkLuro/requests-html | f4af9211353e09908f254a9edc0965c084c59a36 | f43f3241f0c63cd50bb4286edffcc1f8ee5ae7bd | refs/heads/master | 2021-01-24T02:11:25.628019 | 2018-02-25T13:23:40 | 2018-02-25T13:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'requests-html'
DESCRIPTION = 'HTML Parsin... | [
"[email protected]"
] | |
233da41e7bd6d8bc26423d834ec30979432da47b | 77f65ea86ebc544c3f3e66c0152086e45669068c | /ch09-objects/e42b2_recent_dict.py | 6449ace10c6bb5805d30a84d5cf9f40f10adaedd | [] | no_license | Cptgreenjeans/python-workout | e403f48b0694ff4db32fe5fc3f87f02f48a1a68e | b9c68520d572bf70eff8e554a8ee9c8702c88e6e | refs/heads/master | 2023-07-16T21:49:14.198660 | 2021-08-29T13:49:12 | 2021-08-29T13:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #!/usr/bin/env python3
"""Solution to chapter 9, exercise 42, beyond 2: recent_dict"""
class RecentDict(dict):
def __init__(self, maxsize):
super().__init__()
self.maxsize = maxsize
def __setitem__(self, key, value):
dict.__setitem__(self, str(key), value)
if len(self) > sel... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.