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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f2592c9076e6555e32ed9558c6b602aa7dfde6f | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/SmallProject/Strings.py | 2cdec5809358ac5554ee50b3888cf51d6a055909 | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 854 | py | p="hello\n world"
print(p)
c = '20\u20AC'
print(c)
t = """f
Hello World of Champion!!!!
Are you ready???
Yes Perfect!
"""
print(t)
print("""
Welcome to the GPA calculator
Please enter all your letter graders, one per line.
Enter Blank line to designate the end.
""")
points = {'A+': 4.0 ,'A': 4.0 ,'A-': 3.67,
... | [
"khateebafeef@gmail.com"
] | khateebafeef@gmail.com |
5f9d814e165bbff7341f8adaed112bfee113391c | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /fundamentos/iteraveis/mediana.py | b2b5ee777270724f4ba0c08725826002c1e9e3b3 | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
# coding: utf-8
def mediana(lista):
'''
mediana: valor do item central da lista ordenada, ou
média dos dois itens centrais
>>> mediana([1,2,3,4,5])
3
>>> mediana([1,2,3,4])
2.5
>>> mediana([3,2,1,4])
2.5
'''
centro... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
b5288b3d7ae6d135746fcdc7073b43f639a2df12 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2799/60632/282233.py | eeb1cc91f7d91a25920924cfabbd0123c28bc4dc | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # def is_pow_2(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(2, i)):
# return True
# return False
#
#
# def is_pow_3(x) -> bool:
# if x % 1 != 0:
# return False
# for i in range(10):
# if x == int(pow(3, i)):
# ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b76ace0fdb73f5dd8108600d29b2065e9b696af4 | 7b76dfd66ee462b3edae4d9485e2d50585e8a8ac | /bin/conda/clang/link_flags.py | fc8b9b9ada03f537a3495a301fb691f0cadc684d | [
"Apache-2.0"
] | permissive | asmeurer/ClangLite | 5f4ce8855efb3dd8da42adc0bacba2695fe44cb2 | b6220069f4c73645197a2042555b20097842babd | refs/heads/master | 2021-01-24T03:13:02.544366 | 2018-01-30T14:10:30 | 2018-01-30T14:10:30 | 122,881,656 | 0 | 0 | null | 2018-02-25T22:02:28 | 2018-02-25T22:02:28 | null | UTF-8 | Python | false | false | 526 | py | import os
with open('config.txt', 'r') as filehandler:
output = filehandler.readlines()
LIBRARY_PATH = list()
read = False
for line in output:
if line.startswith('LIBRARY_PATH='):
line = line.lstrip('LIBRARY_PATH=').strip()
LIBRARY_PATH.extend(line.split(':'))
LIBRARY_PATH = {os.path.realpath(l... | [
"pfernique@gmail.com"
] | pfernique@gmail.com |
7fc4ba920a5745dd12c78d172be1368a17c2bc22 | f777d6cc5c713cb983119687fd6a6403355adfb4 | /YouPBX/xadmin/plugins/topnav.py | cca473bdd92c92dbaa2d63947faaf15d6b36f361 | [] | no_license | maozhiqiang/callcenter | 71304bb451482ec61ceafbcfc017472ac2de4dac | 65678718b9beadf61aa6786b43d7192f63b2cfee | refs/heads/master | 2021-09-05T15:14:05.250642 | 2018-01-12T07:33:37 | 2018-01-12T07:33:37 | 119,644,546 | 1 | 1 | null | 2018-01-31T06:24:55 | 2018-01-31T06:24:55 | null | UTF-8 | Python | false | false | 2,574 | py |
from django.template import loader
from django.utils.text import capfirst
from django.core.urlresolvers import reverse, NoReverseMatch
from django.utils.translation import ugettext as _
from xadmin.sites import site
from xadmin.defs import SEARCH_VAR
from xadmin.views import BasePlugin, SiteView
class TopNavPlugin(... | [
"wuhaichao@aicyber.com"
] | wuhaichao@aicyber.com |
b3215ee1f2ce82df254ea7f29be62181624a3b00 | 1bca4fc0734aa41bb1c6da461ec3b84ff3dd99bc | /test/functional/feature_logging.py | 2b2166ba56ba7a058700cb28020188083005abdf | [
"MIT"
] | permissive | wolfoxonly/qqc | 12f892c9030c5232d403b609decf5b297cd8ceaf | 807e67ba65b555ab38a655ae4823fa9af2ae3bc4 | refs/heads/master | 2020-03-10T20:46:31.603204 | 2018-04-15T14:33:17 | 2018-04-15T14:33:17 | 129,576,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The QQcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test debug logging."""
import os
from test_framework.test_framework import QQcoinTestFramework
class Loggi... | [
"OFIChain@163.com"
] | OFIChain@163.com |
554d40d90484290f36d0abf7985bdc61cfba1da1 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /Python OOP 2020/Excersises/excersise3/document_management/project/storage.py | 65a61d8b7ca5ec69ca44292ec291178ae92af399 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | class Storage:
def __init__(self):
self.categories = []
self.topics = []
self.documents = []
def add_category(self, category):
if category not in self.categories:
self.categories.append(category)
def add_topic(self, topic):
if topic not in self.topics:
... | [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
01126cedb026a5884412b02d62b108c94bdae6f1 | 525fe8d3869ae9a34c294286120d098be6655253 | /timetable/migrations/0004_auto_20150410_1941.py | 2d5086aef916924977bb3fa603467293349b99b1 | [] | no_license | AlexGnatuyk/Datium | ce7aa8e9e5ef5b159f6fd42c1fb7cb1567339aa9 | 3ecced6d8d7fc8c2a08a9c6ee1ebc45f13214bbe | refs/heads/master | 2020-07-15T10:33:35.232663 | 2016-03-25T09:39:55 | 2016-03-25T09:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('timetable', '0003_auto_20150409_2105'),
]
operations = [
migrations.AlterField(
model_name='lesson',
... | [
"kirov.verst@gmail.com"
] | kirov.verst@gmail.com |
49e1af1b05b53db53a3db3d9db8e5646ec7493d4 | 6fdddf7ba514cb3191786a61a06c9f12d6182890 | /spyder.py | 6310df5561aa21229735e54be0e4efa029dfe339 | [] | no_license | ash018/Scrap | 64615c9127fa6ecc2e633e6e276e34badf8725ab | 6f45ca9fdc1700686d88cf2aa1403fb9c0b6b05a | refs/heads/master | 2020-03-31T06:28:56.519456 | 2020-01-23T11:07:24 | 2020-01-23T11:07:24 | 151,984,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 8 12:49:01 2018
@author: smakash
"""
import json
import scrapy
import urllib.request
class SpidyQuotesSpider(scrapy.Spider):
name = 'spidyquotes'
quotes_base_url = 'http://spidyquotes.herokuapp.com/api/quotes?page=%s'
start_urls = [quotes_base_url % 1]
... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
8a6a8e8e93fd8928ad317a39ef306e002e825d8a | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /441排列硬币.py | a5322fb823433368efc0bf8352f3bf9d19f11c17 | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | """
你总共有 n 枚硬币,你需要将它们摆成一个阶梯形状,第 k 行就必须正好有 k 枚硬币。
给定一个数字 n,找出可形成完整阶梯行的总行数。
n 是一个非负整数,并且在32位有符号整型的范围内。
示例 1:
n = 5
硬币可排列成以下几行:
¤
¤ ¤
¤ ¤
因为第三行不完整,所以返回2.
"""
class Solution(object):
def arrangeCoins(self, n):
"""
:type n: int
:rtype: int
"""
if n < 2:
return n
... | [
"948244817@qq.com"
] | 948244817@qq.com |
5fd0d3f0eb9110b6f09d8eaa9ed47d574cfdf370 | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/alembic/versions/4ac7d9f38f85_allows_null_dewpoint_values_for_hourly_.py | 3d54107fefa7c5c3568f7d9fb1ecf0a6655968e6 | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 891 | py | """Allows null dewpoint values for hourly actuals
Revision ID: 4ac7d9f38f85
Revises: aa82757b1084
Create Date: 2021-06-01 14:29:49.951368
"""
from alembic import op
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '4ac7d9f38f85'
down_revision = 'aa82757b1084'
branch_labe... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
c845e20cb49ffa17704614605c775f62174f35f2 | 215f4260f3bc746ea038febbe27e177c73e8781d | /Koudai/Server/src/ZyGames.Tianjiexing.Web/Script/PyScript/Action/action4408.py | 1745ae928052a268c7191948572bcc21935d790f | [] | no_license | cosim/Scut-samples | c7baf863300111846358fb016896736420ec0058 | 86286c4b083fdb8ac6244ad122b5facb7592eabd | refs/heads/master | 2021-01-18T03:54:16.358346 | 2015-10-16T09:07:36 | 2015-10-16T09:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | import clr, sys
import random
import time
import datetime
import ReferenceLib
from lang import Lang
from action import *
from System import *
from System.Collections.Generic import *
from ZyGames.Framework.Cache.Generic import *
from ZyGames.Framework.Common.Log import *
from ZyGames.Tianjiexing.Model imp... | [
"wzf_88@qq.com"
] | wzf_88@qq.com |
d56f05af3c27de535dd87df53be5bd34660d448d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_worsts.py | 238bd14921209f33ca8ce96c77e28f95ec46020d | [
"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 | 235 | py |
from xai.brain.wordbase.adverbs._worst import _WORST
#calss header
class _WORSTS(_WORST, ):
def __init__(self,):
_WORST.__init__(self)
self.name = "WORSTS"
self.specie = 'adverbs'
self.basic = "worst"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0f1183e97da07bd5f49d57e484c565872ba37049 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Debug/lib/python2.7/site-packages/twisted/manhole/ui/test/test_gtk2manhole.py | 463190f37a1020dc41ec1587e34d4d45d1896c90 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 1,324 | py | # Copyright (c) 2009 Twisted Matrix Laboratories.
"""
Tests for GTK2 GUI manhole.
"""
skip = False
try:
import pygtk
pygtk.require("2.0")
except:
skip = "GTK 2.0 not available"
else:
try:
import gtk
except ImportError:
skip = "GTK 2.0 not available"
except Runt... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
7fd1dbe3e06dc453bc514ba3d58dd5b19f88d100 | 3669cd260bdab697376feca747d1635d35f42c83 | /security/py-fail2ban/files/patch-actions.py | 91bfc987942691a41c98c25baa79292d35497788 | [] | no_license | tuxillo/DPorts | 58072bc88887c7a53a51988c76a70366bef44a93 | f523fb13a9d3ecc5ce9a8045fdf146ae05de5399 | refs/heads/master | 2020-04-03T08:02:44.297511 | 2013-03-04T07:56:00 | 2013-03-04T07:56:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | --- server/actions.py.orig 2012-11-27 18:16:18.000000000 +0100
+++ server/actions.py 2012-11-27 18:17:04.000000000 +0100
@@ -206 +206 @@
- logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"]))
+ logSys.warn("[%s] Unban %s" % (self.jail.getName(), str(aInfo["ip"])))
| [
"nobody@home.ok"
] | nobody@home.ok |
d1203e82570e4d5912a7947b18befac137bde579 | 1548ce77537dcd50ab04b0eaee050b5d30553e23 | /autotabular/pipeline/components/data_preprocessing/data_preprocessing_categorical.py | d6705e83ea43154d12a39641896c87ce43decbe9 | [
"Apache-2.0"
] | permissive | Shamoo100/AutoTabular | 4a20e349104246bf825ebceae33dca0a79928f2e | 7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2 | refs/heads/main | 2023-08-13T21:34:34.329888 | 2021-10-02T07:06:00 | 2021-10-02T07:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,322 | py | from typing import Any, Dict, List, Optional, Tuple, Union
import numpy as np
from autotabular.pipeline.base import DATASET_PROPERTIES_TYPE, BasePipeline
from autotabular.pipeline.components.data_preprocessing.categorical_encoding import OHEChoice
from autotabular.pipeline.components.data_preprocessing.categorical_enc... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
f57310bed2a1c58aed8958d2ec2afcb9b866e397 | 7cc0ef2d1ad8e9a1542e52bc6bc8897606639452 | /account/migrations/0007_auto_20160505_1827.py | 3f70979a040e12f0e39942e7f66d9c20adccf8e3 | [] | no_license | htl1126/pathjump | 1e87c6127bbfebc8519379c9352440d3a98359f6 | c1235c3fbb13af31ac7b8523e7a83b69f0da95b7 | refs/heads/master | 2021-01-15T15:36:47.723753 | 2016-08-26T20:35:32 | 2016-08-26T20:35:32 | 53,075,772 | 2 | 2 | null | 2016-05-06T17:43:22 | 2016-03-03T19:07:26 | HTML | UTF-8 | Python | false | false | 1,476 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-05 22:27
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20160505_1447'),
]
operations = [
... | [
"b93902098@ntu.edu.tw"
] | b93902098@ntu.edu.tw |
91edc3f2e33b2bbca1ee98e8b76dfe875cf3c247 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_PolyTrend_Seasonal_Second_AR.py | 64f7646780a6a43000ce6df0f0cadc56dde92ebd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 156 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Anscombe'] , ['PolyTrend'] , ['Seasonal_Second'] , ['AR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4db2f70125d55dc93257f676a4f151d6e74ffbdc | b8bff6154e548d6135812394f22d6564c40b074b | /flask-aws/bin/bundle_image | d417974d24fa30d6313fcc8108015b0fcc9760b0 | [] | no_license | nygeog/flask-aws-tutorial-nygeog | 0cb18a48dab515abfce9b89d9b6b84e152bd2e40 | f80668e9bdb3eced69c2c1bd50f6f83c37f65ce1 | refs/heads/master | 2021-01-10T05:48:10.904717 | 2015-10-28T03:01:53 | 2015-10-28T03:01:53 | 45,084,168 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | #!/Users/danielmsheehan/GitHub/flask-aws-tutorial-nygeog/flask-aws/bin/python2.7
from boto.manage.server import Server
if __name__ == "__main__":
from optparse import OptionParser
parser = OptionParser(version="%prog 1.0", usage="Usage: %prog [options] instance-id [instance-id-2]")
# Commands
parser.ad... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com | |
945d57a53bd0dae91137c9ba1f1efc9b34fe111e | e59e1039469765c35192b1cd6eea2789b49190ba | /nslocalizer/xcodeproj/pbProj/XCVersionGroup.py | 53e60757f370688e3305b35df0c363060f3e69f8 | [
"BSD-3-Clause"
] | permissive | samdmarshall/nslocalizer | db208f166e9c7c8aa7c97d33700943370d1e063b | df086165d9201c98753cdda47bcfa0e517839696 | refs/heads/develop | 2021-01-18T00:45:31.485248 | 2019-04-02T18:00:48 | 2019-04-02T18:00:48 | 63,786,762 | 174 | 12 | NOASSERTION | 2019-02-24T16:27:13 | 2016-07-20T14:10:52 | Python | UTF-8 | Python | false | false | 2,124 | py | # Copyright (c) 2016, Samantha Marshall (http://pewpewthespells.com)
# All rights reserved.
#
# https://github.com/samdmarshall/nslocalizer
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of sourc... | [
"me@samdmarshall.com"
] | me@samdmarshall.com |
596b64221ab3bf09fd36b81245b725ef27edbb7f | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/nist_data/atomic/float_pkg/schema_instance/nistschema_sv_iv_atomic_float_enumeration_4_xsd/__init__.py | 6b1c7764ed6855c717d67be10234c1e18219fca4 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 364 | py | from output.models.nist_data.atomic.float_pkg.schema_instance.nistschema_sv_iv_atomic_float_enumeration_4_xsd.nistschema_sv_iv_atomic_float_enumeration_4 import (
NistschemaSvIvAtomicFloatEnumeration4,
NistschemaSvIvAtomicFloatEnumeration4Type,
)
__all__ = [
"NistschemaSvIvAtomicFloatEnumeration4",
"Ni... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
7cb0f1c9c7ca53419f4d843771e8d05e386fd3dc | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit_press_releases/migrations/0010_add_brief.py | 53e0ff6430fc135656f91969f847f38cd1b04409 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('icekit_press_releases', '0009_auto_20170519_1308'),
]
operations = [
migrations.AddField(
model_name='pressrelea... | [
"greg@interaction.net.au"
] | greg@interaction.net.au |
5b098cc32ed04727d88286884d3a1a759dd4afa0 | ddb185b0cf581d85a1dd733a6d1e5d027ba3e0ca | /phase1/400.py | 877ca618fdd5b1fc536af2f45765a18d49bae79b | [] | no_license | GavinPHR/code | 8a319e1223a307e755211b7e9b34c5abb00b556b | b1d8d49633db362bbab246c0cd4bd28305964b57 | refs/heads/master | 2020-05-16T04:09:19.026207 | 2020-04-30T10:00:06 | 2020-04-30T10:00:06 | 182,766,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # Nth Digit
class Solution:
def findNthDigit(self, n: int) -> int:
i = 0
idx = 9 * (10 ** i) * (i + 1)
while n - idx > 0:
n = n - idx
i += 1
idx = 9 * (10 ** i) * (i + 1)
pos = n % (i + 1)
print(n, i, pos, sep="||")
num = (10 ** i -... | [
"gavinsweden@gmail.com"
] | gavinsweden@gmail.com |
913096e1f4f5d79eb8e22f3e0a46b6ac66e40beb | abf984d4784f593ce617b335029b3efc273c7678 | /school_1329_server/users/migrations/0004_auto_20171228_1822.py | e1781425ab261058467d4a9f8d7b250a1c693513 | [] | no_license | potykion/school_1329_server | 80200cf5ddebfc4f9ac94ef2db19472c1b3cf374 | 7c579c625dc1fae7334117fa6cf078ede38574dc | refs/heads/master | 2021-09-08T18:02:22.092561 | 2018-03-11T16:54:13 | 2018-03-11T16:54:13 | 113,746,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Generated by Django 2.0 on 2017-12-28 15:22
import datetime
from django.db import migrations, models
import django.utils.timezone
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20171226_0152'),
]
operations = [
migrat... | [
"potykion@gmail.com"
] | potykion@gmail.com |
ce879194c5cd487647fb7aebdeb08adbfa36a966 | 973ac85842b01e373c48d161bf46c7c7e0e50227 | /Game5/home.py | d89c7638483f9feca2608c04430c40c0062f7fe7 | [
"MIT"
] | permissive | splin85/Games | b652a050b905a2922849df21ff1262f8dedba6f1 | 41ebdf73e5523be15830334afc12f013b1d60323 | refs/heads/master | 2020-03-28T12:38:45.987129 | 2018-09-11T10:21:39 | 2018-09-11T10:21:39 | 148,318,954 | 1 | 0 | MIT | 2018-09-11T13:09:02 | 2018-09-11T13:09:02 | null | UTF-8 | Python | false | false | 595 | py | # coding: utf-8
# 作者: Charles
# 公众号: Charles的皮卡丘
# 大本营类
import pygame
# 大本营类
class Home(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__init__(self)
self.homes = ['./images/home/home1.png', './images/home/home2.png', './images/home/home_destroyed.png']
self.home = pygame.image.load(self.homes... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
771ad5ac2a34884bcd43a05f69b30b6e6d21a353 | 3197bcf3e80989d0fc13519b2a5689c8b21049d8 | /prototypes/training_scripts/HeLa/feature_net_61x61_dropout_norm3.py | 46da59afb0570adc9516dc823bf0919d3b8b35f8 | [] | no_license | YubinXie/DeepCell | d6a5434dcf5fb208f407caf714d4877ed745a7cd | 887ac6be63e2594c3480680fdde63fbe9dded336 | refs/heads/master | 2021-05-05T16:17:38.178635 | 2018-01-13T20:39:34 | 2018-01-13T20:39:34 | 117,307,949 | 0 | 0 | null | 2018-01-13T02:45:18 | 2018-01-13T02:45:18 | null | UTF-8 | Python | false | false | 1,084 | py | '''Train a simple deep CNN on a HeLa dataset.
GPU run command:
THEANO_FLAGS='mode=FAST_RUN,device=gpu,floatX=float32' python training_template.py
'''
from __future__ import print_function
from keras.optimizers import SGD, RMSprop
from cnn_functions import rate_scheduler, train_model_sample
from model_zoo import fea... | [
"vanvalen@gmail.com"
] | vanvalen@gmail.com |
df258a208348b017e2c9cf61a8a39e9d1be99432 | 44470a3d1388eddc83e84193813364cdc446f89a | /FinancialSimulator/Config/ConfigInstall.py | 731afffe0e43c6cf368dd2f87069f4048f3bf290 | [
"LicenseRef-scancode-public-domain"
] | permissive | FabriceSalvaire/pyFinancialSimulator | 12671b48ff3596affc5d770058dae41dcdfeecac | ea8380bf1106d597661214b2695681e21d72d259 | refs/heads/master | 2021-01-10T17:16:59.975117 | 2018-04-11T11:41:38 | 2018-04-11T11:41:38 | 43,254,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | ####################################################################################################
import os
####################################################################################################
import FinancialSimulator.Tools.Path as PathTools # due to Path class
##################################... | [
"fabrice.salvaire@orange.fr"
] | fabrice.salvaire@orange.fr |
7325ae304d235b7a782d87159dd5bb3bda70ee36 | da92f27626485f3d75dd85b83e7d404fe5ce63eb | /migrations/versions/7ca65b6611b6_.py | 404d4f4e6b46d99e35425d14f33f002d67d9a15a | [
"Apache-2.0"
] | permissive | DD-DeCaF/design-storage | c0a88c554b427d6b86ac09e5ab0b4154174ef250 | 0c0e07f0dc505eb4a1e4521a87f5f7ac6f879b6d | refs/heads/devel | 2021-06-23T16:45:27.322527 | 2020-05-26T20:17:11 | 2020-05-26T20:17:11 | 161,643,976 | 0 | 0 | Apache-2.0 | 2020-12-08T14:35:36 | 2018-12-13T13:34:53 | Python | UTF-8 | Python | false | false | 1,112 | py | """empty message
Revision ID: 7ca65b6611b6
Revises:
Create Date: 2018-12-18 14:28:03.918045
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '7ca65b6611b6'
down_revision = None
branch_labels = None
depends_on = None
d... | [
"ali@kvikshaug.no"
] | ali@kvikshaug.no |
1d02be350bd89c4ad24b2390e8c69e52de9cb2c8 | 24b79d18bc9b522c86d65d7601d7012fe29b0693 | /program9-11/main_pro.py | 58caffbe4b62c30aec554f26abfbfda139e026c1 | [] | no_license | meenapandey500/Python_program | 409fafa2e8f50edfbf30ddfbdf85b47569bf229c | 2bcb5fd51aebb4dca4bcc31a26e6b05a3603d5f0 | refs/heads/main | 2023-03-18T11:49:58.302858 | 2021-03-19T09:29:24 | 2021-03-19T09:29:24 | 349,359,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import file_class as f1
#main program
f=f1.files() #f is a object of class files
f.writefile()
f.readfile()
f.copyfile()
| [
"noreply@github.com"
] | meenapandey500.noreply@github.com |
bff3b2c527447f1f88f50748842058001df6d0b2 | 1e177ebdcb470f738c058606ac0f86a36085f661 | /Python/AdafruitIO/SendBlockHeat02_0.py | dc11ecc9ab7849e9906af300e627f575c087dfc7 | [] | no_license | robingreig/raspi-git | 5cbdd295c1048a0571aa2c2f8576438269439f07 | 7373bf94557d7a88c8f343362ba64f9cd19c8ce7 | refs/heads/master | 2023-08-31T03:16:17.286700 | 2023-08-26T11:54:23 | 2023-08-26T11:54:23 | 16,873,881 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #!/usr/bin/python
# Import Library & create instance of REST client
from Adafruit_IO import Client
aio = Client('7e01e8b5e56360efc48a27682324fc353e18d14f')
# Send the value of 1 to BlockHeat02
aio.send('blockheat02',0)
# Retrieve the most recent value from 'BlockHeat02'
data = aio.receive('BlockHeat02')
print('Recei... | [
"robin.greig@calalta.com"
] | robin.greig@calalta.com |
4f0fe3d099194e915d8a5db2b0850bd92f76cbc2 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/Full_v6Production/template_seed/templates_jhchoi_combine/StructureFiles/MakeSampleStructureNuisancePythons.py | 2e5c33f66236b1b84dc00bbe1203bd86d8005a68 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 3,908 | py | import os
import sys
sys.path.insert(0, os.getcwd()+"/../MassPoints")
sys.path.insert(0, os.getcwd()+"/../")
##--signal Mass points--##
from List_MX import *
from List_MX_VBF import *
from WPandCut2016 import Year
List_MX_common=list(set(List_MX).intersection(List_MX_VBF))
##--bkg--##
#BKG=[ 'DY', 'WZZ', 'WWZ','WWW',... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
d798508db278b21b33d7535d4228a09122e05c85 | 4be9a5bdb8e051001b78c8f127ccc1a7f85c14e7 | /monitoring/forms.py | e1648ae00d7df6d2c21eabc75faeffdc180af623 | [] | no_license | quentin-david/heimdall | f72a85606e7ab53683df2023ef5eaba762198211 | 84a429ee52e1891bc2ee4eb07a084dff209c789c | refs/heads/master | 2021-01-21T10:26:28.895663 | 2017-07-21T19:19:46 | 2017-07-21T19:19:46 | 83,432,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django import forms
from .models import Munin
class MuninForm(forms.ModelForm):
class Meta:
model = Munin
fields = '__all__' | [
"david@hemdgsa01.local.lan"
] | david@hemdgsa01.local.lan |
2b8a72aa08de33202a5c8687406a44e3a25ec8fa | 0e738ccc77594585c08e2e8a87a67253d13f57b0 | /flask-project-v8/manage.py | 553b4f14fca06cd8a55af1b8edeb6eb9114e6f36 | [] | no_license | saurabh-kumar88/flask-projects | cb02a991e05dbcf6a467bb126a4efecbe4bc4126 | 02827743e7a52f562be03975ceea9de10a4346cf | refs/heads/main | 2023-01-31T06:42:15.273505 | 2020-12-14T09:09:07 | 2020-12-14T09:09:07 | 321,291,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from app.models import *
app = Flask(__name__)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __n... | [
"ykings.saurabh@gmail.com"
] | ykings.saurabh@gmail.com |
b2fc87109627385c185b8e75175bcac1bd8e1839 | 445539eefd37bbd8feb327574333b464bbe9f858 | /33/pool_pipe_celcius.py | d8ad66384d96d947b427ea589cc7b2bb2fdd0286 | [
"CC0-1.0"
] | permissive | yz-liu/cpython-book-samples | 8a2753ca2cebf8e5d8f5822e28ccf278f17864ae | d5a7cd72d14231a35d1d8b2ec74b04a171170686 | refs/heads/master | 2023-01-19T12:21:27.354487 | 2020-11-26T00:16:40 | 2020-11-26T00:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import multiprocessing as mp
def to_celcius(child_pipe: mp.Pipe, parent_pipe: mp.Pipe):
f = parent_pipe.recv()
# time-consuming task ...
c = (f - 32) * (5/9)
child_pipe.send(c)
if __name__ == '__main__':
mp.set_start_method('spawn')
pool_manager = mp.Manager()
with mp.Pool(2) as pool:
... | [
"anthony.p.shaw@gmail.com"
] | anthony.p.shaw@gmail.com |
038a78ecf4331b3d18fb16a79383f077385711f8 | 8c14c6fef7539f3f946b955d4677a8c2f25bb7f1 | /src/vsc/model/rangelist_model.py | 8b135085fdf2c2385fb5c136cf7367cbd096cab5 | [
"Apache-2.0"
] | permissive | hodjat91/pyvsc | 2ce8b4cb1582793caee8f994e73ab867ef0eefb8 | 9b268db1970cd43058ea02f4fdbdc31990046230 | refs/heads/master | 2022-11-11T16:29:30.056186 | 2020-07-01T01:14:10 | 2020-07-01T01:14:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
9957cfa6dcae5f7c12edbbbee6687a70d54e3523 | 0fc2b99fd8414dbce5f1f6057b9b800c968d5d05 | /lpbio/swarm/__init__.py | 293bff76afe1cd97181eb75f0eed192cfe8d24a1 | [
"MIT"
] | permissive | widdowquinn/lpbio | 9df898cb9580f62da1f66d5736cbf7a984633561 | 8b95642396d05a56c1c54389e3de6d88d7cbffb5 | refs/heads/master | 2020-03-29T02:08:56.675473 | 2019-11-07T14:27:44 | 2019-11-07T14:27:44 | 149,422,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | # -*- coding: utf-8 -*-
"""Code for interaction with the Swarm clustering tool."""
import os
import shlex
import shutil
import subprocess
from collections import namedtuple
from lpbio import LPBioNotExecutableError, is_exe
class SwarmError(Exception):
"""Exception raised when swarm fails"""
def __init__(s... | [
"leighton.pritchard@hutton.ac.uk"
] | leighton.pritchard@hutton.ac.uk |
7f128626999fdb25a08a0b49abd7399c216ba13b | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-07-27_modo_horario_cp_onda1_10d/script_modo_horario_2020-03-05_fchk_1036.py | d462e860f46dceffa88ab39003f27bd308ae8ade | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | #!/usr/bin/env python3
# Bibliotecas
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
# Variáveis
projectID = "40" # ID do projeto, conforme mostrado no frontend Web
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd4... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
10c9a1c4063a9dbc167bea682133f4b74469d7c2 | bce4a906faebfcab5db0e48ad587841d9ef3e74c | /train.py | 6b93bc7a9fa165787181e7fd0a4ad5c992af7b36 | [
"MIT"
] | permissive | scofield77/pytorch-action-recognition-toy | aecddd6da3c032ca25c2bd1facf6fc8f6d72b4e4 | de0f8820c40d09d34a61849ee572f8af37f5725d | refs/heads/master | 2020-07-20T21:39:46.453236 | 2019-03-05T00:52:39 | 2019-03-05T00:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import torch
import numpy as np
import torch.nn as nn
import torch.utils.data
from net import ActionLSTM
from data import ActionDataset
from tensorboardX import SummaryWriter
if __name__ == '__main__':
batch_size = 8
dataset = ActionDataset()
data_loader = torch.utils.data.DataLoader(dataset, batch_size=ba... | [
"linkinpark213@outlook.com"
] | linkinpark213@outlook.com |
5fe28bbb5bc93700043f88a007f3546307b639c3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/class_def_attr-big-240.py | b5bd95ff2c12b474eee61f9edfe88fbe2ca06b44 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | class A(object):
x:int = 1
class A2(object):
x:int = 1
x2:int = 1
class A3(object):
x:int = 1
x2:int = 1
x3:int = 1
class A4(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
class A5(object):
x:int = 1
x2:int = 1
x3:int = 1
x4:int = 1
x5:int = 1
class ... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
35e4783fdc79bd2c34545d469bcb5e0bd5cd5ee1 | 969fed6b9f4c0daa728bda52fea73d94bda6faad | /fakeTempControl/oxford/SIM_MERCURY.py | 8052e93e5bcb55584ef3d3095d82cb5133ffb948 | [] | no_license | ess-dmsc/essiip-fakesinqhw | 7d4c0cb3e412a510db02f011fb9c20edfbd8a84f | ad65844c99e64692f07e7ea04d624154a92d57cd | refs/heads/master | 2021-01-18T22:50:50.182268 | 2020-10-01T08:39:30 | 2020-10-01T08:39:30 | 87,077,121 | 0 | 0 | null | 2018-12-07T08:43:00 | 2017-04-03T13:28:23 | Python | UTF-8 | Python | false | false | 4,643 | py | #!/usr/bin/env python
# vim: ft=python ts=8 sts=4 sw=4 expandtab autoindent smartindent nocindent
# Author: Douglas Clowes (dcl@ansto.gov.au) 2013-06-03
from twisted.internet.task import LoopingCall
from twisted.internet import reactor
from twisted.python import log, usage
from MercurySCPI import MercurySCPI as MYBAS... | [
"mark.koennecke@psi.ch"
] | mark.koennecke@psi.ch |
47db47b32423507921839a5579f5c66157eed44b | d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189 | /pyplusplus_dev/pyplusplus/_logging_/__init__.py | a888e10fb87659587d0fef6b90646c31533e1bb1 | [
"BSL-1.0"
] | permissive | gatoatigrado/pyplusplusclone | 30af9065fb6ac3dcce527c79ed5151aade6a742f | a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede | refs/heads/master | 2016-09-05T23:32:08.595261 | 2010-05-16T10:53:45 | 2010-05-16T10:53:45 | 700,369 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#TODO: find better place for it
"""defines logger classes"""
import os
import sys
import logging
import cStringIO
... | [
"roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76"
] | roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76 |
f5fded1a9cdae582a279e092b4b999bd1c6375da | c1c39c5e9456a4c175c651ba224a53c4a76f902a | /helpers/azure.py | dd8023fe4596e2fb34fbe94615ca383e28d235ef | [] | no_license | syllogy/cloud_sizes | 5312c190c88303e78601496f3cc0206e5f7d0991 | b97b782a2e786373992ca0ca51b40625d2d2ea91 | refs/heads/master | 2023-07-11T19:00:57.057759 | 2021-08-27T03:53:08 | 2021-08-27T03:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python3
from netaddr import IPSet, IPNetwork
from itertools import chain
from requests import get
import re
def get_and_parse():
# I'm shocked, shocked I tell you to see that MS requires you do
# something oddball like dig into an HTML page to get the latest
# data file.
url = "https://... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
9640b58c5a0cb8df3d449504d5764902b2ec7211 | 59df4e1fd50d2e81b6490bb5322084165033cefc | /seed.py | b773b252a7d0b6c0a87526060a0884f95e697567 | [] | no_license | JKinsler/ratings-lab | 0cfafd345e27f19dfcedb249a23d5bf7fc6eebb0 | 6c7196c36dd6c09074b84deca0653ae445ca7651 | refs/heads/master | 2023-02-08T11:03:30.762832 | 2020-02-06T20:12:57 | 2020-02-06T20:12:57 | 238,305,896 | 1 | 0 | null | 2023-02-02T05:13:18 | 2020-02-04T21:03:13 | Python | UTF-8 | Python | false | false | 3,561 | py | """Utility file to seed ratings database from MovieLens data in seed_data/"""
from sqlalchemy import func
from datetime import datetime
from model import User
from model import Rating
from model import Movie
from model import connect_to_db, db
from server import app
def load_users():
"""Load users from u.user i... | [
"you@example.com"
] | you@example.com |
d29db2d8b3506d66b6f9f90e3eb98490ae2db3e2 | bcfa02c21a73798872bbb28303233d1f0039cf00 | /server/www/packages/packages-darwin/x64/ldap3/protocol/sasl/kerberos.py | 5000ebf430968b22f94a18fd3c42a8d85112d7ea | [
"Apache-2.0"
] | permissive | zhoulhb/teleport | 6301cd50c951bcbac21cbe24017eb8421ff57adc | 54da194697898ef77537cfe7032d774555dc1335 | refs/heads/master | 2021-11-10T17:10:59.661130 | 2021-11-09T11:16:19 | 2021-11-09T11:16:19 | 192,643,069 | 0 | 0 | Apache-2.0 | 2019-06-19T02:20:53 | 2019-06-19T02:20:52 | null | UTF-8 | Python | false | false | 5,038 | py | """
"""
# Created on 2015.04.08
#
# Author: Giovanni Cannata
#
# Copyright 2015 - 2018 Giovanni Cannata
#
# This file is part of ldap3.
#
# ldap3 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Founda... | [
"apex.liu@qq.com"
] | apex.liu@qq.com |
242f05cd4aae7555fbe6bf5702093febdcbb83e4 | 81eff1c9bc75cd524153400cdbd7c453ee8e3635 | /zxcar_ws/devel/lib/python2.7/dist-packages/astra_camera/srv/_GetDeviceType.py | 09fd9a871d38977c6e36077b57b4a6a1ceed594b | [] | no_license | sukai33/zxcar_all | bbacbf85c5e7c93d2e98b03958342ec01e3dafd9 | af389f095591a70cae01c1d116aa74d68223f317 | refs/heads/master | 2023-01-03T13:32:00.864543 | 2020-10-29T05:22:43 | 2020-10-29T05:22:43 | 300,556,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,207 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from astra_camera/GetDeviceTypeRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetDeviceTypeRequest(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf... | [
"422168787@qq.com"
] | 422168787@qq.com |
de4a7ed167183486e87b3d21fa8d14dc7a5e85a7 | 0e887d0cd010434e101eece419229aa4813ad893 | /image_captioning/data/datasets/coco.py | ddf7c7b787cd99e21faba7310fda4ee6fb6bb0f6 | [] | no_license | congve1/image_captioning | 2c11d3ee80f0836853c7decf1255ac879f7a90b6 | 64cadfb9e072313f45f536f539b3cb8deb0432cd | refs/heads/master | 2020-04-10T07:49:14.748923 | 2019-01-28T10:47:33 | 2019-01-28T10:47:33 | 160,889,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | import pickle
import json
import os
import torch
import lmdb
import numpy as np
import logging
import time
class COCODataset(torch.utils.data.dataset.Dataset):
def __init__(
self,
root,
att_features_paths_file,
fc_features_paths_file,
encoded_captions_file,
encoded... | [
"congve1@live.com"
] | congve1@live.com |
8464caf19dff35b15183b1d7669a91eeb8c8a1aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02712/s290713931.py | 2f012061dba1cd50f56bd01af90ace84c3b45931 | [] | 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 | 150 | py | def resolve():
n = int(input())
ans = 0
for i in range(1,n+1):
if i%3!=0 and i%5!=0:
ans += i
print(ans)
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a0cca8abc3ef3909ea5fe190d9189a0f0d90ae8 | d5b48163d236ca770be8e687f92192e2971397e8 | /globalvariableFunction1.py | 3477ac1307caf7853c39640dc6a0019cd95789a2 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | x=10#global variable
def f1():
print(x)#10
x+=5
print(x)#error
f1()
print(x)#error
def f2():
print(x)#error
f2()
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
61e08cd88ef23fb7e87890a5b36fc050d8df3f6d | 4a2a0cfc984a9faa45903732d776cd61ea361779 | /pwncat/modules/agnostic/implant.py | 545178a75fb449321c95997dc09fb7844b0c1a07 | [] | no_license | PremHcz/pwncat | 2a746cfc546158fa288994b376fd71768672a33a | cb203349d7ca815c9350eb53f4bd2e0b0ee659fa | refs/heads/master | 2023-05-30T19:07:16.327320 | 2021-06-14T13:01:19 | 2021-06-14T13:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,437 | py | #!/usr/bin/env python3
from typing import List
from rich.prompt import Prompt
from pwncat.util import console
from pwncat.facts import Implant, KeepImplantFact
from pwncat.modules import Bool, Status, Argument, BaseModule, ModuleFailed
class Module(BaseModule):
"""Interact with installed implants in an open ses... | [
"caleb.stewart94@gmail.com"
] | caleb.stewart94@gmail.com |
b83dddb0ba5cc289c6faf02198f34fa7f1efb501 | bd1362c60313784c90013dfc9f0169e64389bf27 | /scripts/dbutil/set_wfo.py | 7790328ad4c796e3e0c601f831caf22e45761999 | [] | no_license | ForceCry/iem | 391aa9daf796591909cb9d4e60e27375adfb0eab | 4b0390d89e6570b99ca83a5fa9b042226e17c1ad | refs/heads/master | 2020-12-24T19:04:55.517409 | 2013-04-09T14:25:36 | 2013-04-09T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """
Assign a WFO to sites in the metadata tables that have no WFO set
$Id: $:
"""
import re
import iemdb
MESOSITE = iemdb.connect('mesosite')
mcursor = MESOSITE.cursor()
mcursor2 = MESOSITE.cursor()
# Find sites we need to check on
mcursor.execute("""select s.id, c.wfo, s.iemid, s.network
from stations s, cwa c W... | [
"akrherz@95f8c243-6001-0410-b151-932e6a9ed213"
] | akrherz@95f8c243-6001-0410-b151-932e6a9ed213 |
613e4837a9f63c8b247a8e460f07e655fe9e2904 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2210/60716/276310.py | 155107bcaf3512fb1bad228a6138043e1592acac | [] | 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 | 713 | py | def checkin(substr:list,parstr:str):
check = True
for t in range(len(parstr)):
if parstr[t] in substr:
substr.remove(parstr[t])
else:
break
return check
ucnum = int(input())
ans = list()
for i in range(ucnum):
str1 = input()
str2 = input()
anstr = str()
#... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0351042e28eadd00d7b26fdc3576ef296ac9ee15 | 99d7a6448a15e7770e3b6f3859da043300097136 | /src/database/migrate/isotopedb/versions/010_Add_aliquot_to_LabTable.py | a8e30e8ecebd6498a1eda6c619ef3184b2accad3 | [] | no_license | softtrainee/arlab | 125c5943f83b37bc7431ae985ac7b936e08a8fe4 | b691b6be8214dcb56921c55daed4d009b0b62027 | refs/heads/master | 2020-12-31T07:54:48.447800 | 2013-05-06T02:49:12 | 2013-05-06T02:49:12 | 53,566,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from sqlalchemy import *
from migrate import *
def upgrade(migrate_engine):
# Upgrade operations go here. Don't create your own engine; bind
# migrate_engine to your metadata
meta = MetaData(bind=migrate_engine)
t = Table('LabTable', meta, autoload=True)
col = Column('aliquot', Integer)
col.cr... | [
"jirhiker@localhost"
] | jirhiker@localhost |
9df92ff5844f388a0d92870ce2ceab590cc8a89d | 64870a6b0a38c63dd69387a2b9d591378dcaedfa | /setup.py | d9015e62651456081c3657bf72391f27c76df5af | [
"Unlicense"
] | permissive | andrewp-as-is/setuppy-generator.py | 28ff31d8fd6a66fb4d0ca77244fcc8acb5a53912 | ae27ae4d534a373f34ebe24a16353a214abf8fc5 | refs/heads/master | 2021-07-11T05:40:52.834761 | 2020-12-03T21:25:00 | 2020-12-03T21:25:00 | 217,581,540 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import setuptools
setuptools.setup(
name='setuppy-generator',
version='2020.12.2',
install_requires=open('requirements.txt').read().splitlines(),
packages=setuptools.find_packages()
)
| [
"russianidiot.github@gmail.com"
] | russianidiot.github@gmail.com |
8e8f8f023aaacf37507d97b5a08cd7038235cb03 | 76255205d52cb81da0f8e0014775b98195ae83a1 | /osticket/env/bin/django-admin | 25c1965788b29f4f38330119aa9805526df6877b | [] | no_license | vuvandang1995/OSticket | 6c4fafbadffd99f635f049ca19a3dd120152d159 | 80c364cf9a7313cb102b7d618c43411c394b09f4 | refs/heads/master | 2020-03-09T10:08:16.715876 | 2018-07-11T00:11:52 | 2018-07-11T00:11:52 | 128,729,604 | 5 | 3 | null | 2018-07-11T00:11:53 | 2018-04-09T07:08:35 | JavaScript | UTF-8 | Python | false | false | 281 | #!/home/osticket/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"dangdiendao@gmail.com"
] | dangdiendao@gmail.com | |
e3ce904d92a58307e91532be437be396e12719b0 | e5483ab737acd9fb222f0b7d1c770cfdd45d2ba7 | /ecommerce/core/migrations/0015_auto_20200617_0543.py | ed6c2dc12074874bcb1dfb5cfa5901daff8e3542 | [] | no_license | mxmaslin/otus_web | 6c1e534047444d7a1fc4cd1bf8245c25d9fc4835 | b90ad69e1b5c1828fa2ace165710422d113d1d17 | refs/heads/master | 2022-12-09T19:52:58.626199 | 2020-07-07T19:15:52 | 2020-07-07T19:15:52 | 226,154,128 | 1 | 1 | null | 2022-12-08T03:23:10 | 2019-12-05T17:25:11 | JavaScript | UTF-8 | Python | false | false | 2,038 | py | # Generated by Django 2.2.12 on 2020-06-17 02:43
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0014_orderitem_... | [
"zapzarap@yandex.ru"
] | zapzarap@yandex.ru |
ed526ae369d2eed2d321a2449ab09942936d0194 | b0af2f57aec5f6620fe73361f5aee18c3d12d7c5 | /code/robotics/PyAdvancedControl-master/mpc_sample/main.py | be94f52068f09aded7a128b2e28f37c4a582accf | [
"GPL-2.0-or-later",
"eCos-exception-2.0",
"MIT"
] | permissive | vicb1/python-reference | c7d3a7fee1b181cd4a80883467dc743b935993a2 | 40b9768124f2b9ef80c222017de068004d811d92 | refs/heads/master | 2022-10-09T08:41:56.699722 | 2022-10-04T00:53:58 | 2022-10-04T00:54:06 | 171,308,233 | 1 | 0 | MIT | 2022-06-21T23:43:38 | 2019-02-18T15:27:28 | Jupyter Notebook | UTF-8 | Python | false | false | 2,028 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Simple Model Predictive Control Simulation
author Atsushi Sakai
"""
import time
from cvxpy import *
import numpy as np
import matplotlib.pyplot as plt
print("Simulation start")
np.random.seed(1)
n = 4 # state size
m = 2 # input size
T = 50 # number of horizon
# simul... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
354af91557abc5587e4c6a68abaf64e39f6c2d67 | 6e64eb9a4353dc6bd89c649d27bb20aa61173d7d | /core/products/views/product/views.py | cd1644f54713f542333f36d4ef3078e2019fa4f8 | [] | no_license | RoodrigoRoot/deploy_django | 0d4b76ae41bab907d5d69b4e7c34d5151f9827bd | 593b4613f1c224e236ac7f798e771e447ada677d | refs/heads/master | 2022-11-28T05:39:37.350224 | 2020-03-19T19:42:04 | 2020-03-19T19:42:04 | 248,580,750 | 0 | 0 | null | 2022-11-22T03:38:31 | 2020-03-19T18:50:40 | JavaScript | UTF-8 | Python | false | false | 2,418 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.generic import ListView, CreateView, UpdateView, DeleteView
from core.products.forms import ProductForm
from core.prod... | [
"roodrigoroot@gmail.com"
] | roodrigoroot@gmail.com |
b53fe631fbbe3bae49798ea486ad1b37cf7a89b5 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002589.py | e50690dda9b20734f0885f36379c31fb7774fe82 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
2d573fe5931b3f1063ba73647b84291d080f1c8a | 2ad32d08c66cc02f5a19b3a9e2fbb7c5c25ed99c | /wolf_alg/Data_structures_and_algorithms_py/floyd.py | e459f00b0c5d7f500a47fb6c30e2f2b617c4b4ac | [] | no_license | wqjzzgci/wolf-ai | 5038dee45748809d16482ff6ecac7a2ae00dcbcf | 42cb88a312e1137ad1c59c8a82fc3c15b3cd5092 | refs/heads/master | 2020-03-10T03:20:58.453867 | 2018-04-09T10:23:10 | 2018-04-09T10:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #coding=utf-8
def floyd(double_list, vertexs):
for k in xrange(1, vertexs + 1):
for i in xrange(1, vertexs + 1):
for j in xrange(1, vertexs + 1):
tmp = min_value if double_list[i][k] >= min_value or double_list[k][j] >= min_value else double_list[i][k] + double_list[k][j]
... | [
"jiexu@pptv.com"
] | jiexu@pptv.com |
43c07454753909afed5dc71cb7ef52426b278069 | b34d7c5f810287ebaab09c58754bc59f03589ac3 | /ltc/controller/migrations/0005_auto_20220316_1624.py | df6da7a23d585093998fc8bdab84b883a059ef11 | [
"MIT"
] | permissive | r1990v/JMeter-Control-Center | 11d00276a35a502f91f05bf2adf5c88bf56fbfed | 6bfd13f008fce42c78badcb9d2579f069b064fe9 | refs/heads/master | 2023-01-07T12:40:43.370688 | 2022-09-27T11:05:56 | 2022-09-27T11:05:56 | 162,960,150 | 0 | 0 | null | 2018-12-24T06:53:26 | 2018-12-24T06:53:26 | null | UTF-8 | Python | false | false | 567 | py | # Generated by Django 2.2 on 2022-03-16 15:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('controller', '0004_auto_20210608_1506'),
]
operations = [
migrations.DeleteModel(
name='Proxy',
),
migrations.RemoveField(... | [
"german.syomin@innogames.com"
] | german.syomin@innogames.com |
e26833183e66a8213241f6e0351fc7da369a112b | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /aloe/aloe/common/plot_2d.py | b295d55c7794a134eb4930874648ecfc1df9b8c4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,275 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7df713c6d27a30122bb093277d9212602c441695 | 6a0b9581195400a93027aca881b1bc687401913d | /hackerrank-python/contests/world_cup/world_cup_team_formation.py | e702e9c67af3d7c45e54f7514b371704816cfd93 | [] | no_license | 108krohan/codor | 1d7ff503106ad6b2c18bc202d4c88f296600f28e | 2e485607080f919f273aa6c8c0d9cb3516cf4443 | refs/heads/master | 2021-04-28T21:13:34.604020 | 2018-02-18T11:55:26 | 2018-02-18T11:55:26 | 86,153,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | """world_cup_team_formation at hackerrank.com"""
lst = [int(raw_input()) for _ in xrange(10)]
lst.sort(reverse = True)
print lst[0] + lst[2] + lst[4]
"""
take sum of the first odd three numbers sorted in reverse order.
"""
| [
"108krohan@gmail.com"
] | 108krohan@gmail.com |
568fad17206fd645defb2cc4276ae1fc93ba66bc | 06a2a44e2de6f9f6ac815762468ba63b82cd00e1 | /apps/account/context_processors.py | 932c6e47b78fb03f1996728b8cd4ab0d9ddf9feb | [] | no_license | hqpr/marketcsgo | 153e0f3b180e6cc5eb771ba60e7cf5b6e7f31929 | dec9cdf1cafb836f5303a773ad77cf4824665722 | refs/heads/master | 2021-01-10T10:08:33.323776 | 2019-03-17T10:13:40 | 2019-03-17T10:13:40 | 48,641,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from apps.account.models import UserProfile
def check_profile(request):
if request.user.is_authenticated():
try:
UserProfile.objects.get(user=request.user)
return {'valid': 1}
except UserProfile.DoesNotExist:
return {'valid': 0, 'user_id': request.user.id}
re... | [
"adubnyak@gmail.com"
] | adubnyak@gmail.com |
1dc11d54d1dfac5b787fddc7a6e886173250838b | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/contenttypes/test_contenttypes01.py | 616bc445ea0552bde833c1b5083dd3f662857947 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...contenttypes import ContentTypes
class T... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
1381edf36fb363b531e4ef1d84b51910010dc909 | cace862c1d95f6b85a9750a427063a8b0e5ed49c | /binaryapi/ws/chanels/buy_contract_for_multiple_accounts.py | 014f93aa8f29ed48abbf5dc467f1f260ff845547 | [] | no_license | HyeongD/binaryapi | 65486532389210f1ca83f6f2098276ecf984702b | e8daa229c04de712242e8e9b79be3b774b409e35 | refs/heads/master | 2023-08-29T13:24:58.364810 | 2021-10-26T19:00:59 | 2021-10-26T19:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | """Module for Binary buy_contract_for_multiple_accounts websocket channel."""
from binaryapi.ws.chanels.base import Base
from decimal import Decimal
from typing import Any, List, Union, Optional
# https://developers.binary.com/api/#buy_contract_for_multiple_accounts
class BuyContractForMultipleAccounts(Base):
""... | [
"mdn522@gmail.com"
] | mdn522@gmail.com |
407bf5e3d865565a63d71d38351ec11784634a45 | 6745bd6b607bbfb00dcf641980925753ec60f7d8 | /company/migrations/0025_auto_20170507_1103.py | 0800c545ee6393dc10ad6d843f09ee8a4204948f | [] | no_license | happychallenge/chemicals | 4a1822d32354ce85499f42ada47103d3f27e163c | aa2b08c92cefe1650591d965f2e7f4872c445363 | refs/heads/master | 2021-01-20T09:21:55.769758 | 2017-05-07T06:03:54 | 2017-05-07T06:03:54 | 90,245,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,089 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-07 02:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('company', '0024_remove_allprocess_send_msds'),
]
operations = [
migrations.Al... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
98fab1f0de73796ef769a8a4f729188096167ece | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/MybankCreditLoantradePayerBillrepayConsultResponse.py | 384aaa839bacae7ad07341b1ed1c53574be2462c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,716 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.CreditPayBillDetailVO import CreditPayBillDetailVO
class MybankCreditLoantradePayerBillrepayConsultResponse(AlipayResponse):
def __init__(self):
super(My... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
eb19a9e76546f3274aeb55a5941ccfbf0c448ec4 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/time_util.py | fa4aca709d2e13980911d752c895797f68fe0372 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,224 | py | # Copyright 2016 Google Inc. 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 ag... | [
"toork@uw.edu"
] | toork@uw.edu |
643d8479d0d4be592474bfdee79d5f9f22cb89e1 | bb87579e47fc04b299694b8a8fe318f022f54ee8 | /Automate the Boring Stuff/Ch.12 - Web Scraping/attribute.py | c4f59a6a44dfa7c2b6213063120b221b7c1a6447 | [] | no_license | QaisZainon/Learning-Coding | 7bbc45197085dfa8f41ac298d26cf54e99e7b877 | a3991842e79c30f24d7bc0cca77dbd09bc03372f | refs/heads/master | 2022-12-23T05:47:26.512814 | 2020-09-25T08:10:20 | 2020-09-25T08:10:20 | 297,945,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from selenium import webdriver
browser = webdriver.Firefox()
browser.get('https://inventwithpython.com')
try:
elem = browser.find_element_by_class_name('cover-thumb')
print('Found <%s> element with that class name!' %(elem.tag_name))
except:
print('Was not able to find an element with that name.') | [
"noreply@github.com"
] | QaisZainon.noreply@github.com |
6959b4c9ba3b87040a8e31e260f2243d2fc88cba | b5f5c749ad8ba774da04a3dcf44ea2e66aea6cd6 | /background/05geo/coverage.py | a80d605b766bf88a40e1d82d403f040d271128b2 | [] | no_license | yj-git/SearchRescueSys | 2329be5f3caf57f11a2e606da87382344698eff4 | 44347aef4cd5f75f1c9adcea76c21aa97b41e8ae | refs/heads/master | 2022-08-05T12:41:54.967248 | 2020-05-21T04:55:37 | 2020-05-21T04:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from geoserver.support import ResourceInfo
from geoserver.catalog import Catalog
class Coverage(ResourceInfo):
def __init__(self, catalog: Catalog, store_name, work_space):
super().__init__()
self.catalog = catalog
self.store_name = store_name
self.work_space = work_space
s... | [
"evaseemefly@126.com"
] | evaseemefly@126.com |
0bc60f23731424fe5898e28b2074f5662c17e943 | e05c6a78b16f1d39b8e77db3ee5cea83b44ddf8a | /migrations/versions/0305m_add_pinpoint.py | 6dd09943085a1a433ea9ebe35523a519e6c9f0ff | [
"MIT"
] | permissive | cds-snc/notification-api | 7da0928f14608a2c7db1e229e17b9dbfaaf3d0f0 | 99558db51784925942d031511af3cfb03338a28d | refs/heads/main | 2023-08-18T00:08:42.787361 | 2023-08-17T20:58:47 | 2023-08-17T20:58:47 | 194,884,758 | 49 | 12 | MIT | 2023-09-14T18:55:07 | 2019-07-02T14:57:01 | Python | UTF-8 | Python | false | false | 896 | py | """
Revision ID: 0305m_add_pinpoint
Revises: 0305l_smtp_template
Create Date: 2020-04-20 12:00:00
"""
import uuid
from alembic import op
revision = "0305m_add_pinpoint"
down_revision = "0305l_smtp_template"
id = uuid.uuid4()
def upgrade():
op.execute(
f"""
INSERT INTO provider_details (id, di... | [
"noreply@github.com"
] | cds-snc.noreply@github.com |
1bfb37fd8a7fdad73e3394fb67e758cc3068b5b0 | 20927c6b6dbb360bf0fd13d70115bdb27e7196e7 | /0x0F-python-object_relational_mapping/1-filter_states.py | 2896d23cb05252078d33fd4184cfa458f4fcb904 | [] | no_license | PauloMorillo/holbertonschool-higher_level_programming | 27fc1c0a1ae5784bd22d07daaedb602ee618867d | 8a42a60aa4ea52b5cc2fb73e57f38aa6c5196c98 | refs/heads/master | 2021-08-16T17:13:45.568038 | 2020-07-29T01:20:25 | 2020-07-29T01:20:25 | 207,305,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/python3
"""This Module prints all of a database"""
import sys
import MySQLdb
def main():
"""main function"""
db = MySQLdb.connect(host='localhost',
user=sys.argv[1],
passwd=sys.argv[2],
db=sys.argv[3],
... | [
"pauloan@hotmail.com"
] | pauloan@hotmail.com |
cfc1b386f4a20a5d866800567c6b0b276a19ef98 | 469772806152cff25b13a1e73ec5133ba3d0f283 | /src/reversi_zero/agent/api.py | 6ba0bb23675d7c7cd12f8ccfc0178d0c3a3fbb6a | [
"MIT"
] | permissive | awesome-archive/reversi-alpha-zero | 880e92cb02a8b4d21e824baed3584a7eec823bfe | 90ba711f2233660bbf36d8203873b3fc16f7a1e8 | refs/heads/master | 2022-03-30T13:22:21.547259 | 2017-11-22T01:16:59 | 2017-11-22T01:16:59 | 111,628,182 | 0 | 0 | MIT | 2020-01-10T11:11:25 | 2017-11-22T02:47:19 | Python | UTF-8 | Python | false | false | 688 | py | from reversi_zero.config import Config
class ReversiModelAPI:
def __init__(self, config: Config, agent_model):
"""
:param config:
:param reversi_zero.agent.model.ReversiModel agent_model:
"""
self.config = config
self.agent_model = agent_model
def predict(self... | [
"mokemokechicken@gmail.com"
] | mokemokechicken@gmail.com |
7389d460abe517d9e993221e0b2c9acc6154d6ab | 916c49b17d730ae36ce3fe8178146baac53fb15d | /common/ecmp/base.py | 10d355316e17a8b6561646a9b9de047fdebde323 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | absurya4/tf-test | ec96955ed9ddd662112173d2ff14059cd8d49552 | f1faeca6e8a0abbc0efd77455379163d61e3a3d7 | refs/heads/master | 2022-12-18T08:25:20.375604 | 2020-09-21T07:31:53 | 2020-09-24T07:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | from common.base import GenericTestBase
import os
from tcutils.util import get_random_name, get_random_cidr
class ECMPTestBase(GenericTestBase):
@classmethod
def setUpClass(cls):
super(ECMPTestBase, cls).setUpClass()
cls.inputs.set_af(cls.get_af())
try:
# Mgmt VN
... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
7f69dbce010f14ac2debdf2734632872607447c1 | 7f53f509222f7e4b1ca8137bb31cf2edc5f64e80 | /spec.py | 285af57a848c75051fd2652556eb8d7fba9fe315 | [] | no_license | wahid999/Pythonforbegainer | f61c7567c37b3d4103b5550a6975f78c960763f8 | 794fd9471ff95eac52ae42d8548526c09df23bbd | refs/heads/main | 2023-07-11T22:31:31.435440 | 2021-08-16T17:18:35 | 2021-08-16T17:18:35 | 399,344,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import os
os.system('clear')
#************** Strings ****************
#------------->CANCATINATINATION-------->
name = 'Wahid Hussain'
greetings = 'hello, My name is ' + name
print (greetings[24])
| [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
c6db899b17994956a0afb5dd82d2d133537fb664 | df258f9b95493d146ef8d3e9fef8ee367fe66042 | /dffml/db/sql.py | bbbac8bea799aad05894665845c119803c332d57 | [
"LicenseRef-scancode-generic-export-compliance",
"MIT"
] | permissive | emrul/dffml | dd576582de5a95d2cc3c525131d1b1f66dfa84c1 | 0829a5830fef85d24baa80220fa9cf7e56fee236 | refs/heads/master | 2022-04-22T20:37:45.109948 | 2020-04-24T15:08:23 | 2020-04-24T15:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,272 | py | """
Base classes to wrap various SQL based databases in dffml.db abstraction.
"""
from typing import Dict, Any, List, Tuple, Optional
from dffml.db.base import BaseDatabaseContext, Conditions
class SQLDatabaseContext(BaseDatabaseContext):
# BIND_DECLARATION is the string used to bind a param
BIND_DECLARATION... | [
"johnandersenpdx@gmail.com"
] | johnandersenpdx@gmail.com |
f2cc1601e225667554205561c993b3b430da90dd | 1edd52cf197e5ae67b5939a3beb3e70761334e62 | /AWS/AWS_boto3_narendra/20_Collections_stop_all_ec2.py | d019a4a10bd4d593f40e1b1694dac8e0692e7743 | [] | no_license | sandeepmchary/Devops_wordpress_Notes | bdcd85d526780d03c494ecb93e714e7ffe0a4d58 | ffd2092162073e1e7342c6066d023d04e6ca8c1c | refs/heads/master | 2022-06-18T21:33:02.471025 | 2022-06-12T11:14:47 | 2022-06-12T11:14:47 | 154,679,658 | 1 | 4 | null | 2022-05-19T16:59:57 | 2018-10-25T13:51:40 | HTML | UTF-8 | Python | false | false | 378 | py | import boto3
ec2_re=boto3.resource('ec2')
ec2_cli=boto3.client('ec2')
all_ins_id=[]
for each in ec2_re.instances.all():
print(each.id,each.state['Name'])
all_ins_id.append(each.id)
#print(all_ins_id)
print("Stopping all instances...")
ec2_re.instances.stop()
waiter=ec2_cli.get_waiter('instance_stopped')
waiter.wait(I... | [
"awssandeepchary@gmail.com"
] | awssandeepchary@gmail.com |
88a5b2b4fd0da877b9c61c64b8cbb25dec8a8493 | d64289adc0908134bf97cbce2d9c5f305a8042d0 | /groupdocs_conversion_cloud/models/otp_load_options.py | 5a17f2da8e57ddbe68c5919dc2cdfdf15c5f4a30 | [
"MIT"
] | permissive | groupdocs-conversion-cloud/groupdocs-conversion-cloud-python | 07cfdabb6584e4f9835c25ff96a6053ef3a54596 | 496f307bc0b776314fd5f56781fb0e71b0b4985e | refs/heads/master | 2023-08-30T22:12:43.070658 | 2023-08-23T17:08:13 | 2023-08-23T17:08:13 | 179,628,452 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="OtpLoadOptions.py">
# Copyright (c) 2003-2023 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# ... | [
"product.team@groupdocs.com"
] | product.team@groupdocs.com |
9d04ced9a977b0813099e3e048af8c764a92ffc9 | 1d88ed99e2f01b6b0faa7acf762543f41569380c | /top/table/tests/test_returns.py | 7264e71d32ed00d88f79d614faa8c1cfeef75cdb | [] | no_license | loum/top | be0ae6951ed7d5834d14f96403d6cd1dc9d008a4 | 4d9aae6297793822b6de28b65f7639a4b2e6dcfa | refs/heads/master | 2016-09-10T10:38:41.312180 | 2014-06-05T05:44:48 | 2014-06-05T05:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import unittest2
import os
import datetime
import top
class TestReturns(unittest2.TestCase):
@classmethod
def setUpClass(cls):
cls._r = top.Returns()
cls._db = top.DbSession()
cls._db.connect()
db = cls._db
fixture_dir = os.path.join('top', 'tests', 'fixtures')
... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
ba3910d957182f1266449984de846549adfd32bc | bc441bb06b8948288f110af63feda4e798f30225 | /database_delivery_sdk/model/inspection/collector_pb2.py | 11b6c11be52fbd835afa5a03782fb0095af50566 | [
"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 | true | 4,328 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: collector.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
f72712339cc187c4574fc8ad4a91106b89cb5f39 | 0f49a5e1daeb09742f87717e8f4849b87b1a9c44 | /src/dialogs/DialogUmlNodeEdit.py | 5c9ed16d21e86fbde26a233e0482e29a244a94d7 | [] | no_license | arita37/pynsource | 7ddc717972e3c8f8a1225f4d9ba196e03bfee5df | 57ed39ba112d97fc0af09669d6647952f6ae1e7c | refs/heads/master | 2021-02-04T09:03:10.796578 | 2020-02-06T06:31:19 | 2020-02-06T06:31:19 | 243,646,965 | 1 | 0 | null | 2020-02-28T00:42:02 | 2020-02-28T00:42:00 | null | UTF-8 | Python | false | false | 3,837 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Oct 26 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impor... | [
"abulka@gmail.com"
] | abulka@gmail.com |
f8e9da36ddbcc3f59610866194a1676bdff287ad | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/90/usersdata/218/60729/submittedfiles/matriz2.py | 9c1a3e9aea2e3f724466e0e40fb3cef9566de708 | [] | 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 | 1,044 | py | # -*- coding: utf-8 -*-
import numpy as np
def somas (a):
lista=[]
cont=0
for i in range (0,a.shape[0],1):
cont=0
for j in range (0,a.shape[1],1):
cont=cont+a[i,j]
lista.append(cont)
for j in range (0,a.shape[1],1):
cont=0
for i in range (0,a.shape[0],... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bf1a7529e2315658f50cc0c20cf59fc4d0d940fd | ababed0e1a54f4888440edd20cbfdf6beb3cd20d | /backend/menu/api/v1/viewsets.py | 67ee4177ad30850e6ca22a7f0ce52813b2fbd299 | [] | no_license | crowdbotics-apps/asd-18920 | 1766fa6c4334d1c1f8a97f6aa4da8961742bcc2c | 5022fcd5f0b0522ce53438270e2ae65d1b652dab | refs/heads/master | 2022-11-17T15:02:25.688634 | 2020-07-15T16:09:00 | 2020-07-15T16:09:00 | 279,915,037 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from rest_framework import authentication
from menu.models import ItemVariant, Country, Item, Category, Review
from .serializers import (
ItemVariantSerializer,
CountrySerializer,
ItemSerializer,
CategorySerializer,
ReviewSerializer,
)
from rest_framework import viewsets
class CategoryViewSet(view... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
efcd1f6da93da3bf75a7685d2f07a65c5f588702 | 52ab2da7b131643a344ee5344d8f35aebd6e2eed | /WebProject1/myvenv/lib/python3.6/site-packages/sqlalchemy/event/legacy.py | 049df81aafa7b163be69d6561ad9e9e6ff7ef534 | [
"MIT"
] | permissive | ucsb-cs48-w19/5pm-findtheroommate | cd6db6c4cf3ee6f159b04456ba13b1ef684c7546 | d9d01b95c478e7493b5b32c8b56ceed00578b188 | refs/heads/master | 2020-04-16T01:00:16.617610 | 2019-03-19T20:42:38 | 2019-03-19T20:42:38 | 165,158,037 | 2 | 1 | MIT | 2019-03-05T00:46:12 | 2019-01-11T01:28:11 | Python | UTF-8 | Python | false | false | 5,900 | py | # event/legacy.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Routines to handle adaption of legacy call signatures,
generation of deprecation ... | [
"tengyue@umail.ucsb.edu"
] | tengyue@umail.ucsb.edu |
399b9de55761113ccab69d01a9bd68a988a88fe6 | bed40794a78225e070c49a72209d447757ec8343 | /python_crawl/section3-1.py | 3a3113bc3a6b4a52b626ac8857b76dd0fe10852d | [] | no_license | moorekwon/crawling-practice | 458ffe31b3a7a91fad6547ef76f9a428376d542f | c5bc989ced353daed34d53410c261ce4d4561d4c | refs/heads/master | 2022-09-13T06:46:31.034858 | 2020-05-31T06:43:28 | 2020-05-31T06:43:28 | 266,505,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import urllib.request
from urllib.parse import urlparse
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
url = 'http://www.encar.com'
mem = urllib.request.urlopen(url)
# print('type(mem) >> ', type(me... | [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
a868176f862739f842c05c4e3447d5f92ff293ac | b95fa99bb1ba2210b73251614d2613363c37f932 | /deploy/dot-product/scripts/dot-67.py | e5a37f1559951e11ad8cf6b305503d2eb3c83ad0 | [] | no_license | lingxiao/learn-adj-relation | d1a8894fefc776ec0bd414b5f038361ed4b79d16 | dc4285af19e53d7e2d015eb6394f6c601c707da0 | refs/heads/master | 2020-12-30T16:27:51.531268 | 2017-06-07T18:59:48 | 2017-06-07T18:59:48 | 87,714,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import numpy as np
from utils import *
from scripts import *
from app.co... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
b00578cb33932e544783d41cc72fa666201bb10e | 4fd0a43fb3fdbc5ce355b050d0a6506b97bb5d79 | /src/basic/mqtt_client.py | f5bb543c0f8e7a81272e10ad1741abd0064590ae | [] | no_license | Shoumik-Gandre/wn_miniproject | a175e871b0931e6bcb324fbcf81b3dbbd09186e6 | 9a61a27c7eee15486cf688a3d66ceae23f8d5b47 | refs/heads/main | 2023-04-16T13:48:53.383291 | 2021-04-29T13:55:45 | 2021-04-29T13:55:45 | 362,832,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import paho.mqtt.client as mqtt
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + str(rc))
# Subscribing in on_connect() means that if we lose the connection and
# reconnect then subscriptions... | [
"shoumikgandre@gmail.com"
] | shoumikgandre@gmail.com |
4a5429e17840c12de155763259947c16be4142b8 | 7f9dfa2cccf77764940ffcbbf92939e37c138c43 | /crawl_file/file_path/pylab_examples/anscombe.py | 753e4342916a1d85af7b3ce7af20c14c7110e3c9 | [] | no_license | zhangmman/scrapy_spider | f80bd8d213edde0dea083babe610ca7b1bc449a3 | 2bda4aa29f2550c649c939045ce4fcdea2736187 | refs/heads/master | 2020-09-11T13:58:49.930929 | 2019-12-21T08:40:56 | 2019-12-21T08:43:43 | 222,080,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from __future__ import print_function
"""
Edward Tufte uses this example from Anscombe to show 4 datasets of x
and y that have the same mean, standard deviation, and regression
line, but which are qualitatively different.
matplotlib fun for a rainy day
"""
import matplotlib.pyplot as plt
import numpy as np
... | [
"zhangman@ncepu.cn"
] | zhangman@ncepu.cn |
1504d39ef20e08c04e1cdc4746b68ebbb0bcc192 | d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705 | /slbman/venv/Lib/site-packages/aliyun/api/rest/rds/RdsDescribeDBInstanceClassesRequest.py | 33ce5a2e88dcb9457c34ba33df1ea05109b25fc6 | [] | no_license | junlongzhou5566/managePlatform | 66cb5bc5b176147ff0038819924f7efa8df1d556 | 3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216 | refs/heads/master | 2021-03-29T00:58:23.337808 | 2020-03-17T09:50:21 | 2020-03-17T09:50:21 | 247,910,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | '''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class RdsDescribeDBInstanceClassesRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
def getapiname(self):
return 'rds.aliyuncs.com.DescribeDBInstanceClasses.2013-05-28'
| [
"645647713@qq.com@qq.com"
] | 645647713@qq.com@qq.com |
cf5232006921ce80f92f29008e1e66683214afa9 | 4f935960c688bb306a9808b9a0f47480a1a3d33a | /fastai2/callback/cutmix.py | 1f182c8d3701ad765019fd43909d6f91fe436c03 | [
"Apache-2.0"
] | permissive | AccidentalGuru/fastai2 | c3297919f2c2455f8c8a5ee81a5590afe87df34a | e816625945d87c2d9ac6521150f235942912bf74 | refs/heads/master | 2021-05-26T22:59:55.066904 | 2020-04-08T13:18:11 | 2020-04-08T13:18:11 | 254,182,464 | 1 | 0 | Apache-2.0 | 2020-04-08T19:33:43 | 2020-04-08T19:33:42 | null | UTF-8 | Python | false | false | 2,296 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/74_callback.cutmix.ipynb (unless otherwise specified).
__all__ = ['CutMix']
# Cell
from torch.distributions.beta import Beta
from ..vision.all import *
# Cell
class CutMix(Callback):
"Implementation of `https://arxiv.org/abs/1905.04899`"
run_after,run_valid = [... | [
"sylvain.gugger@gmail.com"
] | sylvain.gugger@gmail.com |
f398d3b06ab094a54439b2f4315ad474a76e55f2 | 6f30245f27a9568155f69648faf148c278136029 | /hhapps/cmd/stock_api.py | dd7da5d6c78ea0bde4abd7f69423a01f7dd4884b | [] | no_license | r202-coe-psu/hh-apps | 82495ffec7fb09155afa4e8f571051aad824acb4 | a15453b7f502a2a71ccb89ba4c4ebe95ef3ca86f | refs/heads/master | 2021-05-03T05:48:40.766349 | 2017-08-06T22:45:30 | 2017-08-06T22:45:30 | 120,584,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from hhapps.stock import api
def main():
options = api.get_program_options()
app = api.create_app()
app.run(
debug=options.debug,
host=options.host,
port=int(options.port)
)
| [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
90d4c660d0cd1e00e4e063eff79f31aaaf635e41 | 95ed5173865ea5930ac1f4280e3bce78411ea956 | /examples/plot_wage_education_gender.py | 47305c351dc39a8a18ed0feba01340058cc5e141 | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | FedericoV/stats_in_python_tutorial | c0e99039f8f76e453bf511b99ad906fdf3111509 | 0e7607e36896790eeb3753ecb3b8ee82db206a97 | refs/heads/master | 2021-01-18T00:23:38.240447 | 2015-08-26T13:20:45 | 2015-08-26T13:20:45 | 41,425,683 | 1 | 0 | null | 2015-08-26T12:58:37 | 2015-08-26T12:58:36 | null | UTF-8 | Python | false | false | 2,679 | py | """
Test for an education/gender interaction in wages
==================================================
Wages depend mostly on education. Here we investigate how this dependence
is related to gender: not only does gender create an offset in wages, it
also seems that wages increase more with education for males than
f... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
ab4ddaa525f0af038fd27984ccf21aea86d3a3e9 | 00c1a2bf4f0b9af287f336b8c6f6e52390ce2d6f | /loyihaapp/models.py | 469b15e2afded2764c98c114693a9488e5d9a12f | [] | no_license | bekzod886/Django_loyiha | c038598539e3dd0efe122eceb49d77b3b2145edb | 5c1e0459db3a891ba6bd2a33f51fd575173e8fd8 | refs/heads/main | 2023-07-02T16:39:17.591120 | 2021-08-05T08:16:27 | 2021-08-05T08:16:27 | 391,806,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.db import models
# Create your models here.
class Meva(models.Model):
title = models.CharField(max_length=255)
img_url = models.CharField(max_length=255)
desc = models.CharField(max_length=255)
price = models.FloatField()
| [
"you@example.com"
] | you@example.com |
c4b8dc8085997384c991bd821a50cf250b9e32a6 | f82ca354391c19a753d319b38f8a69369e60f960 | /src/lib/device_detector/parser/client/mobileapp.py | 6ee635612ab5c9fdfe29e806a5fa3a79fa541683 | [
"MIT"
] | permissive | martbhell/wasthereannhlgamelastnight | 8398920ab1b6cf998d8f91ef5598a8e28de57a8d | c40f9f12ed4c066d4f42095e96e9a87a8581d99d | refs/heads/master | 2023-08-10T05:10:46.960500 | 2023-07-18T03:56:22 | 2023-07-18T04:02:33 | 37,021,751 | 5 | 0 | MIT | 2023-08-29T19:16:07 | 2015-06-07T15:38:26 | Python | UTF-8 | Python | false | false | 288 | py | from . import BaseClientParser
class MobileApp(BaseClientParser):
fixture_files = [
'local/client/mobile_apps.yml',
'upstream/client/mobile_apps.yml',
]
def dtype(self):
return self.calculated_dtype or 'mobile app'
__all__ = [
'MobileApp',
]
| [
"martbhell@users.noreply.github.com"
] | martbhell@users.noreply.github.com |
7347fbf197616979bef0fd4e3c6863d7e6916654 | dd6c21308e1cba24658c8ca7a49e2499cd167da6 | /venv/Lib/site-packages/guardian/utils.py | 5ca593620ebeb53f3e24e8634be26a4a05d93173 | [
"MIT"
] | permissive | ansonsry/Freshshop | 3a53db4d6d0bf1d6705498869a13a3aa7db6ab8c | 79ab8beb1aa993f6365182c8d3bb478ee4e028f8 | refs/heads/master | 2021-06-20T18:54:08.009409 | 2019-07-26T02:56:55 | 2019-07-26T03:02:27 | 198,931,513 | 0 | 0 | MIT | 2021-03-19T22:33:14 | 2019-07-26T02:23:49 | Python | UTF-8 | Python | false | false | 7,153 | py | """
django-guardian helper functions.
Functions defined within this module should be considered as django-guardian's
internal functionality. They are **not** guaranteed to be stable - which means
they actual input parameters/output type may change in future releases.
"""
from __future__ import unicode_literals
from dj... | [
"ansonsry@sina.com"
] | ansonsry@sina.com |
f2e6015b515e915c24bf44cb57a88c4e12c0939f | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/scheduler/models/service_bus_brokered_message_properties.py | 336add898c6253ae0f23c0ab299ae3681b024271 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 3,997 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
3c5eb2c6bf9c023422831c5ca31f64b01a36fb0a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/86/usersdata/164/57228/submittedfiles/pico.py | 97909e0698fdec2d38710817dcbb466f593e1da4 | [] | 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 | 609 | py | # -*- coding: utf-8 -*-
def pico(b):
cres=0
decres=0
for i in range (0, len(b), 1):
c=len(b)/2
if (c>=0):
while (b[i]<b[i]+1):
cres=cres+1
if (c<=len(b)):
while (b[i]>b[i]+1):
decres=decres+1
cont=decres+cre... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e643e7e82c014086d290c39d39a507f120ea7360 | c9d02cc6ac33723f8dbd7013ae3210c28691d125 | /instances2dict_with_polygons.py | 8a0f2948b2862672119535a3eaf35bfc13c2eae1 | [] | no_license | nhtlongcs/cityscape_to_polylines | 05c040a998d0bfdf9ff1958f540229a8b69e1c48 | 55f91fc33c50fc5563164fb215c7af7c3f11a278 | refs/heads/master | 2022-04-28T09:52:01.628969 | 2020-05-02T07:17:51 | 2020-05-02T07:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #!/usr/bin/python
#
# Convert instances from png files to a dictionary
# This files is created according to https://github.com/facebookresearch/Detectron/issues/111
from __future__ import print_function, absolute_import, division
import os, sys
sys.path.append( os.path.normpath( os.path.join( os.path.dirname( __file_... | [
"you@example.com"
] | you@example.com |
2691d4e2fcd1060926b734171d61fc077aac74a1 | 2d73ac2c921bb84756478e042ba33ba09c6f8be0 | /sxm_player/workers/status.py | 874b3668f44ed5921ce5b6e4d90da1fffd866df8 | [
"MIT"
] | permissive | fdigeron/sxm-player | 7aa6aba111b1c6bedf6ed8e6c89f7d66feb26c8d | 2ca91fe216d1ad823b1ad7f9cfe43db4a016bd96 | refs/heads/master | 2023-06-23T18:34:47.892363 | 2021-07-30T13:27:04 | 2021-07-30T13:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import httpx
from ..queue import EventMessage, EventTypes
from .base import SXMLoopedWorker
__all__ = ["StatusWorker"]
CHECK_INTERVAL = 30
class StatusWorker(SXMLoopedWorker):
NAME = "status_check"
_ip: str
_port: int
_delay: float = 30.0
_failures: int = 0
def __init__(self, port: int, i... | [
"cbailey@mort.is"
] | cbailey@mort.is |
eea64d13a9b9e501d67e09b3316d74dc54007207 | edd1adb88112045d16d3e6417117d45ceed4a634 | /classical/woodworking-sat11-strips/api.py | 54d9042dbc3b4d84a2cf98e4827effa7980c343b | [] | no_license | AI-Planning/classical-domains | 26de25bf23622f95c877960c1d52f444922d8737 | 4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9 | refs/heads/main | 2023-04-27T07:55:55.832869 | 2023-03-29T01:46:11 | 2023-03-29T01:46:11 | 253,298,999 | 24 | 12 | null | 2023-04-18T01:45:39 | 2020-04-05T18:02:53 | PDDL | UTF-8 | Python | false | false | 2,598 | py | domains = [
{'description': 'Simulates the works in a woodworking workshop where there is some quantity of wood that has to be polished, coloured, etc. using different tools with different costs. Parameters of each problem are the parts to be done and the quantity (in % of necessary) of available wood (boards). The hig... | [
"christian.muise@gmail.com"
] | christian.muise@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.