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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c233343317b5499b62792b2b9e631f43050868e6 | 90912d732e505c48c6770135f755a91c9ba2b1ef | /blog/models.py | 29e60772151dae9c76b6c04a92c8c2b84f6b2091 | [] | no_license | Shekharnunia/Puzzles | 2519a8a29a4c62176aab204835df40c10e01907b | 1abc6dcfda73c00222b8093ce2cd0cc7fc27d37c | refs/heads/master | 2022-12-16T03:04:42.626695 | 2020-02-12T07:36:49 | 2020-02-12T07:36:49 | 163,486,550 | 1 | 0 | null | 2022-12-08T01:30:24 | 2018-12-29T07:11:18 | CSS | UTF-8 | Python | false | false | 5,305 | py | import datetime
import readtime
from django.conf import settings
from django.db import models
from django.db.models import Count
from django.urls import reverse
from django.utils import timezone
from django.utils.html import mark_safe
from django.utils.text import slugify
from django.utils.translation import ugettext_... | [
"shekharnunia@gmail.com"
] | shekharnunia@gmail.com |
3d93c548eb7596c43c950ee17dbb35b7a4998d7a | a43cf3cacf518096737dd39833fd39624f8cf543 | /antevents/adapters/rpi/gpio.py | 17ca2d5f184b6bec44511cf333135b0c5cbe265b | [
"Apache-2.0"
] | permissive | Mickey1964/antevents-python | f6ad4f9b056550055a223f7d4a7d34bc030c1dfb | 5b9226813583141986014fc83f6f74342a5f271e | refs/heads/master | 2021-06-15T11:23:56.253643 | 2017-03-31T05:25:59 | 2017-03-31T05:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
"""
Output on raspberry pi gpio pins
"""
import RPi.GPIO as gpio
from antevents.base import DefaultSubscriber, SensorEvent
class GpioPinOut(DefaultSubscriber):
"""Actuator for an output pin on the GPIO bus.
"""
de... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
63ea6ada55f09f32ceb80db09b1c3ee6632dba40 | 7f20b1bddf9f48108a43a9922433b141fac66a6d | /csplugins/trunk/ucsd/rsaito/rs_Progs/rs_Python/rs_Python_Pack/trunk/General_Packages/Usefuls/Sort_AlphaNum.py | 40004e006eaae683fb078cce01219040fa0860dd | [] | no_license | ahdahddl/cytoscape | bf783d44cddda313a5b3563ea746b07f38173022 | a3df8f63dba4ec49942027c91ecac6efa920c195 | refs/heads/master | 2020-06-26T16:48:19.791722 | 2013-08-28T04:08:31 | 2013-08-28T04:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | #!/usr/bin/env python
def split_alpha_num(istr):
""" '.' is dealt as string """
pctype = None
buf = []
buf_s = ""
for c in istr:
if '0' <= c and c <= '9':
ctype = "Num"
else:
ctype = "Char"
if pctype is not None and pctype != ctype:
... | [
"rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] | rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5 |
24d6cbe734917d00e45ab475eae08d0fdf2d504e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_communicants.py | 93af30348381676802fd09037dc9cadc12e62484 | [
"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 | 242 | py |
#calss header
class _COMMUNICANTS():
def __init__(self,):
self.name = "COMMUNICANTS"
self.definitions = communicant
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['communicant']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5ced18979b5583e2d8e88c8f467ea650badfe02f | 97c315e3349571c0d2a64129e09f106e4a5c4a57 | /thingosdci/loopdevmanager.py | b78b7089b3047f48f87fe96d3b92ed0258c301d9 | [] | no_license | ccrisan/thingosdci | d02b033fa7f5c765da95062d1bacbe0dbd634eb8 | 113dcb3811e214accec52dc10e69bb285c82c758 | refs/heads/master | 2022-12-11T19:59:34.119754 | 2022-12-10T09:01:31 | 2022-12-10T09:01:31 | 124,700,416 | 2 | 0 | null | 2019-05-19T09:27:03 | 2018-03-10T21:35:19 | Python | UTF-8 | Python | false | false | 1,665 | py |
import logging
import os
import stat
from thingosdci import settings
_LOOP_DEV_PATTERN = '/dev/loop{}'
_FILE_PERMS = 0o660
logger = logging.getLogger(__name__)
_loop_devs = {}
class LoopDevManagerException(Exception):
pass
def acquire_loop_dev():
for l, busy in _loop_devs.items():
if not busy:... | [
"ccrisan@gmail.com"
] | ccrisan@gmail.com |
75b35268446c97fb27c10f58fdccad927f6d70d8 | 42fbb83d03cb8fff5b3a592ee67d599b9236b792 | /pre_commit/store.py | 30962576c345fcbab56be57d99e61bbd78900344 | [
"MIT"
] | permissive | dongweiming/pre-push | 09848e0e018608b3d35111ef93c0c9a5d65c7fbe | f96de6f260c2bc686937a1cc6bd2f6a7b807bc24 | refs/heads/master | 2021-01-16T18:32:32.539746 | 2015-01-15T02:13:10 | 2015-01-15T02:14:34 | 29,092,420 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | from __future__ import unicode_literals
import io
import logging
import os
import os.path
import tempfile
from cached_property import cached_property
from pre_commit.prefixed_command_runner import PrefixedCommandRunner
from pre_commit.util import clean_path_on_failure
from pre_commit.util import cmd_output
from pre_... | [
"asottile@umich.edu"
] | asottile@umich.edu |
d752a4dd9766b3d9a8fb4bccb75552c389297556 | 9703641c14b7c19f2fcf937150204ab85b4151a2 | /test/异常处理.py | efaa8de2df1f93c516c6ec7a3755958657b1b0b7 | [] | no_license | walkmiao/Little_Case | 8effbea554c930e0eb32d4335ecbd5541a9c1251 | ab445659e19c85ecfd9b99f8d615c33f900662f8 | refs/heads/master | 2021-06-11T05:30:39.415720 | 2019-05-14T10:37:29 | 2019-05-14T10:37:29 | 128,582,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : 异常处理.py
# @Author: lch
# @Date : 2018/8/20
# @Desc :
import logging
try:
fs = open('/fs')
except IOError:
logging.warn('dont exist this file')
print('this line will always print') | [
"372815340@qq.com"
] | 372815340@qq.com |
79655a9a52d6d6db2ff7bd9f857095dc3de5675a | 929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c | /src/data_structure/tree/tree_to_graph.py | eece438f3adbe9bc881a645d250b7d4dcb2f9d73 | [] | no_license | 1325052669/leetcode | fe7571a9201f4ef54089c2e078810dad11205b14 | dca40686c6a280bd394feb8e6e78d40eecf854b9 | refs/heads/master | 2023-04-01T17:53:30.605822 | 2021-04-10T15:17:45 | 2021-04-10T15:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from collections import *
from typing import *
from src.data_structure.tree.model import TreeNode
# https://leetcode.com/problems/closest-leaf-in-a-binary-tree/
class Solution742:
def findClosestLeaf(self, root: TreeNode, k: int) -> int:
graph = defaultdict(set)
graph[root.val].add(float('inf')) ... | [
"js7995@nyu.edu"
] | js7995@nyu.edu |
3ecdd27ac258743aef8dc07dc573d51dc7e5c1ae | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv2/mmdet/core/post_processing/bbox_nms.py | f5583b1a0ee6b7a050286cc535a3a6c090a8bb93 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,037 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
ee651e865294ada82101645f8a4cbc4692c15aa7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/Python/Jozko/pancakes.py | add271c7fddf079fcf1bece68e7671120ebf59ba | [] | 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,273 | py | '''
Created on Apr 11, 2015
@author: jozefmokry
'''
import os, time, numpy
def read(path):
date = time.strftime('%d_%h_%H_%M_%S')
print date
with open(path, 'r') as f:
T = f.readline().strip()
T = int(T)
outPath = os.path.splitext(path)[0] + 'OUT.txt'
out = open(ou... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
d41a424ace518cfd736a345b91ef94780f1debad | f3416956f9bfc7af870867e2fe8644f08d513b23 | /combine/contest_20150211a/modeling/fit_gbr_pgmodel.py | 931fb8ea9c3a68861c7c9bb16e64402236e14968 | [] | no_license | dsjoerg/blundercheck | a71012c0d3ded929599d191d4f73dcb14f94030a | 04fb39ba0dd1591b387f573f767973518b688822 | refs/heads/master | 2021-01-18T18:35:21.992359 | 2015-03-24T18:11:11 | 2015-03-24T18:11:11 | 27,928,453 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | #!/usr/bin/env python
import sys, time
import numpy as np
import cPickle as pickle
from pandas import DataFrame
from pandas import read_pickle
from pandas import get_dummies
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.cross_validation import cross_val_score
from sklearn.externals import joblib
... | [
"dsjoerg@gmail.com"
] | dsjoerg@gmail.com |
68a07449d40c47f739fa3ba0bde88af21dde1d6e | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pylint/test/functional/assert_on_tuple.py | 3d36f93af03659192a8dc7f06926aacecad05888 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 355 | py | """Assert check example"""
# pylint: disable=misplaced-comparison-constant, comparison-with-itself
assert (1 == 1, 2 == 2), "no error"
assert (1 == 1, 2 == 2) # [assert-on-tuple]
assert 1 == 1, "no error"
assert (1 == 1,), "no error"
assert (1 == 1,)
assert (1 == 1, 2 == 2, 3 == 5), "no error"
assert ()
assert (True,... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
4b807f39e2ab7747986e6e0610c0ebfd4ed8aec2 | 088276a2b02f74493c6303cbf17573957e1c2b3e | /NK/2_forecast_min.py | 4f926361198a20b970cc288858d0c68c2e49c406 | [] | no_license | naikiki87/python | 38f3ec9ed55b48df136708ad8e90e4358d536ca3 | 3c75cace24258c84b682e06033130ee627f7883c | refs/heads/master | 2023-06-05T09:49:51.931345 | 2021-06-30T04:35:41 | 2021-06-30T04:35:41 | 268,022,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | import sys
import random
import time
import datetime
import sqlite3
import config
from PyQt5.QtCore import *
from PyQt5 import QtTest, QtCore, QtWidgets
import pandas as pd
import requests
import threading
from bs4 import BeautifulSoup
from time import localtime, strftime
STDEV_LIMIT = config.STDEV_LIMIT
MKT_SUM_LIMI... | [
"naikiki87@naver.com"
] | naikiki87@naver.com |
fc349d705b0189ad1053270e95c80c239f4eb299 | ddd4edc45481e6a7c7141b93e47b974634506d2d | /tradgram/relations/views.py | bbe4a68201ff6e95750b3b8fc9f79773aff38b99 | [
"MIT"
] | permissive | didils/tradgram | 407de9d05d01bc840c5c165155d370f092d82f0d | 4868ca082ab78a1b5b96f25ee9f958567bd1bb1e | refs/heads/master | 2021-11-19T02:47:02.224088 | 2019-04-05T08:19:14 | 2019-04-05T08:19:14 | 148,162,588 | 0 | 0 | MIT | 2021-09-08T00:57:43 | 2018-09-10T13:49:57 | Python | UTF-8 | Python | false | false | 2,304 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from . import models, serializers
from rest_framework import status
from rest_framework.response import Response
from django.db.models import Q
class SaveRelations(APIView):
def post(self, request, format=None):
product... | [
"didils1982@gmail.com"
] | didils1982@gmail.com |
f4e334423f8ad74045d4187afe8b37e6349897bd | 1302a788aa73d8da772c6431b083ddd76eef937f | /WORKING_DIRECTORY/system/connectivity/shill/test-scripts/check-rssi | be471cd6d11c2e3cb4f15c6c8284b8c971282bcc | [
"Apache-2.0"
] | permissive | rockduan/androidN-android-7.1.1_r28 | b3c1bcb734225aa7813ab70639af60c06d658bf6 | 10bab435cd61ffa2e93a20c082624954c757999d | refs/heads/master | 2021-01-23T03:54:32.510867 | 2017-03-30T07:17:08 | 2017-03-30T07:17:08 | 86,135,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | #!/usr/bin/python
import dbus, flimflam
flim = flimflam.FlimFlam(dbus.SystemBus())
strength = {}
for device in flim.GetObjectList("Device"):
device_properties = device.GetProperties(utf8_strings = True)
try:
if device_properties["Type"] not in ["wifi", "wimax",
"bluetooth", "cellular"]:
... | [
"duanliangsilence@gmail.com"
] | duanliangsilence@gmail.com | |
c5238108e6febba12f1caef9a9a59e339fa335e7 | 86940be5343caf5bb67c68d8d08e59ec38ac5d08 | /searchengine/pipelines.py | 4da0b9bbb53ebbcd73d2ed0dd2af8d9945c714bc | [] | no_license | etmorefish/searchengine | 1b5c3c63be093962c123c7ec98694100d7b8c767 | ded67a48421293ccf16ba511c4aedb29096c3c25 | refs/heads/master | 2023-03-13T02:11:43.909686 | 2020-08-07T13:46:34 | 2020-08-07T13:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
class SearchenginePipeline(object):
def open_spider(self, spider):
client = pymongo.MongoClient(... | [
"849078367@qq.com"
] | 849078367@qq.com |
0c30b5452c0eae9df947f0837c2e777b4a2cf52e | 6d562a86ea6c2c9186c20efef2857eb22d8c6e6a | /beerxml/formulas/gravity.py | 675074133e84f11ecc2e805307288af4a6c8f0bf | [] | no_license | rhblind/brewery | 9621469b4f3acd49153ca0c5cb350f1d600b7ce2 | 19385e61177ffd4353b3b31a9990293ebdad82d7 | refs/heads/master | 2020-12-24T14:46:11.604275 | 2012-10-26T20:07:51 | 2012-10-26T20:07:51 | 5,318,435 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # -*- coding: utf-8 -*-
#
# References:
# http://hbd.org/ensmingr/
# http://en.wikipedia.org/wiki/Brix
# http://realbeer.com/spencer/attenuation.html
# http://en.wikipedia.org/wiki/Gravity_(alcoholic_beverage)
# http://morebeer.com/brewingtechniques/library/backissues/issue2.1/manning.html
def plato_to_gravity(degrees... | [
"rhblind@gmail.com"
] | rhblind@gmail.com |
a6588c6f4a3eaa2b458866a43b9dbad80177d400 | 92c47649185f2f41ec55997135a6c08ad1c83edd | /client/api/tasks.py | 0b3bfa63593ccb6456d45c91837a843f5320baaf | [] | no_license | imapex/collins | 6e4c4f739b859757ea9751d0f133552a0e05f215 | 4ab27e9b20124e2cf7755ac488ce472480545308 | refs/heads/master | 2021-01-19T13:56:24.864706 | 2017-05-23T06:00:37 | 2017-05-23T06:00:37 | 88,116,608 | 0 | 4 | null | 2017-05-23T06:00:38 | 2017-04-13T02:30:10 | Python | UTF-8 | Python | false | false | 633 | py | from __future__ import absolute_import, unicode_literals
import docker
from celery import Celery
import os
from .callbacks import TaskCallback
app = Celery('tasks', broker=os.getenv('RABBITMQ_URL'),
)
@app.task(bind=True)
def ping(self):
return "Pong"
@app.task
def run_image(jobId, image, command=No... | [
"kecorbin@cisco.com"
] | kecorbin@cisco.com |
75c6859352cb8e58f08963de7e6b326141e6eeca | 633ab8880dc367feefdb6ef565ed0e70a4094bc1 | /11000-12000/11653.py | dd622842b195630fe9e527b8eef32a3ffbedd058 | [] | no_license | winston1214/baekjoon | 2e9740ee2824d7777f6e64d50087b5c040baf2c6 | 20125255cd5b359023a6297f3761b2db1057d67d | refs/heads/master | 2023-03-04T09:07:27.688072 | 2021-02-16T13:51:49 | 2021-02-16T13:51:49 | 284,832,623 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # @Author YoungMinKim
# baekjoon
import sys
import math
N = int(sys.stdin.readline())
num = 2
result = []
while N != 1:
if math.gcd(N,num) != 1:
result.append(num)
N = N // num
else:
num+=1
[print(x) for x in result] | [
"winston1214@naver.com"
] | winston1214@naver.com |
caa2120e0d08174a24dfb102246c86e31a3e2e9f | fa0a50e9a751d823590de6103582d8f5f5c62f11 | /Python3MyTeam/models/model.py | a8d1833b6be535ef8c39b9feda9fb878ec2947d7 | [] | no_license | haobin12358/MyTeam | b1b16f51ad534e53abe11c0841b94ce33fd9b23c | 9da9485b5586210cd6cfe0c98597851ad5bf2034 | refs/heads/master | 2021-09-09T15:11:21.126743 | 2018-02-27T17:01:54 | 2018-02-27T17:01:54 | 114,125,292 | 3 | 1 | null | 2018-02-27T17:01:55 | 2017-12-13T13:38:35 | Python | UTF-8 | Python | false | false | 5,737 | py | # *- coding:utf8 *-
# 兼容linux系统
import sys
import os
sys.path.append(os.path.dirname(os.getcwd())) # 增加系统路径
# 引用python类
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, create_engine, Integer, String, Text
import uuid
# 引用项目类
from Config import dbconfig as cfg
# 获取和mysql的连接引擎格式 "数... | [
"1276121237@qq.com"
] | 1276121237@qq.com |
ee745dd8260bfe9d95dad38b1f77a1c6886c85ab | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/190/55854/submittedfiles/mediaLista.py | f68ec4e5da087edea75cb8878df08a8ca979fee4 | [] | 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 | 175 | py | # -*- coding: utf-8 -*-
n=int(input('digite n:'))
L=[]
for i in range (0,n,1):
m=int(input('digite o numero:'))
L.append(m)
print('%.2f' %L[0])
print('%.2f' %len(L)) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9f597d5275098b7c4ed9415826fd77e8d0c6e922 | 25219f56a7958d2fdbd2c08172ef7b91e31e2b5a | /calibration_scalars/PFISR/201211/PINOT_Daytime31/20121112.007/gen_table.py | 83378f715a8872b38a87671b832bd8115f9b6256 | [] | no_license | amisr/overspread | d82d3adc8f6d4981b3b13f54e39e69411711e3ee | c26a736c9b356f55fd7845ad5a093504e684f434 | refs/heads/main | 2023-04-03T10:47:13.975207 | 2021-03-30T23:43:22 | 2021-03-30T23:43:22 | 431,037,982 | 1 | 0 | null | 2021-11-23T19:02:13 | 2021-11-23T09:29:47 | Python | UTF-8 | Python | false | false | 2,880 | py | import datetime
import os
import numpy
import scipy
import matplotlib.pyplot as plt
import tables
from scipy.optimize import leastsq
import scipy.io as sio
def get_BS_angle(az,el):
az_bs = 15.0*scipy.pi/180.0
el_bs = 74.0*scipy.pi/180.0
k = numpy.array([[scipy.cos(el)*scipy.cos(az)],
... | [
"fitter@heaviside.local"
] | fitter@heaviside.local |
d272909ba46b4446125741d29717f01291f029bb | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoRestFrameworkProjects/withoutrest/project13/testapp/mixins.py | f2239ae24ff6418f2d1cdad792b139ac595dc62a | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.http import HttpResponse
class MixinHttpResponse(object):
def render_to_http_response(self,json_data,status=200):
#1000 lines of code
return HttpResponse(json_data,content_type='application/json',status=status) | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
b06882ef3fd5d1406945a64879ce78927ecac83e | fbff56cc280bc2d032fa50c457a07e1a550035a6 | /codeDotOrg/tokenParser.py | 63b32148c9d8f242ccbce574b508ba761126c982 | [] | no_license | mhw32/cs398-hw4-boilerplate | 60b59a856389750b5723a0aa592b807dca98464a | f920e3562c901521a5f3dd919ad58c455d666658 | refs/heads/master | 2020-08-24T18:07:08.624994 | 2019-10-22T19:46:38 | 2019-10-22T19:46:38 | 216,878,667 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py |
# isalnum
# isalpha
# isdigit
# isspace (all whitespace)
def parse(code):
tokens = []
curr = ''
for i, ch in enumerate(code):
if str.isalnum(ch) or ch in ['.'] or (ch in ['+', '-'] and
code[i-1] != 'i' and
... | [
"me@mikewuis.me"
] | me@mikewuis.me |
631cbba81289f8ea79e44776cc21f6318decc581 | 772a82205af92d2f2d2b490ac6bc23fdb7456124 | /algorithm/328.odd-even-linked-list.py | bf0568e35cdbdd3b55bbb2504f4378a31c4088fd | [] | no_license | atashi/LLL | 4f777b3a06c6ed38eab4323d2072dbbec22eee92 | 857b8c7fccfe8216da59228c1cf3675444855673 | refs/heads/master | 2021-05-17T10:11:28.946779 | 2019-11-25T15:56:14 | 2019-11-25T15:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | #
# @lc app=leetcode id=328 lang=python
#
# [328] Odd Even Linked List
#
# https://leetcode.com/problems/odd-even-linked-list/description/
#
# algorithms
# Medium (48.41%)
# Total Accepted: 137.7K
# Total Submissions: 284.3K
# Testcase Example: '[1,2,3,4,5]'
#
# Given a singly linked list, group all odd nodes toget... | [
"rebornwwp@gmail.com"
] | rebornwwp@gmail.com |
e0411f9aea4f6301de1ac641f63beb2d395d2066 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/c2dfe5772ba3cd16c1be17ba42b7db66/snippet.py | 89eaab37e4cfdb72ae5f1a42a153558079917d50 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,453 | py | # In Keras the Convolution layer requirest an additional dimension which will be used for the various filter.
# When we have eg. 2D dataset the shape is (data_points, rows, cols).
# But Convolution2D requires shape (data_points, rows, cols, 1).
# Otherwise it fails with eg. "Exception: Input 0 is incompatible with laye... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
07e55e70ea6f8d74d49765d772a15634402f7eee | 5f6c16e89cf58304c2e70f1e34f14110fcec636c | /python-swagger-sdk/swagger_client/models/block_query.py | 4f5f343b148da55abbcd418fed36c44394686a8a | [] | no_license | mohammedpatla/secretapi | 481c97901a5e92ca02e29470ab683df80ea0f26a | df420498bd0ae37fd1a152c3877a1342275a8f43 | refs/heads/master | 2022-12-25T01:55:18.038954 | 2020-10-04T23:13:54 | 2020-10-04T23:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | py | # coding: utf-8
"""
API for Secret Network by ChainofSecrets.org
A REST interface for state queries, transaction generation and broadcasting. # noqa: E501
OpenAPI spec version: 3.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
impo... | [
"lauraweindorf@gmail.com"
] | lauraweindorf@gmail.com |
e1c654b5c5879d0a85c2468db88c9e1e295c6459 | 1537873b83d1f3245ff60d2f95c366b163691f55 | /target_offer/dfs+bfs+动态规划/数字--线性动规/机器人的运动范围.py | ef7914742a6af2840ebf5f090343c75c5083832d | [] | no_license | 20130353/Leetcode | dc5c7fb08932abbf11e22e91b3edecac7f8753d5 | 488345a4713fae553559176c5bd3681e3bcac57d | refs/heads/master | 2020-03-31T08:46:12.005167 | 2020-03-15T16:32:11 | 2020-03-15T16:32:11 | 152,071,790 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | # -*- coding: utf-8 -*-
# Author: sunmengxin
# time: 10/19/18
# file: 机器人的运动范围.py
# description:
'''
给定一个棋盘,要求机器人只能走上下左右的方向,不能进入到坐标之和等与s的方格,求机器人能进入多少方格?
'''
'''
反思:
1. 自定义的变量需要在init初始化函数中声明
2. 函数传递参数记得数好,代码检查要检查好!
3. 边界,看清是从1开始还是从0开始的!
'''
class Solution:
def __init__(self):
... | [
"739400043@qq.com"
] | 739400043@qq.com |
99e5fa424a0ef71e162af19730fb467ff208dda8 | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /topCoder/srms/200s/srm221/div2/equal_substrings.py | b0909199b0c977307630973da3fc00be1ae58a2c | [
"WTFPL"
] | permissive | gauravsingh58/algo | cdbf68e28019ba7c3e4832e373d32c71902c9c0d | 397859a53429e7a585e5f6964ad24146c6261326 | refs/heads/master | 2022-12-28T01:08:32.333111 | 2020-09-30T19:37:53 | 2020-09-30T19:37:53 | 300,037,652 | 1 | 1 | WTFPL | 2020-10-15T09:26:32 | 2020-09-30T19:29:29 | Java | UTF-8 | Python | false | false | 292 | py | class EqualSubstrings:
def getSubstrings(self, str):
def is_fine(x, y):
return x.count('a') == y.count('b')
for i in xrange(len(str), 0, -1):
x, y = str[0:i], str[i:]
if is_fine(x, y):
return x, y
return '', str
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
09ce6b21b33aa832fc02eedb80d4a02dd5349e4e | c31c8095ce4d4e9686e3e7ad6b004342e49671fa | /forum/migrations/0038_auto_20181103_2022.py | 76831b0281d57327f7f14a521318272b62657bcc | [] | no_license | Lionalisk/arrakambre | 7bcc96dea2ca2a471572bfb1646256f1382ce25b | 2caece9be5eebf21ddfa87a6c821c32b5d5019a2 | refs/heads/master | 2020-12-07T19:31:24.471090 | 2020-01-09T10:14:29 | 2020-01-09T10:14:29 | 232,782,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.1.1 on 2018-11-03 19:22
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0037_auto_20181103_1946'),
]
operations = [
migrations.AlterField(
model_name='commande',
n... | [
"lionel.varaire@free.fr"
] | lionel.varaire@free.fr |
bc5282590911d672024b010162ceacde85e9483f | 66f037cc0bf8683a814eb610d06edd3667f962e0 | /setup.py | 290b05874a5fd75eb62e9e02646db0773d3d63ac | [
"Apache-2.0"
] | permissive | cemsbr/pyescpos | 6118e7fcf4b5e85b94639be42cfb6fe87f084ba9 | 58ebc1b544458803c4235f3fa80e8fa376b18ec2 | refs/heads/master | 2020-12-08T07:20:24.977694 | 2019-12-30T00:33:08 | 2019-12-30T00:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | # -*- coding: utf-8 -*-
#
# Copyright 2015 Base4 Sistemas Ltda ME
#
# 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 app... | [
"daniel@base4.com.br"
] | daniel@base4.com.br |
b1a17e6907ea12401d7c3347b6eec3575696d4e3 | 5a92bb59c2cc369840b4b79f3bc60f868f179aad | /musette/decorators.py | 20cb02004d72c33d4d8ea3718ed2f3262d122e76 | [] | no_license | mapeveri/django-musette | fc4c2629f3f5f913fa07b1f1910b01ae1da20a85 | c255f96eb8e95676a37fc0d6fce05c5212dce5c0 | refs/heads/master | 2023-04-28T20:22:56.576693 | 2018-01-26T21:04:29 | 2018-01-26T21:04:29 | 36,764,649 | 52 | 16 | null | 2023-04-16T14:39:16 | 2015-06-02T22:06:42 | Python | UTF-8 | Python | false | false | 592 | py | from django.http import HttpResponseRedirect
def user_is_troll(f):
"""
Decorator for check if the user is a troll.
Args:
f (function): Function to decorated.
Returns:
function: wrap function.
"""
def wrap(request, *args, **kwargs):
if request.user.is_authenticated():
... | [
"martinpeveri@gmail.com"
] | martinpeveri@gmail.com |
b0af1ed7b613f4265aabeb10d41c8e0bfe612097 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/409/usersdata/329/79574/submittedfiles/av1_programa1.py | 2ed47605cdf936c44c7349f815554de8ad917b01 | [] | 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 | 150 | py | # -*- coding: utf-8 -*-
numero = int(input("digite o valor de numero="))
PAR = numero*0.5
if par\\0:
print("PAR")
else :
print("IMPAR")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b9d447833ab24d6874b73bbb3fdfdabb55b0f5e3 | eafddc14e1381db53b87d42e7aa12dfb4bcf2d6e | /pandemonium/demons/online_td.py | 3bece670fce0ac68e4ce456ffac707d4821b1a45 | [] | no_license | konichuvak/pandemonium | b9d1d2f8c3529b6869f6bda1d6ca10c6c0f94052 | 57083b311ea209fe156f8575cc682e6c88211b74 | refs/heads/master | 2022-11-23T21:57:21.276033 | 2020-07-26T03:42:51 | 2020-07-26T03:42:51 | 240,851,837 | 1 | 0 | null | 2020-07-06T19:54:41 | 2020-02-16T07:45:09 | Python | UTF-8 | Python | false | false | 1,844 | py | from typing import Type
import torch
import torch.nn.functional as F
from pandemonium.demons import PredictionDemon, Demon, Loss, ControlDemon
from pandemonium.experience import Transition
from pandemonium.traces import EligibilityTrace, AccumulatingTrace
from pandemonium.utilities.utilities import get_all_classes
... | [
"arialinvlad@gmail.com"
] | arialinvlad@gmail.com |
0dc698dfd287422f17b4fb2d0ef103d508285cfd | 81dcd706b4d879fa4348630c24c86b88b6c570e2 | /rx/concurrency/scheduleditem.py | fd7fd360f7b6836e1b7eb31f61750f6ad7a31830 | [
"Apache-2.0"
] | permissive | Reactive-Extensions/RxPy | 763996efc5eeecb8af308d70bf2f1e64601cff79 | 9f9b1de0ab833e53b0d1626a3b43a6c9424f01ec | refs/heads/master | 2023-06-12T16:58:04.960259 | 2013-09-26T16:20:15 | 2013-09-26T16:20:15 | 13,126,788 | 81 | 12 | null | 2015-06-16T08:16:50 | 2013-09-26T15:44:19 | Python | UTF-8 | Python | false | false | 1,335 | py | from datetime import timedelta
from rx.disposables import SingleAssignmentDisposable
def default_sub_comparer(x, y):
#print ("default_sub_comparer", x, y)
return 0 if x == y else 1 if x > y else -1
class ScheduledItem(object):
def __init__(self, scheduler, state, action, duetime, comparer=None):
s... | [
"dag@brattli.net"
] | dag@brattli.net |
2658e1e8eb6cdeb61ce04a68e94ef08aa83f927d | 9eaa2c64a777bd24a3cccd0230da5f81231ef612 | /study/1905/month01/code/Stage2/day05/seek.py | 6c571cb29330f9a2272cd42ca7c5fb461ab8de33 | [
"MIT"
] | permissive | Dython-sky/AID1908 | 4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c | 46cd54a7b36b5f009974f2bbb7005a4ad440ca1a | refs/heads/master | 2022-04-14T12:23:30.426270 | 2020-04-01T18:05:19 | 2020-04-01T18:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | """
seek.py 文件偏移量
注意:1.每次open打开文件偏移量都在开头
2.以a的方式打开时文件偏移量在结尾
3.读写操作共用一个文件偏移的
"""
f = open("test.txt","rb+") # 读写
data = f.read(5)
print("文件偏移量:",f.tell()) # 查看文件偏移量
f.seek(10,2) # 文件偏移量位置
f.write(b"&&&")
f.close()
| [
"dong_1998_dream@163.com"
] | dong_1998_dream@163.com |
91bb1b26efd36c500d9e15b58b14f8ad7f72edcf | 05e590af914370c3fe02526794ce9b41be893d2c | /day03/BMI輸入.py | cb18dff4cc02d0f77076c8344e698d4428201d39 | [] | no_license | vincenttuan/yzu_python_20210414 | bf0f1d9f8549086008fe15701204dfc3a9ebf85a | b464c4691ce12e9076c8c2ab74158aeb4edc5bc7 | refs/heads/master | 2023-06-09T19:30:24.930453 | 2021-06-30T13:31:29 | 2021-06-30T13:31:29 | 362,433,389 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | h = input('請輸入身高:')
w = input('請輸入體重:')
print(h, type(h))
print(w, type(w))
h = float(h) # 將 str 轉成 float
w = float(w) # 將 str 轉成 float
print(h, type(h))
print(w, type(w))
bmi = w / ((h/100) ** 2)
print("%.2f" % bmi)
| [
"vincentjava@yahoo.com.tw"
] | vincentjava@yahoo.com.tw |
49fa4272dfdc25cd6155b9142b112894cde12ff6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/1106.py | 366d126dd8acc1bd5de5d462ea61c8629d734481 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import sys
def pancakes(pancakes, k):
pancakes = map(lambda x: 0 if x == '+' else 1, pancakes)
flips = []
# print str(pancakes)
for i in range(len(pancakes) - k + 1):
num_flips = 0
for j in range(max(0, i - k + 1), i):
num_flips ^= flips[j]
flips.append(pancakes[i] ^... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e19ad2f849b496bee9dad29daa61c493127d6b68 | 790743ea7f6f2d3b15fcd847171cb5d902380387 | /wfdispatcher/helpers/sanitize.py | 72ea67a0ac7e425df57fc5a8835a2d92d27c1df3 | [
"MIT"
] | permissive | lsst-sqre/wfdispatcher | d10cad7e83fce62b95b53c8bde608482d2287090 | 28761df89b44f0c46f4d15142e10bbd963203f35 | refs/heads/master | 2021-07-18T18:54:21.345342 | 2021-01-25T21:29:17 | 2021-01-25T21:29:17 | 235,692,956 | 0 | 0 | NOASSERTION | 2020-10-05T17:12:48 | 2020-01-23T00:07:36 | Python | UTF-8 | Python | false | false | 415 | py | from argo.workflows.client import ApiClient
def sanitize(obj):
"""Return an object suitable for a JSON post.
"""
cl = ApiClient()
try:
return cl.sanitize_for_serialization(obj)
except AttributeError:
# This catches
# AttributeError: 'V1Container' object has no attribute 'sw... | [
"athornton@gmail.com"
] | athornton@gmail.com |
5b35c432076b79190742a987b3d54936865f38e8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2341/48117/267922.py | d402df48cf6014e22ca2f603971451d052caa831 | [] | 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 | 764 | py | questNum = int(input())
for quest in range(questNum):
n1n2 = input().split(' ')
n1 = int(n1n2[0])
n2 = int(n1n2[1])
s1 = input().split(' ')
s2 = input().split(' ')
for i in range(n1):
s1[i] = int(s1[i])
for j in range(n2):
s2[j] = int(s2[j])
p1 = 0
p2 = 0
ans... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
078f9c1b302d74b436331fcec70a91af4674d2ea | f66e6a3bc5f6eae570afa2013325d462f530cff6 | /core/seller/migrations/0020_auto_20210306_1009.py | 9cbeffc379f38f47209547f43ed97b420be855db | [] | no_license | Mahe07/vyavaharback | 3cb30e227d9e0c25c86ba4e20f9cafce054c4a2a | 4e35cac3b643197a78e420d34ea3f45cce368e46 | refs/heads/main | 2023-08-10T17:21:56.538518 | 2021-09-17T03:53:44 | 2021-09-17T03:53:44 | 407,386,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # Generated by Django 3.1.6 on 2021-03-06 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('seller', '0019_auto_20210306_1001'),
]
operations = [
migrations.AddField(
model_name='seller',
name='GST_commission... | [
"noreply@github.com"
] | Mahe07.noreply@github.com |
23b5f27bb1a0350685945804c329b647dfa28c29 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ene-Jun-2019/Ejemplos/Patrones de Diseño/strategy.py | 35f73bb89aa9b988c20e2b14fe555abd0e23aac4 | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 1,051 | py | import abc
class Context:
def __init__(self, strategy):
self._strategy = strategy
def context(self):
self._strategy.sort()
def set_strategy(self, strategy):
self._strategy = strategy
class Strategy(metaclass=abc.ABCMeta):
@abc.abstractmethod
def sort(self):
pas... | [
"anhell.death999@gmail.com"
] | anhell.death999@gmail.com |
fac4f2b518f628a2e53ff0ddf3d1d5613d4373eb | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/gui/scaleform/daapi/view/meta/browsermeta.py | 0274a83671990e9a045e8ed867bbf228e331291c | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # 2014.10.18 14:42:01 Central European Daylight Time
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/BrowserMeta.py
from gui.Scaleform.framework.entities.DAAPIModule import DAAPIModule
class BrowserMeta(DAAPIModule):
def browserAction(self, action):
self._printOverrideError('brows... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
2e45e4afa57edbe0a2068c79d6929b87ee5a18d1 | 5c6fc62dd057301907c83f3fc29349e3ee02a375 | /picking_invoice_pending/__openerp__.py | 9f6c7c7493c4b014bef424a744febf1d7981e250 | [] | no_license | Comunitea/custom_apolo | 45ce0c79d07269e02099e0bdfdad461d48b73f34 | d74cee261ea703fe5dc34dd33f374695f8d76b57 | refs/heads/master | 2021-03-22T04:38:21.738794 | 2015-12-28T12:31:01 | 2015-12-28T12:31:01 | 31,951,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Authors: Santiago Argüeso
# Copyright Pexego SL 2012
# Omar Castiñeira Saavedra Copyright Comunitea SL 2015
#
# This program is free software: you can redistribute it and/or modify
# it under the te... | [
"omarcs7r@gmail.com"
] | omarcs7r@gmail.com |
058531a00970d0ad1c88dd43821e6e0509a17daa | 72db77883a5d2d841908f67f85f395c614c53832 | /demo.py | cd2047c26df87a4f869e0714fc79d17b12aeb43c | [] | no_license | limo1995/atari-cma-es | c7045af05542a10aa7c479da40bd4c6d17466667 | 7f3a1693112dfa71306b95c628a58b16cfb34242 | refs/heads/master | 2021-09-24T14:03:10.787313 | 2018-10-10T02:57:04 | 2018-10-10T02:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | import models
import mentalitystorm.transforms as tf
import torchvision.transforms as TVT
from mentalitystorm.basemodels import MultiChannelAE
from mentalitystorm.runners import Run
from mentalitystorm.config import config
from mentalitystorm.policies import VCPolicyMultiAE, RolloutGen
from mentalitystorm.data_containe... | [
"duane.nielsen.rocks@gmail.com"
] | duane.nielsen.rocks@gmail.com |
959c221a758d984633a88e173de535bdbc2ce2a4 | 9c4850697d66c6119e1d0b1f6347c1ea1d5d1ebb | /devilry/thirdpartylibs/djangorestframework/tests/package.py | 4e1e23da0fa83946dc917366bb1345b093d1f662 | [
"BSD-2-Clause"
] | permissive | evestera/devilry-django | 7952e0d65f23af6c4dc2fd22fb97462e4231deac | 760a4ca1c40a7ac0d60f7675efa6919ffae585da | refs/heads/master | 2020-12-25T20:09:00.756243 | 2015-05-21T16:33:47 | 2015-05-21T16:33:47 | 36,460,383 | 0 | 0 | null | 2015-05-28T19:14:10 | 2015-05-28T19:14:09 | null | UTF-8 | Python | false | false | 337 | py | """Tests for the djangorestframework package setup."""
from django.test import TestCase
from devilry.thirdpartylibs import djangorestframework
class TestVersion(TestCase):
"""Simple sanity test to check the VERSION exists"""
def test_version(self):
"""Ensure the VERSION exists."""
djangorestfr... | [
"post@espenak.net"
] | post@espenak.net |
8ca177fd23012a8e8f97b04acebaeeaa67b2d729 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/Cases/2461/.mooctest/answer.py | ee1e496ff71961d6141dd1bb59c5ad82861e8bd9 | [] | 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 | 261 | py | class Solution:
def findMin(self, nums) -> int:
for i in range(len(nums)-1):
if nums[i+1] < nums[i]: return nums[i+1]
return nums[0]
b = input().split(',')
c= []
for i in b:
c.append(int(i))
s = Solution()
print(s.findMin(c)) | [
"382335657@qq.com"
] | 382335657@qq.com |
f175cb18b3e42357f3f0e429e996aca1a42426d7 | bb29dcc06b2f405e4e76d886ae5b60254fc13c3d | /web.py | 79299c4e85a8d72bd52a8d3370b2f1aa5af61755 | [
"MIT"
] | permissive | cientista/ua-parser-website | 330b66df4f4b878442b7af236c5a14f134e81aca | d0911c46baef8115c5504c4020300477c3a3162c | refs/heads/master | 2020-05-27T02:01:16.474172 | 2019-05-02T06:31:31 | 2019-05-02T06:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import json
from flask import Flask, render_template, request
from ua_parser import user_agent_parser
app = Flask(__name__)
@app.route("/")
def index():
ua = request.args.get('ua')
if ua:
parsed = user_agent_parser.Parse(ua)
parsed_encoded = json.dumps(parsed, indent=2)
else:
par... | [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
adf6d934419c355b36e68b81d02134ac7a49ae86 | 340f106a213c57d5621124187ca061690334364d | /ids_to_tfrecords.py | fa6365a73497f079182a9342bf5c1f1e3c84b5b3 | [] | no_license | sculd/financial-timeseries-prediction | c461bc7a7c8760ab090b8f53da50daa1f754da7f | c31784a63402580d0b04557e2ab29fc9a3126c9f | refs/heads/master | 2022-10-11T16:53:46.469168 | 2020-09-27T04:19:41 | 2020-09-27T04:19:41 | 209,095,902 | 0 | 0 | null | 2022-09-23T22:28:02 | 2019-09-17T15:52:12 | Python | UTF-8 | Python | false | false | 1,080 | py | import data.news.news_with_series_and_word_ids as news_with_ids
import sys
import tensorflow as tf
def _int64_feature(value):
return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
def _float_feature(value):
return tf.train.Feature(int64_list=tf.train.FloatList(value=[value]))
def _bytes_feature(... | [
"hjunlim@google.com"
] | hjunlim@google.com |
a26043b6ea7eb3b3799c888da1bdd4cb7d9183a7 | 9b018e9eac8d97fbcc1e76a69b95c994f79a6ea3 | /randomtest/migrations/0012_auto_20161022_0300.py | 48a3fcf8bd7d6e87f0cb8fb21a2ab32ff4a93869 | [] | no_license | hbgolze/contest-database | e39f269d7337652e7cdad03cc29827d4f729ec8f | 263385b438f7b7e1ab99062aad561ed0cec9c079 | refs/heads/master | 2023-06-26T21:30:08.246647 | 2023-06-11T02:34:41 | 2023-06-11T02:34:41 | 71,851,839 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-22 08:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('randomtest', '0011_auto_20161018_1942'),
]
operations = [
migrations.AlterF... | [
"hbgolze@gmail.com"
] | hbgolze@gmail.com |
cde73725aceafd00af8f2c1e6b8249f1fc874a29 | e0529f219e47a25d55bc2885d295a2567b2dad9e | /lyman/utils.py | 1796927c09136a85b94520a806b4ae6ebc3a152d | [
"BSD-3-Clause"
] | permissive | kastman/lyman | 062541e1e9b1fbe0434818d0b1f28fce0b1bb8d8 | 109ad309960637fcf10686809f61aa19fe77eb08 | refs/heads/master | 2021-01-12T22:37:57.917174 | 2017-09-11T18:58:07 | 2017-09-11T18:58:07 | 34,122,592 | 1 | 0 | null | 2015-04-17T14:55:42 | 2015-04-17T14:55:42 | null | UTF-8 | Python | false | false | 5,785 | py | import os.path as op
import subprocess as sp
import numpy as np
import nibabel as nib
from nipype.interfaces.base import BaseInterface
class LymanInterface(BaseInterface):
"""Enhanced Interface object that custom interface should inherit from."""
def __init__(self, **inputs):
super(LymanInterface, s... | [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
c8d40a97213711cc3933bc99f1589900311a3de2 | ab6996c3a3117cb64ba2805b1fd9cb0756f8ecbd | /Python/图像界面/a.py | 591f092d836dc2c9ec46d802223d31b6658f7dc3 | [] | no_license | LingFangYuan/Learning | ea8742e8f340ea337185d4b8c07bfe3b73fcfde8 | e71a3b38dca36de5427869b11341302deb6c55dd | refs/heads/master | 2021-06-30T16:46:22.424896 | 2020-10-19T01:13:40 | 2020-10-19T01:13:40 | 183,213,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | '''
1. 导入Tkinter包的所有内容
2. 从Frame派生一个Application类,这是所有Widget的父容器
3. 实例化Application,并启动消息循环
'''
from tkinter import *
class Application(Frame):
'''
pack()方法把Widget加入到父容器中,并实现布局。pack()是最简单的布局,grid()可以实现更复杂的布局。
在createWidgets()方法中,我们创建一个Label和一个Button,当Button被点击时,触发self.quit()使程序退出。
'''
def __ini... | [
"786173189@qq.com"
] | 786173189@qq.com |
8c7e2adbc22996b3fd30a7b6dc04ab0e1152afaa | 581489b1f77fcfb44aa5d21a3d9a85eec131a992 | /Q3/adaptivemedian.py | f082e040f017d163bfab5db18d9f91f9caa204b3 | [] | no_license | mohit1997/DIP_Assignment3 | 070ba27c5de2ac3daf97cc999356a6dff7b1e690 | 412bcc4df41e2ab821e9b4ea1368db7afa84f7d1 | refs/heads/master | 2020-04-22T01:13:07.169836 | 2019-02-10T17:54:37 | 2019-02-10T17:54:37 | 170,007,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
# from numpy import *
def addsnp(img, prob):
temp = img.copy()
matsnp = np.random.rand(temp.shape[0], temp.shape[1])
temp[matsnp < prob] = 0
temp[matsnp > 1-prob] = 255
return temp
def demo(target_array):
return int(np.median(target_array)), int(... | [
"goyal.mohit999@gmail.com"
] | goyal.mohit999@gmail.com |
4edbc6f0e883443c9ada413f038f5dcd236353ab | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-length-3-5.py | e801ec78b6058e3ed692bed75dc6f63281b3cde9 | [
"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 | 384 | py | from output.models.nist_data.list_pkg.unsigned_short.schema_instance.nistschema_sv_iv_list_unsigned_short_length_3_xsd.nistschema_sv_iv_list_unsigned_short_length_3 import NistschemaSvIvListUnsignedShortLength3
obj = NistschemaSvIvListUnsignedShortLength3(
value=[
63121,
62313,
61422,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
efa0fb0b08d91fe3a42a3457bb078348a8855c06 | c57439f0c98af370ace65f9d55ef5a457bedc531 | /ydk/models/ethernet/_meta/_Cisco_IOS_XR_ethernet_link_oam_cfg.py | 74282235af8ec7a26796e056d9e2d8daca2e4608 | [
"Apache-2.0"
] | permissive | myahmao/ydk-py | c932fbd8245e554227cce0fd723d9a22887b0c40 | 2f367d93f2088d4abdc2f2bb10ca4864952b458a | refs/heads/master | 2021-01-14T11:32:29.064494 | 2016-03-15T22:44:05 | 2016-03-15T22:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,396 | py |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum, _dm_validate_value
from ydk.types import Empty, YList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFEREN... | [
"manradha@cisco.com"
] | manradha@cisco.com |
dd043fb3cbfb66d0d34258a4450127a65ceb0a86 | 1031b8594d4aa515efef1b09fec7ab0574a9c9ee | /ctf4b/misc/writeme/for_root/solve.py | 64bb1141e876426174d23ad85d2113fbff8fc999 | [] | no_license | kam1tsur3/2021_CTF | 0e322809dc95adab99e19f13dffbf209c5a923a1 | ee12843cd7901488730c41c8b313fc912cff9e46 | refs/heads/master | 2023-08-29T21:06:53.101057 | 2021-10-26T13:56:49 | 2021-10-26T13:56:49 | 328,184,763 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #!/usr/bin/python3
from pwn import *
import sys
#import kmpwn
sys.path.append('/home/vagrant/kmpwn')
from kmpwn import *
# fsb(width, offset, data, padding, roop)
# sop()
# fake_file()
#config
context(os='linux', arch='i386')
context.log_level = 'debug'
#FILE_NAME = ""
HOST = "writeme.quals.beginners.seccon.jp"
PORT... | [
"kam1tsur3@gmail.com"
] | kam1tsur3@gmail.com |
8cd63af1169d1fcf9e6125f76cc58d8141c7871d | bc441bb06b8948288f110af63feda4e798f30225 | /pipeline_sdk/api/provider/create_pb2.pyi | 8002306b0b0a1751fea438b6d5e9ee7a1d2bde36 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,201 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from pipeline_sdk.model.pipeline.provider_pb2 i... | [
"service@easyops.cn"
] | service@easyops.cn |
470106cd4abe3353497fb7c902be5c4d70ba8175 | 660e5b74a1cf44adce42c142e8ea92dc72077f86 | /app/main/forms.py | ea8c26e74f1bf3267439e012f48481f20b5f62c8 | [
"MIT"
] | permissive | vincentouma/pitch-hub | d48640572a9ee99d1aaf870663c9be879b0227fc | e6549d5607656be053928c8f04257be3fc1c8cfa | refs/heads/master | 2022-09-30T04:34:09.102432 | 2019-08-07T06:12:24 | 2019-08-07T06:12:24 | 200,806,879 | 0 | 0 | null | 2022-09-16T18:07:18 | 2019-08-06T08:12:39 | Python | UTF-8 | Python | false | false | 854 | py |
from flask_wtf import FlaskForm
from wtforms import SubmitField,TextAreaField, RadioField
from wtforms.validators import Required
from wtforms import ValidationError
class PitchForm(FlaskForm):
content = TextAreaField("Your Pitch ?",validators=[Required()])
category = RadioField('PitchListing', choices = [('... | [
"vinceoumah@gmail.com"
] | vinceoumah@gmail.com |
400c494c3e5867d7b3257265ba44a3ceebe744a6 | 61f8d25a8ee2afbd3e9d8e79621ff5a2ef0c570c | /amy/workshops/fields.py | 6825e2c715561ed4bd648c3b495b2d8e744c990b | [
"MIT"
] | permissive | annajiat/amy | 40380c5726255fc4cc6ad60c20c9946a38b8bf38 | 13e422ba743a9b5a2d437b4da19625f03e8aeec5 | refs/heads/develop | 2022-05-21T17:03:32.094791 | 2019-12-13T11:22:25 | 2019-12-13T11:22:25 | 227,821,578 | 0 | 0 | MIT | 2019-12-13T11:22:27 | 2019-12-13T11:09:14 | null | UTF-8 | Python | false | false | 6,143 | py | from django_select2.forms import (
Select2Widget as DS2_Select2Widget,
Select2MultipleWidget as DS2_Select2MultipleWidget,
ModelSelect2Widget as DS2_ModelSelect2Widget,
ModelSelect2MultipleWidget as DS2_ModelSelect2MultipleWidget,
Select2TagWidget as DS2_Select2TagWidget,
)
from django.core.validato... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
8cdaf71a142ccfe0cfd57bc1020bbaf7ad2bbd60 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/cs61a/untarred backup/182.py | 3b31cc2ab912f0523f7fde4cccbd92a78b7f0dc9 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 969 | py | def num_common_letters(goal_word, guess):
"""Returns the number of letters in goal_word that are also in guess.
As per the rules of the game, goal_word cannot have any repeated
letters, but guess is allowed to have repeated letters.
goal_word and guess are assumed to be of the same length.
goal_word... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
75f83ebc463692cc3311e47af2d58ab9bb6ec09a | 3e63befd66d0f8fddaba4ce8c1ed73525c32a5aa | /venv/Lib/site-packages/mediapipe/__init__.py | 18313dee95ea374467c4c87e1029b3bee7e266c5 | [
"MIT"
] | permissive | tanvirtareq/awesome-hand-gesture-detection | b0ecc6636e810412950b705e6ef5c1d83099b547 | ccc836557b730cf34861301712de0de3eec1076d | refs/heads/main | 2023-06-04T02:24:34.452783 | 2021-06-18T11:36:39 | 2021-06-18T11:36:39 | 389,102,297 | 1 | 0 | MIT | 2021-07-24T13:10:45 | 2021-07-24T13:10:45 | null | UTF-8 | Python | false | false | 657 | py | """Copyright 2019 - 2020 The MediaPipe 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 or agreed to in wr... | [
"airriaislam@gmail.com"
] | airriaislam@gmail.com |
284051124955cde290278a36bb4281c6ec7b0c1f | 0dc70961312cfc88e8156a1a5043b3096b377d47 | /leetcode1/isSymmetric.py | 4edb5be3b8fde87912cc8d29e492e3fa6105f74a | [] | no_license | lizyang95/leetcode | 881217bf446caa533c5dbc98638db85e2831fc8b | 16e8a7935811fa71ce71998da8549e29ba68f847 | refs/heads/master | 2020-03-21T11:43:05.910036 | 2018-09-28T15:25:42 | 2018-09-28T15:25:42 | 138,518,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # Definition for a binary tree node.
import collections
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if... | [
"yy4@cs.cmu.edu"
] | yy4@cs.cmu.edu |
01b0330ecaa897757aec3ba087c86a68c68d4467 | ddf52813dc439eb931f642f6538fce97e0bacc2e | /setup.py | de41cc2b1a56a4e8a28253be5e785c27e25521f7 | [] | no_license | akashadhikari/SpellNepaliNumber | 935a82b1050be333a3a96c096a6f2bdc5799397b | 04334d5b9f51a4c4a47c3a9600c8e966c58b8393 | refs/heads/master | 2020-04-01T06:06:39.644612 | 2018-10-08T10:14:28 | 2018-10-08T10:14:28 | 152,933,566 | 1 | 0 | null | 2018-10-14T02:50:44 | 2018-10-14T02:50:43 | null | UTF-8 | Python | false | false | 922 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()]
# description = "Commandline tool to listen all radio stations of Nepal"
# long_description = open("README.rst").read()
classifiers = ['... | [
"ctalluitel@gmail.com"
] | ctalluitel@gmail.com |
7794e801dd2dc341cf577b374cbd03d0a07ea2ff | 502e97f0ec4f287b8280a546e7f2555ff3a5a1fd | /cnn_3d/main_allSamples.py | d27a1c9f9b73ba49a68d001d76d793350b92d210 | [] | no_license | carlasailer/cnn_ct_pet | d350692be03432e025e33db6296ac33b36bedf08 | 4e256bb73f7ea0ab046c231762001b9f3535bb00 | refs/heads/master | 2020-12-18T23:11:24.048337 | 2020-01-22T10:40:52 | 2020-01-22T10:40:52 | 235,549,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 4 11:02:35 2018
@author: s1287
"""
import os
import time
import datetime
from scripts_CNN.model_creation import Model_Li1
#from scripts_CNN.data_creation import Dataset
from scripts_CNN.data_creation_meddata import Dataset_MedData
from scripts_CNN... | [
"40063163+carlasailer@users.noreply.github.com"
] | 40063163+carlasailer@users.noreply.github.com |
5d94ee32d2f13dd3088229a40508eabfef487aa3 | 9dcac6f93c2e460009e3355976989adf3bf1af68 | /NextMeeting.py | be0c2848228955655f87d1e815c05ba202d6f2b8 | [] | no_license | lpham4/PythonPractice | 99a4db621a6e524b2264314f1d4d47e2474260f9 | fac0931d09441ad03c4b34abae01f928342d53d7 | refs/heads/main | 2023-01-02T11:56:39.192524 | 2020-10-21T23:45:52 | 2020-10-21T23:45:52 | 306,173,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | # Class: 1321L
# Section: 02
# Term: Fall 2018
# Instructor: Professor Malcolm
# Name: Ly Pham
# Lab: Python
day = int(input("Enter today's day: "))
days = int(input('Enter days until meeting: '))
if day == 0:
print('Today is Sunday')
elif day == 1:
print('Today is Monday')
elif day == 2:
print('Today is... | [
"lpham4@students.kennesaw.edu"
] | lpham4@students.kennesaw.edu |
d084a33ec6dda9c755028bb84f0fd326b9c56b6d | beb0cbbfc6b910c6eedafc6b6e986e2b48cb260a | /cloudshell/networking/cisco/iosxr/command_actions/add_remove_vlan.py | cebc6d3a1288dc67fdf2c50377733eb2cd76de3c | [] | no_license | QualiSystems/cloudshell-networking-cisco-iosxr | 31a464608c9a382166e6828d6fae34cda75edd44 | cc7a12808a3d6146c7277d1c69b8fddd10010ec7 | refs/heads/master | 2023-05-06T23:54:00.527717 | 2023-04-26T00:47:14 | 2023-04-26T00:47:14 | 347,954,857 | 0 | 0 | null | 2023-04-26T00:47:15 | 2021-03-15T12:10:39 | Python | UTF-8 | Python | false | false | 2,038 | py | from cloudshell.cli.command_template.command_template_executor import (
CommandTemplateExecutor,
)
from cloudshell.networking.cisco.command_actions.add_remove_vlan_actions import (
AddRemoveVlanActions,
)
from cloudshell.networking.cisco.command_templates import (
add_remove_vlan as vlan_command_template,
)... | [
"anton.p@qualisystems.com"
] | anton.p@qualisystems.com |
1811bfd210cdbdc3d327ce32a5ca4946b3cc3247 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/131495_lazy_attributes/recipe-131495.py | 874a7af85b7f5574564b52b2f09ea5755b13849d | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 1,432 | py | #
# first solution:
#
class sample(object):
class one(object):
def __get__(self, obj, type=None):
print "computing ..."
obj.one = 1
return 1
one = one()
x=sample()
print x.one
print x.one
#
# other solution:
#
# lazy attribute descriptor
class lazyattr(object):... | [
"betty@qburst.com"
] | betty@qburst.com |
57581e21464b436ecef0539ec631f309d19d2e4a | 1a949f20cafe328c5ad145659903e8dc5d974a76 | /pages/urls.py | 44251d6aa86a15c40c48679c4545fe1989989b61 | [] | no_license | Fabricourt/plotx | 7154be9153ab532796a16a1de3125276913fca97 | b2a526d4a9236217978a48a997b3b425cd40c0a9 | refs/heads/master | 2022-12-11T18:57:36.631087 | 2020-07-07T17:22:50 | 2020-07-07T17:22:50 | 230,000,109 | 0 | 1 | null | 2022-12-08T03:27:54 | 2019-12-24T20:25:39 | JavaScript | UTF-8 | Python | false | false | 515 | py | from django.urls import path
from django.views.generic import RedirectView
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('about', views.about, name='about'),
path('homework', views.homework, name='homework'),
path('gallery', views.gallery, name='gallery'),
path('mo... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
c56cffdde03bab85092fdc019d0e6bff748a33d7 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /mysqldemo/创建表.py | 7062a2f4c4027ad264a212153fdf7e2a85d24ed8 | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Wayne
import pymysql
db = pymysql.connect("127.0.0.1", "root", "0831", "studb")
cursor = db.cursor()
sql = "create table teacher(" \
"id int not null auto_increment primary key," \
"name varchar(20) not null," \
"age int not null)"
cursor.... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
e2b116150dae39a52c16e8b225e000bc2dc8f3b4 | fdedfbc1290016ae293edcc41df96d0a3fb8a99c | /code_backup/import_test.py | 394e1b10f06e2e12afa69c34918b7f0bc8fe5a69 | [] | no_license | Hsingmin/machine-learning | 5d798ff974429fccb84ad61b2f72f4bb375c80e3 | a554d9c2324b5daf0dde4c78f4a9b6e6b630e413 | refs/heads/master | 2021-01-23T18:47:51.153195 | 2018-06-14T14:48:09 | 2018-06-14T14:48:09 | 102,808,183 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #coding:utf-8
import ocr.keys as keys
extern = 'extern massage...'
def show_keys():
print('__ import keys in same package __')
characters = keys.alphabet[:]
print(characters[0:100])
print(extern)
| [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
4efe234a9da2c91c8a2c5dbc01f699b952539852 | 2e1a1d6d4ffe9da205413cbd395beb98b84369a3 | /run_benchmark.py | 50ac0f3b2519575b788eb1483b5c9b322199dd77 | [] | permissive | BertrandBordage/django-tree | 068838cb604a47d705941813c291fa25094e4238 | ee8f9bbdb7dbe7d78a5b5c2d3174cc9c3d166171 | refs/heads/master | 2023-07-09T23:24:51.401239 | 2023-07-09T14:08:02 | 2023-07-09T14:08:02 | 52,733,318 | 84 | 11 | BSD-3-Clause | 2022-06-21T21:09:17 | 2016-02-28T17:22:19 | Python | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/env python
import argparse
import os
import django
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--run-django-tree-only', action='store_true')
parser.add_argument('--db-optimization-interval', type=int, default=100)
parser.add_argument('selected_tests'... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
5e2045a72218448c42c0388df9e8a06f6034e419 | a998fa930f5483fdef4770ff4c9fa6edcbbf159c | /01_sample_search_and_return/05_decision_to_go.py | f381c800e801be121fd6986c7df02981afa03f54 | [] | no_license | lmquan1609/robot | dde9cc86d61b0ff88397bb490423932acc8b94e7 | 927d4d387fc1734b11147f0caf8a768fa5fb6093 | refs/heads/master | 2020-12-02T00:33:17.800436 | 2019-12-31T09:48:07 | 2019-12-31T09:48:07 | 230,830,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import cv2
from decision_extra_functions import *
# Define a function to convert from cartesian to polar coordinates
def to_polar_coords(xpix, ypix):
# Calculate distance to each pixel
dist = np.sqrt(xpix ** 2 + ypix ** 2)
... | [
"ITITIU15033@student.hcmiu.edu.vn"
] | ITITIU15033@student.hcmiu.edu.vn |
d1900ff21a19661ac3e69e12f66c9c60ad141073 | c838b6a37a7499e184bb892cd40f2f1fbb79002d | /Livro Python/CursoPython/progs/p018_funcoes_pre_definidas.py | a59c499ce4fec27ecd469eb002ad4ca22052a29c | [] | no_license | danbailo/Python | f2920dd420a9ead29e6f38b64f0b38af0d1b5dbf | 3e3113d26bf9aee39e1ab4a3b2881c4c328143f3 | refs/heads/master | 2021-07-24T02:13:41.612337 | 2020-05-14T22:58:32 | 2020-05-14T22:58:32 | 169,300,125 | 1 | 1 | null | 2019-09-03T15:20:29 | 2019-02-05T19:35:09 | Python | UTF-8 | Python | false | false | 837 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 24 13:27:19 2019
@author: notebook
"""
#P018: funções pré-definidas
#funções numéricas
n1=100
n2=3.141592653
n3=9.99
print(abs(1000), abs(-500), abs(2 * -2.5), abs(0)) #1000 500 5.0 0
print(pow(n1,2)) #10000
print(ro... | [
"danbailoufms@gmail.com"
] | danbailoufms@gmail.com |
b00b867066a7fc05e9273233d2367e6c09c2f814 | 8698757521458c2061494258886e5d3cdfa6ff11 | /argo/core/plotComparisonsCurves-by-model.py | f1dfe25255275fc69e13974848d02a4467f90690 | [
"MIT"
] | permissive | ricvo/argo | 546c91e84d618c4bc1bb79a6bc7cba01dca56d57 | a10c33346803239db8a64c104db7f22ec4e05bef | refs/heads/master | 2023-02-25T01:45:26.412280 | 2020-07-05T22:55:35 | 2020-07-05T22:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import argparse
from argo.core.utils.PlotCurves import PlotCurves
parser = argparse.ArgumentParser(description='Plot curves from different txt log files to compare experiments', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('conf_file', help='The config file with the details of the exper... | [
"volpi@rist.ro"
] | volpi@rist.ro |
e74e4c2c954fee237c5bcee61f390972ef165d37 | 880d9cc2704f7de649ad4455dd7ec2806b6a9e95 | /Day05/daffodils_number.py | c2baf5ed048155e457be87ab63511d532c27bf15 | [] | no_license | shunz/Python-100-Days_Practice | 14795757effcff50a4644f57c5c109fa1c9c38ac | 82f508ff6911ce3aa5c5a69cd481a6cc87f02258 | refs/heads/master | 2020-12-26T18:52:32.755384 | 2020-04-07T15:49:36 | 2020-04-07T15:49:36 | 237,604,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | '''
找出所有水仙花数
Ver: 0.1
Auther: Shunz
'''
for num in range(1000,10000):
sd = single_digits = num % 10
td = ten_digits = num // 10 % 10
hd = hundred_digits = num // 100 % 10
thd = thunsand_digits = num // 1000
if num == sd ** 4 + td ** 4 + hd ** 4 + thd ** 4:
print(num)
| [
"rockucn@gmail.com"
] | rockucn@gmail.com |
31f06b0c3f001267f808fab05e9a9c1dd91fb836 | 60044c76b631e622edb28f3a74971ce06211fac5 | /Python-for-Everybody/Python-Network-Data/networked-programs/urlwords.py | a00af7d0edd395ad9d324c5bbac994006a77943e | [] | no_license | NestorMonroy/Courses-coursera | 8d45a858c79567d74f013ac27ac33d47e43abb96 | 98ac1aa5bb0cd9da5cea5be02995d5b65c779201 | refs/heads/master | 2023-08-14T13:36:07.348994 | 2021-09-22T06:13:57 | 2021-09-22T06:13:57 | 327,753,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import urllib.request as request
fhand = request.urlopen('http://data.pr4e.org/romeo.txt')
counts = {}
for line in fhand:
words = line.decode().split()
for word in words:
contador[word] = counts.get(word, 0) + 1
print(counts)
| [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
0ace7d7d527c28835ae59194c09c1d32648d05c1 | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/EXAMS/aug_16_2020/project/software/software.py | 0c54a9287d2940f00a6ad5448f4e70e830ae1154 | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | class Software:
def __init__(self, name: str, type: str, capacity_consumption: int, memory_consumption: int):
self.name = name
self.type = type
self.capacity_consumption = capacity_consumption
self.memory_consumption = memory_consumption
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
50a595efd00708731c461b647a40b283b5ad46fa | 2420a09930fcc1a0d3c67a0791be70ddee418f4a | /House_Robber.py | 8efb6e183657f26dcceb82ff35a604d6ee75a55c | [] | no_license | Superbeet/LeetCode | eff8c2562fb5724b89bc2b05ab230a21b67a9e5a | a1b14fc7ecab09a838d70e0130ece27fb0fef7fd | refs/heads/master | 2020-04-06T03:34:10.973739 | 2018-02-13T00:57:06 | 2018-02-13T00:57:06 | 42,485,335 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
size = len(nums)
if size==0:
return 0
if size==1:
return nums[0]
s = [0 for i in range(size)]
s[0] = nums[0]
s[1] = max(nu... | [
"aslan.yeh2010@gmail.com"
] | aslan.yeh2010@gmail.com |
9667831ff9441ba8ecb65a87e049995c3bc1b423 | 52ad58b5412f9124822283d168391e5e2b8fa150 | /MySQL/day60/练习题(六)05.py | 7eaba43c215cf40936d0adc65577cd550d254437 | [] | no_license | JiangHuYiXiao/PythonStudy | 69ad9795faaf24a6166ab21cae564f6461e1363e | aeebce2cacbf3757d25c8c4d24d15639e0bb8e37 | refs/heads/master | 2021-08-17T16:54:43.477502 | 2021-08-11T01:06:11 | 2021-08-11T01:06:11 | 153,078,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | # -*- coding:utf-8 -*-
# @Author : 江湖一笑
# @Time : 2019/12/6 8:24
# @Software : Python_study
# @Python_verison : 3.7
'''
-- 21、删除学习“李平”老师课的score表记录
DELETE from t_score score where score.score_course_id in(
select course.course_id from t_teacher teacher inner join t_course course on teacher.teache... | [
"1163270704@qq.com"
] | 1163270704@qq.com |
5c7b5be0c3377aee4f27e5cb4f47f95ad65c5291 | e03d98c557a8e71d4c55d5e67b6381188213cfc4 | /tests/test_async_aiohttp.py | b367c7948e4b45730fcf54804f8e2e86d3734436 | [
"MIT"
] | permissive | lericson/python-engineio | a0ab138d6535fc75b04df5ddb1f8dee057926fc9 | b8ac261440c8e55826f7743131e65c0d2e2d1dc8 | refs/heads/master | 2021-01-19T03:59:56.972405 | 2017-04-05T18:57:46 | 2017-04-05T18:57:46 | 87,345,583 | 0 | 0 | null | 2017-04-05T18:54:56 | 2017-04-05T18:54:56 | null | UTF-8 | Python | false | false | 2,262 | py | import sys
import unittest
import six
if six.PY3:
from unittest import mock
else:
import mock
if sys.version_info >= (3, 5):
from aiohttp import web
from engineio import async_aiohttp
@unittest.skipIf(sys.version_info < (3, 5), 'only for Python 3.5+')
class AiohttpTests(unittest.TestCase):
@mock... | [
"miguel.grinberg@gmail.com"
] | miguel.grinberg@gmail.com |
4404bd2de276bf325541d1d7e6eedbd11d469731 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/parcoords/_labelfont.py | 0071e780aa370bfd67d410d8abb3787b40b3ce5f | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 1,404 | py | import _plotly_utils.basevalidators
class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name='labelfont', parent_name='parcoords', **kwargs
):
super(LabelfontValidator, self).__init__(
plotly_name=plotly_name,
parent_nam... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
21b3fee356fb5ab145b84d2004d1ad7fcd8e7084 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GLES2/DMP/program_binary.py | 0b25e6095d1a0667f2ba60eac77ec7424b8d7956 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 727 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
# End users want this...
from OpenGL.raw.GLES2._types import *
from OpenGL.raw.GLES2 import _errors
from OpenGL.constant import Constant as _C
import... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
13824e5db65b787a297ff8e433c656e2564c8486 | ac42f1d918bdbd229968cea0954ed75250acd55c | /admin/dashboard/openstack_dashboard/test/integration_tests/pages/identity/projectspage.py | b2821020f8449b27d7e86f8c037a8f0a2716dcf4 | [
"Apache-2.0"
] | permissive | naanal/product | 016e18fd2f35608a0d8b8e5d2f75b653bac7111a | bbaa4cd60d4f2cdda6ce4ba3d36312c1757deac7 | refs/heads/master | 2020-04-03T22:40:48.712243 | 2016-11-15T11:22:00 | 2016-11-15T11:22:00 | 57,004,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"rajagopalx@gmail.com"
] | rajagopalx@gmail.com |
b52e15cdb511e310d4d1e83f61679dfc82dd7170 | c52a0caadda820b7bdb506cfb8820310ba96027b | /Python网络爬虫基础与实战教程/13_selenium详解/12_cookies.py | 48cff2b82b0391920a6754126a23c6ca3b508e25 | [] | no_license | liangjinhao/Web_Spider_Practice_Code | 1d29939013358889226ce2be61c9d2dc4ec51bd2 | dda804ba4f4f32cf4325d56900556525ffaa9600 | refs/heads/master | 2020-04-23T19:10:43.853205 | 2018-07-14T12:39:35 | 2018-07-14T12:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# author: Fangyang time:2017/12/18
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://www.zhihu.com/explore')
print(browser.get_cookies())
browser.add_cookie({'name':'name','domain':'www.zhihu.com','value':'germey'})
print(browser.get_cookie... | [
"fangyang.jing@hotmail.com"
] | fangyang.jing@hotmail.com |
6198fa221a84d22f9942ff988ccd09cd61fcbc2e | 06f0ae3ecaaf47b1c23e231838afa524d8446f5e | /lobby/migrations/0002_contestbanner_promotionbanner.py | 763a0cde3147cff22c6b1eb20d6cfed4268a5ba5 | [] | no_license | nakamotohideyoshi/draftboard-web | c20a2a978add93268617b4547654b89eda11abfd | 4796fa9d88b56f80def011e2b043ce595bfce8c4 | refs/heads/master | 2022-12-15T06:18:24.926893 | 2017-09-17T12:40:03 | 2017-09-17T12:40:03 | 224,877,650 | 0 | 0 | null | 2022-12-08T00:02:57 | 2019-11-29T15:20:17 | Python | UTF-8 | Python | false | false | 2,784 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('contest', '0002_contest_currentcontest_entry_historycontest_livecontest_lobbycontest_upcomingcontest'),
('lobby', '0001_initial'),
... | [
"cbanister@coderden.com"
] | cbanister@coderden.com |
fb9fd0867506e770a516bef3dadb36b1c421312d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1830.py | 2f0e9516d36c5abe37be6a6931f4c8761a1f70dd | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | #!/usr/bin/env python
from __future__ import absolute_import
import sys
import unittest
from StringIO import StringIO
sample_in = \
"""
5
4 2
5 2
6 2
1000 1000
1000 1
"""[1:]
sample_out = \
"""
Case #1: 1 0
Case #2: 1 0
Case #3: 1 1
Case #4: 0 0
Case #5: 500 499
"""[1:]
def run(in_buf=sys.stdin, out_buf=sys.stdou... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6375c702b93fc71da45a77ff44b3349477fc0279 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /base_import_module/tests/test_module/__manifest__.py | 260330237ca86dcd58e9202e77e1189a162ad12f | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
{
'name': 'Test Module',
'category': 'Website',
'summary': 'Custom',
'version': '1.0',
'description': """
Test
""",
'depends': ['website'],
'data': [
'test.xml',
... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
bff3a7e8667e7ffb5d025678ec5459419639193c | 8f439e50c741483ffefd5bad16f11d4b60da8fe9 | /examples/gcn2_cora.py | 4a6e2dc914712dafa0e2c6fbfe309024bea5cb3d | [
"MIT"
] | permissive | sumanthratna/pytorch_geometric | 19d66b6cc874fbce9207efc204a0ed1f9bb04d88 | 9c6a069c995cac38e4f3a2f1e9cfc7cebac889c6 | refs/heads/master | 2023-08-29T09:58:33.807755 | 2021-09-08T16:00:09 | 2021-09-08T16:00:09 | 404,423,682 | 2 | 0 | MIT | 2021-09-08T20:58:23 | 2021-09-08T16:44:15 | null | UTF-8 | Python | false | false | 2,928 | py | import os.path as osp
import torch
from torch.nn import Linear
import torch.nn.functional as F
from torch_geometric.datasets import Planetoid
import torch_geometric.transforms as T
from torch_geometric.nn import GCN2Conv
from torch_geometric.nn.conv.gcn_conv import gcn_norm
dataset = 'Cora'
path = osp.join(osp.dirnam... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
5ab8fe9166c1328be78dd07c6a721ea87a295e3b | 16c251444a3010a88d1e90bb56df46bcb0fe5ea9 | /verce-hpc-pe-new/src/test/misfit_preprocessing/stagein_graph.py | f87a4956c0ec9e41c5d576f79e4baff7e985c75d | [
"MIT"
] | permissive | rosafilgueira/VERCE | b680d708df0e77e2984c29c89a787e30a595991d | a39a6c963fd6f7f5ef5244245b92ee36f6335399 | refs/heads/master | 2020-04-08T05:39:56.857491 | 2018-07-04T14:40:48 | 2018-07-04T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | from dispel4py.workflow_graph import WorkflowGraph
from dispel4py.provenance import *
from dispel4py.seismo.seismo import *
from dispel4py.seismo.obspy_stream import createProcessingComposite, INPUT_NAME, OUTPUT_NAME
from dispel4py.base import SimpleFunctionPE, IterativePE, create_iterative_chain
import json
#from disp... | [
"spinuso@knmi.nl"
] | spinuso@knmi.nl |
6d628b9f80717b0facad581feac48833a9dfd404 | f40086079bdcb465da32bfc4c244d0a699a735e3 | /informatics/series 4/Andrianampoinimerina.py | 0fb70d79e09a560f660b3642beb5efc03ad5a42b | [] | no_license | isk02206/python | e6dfc1e219ae3a51bde80fed75412bed98b3defe | b2fc6d1aa1155c0758883677eb2e37d9f92a4382 | refs/heads/master | 2022-12-06T15:14:55.264792 | 2020-09-02T01:02:11 | 2020-09-02T01:02:11 | 292,142,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | line = int(input())
counter = 0
for i in range(line):
#print(i)
word = str(input())
if i == 0:
n = ord(word.lower()[0])
n_last = ord(word.lower()[-1])
#print(n, n_last)
if n != n_last:
print(word)
break
if i != 0:
n += 1
n_last += 1
... | [
"67949037+isk02206@users.noreply.github.com"
] | 67949037+isk02206@users.noreply.github.com |
213ff08fae05c42185868d94f5c1e285d33ba969 | 3fc49cac255c54c6512c2b60c4fe097b9d383f55 | /cube110.v3/libs/data_shelve.py | 66d490c7f28fd3e50fbfe16b6d188279d14fc25a | [] | no_license | zaswed76/all_cubes110_resorce | c029a16117866dd468b93ffb1cfdb66dd3612f1b | 79ff65fdd04b70bddd83128c8e7d1096f7235b31 | refs/heads/master | 2021-01-10T01:43:14.379636 | 2015-12-18T17:10:49 | 2015-12-18T17:11:05 | 48,290,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import shelve
import paths
# from libs.image_geometry import ImageGeometry
#
# if __name__ == '__main__':
# data_path = os.path.join(paths.root,
# r"data\cls_shl\secondary_geometry_shl")
#
#
# geometry_img = {}
# dat... | [
"zaswed76@gmail.com"
] | zaswed76@gmail.com |
a29d0f8460dc4e59b8bbf575268a9682fa68df88 | 3a0900611a7127e74d08cb9e5e2589ac3cde9114 | /dbtest.py | 293a1aec60c8c4d3a080d899501a5a7613b0e2f5 | [
"Apache-2.0"
] | permissive | dpshorten/EC14-main | c3c83dce1be9974cc2e3a6c8f48df91e24dfbfdd | 43a62617d21f5010702c025d5538814dfb624e6c | refs/heads/master | 2021-01-15T18:26:13.698527 | 2015-01-16T20:42:48 | 2015-01-16T20:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | from db import DB
db = DB("ec141:ec141@192.168.0.44/ec141", "test", 100, 50)
db.dropTables()
db.createTables()
# quit()
print(1)
id1 = db.createIndividual(1,2,3)
id2 = db.createIndividual(2,3,4)
id3 = db.createIndividual(3,4,5)
id4 = db.createIndividual(0,1,2)
id5 = db.createIndividual(0,1,1)
print(2)
print("id:"+str(... | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
ab5418c96cbee9740bff5f0d0b71eef02f8d6620 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-155_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467489/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_3/run_cfg.py | 90591f7bc9bd3eecf40cc3883c9708618391825f | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-155_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467489/HTT_24Jul_newTES_manzoni_U... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
16ee7d3f51d71bb65d77726919199c6b25557acc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03291/s401672893.py | 0de631d5255eb668a211bf827e142379be3333c5 | [] | 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 | 1,028 | py | #!/usr/bin/env python3
import sys
MOD = 1000000007 # type: int
def solve(S: str):
dp = [[0 for j in range(4)] for i in range(len(S) + 1)]
STR = "XABC"
dp[0][0] = 1
for i in range(len(S)):
c = S[i]
for j in range(4):
next = dp[i][j]
if c == "?":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
79b5efdf6370d71bd53e9c32b488757c4e7680f2 | 942583ae8089c5d35c2344ad1d7ae33012349e98 | /lecture-13/removeOuterParentheses.py | f943f5b86a3b516bcf530aaf948aed189eac30df | [] | no_license | ANAMIKA1410/DSA-Live-Python-March-2021 | 1d6b836fcf3828fc1f2e800e793a7e3b71c1b4b4 | 3ffe49060b773a51fbbc0df97df8d1bc29a93afe | refs/heads/main | 2023-06-03T04:11:24.648040 | 2021-06-18T06:15:37 | 2021-06-18T06:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # https://leetcode.com/problems/remove-outermost-parentheses/
class Solution:
def removeOuterParentheses(self, S: str) -> str:
count = 0
solution = []
for ch in S:
if ch == "(":
if count > 0:
solution.append("(")
count += 1
... | [
"anujgargcse@gmail.com"
] | anujgargcse@gmail.com |
5b6e25476a7535b980b893d46f952b3f3ddf17ed | bc72bffe27ad7e484283f4aeb33eed260311b301 | /6term/isob/Lab2/AS_server.py | fc060741812d9fbde4afeb5e6942458166e68a01 | [] | no_license | UladzislauB/university-monorepo | 2bb8cd88211b979908ab5b5203d26ef08d9bb983 | 5436fef4301e172d28b3548b8e270a6130ad64b6 | refs/heads/master | 2021-08-19T00:40:35.552857 | 2020-12-11T12:44:04 | 2020-12-11T12:44:04 | 233,095,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import database
import datetime
import DES
def AS_server(c_id: str):
if c_id not in database.clients:
return {}
k_c = database.clients[c_id]
tgs_id = database.tgs_id
k_c_tgc = database.keys[(c_id, tgs_id)]
tgt = {
'c': c_id,
'tgs': tgs_id,
'time': datetime.datetim... | [
"devuladblr@gmail.com"
] | devuladblr@gmail.com |
85bfb89a56d119a13a6f1153053a53772e0223ee | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CSEU3-DataStructures-GP/test_dll_queue.py | 1eb4e8e8557375db7d460e47d829a9a4eaa707f7 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,442 | py | import unittest
from dll_queue import Queue
class QueueTests(unittest.TestCase):
def setUp(self):
self.q = Queue()
def test_len_returns_0_for_empty_queue(self):
self.assertEqual(self.q.len(), 0)
def test_len_returns_correct_length_after_enqueue(self):
self.assertEqual(self.q.len(... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
972927e1509227023dc76a553c145238805ed528 | f5745692fc8843f43da328b1f205b6b51de929bc | /users/migrations/0002_auto_20201125_0318.py | 16cbeda9b1bac567b6c6ec789107b1d692ac1561 | [] | no_license | crowdbotics-apps/asile-22963 | e9b5160cd09af70e9d1c0f377dd40b116e8693cd | 869c4560839d0e9191e87465c35759f0aaf4d4e8 | refs/heads/master | 2023-01-28T07:16:35.309960 | 2020-11-25T08:09:40 | 2020-11-25T08:09:40 | 315,815,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.17 on 2020-11-25 03:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="user",
name="name",
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b4bc07b4f02bc5287540025a51805e38c54c784 | 641f76328bfeb7e54f0793a18c5b7c00595b98fd | /packages/qapi/qapi/serializers/fields.py | 111e482f8ec89fa948d60c5ed78aa6b33e66cbe5 | [
"Apache-2.0"
] | permissive | lianxiaopang/camel-store-api | 1d16060af92eb01607757c0423377a8c94c3a726 | b8021250bf3d8cf7adc566deebdba55225148316 | refs/heads/master | 2020-12-29T13:23:18.118617 | 2020-02-09T08:38:53 | 2020-02-09T08:38:53 | 238,621,246 | 0 | 0 | Apache-2.0 | 2020-02-07T14:28:35 | 2020-02-06T06:17:47 | Python | UTF-8 | Python | false | false | 2,999 | py | """
@author: 郭奕佳
@email: gyj@gzqichang.com
"""
from __future__ import unicode_literals
import json
from collections import OrderedDict
from urllib.parse import urlparse
from django.core.exceptions import ObjectDoesNotExist
from django.utils.encoding import uri_to_iri
from django.urls import NoReverseMatch, Res... | [
"lyh@gzqichang.com"
] | lyh@gzqichang.com |
194e5251b4ed80b96241d230501d08fe42a9d8e1 | d15c56e6e4a73b0fb812d91385aeebab6fc5642e | /statistic_visualize.py | 065ce3ceed0a24b7788a9b0b7a9ea9cfb0df0a61 | [] | no_license | rocketpy/statistic_tutorial | 9d38c6c770613e7d515098b86356b5c2c10efa24 | 9b24e47ecb09044069923360307a4740a9652cc1 | refs/heads/master | 2022-11-23T05:47:42.987060 | 2020-07-17T19:49:40 | 2020-07-17T19:49:40 | 279,663,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Altair - declarative statistical visualization library for Python
# Examples of Charts , Histograms , Maps , Interactive Charts , Case Studies : https://altair-viz.github.io/gallery/index.html
# code example , area chart with Gradient , taked from : https://altair-viz.github.io/getting_started/overview.html
imp... | [
"noreply@github.com"
] | rocketpy.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.