blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
172380e1b290156ef5d92275a7dc119164029ab0 | b7319b205a7c4d3b7987659b725f9d3e8619fece | /minifloorhockey/wsgi.py | 07608fd343ff71b542e744f040fd81c079b7c0b3 | [] | no_license | bhobbs20/mhl | 0845fbf4c14c6bdfa9adcdd86fdaf753758670e9 | cfc38c14fc3626b127ad3a924bf13bc951c27f0c | refs/heads/master | 2023-02-02T15:31:39.782993 | 2020-12-16T17:25:01 | 2020-12-16T17:25:01 | 322,051,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for minifloorhockey project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"brianhobbs216@gmail.com"
] | brianhobbs216@gmail.com |
d7d4357cc15cd84e35e910f27de3f508d5757536 | b1bff5f49d017463da4a71bd723382ca617c3bf4 | /src/spaceone/inventory/connector/__init__.py | 5c28ad447c1ccf6da0e661e2a61244e4e5893a62 | [
"Apache-2.0"
] | permissive | khl6235/plugin-azure-vm | 5af286a8391c2bab9822d9e062b1b9a1f7eb3f9d | fb7eef1c440b0d487c9277ed01fbf1c6a752da3d | refs/heads/master | 2023-01-05T13:48:29.085468 | 2020-11-05T07:30:36 | 2020-11-05T07:30:36 | 294,640,540 | 0 | 0 | Apache-2.0 | 2020-09-11T08:38:35 | 2020-09-11T08:38:35 | null | UTF-8 | Python | false | false | 76 | py | from spaceone.inventory.connector.azure_vm_connector import AzureVMConnector | [
"bluese@megazone.com"
] | bluese@megazone.com |
7e2567e4a20aa02342cb0de0b8f2bcc6123bc9b2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/318/93006/submittedfiles/principal.py | 0320151c54c0035526eea0587c53dbe5b2639e6f | [] | 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 | 277 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n = int(input('Digite a quantidade de notas :'))
notas = []
for i in range(0,n,1):
notas.append(float(input('Digite a nota%d: ' % (i+1))))
media = 0
for i in range(0,n,1):
media += notas[i]/float(n)
print(notas)
print(media) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9f5244ca9c999f852f87ed9ccd1c944c0a36fbe3 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/verisure/config_flow.py | 6c2822896e6da67af964a623bce98bdcb9867099 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 6,876 | py | """Config flow for Verisure integration."""
from __future__ import annotations
from typing import Any
from verisure import (
Error as VerisureError,
LoginError as VerisureLoginError,
ResponseError as VerisureResponseError,
Session as Verisure,
)
import voluptuous as vol
from homeassistant.config_entr... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
13d692809403a8b9ca30618e1f0d1aa33761a670 | 548c26cc8e68c3116cecaf7e5cd9aadca7608318 | /payments/paybackpg.py | 9cd0a718e255d26e31ca460a5e6df8742267d7db | [] | no_license | Morphnus-IT-Solutions/riba | b69ecebf110b91b699947b904873e9870385e481 | 90ff42dfe9c693265998d3182b0d672667de5123 | refs/heads/master | 2021-01-13T02:18:42.248642 | 2012-09-06T18:20:26 | 2012-09-06T18:20:26 | 4,067,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import urllib, urllib2
import hashlib
from django.utils import simplejson
import logging
from django.conf import settings
log = logging.getLogger('request')
CATALOG_NAME = {
'Future Bazaar': 'futurebazaar',
'Ezone': 'ezoneonline',
}
def create_request(payment_attempt, request):
log.info("E... | [
"dalal.saumil@gmail.com"
] | dalal.saumil@gmail.com |
6add2f9d7701f8ca136f8bba16cbb839f0137be4 | 0cce9a9d9b9da4a820e9ed5fc674d06f0be9810a | /motorcycles2.py | 4defe2c1445f96a7e9c0c395f7187ccc52b4b112 | [] | no_license | wbroach/python_work | 3f4a85e998805f50b2400e64c5b7cbc31780b245 | 7e1842b317539d61bab0f04d72e71db893c865ff | refs/heads/master | 2020-04-14T22:06:43.164595 | 2019-10-02T01:25:00 | 2019-10-02T01:25:00 | 164,151,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | motorcycles = []
motorcycles.append('honda')
motorcycles.append('yamaha')
motorcycles.append('suzuki')
print('The original list is as follows:')
print(motorcycles)
print(motorcycles[2])
del(motorcycles[0])
del(motorcycles[0])
del(motorcycles[0])
print(len(motorcycles))
| [
"someone@someplace.com"
] | someone@someplace.com |
ce33aec59d60accb1c87fea41a2e45aa5d5dde37 | 91824d746654fe12881b4fc3b55c553aae0d22ac | /py/brick-wall.py | df97ef507ec7e7482058e07765b8af5889315529 | [
"Apache-2.0"
] | permissive | ckclark/leetcode | a1a173c67a36a3256b198f853fcd3d15aa5abbb7 | 844c6f18d06dcb397db76436e5f4b8ddcb1beddc | refs/heads/master | 2021-01-15T08:14:43.368516 | 2020-02-14T07:25:05 | 2020-02-14T07:30:10 | 42,386,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from collections import Counter
class Solution(object):
def leastBricks(self, wall):
"""
:type wall: List[List[int]]
:rtype: int
"""
c = Counter()
wall_width = sum(wall[0])
max_non_cut = 0
for row in wall:
subsum = 0
for n in ro... | [
"clark.ck@gmail.com"
] | clark.ck@gmail.com |
b6275e78d3a511285b135c3981a04566ab50cb91 | 25fb2f88b9d6e1d01806c0e90f3fb02bc82e1ce6 | /wisdem/postprocessing/wisdem_get.py | 304169be70583a413ee5b496fe6889c90ec169be | [
"Apache-2.0"
] | permissive | johnjasa/WISDEM | 6b607ea8c3ef1aab8065b82e75e53e5c12fa2cd3 | a4571e71cb5b9869c81790f8abb1bb7fba8fdb02 | refs/heads/master | 2022-07-01T16:32:09.003230 | 2021-11-04T16:24:05 | 2021-11-04T16:24:05 | 250,635,279 | 0 | 0 | NOASSERTION | 2020-03-27T20:04:35 | 2020-03-27T20:04:35 | null | UTF-8 | Python | false | false | 2,140 | py | import numpy as np
def is_floating(prob):
return prob.model.options["modeling_options"]["flags"]["floating"]
def get_tower_diameter(prob):
if is_floating(prob):
return prob["floatingse.tower.outer_diameter"]
else:
return prob["towerse.tower_outer_diameter"]
def get_tower_thickness(prob... | [
"garrett.barter@nrel.gov"
] | garrett.barter@nrel.gov |
fab6ab35bfc80d947cd776625d28511378d75d93 | a7596165a29e5186bc6c4718e3b6e835939b105d | /apps/beeswax/src/beeswax/api.py | 9382deb6bcf152c4a5dbd8418453aae81c8a8de7 | [
"Apache-2.0"
] | permissive | lockhart39/HueQualityAndIngestionApp | f0c778665f0fbe699ec30e0df5e9f3ed8a9c3384 | c75e55a43a8bdeb7aa0f5bf2101ec72b01dcac1c | refs/heads/master | 2021-08-20T00:31:29.481333 | 2017-11-27T19:22:16 | 2017-11-27T19:22:16 | 112,237,923 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,932 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"cloudera@quickstart.cloudera"
] | cloudera@quickstart.cloudera |
ad39824936072d2fefcba287cf9c9844019ccebc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2953/60761/236880.py | 85dc0205c02d4042309bbbf445e67c9c0b168125 | [] | 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 | 398 | py | def mintimes(a,b):
if(a==1):
return b-1
elif(a==0):
return 10000000
elif(a==b):
return 10000000
else:
return mintimes(b%a,a)+int(b/a)
n=int(input(""))
if(n==1):
print(0,end="")
else:
result=n-1
i=2
while(i<=n/2):
c=mintimes(n%i,i)+int(n/i)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
866bcefcdd0a8d5e6b712d735419139fbee00878 | 56be90af1f455a259852a92044413f6d63a65402 | /microsip_web/apps/ventas/herramientas/generar_polizas/views.py | 29eee0f855f3d7f270ea9bc0f61bf56245c919ef | [] | no_license | ruff0/microsip_web | 6bf7f7ba77c1239e71097ad3421a7d5051126e3a | 4f1096613acf72439dbba6757e479034d8d6605e | refs/heads/master | 2021-01-12T17:32:38.218626 | 2015-01-07T17:03:57 | 2015-01-07T17:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,721 | py | #encoding:utf-8
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from .models import *
from forms import *
from django.db.models import Sum, Max, Q
from microsip_web.libs import contabilidad
# user au... | [
"jesusmaherrera@gmail.com"
] | jesusmaherrera@gmail.com |
2369afd1881e2bf778f5cef9c86da552f9890dec | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_167/ch45_2019_06_03_00_38_26_791511.py | 8a1d9f502e38e2832869ccccc55a25ef63d0e533 | [] | 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 | 187 | py | def zera_negativos(lista):
i=0
while i > len (lista):
i+=1
if lista[i]<0:
lista[i]=0
return lista
| [
"you@example.com"
] | you@example.com |
fa524d0167704fd519a3051b4b1daa397349d730 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_arthritics.py | 9b5ba637596aad5009e67b96be5c854ee2065ff9 | [
"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 | 234 | py |
#calss header
class _ARTHRITICS():
def __init__(self,):
self.name = "ARTHRITICS"
self.definitions = arthritic
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['arthritic']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1a8616a27762f3165dd94949cf15cee25aa6c367 | 349daa7f480c7e61e16e5c2fef53d423b77d86fe | /receiver_line.py | c40156a26a46cc43378492660c35027475be919a | [] | no_license | samhaug/SP_setup | 5e68d81eae5abf4a0b47fe4dadd2730eed855921 | 63be3033abc61fb3e8f260b504857bc8c6ef566c | refs/heads/master | 2021-01-22T18:46:14.244231 | 2017-09-04T23:52:25 | 2017-09-04T23:52:25 | 102,411,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/home/samhaug/anaconda2/bin/python
'''
==============================================================================
File Name : receiver_line.py
Purpose : make line of stations from some source at some azimuth
Creation Date : 20-07-2017
Last Modified : Thu 20 Jul 2017 01:05:04 PM EDT
Created By : Samuel M. Haugla... | [
"samhaug@umich.edu"
] | samhaug@umich.edu |
c5aa8282f73ae6ac4f87891556844b41cd6dbe30 | 8fdcd12cfb91b2245da8b3c65fb937b1d72dd4c5 | /tissuelab/omero/gateway_ome500_ice351/omero_API_ice.py | 68838af3e48ac116db11f2b268d6ac9b1d942ec9 | [] | no_license | VirtualPlants/tissuelab | 569a334deab0b73acc8b43f313efc3f4c4e552fd | 8c064a34b91127806848f4992d1e4767574863cf | refs/heads/master | 2021-01-11T01:32:19.830778 | 2017-05-04T09:42:53 | 2017-05-04T09:42:53 | 70,694,783 | 2 | 1 | null | 2017-01-05T14:21:50 | 2016-10-12T11:49:10 | Python | UTF-8 | Python | false | false | 59,246 | py | # **********************************************************************
#
# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************************************... | [
"guillaume.baty@inria.fr"
] | guillaume.baty@inria.fr |
d97ce608036c61b0d7f5ff7468932f6c8707e8c7 | 4382d1d3775cf8cfd33cf66c534203f2859d45d4 | /oolearning/evaluators/RegressionEvaluator.py | 4af5fd81469487c57019e20189f0049ca0a20b75 | [
"MIT"
] | permissive | shane-kercheval/oo-learning | 2d5b43a7c515df65b0d903f7b30c74286e609030 | 4cc5f574be258925b2b30fcd90f994b356b97c88 | refs/heads/master | 2022-07-21T22:46:11.640491 | 2022-06-15T02:52:24 | 2022-06-15T02:52:24 | 119,191,623 | 1 | 0 | MIT | 2022-04-06T19:26:33 | 2018-01-27T18:37:48 | Python | UTF-8 | Python | false | false | 5,008 | py | import numpy as np
from matplotlib import pyplot as plt
from oolearning.evaluators.EvaluatorBase import EvaluatorBase
from oolearning.evaluators.MaeScore import MaeScore
from oolearning.evaluators.MseScore import MseScore
from oolearning.evaluators.RSquaredScore import RSquaredScore
import warnings
with warnings.catc... | [
"shane.kercheval@gmail.com"
] | shane.kercheval@gmail.com |
9988b94d526a323b486685de8ce175e1100badc7 | 61d499546f75e851d8b55293fe52754d01b66502 | /tcpproxy.py | 64e649d646ad3cd11408ae3fa20b753ce57e0040 | [] | no_license | sqrt-9/python-black | 0f6fd41db14d15ba0cb3438fd49066001ea85c8b | 82f0635e113b11bf2dffb1d85679018bf990e63b | refs/heads/master | 2021-01-18T00:15:50.185617 | 2016-09-20T12:12:11 | 2016-09-20T12:12:11 | 68,708,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | import sys
import socket
import threading
def server_loop(local_host,local_port,remote_host,remote_port,receive_first):
server = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
try:
server.bind((local_host,local_port))
except:
print 'failed on %S:%d'%(local_host,local_port)
print 'check for other'
sys.... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f071adc4282e6c3cf2b85418e354abb6b8fdc0d4 | 4c8c0f857500b5f4b572f139602e46a6c813f6e3 | /Polymorhphism_and_Magic_methods_exercises/Animal/animals/birds.py | 4597d2754bc68c1d5ff9190aec3e1a14945a7ebd | [] | no_license | svetoslavastoyanova/Python_OOP | 3d21fb0480c088ecad11211c2d9a01139cde031f | 518f73ecc8a39e7085d4b8bf5657a1556da3dcfa | refs/heads/main | 2023-08-04T19:46:58.906739 | 2021-09-18T07:46:02 | 2021-09-18T07:46:02 | 352,304,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from Animal.animals.animal import Bird
from Animal.food import Meat, Vegetable, Fruit, Food
class Owl(Bird):
def feed(self, food):
if not isinstance(food, Meat):
return f"{self.__class__.__name__} does not eat {food.__class__.__name__}!"
self.weight += 0.25*food.quantity
self.f... | [
"svetoslava_stoyanova92@abv.bg"
] | svetoslava_stoyanova92@abv.bg |
c6e7240c8e1647d157d1af0e10c600e086b34e15 | e87524319ee0e610c451f1777a5a90883f508fe3 | /top/clearlight/base/runoob/print/percent_oper.py | 1823597198c3561b7a515bdedceca880ca3144ad | [
"Apache-2.0"
] | permissive | ClearlightY/Python_learn | 3a805bbe8883d58d0e60bd73f985b6093b983248 | 93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232 | refs/heads/master | 2020-12-11T06:58:17.984184 | 2020-07-30T18:10:20 | 2020-07-30T18:10:20 | 233,794,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | '''
第一个 % 后面的内容为显示的格式说明,6 为显示宽度,3 为小数点位数,f 为浮点数类型
第二个 % 后面为显示的内容来源,输出结果右对齐,2.300 长度为 5,故前面有一空格
'''
print("%6.3f" % 2.3)
# 2.300
'''
x 为表示 16 进制,显示宽度为 10,前面有 8 个空格。
'''
print("%+10x" % 10)
# +a
'''
%s 字符串 (采用str()的显示)
%r 字符串 (采用repr()的显示)
%c 单个字符
%b 二进制整数
%d 十进制整数
%i 十进制整数
%o 八进制整数
%x ... | [
"lxy12531@163.com"
] | lxy12531@163.com |
a33e7ff9a796b765615d6964bf5bf0d3690bd040 | d4d2ed267f63d9b48c74135a124bd2534211145f | /simpleblog/urls.py | fcfb8855430b032a5dba05877c6d41c7836f5f52 | [] | no_license | MerleLiuKun/EasyCase | 0a7a8411f7095f68e4ecd3be6deb7e99808000dd | fde2a88b3e2f31949d3f7cbe9a44704be44974f6 | refs/heads/master | 2021-09-05T00:20:34.622096 | 2017-11-02T03:52:28 | 2017-11-02T03:52:28 | 108,724,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.conf.urls import url
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register(
r'tags',
views.TagViewSet,
)
router.register(
r'categorys',
views.CategoryViewSet,
)
router.register(
r'posts',
views.PostViewSet,
)
router.register(... | [
"merle.liukun@gmail.com"
] | merle.liukun@gmail.com |
f4fa8fe37323df0691cdd4b41e1b498002191f43 | 87cacb90676e5e7d1d8f0e643f1ad6ed9e35acbf | /need to clean/codes/split_train.py | b8cdd4d50e9135672a21ad3fba518dbe29845926 | [] | no_license | vuhoangminh/Kaggle-TalkingData-AdTracking-Fraud-Detection-Challenge | 3b75d4a7c60574a4875c62e8843a01d945d792d3 | 56045f446f1a0c538d91ac65e536edc4b7b5a417 | refs/heads/master | 2020-03-13T12:56:42.309722 | 2018-05-08T10:50:35 | 2018-05-08T10:50:35 | 131,129,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,561 | py | """
Adding improvements inspired from:
Ravi Teja's fe script: https://www.kaggle.com/rteja1113/lightgbm-with-count-features?scriptVersionId=2815638
"""
import pandas as pd
import time
import numpy as np
from sklearn.cross_validation import train_test_split
import lightgbm as lgb
import gc
import pickle
path = 'E:/kag... | [
"minhmanutd@gmail.com"
] | minhmanutd@gmail.com |
e8326a9f5e81a823edf3d917f79b00e74e3ae5d3 | 450c45e780332f56ea339a83891f0c12d6120794 | /google/ads/google_ads/v2/services/display_keyword_view_service_client.py | 0dc3881cfd1f64b2409c021cf12e8f862f73d224 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | akaashhazarika/google-ads-python | 7766370cc526190c962dc9ff806520d459b05c25 | 25b43aa616020ad7dfa55b90fa236a29cf97d45a | refs/heads/master | 2020-06-07T08:56:21.533323 | 2019-06-27T15:26:49 | 2019-06-27T15:26:49 | 191,448,135 | 0 | 0 | Apache-2.0 | 2019-06-11T20:57:04 | 2019-06-11T20:57:04 | null | UTF-8 | Python | false | false | 10,016 | py | # -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | akaashhazarika.noreply@github.com |
af6563a14947d2c2eee15062e80ebef5c653c552 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_skimmed.py | 85b96e7c40e8352d9c6ec45728f4ef38b80df091 | [
"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 | 228 | py |
from xai.brain.wordbase.verbs._skim import _SKIM
#calss header
class _SKIMMED(_SKIM, ):
def __init__(self,):
_SKIM.__init__(self)
self.name = "SKIMMED"
self.specie = 'verbs'
self.basic = "skim"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
304b8cd13235847181617b46fe7f83d8ae6cc83e | 8019624601ea9d3aa5c98ee8aa47c74a20805ca1 | /twnews/tests/test_chinatimes.py | 3abd2e6b9a57b9d4c0407bb29326521861b11483 | [
"MIT"
] | permissive | sevaroy/twnews | 7825b7717386d61bfe2f96439ad57a7f2b99ff9c | 92d468f36a1fd2031bc5fa315ad02d317eebcf1a | refs/heads/master | 2020-04-04T18:03:46.064045 | 2018-11-02T03:31:04 | 2018-11-02T03:31:04 | 156,148,250 | 1 | 0 | MIT | 2018-11-05T02:17:29 | 2018-11-05T02:17:29 | null | UTF-8 | Python | false | false | 2,292 | py | """
中時電子報單元測試
"""
import unittest
from twnews.soup import NewsSoup, pkgdir
#@unittest.skip
class TestChinatimes(unittest.TestCase):
def setUp(self):
self.url = 'https://www.chinatimes.com/realtimenews/20180916001767-260402'
self.dtf = '%Y-%m-%d %H:%M:%S'
def test_01_sample(self):
"""... | [
"virus.warnning@gmail.com"
] | virus.warnning@gmail.com |
ab041452c1c435c0d19fabc01ece24d0ee8c3b5f | d8574d8ca5c571fd7ed3b67dac00c55df2ac6580 | /data/kitchen/python/kitchen/evaluatorGui.py | 312321bdd631c125ebc01f300b4833c3d8811df8 | [] | no_license | h2r/slu_core | 19de87e55e84dd4dada65b4d7b65857bdae740e8 | e30c0245177e8481397fd4987422e3d35d79ec08 | refs/heads/master | 2021-07-09T18:19:33.424551 | 2020-07-06T18:49:18 | 2020-07-06T18:49:18 | 143,929,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,331 | py | from kitchen import kitchenState, recipeManager, annotatedRecipe, planningLanguage
import pickle_util
class Evaluator():
def __init__(self):
self.score = 0
self.successCount = 0
self.totalCount = 0
self.noopSuccessCount = 0
def evaluateInstructions(self, targetRecipe):
... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
944b91037e97b649e60f3396991edf79261d738d | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /incepiton-mysql-master/app/auth/form.py | e8c9b27bf30f223f224929065f1813ff4c42f599 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from ..models import User
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField
from wtforms.validators import DataRequired, Email, ValidationError
class LoginForm(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Pass... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
503a571f039f0c34b2f4e839996f9bb23f5c1d9c | ba66da3901361854b9bb621586f1e49ad0121ee0 | /正式开班/pymysql/mysql_1.py | acf2710c566de36c2631fe7b39728a471f8d3378 | [] | no_license | luobodage/PythonBasis | c4739920055afbda03774d90151ab183a83583f8 | ea65536e759fec221a70d7647ae86120277d5459 | refs/heads/master | 2023-05-14T15:51:56.213282 | 2021-05-31T00:57:56 | 2021-05-31T00:57:56 | 322,145,745 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,697 | py | # -*- coding: UTF-8 -*-
import pymysql
import pandas as pd
# author: luoboovo
# contact: fuyu16032001@gmail.com
# datetime: 2021/1/29 10:46
# software: PyCharm
# = = =
# = = =
# = = =
# ===========
# = 萝 =
# = 卜 =
# = 神 =
# ... | [
"fuyu16032001@gmail.com"
] | fuyu16032001@gmail.com |
83be4867c7f7e8d53df50de5d7ca29ce8d8ccf62 | fdbabbd10c03d20d7b35c00eab682af2d4be6601 | /main.py | 8614a6a798657badf6eb003e3771b0d45bfd5711 | [] | no_license | allenabraham777/cvsm_logic | 44777e8066143d790767029e954b9b52251c9cce | 148e53dcd190d649c8f261e32ad2d5fd18a261c0 | refs/heads/master | 2022-11-14T19:10:27.309242 | 2020-07-06T13:21:46 | 2020-07-06T13:21:46 | 277,547,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | informations = []
suppliers = []
activities = []
# Information Flow
print("Enter the information flow (Type 'end' to Stop) : ")
i = 0
while(True):
print("Enter the component "+str(i + 1)+" detail")
information = input()
if information == "end":
break
informations.append(information)
i = i + 1
print(info... | [
"replituser@example.com"
] | replituser@example.com |
a069cd82f85f5cfc00365c1f723ab5711469ef0f | 463c053bcf3f4a7337b634890720ea9467f14c87 | /python/ray/tests/test_advanced_7.py | c4743ad518d978319220af787533e2198499758f | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 8,472 | py | # coding: utf-8
from concurrent.futures import ThreadPoolExecutor
import logging
import random
import sys
import threading
import time
import numpy as np
import pytest
import ray.cluster_utils
from ray._private.test_utils import (
client_test_enabled,
)
if client_test_enabled():
from ray.util.client import ... | [
"noreply@github.com"
] | pdames.noreply@github.com |
1dcc7298149c256a1f3ef9c06b425f0fdeef4e84 | 7669454a633042da5696f814768f523c8af18b7a | /chiasim/hashable/SpendBundle.py | ab165d05ba98ce2199aafe48f7affff9ef0d71a4 | [
"Apache-2.0"
] | permissive | Chia-Network/ledger_sim | 46422efccf5993b5d2de8f3b0e6e3fb635115980 | de53d4129e10d883b92988e21bd5e248a8f89813 | refs/heads/main | 2023-01-24T13:03:58.343814 | 2023-01-19T22:05:59 | 2023-01-19T22:05:59 | 203,893,213 | 4 | 9 | null | 2023-01-19T22:06:01 | 2019-08-23T00:20:07 | Python | UTF-8 | Python | false | false | 1,474 | py | from ..atoms import streamable
from .BLSSignature import BLSSignature
from .CoinSolution import CoinSolutionList
@streamable
class SpendBundle:
"""
This is a list of coins being spent along with their solution programs, and a single
aggregated signature. This is the object that most closely corresponds t... | [
"him@richardkiss.com"
] | him@richardkiss.com |
b9de0d9977fdf52300400d43ae398ac0ca3bdd53 | a07fd8aca2d69ade2e388054dd2c1c9991232185 | /tests/test_tutorial/test_handling_errors/test_tutorial001.py | 8809c135bd706cbb18e1438335b1a2807035a261 | [
"MIT"
] | permissive | vitalik/fastapi | 76b71bbbade19f12484c73dcbdca426197cc2db6 | 0276f5fd3aafb38dcbb430177a4685aeb58e5c69 | refs/heads/master | 2023-08-01T06:56:06.053824 | 2023-07-25T20:46:02 | 2023-07-25T20:46:02 | 315,668,229 | 1 | 0 | MIT | 2020-11-24T15:07:16 | 2020-11-24T15:07:15 | null | UTF-8 | Python | false | false | 3,298 | py | from fastapi.testclient import TestClient
from docs_src.handling_errors.tutorial001 import app
client = TestClient(app)
def test_get_item():
response = client.get("/items/foo")
assert response.status_code == 200, response.text
assert response.json() == {"item": "The Foo Wrestlers"}
def test_get_item_n... | [
"noreply@github.com"
] | vitalik.noreply@github.com |
07d9bd027d220d26f623bd4bfb006fa601fd7172 | 5e626d4138ef02efae149c41e00ea4d04b8239e8 | /chippedyScrapson.py | 891ab89172f238074c359b540e1258a1adfe6e5c | [] | no_license | ganti/chippedyScrapson | f1ecc57622ea2bbc8a5f7f467081523089fa36e2 | 4de30ff9ae8236ff1083668931cc9f000a34e0eb | refs/heads/master | 2020-07-19T02:38:51.137565 | 2019-09-04T16:30:19 | 2019-09-04T16:30:19 | 206,360,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,045 | py | #!/usr/bin/env python3
import os
import sys
from pprint import pprint
import csv
import json, codecs
import time
import random
import requests
from lxml import html
from scrapy import Selector
from bs4 import BeautifulSoup
allURLs = []
def main():
url = "https://www.tagesanzeiger.ch"
depth = 3
makeListTxtFrom... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
a3ffa5427b8db497a9bf8bf144544ac7fcba7f78 | d535830db49fcc2b77be02650be09682ddeb0e1d | /main.py | d5d7f612c292900627d360bfdafc9cd26969163a | [] | no_license | stemussi/Bot_ricerca_libri | feec4667434c465894f75e1e2e21bfd3019ff2f0 | 65161a2f2575391ab39881cd3b4cb3515e0f388e | refs/heads/master | 2022-12-15T08:43:30.793028 | 2022-02-12T10:41:44 | 2022-02-12T10:41:44 | 185,013,796 | 0 | 0 | null | 2022-12-08T02:31:42 | 2019-05-05T10:03:45 | Python | UTF-8 | Python | false | false | 13,573 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 26 10:52:31 2018
@author: bradamante
"""
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, ReplyKeyboardMarkup
from SPARQLWrapper import SPARQLWrapper, JSON
fr... | [
"you@example.com"
] | you@example.com |
e41596ef4f52bb1f4192b5be0b6eb1505f775730 | fadc5b7a2e3f83ea69e3812800f2e4aa441e36d9 | /Scripts/Analysis/Tandem_Gene_Similarity.py | eaa2254bfa3f418d9f730549ac59f23feeebb267 | [] | no_license | TomJKono/Maize_Tandem_Evolution | 4e63c58614ec56476f4b4116554206ddf3d73b28 | 413b6c8d0d9a257a370060674a0e3936f3d93fc2 | refs/heads/master | 2022-06-30T04:20:19.228107 | 2022-06-15T22:55:06 | 2022-06-15T22:55:06 | 114,657,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,964 | py | #!/usr/bin/env python
"""Script to generate alignments for tandem duplicates. Translates the sequence
to amino acids, aligns them with clustal-omega, then back-translates them. Takes
three arguments:
1) Tandem duplicates CSV
2) Representative transcripts FASTA
3) Output directory
"""
import sys
import temp... | [
"konox006@umn.edu"
] | konox006@umn.edu |
50ac68c917222046abbdec7b8a40f6f7aa28d8e3 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200711141345.py | 0c144e119f344e7814e5e7eaab36a9bbce38ee79 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,880 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo, Fabrica_individuo
import random
from itertools import permutations
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.sparse import csr_matrix, lil_matrix
class S... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
2141b204a271ad34cce0f84c94daf409ea90d43d | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/16g.py | 61c7820f687186750a1ef8b50a1e5cb43d361671 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 62 | py | ii = [('CookGHP.py', 1), ('GodwWLN.py', 1), ('BentJRP.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
5532c264f012df678571ce895acd1cc83a14f820 | e909e9bb4b2e54bb64d6bee9cf9fbaf14c584e04 | /malib/algorithm/maddpg/loss.py | 6595de6c38d2c580a92fad36c131c5dd868c5dd8 | [
"MIT"
] | permissive | zhihaolyu/malib | 9cd8fdcdc1c613c11fc1e6f385adac5312474509 | 1c7ca1819325796a6ec604aa1ae8c771708fc50c | refs/heads/main | 2023-05-13T03:41:05.211832 | 2021-06-08T04:35:10 | 2021-06-08T04:35:10 | 374,880,657 | 0 | 0 | MIT | 2021-06-08T04:29:26 | 2021-06-08T04:29:25 | null | UTF-8 | Python | false | false | 4,862 | py | import torch
import gym
from malib.algorithm.common import misc
from malib.algorithm.ddpg.loss import DDPGLoss
from malib.backend.datapool.offline_dataset_server import Episode
from malib.algorithm.common.model import get_model
class MADDPGLoss(DDPGLoss):
def __init__(self):
super(MADDPGLoss, self).__ini... | [
"kornbergfresnel@outlook.com"
] | kornbergfresnel@outlook.com |
4d4a4b30e934813ff025d0254db353158afb96f2 | 25872e1ba4f86cbbf77d0130f341b21e5dd9e692 | /SingleNumberIi.py | 3a629bea501e870c6d47a412d50885842d0bef96 | [] | no_license | zongxinwu92/leetcode | dc3d209e14532b9b01cfce6d4cf6a4c2d7ced7de | e1aa45a1ee4edaf72447b771ada835ad73e7f508 | refs/heads/master | 2021-06-10T21:46:23.937268 | 2017-01-09T09:58:49 | 2017-01-09T09:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | '''
Created on 1.12.2017
@author: Jesse
''''''
Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
"
'''
| [
"darrencheng0817@gmail.com"
] | darrencheng0817@gmail.com |
7e5d65332d4070875a7f9db581e37769d3d2be1c | ee121fc62ea630fe62870d535d2e63b68dc715ca | /docker/dkn/train/recsys_tools/recsys_kg/embed_dkn.py | fc2ea6d9149cdbf9bce3800fd67cbcc50864a101 | [] | no_license | amliuyong/GW-Rec-Release | 744e5b284854ebfc6b7bd056df9decfd24ffd0c4 | 45c7c7b59a4108cf5475c05d8c2fc1959955dd51 | refs/heads/main | 2023-02-26T02:19:43.697804 | 2020-12-30T08:32:32 | 2020-12-30T08:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,820 | py | import sys
import numpy as np
import tensorflow as tf
from sklearn.metrics import roc_auc_score
import pandas as pd
from collections import namedtuple
import subprocess
import argparse
import os
import json
import shutil
import glob
from datetime import date, timedelta
from tempfile import TemporaryDirectory
########... | [
"wlinamzn@amazon.com"
] | wlinamzn@amazon.com |
1fd67a737285b069a76fd9bef0c7396315d5e1bb | 0104add04cd6da515e2ccb2c27e44bc6693f9bcf | /Yurii_Khomych/l_6_software_engineering/behavioral/memento.py | 1a1a01f4eb315fe84397e2f083b58aafe802ff5c | [] | no_license | YuriiKhomych/ITEA-advanced | c96c3cf9b279caf62fefcd41faf543cee7534626 | 90bc47733c07b5b866aa3a14aa12a169f5df289c | refs/heads/master | 2022-12-09T20:38:23.607426 | 2019-12-22T17:30:59 | 2019-12-22T17:30:59 | 209,354,034 | 0 | 9 | null | 2022-12-08T03:04:04 | 2019-09-18T16:23:12 | Python | UTF-8 | Python | false | false | 1,118 | py |
class Memento:
def __init__(self, state):
self._state = state
def get_state(self):
return self._state
class Caretaker:
def __init__(self):
self._memento = None
def get_memento(self):
return self._memento
def set_memento(self, memento):
self._memento = me... | [
"yuriykhomich@gmail.com"
] | yuriykhomich@gmail.com |
f6354a22cec4f6c58ab5d595e288572bd06699e6 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.TZO/Serif_8/pdf_to_json_test_Latn.TZO_Serif_8.py | d7a4be6524bcc374d418903d1171a9ab302394e2 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.TZO/Serif_8/udhr_Latn.TZO_Serif_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
779652da6a5a24ad321543242382a5833a3019d0 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/completion/typedParameterStringPath/a.after.py | 0ad95ae34e998bde802ce420572b05ffe171fd2c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 648 | py | from typing import Any, overload, Union
from os import PathLike
def baz(akjlkgjdfsakglkd: PathLike) -> None:
pass
baz("foo")
def bar(akjlkgjdfsakglkd: Union[str, PathLike]) -> None:
pass
bar("foobar.txt")
@overload
def foo(akjlkgjdfsakglkd: str) -> None:
pass
@overload
def foo(akjlkgjdfsakglkd: Path... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
74534eb5988526a54d67aa7eef218c14628636d4 | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /topCoder/srms/500s/srm582/div2/semi_perfect_square.py | 66ebf650bdca212ea2858d5755eeba0b7624349b | [
"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 | 244 | py | class SemiPerfectSquare:
def check(self, N):
l, u = int(N**.33), int(N**.5)
for b in xrange(l, u+1):
for a in xrange(1, b):
if a * b * b == N:
return 'Yes'
return 'No'
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
02fe0020965f0e68f5076b7516d6a72a049849a9 | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /tyfslutb/migrations/0015_auto_20150218_1627.py | 97838971133cd35a5966606ccc5466e072829c6d | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ygnakzgjxu', '0008_auto_20150218_1626'),
('tyfslutb', '0014_auto_20150218_1626'),
]
operations = [
migrations.Create... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
886d06ed7a374a174b7fe278b07f3f68764a4b7f | d046fd4ac8e52ed8054199765893f7e1a71302f2 | /master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Instance_tryToGarbageCollectNonAllocatedRootTree.py | 905e534dc8829ee1bea07b4d4019168e67e6e6ac | [] | no_license | jakop345/slapos.core | 7538418056be6541e9ee7a70d2d6b694e03daafc | 410dfb506b7ec17745365d573e7401f217b74ed4 | refs/heads/master | 2020-06-18T21:43:39.012812 | 2016-11-24T11:06:49 | 2016-11-24T11:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
instance = context
portal = context.getPortalObject()
if instance.getValidationState() != 'validated' \
or instance.getSlapState() not in ('start_requested', 'stop_requested') \
or instance.getAggregateValue(portal_type='Computer Pa... | [
"alain.takoudjou@nexedi.com"
] | alain.takoudjou@nexedi.com |
479972621f87be75415d882e77a8e70f347f8405 | 60696fa455101fbd2bef5efc19910d2fc856c324 | /libqi-python/qi/__init__.py | 2140178b74a899ab8af5849eac331e9023a047a3 | [] | no_license | yumilceh/libqi-python | 263baca432f118f15057c8a2b43e0321bb5609e1 | 900643316c272fcdb9f5de76111125fb05927108 | refs/heads/master | 2020-04-10T22:52:11.210697 | 2018-12-11T13:50:30 | 2018-12-11T13:50:30 | 161,334,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,444 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" QiMessaging Python bindings """
from __future__ import absolute_import
import os
import sys
import ctypes
import platform
import traceback
PATH_LIBQI = os.path.dirname(os.path.realpath(__file__))
# Add LibQi Python Folder to the Path
sys.path.append(PATH_LIBQI)
# Se... | [
"you@example.com"
] | you@example.com |
5ed922dea4cd1d1bbea38444f453f27061c5c7c7 | b4537dfc431cba7ff40e0692ab6c223394ae4d69 | /151-replace-adjacent-colors.py | 4c56543292a015d62c66c55ae5fe43c2df89044e | [] | no_license | ericgarig/daily-coding-problem | fdc04f5bf823933100686c4129575f5ef3746676 | d3e1a6ab102c7af1eea4ab6b1282e4d44e5b80ba | refs/heads/master | 2020-03-31T09:59:11.767162 | 2019-12-20T21:44:43 | 2019-12-20T21:44:43 | 152,117,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | """
Daily Coding Problem - 2019-03-08.
Given a 2-D matrix representing an image, a location of a pixel in the
screen and a color C, replace the color of the given pixel and all
adjacent same colored pixels with C.
For example, given the following matrix, and location pixel of (2, 2),
and 'G' for green:
B B W
W W W
W... | [
"erik.shagdar@gmail.com"
] | erik.shagdar@gmail.com |
bbdafee77be3a4794d79a6a57bfebfa1c75df080 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_119/ch29_2019_03_07_18_47_06_270339.py | 58f6e3df7e0d001c552cf93d132e7396cb7d4717 | [] | 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 | 116 | py | def calcula_aumento(salario):
if salario<=1250:
return salario*0,15
elif:
return salario*0,1 | [
"you@example.com"
] | you@example.com |
ae7baf3d9ff93e6bbe82475c98939da0532e619b | b83ac23819fd7ba998563f2ad870405bdd07cc2b | /gym_idsgame/agents/training_agents/policy_gradient/reinforce/reinforce.py | a0eeaa526f000f0883b7b0c8df4415fb0b66e5d6 | [
"MIT"
] | permissive | Limmen/gym-idsgame | 699abd2894bce15108f1606f5fb71f612dd7ba03 | d10830fef55308d383c98b41b34688a7fceae357 | refs/heads/master | 2023-09-01T17:32:16.768138 | 2023-08-22T12:00:53 | 2023-08-22T12:00:53 | 247,794,752 | 49 | 12 | MIT | 2021-04-21T07:50:06 | 2020-03-16T19:00:27 | Python | UTF-8 | Python | false | false | 34,673 | py | """
An agent for the IDSGameEnv that implements the REINFORCE Policy Gradient algorithm.
"""
from typing import Union, List
import numpy as np
import time
import tqdm
import torch
from torch.distributions import Categorical
from torch.utils.tensorboard import SummaryWriter
from gym_idsgame.envs.rendering.video.idsgame_... | [
"kimham@kth.se"
] | kimham@kth.se |
c8345d46b7e6acca3cd3f2de57a0bf85e4e79016 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /monai/engines/__init__.py | 36719ae61c18553d8e31520cae7b70625028094c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 989 | py | # Copyright 2020 - 2021 MONAI Consortium
# 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 wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
983aa64b512f189c949d9b514387add42af7ee14 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/rsvppcepexpectedinitiatedlsps.py | 17e0b5a0e9d231bd7b19e49d62c30ca30e11b757 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,010 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
e54cd6e2a2e416870412ed33580505381d15801f | 9db281fbed35bb8384eeacaa81d1a32a9dcc5cca | /class-28/demo/full-stack-snacks/snacks/migrations/0001_initial.py | ad9b33da216b354507f1c25488783863e143cca1 | [] | no_license | corey-marchand/seattle-python-401d14 | aab3f48c82229f1958989ce8318de60b9abbe4e2 | ae9ffebc9e5250cb5ec1760fd7764da0d3ad4e4c | refs/heads/master | 2022-11-15T16:09:37.248530 | 2020-07-09T19:10:49 | 2020-07-09T19:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Generated by Django 3.0.7 on 2020-06-17 06:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"jb.tellez@gmail.com"
] | jb.tellez@gmail.com |
a0a4fee1ad51b2720d16c8a31097e86016f07fa8 | d0eb2004a98fa79e280be2535f337604e96ccece | /dict_oper.py | 484f5f458b76e280da0ad82a2809bd9ab5fb4d66 | [] | no_license | Parya1112009/python | f33a9ccfbc858886f8d065eee3f29bca430e5688 | 2550f5c54ff8310977806bab3b39adb8ce252496 | refs/heads/master | 2022-11-22T04:15:16.822655 | 2022-11-16T03:56:26 | 2022-11-16T03:56:26 | 88,561,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | prices = {"mango": 24,"apple": 25,"banana": 20}
product = input("enter the product you want to buy : ")
price = prices.get(product)
if price:
print (f"the price of {product} is {price}")
else:
print("this product is not available today SORRY!!!")
del prices["apple"]
print (prices)
prices["apple"] = 40
prin... | [
"noreply@github.com"
] | Parya1112009.noreply@github.com |
de956c8607638b1cb558fc81b01ce67bbdff7bb9 | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /python_import/p72_main.py | 65026687f67b56914ee89cf2150c49f736c6eb29 | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import p71_byunsu as p71
# p71.aaa = 3 #print(p71.aaa) 3출력
print(p71.aaa)
print(p71.square(10))
# 2
# 1024
print('===================================')
from p71_byunsu import aaa, square
print(aaa) #p71의 aaa 메모리
# 2
aaa = 3
print(aaa) #p72의 aaa 메모리
print(square(10)) #p71의 square함수 메모리
... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
9f4edd4e9531bdc53246a1e37a9c11585b60457f | 001386fcdfc18c54cc1dbd23a4a9e6bf30deb890 | /amqp/codec/tests/test_codec.py | 6e81731aab5d18121e52ac6af918d7e80d680534 | [] | no_license | wizardsofindustry/python-amqp | 4f4453db8303216a7e29f526ccdcd07878e255b7 | 50a771c27836f9a60d646fbf969e07e0107c6934 | refs/heads/master | 2021-01-17T19:59:56.958796 | 2016-06-12T11:30:07 | 2016-06-12T11:54:00 | 65,640,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | import unittest
from amqp import codec
class AMQPCodecTestCase(unittest.TestCase):
pass
| [
"cochise.ruhulessin@wizardsofindustry.net"
] | cochise.ruhulessin@wizardsofindustry.net |
967874032efced734e3899b3c039bb0c3d0d7694 | 8a3726abfc9cb72d8ccf7d32b18edabf8d16b630 | /04/b.py | 93c3d27e7728e2b3be4dd064d4e02b4afc08d3fa | [] | no_license | alex-stephens/aoc2015 | 48a46efc1a888ea2d451a5938fc404d26e96e1a0 | ccc1c85f8da7a0585003b2e4f99f3f1def35ec0b | refs/heads/master | 2023-02-05T23:02:19.148138 | 2020-12-27T19:16:47 | 2020-12-27T19:16:47 | 324,579,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import hashlib
key = open('input.txt').readline()
def check(key, num):
string = key + str(num)
hash = hashlib.md5(string.encode())
result = hash.hexdigest()
nzeros = 6
return result.startswith('0'*nzeros)
n = 0
while True:
if check(key, n):
break
n += 1
print(n) | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
2c6ec495b46bf3f29802da6521109de0872fd8fb | e770533cc7d8517134d6f9159f5f9e52747c7153 | /python/11pywinauto/test2.py | 52aaf498cb5e6b5a8be30e39d1a472c9edaf21d3 | [] | no_license | code1990/bootPython | 5d878f7fac8aaa09a2b9e4a6d50a3c0f86c6dea5 | e5debd59b07a2c713f3e692aa4f44a9d2e5baeae | refs/heads/master | 2022-07-27T04:31:00.292692 | 2020-08-07T07:07:15 | 2020-08-07T07:07:23 | 206,805,170 | 0 | 0 | null | 2020-10-13T15:51:34 | 2019-09-06T13:56:39 | Python | UTF-8 | Python | false | false | 5,200 | py | import pywinauto
import pyautogui
from pywinauto.keyboard import SendKeys
from pywinauto.mouse import *
# from pywinauto.keyboard import *
import time
#1.运行360浏览器
browser_path = 'D:\\360\\360se6\\Application\\360se.exe'
user_page = 373
app = pywinauto.Application().start(browser_path)
#2.打开360浏览器主窗口
mainWindow = app.wi... | [
"s1332177151@sina.com"
] | s1332177151@sina.com |
024edc7ca11aa1d922a9f0786b76767268c596b9 | 76d43c6ee84b8c6cc90dd61a097fa57ecb85a17e | /term2/Computational_Neuroscience/Coursework2/Question4.py | 8ee3bdfe41c1c991856ddac64bea8fac8526d6b0 | [] | no_license | junghyun4425/UoB_Projects | 071708d4150117de1650b22d836fad4ac8fbf559 | 49f5eac9697c709da21b519619a28303bd83e728 | refs/heads/master | 2021-06-27T05:44:21.988846 | 2021-06-19T03:17:06 | 2021-06-19T03:17:06 | 231,607,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | from numpy import *
import numpy as np
import matplotlib.pyplot as plt
def load_data(filename,T):
data_array = [T(line.strip()) for line in open(filename, 'r')]
return data_array
def cal_STA(stim, data_array, width, sample_rate, interval, nec_adj):
interval /= sample_rate
time_bin = int(width / samp... | [
"junghyun153@naver.com"
] | junghyun153@naver.com |
8711969cce6874a941f33df8118fe018a65c20b2 | 723ea3f47a45fe756c4a77809eb2a4d6b98bc733 | /crackfun/cc150/Dijkstra’s shortest path algorithm.py | 7f3ed39306673ee737dc04aa9a712ef9cbf9f7fc | [] | no_license | JoyiS/Leetcode | a625e7191bcb80d246328121669a37ac81e30343 | 5510ef424135783f6dc40d3f5e85c4c42677c211 | refs/heads/master | 2021-10-21T05:41:00.706086 | 2019-03-03T06:29:14 | 2019-03-03T06:29:14 | 110,296,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | '''
Given a graph and a source vertex in graph, find shortest paths from source to all vertices in the given graph.
Time Complexity O((|V|+|E|)log|V|) geeks say O(E+VLogV) (with the use of Fibonacci heap
Space Complexity O(|V|)
下面写的代码中值得注意的是:
1) Graph 用二维matrix来实现,graph[u][v] 表示 u 到 v 的距离。如果 uv 不通, 那么 graph[u][v] = 0... | [
"california.sjy@gmail.com"
] | california.sjy@gmail.com |
5d9833dcdd35e411ee6f3e223d2a9feb7cdcdf14 | 553af49f5937ac8fdf47e826315ea5a761b56d0d | /lecture_07/wall_04.py | 694163031ac2190cef911550de1877e4e0eb2a85 | [] | no_license | compas-ITA20/ITA20 | 6ef232b6376de8a8b6391394f6b2f6e37f5d2068 | 244ddbfdc9480f4ea8dda7f983f600f4793594d8 | refs/heads/main | 2023-01-24T20:30:12.360193 | 2020-12-09T10:47:44 | 2020-12-09T10:47:44 | 300,848,724 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | from compas.geometry import Bezier
from compas.geometry import Point, Polyline, Vector
from compas.geometry import offset_polyline
from compas.geometry import intersection_line_segment_xy
from compas.utilities import linspace, pairwise
from compas_plotters import GeometryPlotter
def intersection_line_polyline(line, ... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
34312bb0ee7868abb57ef60d6422949c6780b782 | edc0974d07e0f4574636130c7ac3b1dceeb1c28b | /robot/backends/__init__.py | 7ef357f3cc9ae5bded2a7a91a1982c9a2f7fcd6a | [
"MIT"
] | permissive | prophile/robot-api2 | 32f3fabd6a2921fb244149099a341be65ba2f140 | 53d3a27bbbf1b1a044e9d883fa817bb03361186a | refs/heads/master | 2020-03-23T06:09:07.510785 | 2018-07-16T23:05:09 | 2018-07-16T23:05:09 | 141,191,968 | 0 | 3 | MIT | 2019-01-22T18:23:42 | 2018-07-16T20:39:30 | Python | UTF-8 | Python | false | false | 31 | py | """Robot hardware backends."""
| [
"arplynn@gmail.com"
] | arplynn@gmail.com |
e498ed42df11a9002be442314e0dfb847530b219 | 2aba3c043ce4ef934adce0f65bd589268ec443c5 | /atcoder/Indeed_now_qual_A/B.py | 0b953deb7658d51f31f98245cbd081e2b99bb72c | [] | no_license | kambehmw/algorithm_python | 4f66593b77039d90515d1fcbecacdab8c811b92f | 17222399dcc92fd8f908e5774a9883e2e89c486e | refs/heads/master | 2020-06-02T12:44:11.322356 | 2020-05-18T13:22:05 | 2020-05-18T13:22:05 | 191,157,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from collections import Counter
N = int(input())
S = [input() for _ in range(N)]
T = "indeednow"
counter = Counter(T)
for s in S:
if len(s) != len(T):
print("NO")
continue
counter2 = Counter(s)
flag = True
for k, v in counter2.items():
if k not in counter:
flag = Fal... | [
"kanbe.hmw@gmail.com"
] | kanbe.hmw@gmail.com |
5198c8f0ff598ce68a93865125ae5b40802f99a2 | 068070cc53bb033f6bf5cf2fe7660e6231ff1ae9 | /command.py | 798097d60fa12ca800a16cc8e4d788a7d2ebb179 | [
"MIT"
] | permissive | Answeror/yacron | afbed6ac6e0ba02a8d2fc4d67b5f7d0e512dfd82 | 45060bbaeffc2f06583b5c38607608e8770f4d51 | refs/heads/master | 2016-09-06T11:43:11.559755 | 2013-09-09T16:04:12 | 2013-09-09T16:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
.. module:: command
:synopsis: Some command used to build pyqt.
.. moduleauthor:: Answeror <answeror@gmail.com>
These code was borrowed from `https://bitbucket.org/jbmohler/pyhacc/src/b0ad3a0b1e58/setup.py`_.
"""
import os
import distutils
from distutils.core i... | [
"answeror@gmail.com"
] | answeror@gmail.com |
a94afbba47b18f02c8f95fe6db0082ed58da616c | 721f75630501927efb9f4bb9527d9ad5173714ea | /nbviewer/tests/base.py | 7f3458ff48d24a5e5bc7783e1d376db1e6cfc0e7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | charsmith/nbviewer | 3bf8faa3b0806888cb14125a6e4a1ce414763c46 | f2356c5c82f3c3d95f2201bf1ac6f106cdfd5426 | refs/heads/master | 2021-01-16T20:49:40.496538 | 2018-01-10T20:57:46 | 2018-01-10T20:57:46 | 20,975,398 | 0 | 0 | BSD-3-Clause | 2018-01-10T20:57:46 | 2014-06-18T19:36:05 | Python | UTF-8 | Python | false | false | 2,399 | py | """Base class for nbviewer tests.
Derived from IPython.html notebook test case in 2.0
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2013 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, ... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
243492441759892aacad82cd08e364136522c70a | 391a95ef338ac01956346438b597e2d23e13d708 | /libpysat/transform/multiply_vector.py | 895be654990c40dbf5538d356ae45946e758a498 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | wateryi/PyHAT | 34fecf822d673f35009c1d7172757b5bc5223341 | e7977d945ba1e928bf3163ed7992796fb833527d | refs/heads/master | 2020-06-18T20:18:30.090262 | 2020-05-01T01:12:50 | 2020-05-01T01:12:50 | 196,433,305 | 0 | 0 | NOASSERTION | 2019-07-11T16:52:45 | 2019-07-11T16:52:45 | null | UTF-8 | Python | false | false | 505 | py | #this function multiplies all the spectra in a data frame by a vector.
import numpy as np
import pandas as pd
def multiply_vector(df, vectorfile):
df_spectra = df['wvl']
# TODO: check to make sure wavelengths match before multiplying
vector = np.array(pd.read_csv(vectorfile, sep=',', header=None))[:, 1]
... | [
"rbanderson@usgs.gov"
] | rbanderson@usgs.gov |
af808a5caa79930f8276ae03bb82eb0cf792acb0 | 5b1ff6054c4f60e4ae7315db9f20a334bc0b7634 | /Push2/observable_property_alias.py | 2e3d81d968f12d6a54dbfadafc7979283138bf09 | [] | no_license | maratbakirov/AbletonLive9_RemoteScripts | 2869122174634c75405a965401aa97a2dae924a1 | 4a1517c206353409542e8276ebab7f36f9bbd4ef | refs/heads/master | 2021-06-05T14:38:27.959025 | 2021-05-09T11:42:10 | 2021-05-09T11:42:10 | 13,348,327 | 3 | 4 | null | 2016-10-16T13:51:11 | 2013-10-05T16:27:04 | Python | UTF-8 | Python | false | false | 1,448 | py | #Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/observable_property_alias.py
from __future__ import absolute_import, print_function
from ableton.v2.base import SlotManager, Slot
class ObservablePropertyAlias(SlotManager):
def __init__(self, ... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
b13cfc7dd7c09bffc0ad7fb5541f8106aca24199 | c2f4afee3ec4faef7231da2e48c8fef3d309b3e3 | /fibonacci.py | fdb44e57e885e0a330732763227f1562799bd197 | [] | no_license | tanu312000/pyChapter | a723f99754ff2b21e694a9da3cb2c6ca0cd10fce | 2fd28aefcbfaf0f6c34db90fdf0d77f9aea142ce | refs/heads/master | 2020-05-03T15:51:34.334806 | 2019-03-31T16:17:45 | 2019-03-31T16:17:45 | 178,712,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | import fibonacci
fibonacci.fib(10) | [
"tanurocks90@gmail.com"
] | tanurocks90@gmail.com |
dc024a4ba381f04fe26481171fa4aed643ffad8b | ee86ad4b38f6ba13f195246f14224ba781f933cc | /09_start/비트연산예제1.py | 52bacb459e2633987a88ed983f9c64c703ebd1e8 | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | def Bbit_print(i):
output = ''
for j in range(7, -1, -1):
if i & (1 << j):
output += '1'
else:
output += '0'
# output += '1' if i & (1 << j) else '0'
print(output)
for i in range(-5, 6):
print('{} = '.format(i), end='')
Bbit_print(i) | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
9672d446fc6d70d32c8ae69520ee2a435e1d1943 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/selfmarket/OrderReturnAddRequest.py | d55710e0b5f5c80e89f665c34fb0b6e8f10f5a29 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | # -*- coding: utf-8 -*-
'''
Created on 2015-12-28
@author: suning
'''
from suning.api.abstract import AbstractApi
class OrderReturnAddRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.outOrderId = None
self.oldOrderId = None
self.o... | [
"945090896@qq.com"
] | 945090896@qq.com |
3f208c733be675073a38549935c3b63d6bfcd83b | 706518f154812af56f8fc91a71cd65d9667d9ed0 | /python/paddle/tensor/stat.py | 8c74360a17d05bda855f338daf9ad6885fa1e2b6 | [
"Apache-2.0"
] | permissive | andreazanetti/Paddle | 3ea464703d67963134ffc6828f364412adb03fce | a259076dd01801e2e619237da02235a4856a96bb | refs/heads/develop | 2023-04-25T08:30:43.751734 | 2021-05-05T01:31:44 | 2021-05-05T01:31:44 | 263,870,069 | 0 | 2 | Apache-2.0 | 2020-07-07T10:45:08 | 2020-05-14T09:22:07 | null | UTF-8 | Python | false | false | 13,619 | py | # Copyright (c) 2020 PaddlePaddle 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 required by app... | [
"noreply@github.com"
] | andreazanetti.noreply@github.com |
782c942b2fc75fcf6b9a2197fdadadf5d66b9070 | 378d848acbcb495c164af9766c80ea8817d4b510 | /字符串/重排回文.py | 2b1e9b0545ff3a5c1808a080385f2da35947fe3a | [] | no_license | youkaede77/Data-Structure-and-Algorithm | fa0fb70e6016f8d0290310d356a8b1830867eed6 | 068fa82f29dc8ad41f00055cc76aeb6b8c24410d | refs/heads/master | 2022-04-09T06:52:18.448641 | 2020-02-24T16:15:47 | 2020-02-24T16:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # 对一个字符串进行重排,是否存在回文
# 如:aabccdd —— acdbdca 是
# 如: abc 不是
# 思路:
# 如果s长度为偶数,则每个字母必须出现偶数次
# 如果长度为奇数,只有一个字母出现奇数次
from collections import Counter
def is_permucate_palindrome(s):
n = len(s)
count = Counter(s)
odd = 0
for c in count.values():
if n%2 and odd >=2: # 奇数
return False
... | [
"weidafeng.edu@gmail.com"
] | weidafeng.edu@gmail.com |
f58290a7a2ebacbca7a192937e431cc851c73eb5 | 55b2068319ac68d89a086e43cae83ba6f440f9d5 | /test/test_tag_matcher.py | fa33fe9bb2ddbf5c7ccb7b8a48f35767dfd07c54 | [
"BSD-2-Clause"
] | permissive | sunliwen/behave | ecf88caf378296667ebc9b5527538725963b40a9 | 6debee106efc99c7d7a9ff4b9577abe8bf5fd31c | refs/heads/master | 2021-01-21T06:18:15.144832 | 2018-03-15T12:45:48 | 2018-03-15T12:45:48 | 27,376,204 | 1 | 1 | null | 2018-03-15T12:45:49 | 2014-12-01T11:24:30 | Python | UTF-8 | Python | false | false | 16,427 | py | # -*- coding: utf-8 -*-
from behave.tag_matcher import *
from mock import Mock
from unittest import TestCase
class TestOnlyWithCategoryTagMatcher(TestCase):
TagMatcher = OnlyWithCategoryTagMatcher
def setUp(self):
category = "xxx"
self.tag_matcher = OnlyWithCategoryTagMatcher(category, "alic... | [
"jenisys@users.noreply.github.com"
] | jenisys@users.noreply.github.com |
f8bcbca4ba2bd7e3422b4fb0acf48f8fde4128ae | 5730110af5e4f0abe538ed7825ddd62c79bc3704 | /pacu/pacu/core/svc/vstim/clock/tcp/__init__.py | e5209a96fc0aebe9b6cdcd813c6e40f09bc677ce | [] | no_license | jzeitoun/pacu-v2 | bdbb81def96a2d87171ca20b89c878b2f66975e7 | 0ccb254a658263b4fe8c80ea623f860cb7dc1428 | refs/heads/master | 2021-06-03T18:50:50.890399 | 2020-04-27T16:31:59 | 2020-04-27T16:31:59 | 110,889,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from pacu.core.svc.vstim.clock.tcp.oneway import OnewayTCPClock
from pacu.core.svc.vstim.clock.tcp.twoway import TwowayTCPClock
| [
"jzeitoun@uci.edu"
] | jzeitoun@uci.edu |
2ef0ef2379ebf4494a924278b069c3642cd630f3 | de428c011b56db862f05ec0ceab17b85f83f94b1 | /pythongame/game_data/abilities/ability_fireball.py | 34724c8299dfd5c68821f72061ffdb217bf7c69f | [] | no_license | risooonho/python-2d-game | c6d1fceaf09c72a6f7573230a4a899bf79164b7f | 24b02646ed56f9017069b243b774e0ee46951aea | refs/heads/master | 2021-05-17T06:02:13.538699 | 2020-02-15T23:59:54 | 2020-02-15T23:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,794 | py | import random
from pythongame.core.ability_effects import register_ability_effect, AbilityWasUsedSuccessfully, AbilityResult
from pythongame.core.buff_effects import get_buff_effect, AbstractBuffEffect, register_buff_effect
from pythongame.core.common import Sprite, ProjectileType, AbilityType, Millis, \
Direction... | [
"jonte.murray@gmail.com"
] | jonte.murray@gmail.com |
82530bb5148f663c6037aa9b33d89c402bc72c63 | ee66a0e854e196300f7d88bdb2bb2e88530a2571 | /code/data.py | dff0715c34d181d708993ec98ff4082054978bc0 | [
"MIT"
] | permissive | RuthAngus/kinematics-and-rotation | 343532d70ba79466f559a9abea7c525ce2d28b47 | 7cad283612bc70ca9d12c79978561b938f527198 | refs/heads/master | 2022-07-31T20:14:37.090658 | 2020-05-19T12:16:50 | 2020-05-19T12:16:50 | 187,388,579 | 2 | 2 | MIT | 2020-04-23T15:10:45 | 2019-05-18T17:47:54 | Jupyter Notebook | UTF-8 | Python | false | false | 6,758 | py | # Converting Exploring data into a script.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from astropy.io import fits
import astropy.utils as au
from astropy.coordinates import SkyCoord
from dustmaps.bayestar import BayestarQuery
import astropy.units as units
from tools import getDust
from star... | [
"ruth.angus@astro.ox.ac.uk"
] | ruth.angus@astro.ox.ac.uk |
1ad6a6fe4e509cff53c845770777678f0b1d73f9 | 25b4fc4a54faf0f4217f3661477fa8f26cd60164 | /Orders/migrations/0004_rename_city_order_town_city.py | f8f82d71f368704c408a0e1eeaf7fb9050510edf | [] | no_license | AshtiNematian/Book_Store_Nematian_ | 6f601f69f0a25522ac351e4ad963f17011254289 | b83ea7319dbead2be5812e2d001c58e7d906fff9 | refs/heads/master | 2023-07-21T03:56:48.386869 | 2021-09-03T17:03:17 | 2021-09-03T17:04:24 | 402,333,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | # Generated by Django 3.2.6 on 2021-08-26 09:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Orders', '0003_auto_20210826_1349'),
]
operations = [
migrations.RenameField(
model_name='order',
old_name='city',
... | [
"you@example.com"
] | you@example.com |
404fb6aeb98af6e4b45d47570ca4d57c33888f8c | acbfcd794191dc4919c6ab18a41dab128c9546ad | /setup.py | 122029909f03ba261a77e0373140abbf19ae7cc5 | [
"MIT"
] | permissive | nigma/django-request-id | 9b9562a7658d842557416c1cdf51c8dd6f5fa2ea | 0850e04e91b616b9aa8443959edf4a73a62289e4 | refs/heads/master | 2021-05-24T04:21:32.339021 | 2016-10-23T15:27:48 | 2016-10-23T15:27:48 | 16,383,094 | 28 | 13 | MIT | 2021-01-11T19:42:34 | 2014-01-30T16:36:59 | Python | UTF-8 | Python | false | false | 1,854 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = "1.0.0"
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel upload")
print("You probably want to also tag the ver... | [
"en@ig.ma"
] | en@ig.ma |
886ec42f03ae959f306ac16499444fbbe5fbec73 | 270363be5ea94d33469fe4271eccb343357d4fa6 | /linalg/optim/conjugate_gradient.py | 49f095c2ebeba493d88fd167c9316edb9ddffc69 | [] | no_license | tkelestemur/learn-linalg | c487389e9802b0223232bcb8c9ec0003cc7df091 | a6e04e903e5c9e00801b56a228c56fd8b8ba8c71 | refs/heads/master | 2023-03-19T05:53:34.407780 | 2021-01-02T13:54:40 | 2021-01-02T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import numpy as np
from .base import IterativeSolver
class ConjugateGradient(IterativeSolver):
"""A conjugate gradient (CG) solver.
Unlike gradient descent, CG is guaranteed to converge in at most `n` steps.
"""
def __init__(self, max_iters, tol=1e-6):
self.max_iters = max_iters
self.tol = tol
d... | [
"kevinarmandzakka@gmail.com"
] | kevinarmandzakka@gmail.com |
bf34a1e3f50cd8ba8fade62d4a408ed0f8953a02 | 36dfe29989de2005f5ad8f61b7575e16bc7f46ed | /Blue/BFS/JumpingNumber.py | 5a79cc610740b1fee81ec5e97ffb8142d69c7881 | [] | no_license | chrislevn/Coding-Challenges | ca17e26476a721ca855fef6e2e1587148758dde5 | dee52baaf5d15046a901b174e8b319deaa1c6107 | refs/heads/master | 2022-03-26T00:05:09.817752 | 2022-02-03T17:37:53 | 2022-02-03T17:37:53 | 242,436,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # Check if the value is a jumping number or not
def checkJumping(value):
#Split number into a list of string
splitNumber = list(str(value))
# Take first and second values and convert them into integer
firstValue = int(splitNumber[0])
secondValue = int(splitNumber[1])
# Calculate difference be... | [
"locvicvn1234@gmail.com"
] | locvicvn1234@gmail.com |
03c0b569271add7aed620e1f3b32dea58117f35c | ed15e441d4cd7a54d989610b8070a5d14bfda4c8 | /1805/python高级/5/8-重写.py | e395db85cdba412a97661b2bab7bab65a2cf3a0a | [] | no_license | jmh9876/p1804_jmh | 24593af521749913b65685e21ffc37281c43998f | a52a6366c21ad7598e71d8e82aeee746ecee7c6b | refs/heads/master | 2020-03-15T23:30:02.769818 | 2018-08-02T09:10:20 | 2018-08-02T09:10:20 | 132,395,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Animal():
def wark(self):
print("叫")
class Dog(Animal):
def wark(self):
print("汪汪叫")
class xiaotianquan(Dog):
def wark(self):
print("狂叫")
d = Dog()
d.wark()
xtq = xiaotianquan()
xtq.wark()
| [
"2210744940@qq.com"
] | 2210744940@qq.com |
2eb1a75ee9bf27075c117540d1608c6a2117b96b | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_enx.py | 0006cc37449f7bf8345db34670223292315b5b45 | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 Google LLC
#
# 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, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
82efc495c463906297ad2423d973ea7de9e5139b | 8c861caac797ecc24d9e907989af3d8b4493a2b4 | /gwt_pt/oanda/order/get.py | 4851450cd58e7821403824d52b0a59a2c9fa6020 | [] | no_license | eggyolktech/gwtPT | b607242ce5bbc13854f05eff69bf98ca6de2d218 | 23d60e54966fcd2ba85a1038ff807921d6b70028 | refs/heads/master | 2021-09-14T21:03:00.347549 | 2018-05-19T16:12:43 | 2018-05-19T16:12:43 | 112,349,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | #!/usr/bin/env python
import argparse
import gwt_pt.oanda.common.config
import gwt_pt.oanda.common.view
def main():
"""
Get the details of an Order in an Account
"""
parser = argparse.ArgumentParser()
#
# Add the command line argument to parse to the v20 config
#
gwt_pt.oanda.common... | [
"eggyolktech@gmail.com"
] | eggyolktech@gmail.com |
301053dfb0c8739c06bcc589b77f5b70570ea219 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03024/s649105913.py | 6ec6fb59fbfd609b785114ac42be49f9118c4f89 | [] | 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 | 117 | py | m = list(map(str,input()))
maru = m.count('o')
batsu = m.count('x')
if batsu > 7:
print('NO')
else:
print('YES') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a078ceb80fb08d947461e11dc935026a821823d3 | 8881a4927d893e1e755c0488f76ba7941b379f26 | /just_django/dashboard/notepad/views.py | 645436b0609ecc27be5307948ddc99273f019660 | [] | no_license | SatishNitk/Django | 6bb839fcf2bc7d70413e3d56ac98124a7a96a5de | d9260c032322a34410d783c39a8f13e8f63b8be4 | refs/heads/master | 2020-05-24T23:01:35.767388 | 2019-07-06T13:56:50 | 2019-07-06T13:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from django.shortcuts import render,redirect, get_object_or_404
from notepad.models import *
from notepad.forms import *
def create_view(request):
form = NoteModelForm(request.POST or None, request.FILES or None)
if form.is_valid():
form.instance.user = request.user
form.save()
return redirect('/')
context = ... | [
"satishkrgu95@gmail.com"
] | satishkrgu95@gmail.com |
5134d00deabcf5b4c674b1a99748d87fc878a810 | 4918c2450e4f5c74246257e6f77e4443db8594d7 | /src/alchemtest/tests/test_namd.py | 2249eb1cc5fa485d2e96ccd25518334dca809fa5 | [
"BSD-3-Clause"
] | permissive | ttjoseph/alchemtest-broken | 58ab5470cdaf112911a7b08048056a71597147a9 | d106cafcf02570d170f4ac78a11fb07517b5de11 | refs/heads/master | 2023-07-05T19:20:47.586928 | 2021-08-01T22:10:18 | 2021-08-01T22:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''Tests for all the NAMD datasets'''
import pytest
from alchemtest.namd import load_tyr2ala, load_idws
from . import BaseDatasetTest
class TestNAMD(BaseDatasetTest):
@pytest.fixture(scope="class",
params = [(load_tyr2ala, ('forward', 'backward'), (1, 1)),
(load... | [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
ca667e57f2843a81d8bdb44aa0f217287f0f2a5a | 212ea42ae6425e4a5e4563167d391e8ffe7e090b | /click_app_template_repository_demo/cli.py | 1bdd73daaec7a8a7c7223b2fbfb8613e4ad30338 | [
"Apache-2.0"
] | permissive | simonw/click-app-template-repository-demo-prev | 80563221203a7c6a909be50d5bdc9952dd927700 | 058f5b6fb2e4dee1ab80f7479b390c84c8deb984 | refs/heads/main | 2023-07-05T06:58:28.109577 | 2021-08-30T01:06:11 | 2021-08-30T01:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import click
@click.group()
@click.version_option()
def cli():
"Demo of simonw/click-app-template-repository"
@cli.command(name="command")
@click.argument(
"example"
)
@click.option(
"-o",
"--option",
help="An example option",
)
def first_command(example, option):
"Command description goes h... | [
"actions@github.com"
] | actions@github.com |
b6f5ac176c14ef3851f5eb729f9346af4e42b399 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/173a9e3eb37826e2524f5dd66aab24fcf203068b-<_get_outer_edges>-bug.py | 6b77e21432d3ffaf2f38b31d8a9f3d2dbeb18926 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | def _get_outer_edges(a, range):
'\n Determine the outer bin edges to use, from either the data or the range\n argument\n '
if (range is not None):
(first_edge, last_edge) = range
elif (a.size == 0):
(first_edge, last_edge) = (0, 1)
else:
(first_edge, last_edge) = (a.min(... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
e62161aae7741e63193d7fe0fed8497b20197711 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkBSplineResampleImageFunctionPython.py | 3de6009b7934c7c391948b53336b3deac2ba1648 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,840 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _itkBSplin... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
d5623029647237a1c70c28295148fe8a911cf82c | 7297f40a65a84c5acd38cfa2822c8366d2f49b45 | /auth_demo/settings.py | 5383ac9ac0f2ca330924f6a1429a9ac16919727b | [
"Apache-2.0"
] | permissive | aleducode/shopify-django-custom | 4041b224a52995718aeb15ea5b5bedf7083cf8b7 | d6199fbb42d944baa3ee36119e5e47c008cad1fd | refs/heads/master | 2020-12-21T22:45:35.629700 | 2020-01-27T20:57:09 | 2020-01-27T20:57:09 | 236,589,887 | 0 | 0 | Apache-2.0 | 2020-01-27T20:57:11 | 2020-01-27T20:40:31 | Python | UTF-8 | Python | false | false | 6,698 | py | # Django settings for auth_demo project.
import os
import environ
import dotenv
from django.conf import settings as global_settings
env = environ.Env()
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Load environment variables from a .env file so that they can be read later in settings via... | [
"ducode@outlook.com"
] | ducode@outlook.com |
6f5575a487b01c27d32de08574f1e27559e0a69a | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_20180627095012.py | a9c18eebfc9fc6c0d2176b210806e6bc43b539e7 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 2,109 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import graph_tool.all as gt
from pathlib import Path
# Paths
da... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
62e39e9ef55d6356ad92505d98340e913905cb6d | 3c4df269135bacb78b5e56892789bc5bd315ce5b | /tests/chainer_tests/dataset_tests/tabular_tests/test_tabular_dataset.py | 228b4b630f25971a3e7a07b3e143414828870b18 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dl4fugaku/chainer | 64affb7786644c96e267f5ae47c60f0af66e34de | 34655eff5986522eae56f47fc82a8cc2b78e1617 | refs/heads/master | 2020-06-18T04:02:08.194893 | 2019-07-10T06:00:59 | 2019-07-10T06:00:59 | 196,157,185 | 2 | 0 | MIT | 2019-07-10T07:43:29 | 2019-07-10T07:43:29 | null | UTF-8 | Python | false | false | 2,442 | py | import unittest
import numpy as np
from chainer import testing
from chainer_tests.dataset_tests.tabular_tests import dummy_dataset
@testing.parameterize(*testing.product({
'mode': [tuple, dict, None],
'return_array': [True, False],
}))
class TestTabularDataset(unittest.TestCase):
def test_fetch(self):
... | [
"Hakuyume@users.noreply.github.com"
] | Hakuyume@users.noreply.github.com |
b28d6aa720de968226e1d6e9d08a1ba1ab0dc952 | 2a28a94fc8eb08961e76c61ab73889135153502b | /asposecellscloud/requests/get_worksheet_shape_request.py | ad7111df252c027654d13a68a5479b3fda851a03 | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,324 | py | # coding: utf-8
"""
<copyright company="Aspose" file="GetWorksheetShapeRequest.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
f012ee7eb3d7e55e579d51802426fbc3b902d52b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_0/Python/farizazmi/A.py | ed241a8ad3d77775b45e57d65fc2d39acced49b0 | [] | 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 | 179 | py | for tc in range(1, input() + 1):
s = raw_input()
res = s[0]
for c in s[1:]:
res = (c + res) if (c >= res[0]) else res + c
print "Case #" + str(tc) +": " +str(res) | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
e9454cb8b2ce93c128e3e190ddca723d58101c9d | 9b50b3a7dda2711c5665909f6801249de53e70f6 | /0x08-python-more_classes/7-rectangle.py | 054052e23ccdae50a8c09cd1654bab028818244d | [] | no_license | nikolasribeiro/holbertonschool-higher_level_programming | 3119e5442887f06da104dc8aa93df371f92b9f2b | 7dcdf081d8a57ea1f5f6f9830555f73bf2ae6993 | refs/heads/main | 2023-04-21T05:22:03.617609 | 2021-05-05T11:38:51 | 2021-05-05T11:38:51 | 319,198,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | #!/usr/bin/python3
""" defining rectangle based on 6-rectangle """
class Rectangle:
""" defining Rectangle class """
number_of_instances = 0
print_symbol = "#"
def __init__(self, width=0, height=0):
""" intializing self """
if not isinstance(width, int):
raise TypeError("w... | [
"nikolasribeiro2@outlook.com"
] | nikolasribeiro2@outlook.com |
794af4c80e6438d9bca37d38bfc0a8c39c1a78ed | d7016f69993570a1c55974582cda899ff70907ec | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2019_11_01/_subscription_client.py | d0a6b9a75effd9721990b295820f4ddd79f83d86 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 4,526 | 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"
] | kurtzeborn.noreply@github.com |
166cdbbc1b7be4aedad563e778df023b40d613c5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_misappropriated.py | c37b06a6f096fe5ec79442af9b84df72df3d68c5 | [
"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 | 294 | py |
from xai.brain.wordbase.verbs._misappropriate import _MISAPPROPRIATE
#calss header
class _MISAPPROPRIATED(_MISAPPROPRIATE, ):
def __init__(self,):
_MISAPPROPRIATE.__init__(self)
self.name = "MISAPPROPRIATED"
self.specie = 'verbs'
self.basic = "misappropriate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
66a6c2e6b8e1264e6f44f286d041502183cecaf5 | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/Sudoku.py | 4c45af801b7459a5a0bee3ceef9b890e6c2cbb3e | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,895 | py | # A Backtracking program in Python to solve Sudoku problem
# A Utility Function to print the Grid
def print_grid(arr):
for i in range(9):
for j in range(9):
print(arr[i][j]),
print('\n')
# Function to Find the entry in the Grid that is still not used
# Searches the grid to fin... | [
"stalker.comp@gmail.com"
] | stalker.comp@gmail.com |
b459c08ff024d80fab1c4cc22f00a975da13d9a8 | cfc6fa337c7e14bae58b9e0398df0b3867670e96 | /FinalReact/ReactBlog/R_Blog/views.py | 87f24c52c7cecabe100ae5aca14337861026e716 | [] | no_license | nahidhasan007/Django-React | f9f5d5e9085bcbe51b0d733bd9f8443452648630 | 447a48c978b492dca25ba63ee9de2d0d3a38a4c4 | refs/heads/master | 2023-04-08T05:44:45.743812 | 2021-04-16T10:09:06 | 2021-04-16T10:09:06 | 352,295,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from django.shortcuts import render
from rest_framework import viewsets
from .models import Post, Profile
from .serializers import PostSerializer
class PostView(viewsets.ModelViewSet):
queryset = Post.objects.all().order_by("-id")
serializer_class = PostSerializer
| [
"teachpeach007@gmail.com"
] | teachpeach007@gmail.com |
71e4d56ab8ea75a0c44e7921df231de7b09d4455 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/offazure/azext_offazure/manual/_help.py | d6cefd13b57c603a4582826ccb63d694510526c6 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 10,669 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a8b576214b7eab96cf1de89a58b6b5785690b0bb | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/query-tests/Testing/test.py | 1c79f177ac606504ddb02ae7bad95bd14ff3fb4a | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 213 | py | from unittest import TestCase
class MyTest(TestCase):
def test1(self):
self.assertTrue(1 == 1)
self.assertFalse(1 > 2)
self.assertTrue(1 in [1])
self.assertFalse(0 is "")
| [
"mark@hotpy.org"
] | mark@hotpy.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.