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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b07068e53d5ceac86d2431c09b775cdc9a8e872a | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/tangible/lair/base/shared_poi_all_lair_insecthill_small_fog_gray.py | 7b3c9de5103bfa24a894b44ac8e8c59d5f7349ac | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 469 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/lair/base/shared_poi_all_lair_insecthill_small_fog_gray.iff"
result... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
123bd91eada7ece3d6f864c35413bb2c53b6a044 | 156d054848b211fd4ca75057b9b448c9260fdd7d | /python-data-analysis/python_data_analysis/ch06/ch06-6.py | 9c509a860d71e83883edf980f1ddaa56f8617c1d | [] | no_license | wwxFromTju/Python-datascience | adfc06030dc785901b5fd33824529f86fcf41c54 | 7c58526ef54a6f10cbe1d4c7e5e024ddc423908a | refs/heads/master | 2021-01-20T17:36:51.701638 | 2016-09-04T11:21:56 | 2016-09-04T11:21:56 | 58,730,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | #!/usr/bin/env python
# encoding=utf-8
from urllib2 import urlopen
from lxml.html import parse
import pandas as pd
import numpy as np
from pandas.io.parsers import TextParser
from pandas import Series, DataFrame
# XML和HTML
# 通过指定kind来获得列名或数据
def _unpack(row, kind='td'):
elts = row.findall('.//%s' % kind)
retu... | [
"wxwang@tju.edu.cn"
] | wxwang@tju.edu.cn |
0243fca320209c2522051b1b89d64c9a349e4937 | 7160f0637ba4fdd85feeb43aca2125c3479c474c | /config/spec.py | b1b021a751d98f14b75db187ffcdf0c648646468 | [
"MIT"
] | permissive | RENCI/pdspi-mapper-parallex-example | 86a39e513f1e07f73be1281c81b2b143ed7e5d80 | 1c99fa42b7b9bc2c09e9cad2f1c55ea10549814a | refs/heads/master | 2023-05-11T04:29:58.354329 | 2021-03-03T23:14:21 | 2021-03-03T23:14:21 | 260,721,734 | 0 | 2 | MIT | 2023-05-01T21:42:44 | 2020-05-02T15:54:12 | Python | UTF-8 | Python | false | false | 5,561 | py | from pdsphenotypemapping.clinical_feature import *
from tx.dateutils.utils import strtodate
from dateutil.relativedelta import relativedelta
requested_patient_variable_ids = get_patient_variable_ids(patientVariables)
timestamp_datetime = strtodate(timestamp)
for patient_id in patientIds:
patient_data = deref(data, ... | [
"xuh@cs.unc.edu"
] | xuh@cs.unc.edu |
33df19f351ae1e38a5fef7a942b3eaaee767871b | 6e46a850cc4ece73476a350e676ea55ce72b200a | /aliyun-python-sdk-reid/aliyunsdkreid/request/v20190928/ImportSpecialPersonnelRequest.py | fb397d0415577135ad8be89532374fbb0d1edd62 | [
"Apache-2.0"
] | permissive | zhxfei/aliyun-openapi-python-sdk | fb3f22ca149988d91f07ba7ca3f6a7a4edf46c82 | 15890bf2b81ce852983f807e21b78a97bcc26c36 | refs/heads/master | 2022-07-31T06:31:24.471357 | 2020-05-22T17:00:17 | 2020-05-22T17:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
0565407cdfc58de77957fbefb50611a9c24c4748 | d9720a7b4bfe713426f766547062aaeacdfa2566 | /models/city.py | 44ade30d3614b334699e4c1bc26318d31b39b2b7 | [
"MIT"
] | permissive | AlisonQuinter17/AirBnB_clone | b90a96bc2256e32f648bb2b9a8e1dbdba90ca4eb | c890e3b4f9eb7a3ded96ac756387109351e6b13f | refs/heads/main | 2023-01-19T05:10:39.635975 | 2020-11-18T17:36:59 | 2020-11-18T17:36:59 | 308,370,255 | 1 | 2 | MIT | 2020-11-03T16:03:36 | 2020-10-29T15:27:01 | Python | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python3
from models.base_model import BaseModel
class City(BaseModel):
""" city attributes """
state_id = ""
name = ""
| [
"afarizap@gmail.com"
] | afarizap@gmail.com |
2b117cb43b2993dc5748ae809156750eb0e3a3f7 | 6bf005128fb95ea21994325ace59cf0664d0159e | /U3DAutomatorClient/script/windows/PPT3DTestCase/FirstStageTestCase/InsertWordArtTestCase.py | 101fe499da4ad6957383cee6f9715c1d14d63a4c | [] | no_license | Bigfishisbig/U3DAutomatorTest | 5ab4214fc6cda678a5f266fb013f7dd7c52fcaf8 | 93a73d8995f526f998ff50b51a77ef0bbf1b4ff8 | refs/heads/master | 2023-01-07T11:59:19.025497 | 2019-09-20T06:06:55 | 2019-09-20T06:06:55 | 209,458,914 | 0 | 0 | null | 2022-12-27T15:35:30 | 2019-09-19T03:58:43 | Python | UTF-8 | Python | false | false | 1,796 | py | #!/usr/bin/env python
# coding=utf-8
"""
文件名称:InsertWordArtTestCase.py
作者:ycy
版本:PPTPro
创建时间:2019/1/18 15:51
修改时间:
软件:PyCharm
"""
from script.windows.Operation import *
from script.windows.SystemDialog import SystemDiaglog
from script.windows.PPT3DTestCase.Action import Action
from script.windows.PPT3DSetting.SourcePat... | [
"1227479796@qq.com"
] | 1227479796@qq.com |
6c3521f7f8735e45cd7fa0cd7ff651fbf0bf0d51 | 717171ed7a14ad60dd42d62fe0dd217a0c0c50fd | /19年7月/7.02/base64处理图形验证码.py | bd54377e9b458358c19bb62f61375ac74e346fcc | [] | no_license | friedlich/python | 6e9513193227e4e9ee3e30429f173b55b9cdb85d | 1654ef4f616fe7cb9fffe79d1e6e7d7721c861ac | refs/heads/master | 2020-09-04T14:34:48.237404 | 2019-11-18T14:54:44 | 2019-11-18T14:54:44 | 219,756,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | import requests,base64,sys,csv
from PIL import Image
address_url = 'https://www.ele.me/restapi/bgs/poi/search_poi_nearby?'
place = input('请输入你的收货地址:')
params = {
'geohash': 'wtw3sjq6n6um',
'keyword': place,
'latitude': '31.23037',
'limit': '20',
'longitude': '121.473701',
'type': 'nearby'
}... | [
"1164166295@qq.com"
] | 1164166295@qq.com |
05be3d589bb0eef2a4cd064c43dcf7e93a68c7a2 | e8b38b8dfa348ff006eb197a7906ca8e491a23dc | /tests/conftest.py | 79144b69789b7a96597410997a9f0eea0252414d | [
"MIT"
] | permissive | pyccel/pyccel | d79a81dbdff1172839a6a1227abfcc1f97e6c97b | 1896b761ba662c90b14c195bbb6eb5cddc57cbfc | refs/heads/devel | 2023-08-30T12:15:25.244401 | 2023-08-28T09:31:32 | 2023-08-28T09:31:32 | 100,463,736 | 307 | 39 | MIT | 2023-09-14T19:29:26 | 2017-08-16T07:59:14 | Python | UTF-8 | Python | false | false | 2,423 | py | # pylint: disable=missing-function-docstring, missing-module-docstring
import logging
import os
import shutil
import pytest
from mpi4py import MPI
from pyccel.commands.pyccel_clean import pyccel_clean
github_debugging = 'DEBUG' in os.environ
if github_debugging:
import sys
sys.stdout = sys.stderr
@pytest.fixt... | [
"noreply@github.com"
] | pyccel.noreply@github.com |
41a3917f248cec7eca19c81329335ccd0bd32c96 | 696799b824503429a3ac65ebdc28890bfbcaebe0 | /plugins/com.astra.ses.spell.gui.cots_4.0.2.201806070922/win32/spell/spell/lib/adapter/value.py | 4d84f6d6e65da20cf8515b2f88d5d692597a2fe7 | [] | no_license | CalypsoCubesat/SPELL_GUI_4.0.2_win32_x86 | a176886b48873b090ab270c189113a8b2c261a06 | 9275ecfff2195ca4d4c297f894d80c1bcfa609e3 | refs/heads/master | 2021-08-03T08:04:25.821703 | 2019-10-28T04:53:50 | 2019-10-28T04:53:50 | 217,968,357 | 0 | 0 | null | 2021-08-02T17:03:44 | 2019-10-28T04:50:59 | Python | UTF-8 | Python | false | false | 3,989 | py | ###############################################################################
"""
(c) SES-ASTRA 2008
PACKAGE
spell.lib.adapter.value
FILE
user.py
DESCRIPTION
Variant value helper class
COPYRIGHT
This software is the copyrighted work of SES ASTRA S.A.
All rights reserved.
PROJECT
... | [
"matthew.travis@aresinstitute.org"
] | matthew.travis@aresinstitute.org |
7969080b1179beb14ddaf543f8a32366a6d882ae | 253cd5d6074d322a233bda37da4b1c663b6027b3 | /cooking/timestamp/broadcast_utils/user_utils.py | 13c1fc1ea72b1fe54f12287338a2f130e94404fa | [] | no_license | ZandTree/idea_project | 85321156149f9365c6380537d34f05f98e8885ae | e48ea39ef05b54c197b635313fb7b5304bd5691c | refs/heads/main | 2023-08-29T11:12:48.561578 | 2021-11-15T16:18:18 | 2021-11-15T16:18:18 | 417,647,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | def get_ip(req):
"""
if x_forward present return it;
otherwise remote_addr or empty string
"""
try:
forward = req.META.get('HTTP_X_FORWARDED_FOR')
if forward:
return req.META.get('HTTP_X_FORWARDED_FOR', req.META.get('REMOTE_ADDR', '')).split(',')[0].strip()
else:
... | [
"diafox2015@gmail.com"
] | diafox2015@gmail.com |
6d73d4509904137b281d8d1e94290549eded70ac | dab869acd10a3dc76e2a924e24b6a4dffe0a875f | /Laban/LabanLib/dumpLabanRecognizer.py | 23f896b8fb16ae97cc5714311bc2eb2e59973fba | [] | no_license | ranBernstein/Laban | d82aff9b0483dd007e03a06e51f7d635f62ed05d | 54c88afa9493deacbdd182904cc5d180ecb208b4 | refs/heads/master | 2021-01-23T13:17:51.777880 | 2017-02-14T09:02:54 | 2017-02-14T09:02:54 | 25,508,010 | 3 | 1 | null | 2017-02-14T09:02:55 | 2014-10-21T07:16:01 | Tcl | UTF-8 | Python | false | false | 382 | py | import pickle
import LabanUtils.util as labanUtil
X = pickle.load( open( "X", "r" ) )
Y_laban = pickle.load( open( "Y_Laban", "r" ) )
labanClf, selectedIndices = labanUtil.getMultiTaskclassifier(X, Y_laban)
f = open('labanClf', 'w')
f.flush()
pickle.dump(labanClf, f)
f.close()
f = open('selectedIndices',... | [
"bernstein.ran@gmail.com"
] | bernstein.ran@gmail.com |
eb03fe561672b829d8ba86e36d4ee415da5ad41c | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_15000~/B_15652.py | cc6422a80ae1ddbd9b06ca5b3cf7a4710db163d2 | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # 중복 허용
# 비내림차순
N,M=list(map(int,input().split()))
result=[]
def is_promising():
base=int(result[0])
for i in range(1,len(result)):
if base>int(result[i]): # 비내림차순이 아닐 때
return False
else:
base=int(result[i]) # 비교값을 최신으로 갱신
continue
return True
def Bru... | [
"kangsm0903@naver.com"
] | kangsm0903@naver.com |
0307636f3350b41783f6bc369c9b7562faa04092 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1154.py | d57c56b69272d0a44af0fad344cc5e916a3e8b59 | [] | 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 | 654 | py | infile = open('D:\study\codejam\codejam2014\B-large.in','r')
outfile = open('D:\study\codejam\codejam2014\B-large.out','w')
def main():
T = int(infile.readline())
for case in range(1,T+1):
doCase(case)
infile.close()
outfile.close()
def doCase(case):
c,f,x = [float(x) for x in inf... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ab39ec8dc7ed3dc0a971ff1d720fcf1da8835483 | 5a01497e7c29e2488b6a4cb0478405239375eb66 | /apetools/commons/broadcaster.py | c2cb2070a7ee15ecdd67b7b8e8a1da9bc821e7bf | [
"Apache-2.0"
] | permissive | russell-n/oldape | 8b4d9e996181dc1c7175f72d75c6193443da591b | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | refs/heads/master | 2021-05-30T20:02:18.895922 | 2016-03-27T04:38:18 | 2016-03-27T04:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py |
from apetools.baseclass import BaseClass
class Broadcaster(BaseClass):
"""
A broadcaster sends a single datum to multiple targets
"""
def __init__(self, receivers):
"""
:param:
- `receivers`: an iterable of callable receivers
"""
super(Broadcaster, self).__in... | [
"necromuralist@google.com"
] | necromuralist@google.com |
30119e16f12f09d9fa55d967a0bb62f049303183 | 2f5ab43956b947b836e8377370d786e5ee16e4b0 | /sklearn2code/sym/test/test_function.py | c0ae2740f50a0419fbe09bbe835b40e8516be96a | [
"MIT"
] | permissive | modusdatascience/sklearn2code | b175fb268fa2871c95f0e319f3cd35dd54561de9 | 3ab82d82aa89b18b18ff77a49d0a524f069d24b9 | refs/heads/master | 2022-09-11T06:16:37.604407 | 2022-08-24T04:43:59 | 2022-08-24T04:43:59 | 115,747,326 | 4 | 2 | MIT | 2018-05-01T00:11:51 | 2017-12-29T19:05:03 | Python | UTF-8 | Python | false | false | 3,495 | py | from sklearn2code.sym.function import Function
from nose.tools import assert_list_equal, assert_equal
from operator import __add__, __mul__, __sub__
from six import PY3
from sklearn2code.sym.expression import RealVariable, RealNumber
def test_map_symbols():
fun0 = Function(('x', 'y'), tuple(), (RealVariable('x') +... | [
"jcrudy@gmail.com"
] | jcrudy@gmail.com |
f0ddcfc1386615bfe664efdcc8da103a73ee296d | 05cde6f12d23eb67258b5a21d4fb0c783bcafbe5 | /almebic/models/engine/db_engine.py | 1078b54006ced768772dd3efb6b54c9b7762b300 | [] | no_license | alejolo311/DataInMotion | f5aff692bcaf9a795969951146f6ab7dc6557b08 | 75014600785f9d7f8a4771a9bb24e322e812d08f | refs/heads/master | 2023-05-13T00:57:41.407175 | 2020-07-26T00:51:49 | 2020-07-26T00:51:49 | 267,895,607 | 3 | 2 | null | 2023-05-01T21:26:16 | 2020-05-29T15:46:04 | CSS | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/python3
"""
Controls the ORM transactions using postgres db
"""
from models.base import BaseNode, Base
from models.user import User
from models.board import Board
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
class DBEngine:
__engine = None
__session ... | [
"danrodcastillo1994@gmail.com"
] | danrodcastillo1994@gmail.com |
35fe9e8d12cff46a0e0ea7b51843e2426507bb4a | 59e87634c67508bf7eba8c8b9845354aefa57bc7 | /ML/naiveBayes/bayes-titanic.py | b9caec4be2a8acf3fb164902e7017e85f90efa1c | [] | no_license | Caohengrui/MLAndDL | 48729b94b2232e628b699cf8d0d4a6c6e81a36f5 | d0637f58f45e9c091cd90bbfe9c207223d0994f3 | refs/heads/master | 2023-03-16T01:06:03.316463 | 2020-04-14T07:44:15 | 2020-04-14T07:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | """
Author:wucng
Time: 20200110
Summary: 朴素贝叶斯对titanic数据分类
源代码: https://github.com/wucng/MLAndDL
参考:https://cuijiahua.com/blog/2017/11/ml_4_bayes_1.html
"""
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler,MinMaxScaler
# from sklearn.neighbors import KNeighborsRegre... | [
"gzcl_wcon@126.com"
] | gzcl_wcon@126.com |
38a90854558605e5a014f7e6272b4f3c11060c65 | 265a07a2becd232b292872d1d7136789463874be | /lianxi代码/erchashu.py | 5543da1004e52bdcd18148677402156b24dcc306 | [] | no_license | Lz0224/Python-exercise | f4918b8cd5f7911f0c35c0458c2269959937d07d | 3d09f54aebc653f4a5b36765b25c7241e3960764 | refs/heads/master | 2020-12-24T22:20:55.573019 | 2017-08-11T07:18:16 | 2017-08-11T07:18:16 | 100,005,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #!/usr/bin/python
#coding=utf-8
'''
created bu zwg in 2017-7-8
'''
import copy
class node(object):
def __init__(self, name, data):
self.data = data
self.name = name
self.Rchild = None
self.Lchild = None
self.child_number = 0
self.parent = None
def add_... | [
"Lz0o_o0@outlook.com"
] | Lz0o_o0@outlook.com |
b8e02a80dd4ae30959b434085ed27933a2f54964 | ae3d0e3c2fb614d96f6c787583c6e2e4cb654ad4 | /leetcode/89. 格雷编码.py | 6efb740a93fba7e0c11adf3290a8e415330f35cf | [] | no_license | Cjz-Y/shuati | 877c3f162ff75f764aa514076caccad1b6b43638 | 9ab35dbffed7865e41b437b026f2268d133357be | refs/heads/master | 2023-02-02T10:34:05.705945 | 2020-12-14T01:41:39 | 2020-12-14T01:41:39 | 276,884,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | from typing import List
class Solution:
def grayCode(self, n: int) -> List[int]:
if n == 0:
return [0]
current = '0' * n
ans = [current]
use = set()
use.add(current)
while current:
next = None
sl = list(current)
fo... | [
"cjz.y@hotmail.com"
] | cjz.y@hotmail.com |
0b573c7d0218cd57688f0d50721997333fe6315d | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/CreateTransitRouteTableAggregationRequest.py | 33fc8ff3c8ce5418023c4de179e733b508294cf5 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 4,095 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
6c6dace090ac4698a71aa96258aa378ca9e059f0 | aec9a1f3d1d36f19724e745ca4d09a20f67208dc | /matching/migrations/0006_auto_20210114_2030.py | 799634392703d79e913d7c68e61a37828e2927c9 | [] | no_license | endlessor/open-united-backend | b1b1c3411d0d48bc79b35895c70f24d773ac7344 | 86f6905cce14b834b6bf059fd33157249978bd14 | refs/heads/main | 2023-04-29T13:35:28.529360 | 2021-05-17T14:16:39 | 2021-05-17T14:16:39 | 368,211,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # Generated by Django 3.1 on 2021-01-15 20:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('matching', '0005_auto_20210113_1839'),
]
operations = [
migrations.RemoveField(
model_name='taskclaimrequest',
name='s... | [
"robcoder@hotmail.com"
] | robcoder@hotmail.com |
c737c2c9df7e4e431e045cdd97aecd4aa4483742 | dcbb4a526f6cf6f490063a6e4b5f1353fda48a1f | /tf_agents/drivers/tf_driver.py | de16194c74cf80ce5e092c4607046a47a02b73ac | [
"Apache-2.0"
] | permissive | Bhaney44/agents | 91baf121188f35024c09435276d108600ba6f07e | 792d7c6e769d708f8b08d71926ccb9e8a880efef | refs/heads/master | 2023-08-09T03:51:16.188708 | 2023-07-21T17:50:18 | 2023-07-21T17:50:18 | 177,231,436 | 0 | 0 | Apache-2.0 | 2019-03-23T01:46:03 | 2019-03-23T01:46:02 | null | UTF-8 | Python | false | false | 5,527 | py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
9e25a76b082548ee94432dc821353a29a8e5f423 | 107973063f26b791ccd6deca0026acb338eb4d6b | /harvest.py | 8631b158987a039be018791b790f53b2a123623b | [] | no_license | sonya-sa/melon-objects | 322b46138ee9287b74cf8eb50bae64f56eb50e23 | a035db0be16e749a0654cc8518315f408efc72bc | refs/heads/master | 2020-03-10T10:15:07.606336 | 2018-04-13T01:09:39 | 2018-04-13T01:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | ############
# Part 1 #
############
class MelonType(object):
"""A species of melon at a melon farm."""
def __init__(self, code, first_harvest, color, is_seedless, is_bestseller, name):
"""Initialize a melon."""
self.code = code
self.first_harvest = first_harvest
self.color ... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
d5d7bc6f783064bdf9f3c5a83dec9a899defc356 | 060967fa3e6e390ac0504172e6dea8421ffb9d98 | /2022/python2022/aoc/day01.py | f8899599170d8fd6ebfed8fd5aa9f6cefed79066 | [] | no_license | mreishus/aoc | 677afd18521b62c9fd141a45fec4b7bc844be259 | e89db235837d2d05848210a18c9c2a4456085570 | refs/heads/master | 2023-02-22T12:00:52.508701 | 2023-02-09T04:37:50 | 2023-02-09T04:39:44 | 159,991,022 | 16 | 3 | null | 2023-01-05T10:00:46 | 2018-12-01T22:00:22 | Python | UTF-8 | Python | false | false | 901 | py | #!/usr/bin/env python
"""
Advent Of Code 2022 Day 1
https://adventofcode.com/2022/day/1
"""
from typing import List
import heapq
def parse(filename: str) -> List[int]:
"""
Parse the input file into a list of integers.
Each integer is the sum of the numbers in a block.
"""
with open(filename) as fi... | [
"mreishus@users.noreply.github.com"
] | mreishus@users.noreply.github.com |
9e011f833190c003c501b34093c98fea67323259 | 6bf492920985e3741440ba53e1c7f8426b66ac1f | /snakemake_rules/rules/gatk/gatk_combine_variants.smk | 4aeb72ab60e819d714f462e05f027c1fd761730a | [
"MIT"
] | permissive | ukaraoz/snakemake-rules | 5b2ba7c9ec19d88b56067a46f66fd0c72e48c368 | 07e96afeb39307cdf35ecc8482dc1f8b62c120b9 | refs/heads/master | 2020-03-31T15:20:44.444006 | 2018-09-07T08:53:47 | 2018-09-07T08:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | smk | # -*- snakemake -*-
include: 'gatk.settings.smk'
include: 'gatk_variant_snp_JEXL_filtration.smk'
include: 'gatk_variant_indel_JEXL_filtration.smk'
config_default = {'gatk': {'combine_variants': _gatk_config_rule_default.copy()}}
update_config(config_default, config)
config = config_default
cmd = re.sub("-Xmx[0-9a-zA... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
bcdd0abe6750285e7fa6b8a7a95cdf85baaf302a | 3bb1cf4309e0e6488aeb3e5ae8b78138cfdaa002 | /kyopro_tenkei/90_54.py | 8de332b75aa23b0227743cdd237feacaa92f0a7a | [] | no_license | show2214/atcoder | 18a2dd0c2167fadeda2725a67d2d68d593b0bef9 | 7aae17b41b07bece746b34258b9514e145186327 | refs/heads/master | 2022-06-27T19:17:46.514876 | 2022-06-19T23:21:48 | 2022-06-19T23:21:48 | 249,148,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | N, M = map(int, input().split())
g = [[] for _ in range(N + M)]
for i in range(M):
input()
for j in map(int, input().split()):
g[N + i] += j - 1,
g[j - 1] += N + i,
from collections import *
q = deque([0])
v = [0] + [-1] * (N + M)
while q:
c = q.popleft()
for b in g[c]:
if v[b... | [
"show2214@icloud.com"
] | show2214@icloud.com |
f1c5e69189bc8a90462b021c01db2e9eb96a1b0a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03239/s478967614.py | 7b473b8df981d413d6bb9ee6fe7d2eb9b2bdec4c | [] | 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 | 201 | py | n, t = map(int, input().split())
ans = 100000
for i in range(n):
c, tt = map(int, input().split())
if tt <= t:
ans = min(ans, c)
if ans == 100000:
print("TLE")
else:
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a18b89fb83c54798265c1232a5612a39c65e53ff | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ke4FSMdG2XYxbGQny_5.py | 3eb2cfb5e413340d184121753557a8220852eae5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
def even_odd_transform(lst, n):
l=lst
if len(l)==0:
return l
for i in range(n):
for j in range(len(l)):
if l[j]%2==0:
l[j]=l[j]-2
else:
l[j]=l[j]+2
return l
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9fce20f8fc036410b74c53272e3f3ba7e0bbea05 | 9468507c1beeb2cb69591889605ea155d2cb7a63 | /mysite/urls.py | 3c3cb29f215257dcd4b0b3f45a2b59dd078c5b1b | [] | no_license | nimal54/drf-polls | 2375e2f5b78670de40c72b51eb616a69e7f49a65 | 9b29230998146eb225e0cffa0703d6bed1cc876a | refs/heads/master | 2020-04-25T00:21:14.952917 | 2018-03-16T11:54:53 | 2018-03-16T11:54:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.urls import include, path
from django.contrib import admin
urlpatterns = [
path('api/', include('polls.urls')),
path('admin/', admin.site.urls),
] | [
"will@wsvincent.com"
] | will@wsvincent.com |
dc07e4c5023b62bbac3b5ed25bf1cbde99182341 | 54516826a15e4588decd4a040c3f3ae73b1f49df | /supplier/admin.py | d4cd50319ed56dfbd6c7cc180afdbbb36f403d02 | [] | no_license | boyombo/shylock | 9454b53ef285af692675be4fe7a176d1aa29ced1 | c63ac02b3ee18160ec94c9e8462165eaf7e0f3b5 | refs/heads/master | 2021-05-05T11:10:13.523616 | 2018-02-06T08:10:47 | 2018-02-06T08:10:47 | 118,116,949 | 0 | 1 | null | 2018-02-06T08:10:48 | 2018-01-19T11:24:14 | JavaScript | UTF-8 | Python | false | false | 147 | py | from django.contrib import admin
from supplier.models import Supplier
@admin.register(Supplier)
class SupplierAdmin(admin.ModelAdmin):
pass
| [
"bayokrapht@gmail.com"
] | bayokrapht@gmail.com |
39ab273dae34141056fb99b2a557a0c095a9ee09 | 8cd90c5b92fe85158226de32b1fbb4c34ebd658b | /oscar_docdata/models.py | f3295ad74437b13549e68019e34d3e7aedc771ad | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mvantellingen/django-oscar-docdata | 772ec3db372f9571cf62932ad2fe945c65fd2d7f | 983d3f8144e1feb67d4a2c5bb98b499e69e4ad44 | refs/heads/master | 2023-08-25T06:33:59.105290 | 2016-06-14T12:41:37 | 2016-06-14T12:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,043 | py | from decimal import Decimal as D
from django.db import models
from django.utils.translation import ugettext_lazy as _
from oscar_docdata.managers import DocdataOrderManager
from . import appsettings
try:
from polymorphic.models import PolymorphicModel # django-polymorphic 0.8
except ImportError:
from polymorp... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
264aa98cdced1e3a3b21e731910d92a4f81a7489 | 5db3d51ff9a0bd7647c2315a358cb4ec9299d9d5 | /analyzeBusReportFnv2.py | f24d495ec4b04167e7b50dce7763a807fe53f163 | [] | no_license | bikiranguha/Thesis_project | 866385f51bd476448730c8169eb0b3c1dacba84e | 1a52ba0fed86afb522bda067b8011b6940b4088d | refs/heads/master | 2020-03-31T06:52:16.627848 | 2018-12-28T02:59:33 | 2018-12-28T02:59:33 | 151,997,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | """
Function which generates a bus flow report of comed buses
"""
def BusReport(flowReportFile,Raw):
from getBusDataFn import getBusData
BusDataDict = getBusData(Raw)
ComedPlusBoundarySet = set()
flowDict = {}
#FromBusLines = []
#ToBusLines = []
class flowReport(object):
def __init__(self):
self.toBusL... | [
"bikiranguha@gmail.com"
] | bikiranguha@gmail.com |
a6fb2197fbf80b1c53e59f37f84370f5749ed5e1 | b5dd8d1b798c94731a84c02d98aafb9147200a85 | /sequence_labeling/SLBaselineSYNLinear/data/Instance.py | 6ed47e34116c6f3ff8176de9230c270b70bc070a | [] | no_license | zhangmeishan/DepSAWR | 1ae348dd04ec5e46bc5a75c8972b4bc4008528fe | 104f44fd962a42fdee9b1a9332997d35e8461ff4 | refs/heads/master | 2021-07-09T20:56:56.897774 | 2020-10-27T05:41:08 | 2020-10-27T05:41:08 | 206,974,879 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,126 | py | class Word:
def __init__(self, id, form, label):
self.id = id
self.org_form = form
self.form = form.lower()
self.label = label
# 1 indicates word, 0 indicates syn
self.wtype = 0 if label == "###" else 1
def __str__(self):
values = [str(self.id), self.org_... | [
"mason.zms@gmail.com"
] | mason.zms@gmail.com |
4d59b6d7525d2424cccd3c6215409bdfb7e78f33 | 171a89102edf10901e18a2c0f41c3313608d2324 | /src/rogerthat/bizz/job/unschedule_service_api_callback_records.py | 0a04dd74317213aea6716a58732b45ec57e5498c | [
"Apache-2.0"
] | permissive | gitter-badger/rogerthat-backend | 7e9c12cdd236ef59c76a62ac644fcd0a7a712baf | ab92dc9334c24d1b166972b55f1c3a88abe2f00b | refs/heads/master | 2021-01-18T06:08:11.435313 | 2016-05-11T08:50:20 | 2016-05-11T08:50:20 | 58,615,985 | 0 | 0 | null | 2016-05-12T06:54:07 | 2016-05-12T06:54:07 | null | UTF-8 | Python | false | false | 1,170 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Mobicage NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bart@mobicage.com"
] | bart@mobicage.com |
7e72fb11137d1cc82500a43c590445b6d4222f54 | 11334e46d3575968de5062c7b0e8578af228265b | /Projects/subsumption_lewis/test_escape_behavior.py | 4a60ca86e27a79e1aadad1e7cc150c9a55c47a09 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 1,653 | py | #!/usr/bin/env python3
"""
FILE: test_escape_behavior.py
PURPOSE: Test an subsumption architecture escape behavior
REFERENCES:
"Mobile Robots: Inspiration To Implementation", Jones, Flynn, Seiger p318
"""
import subsumption
import time
import logging
subsumption.inhibit_scan = False
subsumption.inhibit_drive =... | [
"slowrunner@users.noreply.github.com"
] | slowrunner@users.noreply.github.com |
c42ee65059fd84127b788c9f61f22f6091572c64 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200625172155.py | 6673c7bd655b35c14f885d7566123eee9d12b9b9 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,024 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
maoyanUrl = "https://maoyan.com/films?showType=3";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {'User-Agent': 'Mozilla/5.0 (Windows NT ... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
7b95fcc33b3aa2249ed1f27138745f475927c2d6 | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs82/gs82/urls.py | 0aecc6d4eeb66d7fa733fff9c8bcaddef8e0841a | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | from django.contrib import admin
from django.urls import path
from enroll import views
from django.views.decorators.cache import cache_page
urlpatterns = [
path('admin/', admin.site.urls),
path('', cache_page(30)(views.home)),
path('home/', views.home),
path('contact/', views.contact),
]
| [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
22a5082162b8e3e3900e02a08ce7e3931b946ac7 | f6faeb43b394bebb2c66b270ece4a5422cece0f6 | /Input.py | 0a45338c9ddf096ffbf6f1a13214ef459aedce03 | [] | no_license | Khun-Cho-Lwin/Programming-Basic-with-Python | a57b6445d0fdfca23017aa691208899935fcf5e7 | 1e8cc924143771b7737bb54ad8f04ae5b88c1e81 | refs/heads/master | 2022-11-13T05:56:11.881552 | 2020-06-29T21:58:29 | 2020-06-29T21:58:29 | 267,246,983 | 0 | 4 | null | 2020-06-29T08:00:57 | 2020-05-27T07:10:11 | Python | UTF-8 | Python | false | false | 166 | py | input1 = int(input("Please enter first number:"))
input2 = int(input("Please enter second number:"))
result = input1 + input2
print(input1,"+",input2,"=",result)
| [
"khuncholwin.2019@gmail.com"
] | khuncholwin.2019@gmail.com |
fbcf4dff0606fafa97cc778c0778a49cc9e1a8e6 | 8830831a87f35ff2628f379d8230928ec6b5641a | /Homedepot/code/stem2.py | 3a3c13edf6434f0161556c5b49e294bd64829972 | [] | no_license | nickmcadden/Kaggle | e5882c9d68a81700d8d969328d91c059a0643868 | cbc5347dec90e4bf64d4dbaf28b8ffb362efc64f | refs/heads/master | 2019-07-18T08:09:40.683168 | 2018-01-26T14:35:38 | 2018-01-26T14:35:38 | 40,735,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | import pandas as pd
import numpy as np
from nltk.stem.snowball import EnglishStemmer
from nltk.tokenize import wordpunct_tokenize
import sys
import csv
reload(sys)
sys.setdefaultencoding('ISO-8859-1')
stemmer = EnglishStemmer()
print("Reading data\n")
train = pd.read_csv('./input/train.csv', encoding="ISO-8859-1")
... | [
"nmcadden@globalpersonals.co.uk"
] | nmcadden@globalpersonals.co.uk |
b217ba63eaddc9616214a06e614c6246f5c30edf | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/restore_request.py | e662315f9bdfdbec34fe2249cdb69996c797c338 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,055 | 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 ... | [
"dheeru.rathor14@gmail.com"
] | dheeru.rathor14@gmail.com |
4b7ad1257588f9d861614a07ee2bc059ad96ebde | b34f07d217cdda9f59e7f58f89dad17fae1ee132 | /malaya_speech/model/frame.py | 95fde8af773361726a61fb74e10e57b9e3e60f0e | [
"MIT"
] | permissive | Ariffleng/malaya-speech | 965cea504e364c77ca513d43bf340fc122b97672 | 4343c409340c608a426cc6f0926fbe2c1661783e | refs/heads/master | 2023-08-12T23:23:39.983006 | 2021-10-02T09:14:52 | 2021-10-02T09:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import numpy as np
from dataclasses import dataclass
SEGMENT_PRECISION = 1e-6
class Frame:
def __init__(self, array, timestamp, duration):
if not isinstance(array, np.ndarray):
array = np.array(array)
self.array = array
self.timestamp = timestamp
self.duration = durati... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
56d61b52a986db759e27b224e6f9af02a912baf9 | b2605c93db0c5b3dd0ac7f7cfa80674e82ff9439 | /sandbox/filter-max255.py | ee9f129f2aff3855cfde263f3b5c214ef661e5e1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | adnbsr/khmer | 76728708b60a5662e93b83c6559502d31b92445d | 64612c1140d17c0988fa01f3c6c627913b509700 | refs/heads/master | 2021-01-18T13:20:23.385284 | 2013-08-01T21:13:42 | 2013-08-01T21:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | import sys, screed.fasta, os
import khmer
from khmer.thread_utils import ThreadedSequenceProcessor, verbose_fastq_iter
K = 32
HT_SIZE=4e9
N_HT=4
WORKER_THREADS=8
GROUPSIZE=100
###
def main():
repfile = sys.argv[1]
infile = sys.argv[2]
outfile = os.path.basename(infile) + '.fno255'
if len(sy... | [
"titus@idyll.org"
] | titus@idyll.org |
97d23fdb9293035257f2b63f7223884d29f25b32 | 3034e86347c71bf7e7af9e5f7aa44ab5ad61e14b | /mongodb/day04/grid.py | 6a756f9c08f808f46ec135295e3d86b64827d34a | [] | no_license | jason12360/AID1803 | bda039b82f43d6609aa8028b0d9598f2037c23d5 | f0c54a3a2f06881b3523fba7501ab085cceae75d | refs/heads/master | 2020-03-17T00:43:42.541761 | 2018-06-29T10:07:44 | 2018-06-29T10:07:44 | 133,127,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #用来获取数据库中gridfs存储文件
from pymongo import MongoClient
#和pymongo绑定的
import gridfs
conn = MongoClient('localhost',27017)
db = conn.get_database('grid')
#获取gridfs对象
fs = gridfs.GridFS(db)
files = fs.find()
for file in files:
if file.filename =='./生日快乐歌.mp3':
with open(file.filename,'wb') as f:
while True:
#file.... | [
"370828117@qq.com"
] | 370828117@qq.com |
a783bdb2cbac71f57900c83b05288050df71ca1a | a161999b8a9009b6bf961288b68d651541882f2d | /process_news.py | e653f8d7622888988beeeccb4c26faee2e2b6d09 | [] | no_license | kkb-Projects/P1-news-summarization | 788896460aa11712812a86eaf7c7c066c5028d0b | 85122968d92b84741fd2fa8dbb81410e807c7eac | refs/heads/master | 2021-01-09T14:39:09.941508 | 2020-03-19T02:44:17 | 2020-03-19T02:44:17 | 242,340,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | # -*- coding:utf8 -*-
# author:yaolinxia
# datetime:2020/3/11
# software: PyCharm
import random
import re
import pandas as pd
from collections import Counter
import jieba
from functools import reduce
"""
汉语新闻语料库处理
"""
def token(string):
# we will learn the regular expression next course.
return re.findall('\w+... | [
"18860976931@163.com"
] | 18860976931@163.com |
46abac533c1ec9a572a565d59cc930bd692ad94d | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L66/66-77_MD_NVT_rerun/set_7.py | 9c5ad84b39e109861815092ca2f3a6a6735a91e4 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L66/MD_NVT_rerun/ti_one-step/66_77/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_7.in'
temp_pbs = filesdir + 'temp_7.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
ac242bd9428a8e8c909b8ceebdba6c1129a468c2 | f2673cd07770dca1bc5017341e8293aebbfd66c7 | /models/attention/encoders/pyramidal_blstm_encoder.py | fc78e88348e5a7cb29ead0d799c4e24a19c25a9f | [
"MIT"
] | permissive | xiao2mo/tensorflow_end2end_speech_recognition | 52d2c8d32b2f6e9f9f11dfaf8ddf434da16ff2ea | 9b4bdcacd9d73c3db19205b74f4d48419584834d | refs/heads/master | 2020-06-03T04:54:34.127500 | 2017-06-12T02:47:51 | 2017-06-12T02:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Pyramidal Bidirectional LSTM Encoder class."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from .encoder_base import EncoderOutput, EncoderBase
class PyramidalBLSTMEncoder(Enco... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
152553eda650901c21d5c57c5c78ebcc75106dfa | 0b16b44e4fc8c98c9ea3f9d4b8b470f4f62f918d | /Core/migrations/0002_auto_20201101_2120.py | 26e849d4a31082849e63d44fac1fcb8360cb5f66 | [] | no_license | AthifSaheer/DipakNiroula-Django-Ecom | 342eece90211fe80c41ba72bf69a50e63c5ea901 | 94ead608919c5bb076387e26f396e6c38319433e | refs/heads/main | 2023-02-05T06:52:24.204206 | 2020-12-24T13:19:13 | 2020-12-24T13:19:13 | 324,160,212 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # Generated by Django 2.2.14 on 2020-11-01 15:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Core', '0001_initial'),... | [
"liteboook@gmail.com"
] | liteboook@gmail.com |
009e53c59746e5e95ef1681b709b7a2b28c2339c | 267aafa3826d216f70a0197369c334bc542aee40 | /setup.py | a4b523deefdb6153c1331d6b30709c5c10b95b35 | [] | no_license | research-core/core-orders | 7ccc199e6b89e6cd86affd4d8e5bab4fe845589b | 37566b742b1423d30f9dc8e67641d828dc22e4a6 | refs/heads/master | 2020-06-29T02:37:00.250110 | 2019-08-26T17:10:48 | 2019-08-26T17:10:48 | 200,413,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import re
from setuptools import setup, find_packages
version, license = None, None
with open('orders/__init__.py', 'r') as fd:
content = fd.read()
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', content, re.MULTILINE).group(1)
license = re.search(r... | [
"ricardojvr@gmail.com"
] | ricardojvr@gmail.com |
a9682c31beb5aa6a6e2cacc7e42da087c161cd63 | 7ec04fc867d0a48fffc05c65bff9217cfe211fe7 | /HW/统计字符串/teachers.py | f3e81a089bc6a999b09cf50c7dafa2466777ca3b | [] | no_license | Cherry93/pythonPractic | 3b9d1f99803503073bbb2f3a58009665338bd278 | 2889183af6c9a01ab47895b23e2d6ce8c288fd4d | refs/heads/master | 2021-08-31T16:41:56.655989 | 2017-12-22T03:53:18 | 2017-12-22T03:53:18 | 115,008,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | '''
定义教师类,属性包括姓名、职称、工资,创建1000个实例,使用pickle写入teachers.dat并再次读出;
'''
import pickle
from tkinter import filedialog
class Teachers:
def __init__(self,name,call,rmb):
self.name =name
self.call = call
self.rmb = rmb
def __str__(self):
return "name:"+str(self.name)+"call:"+str(self.cal... | [
"358544104@qq.com"
] | 358544104@qq.com |
eb3d54dc1db886b98008f3a576109aa33e101d6d | 5e734cd4e071272688ab635243290936c5c2db40 | /lib/paths.py | 26971a871946a307647c399e9c700320a62ab114 | [
"MIT"
] | permissive | jwilk/i18nspector | a2a4aecee00de9cfb8d9a0354614f7413e19f1b9 | d9762416937399b81abaedc9ddcdc36dbda1c318 | refs/heads/master | 2023-09-04T12:32:35.255101 | 2023-08-22T08:41:50 | 2023-08-22T08:41:50 | 29,258,684 | 2 | 3 | MIT | 2022-06-27T19:04:57 | 2015-01-14T18:22:23 | Python | UTF-8 | Python | false | false | 1,388 | py | # Copyright © 2013 Jakub Wilk <jwilk@jwilk.net>
#
# 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, merge, p... | [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
9b3d001951b24200fcdb3bd49fa67280cf2503c4 | 6659f860ddbb7550f66ea712753d3d2aab1cc6ff | /Note_3/Example_36.py | 2671dcc8e106d4ba64273a5f63c1cda83dfc50f5 | [] | no_license | ianhom/Python-Noob | adf077bee78727eac43da2804a90528ace6c38a6 | e12f0159d68d7c4962cafa3cb8b68a8761037f21 | refs/heads/master | 2020-12-08T12:06:01.909463 | 2018-07-03T00:42:41 | 2018-07-03T00:42:41 | 67,806,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
题目:求100之内的素数。
'''
lower = int(input("输入区间最小值: "))
upper = int(input("输入区间最大值: "))
for num in range(lower,upper + 1):
# 素数大于 1
if num > 1:
for i in range(2,num):
if (num % i) == 0:
break
else:
print(num)
# ... | [
"noreply@github.com"
] | ianhom.noreply@github.com |
4581172461ca6e272ba66f94b453f7e3627ebeb2 | e617affbb9292944465969a7f7a6a02b1c88f10a | /offer_algri/数组中出现次数超过一半的数字/p.py | 2be851787656e28518166bb8ce3645d671b6563e | [] | no_license | darr/offer_algri | 92904d02c7bbd721aa47b4836f2190c3e9407f24 | 724fd689cfe7bd2f8aaed19ef912eecbf00a2df3 | refs/heads/master | 2020-03-25T04:18:40.491916 | 2018-09-07T08:52:39 | 2018-09-07T08:52:39 | 143,388,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#####################################
# File name : p.py
# Create date : 2018-07-23 08:49
# Modified date : 2018-07-23 13:04
# Author : DARREN
# Describe : not set
# Email : lzygzh@126.com
#####################################
class Solution:
#run:32ms memorr... | [
"lzygzh@126.com"
] | lzygzh@126.com |
6ee3ad7ed2666cd3c2c2e7bb9947e9d2975cadf8 | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /PyQt5/QtSensors/QAltimeterFilter.py | 7f6d16487b33ff0384829272d015bff8aad4003c | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # encoding: utf-8
# module PyQt5.QtSensors
# from F:\Python\Python36\lib\site-packages\PyQt5\QtSensors.pyd
# by generator 1.147
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import sip as __sip
from .QSensorFilter import QSensorFilter
class QAltimeterFilter(QSensorFilter):
"""
QAltimeterFilter()
... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
76a9acaf06ed647f5329818ed4650ab73952cbb8 | 7246faf9a222269ce2612613f58dc5ff19091f10 | /leetcode/1662.py | d793883d41ed3cb54e390d971c41a4c5ca4f7ffd | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | class Solution:
def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool:
a = ''
b = ''
for i in word1:
a += i
for i in word2:
b += i
return a == b | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
1f0ba2eb90839c85462d5f63334dbc88a90db375 | 1d672c52ada009c6aeeafec6caeae0adf064060d | /docs/source/conf.py | a97a5551e3ae8bef36af79a0972f0eb8404b6190 | [
"BSD-3-Clause"
] | permissive | sakshiseth/fury | 9927487aaf5dd1b2dc0db5cd31facdb4743f86dd | 5799e445a5a306852a674396803bbefa922f0ae6 | refs/heads/master | 2021-01-13T20:18:49.848717 | 2020-02-22T20:54:59 | 2020-02-22T20:54:59 | 242,483,253 | 0 | 1 | NOASSERTION | 2020-02-23T08:39:05 | 2020-02-23T08:39:04 | null | UTF-8 | Python | false | false | 7,705 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# FURY documentation build configuration file, created by
# sphinx-quickstart on Thu Jun 28 12:35:56 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | [
"skab12@gmail.com"
] | skab12@gmail.com |
4513165496d6f2e83579ac9cf0684f88a705068e | d020606f5e9174aa669e4b6b316bdb0fcb05ce02 | /run_test.py | dc79693a586c6b2f47af9c3cd513684781ca785c | [] | no_license | Hanlen520/AutomationProject | 4c1270fba570b256493cd6681d715e0b5136a4f5 | 95a7cb61d8b339a6409483d738de5a0d9d85b321 | refs/heads/master | 2023-04-02T20:23:07.696753 | 2021-04-07T07:57:04 | 2021-04-07T07:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | # coding = utf8
import logging
import multiprocessing
import subprocess
import pytest
from airtest.core.api import *
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
from config import install_app_necessary, SERIAL_NUMBER
from page.fota.fota_page import Fota_Page
from page.main_page import Main_P... | [
"39899119+792607724@users.noreply.github.com"
] | 39899119+792607724@users.noreply.github.com |
eb525e2ac4b98dac4261e2d6857bca7619fda42c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_disgraced.py | e19865eec3d6c3da4393171f3fa501464fae3db9 | [
"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 | 252 | py |
from xai.brain.wordbase.verbs._disgrace import _DISGRACE
#calss header
class _DISGRACED(_DISGRACE, ):
def __init__(self,):
_DISGRACE.__init__(self)
self.name = "DISGRACED"
self.specie = 'verbs'
self.basic = "disgrace"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
03cf906edb96cb427cd37f0de2a53228c70ea321 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Africa/Asmera.py | 9ccd9c3141892ef8d1d76acc48c773f5c5c4c4cf | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | '''tzinfo timezone information for Africa/Asmera.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Asmera(DstTzInfo):
'''Africa/Asmera timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/A... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
2736cd03881b87e222ecd21b6b92c7e5445f98f5 | 31d5bebb9667b17a17fe98a5c3064cac5a0fd4dd | /calisanProfil/urls.py | 219a0406652a00ff45e0ff330c77ec07ab045d24 | [] | no_license | refik/audio | d6b8829fafcfa2c54e6f477ceede210a2f5d4f41 | 011b7b0f01d14529b91bf6f4d3c5919823e19e6b | refs/heads/master | 2021-01-17T17:06:06.202561 | 2015-09-17T05:38:22 | 2015-09-17T05:38:22 | 1,948,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('audio.calisanProfil.views',
(r'^musteri-temsilcisi/', 'temsilci'),
)
| [
"refik.rfk@gmail.com"
] | refik.rfk@gmail.com |
0d74495bd1cc1679a451768d66fda5ef8194d179 | ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3 | /code-festival-2016-qualc/b/main.py | 987ac90bc403547651d6d2456180210a150a8701 | [] | no_license | kussy-tessy/atcoder | 5604919747242ee9740b9131bb6e168e96af0151 | ee917fa5a5218d4a9e72f710d0d844e7c203f13b | refs/heads/master | 2023-07-21T09:25:15.464881 | 2021-09-04T14:06:02 | 2021-09-04T14:06:02 | 311,221,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
K, T = map(int,(input().split()))
As = list(map(int,(input().split())))
# if len(As) == 1:
# print(As[0] - 1)
As.sort()
As_max = As[-1]
As_other = sum(As[:-1])
print(max(0, As_max - As_other - 1)) | [
"teppei04285000@gmail.com"
] | teppei04285000@gmail.com |
7c562bd59160cfb964891453b9d4a28be9ae4772 | c6b74df572dc2dcf7034c25860d18cb3c9143d4f | /linearizer/generative.py | ec00a10615d362bf6ab18a3138b457f78f83330b | [] | no_license | kadarakos/LinearAMR | 55f2dfedb5d100988be5511004be690e2808ad17 | d8408924171960e84c92cfe46bb531b3b3ee17e0 | refs/heads/master | 2021-01-19T23:19:41.226183 | 2017-04-21T11:29:02 | 2017-04-21T11:29:02 | 88,961,862 | 0 | 0 | null | 2017-04-21T08:37:38 | 2017-04-21T08:37:38 | null | UTF-8 | Python | false | false | 3,595 | py | __author__ = 'thiagocastroferreira'
from sys import path
path.append('/home/tcastrof/amr/scp_repo')
path.append('/home/tcastrof/amr/Grammar')
path.append('../')
from compression_tree.compressor import Compressor
from ERG import AMR
import kenlm
import os
import utils
import itertools
class Generative(object):
d... | [
"thiago.castro.ferreira@gmail.com"
] | thiago.castro.ferreira@gmail.com |
4a0570c65c81d3d58ef799132c1206c6d01be707 | bcf88b912b9443c3326466c226f68a7e7ad5aa9d | /bdbag/__init__.py | ab5519ea26b97ecb75b741254c95bea69f7adaf3 | [
"Apache-2.0"
] | permissive | mvdbeek/bdbag | 33bc7e0275c720104af77654b0016024cb6ab012 | fe67b5bffc68b7dac823ce03d450ede3affccbef | refs/heads/master | 2020-03-25T05:17:09.646537 | 2018-07-12T03:58:06 | 2018-07-12T03:58:06 | 143,438,809 | 0 | 0 | null | 2018-08-03T14:42:27 | 2018-08-03T14:42:27 | null | UTF-8 | Python | false | false | 6,188 | py | import os
import re
import sys
import json
import logging
import mimetypes
from requests.utils import requote_uri
from pkg_resources import get_distribution, DistributionNotFound
__version__ = "1.4.2"
if sys.version_info > (3,):
from urllib.parse import quote as urlquote, unquote as urlunquote, urlsplit, urlunspl... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
ca893e5aeee0c7456739c4457ae664105c5c96c6 | 46c3fd904e7b1c45541ffe0518afe50dfdafb089 | /movie/migrations/0003_movielink_link.py | 84dc7889b0f52b99ff6733291f6811344b4d8db2 | [] | no_license | Shirhussain/Movies | 6ab10b27748bc1cdd3a904861092e5246ce01190 | 4f6639491a86708a5d04a8de7f928500ecba3fdc | refs/heads/master | 2023-01-01T07:52:25.639564 | 2020-10-26T02:15:23 | 2020-10-26T02:15:23 | 306,643,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.1 on 2020-10-24 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0002_auto_20201024_1659'),
]
operations = [
migrations.AddField(
model_name='movielink',
name='link',
... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
47a724810b4e9c7cfd2870858a2472067fe6ff19 | 1cceef957954ec516cd8bcd9e9d51e8d9120200b | /test_retring_async.py | 1c13088f03af4ed39ea5ab6e8ea213792c02dbe7 | [
"MIT"
] | permissive | coneagoe/retrying-async | 3b8c4a51a7adcbaa2149b110199e6d0b6b5a1f7e | 54eec24e4183b4ea31c0e133ed11ec0f0535a194 | refs/heads/master | 2022-12-21T05:12:17.930689 | 2020-09-21T02:38:42 | 2020-09-21T02:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # coding: utf-8
import asyncio
import requests
from retrying_async import retry
def request_api_sync():
print('正在获取')
response = requests.get(url="http://www.baidu.com")
print(response.status_code, response.content)
raise Exception("异常")
@retry(attempts=3, delay=3)
async def request_api_async():
... | [
"lixiaolong@sensoro.com"
] | lixiaolong@sensoro.com |
d751ba839e41585536769b62bfa2c50a150fb12d | 6559d2c69ddcd73df844f9e26470c8ea06d92a6c | /xnr_0429/xnr/_facebook/feedback_comment.py | 550d853c6fbd9b7769168390aeafe3c05e801dbe | [] | no_license | yuanhuiru/xnr2 | cc4199fbb136fa5bdf18d879bb77ceb5155627f3 | b37ec9beccf7332efcda9bdff0c34fa3198b816c | refs/heads/master | 2020-03-21T12:22:17.392966 | 2020-01-14T06:40:55 | 2020-01-14T06:40:55 | 138,549,389 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/env python
#encoding: utf-8
from launcher import Launcher
import time
from es import Es_fb
class Comment():
def __init__(self):
self.list = []
def get_comment(self):
for url in comment_list:
driver.get(url)
root_content = driver.find_element_by_xpath('//div[@class="_58jw"]/p').text
root_tim... | [
"bingqulee@gmail.com"
] | bingqulee@gmail.com |
1aaafa9b5403e7331b1d730439c5a8e67fa3debb | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0264_migrate_is_announcement_only.py | 073eb22a23670741fdc4d7155701549b168dfc77 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 972 | py | # Generated by Django 1.11.26 on 2020-01-25 23:47
from django.db import migrations
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def upgrade_stream_post_policy(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
Stream = apps.get... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
9f0fe44398ecdc7bda9c8cb213e2256c43819598 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/334/90931/submittedfiles/testes.py | 12f71f0bb7b483e5f7d1e3b92c7403e72b738f64 | [] | 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 | 145 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def maximo (a,b):
if a>b:
return a
else:
return b
x=input()
y=input()
print(maximo(a,b) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1fd6f92f79cd265af470244e0460ad9853def643 | e18a353582609732c795401f1a01bc762bd939f2 | /top/python/MuonTracking.RunII.py | 9f1a8ca4dcada005ae643bc5e39eb41edab8c6d8 | [] | no_license | s-farry/workspaces | 06741807bb464bb0712d52108c2d1b7ae62b1353 | 0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1 | refs/heads/master | 2020-04-03T00:45:39.152227 | 2017-06-15T16:33:33 | 2017-06-15T16:33:33 | 64,213,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,463 | py | from Jawa import EfficiencyClass
from ROOT import TFile, TCut, TTree, TMath
phicut= TCut("(abs(tag_PHI-probe_PHI)<TMath::Pi() ? abs(tag_PHI-probe_PHI) : 2*TMath::Pi()-abs(tag_PHI-probe_PHI))>0.1")
ptcut = TCut("tag_PT > 20000 && probe_PT > 20000")
triggercut = TCut("tag_Hlt2EWSingleMuonVHighPtDecision_TOS==1 && ... | [
"sfarry@hep.ph.liv.ac.uk"
] | sfarry@hep.ph.liv.ac.uk |
17a4c3efc94fc1e6caad8a5a7ade5f392c075824 | 5c7db30d59cd28fe1923bb5fdb9280ffe2070b70 | /django-polls/polls/migrations/0001_initial.py | cca72afb3465cec2f3f673e3e259b8a64609593e | [] | no_license | golkedj/django_test | 6816b640e675aabd311de98907ff38fc8034b7d5 | d1ab4b5bf6984aee78163a94638460f187ca12a9 | refs/heads/master | 2021-01-22T16:44:30.569480 | 2017-09-06T16:56:23 | 2017-09-06T16:56:23 | 100,724,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-18 14:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"="
] | = |
778373ee38e2b8e500a508492b5c81d519f80a09 | f8671d120f8f32b0febe94f4dc84570603e34fac | /utils_driver.py | c9b9a0185636c8784dadc34512484fe9360420ca | [] | no_license | ahashisyuu/OpenSpider | f35772a53c4de4217df9dc1ee8f2078e1c2eb281 | 31da122dc2ab658142c34089f3cc0fe71a5016ca | refs/heads/master | 2022-03-19T01:37:58.965682 | 2019-12-10T12:40:02 | 2019-12-10T12:40:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from selenium import webdriver
import platform
#print platform.system()
def get_driver():
system = platform.system()
if system == "Linux":
return webdriver.PhantomJS(executable_path='/home/ubuntu/phantomjs-2.1.1-linux-x86_64/bin/phantomjs')
else:
return webdriver.Chrome()
#return ... | [
"1451607278@qq.com"
] | 1451607278@qq.com |
d5706657c7a3d28103d085bb0dbf7d12e11bac82 | 173b7e08d9fdbfeda8349570f7ccd93cbd6c02d4 | /example_model/model_node_label.py | 84ea201452534e2e144905c11f081a4272f8ac42 | [
"LicenseRef-scancode-other-permissive"
] | permissive | embeddedsamurai/kGCN-1 | ef647d539fb79d6b5ebe090a3b27b349933d6ca4 | 7bc4dc32afd7a76e31b3bd37e2cb71611ba1fc5f | refs/heads/master | 2020-08-04T16:51:36.430607 | 2019-10-01T05:02:31 | 2019-10-01T05:02:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | import tensorflow as tf
import tensorflow.contrib.keras as K
import kgcn.layers
from kgcn.default_model import DefaultModel
import tensorflow.contrib.keras as K
class GCN(DefaultModel):
def build_placeholders(self,info,config,batch_size):
# input data types (placeholders) of this neural network
ret... | [
"kojima.ryosuke.8e@kyoto-u.ac.jp"
] | kojima.ryosuke.8e@kyoto-u.ac.jp |
725223f8d060081f839ffe104c2a1a8f0c49e687 | 920f81d8f5fbd45eb15f2970d0bd528b921a3d46 | /pyplot/plot_loss.py | 81bb50f95b08e5d8fafdc78fc8d47652605f5877 | [] | no_license | minhnd3796/RIVF2019_Minh | 740a4015b7741bea9d2503088e99bc1a97a1f18f | c2439421efcbae3bad09f459a3d582b7fcf735c4 | refs/heads/master | 2020-03-25T03:49:20.533009 | 2018-08-03T01:27:14 | 2018-08-03T01:27:14 | 143,361,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from pandas import read_csv
import pylab
from sys import argv
train_data_8s = read_csv('FCN-8s-ResNet101_Vaihingen/run_train-tag-entropy_1.csv')
train_step_8s = train_data_8s.iloc[:, 1].values
train_acc_8s = train_data_8s.iloc[:, 2].values
validation_data_8s = read_csv('FCN-8s-ResNet101_Vaihingen/run_validation-tag-e... | [
"gordonnguyen3796@gmail.com"
] | gordonnguyen3796@gmail.com |
f1b816434823e5ff322719c6e792a034ea4f4c35 | 177bb6567b9564b1feb1d6e25ab1e0d61adf8770 | /ResidualLoss/CNN_l2_prob_far_dist.py | dc834cb205256111664a4feebdedd1accd470493 | [] | no_license | fzdy1914/NUS-FYP | 4ae9b299cf1cb72a01b371998781b9cec333d3f0 | cb7195a8b025eb8ab2becd26886551479796f930 | refs/heads/master | 2023-04-16T05:08:12.529777 | 2021-04-05T06:56:15 | 2021-04-05T06:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | import random
import sys
from torch.autograd import Variable
from torch import optim
import numpy as np
from torch.backends import cudnn
import torch.nn.functional as F
import torch
from torch.utils.data import DataLoader, WeightedRandomSampler
from ResidualLoss.dataset import cifar10_data_loader_test, cifar10_data_... | [
"1229983126@qq.com"
] | 1229983126@qq.com |
17f147002517ca6e9ce3f90605cfde55fb9f8c21 | 8f736b5cc28cc1d46506abf1b001eb41cc1f9423 | /apps/trade/migrations/0021_auto_20210322_2247.py | 9d43bf7c166f0d2b8fdeb3cf75abab92377b96c8 | [] | no_license | tang1323/MxShop | 6ac68502f59ae07b483b6145e1b557399192e3dd | 831b5bdd8abdf7d6e547b0bd3fff9341261e4afa | refs/heads/master | 2023-04-04T07:09:32.759476 | 2021-04-14T14:36:00 | 2021-04-14T14:36:00 | 357,937,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # Generated by Django 2.2 on 2021-03-22 22:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0020_auto_20210322_1137'),
]
operations = [
migrations.AlterField(
model_name='orderinfo',
name='pay_status',... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
ccec29fd6ea83bdc111cb217e95734492d2579ad | 42348c0ff9785bbab18d87f277df791331bbc121 | /tests/test_pitches.py | 2d1420380d1934aca34db60e8b9154860a4255cc | [
"MIT"
] | permissive | vincentouma/thinkout | 783449834bd856d17e5273d9d3a50ecb6d79f6ef | 85306ccec7924ad4fd6fe7ffb75aa537d9fe97c0 | refs/heads/master | 2020-06-29T11:48:09.283309 | 2019-08-06T05:59:14 | 2019-08-06T05:59:14 | 200,524,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import unittest
from app.models import User
def test_no_access_password(self):
with self.assertRaises(AttributeError):
self.new_user.password
def test_password_verification(self):
self.assertTrue(self.new_user.verify_password ('banana'))
| [
"vinceoumah@gmail.com"
] | vinceoumah@gmail.com |
6aad1e54b8786ecb8e264520db3f9ee24f1bfb49 | 9ac99a99dc8f79f52fbbe3e8a5b311b518fe45d9 | /apps/hrm/models/employee_types.py | 35bc9fbf61826d7c5683608a6038c4e0d7ac01e7 | [] | no_license | nttlong/quicky-01 | eb61620e01f04909d564244c46a03ca2b69dfecc | 0f5610aa7027429bdd9ca9b45899a472c372c6cc | refs/heads/master | 2020-03-25T17:45:31.633347 | 2018-11-27T15:02:30 | 2018-11-27T15:02:30 | 143,994,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from qmongo import extends, extends_dict,define
from . commons import base
model_name = "employee_types"
extends(
model_name,
base.model_name,
[],
formular = ("text")
)
| [
"zugeliang2000@gmail.com"
] | zugeliang2000@gmail.com |
9d20f3f16753593924c66dad24694eb7c72e00c0 | 795435350d2e4fe415acd1fb846abb1c0cf94911 | /client/code/do some researches on crawler/douban/douban.py | 8cac1d9078cbb947968dfe3d23aeff118fa4b940 | [] | no_license | gaoxinge/network | c3575c7f0d95f7458a4ec74880ca5b8a0bff773e | 68d307ec0756abff60914225fd38d69fa4b2a37c | refs/heads/master | 2021-06-06T05:49:36.521243 | 2021-06-02T15:42:39 | 2021-06-02T15:42:39 | 84,033,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import requests
from lxml import etree
from Item import Item
import time
def http(url):
response = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'})
return response
def parse(response):
Movie = Item('Movie', ['title', 'rating', 'vote'])
root = etree.HTML(response.text)
results = root.xpath(... | [
"gaoxx5@gmail.com"
] | gaoxx5@gmail.com |
04ad4d19924cc49f42a7f6ac77847e9bb33362eb | 9f8fa29bb5a93f896862806157b10b55e9f26825 | /message_media_conversations/models/message_dto.py | f07f49fac18257112666287a40d5f2c106d9e2f8 | [
"Apache-2.0"
] | permissive | messagemedia/conversations-python-sdk | 1b245ca7f63ca0c6fdbcd17a9bd11565d421e2a0 | b53046540bd5c826de784228f838468c22b863cf | refs/heads/master | 2020-03-19T05:52:05.735297 | 2018-10-16T23:29:31 | 2018-10-16T23:29:31 | 135,969,313 | 0 | 0 | null | 2018-06-04T04:12:18 | 2018-06-04T04:09:34 | null | UTF-8 | Python | false | false | 2,057 | py | # -*- coding: utf-8 -*-
"""
message_media_conversations.models.message_dto
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
"""
class MessageDto(object):
"""Implementation of the 'MessageDto' model.
TODO: type model description here.
... | [
"git@apimatic.io"
] | git@apimatic.io |
1227e2067f8c114470a88b026b4a6e6c16ee45bd | 4ea43f3f79ad483d83238d88572feb822f451372 | /philo/models/fields/__init__.py | efd315f9c3c5e11afe2ba9802508200ca1a0905c | [
"ISC"
] | permissive | kgodey/philo | c8c433d44b2f31121f13bd0ee101605be11fe9da | c19bf577d44606d2b284e6058d633f4a174b61cc | refs/heads/master | 2020-12-29T02:54:11.746966 | 2011-05-24T21:57:47 | 2011-05-24T21:57:47 | 686,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import validate_slug
from django.db import models
from django.utils import simplejson as json
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _
from philo.forms.fields im... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
b12c9631dbd2f75d27a5ac4754fee8e016fc58c0 | 60acb606318869410d7437bf6c1a16fd6762b6b4 | /app/__init__.py | 871f9dabd9b8272d79ccffa706296dcf48f3ee49 | [
"Apache-2.0"
] | permissive | heraclitusj/mgek_imgbed | 8fb0c69599fab3fce06684f659dfd5c0b4c5f866 | d8a77ba1401f42237adda1b3ea8611f6464a704e | refs/heads/master | 2022-07-28T01:48:51.314094 | 2020-05-20T05:35:52 | 2020-05-20T05:35:52 | 265,461,338 | 0 | 0 | null | 2020-05-20T05:31:37 | 2020-05-20T05:31:37 | null | UTF-8 | Python | false | false | 1,231 | py | # @Author: Landers1037
# @Github: github.com/landers1037
# @File: __init__.py.py
# @Date: 2020-05-12
from flask import Flask
from app.config import *
from flask_sqlalchemy import SQLAlchemy
from flask_pymongo import PyMongo
#初始时会默认初始化数据库连接,根据engine的配置选择配置的数据库
db = SQLAlchemy()
mongo = PyMongo()
global_co... | [
"32225052+Landers1037@users.noreply.github.com"
] | 32225052+Landers1037@users.noreply.github.com |
ca55231bed72276df46a7e9b1d23e67ae3171425 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_fade.py | 48b2ce0cd12e383a309567bd8721b04aafb27dd9 | [
"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 | 337 | py |
#calss header
class _FADE():
def __init__(self,):
self.name = "FADE"
self.definitions = [u'to (cause to) lose colour, brightness, or strength gradually: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
retu... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fa0b0e8390377d9b563df54e6bfa61219bfd4b70 | ad0857eaba945c75e705594a53c40dbdd40467fe | /baekjoon/python/buying_cards_11052.py | b29c863cc46b83674f4b81cdf48a7cffc84bb63f | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 630 | py | # Title: 카드 구매하기
# Link: https://www.acmicpc.net/problem/11052
import sys
sys.setrecursionlimit(10 ** 6)
read_single_int = lambda: int(sys.stdin.readline().strip())
read_list_int = lambda: list(map(int, sys.stdin.readline().strip().split(' ')))
def solution(num_card: int, packs: list):
d = [0 for... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
159e01e7c2fe4f3943abf29f49cebe1232f215b3 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/meta/VehiclePreviewMeta.py | 3b324dcf456ad95c0dd3471a225ee52f30dbbf10 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,046 | py | # 2017.02.03 21:51:10 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/VehiclePreviewMeta.py
from gui.Scaleform.framework.entities.View import View
class VehiclePreviewMeta(View):
"""
DO NOT MODIFY!
Generated with yaml.
__author__ = 'yaml_processor'
@ext... | [
"info@webium.sk"
] | info@webium.sk |
0ac14a8d24cb5d63875837fa4d9df2a7b1f8b5c6 | 86741e9f531f2aa63af682cc974ebbcc3b202e90 | /allhub/users/ssh_keys.py | 5829881dbdcb9d0302a4e6deb02739cf3e27ca79 | [
"Apache-2.0"
] | permissive | srinivasreddy/allhub | ccebea96a106e266743d180410ab5b16d08946fe | ff20858c9984da5c4edd5043c39eed3b6d5d693d | refs/heads/master | 2022-12-27T01:24:30.759553 | 2021-06-04T11:38:16 | 2021-06-04T11:38:16 | 204,402,796 | 2 | 2 | Apache-2.0 | 2022-12-08T07:44:11 | 2019-08-26T05:33:37 | Python | UTF-8 | Python | false | false | 1,817 | py | from allhub.response import Response
class SSHKeysMixin:
def list_public_ssh_keys(self, username):
url = "/users/{username}/keys".format(username=username)
self.response = Response(
self.get(
url,
**{"Accept": "application/vnd.github.giant-sentry-fist-pr... | [
"thatiparthysreenivas@gmail.com"
] | thatiparthysreenivas@gmail.com |
e0159a0bc43cebe51ee88486e5e5cacadec5a5a7 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/railway_link_ref_structure.py | 00ba98f8df1e4547deb46e2b051c3da101b80055 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 246 | py | from dataclasses import dataclass
from .infrastructure_link_ref_structure import InfrastructureLinkRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class RailwayLinkRefStructure(InfrastructureLinkRefStructure):
pass
| [
"chris@komposta.net"
] | chris@komposta.net |
6d608921210b60fa6848d362d756532953b5c228 | 2b770588db83bc2a61b52f430248414395cc1b1f | /django_/citysearch_project/cities/models.py | fa4d0dc5e09ad2f0c02245c2ca01b266a2024625 | [] | no_license | luka319/portfelio_chemodanio | 595afb1d2e1fb3564bf94b204aa8e63dddd4cf0c | dd37f8c4af9d043ace9b5438b5a7680cfab26ab2 | refs/heads/master | 2021-06-26T19:05:33.170977 | 2020-01-08T23:24:10 | 2020-01-08T23:24:10 | 231,444,932 | 0 | 0 | null | 2021-06-10T22:27:34 | 2020-01-02T19:19:49 | Python | UTF-8 | Python | false | false | 296 | py | from django.db import models
# Create your models here.
class City(models.Model):
name = models.CharField(max_length = 255)
state = models.CharField(max_length = 255)
class Meta:
verbose_name_plural = "cities_города"
def __str__(self):
return self.name
| [
"luka319@i.ua"
] | luka319@i.ua |
5644e5c0b6aa0dab0c7749c8574c9a70eebc075c | 400b0cb1f25cc2fbe80a3037c06102f40c4d2d89 | /string33.py | 575f57fac37b82880d7965f8c50047498875f63b | [] | no_license | Prithamprince/Python-programming | 4c747d306829de552e3b0c6af67cfe534a2dc2e1 | 79a0953084a01978e75d2be4db0d35ba1cf29259 | refs/heads/master | 2020-05-30T06:29:26.134906 | 2019-12-13T06:33:49 | 2019-12-13T06:33:49 | 189,580,341 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from itertools import combinations
p=input()
q=0
l=list(combinations(p,len(p)-1))
for i in range(len(l)):
if(l[i]==l[i][ ::-1]):
print("YES")
q=1
break
if(q==0):
print("NO")
| [
"noreply@github.com"
] | Prithamprince.noreply@github.com |
015fd34248887879e5b092b00ab71bd4a61b4d02 | 8a9ba5e9e8c9f3d8e05b6840f1c17d526344e6d2 | /src/reia.py | 7ada168207031f9a5c85d73b90325662fbde0a50 | [
"MIT"
] | permissive | maanavshah/remote-intelligent-assistant | fe1e2bcb6d43345553194c442d4676b3137e0348 | 65ea7287d0ca2dd98a376bbadc81a5093b9b6046 | refs/heads/master | 2021-06-13T20:20:05.622634 | 2019-12-20T12:54:00 | 2019-12-20T12:54:00 | 142,580,543 | 4 | 0 | MIT | 2021-03-25T21:58:30 | 2018-07-27T13:27:56 | Python | UTF-8 | Python | false | false | 5,369 | py | import yaml
import sys
import random
import nltk
import operator
import jellyfish as jf
import json
import requests
import os
import time
import signal
import subprocess
from nltk.tag import StanfordPOSTagger
from textblob.classifiers import NaiveBayesClassifier
from execute import construct_command
from feedback impor... | [
"shah.maanav.07@gmail.com"
] | shah.maanav.07@gmail.com |
3a068e2a6864d85f641af5e0ebd662ca44331292 | 07a1088bcec25cdf7e4027abc5a8dc83eb37ffb4 | /fabrik/ext/nginx.py | ccc6e5e8f0774d418cd35226796dadcf056ebc96 | [
"MIT"
] | permissive | Frojd/Fabrik | 7e00bb66761c552da9d70cc36f3ff0108bf7a481 | 9f2edbba97a7fd236b72a9b3010f6e912ab5c001 | refs/heads/master | 2020-04-06T04:39:31.445843 | 2018-04-16T06:54:21 | 2018-04-16T06:54:21 | 25,035,502 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
"""
fabrik.ext.nginx
----------------------
Methods for handling nginx
"""
from fabric.state import env
def restart():
env.run("service nginx restart")
def reload():
env.run("nginx -s reload")
| [
"martin@marteinn.se"
] | martin@marteinn.se |
1c89e34f2a701a441c1be1d145087c705e02ff86 | f2171e2f2c78d616a381b3308d13a600d687587f | /x.Machine Learning Foundation/NumPy and Pandas Part 1/numpy_index_array.py | fce265f622df7db4d6f5e57be7428a2167fd3916 | [] | no_license | vinkrish/ml-jupyter-notebook | bda01343118869bd2bfb44f3c3122853834d314a | ef5d05512b8387d7a3e494f024416f6ca7336827 | refs/heads/master | 2021-06-09T00:53:51.638551 | 2021-05-08T15:13:51 | 2021-05-08T15:13:51 | 168,104,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import numpy as np
# Change False to True for each block of code to see what it does
# Using index arrays
if False:
a = np.array([1, 2, 3, 4])
b = np.array([True, True, False, False])
print a[b]
print a[np.array([True, False, True, False])]
# Creating the index array using vectorized operations
if F... | [
"vinaykrishna1989@gmail.com"
] | vinaykrishna1989@gmail.com |
1f4bd449aba35de17062609461614b820c3a18f9 | eddbf9518e7384f0e9a1d9e19cbe74855c3f24bd | /2017011066LiShaoFei/First.py | 7f3f5ef75bfa8561246cc72cba9cfb0ca45f5650 | [] | no_license | wanghan79/2019_Python | 9d2391d799efd9545b2afb3565bc5c6d542d1d86 | f856409af92af3990773966d937d58d9d1cade04 | refs/heads/master | 2020-05-05T12:54:30.921361 | 2019-07-20T09:50:03 | 2019-07-20T09:50:03 | 180,050,522 | 11 | 14 | null | 2019-07-15T15:00:03 | 2019-04-08T01:59:24 | Python | UTF-8 | Python | false | false | 1,119 | py | import numpy as np
import random
import string
def random_list( start, stop, length):
if length >= 0:
length = int(length)
start, stop = (int(start), int(stop)) if start <= stop else (int(stop), int(start))
random_list = []
for i in range(length):
random_list.append(ra... | [
"noreply@github.com"
] | wanghan79.noreply@github.com |
7d69b0a585408e145f7c50fc555cfe9dfb7cb57f | 35cb7a8a22fdd3932b63c89b17f587205bd00fec | /apps/excursao/migrations/0002_excursao_is_internacional.py | 3f9637243e6f3af5d03ec7553d613c3b439ba4a1 | [] | no_license | rcoutelo/viajecomdarcy-web | debc24ec44e733c12257f3e89f3424ab7b3ee1f4 | 2ab2db407523299a58423f058c1f74231b15d617 | refs/heads/master | 2021-03-27T14:41:34.303463 | 2017-06-19T15:14:54 | 2017-06-19T15:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2017-05-19 19:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('excursao', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"lfa.luisfelipe@gmail.com"
] | lfa.luisfelipe@gmail.com |
a64f0f99c0ebcacedc4e8efb592d1f75480fcd7c | 0e25329bb101eb7280a34f650f9bd66ed002bfc8 | /tests/functional/test_misc.py | 5da0c776cf8bde4c5a1a3dc58331fff08885b9f3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/enstaller | 2a2d433a3b83bcf9b4e3eaad59d952c531f36566 | 9c9f1a7ce58358b89352f4d82b15f51fbbdffe82 | refs/heads/master | 2023-08-08T02:30:26.990190 | 2016-01-22T17:51:35 | 2016-01-22T17:51:35 | 17,997,072 | 3 | 4 | null | 2017-01-13T19:22:10 | 2014-03-21T23:03:58 | Python | UTF-8 | Python | false | false | 7,200 | py | import json
import os.path
import platform
import shutil
import sys
import tempfile
import textwrap
import mock
import responses
from enstaller import __version__
from enstaller.config import Configuration
from enstaller.history import History
from enstaller.main import main_noexc
from enstaller.utils import PY_VER
... | [
"cournape@gmail.com"
] | cournape@gmail.com |
6ffbc1fdd0bb94c69f961871e05b86e073a589d5 | e0ed932fc2e4edb953cc4e423362dabc19083008 | /python/sanic_learn/docs/learn_conf.py | 3b279281ff746c4e709cfdd6e544322a6b2da803 | [] | no_license | glfAdd/note | 90baee45003ac3998d898dcfbc618caa28f33b74 | 19a9aff61450be25904bff0fe672f660d49d90ff | refs/heads/main | 2023-05-27T13:28:36.092352 | 2023-05-24T03:35:58 | 2023-05-24T03:35:58 | 240,066,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | """ ============================ config
config对象实现两个__getattr__和__setattr__
方式1: 使用属性
app = Sanic('myapp')
app.config.DB_NAME = 'appdb'
app.config.DB_USER = 'appuser'
方式2: 使用update
db_settings = {
'DB_HOST': 'localhost',
'DB_NAME': 'appdb',
'DB_USER': 'appuser'
}
app.config.update(db_settings)
"""
| [
"2239660080@qq.com"
] | 2239660080@qq.com |
2d34fe0d4f1b224a9e161de674ff2f540eaf6f3f | d3f448d238b435b48d8f27f17a34b3e39a70dc29 | /python-client/test/test_kyc_user_validation_share_holder_list_item_response_natural.py | 5639c0032162e82c676318d5d1ff7f90707312d0 | [] | no_license | pedroguirao/swagger | 1fc29b6d9bcc193bf8ce85f6d8a6074f4c37150d | 5ffea6203b5fcd3f201c2ede76d354302a6fb0ee | refs/heads/master | 2020-06-07T16:15:08.659567 | 2019-06-21T07:51:49 | 2019-06-21T07:51:49 | 193,055,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # coding: utf-8
"""
MarketPay API
API for Smart Contracts and Payments # noqa: E501
OpenAPI spec version: v2.01
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.kyc_us... | [
"antonio.canovas@ingenieriacloud.com"
] | antonio.canovas@ingenieriacloud.com |
1de1b2caa5a46a524e310c70cb4922b59d81d69c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03106/s261285927.py | acddd8336d17f956526b10a5358983a3ae205bef | [] | 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 | 152 | py | import sys
a,b,k=map(int,input().split())
for i in range(1,101):
if a%(101-i)==0 and b%(101-i)==0:
k-=1
if k==0:
print(101-i)
sys.exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
71c821509417c94ee842caec376a6a4c2803b333 | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /test_suite/shared_data/dispersion/Fyn_SH3_R1rho/relax_results/solution_tp02.py | 6e2250c6b7fdf8ea287e0c2e8ad080017c2505a3 | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,039 | py | """Compare the synthetic cpmg_fit data to the relax solution.
To run this, type:
$ rm -f solution_tp02.log; ../../../../../relax --tee solution_tp02.log solution_tp02.py
"""
# Python module imports.
from os import remove
from shutil import move
# relax module imports.
from lib.dispersion.variables import EXP_TYPE_R... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
400c4825be91859d206dbc84ac0bef043e1582b7 | 66a05459831aef06fc86316ecb782848c116b226 | /collective/etherpad/Extensions/Install.py | be56c049b8b686cc2c19c1f049088f75de18d462 | [] | no_license | toutpt/collective.etherpad | 8d01323b3e31ff0872afa1fd8e4bc85b14a3f123 | 590414ddd3ed7437cefea91c853d291feb9b328f | refs/heads/master | 2020-05-18T05:31:36.603712 | 2013-09-26T12:45:35 | 2013-09-26T12:45:35 | 8,142,351 | 2 | 0 | null | 2013-09-18T16:42:41 | 2013-02-11T17:13:59 | Python | UTF-8 | Python | false | false | 709 | py |
def uninstall(portal, reinstall=False):
"""We uninstall things that are not handles by quickinstaller"""
if not reinstall:
# lets remove action on content types
types = portal.portal_types
for _type in ('Document', 'News Item', 'Event', 'Topic'):
_typeinfo = getattr(types, ... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
01e31b5def65ba66a0b5b8c58dd666c03742a49f | 00ed1eb9f4875be9c116eae90c850b4c5f0ebd4d | /tests/funcat/utils/test_yahoo.py | 8cf228d677cb84b693c54063b84d932589854b5c | [
"Apache-2.0"
] | permissive | pchaos/funcat2 | a64fbcfc5c1d7b6ed1356cd9558a2efabae90c0e | ff554cc134906a5a182fc31774488d62a839b314 | refs/heads/master | 2023-09-02T19:56:16.017728 | 2021-09-03T01:57:15 | 2021-09-03T01:57:15 | 356,155,099 | 12 | 5 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # -*- coding: utf-8 -*-
import unittest
import warnings
from funcat.utils import save_sp500_tickers, get_data_from_yahoo
__updated__ = "2021-08-10"
class TestYahoo(unittest.TestCase):
"""Test case docstring."""
@classmethod
def setUpClass(cls):
super(TestYahoo, cls).setUpClass()
# 隐藏wa... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
815555a0b9ba8d3eef9e459b9d19cd9f6e6e9305 | 824f831ce0921b3e364060710c9e531f53e52227 | /Leetcode/Python_Basics/02_C_Collection_OrderedDict.py | 4c7578f24feadc8a52aabb12cbb8fd63c8f4f69d | [] | no_license | adityakverma/Interview_Prepration | e854ff92c10d05bc2c82566ea797d2ce088de00a | d08a7f728c53943e9a27c33f8e4249633a69d1a6 | refs/heads/master | 2020-04-19T19:36:06.527353 | 2019-06-15T23:02:30 | 2019-06-15T23:02:30 | 168,392,921 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 948 | py |
# 8.3.6.1. OrderedDict Examples and Recipes
# OrderedDict Examples and Recipes
#
# Since an ordered dictionary remembers its insertion order, it can be used in
# conjunction with sorting to make a sorted dictionary:
# >>>
#
# >>> # regular unsorted dictionary
# >>> d = {'banana': 3, 'apple': 4, 'pear': 1, 'or... | [
"noreply@github.com"
] | adityakverma.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.