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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59c3785a4ac2ee9b31690323dc85dd3b30e8673e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/get_20200805213236.py | 40816acd83fa8a37b6e300d4e36406c9b1c906c9 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | def produce(num1,num2):
totalValue = 0
for i in range(num1):
print(i)
totalValue +=num2
print(totalValue)
produce(2,3)
# 4513 = 4 *
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
6a7d2bc23a45d9781a2a50fbd1c51140a331df8f | 8efe56ee34c455a6b1336897f6d457acbc9c10f9 | /examples/tf/trpo_gym_tf_cartpole.py | d68045cd1292b920783ca7aa1a65100b8b7b1e9b | [
"MIT"
] | permissive | neurips2020submission11699/metarl | ab18d11e708bf569d76cb2fab2bcce089badd111 | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | refs/heads/master | 2022-10-15T22:03:09.948673 | 2020-06-11T19:22:55 | 2020-06-11T19:30:58 | 268,410,657 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | #!/usr/bin/env python3
"""An example to train a task with TRPO algorithm."""
import gym
from metarl import wrap_experiment
from metarl.envs import MetaRLEnv
from metarl.experiment import LocalTFRunner
from metarl.experiment.deterministic import set_seed
from metarl.np.baselines import LinearFeatureBaseline
from metarl... | [
"neurips2020submission11699@gmail.com"
] | neurips2020submission11699@gmail.com |
91ae813803ef41b2393de367a4d0b898cf8d03a7 | caaa1c57129a3e2369e4d6eeda46a94247c686d6 | /flight/migrations/0002_auto_20180921_1020.py | 9af863ff7971c398ad3a5436ebedac81b720fbb6 | [] | no_license | Sundarmax/Ariline--Django-REST | 3884c14ab8440f809c1dbac7d91b7349a9e4d3a0 | 131f875f58c94f0c297a2b82c31c4880d7f5de08 | refs/heads/master | 2020-03-31T02:31:57.754379 | 2018-10-06T10:16:03 | 2018-10-06T10:16:03 | 151,828,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 2.1.1 on 2018-09-21 04:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flight', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='flight',
name='no_seats',
... | [
"sundar.info22@gmail.com"
] | sundar.info22@gmail.com |
aa7516b3f811b25c098019f35297cf83e86f947f | ac54aa0127a47fb59211fba9e6cb8431d9d864cd | /apps/post/api.py | 35052cf6869626cc68264ddbd273a9f3f4d61940 | [] | no_license | xiringlama/manutd.org.np | 8919e3c1ad0494f88b819089686a756d67d38598 | f394f16edb96c05e2e864dcec1ec52532cd35ac2 | refs/heads/master | 2021-07-12T00:33:17.197706 | 2017-10-16T14:45:10 | 2017-10-16T14:45:10 | 107,222,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from rest_framework import viewsets, mixins
from apps.key.permissions import DistributedKeyAuthentication
from apps.post.models import Post
from apps.post.serializers import PostSerializer
class PostViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, viewsets.GenericViewSet):
serializer_class = PostSeriali... | [
"roshanshrestha01@gmail.com"
] | roshanshrestha01@gmail.com |
ac82a99b56e519a3667ee7e102affd07d4921e27 | 38ecf426f34b025b70208faf5d7de03d7ce1e7f3 | /Loan.py | 04b28028a80419f800080a9e8ca9e2d6c3e6abb6 | [] | no_license | ic1396/LearnPython | 3ed6805e0cfcc622a8376084715f8c5fe3db8058 | faabfecace5dd2ebf28ad75f35c61a29dee801ee | refs/heads/master | 2021-11-22T23:26:10.085015 | 2021-11-06T06:48:19 | 2021-11-06T06:48:19 | 89,790,705 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | #!/usr/bin/python3
# 《Python语言程序设计》程序清单7-8
# Programed List 7-8
# 示例:类的抽象与封装 利息类
class Loan:
def __init__(self, annualInterestRate = 2.5,
numberOfYears = 1, loanAmount = 1000, borrower = " "):
self.__annualInterestRate = annualInterestRate
self.__numberOfYears = numberOfYears
... | [
"redsirius@foxmail.com"
] | redsirius@foxmail.com |
6a7583878c83c37b2fc3a1416f0088ec77d2d1b2 | 0c70dcec22a090e70b1f20613ea6e0a64fd9a037 | /GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/frame/methods/test_pop.py | 8029640b10a0a2d2d7b0862092fba802273d2e96 | [
"MIT"
] | permissive | payiz-asj/Gis | 82c1096d830878f62c7a0d5dfb6630d4e4744764 | 3d315fed93e2ab850b836ddfd7a67f5618969d10 | refs/heads/main | 2023-06-27T15:25:17.301154 | 2021-08-03T10:02:58 | 2021-08-03T10:02:58 | 392,269,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from pandas import DataFrame, Series
import pandas._testing as tm
class TestDataFramePop:
def test_pop(self, float_frame):
float_frame.columns.name = "baz"
float_frame.pop("A")
assert "A" not in float_frame
float_frame["foo"] = "bar"
float_frame.pop("foo")
... | [
"1778029840@qq.com"
] | 1778029840@qq.com |
aa9a0e1ec0fb65029c338c1783ad70bdc8b72522 | 39c99883c3e55c0a0a7684fc5fd89c767ea93cc8 | /model.py | 1ba435317b63996e67640f13e3a5cb9aac440e01 | [] | no_license | shawntan/billion-word-imputation | 872f478926966aa17e44a1738c58fdb90681a552 | ea581253537ad76e89ec5eaa0cf80d57d61121e4 | refs/heads/master | 2020-04-09T11:14:02.828445 | 2014-11-21T09:32:43 | 2014-11-21T09:32:43 | 22,462,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | # coding=utf-8
import theano
import sys
import theano.tensor as T
import numpy as np
from theano_toolkit import utils as U
from theano_toolkit import updates
import cPickle as pickle
from numpy_hinton import print_arr
from theano.printing import Print
from vocab import read_file
def create_vocab_vector... | [
"shawn@wtf.sg"
] | shawn@wtf.sg |
d9b69a220873901f4475849a5acbf53bdab5a693 | 21b201ebf2ffbbc19fa8d74e5657e12ef597b02d | /research/neural_programmer/data_utils.py | d5bae2d30db51a295f9719d42498a4e5bfc775fa | [] | no_license | alhsnouf/model | fa619691ad9d0afc7ad849a9471e6bb0643a8d47 | 5fe429b115634e642a7469b3f1d4bc0c5cf98782 | refs/heads/master | 2021-04-12T11:16:02.150045 | 2018-03-27T15:19:18 | 2018-03-27T15:19:18 | 126,702,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a53d41aacbe166afd6c9e4a1822c313dd0e1cef93707ab41e75a8afd1ffeb53b
size 27733
| [
"alhanouf987@hotmail.com"
] | alhanouf987@hotmail.com |
b400fba31f2fdf357fddd49b9f1a2872913b8b9d | d4cdc6c9e2580b2011d63f6d62f70ab9e13cd317 | /sld-api-backend/api_v1/endpoints/auth.py | 5c25ca1f22d744b558c204861daeb55ec28aeaec | [
"MIT"
] | permissive | timezombi/Stack-Lifecycle-Deployment | 75cc92bc0267953039f0d66c7c219a8d444817c8 | d84241099fb44762476b4201a2fc195e76975e26 | refs/heads/master | 2023-07-13T11:11:35.001371 | 2021-08-20T13:35:14 | 2021-08-20T13:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from typing import Any
from sqlalchemy.orm import Session
from fastapi import APIRouter, Depends
from fastapi.security import OAuth2PasswordRequestForm
from schemas import schemas
from schemas.schemas import Token
from security import deps
from security.tokens import validate_user
router = APIRouter()
@router.post... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
0a08e11ff1d01c391f047776fe01e6807cafe721 | be0e978e39dd4ab192590e97b2e907b4072c461f | /conf.py | 4ea22b874cef6819e261d30a7a5e5c553f8d29bc | [] | no_license | kbarbary/dessn-analysis | 825007f1bcddf2e7fb92a99ee280cc644fd1ab70 | 2090b417b757447a28b766a6a5a38a7e7ea68c8e | refs/heads/master | 2016-09-05T13:16:07.219179 | 2014-03-04T23:56:41 | 2014-03-04T23:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | import os
pikdir = 'pik'
plotdir = 'plots'
# Make directories
for d in [pikdir, plotdir]:
if not os.path.exists(d): os.mkdir(d)
| [
"kylebarbary@gmail.com"
] | kylebarbary@gmail.com |
7dd3b559cde230f1cd49d4201ecfa533315f92fe | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/evolution/do.py | 403717b769ec36230b647c36b6fe96b538c75f9a | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.app.cabaret.views.application.evolution.base import EvolutionHandler
from platinumegg.app.cabaret.models.Player import PlayerGold, PlayerDeck
from platinumegg.app.cabaret.util.api import BackendApi
from platinumegg.app.... | [
"shangye@mail.com"
] | shangye@mail.com |
f0a2557bcbcb8ad398c5927172e5d6cba1dc2da0 | da199a7ff8bcc7a37efe2ac9036b785bf45c71c0 | /service_mds/lun_inactive.py | 0114f0829c74333e4b42bcfcf171b7d1b4f7836d | [] | no_license | saxisuer/smartmgr-v2 | f8ed495ce7ce940477f27c12980bfd159bc159c3 | 6e3895062d37b6815a0d6de031652048b8f22ad3 | refs/heads/master | 2021-01-15T21:24:56.622142 | 2017-07-24T14:35:17 | 2017-07-24T14:35:17 | 99,865,861 | 0 | 2 | null | 2017-08-10T01:03:19 | 2017-08-10T01:03:19 | null | UTF-8 | Python | false | false | 3,502 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
from pdsframe import *
from service_mds import g
from service_mds import common
import message.pds_pb2 as msg_pds
import message.mds_pb2 as msg_mds
class LunInactiveMachine(BaseMachine):
__metaclass__ = MataMachine
MID = msg_mds.LUN_INACTIVE... | [
"wuweisunshine@163.com"
] | wuweisunshine@163.com |
8ffd0e1b3034be62335188db3ccdd16b0c58540c | 38ac429d63369922e12e19cdda042b08b8123027 | /swagger_client/models/json_sort_field_find_attribute_types_request.py | d563a4b2286f13ff3b7dce9832b2c61c8a9565ad | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
27307bfe340d36b6bb9ee49fcbd2dc75bc39a97f | bd9d75816e6bb174c2b9e443492096339e3f90e3 | /sympy/mpmath/tests/test_rootfinding.py | f6221ada8ef6e46460c9edab405b2b624bc71af7 | [
"BSD-3-Clause"
] | permissive | Rezaian-ma/sympy | ae800f0f1420f2cdbef1e4535e44f5cd47c9d8b0 | 7d8d096215c8f65ba1d4a9c09af78ec0c3844518 | refs/heads/master | 2021-12-03T01:17:38.048732 | 2010-02-14T05:53:55 | 2010-02-14T05:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | from sympy.mpmath import *
from sympy.mpmath.optimization import *
def test_findroot():
# old tests, assuming secant
mp.dps = 15
assert findroot(lambda x: 4*x-3, mpf(5)).ae(0.75)
assert findroot(sin, mpf(3)).ae(pi)
assert findroot(sin, (mpf(3), mpf(3.14))).ae(pi)
assert findroot(lambda x: x*x+1... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
c306066a382072689bc5aec0380668d5f0faeed0 | 3b802edba5b97a4e97290be657395cd7635f5d35 | /neoman/worker.py | 8b960c99356d6fd8f2bc7ce851f4f9e769264c14 | [
"BSD-2-Clause"
] | permissive | moreati/yubikey-neo-manager | a7678fafbf8f88b29482caa843092f7598b6725c | b0fa3cdf5331bf1504e2744790caddff52b551f6 | refs/heads/master | 2021-01-19T06:55:58.099823 | 2015-06-04T11:30:53 | 2015-06-04T11:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,363 | py | # Copyright (c) 2013 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"dain@yubico.com"
] | dain@yubico.com |
771df2d2ac822d8885a18f74c6dc9f8bae1bf489 | ee721fac058d6c0472be24f95e3cc8df37f4198d | /Stack/reverse.py | 4028f27a5effe0e1e23e87a5d35cf04f3f7f0712 | [] | no_license | Horlawhumy-dev/Python_DataStructures | 51af03dcbed86a51009c13657b17584f09d0a40d | c5aad1fe6c6566414c76711a0871abf9529fe04f | refs/heads/master | 2023-06-04T09:32:34.776313 | 2021-07-02T21:43:09 | 2021-07-02T21:43:09 | 377,631,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py |
# this program reverses what string inputs given by user
class Stack():
def __init__(self):
self.items = []
def is_empty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
... | [
"harof.dev@gmail.com"
] | harof.dev@gmail.com |
ed3c30613036feb38c28bf2cee2a563c2faa8cc0 | 8f26514c451e2398d5e3688c184ea74d1dad21b2 | /month_01/day_05/exercise_02.py | 8d6e663126992c62ca4ef5f413334a35d88be2ec | [] | no_license | CircularWorld/Python_exercise | 25e7aebe45b4d2ee4e3e3afded082c56483117de | 96d4d9c5c626f418803f44584c5350b7ce514368 | refs/heads/master | 2022-11-21T07:29:39.054971 | 2020-07-20T10:12:24 | 2020-07-20T10:12:24 | 281,081,559 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | '''
字符串: content = "我是京师监狱狱长金海。"
打印第一个字符、打印最后一个字符、打印中间字符
打印字前三个符、打印后三个字符
命题:金海在字符串content中
命题:京师监狱不在字符串content中
通过切片打印“京师监狱狱长”
通过切片打印“长狱狱监师京”
通过切片打印“我师狱海”
倒序打印字符
'''
content = "我是京师监狱狱长金海。"
# 打印第一个字符、打印最后一个字符、打印中间字符
# 打印字前三个符、打印后三个字符
print(content[0],content[-1],content[len(content)//2])
print(content[:3],content[-3:])... | [
"jiayuhaowork@163.com"
] | jiayuhaowork@163.com |
cc34be56b4526ad16bfdbf503a373b9a3f5a56a3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03637/s505835119.py | 2e2c10f3045b463cc3d59b8aad36d02afaeae057 | [] | 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 | 215 | py | N=int(input())
a=list(map(int,input().split()))
n4,n2=0,0
for i in range(N):
if a[i] % 4 == 0:n4 += 1
elif a[i] % 2 == 0:n2 += 1
if n4 >= N//2:print('Yes')
elif n4*2 + n2 >= N:print('Yes')
else:print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
191126e94cbf396eb4cb7f58ebd051eaa21c55b3 | 082782cfbd0d8ac77c0ec3901a9de1c1e748405a | /sutorbank/settings.py | 7813c4759f3668de0041e98d18074ace7b3d9d84 | [] | no_license | daniel-kanchev/sutorbank | 1c1eb020f86ff58f5a3edc2d1c6971e8d66a390d | 0738ec698f5711a9ceeb59e0a683a853a3bf8979 | refs/heads/main | 2023-03-17T17:55:50.537998 | 2021-03-17T14:47:37 | 2021-03-17T14:47:37 | 348,746,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | BOT_NAME = 'sutorbank'
SPIDER_MODULES = ['sutorbank.spiders']
NEWSPIDER_MODULE = 'sutorbank.spiders'
USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0',
ITEM_PIPELINES = {
'sutorbank.pipelines.DatabasePipeline': 300,
}
FEED_EXPORT_ENCODING = 'utf-8'
ROBOTSTXT_OBEY = True
LO... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
b734da395f91fb51745ae74515623e919ce896ee | 2f2667682bb78578445b9e3aac7cc62cfba83d5a | /googlenet/SavedModel_to_trt.py | 41b4f1216a144aa9b441b032c1fc82fe4ca0799b | [] | no_license | Yorwxue/trt_experence | 9c770c2a1cb7c48c9d7f21c46be0107de91f1c41 | 778a6cef019dd8afdae6b608b3cbacb56480c7b1 | refs/heads/master | 2022-12-21T12:38:13.108402 | 2019-08-01T08:11:10 | 2019-08-01T08:11:10 | 195,760,238 | 0 | 0 | null | 2022-12-08T05:57:26 | 2019-07-08T07:36:12 | Python | UTF-8 | Python | false | false | 4,722 | py | # from SavedModel to trt graph
import os
import time
import numpy as np
import tensorflow as tf
import tensorflow.contrib.tensorrt as trt
from tensorflow.examples.tutorials.mnist import input_data
from googlenet.checkpoint_to_SavedModel import image_web_saved_encode
def directory_create(directory):
if not os.pat... | [
"yorwxue@gmail.com"
] | yorwxue@gmail.com |
05d5bbe7b2195d31cb3a4e49a9314e81afe7450c | f8d9f893a7afa667a9b615742019cd5c52ee2c59 | /core/platform/taskqueue/dev_mode_taskqueue_services_test.py | 77e45c75f94fed4aa4120ec85940c3c7e56c064a | [
"Apache-2.0"
] | permissive | FareesHussain/oppia | 2ac6c48aaea6a70452b79d665995f6ba6560f70d | 2862b7da750ce332c975b64237791f96189d7aa8 | refs/heads/develop | 2023-08-17T19:25:05.551048 | 2021-10-01T10:36:36 | 2021-10-01T10:36:36 | 323,160,532 | 2 | 0 | Apache-2.0 | 2020-12-20T20:38:45 | 2020-12-20T20:38:44 | null | UTF-8 | Python | false | false | 4,935 | py | # coding: utf-8
#
# Copyright 2020 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"noreply@github.com"
] | FareesHussain.noreply@github.com |
d851c1b76ebb72393f7423de98c40690a78c7c5b | e1e3ee617a50c44c7027ebabc3c918797f8daef8 | /sorter.py | 9566fdab8378d1cc2d5fe387c44cc5a9bdb5fec2 | [] | no_license | Kain-Huang/pithy | 179490f6af0d1a77dde015c5570d9d8f75bd3e41 | 6ed323782cad80954f9ab4a6d81726370d7ff53c | refs/heads/master | 2022-01-05T12:12:27.395657 | 2019-05-19T18:25:08 | 2019-05-19T18:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import sys
arg = sys.argv[1]
print arg
from commands import getoutput as go
a = arg.split("BREAKKKKK")
dird = ""
fil = a[-1]+".py"
for i in a[:-1]: dird+=i+"/"
go("mkdir -p code/"+dird)
print dird+fil
print go("cp code/%s.py code/%s/%s" % (arg,dird,fil))
| [
"dan.steingart@gmail.com"
] | dan.steingart@gmail.com |
c9c89d48c222f86dee205223c3208cf1a0857b72 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=42/params.py | 2298340fefd6fd7ac91681022ad274284fb678f8 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.512524',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 42,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
6665b847961f9fbe18e23a6309b0424a0ede5776 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_dynamics365_data_connector.py | 2076d0d3c76949d8502ecd1dc8596fbb938831a6 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,317 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
a6f320488fbfcac32b54d57d57061287558b662e | 89e40bf548403e440c230e06fa6301021ec8b0c7 | /sw_expert_academy/D2/p1946.py | 12221cf2e3b7cf1e668cdf6f634c66ecca732743 | [] | no_license | TaeJuneJoung/Algorithm | b9cf5724501918c7302099b8194d26bd19512bd0 | ecc2934a376c91ecec8bfd15af377d8a2973d71d | refs/heads/master | 2020-06-19T13:50:14.720987 | 2019-08-04T14:35:43 | 2019-08-04T14:35:43 | 196,732,653 | 0 | 0 | null | 2019-08-04T14:35:44 | 2019-07-13T14:46:42 | Python | UTF-8 | Python | false | false | 717 | py | """
[1946.간단한 압축 풀기]
10개가 찍히면 다음줄로 내려가는 처리가 중요한 문제
또한, 테스트케이스가 하나 끝나면 한줄을 내려줘야한다
T : 테스트케이스
N : 받는 갯수
sum_num : 10개씩 띄어주기 위해서 사용
value : string타입의 값
num : value가 나오는 횟수
"""
T = int(input())
for t in range(1, T+1):
print("#{}".format(t))
N = int(input())
sum_num = 0
for i in range(N):
value, nu... | [
"jtj0525@gmail.com"
] | jtj0525@gmail.com |
79ea21858064c500d5f2adf83982fe2f10cbeafd | 04dc3d8883c7b5510610ec3e86e4238606fc1e45 | /tasks/tasks_fetch_currency_exchange.py | 5103de89945a2192d07ba82a923e1b3ed841eb2b | [
"MIT"
] | permissive | xyla-io/almacen | 72294c6d7758d39ca12c22af174145d716769b82 | 7b7f235dc7939777f971f1b5eadd5621e980c15e | refs/heads/main | 2022-12-28T22:10:46.905278 | 2020-10-14T19:42:57 | 2020-10-16T19:50:55 | 304,113,749 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | import models
from . import base
from config import CompanyConfiguration
from typing import List, Dict, Optional
from jones import FixerAPI
from datetime import datetime
class FetchBaseCurrencyExchangeReportTask(base.FetchReportTask):
api: Optional[FixerAPI]
min_currency_dates_to_fetch: Dict[str, datetime]
max_... | [
"leif@leifmeyer.io"
] | leif@leifmeyer.io |
cdad717e47a15a103068cedb950db7175e3f5c00 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /100 python/Q090.py | 57e5bf3e138599fd5fe71f041643aeb9d105c6eb | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 364 | py | # Q090
# Created by JKChang
# 09/05/2017, 15:37
# Tag: remove particular element
# Description: By using list comprehension, please write a program to print the list after removing the value 24 in
# [12,24,35,24,88,120,155].
li = [12, 24, 35, 24, 88, 120, 155]
l = [x for x in li if x != 24]
# l = [x for (... | [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
f26247827774f537f5498e3343140e8ee540b7e4 | 375e834e7a2ff7b085b88cc162fb8215e14cd132 | /Python/largest-triangle-area.py | 69ea932c4fb00f00dab5018641b8bbcd1559e8ed | [
"MIT"
] | permissive | tickpeach/LeetCode-Solutions | 0842086aa1781191fe68639c884986f843194262 | 16c96776781d04672d653cef48f4f7989685cbe9 | refs/heads/master | 2020-04-01T02:46:38.356672 | 2018-10-12T18:15:41 | 2018-10-12T18:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # Time: O(n^3)
# Space: O(1)
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
class Solution(object):
def largestTriangleArea(self, points):
"""
:type points: List[List[int]]
:rtype: float
"""
result = 0
for i in xrange(len(poin... | [
"kamyu104@gmail.com"
] | kamyu104@gmail.com |
2ed90e62775bcf2abcceb6808eb7d46bfad27f24 | 5a9d8c64c6478f3816b63f59f1cdaca73c0848eb | /pythonNet/ex07_Thread/array.py | fbebd4f0134d54c89387bb558a5577494bae457e | [] | no_license | wangredfei/nt_py | f68134977e6d1e05cf17cec727644509f084c462 | fedf03c0d52565f588e9b342d1c51df0b6dc2681 | refs/heads/master | 2020-04-08T07:55:08.302589 | 2018-11-23T09:53:48 | 2018-11-23T09:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from multiprocessing import Process,Array
import time
# # 开辟一个共享内存,存入整数列表
# shm = Array('i', [1,2,3,4,5])
# def fun():
# for s in shm:
# print(s)
# shm[0]=1000
# p = Process(target = fun)
# p.start()
# p.join()
# for i in shm:
# print(i)
shm = Array('c',b'hello')
def fun():
for i in shm:
... | [
"289498360@qq.com"
] | 289498360@qq.com |
3e05f88b40601505afeed262deb49042d529da7a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_277/ch118_2020_03_30_20_02_35_602471.py | 1f099ee2f4af19fc094bf59344f12a9a10646426 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import math
def reflexao_total_interna(n1,n2,o2):
o1=math.sin(o2*math.pi/180)*n2/n1
a=math.sin(o1)
if a > 1:
return True
else:
return False
| [
"you@example.com"
] | you@example.com |
ab320487cab51af6170a88923ce8087b084a8206 | 9c529778ea60e590e448589e35eb4dae941e832a | /evennia-engine/evenv/share/doc/networkx-2.4/examples/drawing/plot_spectral_grid.py | 3f2bc92202d5f7a92efbf193f918e48aa2443540 | [
"MIT",
"BSD-3-Clause"
] | permissive | rajammanabrolu/WorldGeneration | 3d0976ffba8588fcebda8b8593be694e1bc1501d | 5e97df013399e1a401d0a7ec184c4b9eb3100edd | refs/heads/master | 2022-11-25T20:10:52.682064 | 2021-09-08T11:50:23 | 2021-09-08T11:50:23 | 235,484,371 | 69 | 5 | MIT | 2022-11-22T08:50:22 | 2020-01-22T02:32:53 | Python | UTF-8 | Python | false | false | 1,603 | py | """
==================
Spectral Embedding
==================
The spectral layout positions the nodes of the graph based on the
eigenvectors of the graph Laplacian $L = D - A$, where $A$ is the
adjacency matrix and $D$ is the degree matrix of the graph.
By default, the spectral layout will embed the graph in two
dimens... | [
"williambroniec@gmail.com"
] | williambroniec@gmail.com |
efbc42ba62610026e9e989063cfe821d499f6971 | 7c17d6047a8a31a54a42dc213a0a3c26ccb320fd | /djlistener/djlistener/asgi.py | c9bd80b307fc14acff4568b13981b3e2eb69841c | [] | no_license | morlandi/sinewave | 7d8cd55d4b0fb72b30c99144b09ce55da1722c2d | 39e2fe778ca84d045a877f0ef7938ba7a5ef05ce | refs/heads/master | 2023-04-16T11:29:11.748802 | 2021-06-28T14:46:43 | 2021-06-28T14:46:43 | 152,848,099 | 9 | 5 | null | 2023-03-31T14:55:40 | 2018-10-13T07:44:20 | Python | UTF-8 | Python | false | false | 792 | py | """
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
# import os
# import django
# from channels.routing import get_default_application
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djlistener.settings")
# django.setup()
# application = get_default_app... | [
"morlandi@brainstorm.it"
] | morlandi@brainstorm.it |
8782e35c54ec3809fa7022d9699b4f8f0f1a0bb6 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/42300000.py | 25e564709eaf15a934a790a92af651aa2170f74d | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/42300000.py generated: Fri, 27 Mar 2015 15:48:05
#
# Event Type: 42300000
#
# ASCII decay Descriptor: pp -> [W+ -> tau+ nu_tau]cc ...
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/Wtaunu.py" )
from Configurables import Generati... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
f445c13cd68294138922d2b7dfada304cc3fb281 | 43a96eafd9108dd48f91d0b7c70cf4cd99e7eae2 | /audio_zen/utils.py | 0415dcc5518ed493db8332c1c592d75d1b272e7c | [
"MIT"
] | permissive | yaoao2017/FullSubNet | ec5096f9ed958aa6aceacb5cefcd96a1c77be1c9 | 213df1b46d5bc3d61d774a75aebae5b731046bd2 | refs/heads/main | 2023-08-28T01:22:24.022365 | 2021-11-01T11:43:47 | 2021-11-01T11:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,430 | py | import importlib
import os
import time
from copy import deepcopy
from functools import reduce
import torch
def load_checkpoint(checkpoint_path, device):
_, ext = os.path.splitext(os.path.basename(checkpoint_path))
assert ext in (".pth", ".tar"), "Only support ext and tar extensions of l1 checkpoint."
mod... | [
"haoxiangsnr@gmail.com"
] | haoxiangsnr@gmail.com |
7de97cc4e386019c8c8287f8821f5d0eba631a12 | 594fd699d9f8070c867b83b11881ca1f624b417b | /EstruturaDeDecisao/mais_barato.py | e1caf21790f912b0b381f4166b4196d14a2831b6 | [] | no_license | felipmarqs/exerciciospythonbrasil | f140df2c59b933cc0460d5986afc8c6ddd493556 | 6d02e85ae5986d3b20cfd8781174998d871eeb90 | refs/heads/master | 2020-04-04T05:25:23.751175 | 2018-12-12T18:44:38 | 2018-12-12T18:44:38 | 155,745,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | #Faça um programa que pergunte o preço de três produtos e informe qual produto você deve comprar, sabendo que a decisão é sempre pelo mais barato.
p1 = float(input("Qual o preço do primeiro produto ? R$"))
p2 = float(input("Qual o preço do segundo produto ? R$"))
p3 = float(input("Qual o preço do terceiro produto ? ... | [
"noreply@github.com"
] | felipmarqs.noreply@github.com |
fa9b010550b5d313d60bfd25b37849dd9fcabfb8 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/ugc/_admin_get_specific_content.py | 80f1e848449d0efebed0a1dbcc9f1ac5fe2f4371 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,344 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Ugc Service (2.11.3)
# pylint: disable=duplicate-code
# pyli... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
9090cf8f5afc34505f2a27b36145a5667b7bc8c2 | aff3d82217ca3a43d42c215b7fde022017f3b779 | /spec/one_image_spec.py | 218822cbdcf28e9883c86acb41297198d17aea62 | [] | no_license | AndyDeany/turnbasedgame | 96784a6f1fcf7c2c82e10012d81b4e0caf807a6b | 362f973888a549535a854500da443613725ad0f0 | refs/heads/master | 2021-01-19T08:48:28.125410 | 2017-09-09T09:56:51 | 2017-09-09T09:56:51 | 76,188,966 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from spec.spec_helper import *
from lib.one_image import OneImage
with description("OneImage"):
with it("should initialise"):
one_image = OneImage(game, "items/heart")
expect(one_image.image_name).to(equal("items/heart"))
expect(one_image.image).to(be(None))
with it("should load its i... | [
"oneandydean@hotmail.com"
] | oneandydean@hotmail.com |
4195bf38a598c838adeceb94937fad2949c57c3a | f373eaeba3f42d2e883a0338dbc7bf2eab8cdf88 | /pycalq/tests/test_pycalq.py | 2f8a9540b6d69608385cc68cae0e6db8d1a3aaea | [
"MIT"
] | permissive | FriedrichK/pyCalq | 6f41d561f4394c7c4d57df08a715b560e41812c9 | b20c1c5694d34dbeb7439986189cae3f698bb910 | refs/heads/master | 2021-01-23T03:44:24.972747 | 2014-08-20T00:19:51 | 2014-08-20T00:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import json
import unittest
from mock import Mock, patch
from hamcrest import *
from pycalq import CALQ_API_ENDPOINT_TRACKING, CALQ_API_ENDPOINT_PROFILE, CALQ_API_ENDPOINT_TRANSFER
from pycalq.tools import create_timestamp_string
from pycalq.validation import Acti... | [
"friedrich@cartogami.com"
] | friedrich@cartogami.com |
67b9b1f7bedfa92e7a3381dc098bc78b70b3407c | 8ab7ffd8b84f242982d54467d1b72ce629eab6a3 | /intents/qtask_exec.py | f5d2db7226ae706bb31fea2296e79136d2827005 | [] | no_license | piaoyangguo/serviceunit | 358de1f1d2b9401a3829529247229bba3a776efc | b2bd20dcc91ef7e560b07ae3d791b3c988f9ae55 | refs/heads/master | 2022-12-10T01:31:11.323159 | 2018-07-15T11:46:32 | 2018-07-15T11:46:32 | 141,023,073 | 0 | 0 | null | 2022-12-08T02:16:47 | 2018-07-15T11:47:05 | Python | UTF-8 | Python | false | false | 808 | py | from intents.base import QueryTask
import teamin
class IntentQtaskExec(QueryTask):
NAME = 'QTASK_EXEC'
def __init__(self, request, intent):
self.request = request
self.intent = intent
def Go(self):
self.initSlots()
query = self.request.Message()
executor = teamin.N... | [
"173077850@qq.com"
] | 173077850@qq.com |
948abad1c62af6a4a8212819b33c31117eb6da0c | ac2b3f97b4f2423a3724fbf9af69e362183f7f3a | /crimtech_final_project/crimsononline/content/templatetags/top_articles.py | 1bfa713ef2e1825332c6649b34a6a633e3c17125 | [] | no_license | cindyz8735/crimtechcomp | e4109855dd9a87fc11dd29fdf6bb81400c9ce97b | a9045ea79c73c7b864a391039799c2f22234fed3 | refs/heads/master | 2021-01-24T10:06:03.386553 | 2018-04-14T04:24:57 | 2018-04-14T04:24:57 | 123,037,281 | 0 | 0 | null | 2018-02-26T22:08:57 | 2018-02-26T22:08:56 | null | UTF-8 | Python | false | false | 1,358 | py | from django import template
from crimsononline.content.models import MostReadArticles
register = template.Library()
def most_read(context, specifier):
try:
context['mostreadarticles'] = (MostReadArticles.objects
.filter(key=specifier)
... | [
"cindyz8735@gmail.com"
] | cindyz8735@gmail.com |
74ffa57caa17a79f79a4f556743b3885effb2976 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /5SJdiGXZwRiFK5vEJ_5.py | 6b7d5006ba72e571e4e1d9396e974c2c30d63ed2 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py |
def reverse_capitalize(txt):
txt = txt[::-1]
new_txt = ''
for char in txt:
char = char.upper()
new_txt += char
return new_txt
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0f89aabb6afcac086be266a87470dd503016df7c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1480487_0/Python/alb4tor/GCJ.py | d451fb47ed78eefe43680fc14d2c7e07ec64c891 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | '''
Created on 18 mars 2012
@author: gnugnu
'''
import sys
class InputFile(object):
'''
classdocs
'''
def __init__(self, filename=""):
'''
Constructor
'''
if filename == "":
filename = sys.argv[1]
self.full_content = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a77f8e23b15fcb2a4caf310890f1a2d3ad7a7714 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/python/estimator/inputs/numpy_io.py | f3fc47e290a7b335b0bdba64fe0da0d41970f3e1 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:06d1937b0e2e65d868e3f6fb34a214b26552db5c1a5dabce73a56b55aa075f63
size 5108
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
e13aefe727018e905ec98a260eb06accff2fcd2d | 751b094918ae9200afe7824d58804549082caa95 | /src/python/WMCore/JobSplitting/Generators/BasicNaming.py | e0db794314212fbb6fd9f0ed93e09f522ce15972 | [] | no_license | cinquo/WMCore | 7ebd13269f42eb97f416f8f2bdaca05fa93c6afc | 122f9332f2e944154dd0df68b6b3f2875427b032 | refs/heads/master | 2021-01-09T06:28:58.947626 | 2013-06-05T08:31:53 | 2013-06-05T08:31:53 | 2,965,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #!/usr/bin/env python
"""
_BasicNaming_
Default name generator using a vaguely sensible convention.
Uses GUIDs to avoid having to keep state
"""
from WMCore.Services.UUID import makeUUID
from WMCore.JobSplitting.Generators.GeneratorInterface import GeneratorInterface
class BasicNaming(GeneratorInterface):
"""
... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
3ee33ba669c0be974c54414bc32bb4692ee19419 | a4fcaa28f288ff495ac09c3f8070f019f4d3ba80 | /08-real_python_class/2017_02_07-Lesson_2/class_projects/flask-hello-world/app.py | 677ab29cfff2fc13b95ed5933c362409ba9a180e | [] | no_license | tomwhartung/always_learning_python | db44b0745f27f482e6482faa821f89dc7809dda8 | ab27c164a724754e3e25518bf372bd4437995d64 | refs/heads/master | 2020-12-07T15:57:04.184391 | 2017-05-18T19:35:31 | 2017-05-18T19:35:31 | 67,449,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | ##
# Class project
#
from flask import Flask
app = Flask(__name__)
if __name__ == '___main__':
app.run(debug=True)
@app.route('/')
def index():
return 'Index Page'
#
# Variable Rules:
# ---------------
#
# Greet the user by name
#
@app.route('/name/<username>')
def greet_user(username):
return 'Hello %s!'... | [
"tomwhartung@gmail.com"
] | tomwhartung@gmail.com |
4795fdd80d0a83f8095f553a54e9c04a2712f2f0 | 42064191a5ac586ed088b293165b51abf16b1ee4 | /Intro Machine Learning/Lesson 9/Min_Max_Rescale.py | 752e6692ff0556a1d34473a31fb6f4068011bca4 | [] | no_license | ObinnaObeleagu/Udacity | 637cd458824a835febacebd72ebef77b30ca7f94 | 761ba413934f66cbd9429fd9882f59f047eb065b | refs/heads/master | 2023-03-15T23:27:23.022463 | 2019-01-03T04:05:03 | 2019-01-03T04:05:03 | 497,375,575 | 1 | 0 | null | 2022-05-28T16:46:12 | 2022-05-28T16:46:12 | null | UTF-8 | Python | false | false | 618 | py | """ quiz materials for feature scaling clustering """
### FYI, the most straightforward implementation might
### throw a divide-by-zero error, if the min and max
### values are the same
### but think about this for a second--that means that every
### data point has the same value for that feature!
### why would you... | [
"ryanzjlib@gmail.com"
] | ryanzjlib@gmail.com |
c75309b7bfbaa2e7f70f920f0c0c9a1fac74fe6b | 1bc7456240639a4fac54c411fbcb562cdbcc420c | /5483. Make The String Great.py | 7728ab54b08891d7f80b0856bb4def9591fe4547 | [] | no_license | Manash-git/CP-LeetCode-Solve | bdbb9f13946faee5da24e191a3d593b99da61ed2 | 45052c7613345c76f8a12bac780ffb899062dea9 | refs/heads/master | 2022-11-29T13:16:03.474242 | 2020-08-11T19:06:07 | 2020-08-11T19:06:07 | 275,853,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | def makeGood(s):
bucket=[s[0]]
for i in s[1:]:
if bucket and i.lower()==bucket[-1] and i!=bucket[-1]:
bucket.pop()
elif bucket and i.upper()==bucket[-1]and i!=bucket [-1]:
bucket.pop()
else:
bucket.append(i)
print(bucket)
# print("... | [
"emailatmanash@gmail.com"
] | emailatmanash@gmail.com |
b18a75629c957d414f6969ff82875ae136371895 | 27ff7fec0ae3f29f58089a2acab0aa3bc4e6e1f7 | /Python_script/51zxw/unittest/testCase_combine.py | 377d5e839107ecaf2be9a6fe29db01308a7086b3 | [] | no_license | zhangsong1417/xx | 01435d6057364991b649c1acc00b36ab13debe5a | c40cfdede194daf3bdf91b36c1936150577128b9 | refs/heads/master | 2020-04-06T14:06:23.011363 | 2019-07-09T02:38:02 | 2019-07-09T02:38:02 | 157,528,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from calculator import *
import unittest
class Test_StartEnd(unittest.TestCase):
def setUp(self):
print("test start")
def tearDown(self):
print("test end")
class Testadd(Test_StartEnd):
def test_add(self):
j=Math(5,5)
self.assertEqual(j.add(),10)
class Testsub(Test_Sta... | [
"44634576+shuiling21@users.noreply.github.com"
] | 44634576+shuiling21@users.noreply.github.com |
4ee02bc666d3115bc00a27981934c752402097f7 | d78dfc5089717fc242bbd7097f507d811abb4260 | /USA/script.module.coveapi/lib/coveapi/__init__.py | 6190c730b35fd85b4204fbf8e5d11e8982f2c3a3 | [] | no_license | tustxk/AddOnRepo | 995b980a9ec737e2c25bed423fc83f710c697e40 | 6b86a06cb37e6e10b4119584dd7311ebc2318e54 | refs/heads/master | 2022-10-08T21:34:34.632346 | 2016-10-28T09:48:01 | 2016-10-28T09:48:01 | 70,684,775 | 1 | 1 | null | 2022-10-01T16:27:13 | 2016-10-12T09:31:16 | Python | UTF-8 | Python | false | false | 956 | py | """Package: `coveapi`
A Python client for the PBS COVE API service.
"""
# client version
__version__ = '0.2dev'
# coveapi constants
COVEAPI_VERSION = 'v1'
COVEAPI_HOST = 'http://api.pbs.org'
COVEAPI_ENDPOINT = '/cove/%s/' % COVEAPI_VERSION
COVEAPI_ENDPOINT_CATEGORIES = '%scategories/' % COVEAPI_ENDPOINT
COVEAPI_ENDPO... | [
"ke.xiao@netxeon.com"
] | ke.xiao@netxeon.com |
241db9e295f1a41795f43fba433f42583b271f89 | 52d6e9fb7176bf819ae8460d0fd03368614ce075 | /datasource/PooledDataSource.py | 9f0bb94bdadf9e96e5bc94dc8d47f6f27f780427 | [
"BSD-2-Clause"
] | permissive | mattduan/proof | 076f23f20e28e6d59f091af11eb84cdd3e9f224d | 52241b68e7170c9c6fd245192b7be35be1cdc33f | refs/heads/master | 2021-01-13T01:44:22.937600 | 2013-03-17T16:19:32 | 2013-03-17T16:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | """
A PooledDataSource object is a factory for PooledConnection objects.
"""
__version__='$Revision: 3194 $'[11:-2]
__author__ = "Duan Guoqiang (mattgduan@gmail.com)"
import logging
import util.logger.Logger as Logger
import proof.ProofException as ProofException
class PooledDataSource:
__is__ = 'interface'
... | [
"guoqiangduan@gmail.com"
] | guoqiangduan@gmail.com |
1f5e57c17346b3f327473b6fcffe2c8ed909d888 | 5374bd9a9fc8cc07f6966c490a137003ddc64d9b | /VEnCode/scripts/dendrogram_encode.py | 44b445694b2ba41e172163ba360705fc56d94d73 | [
"BSD-3-Clause"
] | permissive | AndreMacedo88/VEnCode | 31f9f545019f62e0af716395a11961515c229394 | 667c777c6ef12c43e993660e5c695d4d6d43385e | refs/heads/master | 2021-01-06T03:55:44.385885 | 2020-11-24T18:05:38 | 2020-11-24T18:05:38 | 90,248,803 | 0 | 1 | NOASSERTION | 2020-02-04T22:29:39 | 2017-05-04T10:02:48 | Python | UTF-8 | Python | false | false | 1,974 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
dendrogram_encode.py: file used to generate hierarchical clustering and subsequent dendrograms from ENCODE DNase-seq
data
"""
import os
import pandas as pd
from scipy.cluster import hierarchy
import matplotlib.pyplot as plt
from VEnCode import common_variables as cv... | [
"andre.lopes.macedo@gmail.com"
] | andre.lopes.macedo@gmail.com |
39959cff761869bff2825119c1eb9906bd45241b | 2f882f68806faf88e549a941e4d13833d9aa95df | /杨辉三角.py | b3f9f09a01baaa435f4f241a8ce69fa574e91c69 | [] | no_license | SmallPotY/leetcode_Python | 5ac8420cdcb677a679a32fd6f5fce82411d813cd | 0a2483195004c4d18237920b2f38b942e26b181b | refs/heads/master | 2020-03-20T13:24:00.612054 | 2019-07-18T09:14:45 | 2019-07-18T09:14:45 | 137,454,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
给定一个非负整数 numRows,生成杨辉三角的前 numRows 行。
在杨辉三角中,每个数是它左上方和右上方的数的和。
示例:
输入: 5
输出:
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
"""
class Solution:
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
"""
yhsj = [[1],[1,1]]
if n... | [
"1041132457@qq.com"
] | 1041132457@qq.com |
66111fe1a191a09bd2078e9d605863dc0d1f4e35 | 391ea6a7c730b9db50f14b359b0a8d123c590924 | /mayan/apps/duplicates/apps.py | 03f07a880d442904d5665d81caea9af292aef5f4 | [
"Apache-2.0"
] | permissive | Dave360-crypto/Mayan-EDMS-1 | 2e1891cea640ae2ac002d2c19eb22b88b271db29 | 7d79e748e8f6e47381a298ad8d219c15b09dd4d3 | refs/heads/master | 2023-08-19T06:48:48.566169 | 2021-10-11T06:22:24 | 2021-10-11T06:23:41 | 418,950,673 | 0 | 0 | NOASSERTION | 2021-10-19T14:07:24 | 2021-10-19T14:04:52 | null | UTF-8 | Python | false | false | 2,997 | py | from django.apps import apps
from django.db.models.signals import post_delete
from django.utils.translation import ugettext_lazy as _
from mayan.apps.common.apps import MayanAppConfig
from mayan.apps.common.menus import (
menu_list_facet, menu_multi_item, menu_tools
)
from mayan.apps.documents.menus import menu_do... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
849c8859c0d6340d8cbc066bbe9b0df238848e8f | f210ccc90f9e091f10639f071c4e460fa4dafec1 | /src/helper/cluster.py | 72afcd677e91161ea455a8ea6061d9c3c1d91a17 | [
"MIT"
] | permissive | qingchenkanlu/FlowPose6D | e21974bbbc73db8934e387943a002d009ac0b16f | 2297ab5fa0afd0c247d59c2f1c7f899f078e2893 | refs/heads/master | 2023-01-20T13:43:59.737784 | 2020-11-22T10:52:23 | 2020-11-22T10:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | import os
import time
import logging
def move_dataset_to_ssd(env, exp):
try:
# Update the env for the model when copying dataset to ssd
if env.get('leonhard', {}).get('copy', False):
files = ['data', 'data_syn', 'models', 'viewpoints_renderings']
p_ls = os.popen('echo $TMP... | [
"frey.breitenbrunn@gmx.de"
] | frey.breitenbrunn@gmx.de |
883cdc5c29b87723f98b7e4e6b693ecfc75275de | 92cd0601656e4cde04e56a896ca063926185041c | /shop/accounts/apps.py | ac57fd73bea3da34aa8754777ebac2e76e4e1165 | [] | no_license | Anych/shop | 74599fd8f2405128c308f047ac9da13215a38912 | e5190c1cb7d2b786b90cce9c88734427ea371fb8 | refs/heads/master | 2023-05-01T07:08:24.881512 | 2021-05-24T07:48:50 | 2021-05-24T07:48:50 | 355,591,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.apps import AppConfig
class AccountsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'accounts'
verbose_name = 'Аккаунты'
| [
"anuar123@mail.ru"
] | anuar123@mail.ru |
05f10d2ee781ed9c5a53261db7d80fb1b86f2c53 | cf7025ff7d02604ea146775a35894733d8338593 | /core/settings.py | 0491d6fc6eddf8fe942be18ae5190fac60296a53 | [] | no_license | boxabhi/CodeKeen-starter | 7af6e13ec780df8a571e52d6cf10e16ac4717c3d | ac8be93494cf7013366ba7ad8cbd172d47feb466 | refs/heads/main | 2023-06-18T14:56:30.771286 | 2021-07-25T15:45:05 | 2021-07-25T15:45:05 | 382,294,773 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"abhijeetg40@gmail.com"
] | abhijeetg40@gmail.com |
fa8957f1abd9be526285045d13f60e79976ae059 | b3b9066196700269494b2a9350377bfd1aa8170e | /starlight_project/settings.py | 5c7f1d8b99ce32ac6fa49ec3582d13239c206856 | [] | no_license | MagiCircles/RevueStarlight | f33000e06bc6ce6db506bd7460c47ffd2a3716c4 | 5ce8a023e2b618143fd9dcc3e78758c2623001d7 | refs/heads/master | 2022-08-13T20:12:25.201028 | 2022-07-10T15:14:44 | 2022-07-10T15:14:44 | 185,398,158 | 5 | 2 | null | 2022-07-30T18:11:03 | 2019-05-07T12:32:48 | Python | UTF-8 | Python | false | false | 4,887 | py | # -*- coding: utf-8 -*-
"""
Django settings for starlight_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like th... | [
"db0company@gmail.com"
] | db0company@gmail.com |
3f0324d2aa68a7bb29d539c03f1c6a4cd9453169 | acec8615e8cd8e81d58703024816fdedf43ecc0e | /replica/contrib/blip/dashboard/views.py | f7b9cb6dd51299c49738ab6d641aeab39392c0d4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | underlost/Replica | dec884522833e89bcec46d16b2349d0881a15cc9 | 2f092d3fc215b950fa6e409980a3f3e7c3633f7c | refs/heads/master | 2021-03-12T23:39:19.196279 | 2015-06-04T07:53:15 | 2015-06-04T07:53:15 | 3,567,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | from __future__ import absolute_import
import logging
from django.shortcuts import render_to_response, render, get_object_or_404, redirect
from django.template import RequestContext
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirec... | [
"underlost@gmail.com"
] | underlost@gmail.com |
8db0433ff501a68fe74000395c3a8da33fe9fb5b | 7b60d9a48b1b18bbc4a8d8f2cf523654691b5a5e | /data_tracker_csv_reader.py | 2c395f5f7d1c0b052242d527def113b0dab74806 | [] | no_license | bolducp/Data-Tracker-application-for-Bandwidth- | c0fe927db8b0897471ec8b2d453bc17622dafc91 | 9f8f567ab579691bd89f7f390057718866b1f665 | refs/heads/master | 2021-01-10T21:18:16.299626 | 2015-09-30T17:16:12 | 2015-09-30T17:16:12 | 42,602,537 | 0 | 1 | null | 2015-09-16T21:58:18 | 2015-09-16T17:26:04 | Python | UTF-8 | Python | false | false | 1,933 | py | """A data tracker application for use with csv files from the Bandwidth+ application for OS X """
import csv
def open_and_read_files():
try:
filename = raw_input("Insert file name")
with open(filename, 'rb') as csvfile:
filelines = csv.reader(csvfile)
file_text = []
... | [
"paigebolduc@gmail.com"
] | paigebolduc@gmail.com |
0df4b72bdd9e02254610431c265ceca056544974 | 53eee7eb899cb518983008532257037fb89def13 | /672.bulb-switcher-ii.py | b93a772c448caa1bbccb098c38e26e109fe8d695 | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | #
# @lc app=leetcode id=672 lang=python3
#
# [672] Bulb Switcher II
#
# https://leetcode.com/problems/bulb-switcher-ii/description/
#
# algorithms
# Medium (50.19%)
# Likes: 97
# Dislikes: 729
# Total Accepted: 10.1K
# Total Submissions: 20K
# Testcase Example: '1\n1'
#
# There is a room with n lights which are ... | [
"chenxu@Chens-iMac.local"
] | chenxu@Chens-iMac.local |
bf3e45acc7c35391ab1e9ad4135455e2c28f8879 | f2da63de512183804290bfcabfa60eaca3649e05 | /exercises/programming/stephenson-python-workbook/06-dictionary/src/Ex128.py | 6dbc2397d830f745f696703b57e152d159b898a3 | [] | no_license | paradisepilot/statistics | a94bb57ebe453d49c06815c523e8f633423cb68e | 50daf644baca1f40253edf91083ed42d4c5f9342 | refs/heads/master | 2022-07-25T16:19:07.751886 | 2022-06-26T21:18:38 | 2022-06-26T21:18:38 | 5,012,656 | 0 | 2 | null | 2019-04-22T06:52:55 | 2012-07-13T01:11:42 | HTML | UTF-8 | Python | false | false | 937 | py |
'''
dummy comment
'''
def reverseLookup( dictionary, value ):
output = []
for k in dictionary.keys():
if value == dictionary[k]:
output.append(k)
return( output )
def ex128():
print("\n### ~~~~~ Exercise 128 ~~~~~~~~");
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ###
my_... | [
"paradisepilot@gmail.com"
] | paradisepilot@gmail.com |
3c8bc6c16a353390defd28896d58a6fbe79ad210 | 4523d8dc3b195b0fd5532d9144d53a2e211e54e8 | /flock.opensciencegrid.org/tests/test_topology_match_policy.py | b57497b055939cb086e93878491236f9e610cc81 | [] | no_license | opensciencegrid/osg-flock | bbb3dc21fe5cc1e35d73023001c5f905519cdd75 | 1ea50bdd492e4dc67f9da5acf9e30ea1ed39b0fc | refs/heads/master | 2023-08-17T16:22:46.237419 | 2023-08-15T17:54:16 | 2023-08-15T17:54:16 | 29,153,534 | 9 | 19 | null | 2023-09-08T18:23:51 | 2015-01-12T19:47:03 | Shell | UTF-8 | Python | false | false | 2,228 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import os
import sys
import unittest
my_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(my_dir))
import topology_match_policy
from topology_match_policy import _check_allocation as check_allocation
topology_match_polic... | [
"matyas@cs.wisc.edu"
] | matyas@cs.wisc.edu |
0524d8c5e07a991927d8302b96a909d5e71b374b | 1cd503e72df737dc22439b8c1f3d2faac624bc8f | /setup.py | 3abb6dfffb60392ff28598503d8632b1cce479e4 | [
"Apache-2.0"
] | permissive | calina-c/ocean.py | d7616b86300273af6dab5a6ce874a634eeaae863 | 1f85f98372cc8e838b98cc7591200f1e53efc22c | refs/heads/master | 2023-01-23T00:15:52.992170 | 2020-12-06T11:01:15 | 2020-12-06T11:01:15 | 319,011,007 | 0 | 0 | Apache-2.0 | 2020-12-06T10:56:11 | 2020-12-06T10:56:11 | null | UTF-8 | Python | false | false | 2,466 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
import os
from os.path import join
from setuptools import setup
with open('README.md') as readme_file:
readme = readme_file.read()
# Installed by pip install... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
45ddf27d2f381cb39aa50e00f0ea4e8a88aa7706 | 11a246743073e9d2cb550f9144f59b95afebf195 | /kattis/integerlists.py | 63908216bbd58fcea15812ec9a7b565cabca411c | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 667 | py | def main():
s = input()
n = int(input())
a = eval(input())
rev = False
p1 = 0
p2 = n - 1
error = False
for c in s:
if c == 'R':
rev = not rev
else:
if not rev:
p1 += 1
else:
p2 -= 1
if p1 > p... | [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
e15c4a5f4a1e97adaefdb787a7a17e7c61eb949d | be791583545a1f66a7650085d920171d0df040da | /nni/algorithms/compression/pytorch/pruning/dependency_aware_pruner.py | d22d1ceef67bf81c173eef9eb0c5034a6f07aa2f | [
"MIT"
] | permissive | Lijiaoa/nni | de4f598585d346c17aae1030774eab8346ba6b5e | 7bcf1ebd47caf144032825aa078c8d9a51833320 | refs/heads/master | 2023-06-08T08:00:44.947829 | 2022-09-14T08:37:09 | 2022-09-14T08:37:09 | 242,638,482 | 1 | 0 | MIT | 2020-07-16T08:24:42 | 2020-02-24T03:30:45 | Python | UTF-8 | Python | false | false | 7,100 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
from schema import And, Optional
from nni.common.graph_utils import TorchModuleGraph
from nni.compression.pytorch.utils.shape_dependency import ChannelDependency, GroupDependency
from nni.compression.pytorch.utils.config_validation... | [
"noreply@github.com"
] | Lijiaoa.noreply@github.com |
9dcdc707217fb0b4c48f6a80250302b4ea7d484f | ee60826e497510c604284de36b118f35f8a93f2f | /spiders/mot/all/shandong.py | 88449fe72b94d192867745241e5d09745cabe69a | [
"Apache-2.0"
] | permissive | kis307887597/policy_crawl | 1c186d6502754e37e44ddb78ebf8e2702b1592be | e5f7612163c00049f2e6859e81babb3e0f30aca4 | refs/heads/master | 2022-04-11T19:42:17.041897 | 2020-04-03T08:36:41 | 2020-04-03T08:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import re
import time
from pyquery import PyQuery as pq
from policy_crawl.common.fetch import get,post
from policy_crawl.common.save import save
from policy_crawl.common.logger import alllog,errorlog
def parse_detail(html,url):
alllog.logger.info("山东省交通厅: %s"%url)
doc=pq(html)
data={}
data["title"]=d... | [
"824007714@qq.com"
] | 824007714@qq.com |
563655e66fc80572ed033f5bd7c7941215234bd4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2970/60591/248073.py | 9f388c36f1fa5bba317f8e2fc63c5020c261bb80 | [] | 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 | 723 | py | import re
def isValid(pattern,string):
matcher = re.match(pattern,string)
if(re.match(pattern,string)!=None):
if(matcher.start() == 0 and matcher.end() == len(string)):
print("Yes")
else:
print("No")
else:
print("No")
while(True):
try:
pattern = i... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f2ba417585581514c9c544fc073f9064d5f811e2 | 2318f01356c8fc3493991ff987c21ee6962f6309 | /examples/lightgbm_examples/regression.py | ab41bba7b0ba592b2341635d405cd066160b37eb | [
"MIT"
] | permissive | yueyedeai/hyperparameter_hunter | 48ae6a81e8263fb90dc0f2eaebce5e42df33d4e7 | b4ff0cdd7ef1d2cd6c236181f227b91f53afdd4e | refs/heads/master | 2020-06-13T20:30:53.933894 | 2019-06-20T01:58:39 | 2019-06-20T02:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | from hyperparameter_hunter import Environment, CVExperiment
from hyperparameter_hunter import ExtraTreesOptPro, Real, Integer, Categorical
import pandas as pd
from sklearn.datasets import load_boston
from sklearn.metrics import r2_score
from sklearn.model_selection import RepeatedKFold
from lightgbm import LGBMRegresso... | [
"hunter@mcgushion.com"
] | hunter@mcgushion.com |
f0e951e0b14af05fa62074808dccbe2f7bf57a1e | 98d51363541de74c8c5a17d016b6c7453724d172 | /Homework/WangJuan/1st/multiple_table.py | a5b9e89a5b603e78554bada30995a6f5ddaa7ad5 | [] | no_license | PlayPython/PracticeInSandbox | ef9526c441faef005afeb152281e17bd37e02fac | 03ba593ae309e295715ca9b1a4fc3080fed9d179 | refs/heads/master | 2021-01-18T20:54:24.920098 | 2016-11-12T06:55:57 | 2016-11-12T06:55:57 | 68,983,244 | 2 | 0 | null | 2016-10-10T09:16:48 | 2016-09-23T03:00:29 | Python | UTF-8 | Python | false | false | 590 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Multiple_Table(object):
def multiple_table(self, number1):
for i in range(1, number1):
for j in range(1, i + 1):
a = i * j
# 输出和预期不符,如何解决?
print "{0} x {1} = {2}".format(j, i, j * i),
... | [
"516495459@qq.com"
] | 516495459@qq.com |
a3f8df4248a4bde54ebe07c5e01a72453d128c34 | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m4/socket_correlation/Process_Test/deamon_process.py | 2214de96e6a2669408d0723e335fe393dae27015 | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import time
from multiprocessing import Process
def task(name):
print('%s is running'%name)
time.sleep(2)
print('%s is done'%name)
if __name__ == '__main__':
p = Process(target = task,args = ('子进程1',))
p.daemon = True
p.start()
print('主') | [
"music51555@163.com"
] | music51555@163.com |
385a541cc423a1f7290c27936dc224915a3efbcc | 2fa016eeb6d4d4cc61fb0d43aa9f0fd1ad4ef2e3 | /python/pytorch_test/DQN_test.py | c69023ac6c2f6593b04b58d12aa3a88d29507afa | [] | no_license | juechen-zzz/learngit | 521e0d2c13d97248f6f8b1f2096f718dc497351b | 513d3e57f4e0fce72ca4ecd1f30be2d261ee9260 | refs/heads/master | 2021-07-04T17:20:58.456812 | 2020-08-27T02:08:05 | 2020-08-27T02:08:05 | 163,482,583 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | """
DQN强化学习
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import gym
# Hyper parameters
BATCH_SIZE = 32
LR = 0.01
EPSILON = 0.9 # greedy policy(参数)
GAMMA = 0.9 # reward discount
TARGET_REPLACE_ITER = ... | [
"240553516@qq.com"
] | 240553516@qq.com |
68685bbd376f9cbe2cd1311b8313d1a34cd95f75 | 518a7949a195f29591d5e1523287bd8985046ebb | /examples/bootstrap3/settings.py | 3463cd7305f4204b3484308adf6d532671bdec40 | [
"MIT"
] | permissive | kelvinhammond/djangocms-cascade | 73ecb0b3a136b3615fd354d04c1a57de0bb4485f | ba99706b03d1ae5a04952e3e6dded1c048426e89 | refs/heads/master | 2021-01-18T12:54:08.271278 | 2014-04-08T14:42:14 | 2014-04-08T14:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py | # Django settings for unit test project.
import os
DEBUG = True
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
SITE_ID = 1
ROOT_URLCONF = 'bootstrap3.urls'
SECRET_KEY = 'secret'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'bootstrap3/database.sqlite',
... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
5488a146c268af0eca9fc2a0cd323ac5a4a95a9b | bf79fc0de3dcdfe7a4f3d2b10f9a271d757d345b | /httplib_post_sessionId.py | ce7d8c74d569922cb88cb48296ce4d415551cab5 | [] | no_license | gsrr/network_programming | 3aa09916b025f27fee98e8ed7dc0ebb4beadfbb9 | 91c3bdaf60b90c848a4e7fc4cfa29b6076e4e64f | refs/heads/master | 2021-01-18T15:12:41.379298 | 2013-10-12T15:46:27 | 2013-10-12T15:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import httplib
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain" , "Cookie": "JSESSIONID=487D7BDC9E91CC65603A7FB5A16B7E11" }
conn = httplib.HTTPConnection("172.27.112.40")
conn.request("POST", "/servlet/RTRRDisplayConfig" , "" , headers)
r1 = conn.getresponse()
print r1.status, r1.re... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
475648468940c502788b44540e3bd9313ee5e4bc | eea8c7343b4c1f3083dfd066aa2d3df155ff3713 | /bioframe/dask.py | 1d5c9a6a713828baff44e446762ba7b6039859c2 | [
"MIT"
] | permissive | agalitsyna/bioframe | 090dbbd5a88d3673fd5472361468d0c0e7cac149 | 2bcfcb52de21cd6f31e2e2f69d39427908ea841b | refs/heads/master | 2020-06-01T03:14:42.770344 | 2019-06-11T19:46:24 | 2019-06-11T19:46:24 | 190,611,916 | 0 | 0 | MIT | 2019-06-06T16:12:13 | 2019-06-06T16:12:12 | null | UTF-8 | Python | false | false | 6,179 | py | from __future__ import division, print_function, absolute_import
from collections import OrderedDict
from contextlib import closing
import numpy as np
import pandas as pd
import numba
import pypairix
import pysam
from dask.base import tokenize
import dask.dataframe as dd
import dask.array as da
import dask
def bin2... | [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
220ecc6dfcdc71e07171f2b4cdb6b97a034114d6 | c988a8856d2d3fb7771417b4c7810e528a197d2b | /Generators 2.py | 9b2b8e0fd242c5b9ea38fbb9c33f02ac9f69df22 | [] | no_license | arunekuriakose/MyPython | 0c8a9161fef20bf77f7ba31149ec4ba0fa79b0bd | 19f44819612a8490d430bafec0616f68ce109776 | refs/heads/master | 2022-01-20T07:56:48.505226 | 2019-07-22T06:26:52 | 2019-07-22T06:26:52 | 198,158,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | #
def demo():
n=1
print("First")
yield n
n+=1
print("Second")
yield n
n+=1
print("Third")
yield n
#a=demo()
#print(next(a))
#print(next(a))
#print(next(a))
for i in demo():
print(next(i)) | [
"noreply@github.com"
] | arunekuriakose.noreply@github.com |
3b5349a86fba8c9b1cfb2e62694c68a49574e8f5 | 1abec01c89583daf7c486d5a78b60597ed0e9b85 | /RFID/test1.py | 5f34e3cd5bd8f512aba7702aa5b8f4b0375dd300 | [] | no_license | BaldSuperman/python_work | a31625a02c27b94d7165dde1c584ebfe769e4dbd | 36669079e81a798f051ee89dfc681c1d74e1c746 | refs/heads/master | 2020-05-27T16:00:34.292449 | 2019-06-17T07:05:11 | 2019-06-17T07:05:11 | 188,687,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | # -*- coding: utf-8 -*-
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522 as rc522
def write():
reader = rc522()
try:
data = raw_input("input data: ")
print("input data is: "+data)
print("place your card to write")
reader.write(data)
print("write success")
... | [
"you@example.com"
] | you@example.com |
d00ecc5889baf1e72d1751d86e98601d7028d53b | a3f0669e893e152997aab440275aafbeca74c4c5 | /src/ffm/evaluate.py | a19f7ba86df0c7d8e7cd4788b56c30906af7a112 | [] | no_license | AzizIlyosov/ctr-algorithms-ipinyou | 0280e3379e6d207b52fa206dc9e05779b876a927 | 25ca16788497c3d954259dc8dfcd353b76edc2c5 | refs/heads/master | 2020-04-08T01:43:51.391902 | 2018-07-04T14:09:07 | 2018-07-04T14:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # _*_ coding: utf-8 _*_
import sys
import scipy as sp
from csv import DictReader
from sklearn.metrics import accuracy_score
from sklearn.metrics import f1_score
from sklearn.metrics import log_loss
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import roc_au... | [
"1107630485@qq.com"
] | 1107630485@qq.com |
7e0e8298dda72c9880e5943047eb1190db12eff7 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-ApplicationServices/Lib/PrintCore/__init__.py | 36c698f201df15a99f814a8bbfc57c763b22a185 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 1,256 | py | """
Python mapping for the PrintCore framework.
This module does not contain docstrings for the wrapped code, check Apple's
documentation for details on how to use these functions and classes.
"""
import functools
import sys
import Cocoa
import objc
from PrintCore import _metadata, _PrintCore
sys.modules["PrintCore"... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
4080c05e280ec94e2df632dc211c25773aa6243b | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/tierras_20200219214608.py | 5ebc61a24ec8acd6890ed7cafa92f02f17424812 | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import os
import pylab as pl
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
os.system("clear")
fig = pl.figure()
axx = Axes3D(fig)
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 0.01)
Y = np.arange(-2, 12, 0.01)
Z = np.arange(600,2000,100)
X, Y = np.meshgrid(X, Y)
ax, ay = 0.5, 0.5
bx, by = 4.5, 0.4
cx, cy... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
7eb7b91bac55d631f2d8f2cb1262e1d2b70b03bd | 455c1cec4101254a0b7f50349e915411033a0af1 | /supervised_learning/0x02-tensorflow/5-create_train_op.py | fb850cd429f95ec7d7f273f75d9347cfba9615e1 | [] | no_license | Daransoto/holbertonschool-machine_learning | 30c9f2753463d57cac87f245b77c8d6655351e75 | 1e7cd1589e6e4896ee48a24b9ca85595e16e929d | refs/heads/master | 2021-03-10T14:32:09.419389 | 2020-10-23T19:47:31 | 2020-10-23T19:47:31 | 246,461,514 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | #!/usr/bin/env python3
""" This module contains the function calculate_loss. """
import tensorflow as tf
def create_train_op(loss, alpha):
""" Creates the training operation for the network. """
return tf.train.GradientDescentOptimizer(alpha).minimize(loss)
| [
"901@holbertonschool.com"
] | 901@holbertonschool.com |
fb5956cc1e3720cd529ef6c78da2abf555f5f8bc | 1b2407f35191917818ea7f276079aa8f62429770 | /nova/tests/functional/libvirt/test_numa_servers.py | 06f301abd11145980986ca92526ec9cf45581139 | [
"Apache-2.0"
] | permissive | ISCAS-VDI/nova-base | 67838b54230d250b71fd1067c4a754afbc258883 | dbb6bba94f8a3eae5ed420d8af3431ab116c3fa7 | refs/heads/master | 2021-01-20T19:08:51.403722 | 2016-06-07T06:46:54 | 2016-06-07T06:46:54 | 60,588,545 | 0 | 1 | Apache-2.0 | 2020-07-24T00:41:15 | 2016-06-07T06:38:23 | Python | UTF-8 | Python | false | false | 6,704 | py | # Copyright (C) 2015 Red Hat, 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... | [
"wangfeng@nfs.iscas.ac.cn"
] | wangfeng@nfs.iscas.ac.cn |
c2aa76664a5c37545f20d40f25c06ab24d60b407 | 637e0a650a1bea456164bae71c2fb152a98f5db8 | /pyntcloud/structures/octree.py | 56ca5f00ca23ef21b2fdd734fd2d70676a8b7807 | [
"Unlicense"
] | permissive | mzkaramat/pyntcloud | eaebfeea88573a1b27dc4df943c6a54dc796dc1b | 6e663045495180581ddc77d604901e408c0a0247 | refs/heads/master | 2020-03-07T17:17:51.436067 | 2018-03-29T11:30:36 | 2018-03-29T11:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | # HAKUNA MATATA
"""
VoxelGrid Class
"""
import numpy as np
import pandas as pd
class Octree(object):
def __init__(self, points, max_level=2):
self.points = points
self.max_level = max_level
self.structure = pd.DataFrame(
np.zeros((self.points.shape[0], self.max_level), dtyp... | [
"daviddelaiglesiacastro@gmail.com"
] | daviddelaiglesiacastro@gmail.com |
5aec005f547d8990c87b6d7e0957eaf437f08732 | ad798335dbc724845475b43249801af20b6c40f1 | /hash.py | 45ee95923820b86e9149d9ae2ab0e3ed2c7eb44e | [
"MIT"
] | permissive | zconnect-iot/ibm-iot-emulator | 7e8c7db72e11fdf0fc79600227a3e63ec12eeebf | 89b7c923b5e737df7dc9c508172f8f927a075668 | refs/heads/master | 2020-03-22T07:35:17.109194 | 2018-07-05T15:13:11 | 2018-07-05T15:13:11 | 139,709,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import bcrypt
password = b"-ankVuPqceD(LBd0Zc"
hashed = b"$2a$04$BOYcgGknfgS2yYAxtnXfEu6btv4bG8A1lE4UteDP7dU80TXW.Jmsa"
print(bcrypt.hashpw(password, bcrypt.gensalt(prefix=b"2a")))
print(bcrypt.checkpw(password, hashed))
| [
"boulton@zoetrope.io"
] | boulton@zoetrope.io |
90fc94c313e3d1383748e2f33c4e7ebaf0982728 | ea5762e8754d6b039963b0125822afb261844cc8 | /docs/_examples/mesh-parameterisation.py | 59980c4ede312f3cd6d7cb5a8e31e278431115a8 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 2,803 | py | """Parameterisation of a triangle mesh.
For more info see:
- http://www.ctralie.com/Teaching/LapMesh/
"""
from __future__ import print_function
import compas
from numpy import zeros
from scipy.sparse import coo_matrix
from scipy.sparse import block_diag
from scipy.sparse.linalg import spsolve
from compas.datast... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
da321f4939af9c4dab146e4bbb4bd976366d1e45 | 161ab63e46114a8359c60dfa77820a7abd181e80 | /hproxy/spider/base_spider/__init__.py | 3a06269c73e2fef0a0314e3ee15dff572110c5fb | [
"MIT"
] | permissive | yejianxin2015/hproxy | 27be1a7311bba7fc5f2c02d45658c5c57c507c76 | f40266bf7b06368d3ebfdce8d60385bcd4b93713 | refs/heads/master | 2020-03-15T09:03:38.752884 | 2018-05-11T06:51:45 | 2018-05-11T06:51:45 | 132,065,983 | 0 | 0 | MIT | 2018-05-11T06:48:52 | 2018-05-04T00:53:03 | Python | UTF-8 | Python | false | false | 178 | py | #!/usr/bin/env python
"""
Created by howie.hu at 06/04/2018.
"""
from .field import AttrField, BaseField, TextField
from .item import Item
from .proxy_spider import ProxySpider
| [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
d061f290f794c90b951bbf0dd48c7e1e8356db05 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/10375900/snippet.py | 26438e7b72a4b03ea1b6bf2b8a49d6ac065dfc0f | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 8,007 | py | import boto
import json
import time
import sys
import getopt
import argparse
import os
import logging
import StringIO
import uuid
import math
import httplib
from boto.sqs.message import RawMessage
from boto.sqs.message import Message
from boto.s3.key import Key
#########################################################... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7665734ba108bbe3b98f2a09d77e4acbe740a77f | a08f9192cef4c48378e2c691353343112b317d71 | /hatchet/readers/json_reader.py | 407536bae020b48822d840cb2c5d9e0915ebd7fa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later"
] | permissive | LLNL/hatchet | a7a33523f7aa60dfe38739e2362666a50af7adc0 | 5d0efca4ea9cca03497d0b89b6ffada37242d579 | refs/heads/develop | 2023-08-30T22:29:30.456656 | 2023-08-17T16:05:46 | 2023-08-17T16:05:46 | 454,508,482 | 19 | 13 | MIT | 2023-09-09T00:13:13 | 2022-02-01T18:43:00 | JavaScript | UTF-8 | Python | false | false | 2,060 | py | # Copyright 2017-2023 Lawrence Livermore National Security, LLC and other
# Hatchet Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: MIT
import json
import pandas as pd
import hatchet.graphframe
from hatchet.node import Node
from hatchet.graph import Graph
from hatchet.fra... | [
"noreply@github.com"
] | LLNL.noreply@github.com |
91d7abb0e40dc1bf0cbb74d3f9ed197e1e70bced | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/342/107362/submittedfiles/principal.py | 0f40d38c7c74dadb18defa87d6b7e0f5f8d063ca | [] | 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 | 317 | py | import random
nome = input('Insira o nome do usuário:')
def solicitaSimboloDoHumano():
simb = input('Escolha o seu símbolo:')
while simb != 'X' or 'O':
simb = input('Escolha um símbolo válido:')
solicitaSimboloDoHumano()
print(random.choice([nome,'computador começa']))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
eaea2f61d183d4210777892f777ed5239ea073da | 77d52805fa67c36e13c624f853de027bf70a17e6 | /notSoRand.py | 08fab414bfe7d71d7bddb38c08065faac43e5503 | [] | no_license | BeautyScraper/pythonUtilities | f13d7a2732b754c5b2ab9ae2fbbc17cad04cc6ce | a9fe1b63249ccf0749d70c8bd40696915cd0841b | refs/heads/master | 2020-03-18T16:41:37.566492 | 2019-04-17T03:02:58 | 2019-04-17T03:02:58 | 134,980,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | import random
import re
import os
def randomLine(fileName="test.txt"):
try:
print("opening " + fileName)
with open("files\\" + fileName,"r") as inF:
selectedLine = random.choice(inF.readlines())
print("Selected Lines is " + selectedLine)
while(re.search("\[(.*?)\... | [
"you@example.com"
] | you@example.com |
79104fb27df6da2bc9c3650b5f36fe3f58342f99 | 0524471f0deec846a50a3dfb9a039495623a79fd | /manajemen_kontrak/migrations/0050_auto_20210504_0828.py | 75fcc18b53f70e9c563c8efd530fd9ae81989ff7 | [] | no_license | riswanto84/SiLPBJ-Project | 0e97f89d2ea5f1ac4e631e9f0457aa5864a6e8e9 | 7e052f5a4847a07fdd542ae6550e303d6627d1ca | refs/heads/master | 2023-04-24T23:35:41.984864 | 2021-05-08T08:15:28 | 2021-05-08T08:15:28 | 363,024,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Generated by Django 3.1.1 on 2021-05-04 01:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manajemen_kontrak', '0049_auto_20210504_0814'),
]
operations = [
migrations.AddField(
model_name='barang',
name='spe... | [
"riswanto.aris@gmail.com"
] | riswanto.aris@gmail.com |
9485737dbc564ef7885a6ba0a9e51092a0c524ec | ab9cfa8aa28749ebd18c4fa4c8712c2198e72501 | /从上到下打印二叉树.py | 46ea53e5fa68a2a32a3177d71697ace7839c0de8 | [] | no_license | joseph-mutu/JianZhiOfferCodePics | d71e780483909390b436f81989000a277daac11d | 8d41326cb2b9bc1379682fa6364a68c0ce62dbee | refs/heads/master | 2020-08-03T14:39:59.666806 | 2019-09-30T06:17:36 | 2019-09-30T06:17:36 | 211,788,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019-08-23 16:41:17
# @Author : mutudeh (josephmathone@gmail.com)
# @Link : ${link}
# @Version : $Id$
import os
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def PrintFromTopToBottom(self, r... | [
"josephmathone@gmail.com"
] | josephmathone@gmail.com |
b95a492675647575a6d42baff7748f1c458dab89 | 043a17d196250048a5a34e990a19d8622436f9ce | /Redintek/07_return_values/redintek.py | a116a216bd42d5a87cd88ae1dfb2fafee1e23cb7 | [] | no_license | chimtrangbu/hyperspace | 8df8cb9c5475b70b218d0a56034c7f520815fa0d | ec49324c705e9af61c3857cf2dea2a551bda5537 | refs/heads/master | 2020-03-26T07:18:34.249976 | 2018-12-20T05:16:55 | 2018-12-20T05:16:55 | 144,647,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | r = {}
def put(key, value):
global r
r[key] = value
return value
def get(key):
return r[key] if key in r.keys() else None
def exists(key):
return (key in r.keys())
def delete(key):
global r
try:
del r[key]
return True
except KeyError:
return False
def in... | [
"you@example.com"
] | you@example.com |
5ec6e963b60657efb5c7f58282747bd3c3b3bbcf | 86df6f8f4f3c03cccc96459ad82bcdf3bf942492 | /lintcode/find-the-connected-component-in-the-undirected-graph.py | 1d83a7de926c28153c4e30dca9008b29f8b6e8b8 | [] | no_license | bdliyq/algorithm | 369d1fd2ae3925a559ebae3fa8f5deab233daab1 | e1c993a5d1531e1fb10cd3c8d686f533c9a5cbc8 | refs/heads/master | 2016-08-11T21:49:31.259393 | 2016-04-05T11:10:30 | 2016-04-05T11:10:30 | 44,576,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python
# encoding: utf-8
# Question: http://www.lintcode.com/en/problem/find-the-connected-component-in-the-undirected-graph/
# Definition for a undirected graph node
# class UndirectedGraphNode:
# def __init__(self, x):
# self.label = x
# self.neighbors = []
class Solution:
# ... | [
"liyongqiang01@baidu.com"
] | liyongqiang01@baidu.com |
32b67fab7e56846fb6300e78ec34af1bdd32c6a3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YLf984Eod74ha4Tok_19.py | a1794374010be900955aa9ae6a5c69cf7e837041 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | """
In a calendar year, it is exactly 365.25 days. But, eventually, this will lead
to confusion because humans normally count by exact divisibility of 1 and not
with decimal points. So, to avoid the latter, it was decided to add up all
0.25 days every four-year cycle, make that year to sum up to 366 days
(including ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
46f861b5d2e6b2395aeb66db0a5a19d451da893f | b7a3d0ac1c3c46743adfbfd2da6b7b6b22d3910b | /backend/pakearn_3676/wsgi.py | 6f4211e43bd31b4790cb02e4d689ddd3c2185850 | [] | no_license | crowdbotics-apps/pakearn-3676 | 976a1b24e3a47ed42526ae6f99b5cda248e88d04 | 7c2aa72a2091604be81c4b82931dd494137b43f2 | refs/heads/master | 2020-05-25T20:07:02.159662 | 2019-05-22T05:12:19 | 2019-05-22T05:12:19 | 187,967,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
WSGI config for pakearn_3676 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
338342748a69234b4d64912a2a2f6e1632b917b1 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4375/codes/1670_2966.py | 3ece3928b8754173db28d496c3a374b1107e4dee | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | promocao=input("S ou N: ")
ingresso=float(input("valor do ingresso: "))
qntd=float(input("qntd de ingressos: "))
total=ingresso*qntd
promocao=promocao.upper()
if promocao=="S":
desconto=total-total*0.2
print(round(desconto,2))
else:
print(round(total,2))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
ffd9e8e9af3dbad639d8bf389ab7b9590881963d | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/storage/azure-mgmt-storage/generated_samples/storage_account_enable_cmk.py | a14ee86badfe4c98c526af848a574e0f339ba9d0 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 2,162 | 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"
] | openapi-env-test.noreply@github.com |
b2acc2ec4ad57a84ba11c806eb4b36ae1fc06ad8 | 4a73648ecd3951b802e89e83a3bd9ef5b063af3d | /python_part/Leetcode/Sort/215. Kth Largest Element in an Array(快排)/Quick Select.py | f10356100760825b120026fe8c08605d817cf4d8 | [] | no_license | Allen-C-Guan/Leetcode-Answer | f5f9ee1348b86da914a564b7d23bf8904d5aa27f | f6e1374ef567590fee15ba6d1d6d65891233b5e1 | refs/heads/master | 2023-08-17T18:18:00.581743 | 2021-10-10T15:24:07 | 2021-10-10T15:24:07 | 257,017,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | '''
quick select的方法 也是quicksort的基础
我们使用递归来完成
'''
from typing import List
class Solution:
def __init__(self):
self.res = None
def findKthLargest(self, nums: List[int], k: int) -> int:
# 其实这个partition 由于采用的是lo,hi,并不需要计算k的相对大小。
# 在partition里面,我们最好还是每次随机选择pivot比较快。
# s 表示slow,fast... | [
"54201792+Allen-C-Guan@users.noreply.github.com"
] | 54201792+Allen-C-Guan@users.noreply.github.com |
e28854dde030346d5b89484a8453525a3bf8b422 | 27b599eabf8f5e8088e30c0d2baa6682f1661be4 | /tensorflow_probability/python/internal/auto_composite_tensor_test.py | 3ecb660335c6694b3c66eb9b15fe72aa36b47c62 | [
"Apache-2.0"
] | permissive | adriang133/probability | b6ecf28f737c44f19df3a4893e6d1cf0351bc4a0 | edfc4585f38017153fe7bf1a7287fcdd237912c4 | refs/heads/master | 2022-12-12T05:02:04.247859 | 2020-09-16T21:06:03 | 2020-09-16T21:07:27 | 296,163,707 | 0 | 0 | Apache-2.0 | 2020-09-16T22:47:07 | 2020-09-16T22:47:06 | null | UTF-8 | Python | false | false | 2,593 | py | # Copyright 2020 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
915f56d3c4a365c0cb016403d0ebe181278d0ca2 | 95bba054198a2709163ecb3cf2adbd9ed6913490 | /fph/parseFile.py | c428bf7c6b2516e63ecd4227f4641c14a90690f4 | [] | no_license | jieter/fph-parser | e21549c788cf80f91ac9def168fd46e13e8ac847 | 2e1b57e2815cfcf023a6c1c68793a22fe178a533 | refs/heads/master | 2020-04-06T07:03:00.822824 | 2015-09-09T07:19:24 | 2015-09-09T07:19:24 | 14,070,587 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Fisher and Paykel CPAP .FPH file parser.
#
# Jan Pieter Waagmeester <jieter@jieter.nl>
#
# File format source:
# http://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Icon
import FPHFile
from summary import SummaryFile
from detail import DetailFile
from flow import FlowFile
def parseFile(filename):
part... | [
"jieter@jieter.nl"
] | jieter@jieter.nl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.