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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
335a6acaca425ac8950b4095a444908a724f8a8f | 07d73cb816ad1d35c7a96935ed8d4c9fad9e03da | /{{cookiecutter.project_name}}/bin/update | 849d75d4da1ad611ee60f500ae7f193f7a510c82 | [
"MIT",
"Unlicense"
] | permissive | mkell43/template-python | a11eb8294d916567e5d50ff34abe2e5eab943931 | 3efcb0a5837cfe5b53c5a7761732df916ed64bd7 | refs/heads/main | 2023-07-16T02:56:55.203305 | 2021-08-18T18:58:35 | 2021-08-18T18:58:35 | 398,657,388 | 0 | 0 | Unlicense | 2021-08-21T21:13:27 | 2021-08-21T21:13:26 | null | UTF-8 | Python | false | false | 2,051 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import importlib
import tempfile
import shutil
import subprocess
import sys
CWD = os.getcwd()
TMP = tempfile.gettempdir()
CONFIG = {
"full_name": "{{ cookiecutter.full_name }}",
"email": "{{ cookiecutter.email }}",
"github_username": "{{ cookiecutter... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com | |
065fb3d6006b67322a915670b180ffe5efba5694 | db9463b7271c5a88f473390f393fbc5f00b6f46b | /visbrain/utils/tests/test_others.py | 37a60c9de6af5f5218c065bc0f3957d04540ca77 | [
"BSD-3-Clause"
] | permissive | lassemadsen/visbrain | 6fbee27acaa46741899782a2ba347f6050275411 | be096aa8a7058c329e7120d0bdb45d3c9eb8be42 | refs/heads/master | 2022-11-08T05:00:21.857939 | 2022-10-25T10:33:36 | 2022-10-25T10:33:36 | 191,604,064 | 0 | 0 | NOASSERTION | 2019-06-12T16:05:22 | 2019-06-12T16:05:21 | null | UTF-8 | Python | false | false | 566 | py | """Test functions in others.py."""
from visbrain.utils.others import (get_dsf, set_if_not_none)
class TestOthers(object):
"""Test functions in others.py."""
def test_get_dsf(self):
"""Test function get_dsf."""
assert get_dsf(100, 1000.) == (10, 100.)
assert get_dsf(100, None) == (1, 1... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
fa1812af10cf0f984d450fedbc15640cf16be484 | 1f51c4e89a71ea3fcc2cc921613aacc19e078b69 | /14_Introduction to Importing Data in Python-(part-1)/02_Importing data from other file types/13_loading-mat-files.py | 79ee9f57f5e58d78452f6efc7cc604fe998745c0 | [
"MIT"
] | permissive | CodeHemP/CAREER-TRACK-Data-Scientist-with-Python | 871bafbd21c4e754beba31505965572dd8457adc | 13ebb10cf9083343056d5b782957241de1d595f9 | refs/heads/main | 2023-03-26T08:43:37.054410 | 2021-03-22T15:08:12 | 2021-03-22T15:08:12 | 471,015,287 | 1 | 0 | MIT | 2022-03-17T13:52:32 | 2022-03-17T13:52:31 | null | UTF-8 | Python | false | false | 775 | py | '''
13 - Loading .mat file
In this exercise, you'll figure out how to load a MATLAB file using scipy.io.loadmat()
and you'll discover what Python datatype it yields.
The file 'albeck_gene_expression.mat' is in your working directory. This file contains
gene expression data from the Albeck Lab at UC Davis. You can fin... | [
"ifaizymohd@gmail.com"
] | ifaizymohd@gmail.com |
702ae2e137a34f2c9eac6d52110d38a6f60ade83 | 5f2b22d4ffec7fc1a4e40932acac30256f63d812 | /analysis-of-legal-documents/project/process/cnews_loader_withoutSeqLens.py | bdc9b80dfb3188f3ceee15a1a35c7055208b4ff7 | [] | no_license | Thpffcj/Python-Learning | 45734dd31e4d8d047eec5c5d26309bc7449bfd0d | 5dacac6d33fcb7c034ecf5be58d02f506fd1d6ad | refs/heads/master | 2023-08-04T21:02:36.984616 | 2021-09-21T01:30:04 | 2021-09-21T01:30:04 | 111,358,872 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | # coding: utf-8
import sys
from collections import Counter
import numpy as np
import tensorflow.contrib.keras as kr
if sys.version_info[0] > 2:
is_py3 = True
else:
reload(sys)
sys.setdefaultencoding("utf-8")
is_py3 = False
def native_word(word, encoding='utf-8'):
"""如果在python2下... | [
"1441732331@qq.com"
] | 1441732331@qq.com |
2f2d6c104a4727cc6ace6c9678d9dc45d95d1401 | eafc5b935d0f086dffbcfe1516ba05ab6ce18540 | /source/w3c/demo_mysql_show_databases.py | 30ea6b4eae940c951db24e9548276bc018c5d252 | [] | no_license | YaooXu/Software_test | 1df4195da7dab6f05862afe458c10b1bee1dcaf8 | 936dda4de0a1bcf6cfc87d5148f6219b625a99fe | refs/heads/master | 2020-11-28T04:09:58.724233 | 2020-01-19T13:50:38 | 2020-01-19T13:50:38 | 229,699,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="myusername",
passwd="mypassword"
)
mycursor = mydb.cursor()
mycursor.execute("SHOW DATABASES")
for x in mycursor:
print(x)
| [
"yuanruize@sina.com"
] | yuanruize@sina.com |
d7212dc9d7b37c7e35296da72dec8339b6d736c7 | 7149cc81b1822cbe58ee17585dafef2b4fcd7145 | /muspy/outputs/midi.py | a2e3ef90b12dd9d0a31ba870ec4216488ae55f25 | [
"MIT"
] | permissive | AvatarWorld/muspy | 88c4412f6b3fd0fa3990fc06d0760ecae1d6ed5d | 1c506383b3f82cfa82e72c7f5a6ff29144c26b3c | refs/heads/master | 2022-12-12T09:46:45.546373 | 2020-08-31T03:58:49 | 2020-08-31T03:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,479 | py | """MIDI output interface."""
from pathlib import Path
from typing import TYPE_CHECKING, Any, Optional, Tuple, Union
import pretty_midi
from pretty_midi import PrettyMIDI, Instrument
from pretty_midi import KeySignature as PmKeySignature
from pretty_midi import TimeSignature as PmTimeSignature
from pretty_midi import N... | [
"salu.hwdong@gmail.com"
] | salu.hwdong@gmail.com |
c0a5f980cb6a019f12d76281b98357aba19fee80 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/tests/modeltests/unmanaged_models/__init__.py | 09efd4b322ab91437f5b3772505ed3f56090faac | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/tests/modeltests/unmanaged_models/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
a5af8ae75f4ece2c26d59e219306eb61266a2f0c | 39b0d9c6df77671f540c619aff170441f953202a | /PYTHON LIBRARY/SUB_3/pathlib_symlink_to.py | 48a4dcc8bef3c8cf48f9e42a1e86301f9be8596e | [] | no_license | yeboahd24/Python201 | e7d65333f343d9978efff6bf86ce0447d3a40d70 | 484e66a52d4e706b8478473347732e23998c93c5 | refs/heads/main | 2023-02-06T10:24:25.429718 | 2020-12-26T01:08:04 | 2020-12-26T01:08:04 | 306,487,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # Use symlink_to() to create a symbolic link. The link will be named based on the path’s
# value and will refer to the name given as an argument to symlink_to().
import pathlib
p = pathlib.Path('example_link')
p.symlink_to('index.txt')
print(p)
print(p.resolve().name) | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
2f84648acb1917f62b8824fdb5590a908a1fca86 | 12e956d80079f2808aae687b2cfbe1384deb35e2 | /api/views.py | 1cc372f8d8cfb23489216446a98295069a7bedc7 | [] | no_license | khushal111/Patient_Doctor_App | e141a16c09fd400b5abd5b849ebe02073b6082b9 | 5964c242d06023cbe34b9d5d0a16c6228ed5b734 | refs/heads/master | 2022-06-29T03:14:26.743811 | 2019-11-07T17:45:24 | 2019-11-07T17:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from django.shortcuts import render
from .models import Prescription
from .serializers import PrescriptionSerializer
from rest_framework import viewsets
class PrescriptionViewSet(viewsets.ModelViewSet):
serializer_class = PrescriptionSerializer
queryset = Prescription.objects.all()
| [
"kylemaa95@gmail.com"
] | kylemaa95@gmail.com |
de182fe89d8bc26cd4f9eb12b282489dc1e77349 | 150464efa69db3abf328ef8cd912e8e248c633e6 | /_4.python/__code/Python自學聖經(第二版)/ch33/filewrite/filewrite.py | 9bc15311d12904f928cb141311e56326bb751810 | [] | no_license | bunshue/vcs | 2d194906b7e8c077f813b02f2edc70c4b197ab2b | d9a994e3afbb9ea84cc01284934c39860fea1061 | refs/heads/master | 2023-08-23T22:53:08.303457 | 2023-08-23T13:02:34 | 2023-08-23T13:02:34 | 127,182,360 | 6 | 3 | null | 2023-05-22T21:33:09 | 2018-03-28T18:33:23 | C# | UTF-8 | Python | false | false | 713 | py | import os, sys
def base_path(path):
if getattr(sys, 'frozen', None):
basedir = sys._MEIPASS
else:
basedir = os.path.dirname(__file__)
return os.path.join(basedir, path)
tmp=base_path("") #取得暫存目錄
cwd=os.getcwd() #取得目前的工作目錄
file1="file1.txt"
file2=os.path.join(tmp,"file2.txt")
file3=os.pat... | [
"david@insighteyes.com"
] | david@insighteyes.com |
de09319ec0e8ac2dc77f7838a59b05565e829784 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/defaultRangeUtils.py | 26a406861d88271fddf15189e16a4244d7860242 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 300 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\modules\nice\client\_nastyspace\defaultRangeUtils.py
from eve.client.script.ui.util.defaultRangeUtils import FetchRangeSetting
from eve.client.script.ui.util.defaultRangeUtils import UpdateRangeSetting
| [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
fb2d0a433f46dfef15d4ed2718491bf49c53bc61 | 6a609bc67d6a271c1bd26885ce90b3332995143c | /exercises/math/fast_power.py | 5d59cee28aa49b1fcc93768bb25df40530f28039 | [] | no_license | nahgnaw/data-structure | 1c38b3f7e4953462c5c46310b53912a6e3bced9b | 18ed31a3edf20a3e5a0b7a0b56acca5b98939693 | refs/heads/master | 2020-04-05T18:33:46.321909 | 2016-07-29T21:14:12 | 2016-07-29T21:14:12 | 44,650,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # -*- coding: utf-8 -*-
"""
Calculate the a^n % b where a, b and n are all 32bit integers.
Example
For 2^31 % 3 = 2
For 100^1000 % 1000 = 0
Challenge
O(logn)
"""
class Solution:
"""
@param a, b, n: 32bit integers
@return: An integer
"""
def fastPower(self, a, b, n):
if n == 1:
... | [
"wanghan15@gmail.com"
] | wanghan15@gmail.com |
ab5fa3e92b5de53f31b51f1f0925caccc5232db2 | 9ba8cb2fce9f1ece97f780e7509d8b5dc178d6a4 | /yt-feed-to-email | 34691cb3932c722148c6441173cdb5962e600258 | [
"LicenseRef-scancode-public-domain",
"WTFPL"
] | permissive | msmyers/fgtk | 24b3262a432bacaab97a02dd448e6c21f0bf1779 | 98e767e7b12be6410934917519ef50bddab3f219 | refs/heads/master | 2023-02-16T12:06:11.210059 | 2021-01-19T01:02:48 | 2021-01-19T01:02:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,009 | #!/usr/bin/env python
import itertools as it, functools as ft, operator as op
import pathlib as pl, datetime as dt, urllib.parse as up, hashlib as hl, subprocess as sp
import xml.etree.ElementTree as etree
import os, sys, logging, time, calendar, base64, json, textwrap, unicodedata
import feedparser as fp # pip insta... | [
"mk.fraggod@gmail.com"
] | mk.fraggod@gmail.com | |
6fde1ae6e4c647c4fde009202a3e94db05805c30 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_interlinking.py | affa9fb8d987c586a7f8143611a47511eb6e2d67 | [
"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 | 263 | py |
from xai.brain.wordbase.verbs._interlink import _INTERLINK
#calss header
class _INTERLINKING(_INTERLINK, ):
def __init__(self,):
_INTERLINK.__init__(self)
self.name = "INTERLINKING"
self.specie = 'verbs'
self.basic = "interlink"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
233e04fcf6506d8a3ffcee5406e8061482bbf178 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/python/lxml.py | e2170e0115cfd92004cf74afa4ff88b7961d1972 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from .base import PipBaseRecipe
class LxmlRecipe(PipBaseRecipe):
def __init__(self, *args, **kwargs):
super(LxmlRecipe, self).__init__(*args, **kwargs)
self.sha256 = '736f72be15caad8116891eb6aa4a078b' \
'590d231fdc63818c40c21624ac71db96'
self.name = 'lxml'
sel... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
474c1a564fd776a21c77e39ae1f9a4ba752370ed | 334d0190164d92b53be2844a3afc2826d64b1a6d | /lib/python3.9/site-packages/pymc3/distributions/continuous.py | 234ed935f2b36e07f5756ccb3e825751d486c3f2 | [] | no_license | sou133688/BayesianStatics | f294d7c47cfa56374cf73b520529620dc6120f47 | be9121429494cd8fd231594b029fc2f030d8335f | refs/heads/main | 2023-08-21T15:57:32.980658 | 2021-10-01T00:01:13 | 2021-10-01T00:01:13 | 401,909,680 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137,026 | py | # Copyright 2020 The PyMC Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"matsushu@ZaknoMacBook-Pro.local"
] | matsushu@ZaknoMacBook-Pro.local |
56929c26fc1cf02790a98401f43424fa08ca800e | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_06_01/aio/_container_service_client.py | e859946dcaf202e06e448c829e00e8209b572eb0 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 4,898 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
68a1455380858827d9d8af0bc4cc0ed58d3db25b | 0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa | /cecilia-python/greedy-thinking/MaxProfit-Ⅱ.py | fa987195663b384497d5d5818948131fd456811e | [] | no_license | Cecilia520/algorithmic-learning-leetcode | f1fec1fae71c4cf7410122f5ce969e829f451308 | 32941ee052d0985a9569441d314378700ff4d225 | refs/heads/master | 2022-05-02T03:00:57.505672 | 2022-03-19T09:51:28 | 2022-03-19T09:51:28 | 229,673,810 | 7 | 1 | null | 2022-03-19T09:34:57 | 2019-12-23T04:04:04 | Python | UTF-8 | Python | false | false | 2,586 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : MaxProfit-Ⅱ.py
@Contact : 70904372cecilia@gmail.com
@License : (C)Copyright 2019-2020
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2020/2/5 12:48 cecilia 1.0 买卖股票的最佳时机Ⅱ(简单... | [
"cc15572018516@163.com"
] | cc15572018516@163.com |
b201ee6feb1416bd3cbda627e72d8e88d5850c0c | d4dda2e2992ca16b8fe628e417f8a4243af0ed4a | /step13_offdiagonalLHEstudy/getsmearing.py | 5cfca6ec5e81bf48a0275a1aed1d0eb2a722cf79 | [] | no_license | hroskes/anomalouscouplings | 01f46c0d38f5332c58538b0bdea373704cf06fcc | 391eb7fbd52d8605b09ca2e461b1789e019b1da0 | refs/heads/production | 2021-11-24T22:37:48.932830 | 2021-10-29T18:38:54 | 2021-10-29T18:38:54 | 60,651,233 | 0 | 2 | null | 2017-01-24T14:20:56 | 2016-06-07T22:37:23 | Python | UTF-8 | Python | false | false | 7,019 | py | #!/usr/bin/env python
import os
import ROOT
from helperstuff import config
from helperstuff.samples import Sample
from helperstuff.utilities import cache, mkdir_p, tfiles, tlvfromptetaphim
TF1 = cache(ROOT.TF1)
s = Sample("VBF", "0+", config.productionforcombine)
f = tfiles[s.withdiscriminantsfile()]
t = f.candTr... | [
"jroskes1@jhu.edu"
] | jroskes1@jhu.edu |
7d12a67de1a5c944cff5b801c157aed83ebebbf3 | 800af8d10309c2c0bb1a55f9aeaa501475cab559 | /status_app/receivers.py | 8b537798311225c59a12b6a13146381478e9c59d | [
"Apache-2.0"
] | permissive | vegitron/status-app | 2ca0862fb7daf4b05adcc4dac6bf743008746abd | 2bafcaf94aa50e443d6521de204da7e27b4d8ac7 | refs/heads/master | 2020-04-13T19:55:26.941839 | 2014-04-10T23:28:23 | 2014-04-10T23:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from status_app.signals import request_signal
from status_app.dispatch import dispatch
from status_app.models import RawEvent
from django.dispatch import receiver
from datetime import datetime
import socket
def request_receiver(sender, status_code, path_info, request_time, **kwargs):
if status_code >= 200 and stat... | [
"pmichaud@uw.edu"
] | pmichaud@uw.edu |
cafc8b76a370cd5d56727b8016d1b128aa1559a9 | 71bec5b969aa3c9f40f839cff24ac598d8f7fd28 | /DomeOne/DomeTornadoQuery.py | 3501946537a1c1f6035212e30a0e6ce64071b759 | [] | no_license | dong-c-git/TornadoProjectDome | 6c3ba2f69c333c30bbdf723dd750ce0118436a09 | 4124fe36f409a87b4615eafd9ba59dabc21a12f6 | refs/heads/master | 2020-08-17T20:11:57.250887 | 2019-11-01T04:46:22 | 2019-11-01T04:46:22 | 215,706,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,864 | py | #coding:utf-8
import tornado.web
import tornado.ioloop
import tornado.options
from tornado.web import MissingArgumentError
import tornado.httpserver
#tornado获取数据类型方法模型
tornado.options.define("port",default=8090,type=int,help="need runserver give port")
class IndexHandler(tornado.web.RequestHandler):
"""访问首页"""
... | [
"dc111000@hotmail.com"
] | dc111000@hotmail.com |
5acc3e2a04a63b176b35628dea94a3af18ae9626 | c04fb2e9ee96987b308cd60defb179f800486858 | /_unittests/ut_documentation/test_notebook_cheat_sheet_html.py | c287e6ab4a557832a54e5343e74a39d6c73816e3 | [
"MIT"
] | permissive | sdpython/ensae_projects | ca30304e04c938b1d79abef5e54dac0dc531421f | 36033021726144e66fd420cc902f32187a650b18 | refs/heads/master | 2023-02-08T01:32:47.892757 | 2023-02-02T00:18:00 | 2023-02-02T00:18:00 | 45,864,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=32s)
"""
import sys
import os
import unittest
import shutil
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor
from pyquickhelper.pycode import fix_tkinter_issues_virtualenv
from pyquickhelper.ipythonhel... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
fb4b6effdfe059fec31fd68302a5b80865c22312 | 879df09d88e0a0db13c05ae9be9f4561197ac06e | /settings.py | 4a824c3c11b61dc139c9698b85d3ca041d5cf29b | [
"MIT"
] | permissive | prateeknagpal/crypto-trader | 240b6515ce31c1c67635d1284a96db2818989bab | 7f2db4dbc66f080f9e72399031c081093aefc1ba | refs/heads/master | 2021-09-01T22:20:53.025411 | 2017-12-28T22:11:28 | 2017-12-28T22:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import os
from decimal import Decimal
API_VERSION = 1
API_URL = 'https://api.gemini.com'
API_WS_URL = 'wss://api.gemini.com'
STARTING_NONCE = 800 # must always increase incrementally
SYMBOL = 'ethusd' # currency pair to trade
POLL_DELAY = 30 # runloop interval in s... | [
"git@nicksweeting.com"
] | git@nicksweeting.com |
33a9c0319e08a8b7003a880482162b1368ca8458 | 37d4af0a33d47d6b264acb769a276a500871ab90 | /Python_Code_Beginner/07_语法进阶/hm_03_全局变量.py | c698dde858327048a610c338650901b68ed452d8 | [] | no_license | yzjbryant/YZJ_MIX_Code | 86fe3c8a265c69e5493f70b9753491c0f97d75d4 | ab3a7b8731730a714f013f59bbf551d3d50c3b33 | refs/heads/master | 2022-11-09T01:07:48.944817 | 2020-07-01T09:17:01 | 2020-07-01T09:17:01 | 271,439,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | #全局变量
num = 10
def demo1():
print("demo1 ==> %d" % num)
def demo2():
print("demo2 ==> %d" % num)
demo1()
demo2() | [
"yinzhijian2018@163.com"
] | yinzhijian2018@163.com |
ba95d090a862cc3aeac35022754529fb54e66fa3 | 172260a36450fb3eab639d7255a6bf94e4a556ec | /django/d2/lib/python3.7/ntpath.py | 10295cebd5e44526590092468b4af2006077f910 | [] | no_license | Grayson-choi/TIL | fe6c1828db7e116c8e97b35f28a6ea0e540f95fe | be3f9cee0cb6ee6b8eeb7a16b47fe1ece482a527 | refs/heads/master | 2023-03-16T02:17:44.954382 | 2021-02-03T04:52:37 | 2021-02-03T04:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | /Users/jw/anaconda3/lib/python3.7/ntpath.py | [
"jw@choejiung-ui-MacBook-Pro.local"
] | jw@choejiung-ui-MacBook-Pro.local |
30c8cb418a4fa444872b6d5bcdc2a135eb4ac4d2 | 0c466d2632b4c85f2cf0312e94ee826867039bc6 | /tests/conftest.py | f1394cf45d937fa5d0a868eaedadc268640de372 | [
"Apache-2.0"
] | permissive | rst0git/pytest-salt-factories | 6c917c9749b6eed92dcdc5cac411d9db83608d7f | d614c15700327e0d03a7464f4076523b93357857 | refs/heads/master | 2022-11-24T20:41:03.138928 | 2020-07-29T17:24:07 | 2020-07-29T17:24:07 | 282,475,745 | 0 | 0 | null | 2020-07-25T15:52:59 | 2020-07-25T15:52:58 | null | UTF-8 | Python | false | false | 2,316 | py | import functools
import logging
import os
import stat
import tempfile
import textwrap
import pytest
import salt.version
log = logging.getLogger(__name__)
pytest_plugins = ["pytester"]
def pytest_report_header():
return "salt-version: {}".format(salt.version.__version__)
class Tempfiles:
"""
Class whi... | [
"pedro@algarvio.me"
] | pedro@algarvio.me |
9db38d413747215cf959508e754da4cbf30e1ba7 | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/classes/Handler_20171107110755.py | c6aa301d0a2f1cbd3fc1178b1fa74d6704968c24 | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,270 | py | # DADSA - Assignment 1
# Reece Benson
import json
import random
from math import ceil, floor
from classes import Player
from classes import Season
from classes import Tournament
from classes import Round
from classes import Match
class Handler():
# Define the variables we will be using
app = None
prize_mo... | [
"business@reecebenson.me"
] | business@reecebenson.me |
ea0f43e8088628a36071b7de9ecaee0e65802f88 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/hqm.py | ed0703b4fe609cb0d1154d2b14731d22620f1d8e | [] | 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 |
1dfa2fdb959acac2846a946ecd49380c5954d3c5 | 78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227 | /2226.py | 52c964524b018bed57f7213a24f68afd26aaddff | [] | no_license | GenryEden/kpolyakovName | 97db13ef93061a8c2afc6cc5acd91337f79063f1 | c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9 | refs/heads/master | 2023-05-23T21:22:51.983756 | 2021-06-21T08:56:49 | 2021-06-21T08:56:49 | 350,466,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | def toCountSystem(x, y):
ans = ''
while x:
ans += str(x % y)
x //=y
return ans[::-1]
print(toCountSystem(9**9 + 3**21 - 7, 3).count('0')) | [
"a926788@gmail.com"
] | a926788@gmail.com |
34fa9e807853b8dd7dd745076bc87877d1f492b1 | 361b4f8a112d8a79d4b8f5522402d8e30f4fc5fa | /back-end/library-env/lib/python3.8/site-packages/rest_framework_json_api/relations.py | 95df1d486afa39d4205bd665e6f2e8ab49fa1673 | [] | no_license | Rabbi50/ember-django-rest-library-app | 47a213b8bdc14ab197f930e6b6fe6ead04bdb103 | edda5c0bdf46182ec115fffe9e7fde004f325f94 | refs/heads/main | 2023-01-09T06:10:32.748961 | 2020-11-18T15:53:00 | 2020-11-18T15:53:00 | 311,460,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,873 | py | import json
from collections import OrderedDict
import inflection
from django.core.exceptions import ImproperlyConfigured
from django.urls import NoReverseMatch
from django.utils.translation import gettext_lazy as _
from rest_framework.fields import MISSING_ERROR_MESSAGE, Field, SkipField
from rest_framework.relations... | [
"jasrabbi50@gmail.com"
] | jasrabbi50@gmail.com |
7e08d310b39198d59087ba94ec915a777c101447 | a2fae6522c0526e81032d700e750dbc4b55e308b | /twemoir/lib/adminfields/widgets.py | 05702f365ff10dd8bbd84727dcc1eb164d28b411 | [] | no_license | fish2000/django-twemoir | e895039e4ecd0a01baa9e35002fe0e00e20f6a4f | 8caa7e5319055f54e0d89457780605994622e8d9 | refs/heads/master | 2020-06-05T13:16:47.036385 | 2014-01-21T02:42:30 | 2014-01-21T02:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | import simplejson
from django.forms import Widget
from django.utils.encoding import force_unicode
from django.utils.safestring import mark_safe
from django.forms.widgets import flatatt
class JsonPairInputs(Widget):
"""
:author: Huy Nguyen
A widget that displays JSON Key Value Pairs as a list of text i... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
86b9aa05550020a91166857df0221582f99bafbf | 590126fdbce9d0f92d6c49722c1a953b06e7a4d5 | /aat/exchange/exchange.py | 5d6d4313b8668c578f16f27f38b09ffa8ad0522a | [
"Apache-2.0"
] | permissive | galdamour/aat | 666fda492f0d13e5658d4f778fdbfdc4cdc321de | 458cb1ac33878a76bd9bf844e8362a5a0a9ec291 | refs/heads/master | 2023-01-11T05:32:42.086921 | 2020-11-16T16:40:54 | 2020-11-16T16:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | from abc import abstractmethod
from .base.market_data import _MarketData
from .base.order_entry import _OrderEntry
_EXCHANGES = {}
class Exchange(_MarketData, _OrderEntry):
'''Generic representation of an exchange. There are two primary functionalities of an exchange.
Market Data Source:
exchanges ... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
2c1ac404f62c02b5b677cc02f3d3175bbe0d6e14 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/identitysignins_beta/azext_identitysignins_beta/vendored_sdks/identitysignins/aio/operations/_information_protection_operations.py | 2bcded6a5dcb4e709e30898750dda7e0b812f2bc | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 68,007 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
d91e40c666df51dcae2bd1e9a2b0043769337f04 | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-mpls-ldp-oper/cisco_ios_xr_mpls_ldp_oper/mpls_ldp/global/standby/vrfs/vrf/issu/ha_statistics/ha_neighbors/ha_neighbor/ldp_nsr_stats_nbr_info_pb2.py | 9ac9f5f4af6f02f633828e9e8941727855fc23db | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 18,330 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_mpls_ldp_oper/mpls_ldp/global/standby/vrfs/vrf/issu/ha_statistics/ha_neighbors/ha_neighbor/ldp_nsr_stats_nbr_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import des... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
5691bf63eeb65a0f6313e9b740c2eb8a3b14b60c | 401c6b56c22c762a88a46ce70a35a8d19f0fb863 | /Libs/Oryx.Web.Core.WebInstance/OryxWeb/wwwroot/Chat/chat-master/tests/test_semantic.py | ab8a21d8e90522154aa7516e53f8881e038a7dcf | [
"MIT"
] | permissive | OryxLib/Oryx.FastAdmin | 5f42993e3d7a1a61439a9efd2ee5889bbba6875c | b798d534baf3a07c8bff72e1a80faba119296cb6 | refs/heads/master | 2022-12-10T19:58:33.381271 | 2020-04-15T15:46:46 | 2020-04-15T15:46:46 | 255,535,071 | 3 | 2 | null | 2022-12-08T10:09:40 | 2020-04-14T07:03:15 | C# | UTF-8 | Python | false | false | 2,513 | py | # -*- coding: utf-8 -*-
import sys
sys.path.append("../")
from unittest import TestCase, main
from chat.semantic import synonym_cut, similarity, similarity2, build_semantic_matrix
from chat.mytools import time_me
class TestMe(TestCase):
def setUp(self):
pass
@time_me()
def test_similarity(self):
... | [
"407815932@qq.com"
] | 407815932@qq.com |
a042776fb0942df15cc3e28901ae082c4d7fe0a3 | 2218e1da5cb944e4509f8641ca051de137645c5e | /LeetCode practice/Top 100/77.combine.py | ab72990344fa03dc58b3f19fe2588873033fee6f | [] | no_license | Hegemony/Python-Practice | 9e76ebb414433e51c2074602fb0a871891647839 | b68ea41688e9e305635c63fdc43402e2b6fe6524 | refs/heads/main | 2023-05-05T14:00:59.921803 | 2021-06-01T15:38:30 | 2021-06-01T15:38:30 | 301,602,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | class Solution:
def combine(self, n: int, k: int):
nums = [i + 1 for i in range(n)]
res = []
def dfs(path, result):
if len(path) == k:
res.append(list(path))
return
for i in range(len(result)):
path.append(res... | [
"noreply@github.com"
] | Hegemony.noreply@github.com |
9d71d7dc901c16a0974b3b44d71e98018617359f | dfd0797c88aec7b02866d3c559cb1bc64ce87b44 | /Chapter 9 - Classes/9-11 Imported_Admin.py | e4c7baedb57267181d77835059dec5bdc4cefd2c | [] | no_license | 8BitJustin/2020-Python-Crash-Course | d97f9b79c7a1e1c88c9bc2b035b0e98b2ef23025 | 1f078d7fa62e2b07f8d6c01f85e60baed8293779 | refs/heads/master | 2020-12-20T00:19:44.173143 | 2020-06-14T18:42:08 | 2020-06-14T18:42:08 | 235,893,110 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | """
Start with your work from Exercise 9-8. Store the classes User, Privileges,
and Admin in one module. Create a separate file, make an Admin instance,
and call show_privileges() to show that everything is working correctly
"""
# Imported specific class (Admin) from user_module module
from user_module import Admin
#... | [
"j.olson.digital@gmail.com"
] | j.olson.digital@gmail.com |
217f1a826831df2df46f299e04687a86a0071b73 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/138/usersdata/224/52701/submittedfiles/volumeTV.py | 4330c4185b1d9894c3e8f74c13da563d89f1168c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # -*- coding: utf-8 -*-
v=int(input('Volume inicial: '))
t=int(input('Numero de trocas: '))
soma=0
f=0
for i in range(1,t+1,1):
x=float(input('Digite o novo valor: '))
while soma+v<100:
soma=soma+x
soma=soma+1
if (soma+v)>100:
soma=100+x
f=soma+v
print(f)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
12efb4543d8af9d7a5e61896d1fea9e17e6c906e | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4K/4K-4O_MD_NVT_rerun/set.py | 768971013f254c568f9ddab2f3541ee853f5a9d4 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4K/MD/ti_one-step/4K_4O/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_prodin = filesdir + 'temp_prod.in'
temp_pbs = filesdir + 'temp.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
c573390d969c45e825f56c0c47303210f5f54069 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pip/_internal/utils/compat.py | bdbe668e8be325a31f213285c178e2079c2ca3fd | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e268be7334f2b33e4e72eabee4ae81bc84828a2ebf6a0c8dc2404f36d2a061f3
size 9596
| [
"github@cuba12345"
] | github@cuba12345 |
ed99964064e075f5b68ac99ec5f52a6602c7edfa | 4c733e36833100685e6fae445a98676182275145 | /inctax.py | bbb25914d755ba6065f9d44cc36b7159063ba1fd | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | GoFroggyRun/taxcalc-ghost | 36d29d81024f18b4232be88f84a51e25e4b6844a | a03affdc6f6a064b2f607ec9f2f7de667b5d9858 | refs/heads/master | 2021-01-10T17:32:56.752078 | 2016-03-21T17:22:42 | 2016-03-21T17:22:42 | 52,900,916 | 0 | 1 | null | 2016-03-21T17:22:42 | 2016-03-01T18:45:12 | Python | UTF-8 | Python | false | false | 6,143 | py | """
INCome TAX input-output capabilities for Tax-Calculator.
"""
# CODING-STYLE CHECKS:
# pep8 --ignore=E402 inctax.py
# pylint --disable=locally-disabled inctax.py
# (when importing numpy, add "--extension-pkg-whitelist=numpy" pylint option)
import argparse
import sys
from taxcalc import IncomeTaxIO
def main():
... | [
"martin.holmer@gmail.com"
] | martin.holmer@gmail.com |
93d81f8c26c2284d16707372d323d14fe181d394 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/peering/v20190901preview/peering_service.py | 9a936068a24a199a5711f776f9d8c8cf0d832b32 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,518 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
be375352f73f8ca216f943d0e938d1f7f484b7e3 | c93fc506c39e002ae67bc380a365d1f33d5ac386 | /supervised_learning/models/pin_position/edge_predict/train_with_data_fnn.py | 61ca43cde4e9374082d9f4be9430fd88878cc4b3 | [] | no_license | quantumiracle/store3 | 9f1f2d5c7103b3ded5e556854e111701e8104ccb | 8b553c657c4efa6391547913831be5756a09924a | refs/heads/master | 2020-07-25T02:09:17.528485 | 2019-09-15T21:48:31 | 2019-09-15T21:48:31 | 208,126,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,891 | py | """
pure vector observation based learning: position of tactip and target
task: tactip following the cylinder to reach the ball target
use 382 pins
"""
import tensorflow as tf
# from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten
from tensorflow.python.keras.layers import Conv2D, MaxPooling2D, Flatten
im... | [
"1402434478@qq.com"
] | 1402434478@qq.com |
2a08847d1a4c5afc6f9242526a20c18f304652f7 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoEgamma/EgammaHFProducers/python/hfClusterShapes_cfi.py | 284de7823cb9863138c4bfc4645b9b29b1e096fd | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 731 | py | import FWCore.ParameterSet.Config as cms
# HFEMClusterShape producer
hfEMClusters = cms.EDProducer("HFEMClusterProducer",
hits = cms.InputTag("hfreco"),
minTowerEnergy = cms.double(4.0),
seedThresholdET = cms.double(5.0),
... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
d14ebc07ab2006ac2b7441d8b84c1ddcf1c557a9 | edb88981aa1420af7e074068ed7818b9d904a3dd | /trunk/minds/util/patterns_tester.py | b1f5e484e945b74cdc21aec4745075e1fc83562b | [] | no_license | BackupTheBerlios/mindretrieve-svn | 101c0f1dfc25d20d5f828b6fd0d43301b773af4e | 463745fcf1c1d5b1f6c201c30bcc339c99b437ed | refs/heads/master | 2021-01-22T13:57:31.225772 | 2006-04-28T04:24:43 | 2006-04-28T04:24:43 | 40,801,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | """
Look for a series of patterns in a file object.
This is used as a helper to unit testing.
"""
import re
from StringIO import StringIO
import sys
import unittest
# this is a debugging aid. Can we make it easier to activate?
def _debug_mismatch(data, i, pattern):
left = max(0,i-10)
print >>sys.stderr, data[... | [
"tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990"
] | tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990 |
53192f430b8060cf4c1bfb05a71a5d1b8e0f0bee | 570ca07ec6266c875dc736a3d8c4b4ddc61579fd | /todo/views.py | fd8a700e8d825928ff8bdb4cdf3696834f14d36c | [
"MIT"
] | permissive | Wilo/to-do-list | 85024a59a0f8192a419297e66a69b0e31df45b43 | 185c0025a3b8a1e44adb1842c7e49af5062507a3 | refs/heads/master | 2021-01-17T05:42:56.683726 | 2014-08-02T20:47:15 | 2014-08-02T20:47:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render
from forms import *
from models import *
# Create your views here.
def list(request):
todo = Todo.objects.all()
return render(request, 'index.html', {'list': todo})
def add(request):
... | [
"leonardoorozcop@gmail.com"
] | leonardoorozcop@gmail.com |
cd9ccb5e2390a834796c340271af293d646cd570 | 8ad2e97aed97d581487f2b604c10264a52022253 | /people/items.py | 9d711c1252cdace2b3ace584b15b574a7be895a3 | [] | no_license | SimeonYS/people | 9aca784793a7ae7762b788878ff1fcb7ee511ba5 | a24b19c1282cb57f8b0dab9424e957a0d71d2bff | refs/heads/main | 2023-03-26T20:02:59.275628 | 2021-03-23T14:09:54 | 2021-03-23T14:09:54 | 350,736,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import scrapy
class PeopleItem(scrapy.Item):
title = scrapy.Field()
content = scrapy.Field()
date = scrapy.Field()
link = scrapy.Field()
| [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
18d3f0a11f1b03da2aa4b0647595191a42d5c7ea | b0f2c47881f39ceb5a989b9638483f7439bfb5cf | /Problem85.py | e1438a737933a65d31f6e5622f7f1748dc8b5611 | [] | no_license | chrisvail/Project_Euler | 9ba264c8ec9d158b33ec677811e59d1e0e52fef2 | 41623c27b3e1344f9d8ebdfac4df297d0666cc07 | refs/heads/main | 2023-02-13T20:26:42.752780 | 2021-01-15T16:38:27 | 2021-01-15T16:38:27 | 329,964,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from itertools import count
def main():
best = [2000000, 0 , 0]
for n in count(1):
for m in range(n + 1):
total = sum([sum([(n + 1 - x) * (m + 1 - y) for x in range(1, n + 1)]) for y in range(1, m + 1)])
if abs(total - 2000000) < best[0]:
best = [abs(... | [
"noreply@github.com"
] | chrisvail.noreply@github.com |
1f3646b5f84c6d011827e3285f63bde47ff349cf | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Google/Spreadsheets/UpdateWorksheet.py | eaffb1484ed80159e3bb8320808a69eac7555076 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# UpdateWorksheet
# Updates existing worksheet metadata such as: Title, Row Count, and Column Count.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
52e2db735ddcef06b0f7ee93f8f2486af36d3b04 | 48517a9b7ec7b0f0bf0a03291b7d1e3def751c0a | /Choose Your Own Colors/corner_to_corner_5.py | 39a6a805f3f67ed65503e30b22b7b83f71056fc7 | [
"MIT"
] | permissive | Breakfast-for-Pigeons/Unicorn-HAT | 1ae033bf11c05b9cc739b1eacfc77665506e0bc8 | 9ff1388ee627a8e81f361929e9e9b708db4e2832 | refs/heads/master | 2021-06-06T12:22:48.162031 | 2020-10-22T17:31:51 | 2020-10-22T17:31:51 | 74,648,524 | 1 | 0 | null | 2018-10-02T17:37:31 | 2016-11-24T07:28:23 | Python | UTF-8 | Python | false | false | 2,468 | py | #!/usr/bin/python3
"""
Corner to Corner 5 - Choose Your Own Color
Selects a color and then sends it to one of four functions.
Can move a square from the lower left corner to the upper right corner.
Can move a square from the upper right corner to the lower left corner.
Can move a square from the lower right corner to... | [
"noreply@github.com"
] | Breakfast-for-Pigeons.noreply@github.com |
87201465d144f08dc791178512de0d903d59f97a | c263b3eae99bcad488b6e334e906a30b3a29ba78 | /boolean_parser/actions/clause.py | 4db123ffd38fe680892632e76662f638c21fce34 | [
"BSD-3-Clause"
] | permissive | havok2063/boolean_parser | 675953df535f83b76cea29b324084105c1b1d1ca | cbc3c5b74695da838418aaa3dd3ad08f413ec4a7 | refs/heads/main | 2023-01-13T01:49:34.237899 | 2022-12-01T15:00:28 | 2022-12-01T15:00:28 | 170,555,761 | 18 | 3 | BSD-3-Clause | 2023-01-03T10:37:50 | 2019-02-13T18:12:26 | Python | UTF-8 | Python | false | false | 5,908 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Filename: clause.py
# Project: actions
# Author: Brian Cherinka
# Created: Sunday, 17th February 2019 12:52:31 pm
# License: BSD 3-clause "New" or "Revised" License
# Copyright (c) 2019 Brian Cherinka
# Last Modified: Sunday, 17th February 2019 12:53:16 pm
# Modified B... | [
"havok2063@hotmail.com"
] | havok2063@hotmail.com |
6ebb3533a73b107738006b3db204498153ef1cba | 20d1b971f58b0a6ab30f2682b773e7280ac77bc2 | /loops/170820, Lists/lr_dvumernie_spiski/8/8.1'divine_k_string.py | e624544d8e58779b0d5434ca7c3d94fed73fb580 | [] | no_license | M2401/P1 | 1a39ba384030a1483c77d86db933d11c30e45abf | c08f3ba1e07678b7b20836465175d51c89a43078 | refs/heads/master | 2023-03-03T21:34:31.601512 | 2021-02-06T17:44:54 | 2021-02-06T17:44:54 | 312,105,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | #1. Задана матрица порядка n и число к. Разделить элементы k-й строки на диагональный элемент,
# расположенный в этой строке.
import random
def pr(a, n):
for i in range(n):
for j in range(n):
print(a[i][j], end='\t')
print()
print()
def main():
n = int(input('Введите порядок мат... | [
"flussooo@gmail.com"
] | flussooo@gmail.com |
e3bcf84be53aaddcc116ab28636370c0e2ff9d75 | 4d5a91c312e9d633f73098bcc42ba9386893bd86 | /pajbot/modules/basic/dbmanage.py | f9b062683151352d7e5933d207371752d4897328 | [
"MIT"
] | permissive | leecopland/bullbot | ffc45062d802695fe2486f26643c1d1b9429e19c | 52e463293097b58084afb4f9f1d85b0656a67d44 | refs/heads/master | 2022-12-10T14:02:28.113368 | 2021-03-25T05:04:28 | 2021-03-25T05:04:28 | 172,211,287 | 1 | 0 | MIT | 2022-09-16T18:28:35 | 2019-02-23T12:23:22 | Python | UTF-8 | Python | false | false | 1,594 | py | import logging
import pajbot.models
from pajbot.modules import BaseModule
from pajbot.modules import ModuleType
from pajbot.modules.basic import BasicCommandsModule
log = logging.getLogger(__name__)
class DBManageModule(BaseModule):
ID = __name__.split('.')[-1]
NAME = 'DB Managing commands'
ENABLED_DEF... | [
"pajlada@bithack.se"
] | pajlada@bithack.se |
4c3323df4f9c9bba476d8026c33ac9be0a13b6d0 | 25e2acc62950fa5c0804425b9c13a08bee765495 | /fatorialRecursivo.py | c8b09cd53133e469f2e393af22e76a34fcb36261 | [
"MIT"
] | permissive | CarlosEduardoAS/KhanAcademy | 12dfb742ea12b8a980c6480d403217b3b8204481 | 0b5947fb8fb51bebdd410a617f7161ea8252a4e5 | refs/heads/main | 2023-04-02T04:48:53.711041 | 2021-03-30T01:35:30 | 2021-03-30T01:35:30 | 352,831,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def fatorial(n):
if n < 1:
return 1
else:
return n * fatorial(n - 1)
f = fatorial(5)
print(f)
| [
"79329559+CarlosEduardoAS@users.noreply.github.com"
] | 79329559+CarlosEduardoAS@users.noreply.github.com |
ff39c0ef492d2e7f04473d445ce17cb6b04fcf4a | ad59fb12042bfd3f5c43eca057d0f747f9e148cf | /Se2iP/usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer/tsiplayer/addons/resources/sites/skyanimes.py | af65bcc571ea7849524d37e21c5373796ebb25f6 | [] | no_license | lexlong2007/eePlugins | d62b787100a7069ad5713a47c5688008063b45ec | 167b262fe36901a2d3a2fae6d0f85e2307b3eff7 | refs/heads/master | 2022-03-09T05:37:37.567937 | 2022-02-27T01:44:25 | 2022-02-27T01:44:25 | 253,012,126 | 0 | 0 | null | 2020-04-04T14:03:29 | 2020-04-04T14:03:29 | null | UTF-8 | Python | false | false | 11,152 | py | # -*- coding: utf-8 -*-
# vStream https://github.com/Kodi-vStream/venom-xbmc-addons
# Makoto
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.hoster import cHosterGui
from Plugins.Extensions.IPTVPlayer.tsiplayer.addons.resources.lib.gui.gui import cGui
from Plugins.Extensions.IPTVPlayer.tsipla... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
57ac4bddf8a6c8e345fc31c97d40daa542272bd8 | bf535fdf7418b8092d6721d4e66e61f8c9dd4929 | /tasks/task_12.py | be64338587693c511cef05d0f510958040a6a902 | [
"MIT"
] | permissive | AlexRogalskiy/python | edb7808d48f4f8b8b4e4311678fb7364c7b54aeb | 78a38746de51688dc118ba921da08b920fe4caf2 | refs/heads/master | 2021-06-29T03:14:23.472651 | 2018-06-26T05:36:02 | 2018-06-26T05:36:02 | 97,952,461 | 0 | 0 | MIT | 2020-07-23T09:19:20 | 2017-07-21T13:52:00 | Python | UTF-8 | Python | false | false | 238 | py | import itertools
flatten = lambda x: list(itertools.chain.from_iterable(x))
s = [['"', 'An', 'investment'], ['in'], ['knowledge'], ['pays'], ['the', 'best'], ['interest."', '--'], ['Benjamin'], ['Franklin']]
print(' '.join(flatten(s)))
| [
"alexander.rogalsky@yandex.ru"
] | alexander.rogalsky@yandex.ru |
e1e7db7fb239a768eeb45685f63fcfd5a37115fd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2899/50263/235338.py | 15ff2da2c947377ae171b13bfdf0500d85a905d3 | [] | 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 | 172 | py | num = eval(input())
if num == 1:
print("true")
elif num == 4:
print("true")
elif num == 16:
print("true")
elif num == 5:
print("false")
else:
print(num) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
29dd50bcff3f11ac5d166c8318908bb812620709 | 97ca8019389d6da727ee31b4ae42a520c21ccd64 | /Remove Element.py | 89155750ec5d87d07bcbc2c3d8b9e3333a1ffb41 | [] | no_license | AngleMAXIN/LeetCode_Problems | db51ae2e9f7b81d1e581bfee8f9949b1dbf27642 | 58c0190e718956d6960e2a1ea363d0a2e8d76e06 | refs/heads/master | 2021-06-14T00:38:44.337383 | 2019-11-22T15:13:20 | 2019-11-22T15:13:20 | 113,146,794 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | #/usr/bin/env python
# -*- python: utf-8 -*-
# problem:
# Given nums = [3,2,2,3], val = 3,
# Your function should return length = 2, with the first two elements of nums being 2.
class Solution:
def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: int
:r... | [
"1678190746@qq.com"
] | 1678190746@qq.com |
206aec11e8d8d7adff9fbb61ae155763fb665704 | bc441bb06b8948288f110af63feda4e798f30225 | /flowable_sdk/model/collector_center/target_range_pb2.pyi | acf831ae8dbcd27511dec805a8061bef8572a5a8 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from flowable_sdk.model.collector_center.cmdb_host_search_pb2 import (
CmdbHostSearch as flowable_sdk___model___collector_center___cmdb_host_search_pb2___CmdbHostSearch,
)
from flowable_sdk.model.collector_center.cmdb_host_strategy_pb2 import (... | [
"service@easyops.cn"
] | service@easyops.cn |
89d977f1c10c4e2b4f3e188c6752cd828a68f39f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/others/CenterMask2/models/centermask2/centermask/layers/iou_loss.py | 2368211598cd9535144ecba1f6491e5c97949dd6 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 2,677 | py | # Copyright 2021 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 to... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
b6a3da15b9d15ab1db85efa07b1e479e24f66bf1 | 04bc241847bd1d0a8692d33f592117463863e675 | /src/ee/__init__.py | e9428b389a8487e48d13eacf3b6ed72d9b2bb5b7 | [
"MIT"
] | permissive | ehumss/earthengine | d9bf36a35fc3c1b345e33e0baada99003936d23b | 041030bcbf5c237b1e5de3717aa571cba7161cd6 | refs/heads/master | 2021-01-21T21:32:13.152290 | 2017-06-17T08:12:18 | 2017-06-17T08:12:18 | 94,856,492 | 1 | 0 | null | 2017-06-20T06:17:59 | 2017-06-20T06:17:59 | null | UTF-8 | Python | false | false | 11,847 | py | #!/usr/bin/env python
"""The EE Python library."""
__version__ = '0.1.102'
# Using lowercase function naming to match the JavaScript names.
# pylint: disable=g-bad-name
# pylint: disable=g-bad-import-order
import collections
import datetime
import inspect
import numbers
import os
import six
from . import batch
fro... | [
"mort.canty@gmail.com"
] | mort.canty@gmail.com |
2010af1393a38b6eeb38db3684d5fe1954404bc0 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L82/82-77_MD_NVT_rerun/set_2.py | 587208a34f0653593d706645a6b17a656119210c | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_77/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
a8ec2943d15f417b5213574b8a7ae8aa115369b5 | f2978751f45a0e88a9761f6da4f66e0c6610bd9d | /hardPython/ex18.py | 23fc87c289dd639f00ab2099c76807db795bb09b | [] | no_license | mchenyuxiang/HardPython | c489dbd52b8e5c4fe71da824297f309529f237a7 | 1ab22e753d4e44d17cf203d2f325371c9ef4443d | refs/heads/master | 2021-01-12T12:27:49.067010 | 2017-09-07T04:42:56 | 2017-09-07T04:42:56 | 72,502,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #--coding:utf-8--
def print_two(*args):
arg1,arg2 = args
print "arg1:%r,arg2:%r"%(arg1,arg2)
def print_two_again(arg1,arg2):
print "arg1:%r,arg2:%r"%(arg1,arg2)
def print_one(arg1):
print "arg1:%r"%arg1
def print_none():
print "I got nothin'."
print_two("Zed","Shaw")
print_two_again("Zed","Shaw")
print_one("Fi... | [
"="
] | = |
9484fe6fdcd3e9324a6d4e8c49055758749ac739 | 435723c2128a8a125ebc0bd4fdd57b2e438174a0 | /tests/dust/screens/test_calzetti.py | 79521e13c7b4ac3ee9912ad4414f589fa6e5a4d0 | [] | no_license | galacticusorg/analysis-python | 824e7a0311329531e42eb06fc99298cf371ec75f | 09e03f8d25ab6711b4e2783454acca1422e7bc59 | refs/heads/master | 2022-03-10T18:39:03.766749 | 2022-03-03T14:49:25 | 2022-03-03T14:49:25 | 203,855,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #! /usr/bin/env python
import os,sys
import unittest
import numpy as np
from galacticus.dust.screens.manager import ScreenLaw
from galacticus.dust.screens.calzetti import Calzetti
from galacticus import rcParams
class TestCalzetti(unittest.TestCase):
def test_Calzetti(self):
rcParams.update("dustCalz... | [
"alex.i.merson@gmail.com"
] | alex.i.merson@gmail.com |
a9d79218e3a19e563dfc0d7fe2c48ed14e8ec8ef | 7e35f686eaa2acff06291457af4fd6680e2738c1 | /基础题目/已知三角形的两边长及其夹角,求第三边长.py | 536fa48e07707bb805f3991db25b73db83f33f85 | [] | no_license | cassieeric/Python-Exercises_Interview_questions | 5ba68296cbf777ac7bb9aeda57ee7a04856f613a | 1934e5ce82d77747d52229522dd1515a61dc80e2 | refs/heads/master | 2021-07-04T03:05:10.271998 | 2020-08-15T01:19:37 | 2020-08-15T01:19:37 | 150,816,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import math
a = int(input('请输入三角形的一条边长:'))
b = int(input('请输入三角形的另一条边长:'))
C = int(input('请输入三角形的两条边长的夹角度数:'))
# c = math.sqrt(a*a + b*b - 2*a*b*math.cos(C*math.pi/180))
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C*math.pi/180))
print(c)
| [
"noreply@github.com"
] | cassieeric.noreply@github.com |
0a5c4e84014d2a61d3b50297b4dcf5da4b196d9e | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/app/bank/inlet/chain_batch_active.py | 815af06316321503854022567df4e0acf1ca2c17 | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,731 | py | # -*- coding: utf-8 -*-
'''
BEGIN
ajax请求 激活商户支付方式和状态
必选参数:
可选参数:
成功:
{"code": 200, "msg": "成功"}
失败:
{"code": 406, "msg": "失败"}
END
'''
import json
from tornado.httpclient import AsyncHTTPClient
from tornado.web import asynchronous, authenticated
from tornado import gen
from uline.hand... | [
"36821277@qq.com"
] | 36821277@qq.com |
9963aa430500b53625a4d9c20ddb4cc59760d221 | b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1 | /vmraid/patches/v11_0/create_contact_for_user.py | db127c67728578fb09622c876e2f999ba7017b8d | [
"MIT"
] | permissive | vmraid/vmraid | a52868c57b1999a8d648441eb9cd05815204345d | 3c2e2a952003ba7ea2cf13673b9e79e127f4166e | refs/heads/main | 2022-07-29T18:59:28.585133 | 2022-04-22T08:02:52 | 2022-04-22T08:02:52 | 372,473,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import re
import vmraid
from vmraid.core.doctype.user.user import create_contact
def execute():
"""Create Contact for each User if not present"""
vmraid.reload_doc("integrations", "doctype", "google_contacts")
vmraid.reload_doc("contacts", "doctype", "contact")
vmraid.reload_doc("core", "doctype", "dynamic_link"... | [
"sowrisurya@outlook.com"
] | sowrisurya@outlook.com |
bac7a1ad408b67c33cd3445a1697388b22649542 | db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1 | /lenv/lib/python3.6/site-packages/django/contrib/sites/requests.py | 233d8409457a3ba44b5279fbcbbfb684e47d7e3a | [
"BSD-3-Clause"
] | permissive | shrey-c/DataLeakageDjango | ffeef61caa347520747fc70cf3f7f8b84a9610cf | a827c5a09e5501921f9fb97b656755671238dd63 | refs/heads/master | 2022-11-30T03:30:12.313025 | 2020-07-12T06:47:44 | 2020-07-12T06:47:44 | 242,569,637 | 6 | 1 | BSD-3-Clause | 2022-11-22T05:20:22 | 2020-02-23T18:33:04 | Python | UTF-8 | Python | false | false | 788 | py | from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class RequestSite(object):
"""
A class that shares the primary interface of Site (i.e., it has
``domain`` and ``name`` attributes) but gets its data from a Django
HttpReq... | [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
537553a4c0757e6f54433900a81ffea31731adea | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /base/lib/python2.7/site-packages/wx-3.0-gtk2/wx/lib/floatcanvas/Resources.py | d3208ee6020730d53adcb199e4cf79ef2b84913e | [
"BSD-3-Clause",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 15,886 | py | #----------------------------------------------------------------------
# This file was generated by /usr/local/bin/img2py
#
from wx import ImageFromStream, BitmapFromImage
import cStringIO, zlib
def getMagPlusData():
return zlib.decompress(
'x\xda\x01*\x01\xd5\xfe\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
8bd1c9457bbd2f09555ef5cfa3d565624a9c733b | 0362023a283a492733336dbe899714236b9a06ef | /SEGUNDO/M3-POOpython/ejercicios/Alex Catalan BUENOejercicio_control_errores/Llista.py | a022f3c5a3d4da8707bdf6f17ecf9a045afa675d | [] | no_license | alexcatmu/CFGS_DAM | 205b8bcc6d09f8351894c5f70e1a354ff25c17a3 | 1a4384dee8833b5d8034fdf0909a0774cbe5b1c0 | refs/heads/master | 2020-04-07T18:27:15.225638 | 2019-12-17T19:34:39 | 2019-12-17T19:34:39 | 158,610,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | class Llista:
def __init__(self, num = 0):
if(not(isinstance(num,int))):
raise ValueError("Parametro erroneo, tipo de dato no valido", type(self))
elif(num < 0):
raise NotImplementedError("Parametro erroneo, debe ser un numero positivo", type(self))
self.array_nums ... | [
"alex.catalan.catalan@gmail.com"
] | alex.catalan.catalan@gmail.com |
b4ada9f63387a5be7a94668e4a18c2a727699ac6 | 96fab383fd53d404eb8fbcc5fb4fe814ffd82661 | /fastlink/fastlink/apps.py | 242681808afb7418a7df19b64329fdc8040bc0c0 | [] | no_license | dobestan/fastlink | 41809245f0cc25aecf690ea9db6ee7eec75ee227 | 1e4f25bf112a4007e6afe90530d80c88b43dda71 | refs/heads/master | 2021-01-10T13:01:22.268285 | 2016-02-04T16:57:01 | 2016-02-04T16:57:01 | 51,088,310 | 0 | 1 | null | 2016-02-04T16:57:01 | 2016-02-04T16:20:13 | Python | UTF-8 | Python | false | false | 174 | py | from django.apps import AppConfig
class FastlinkAppConfig(AppConfig):
name = 'fastlink'
def ready(self):
from .signals.post_save import post_save_resource
| [
"dobestan@gmail.com"
] | dobestan@gmail.com |
df1b6f0a5174307023b0b2d15db49f8e13ea1e1c | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/zlib.py | 23b2d0fd3442cd37ac55b116c740129aefbca602 | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # encoding: utf-8
# module zlib
# from /usr/local/lib/python2.7/lib-dynload/zlib.so
# by generator 1.137
"""
The functions in this module allow compression and decompression using the
zlib library, which is based on GNU zip.
adler32(string[, start]) -- Compute an Adler-32 checksum.
compress(string[, level]) -- Compres... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
16bde3d556f038d4d58862121c5017b380526751 | 44dbb043e52f00c9a797b1bea8f1df50dd621842 | /nntplib-example-3.py | 0c6beb82e255947dd47abacd9b5402d47a9aa76d | [] | no_license | peterdocter/standardmodels | 140c238d3bef31db59641087e3f3d5413d4baba1 | 7addc313c16b416d0970461998885833614570ad | refs/heads/master | 2020-12-30T16:59:30.489486 | 2016-12-13T06:32:03 | 2016-12-13T06:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import nntplib
import string, random
import StringIO, rfc822
SERVER = "news.spam.egg"
GROUP = "comp.lang.python"
# connect to server
server = nntplib.NNTP(SERVER)
resp, count, first, last, name = server.group(GROUP)
for i in range(10):
try:
id = random.randint(int(first), int(last))
resp, id, messa... | [
"415074476@qq.com"
] | 415074476@qq.com |
8529eaf059a12424bb2811930ff8608b45b8abcf | 09c39de5aad7b283cfac2f09a2b93e43086846d2 | /Unit 03 Conditionals and Control Flow/02 PygLatin/PygLatin PART2/9-Move it on back.py | 1cac4dbb960f695de75cbd184784c5864d08e7b4 | [
"MIT"
] | permissive | lpython2006e/python-samples | b4e84080259faf75b41fb2fd4fb9d2fbc9f857aa | b94ba67ce0d7798ecf796dadae206aa75da58301 | refs/heads/master | 2023-01-21T13:16:13.295163 | 2020-11-29T11:01:50 | 2020-11-29T11:01:50 | 278,653,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word + first + pyg
print(pyg)
else:
print('empty')
| [
"lent@hivetech.vn"
] | lent@hivetech.vn |
daa6063529c244841de6f2f0caaed32db43d8119 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/130/24581/submittedfiles/funcoes.py | 4052f0d988cac6a87cf753291e3a58713709e011 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #ARQUIVO COM SUAS FUNCOES
def absoluto(x):
if x<0:
x=x*(-1)
resultado=x
return resultado
def pi(x):
So=3
a=2
for i in range(1,x+1,1):
if (a//2)%2==0:
So=So-4/(a*(a+1)*(a+2))
else:
So=So+4/(a*(a+1)*(a+2))
a=a+2
pi=So
return pi
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
86239dd8825f9994ac7cc262b1f6c1887f9b5f4b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/dmlc_minpy/minpy-master/examples/nn/cnn_customop.py | 9a3a2c812faee140c621d87942c0897b9d004406 | [] | 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 | 4,212 | py | """Convolution Neural Network example with both MinPy ndarray and MXNet symbol."""
import sys
import argparse
import minpy
import minpy.numpy as np
import numpy
import mxnet as mx
from minpy.nn.io import NDArrayIter
# Can also use MXNet IO here
# from mxnet.io import NDArrayIter
from minpy.core import Function
from mi... | [
"659338505@qq.com"
] | 659338505@qq.com |
4a5d4da532f4802dd20815dfac7206ad889904b8 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2435043.py | 13ed0760599dc002e3b64452a101b17cdadd7c63 | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # Heroes Phantom Damage Skin
success = sm.addDamageSkin(2435043)
if success:
sm.chat("The Heroes Phantom Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
2e8e809c480deb7a245b236f0b6ba0a2c56aee2b | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/operations/__init__.py | 00fccdc398f92af40bdf0644db345b88ab2f66a4 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 613 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
7dc56d8754b8e16411207641759855115ea4c5e8 | 1b7947f81b2a82d3ff377c39e7228f1aaf743277 | /day2/urllib_demo2/music163.py | 77092b703cf3519ae89e972c387e284ff06fd398 | [] | no_license | gaohj/python1902crawer | 92fbaeb8151bd8a71f3c87a1566f6dcded3ef745 | aa0dce86ba50db12fb0262a62ccc6a9ab60ad0c2 | refs/heads/master | 2020-08-14T20:08:47.775547 | 2019-10-25T06:55:21 | 2019-10-25T06:55:21 | 215,226,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py |
import urllib.request
import urllib.parse
import json
headers = {
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36",
}
#post接口
url = "https://music.163.com/weapi/v1/resource/comments/A_PL_0_2783240?csrf_token="
data = {
"params"... | [
"gaohj@126.com"
] | gaohj@126.com |
34018ff3a28fba4a4eeedc2a0596b54872e6bdda | 44f96b540afca6447535cdc5ab15ee34cc2f591b | /FirstProj/ShoppingApp/models.py | 74bc3117f80263ad4832cae5bd87cb68d973b456 | [] | no_license | Shreya549/FirstDjangoApp | 087ddf30d8d73f451da473fa12fad7633b4b4142 | 2ad5d98d0c49d9b82fc7a431c8df111f3f6a2353 | refs/heads/master | 2022-04-10T07:43:23.344458 | 2020-03-28T13:10:33 | 2020-03-28T13:10:33 | 250,259,665 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.db import models
# Create your models here.
class Product(models.Model):
name = models.CharField(max_length = 100)
price = models.IntegerField()
desc = models.TextField()
img = models.ImageField(upload_to = 'pics')
| [
"shreya.chatterjee2018@vitstudent.ac.in"
] | shreya.chatterjee2018@vitstudent.ac.in |
a01ef31f02f164ca0ed8d5220c4573c32ed3678b | 2eba5ec3f7462ed9f8f8e858c258f73bfeda6f6a | /Test1/윤성우_nene_ver3.py | fd464614fe59fceb309b05e2a354899b90dd1fbc | [] | no_license | sungwooman91/Test | d16e93e40a74054c860f9f7fdd2bb70f0189fc43 | 59b22517bc2c6e60b9d0604b878d79a1624530da | refs/heads/master | 2021-09-06T09:55:45.740088 | 2018-02-05T07:55:57 | 2018-02-05T07:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | import urllib.request
import os
from pandas import DataFrame
import xml.etree.ElementTree as ET
import time
print("START")
result = []
dir_name = "V3_BigData"
dir_nene = "Nene_data"
dir_delimiter = "\\"
file_name = "nene"
count = "nene_count.txt"
csv = '.csv'
result_limit = 3
time_table = time.strftime("%c",time.loc... | [
"you@example.com"
] | you@example.com |
ff0f35ac3c3c28da4438125b3998d1c2ce5d5da5 | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/oop/vending_machine/money/money.py | 98038d955a7311a82085d5b84c181fa32bd45995 | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
class Money:
VALID_MONEY = 'money의 타입은 int 형 입니다.'
def __init__(self, money):
self.valid_money(money)
self._money = money
def valid_money(self, money):
assert type(money) == int, Money.VALID_MONEY
@property
def money(self):
return self._mone... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
aed762f6d9dea07279af3b949111d028114c4e4d | 172f8b508c89b47376bd41cfc167cabf9ba94cb8 | /dropthesoap/service.py | 4976d7b871415ed9e151bb0fd100573a2dba0401 | [
"MIT"
] | permissive | d3sbar/dropthesoap | 1ee3d8ba744d5756001a339793cbeb2bc9666f1a | 73fc9a9aa725e5bc568c7896fd0d9a2af858a352 | refs/heads/master | 2020-05-24T04:22:25.074507 | 2019-05-16T19:46:01 | 2019-05-16T19:46:01 | 187,091,092 | 0 | 0 | null | 2019-05-16T19:42:54 | 2019-05-16T19:42:54 | null | UTF-8 | Python | false | false | 6,931 | py | from .schema import xs, wsdl, soap
from .schema.model import Namespace, get_root, etree
class Request(object):
def __init__(self, transport_request, envelope):
self.transport_request = transport_request
self.envelope = envelope
self.header = None
class Method(object):
def __init__(se... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
697e4233a9930b2435f73fcde1312d8ff1803683 | 784dda4c400d4e5c42f57e9a7d48883692b2a931 | /pyhawkes/internals/network.py | f5be4dcb1b5091aa28fe821beaa73bee278aead4 | [
"MIT"
] | permissive | yxtj/pyhawkes | bd942aded06dba3dd390a47e28702dcba124961b | ecc6dc23e516a7b06d64e5dbd10c8861b01bd955 | refs/heads/master | 2021-01-15T18:31:12.539149 | 2015-02-25T23:35:50 | 2015-02-25T23:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,039 | py | """
Network models expose a probability of connection and a scale of the weights
"""
import abc
import numpy as np
from scipy.special import gammaln, psi
from scipy.misc import logsumexp
from pyhawkes.deps.pybasicbayes.abstractions import \
BayesianDistribution, GibbsSampling, MeanField, MeanFieldSVI
from pyhawke... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
1e4ae96ba11ca841546ece2806bf73b10ec15673 | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/live_20210419192449.py | f23ac4d6aa23ef684980fb5dfdd0b471fdb2e457 | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | import os
import cv2
import sys
import numpy as np
from models import SimpleModel
from preprocess import Datasets
import hyperparameters as hp
import tensorflow as tf
from skimage.transform import resize
from PIL import Image, ImageFont, ImageDraw
from scipy.spatial import distance as dist
from imutils import face... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
d8fab852c381fe6affdd605d97dda1f39af63a9f | cf7fed790b733b9a21ec6c65970e9346dba103f5 | /pyqt/getting_started/pyqt_thread.py | 9596b7a25da1a0f3c83e1b6191afc1df4f46539d | [
"MIT"
] | permissive | CospanDesign/python | a582050993efc1e6267683e38dd4665952ec6d40 | a3d81971621d8deed2f1fc738dce0e6eec0db3a7 | refs/heads/master | 2022-06-20T15:01:26.210331 | 2022-05-29T01:13:04 | 2022-05-29T01:13:04 | 43,620,126 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | #! /usr/bin/python
import sys
import time
from PyQt4 import QtCore
from PyQt4 import QtGui
class MyApp(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setGeometry(300, 300, 280, 600)
self.setWindowTitle('threads')
self.layout = QtG... | [
"cospan@gmail.com"
] | cospan@gmail.com |
9ce3ee0c55905c85b6ffaeba4bdb6394819a76cc | d2479998a965eb43372920effeaf32c9c500603e | /docs/scripts/uiexample.py | 30f2db9a2d9e74bb996bc94f040a45590c8a941a | [
"BSD-2-Clause"
] | permissive | cy-fir/flexx | 0f246e0c4a5e6d4b29946c8fb0f73790fa35d07f | 343de1b1549975a365962274f264a48e56d2305e | refs/heads/master | 2021-01-18T09:40:11.624129 | 2016-06-04T23:07:37 | 2016-06-04T23:07:37 | 60,951,284 | 1 | 0 | null | 2016-06-12T06:39:50 | 2016-06-12T06:39:50 | null | UTF-8 | Python | false | false | 5,612 | py | """
Small sphinx extension to show a UI example + result
"""
import os
import sys
import hashlib
import warnings
import subprocess
import importlib.util
from sphinx.util.compat import Directive
from docutils import nodes
from flexx import app
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
ROOT_DIR = os.path.... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
8ecc268008bf76d6edc3ac8b32ae86a39041e1b4 | 6ad7325b4c04dad9e7552882f53a6cb146474652 | /crypto_analyzer/crypto/models.py | 5f6b7218b7985d6f1899c232a9f304a3a0eb1429 | [] | no_license | abhaystoic/cryptoguru | fa04c55e437dd41a64843b35a8d60d398511eb23 | 96562e881b40ee77a4704b40400caba9084bbfca | refs/heads/master | 2020-03-11T10:26:30.950772 | 2018-10-14T13:23:10 | 2018-10-14T13:23:10 | 129,942,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,650 | py | # -*- coding: utf-8 -*-
"""
TODO: Remove 'blank=True, null=True' wherever it doesn't make sense.
"""
from __future__ import unicode_literals
from __future__ import absolute_import
from django.db import models
MAX_CHAR_LEN = 1024
MAX_CHAR_LEN_URL = 2000
MAX_CHAR_LEN_BIG = 10000
# Create your models here.
class Crypt... | [
"iabhaygupta90@gmail.com"
] | iabhaygupta90@gmail.com |
29ecde23a1d4b235940893455518d50ff84e2a2b | 44b41d2ca6dbfb3f75bf691210eceaf85f6de1de | /custom/tags.py | ed36c9d8c58dc9ac72ef22017988f92415927dd5 | [
"BSD-3-Clause"
] | permissive | heruix/ida-minsc | 388dd96736ec0ccb60e327da0709de82fd8a5417 | 5bd207684f2de617ed949724844482152f12f8ca | refs/heads/master | 2020-04-10T02:49:17.534885 | 2018-11-17T03:41:20 | 2018-11-17T03:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,316 | py | """
Tags module
This module exposes tools for exporting the currently defined tags
within the database. Once exported, these tags can then be pickled
or then re-applied to the same or another database. Some options
are allowed which will let a user apply translations to the tags
before applying them to a target databa... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
6de0cdbb4029d1b8614623b599b9b04bb8352527 | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /no.of ai_greater_thn_aj.py | 2f9cb826b3435d34e935bb0c845cd199ceb9184a | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | n=int(input())
l=list(map(int,input().split()))
c=0
for i in range(n-1):
for j in range(i+1,n):
if l[i]<l[j]:
c+=1
print(c)
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
d4b30fe8753b69022b4ced22642564adad27249e | 100802fd56febbe28e11d45802e0ad661a9b98c4 | /Community/migrations/0011_auto_20170814_1452.py | 925f4afb0c0e91599fc192516ab064e71147f391 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ByrdOfAFeather/AlphaTrion | efc4cfcfa246adde5a0ce84eb5e295c0c61722f5 | 90b00b8f4e4c7fe3c495a5ded14b47c3210119ea | refs/heads/master | 2021-01-22T07:35:43.403968 | 2017-12-03T15:50:41 | 2017-12-03T15:50:41 | 102,306,857 | 0 | 2 | null | 2017-11-12T18:32:35 | 2017-09-04T01:39:45 | Python | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-14 18:52
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Community', '0010_auto_20170813_1831'),
]
operations = [
mi... | [
"matthew_a_byrd@outlook.com"
] | matthew_a_byrd@outlook.com |
6a85cca1f26260ec941c33e52aa6b830c28f2b58 | f942f82fb1b9c2eb0c4cf03ca2254f4207fd08d2 | /Website/migrations/0010_mainpage_map.py | b8735d8c31c533b9ff5088df895a6f34ada18e94 | [] | no_license | mahdy-world/Fatoma-Restaurant | 2b6aec149c20d5526d5d7a505479cc29c811d666 | a500397741e72d0cf28dbb8f64c914144835d6c2 | refs/heads/master | 2023-06-27T19:27:35.606292 | 2021-07-31T13:53:18 | 2021-07-31T13:53:18 | 391,366,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 3.2.3 on 2021-07-15 08:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Website', '0009_auto_20210713_1517'),
]
operations = [
migrations.AddField(
model_name='mainpage',
name='map',
... | [
"salmazidan1997@gmail.com"
] | salmazidan1997@gmail.com |
cd3fc40018659f5a71bc693d5d4872929557c09f | c0caed81b5b3e1498cbca4c1627513c456908e38 | /src/python/bindings/app/pyrosetta_toolkit/window_modules/scripting/rosetta_scripts.py | 4128e2e9c3bbbdd354f557ba92578a27d4418321 | [
"LicenseRef-scancode-other-permissive"
] | permissive | malaifa/source | 5b34ac0a4e7777265b291fc824da8837ecc3ee84 | fc0af245885de0fb82e0a1144422796a6674aeae | refs/heads/master | 2021-01-19T22:10:22.942155 | 2017-04-19T14:13:07 | 2017-04-19T14:13:07 | 88,761,668 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 753 | py |
#!/usr/bin/python
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.org. Q... | [
"malaifa@yahoo.com"
] | malaifa@yahoo.com |
8cd1edead6eef928be0fa086b3686a3f8e90920c | 230553326780c93f60d552a95d50018025724b4b | /py-code/5-12.py | e88ba3692995a134736508eeb8462624664258ff | [] | no_license | g-lyc/PRACTICE | 55108dbeb75893e4e6631ce3968420f1da0266ef | 492f72a1c14b53982ada478890e6a5487a67c46e | refs/heads/master | 2022-08-21T17:33:29.682865 | 2022-08-15T02:58:17 | 2022-08-15T02:58:17 | 51,586,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | # -*- coding: UTF-8 -*-
import sys
print sys.maxint
print -sys.maxint-1
print sys.float_info
print sys.long_info
| [
"309080979@qq.com"
] | 309080979@qq.com |
256dbae320ac7e2fd1ace452a453bb4baf2e5459 | e10f2f70f9d1f4c4b47394043bb6e2b3f873da7e | /collections/ansible_collections/amazon/aws/tests/unit/module_utils/ec2/test_compare_policies.py | c821f7a41a5ba42ad126cce166c65889a68e45b4 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | hindman-redhat/automated-smart-management-2 | 62ec5510a7be7d712960c357fabe6a6bc63ad344 | 5450ccd71f2a4ba568a7f11b03466e1554ae0087 | refs/heads/main | 2023-04-02T13:53:57.710208 | 2021-03-01T21:51:22 | 2021-03-01T21:51:22 | 353,029,627 | 0 | 0 | MIT | 2021-03-30T14:26:02 | 2021-03-30T14:26:02 | null | UTF-8 | Python | false | false | 13,956 | py | # (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import unittest
from ansible_collections.amazon.aws.plugins.module_utils.ec2 im... | [
"mike.savage@gmail.com"
] | mike.savage@gmail.com |
84bc6efbd7aee35a2b7b690cc31e5af6c753d0c3 | 6ef22466e1649ebae37dd19cba29a53b2f020317 | /imu9dof/scripts/imu9250.py | a51cf2ea32df15f18e0e58a31fcde0233430ad3f | [] | no_license | rishabhdevyadav/ROS_IMU_Filter | 7272cb7a950762c13e12b9bbf5f3cf6939cfea4d | f17438101c8e2cfc645fd89d79c76d5e7e6d5d40 | refs/heads/master | 2021-03-21T18:49:16.242474 | 2020-05-25T05:09:01 | 2020-05-25T05:09:01 | 247,321,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | #!/usr/bin/python
from __future__ import division
# coding: utf-8
import rospy
import tf
from sensor_msgs.msg import Imu, MagneticField
from std_msgs.msg import Float64
from geometry_msgs.msg import Vector3
import MPU9250
from math import radians
MAG_HARD_BIAS = (113.90899999999999, -40.54, -16.3515)
MAG_SOFT_BIAS... | [
"rishabhdevyadav95@gmail.com"
] | rishabhdevyadav95@gmail.com |
e55af56ffc42aa26714400df063eb385adc9fb93 | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/events/build_buy/events/build_buy_enter.py | fb2938792871539d80fe2bd229abeb49d918e76f | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 1,721 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from sims4communitylib.events.event_handling.common_event i... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
8a55e97828d00f1b9b7a0e1ecdafeed6a202d86d | 0d1340a1385e2cb693653fe8bf87a5e2e3a6ef61 | /pyDynmap.py | c285eb77899bce74ebe4ec479c8720c10e846051 | [] | no_license | Bowserinator/PyDynmap | 3c5943270c58dded689ebfb04e45d900856b4e50 | 83e957ff88fefe77606465cc8ac838cfaf2b8624 | refs/heads/master | 2022-12-04T21:13:51.648404 | 2016-03-20T22:38:50 | 2016-03-20T22:38:50 | 54,344,098 | 2 | 3 | null | 2022-03-26T02:59:13 | 2016-03-20T22:34:48 | Python | UTF-8 | Python | false | false | 12,321 | py | import urllib, json, math, requests, re
class Dynmap(object):
def __init__(self,url): #Dynamp url, ie dynmap.starcatcher.us
if not url.startswith('http'):
url = "http://" + url
self.url = url
self.link = url+"/up/world/world/"
try:
f = urllib.urlopen... | [
"bowserinator@gmail.com"
] | bowserinator@gmail.com |
5970528efd5dd4f0d36f8fbf562458f334165056 | 97543ae8e1ad7bf3d17dd87171aaac04f6737b5f | /test/bibliopixel/control/extractor_test.py | a44234bd03bee8f4ce8e5ce43b9c72bd0307a31b | [
"MIT"
] | permissive | dr-aryone/BiblioPixel | a3c630bf1cd5db2b014b86775d283c61565a193e | fd97e6c651a4bbcade64733847f4eec8f7704b7c | refs/heads/master | 2020-05-27T16:19:15.043592 | 2019-03-23T08:52:37 | 2019-03-25T11:10:39 | 188,698,414 | 2 | 1 | MIT | 2019-05-26T15:12:38 | 2019-05-26T15:12:37 | null | UTF-8 | Python | false | false | 1,912 | py | import collections, fractions, unittest
from bibliopixel.control import extractor
KEYS_BY_TYPE = {
'note_on': ('channel', 'type', 'note', 'velocity'),
'control_change': ('channel', 'type', 'control', 'value'),
'pitchwheel': ('channel', 'type', 'pitch'),
}
NORMALIZERS = {
'pitch': lambda x: fractions.F... | [
"tom@swirly.com"
] | tom@swirly.com |
63ea14a37d667590081bac94e233095bdca136b6 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc028/A/4966845.py | 77d8954fc41b4806aa8730cdc1c626dcc260484e | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | N = int(input())
if N <= 59:
print('Bad')
elif N <= 89:
print('Good')
elif N <= 99:
print('Great')
else:
print('Perfect') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.