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
73f8f75df4969f97b4a998348fe16dcc440d2d48
7d02813987b49c2a69d92b9b2fdf5148af37274f
/case/Meet/testAEContactsList.py
63942a80c243f1797dfec6ebb3cadd7c2807d850
[]
no_license
xgh321324/api_test
29e01cbe5f0b7c2df25fb7e781cedf8031140c72
2575495baac3ab90adab7a7a85904c38a78dd4b7
refs/heads/master
2022-07-23T19:54:39.320828
2022-07-02T09:13:35
2022-07-02T09:13:35
129,185,513
0
0
null
null
null
null
UTF-8
Python
false
false
2,111
py
#coding:utf-8 import requests import unittest import time from common.login import LG from common.logger import Log from common.Excel import Excel_util from common.Hash import get_digit,get_sign class Contact(unittest.TestCase): def setUp(self): self.s = requests.session() self.lgin = LG(self.s) #实...
[ "34511103+xgh321324@users.noreply.github.com" ]
34511103+xgh321324@users.noreply.github.com
95667a1114228dc710f3b65a3610f04a9a086f0a
2b682a01d19960e2039e2e064a742289b30da62c
/SConsArguments/tar.py
bc76ba439c220b692ae99a89c81ab1e85f7ee5f7
[ "MIT" ]
permissive
mcqueen256/scons-arguments
952a427977c42161802225464e99bfeb4e5e9fd5
f4b783fc79fe3fc16e8d0f58308099a67752d299
refs/heads/master
2021-01-01T16:11:53.403454
2017-02-15T19:46:28
2017-02-15T19:46:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,620
py
"""`SConsArguments.tar` Defines arguments related to tar archiver **Arguments** Programs: TAR The tar archiver Flags for programs: TARFLAGS General options passed to the tar archiver """ # # Copyright (c) 2017 by Pawel Tomulik # # Permission is hereby granted, free of charge, to any person ...
[ "ptomulik@meil.pw.edu.pl" ]
ptomulik@meil.pw.edu.pl
486c5c4863977b8e538c9d79f11f23a270e47d2a
b478d1e63cce432b6fd3692c0aa7a84f411ae9dc
/net_prog/ch1/test3.py
c94c114170bd57be0c4c29c64f58045d0441b891
[]
no_license
yiqing95/py_study
8d414aa00b4ac31070fe5667a98815980eee46d0
6ce6b46ad729a795bc9253d6339169e62ef47766
refs/heads/master
2016-09-06T17:45:26.081269
2015-01-12T15:22:29
2015-01-12T15:22:29
20,810,777
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
__author__ = 'yiqing' import socket def get_remote_machine_info(): remote_host = 'www.python.com' try: print("IP address : %s " % socket.gethostbyname(remote_host)) except socket.error as err: print("%s " % err) if __name__ == '__main__': get_remote_machine_info()
[ "yiqing-95@qq.com" ]
yiqing-95@qq.com
e0747aef526c8d78bb3770f3ba3343fd6496a2ce
d52413173437ba73ecdf822ca895e659f00a8ce7
/kiwibackend/application/website/mobile/views/gmapi/instance.py
af1bb96d97b926f195022a516f2f0c28cf6178d2
[]
no_license
whiteprism/mywork
2329b3459c967c079d6185c5acabd6df80cab8ea
a8e568e89744ca7acbc59e4744aff2a0756d7252
refs/heads/master
2021-01-21T11:15:49.090408
2017-03-31T03:28:13
2017-03-31T03:28:13
83,540,646
0
0
null
null
null
null
UTF-8
Python
false
false
2,423
py
# -*- coding: utf-8 -*- from decorators import * from api import * from opensocial.http import HttpResponseJson from module.common.static import ErrorCode from django.conf import settings @handle_verification def query_player_raceinstance(request): ''' 查询用户活动副本 ''' playerId = request.RE...
[ "snoster@163.com" ]
snoster@163.com
ac3a26558056f3fc9a3935f967d3e2c606441a03
3d61fe0f49f5d344fc32a6faa799f0a46deec9a5
/2020/AoC-2020-8.py
706a0af5c3c9f154ced7975039174fb55ed93ec7
[]
no_license
sbeaumont/AoC
558296fd26cd5272e33d3cb9113c09e4945c98ac
406eda614d8434d8feb71fe1262f1fda54972a12
refs/heads/master
2022-12-13T07:38:36.089775
2022-12-04T21:11:49
2022-12-04T21:11:49
75,467,985
0
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
#!/usr/bin/env python3 """Solution for Advent of Code challenge 2020 - Day 8""" __author__ = "Serge Beaumont" __date__ = "December 2020" from copy import deepcopy with open(f"AoC-2020-8-input.txt") as infile: program_file = [line.strip().split() for line in infile.readlines()] for line in program_file: ...
[ "sbeaumont@xebia.com" ]
sbeaumont@xebia.com
515efa1f6a90f9f2e0e52cc7abd3fddc39d81afb
8c1aa957a41954daac70b13f1be06df0c4046bb2
/wagtailwebsitebuilder/home/migrations/0017_auto_20200422_0845.py
6ca88cea553b2a0fffa682871e8b1086cfdd800a
[]
no_license
hanztura/wagtailwebsitebuilder
6c1a2358d53877e4f70d70e5c7c6b472fabec974
f56d1b799f9eda53b5596ed882b60df154581cc5
refs/heads/master
2021-05-21T08:30:16.170885
2020-08-29T22:35:59
2020-08-29T22:35:59
252,619,323
1
0
null
2021-04-16T20:26:46
2020-04-03T03:01:27
Python
UTF-8
Python
false
false
1,152
py
# Generated by Django 2.2.12 on 2020-04-22 08:45 from django.db import migrations import puputextension.helpers import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('home', '0016_auto_20200412_1525'), ] opera...
[ "hanztura@github.com" ]
hanztura@github.com
25c71476cf84f80af692fc6fbeb2506beb383991
8697dbe95cfbdc4c0df211c8f809bcaaf473a36f
/pendulum/__version__.pyi
bc75e0e25899f0df91b9d34c814d5a441699f106
[ "MIT" ]
permissive
Michael0x2a/pendulum-stubs
9ef1b03c76ea7aa6eff56c890dab65801672a299
5a1189f2d39e1a1974cf0acf686db4b7f01bf8db
refs/heads/master
2020-04-19T02:29:28.303289
2019-02-10T17:23:30
2019-02-10T17:23:30
167,904,665
1
0
null
null
null
null
UTF-8
Python
false
false
148
pyi
# Stubs for pendulum.__version__ (Python 3.7) # # NOTE: This dynamically typed stub was automatically generated by stubgen. __version__: str = ...
[ "michael.lee.0x2a@gmail.com" ]
michael.lee.0x2a@gmail.com
035e3ff6b199e3d228fa8e688242053edc7dff29
1a758ef862f733d98ddd8ebc8ade5cefd95c24f2
/customers/migrations/0027_auto_20170508_2340.py
9962ba06eee066980375d3484ef93bfaf2f713d6
[]
no_license
ajajul/ReactJS_Python
f116b35394666c5b3f2419eb5d8d7aeb077d4a24
08310d56fa88f326ddbfdd4b189f2a3a71f76d99
refs/heads/master
2020-03-19T03:16:57.510672
2018-06-01T10:36:36
2018-06-01T10:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
581
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('customers', '0026_auto_20170428_1403'), ] operations = [ migrations.AlterField( model_name='coffeereview', ...
[ "web.expert@aol.com" ]
web.expert@aol.com
b676d38523f8e46480dd315d996f0d67698a85e9
6219e6536774e8eeb4cadc4a84f6f2bea376c1b0
/scraper/storage_spiders/xbookcomvn.py
3195cfea973ea8288043a4a74beb690127d93d2e
[ "MIT" ]
permissive
nguyenminhthai/choinho
109d354b410b92784a9737f020894d073bea1534
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
refs/heads/master
2023-05-07T16:51:46.667755
2019-10-22T07:53:41
2019-10-22T07:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//div/font[@class='CTieuDeNhoNho']", 'price' : "//table//tr/td[2]/font/div/font/b", 'category' : "//div[@id='content']/table[1]/tb...
[ "nguyenchungthuy.hust@gmail.com" ]
nguyenchungthuy.hust@gmail.com
80c17d8f71b2c154e6a79fc0e019d8b3749683f8
eaf54e6c022b748fd0d04f076634aafdfad5f69f
/motors/tools/enable_test.py
a873643226d5ae664ca70200712378dfb4e4abd4
[]
no_license
PenguPilot/PenguPilot
91f131effa11a3c1ef47abb161463772325ae63b
9cb08836789cf17b9de57517040188c79765046b
refs/heads/ng-wip
2020-03-28T00:41:06.634109
2015-11-19T16:06:00
2015-11-19T16:06:00
7,300,320
78
30
null
2015-11-19T16:06:00
2012-12-24T00:18:48
C
UTF-8
Python
false
false
1,364
py
#!/usr/bin/env python """ ___________________________________________________ | _____ _____ _ _ _ | | | __ \ | __ (_) | | | | | | |__) |__ _ __ __ _ _ _| |__) || | ___ | |_ | | | ___/ _ \ '_ \ / _` | | | | ___/ | |/ _ \| __| | | | | | __/ | | |...
[ "tobias.simon@tu-ilmenau.de" ]
tobias.simon@tu-ilmenau.de
0690830ce3ac14f34a1c85b94348aab7a7d9b37f
1db2e2238b4ef9c1b6ca3b99508693ee254d6904
/develop/md_sim_holo_analysis/plot_cc_data.py
d5b6fd2975790d699c8e3b82243558e3a33f4170
[]
no_license
pgreisen/pythonscripts
8674e08095f76edf08ef2059300349218079724c
0aadf8f96d19b306c1bc44a772e766a06fe3408b
refs/heads/master
2021-07-06T23:54:57.774342
2021-06-08T19:36:36
2021-06-08T19:36:36
22,017,192
3
0
null
null
null
null
UTF-8
Python
false
false
257
py
from numpy import * import sys def get_matrix(datafile): return matrixfile def main(): inputfile = sys.argv[1] with open(inputfile, 'r') as f: for line in f: print len(line.split()) if __name__ == "__main__": main()
[ "pgreisen@gmail.com" ]
pgreisen@gmail.com
c5b358ad0899de087b7ee223a7bcd45f3ad3f642
a333ef95f7deeb7a0a6ee4700beb022dc7649256
/ecommerce/forms.py
e21e2d600b125de9ddfc4520c15ab34d25323cb8
[]
no_license
gmachielsen/fullstackproject
3884dc2b301c3aeab1eb6aa025159754e5a3b9ea
7a4879d9fb83ec5c83ff39ea12f7986deae4cfcc
refs/heads/master
2020-07-27T04:25:04.494803
2019-10-07T13:35:43
2019-10-07T13:35:43
208,867,108
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
from django import forms from django.contrib.auth import get_user_model User = get_user_model() class ContactForm(forms.Form): fullname = forms.CharField( widget=forms.TextInput( attrs={ "class": "form-control"...
[ "g.machielsen@gmail.com" ]
g.machielsen@gmail.com
03e28e10b2f413a51c84df41bcf5de6ac327d799
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/messenger/proto/bw_chat2/__init__.py
ac4f1deb4dfe87e1d77ff2abdd87fb006403ac1c
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
4,907
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/messenger/proto/bw_chat2/__init__.py from messenger import g_settings from messenger.m_constants import MESSENGER_SCOPE, PROTO_TYPE from messenger.proto.bw_chat2 import chat_handlers from messenger.proto.bw_chat2.VOIPChatProvider im...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
620b7c3b1f1b3ae6cb598abf93fc176deb65cae5
5c0c0176db0ccf2c24b6b5ed459a8dc144518b13
/nni/nas/tensorflow/base_mutator.py
860680f199278d3fd38910b82e7661b17d2f652e
[ "MIT" ]
permissive
petuum/nni
ac4f4a1c4d6df71684eeffa127b7c4858fd29e97
8134be6269902939232482d63649c06f9864be6d
refs/heads/master
2023-02-18T11:21:41.078889
2021-01-20T03:21:50
2021-01-20T03:21:50
302,736,456
4
3
MIT
2020-11-20T20:21:15
2020-10-09T19:34:11
Python
UTF-8
Python
false
false
2,957
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from tensorflow.keras import Model from .mutables import Mutable, MutableScope, InputChoice from .utils import StructuredMutableTreeNode class BaseMutator(Model): def __init__(self, model): super().__init__() self.__dict__[...
[ "noreply@github.com" ]
petuum.noreply@github.com
108d1dfb0862d12efa5e05cbbe676147dcf2ad65
32daa457e295c74b96c99f74a6a3031cf03c571e
/aliyun-python-sdk-onsmqtt/aliyunsdkonsmqtt/request/v20191211/ApplyTokenRequest.py
c2f46482b8d34454284f4fd68b823522489df47f
[ "Apache-2.0" ]
permissive
BertonLan/aliyun-openapi-python-sdk
0836057c888f7534f37b0001fe2a338c6d505e8e
fd9723c2a800b991179231c1ac4bc92dd8bb5934
refs/heads/master
2022-04-23T16:57:26.354904
2020-04-22T02:51:45
2020-04-22T02:51:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,664
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
69f21e60bf08fd723da51b261ecc602779004ec5
3eb20ec4cf54cd01fc71caa3e8561ef1ff80b893
/revyoume_club/admin.py
00b452e6560ea90fc25b570e531a788c63bcb318
[]
no_license
hottredpen/laowai_panda
38f0db4f6d848ed0b7b6449d1bc77aa952dac695
e862bbe64b84698b7981176c7c190775edf99a67
refs/heads/master
2023-01-03T05:11:01.012487
2020-10-12T08:04:19
2020-10-12T08:04:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
from django.contrib import admin from .models import * from solo.admin import SingletonModelAdmin from django import forms from django.contrib import messages # Register your models here. class PostInline(admin.TabularInline): model = Post extra = 0 readonly_fields = ('text', 'type', ...
[ "893287656@qq.com" ]
893287656@qq.com
cc4076f02f63594508a9d96b275032e977bddf42
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03003/s019657668.py
2a8dd04d77c9270c431b31d84ff7f1a1871ddf1e
[]
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
372
py
#15:35 h,w = map(int,input().split()) a = list(map(int,input().split())) b = list(map(int,input().split())) mod = 10 ** 9 + 7 now = [1 for _ in range(w+1)] for i in range(h): last = now now = [1] for j in range(w): if a[i] == b[j]: now.append((last[j+1]+now[-1])%mod) else: now.append((last[j+1...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9778a8ca7ff30e47c535cb48b6e916ec98ae7099
c9dc1df17ecb9e279eb4403b83358363cdbe7fee
/project/urls.py
3c97f6855709a1835bcf8389736c05b2eba7bea8
[]
no_license
m0nte-cr1st0/keyua
c3894a94c9bfe73409078be11cb1d3f64831054c
b964ebb7e260fbebdbc27e3a571fed6278196cac
refs/heads/master
2022-11-25T16:03:51.882386
2020-01-09T12:57:54
2020-01-09T12:57:54
232,809,529
0
0
null
2022-11-22T02:24:49
2020-01-09T12:58:10
Python
UTF-8
Python
false
false
1,534
py
"""IncheckSite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
[ "dinamo.mutu111@gmail.com" ]
dinamo.mutu111@gmail.com
dd23642f0663cc57638424411a54c21671bcc149
35a88ca38bb850b5c82d8a4e4de430d1d48660b7
/www_dytt8_net/www_dytt8_net/spiders/dytt8.py
b7eca5b30f78c900600914c17c3e5cbc47451ade
[]
no_license
gyc567/spider_world
3798cf854efcaacc4918c82358836480e6245a11
4bf04e5a4b0578cd7a28c14f3c10f9a0cad63f7c
refs/heads/master
2020-05-22T02:14:12.210582
2019-05-07T12:34:06
2019-05-07T12:34:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,690
py
# -*- coding: utf-8 -*- import re import scrapy import sys from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from scrapy.loader.processors import Compose from www_dytt8_net.items import WwwDytt8NetItem class Dytt8Spider(CrawlSpider): __ERROR_INFO = "很抱歉,您要访问的页面已被删除或不存在。...
[ "funblessu@gmail.com" ]
funblessu@gmail.com
5cb10b21ff50792c7351d990d7a45c0414b624f8
8040c2be85e686df30143600ed91100b6094812a
/csv-file-operation/csvFileGen2.py
c3d7c7992c25a52c3e574525bb8070c6b63f51b7
[]
no_license
eLtronicsVilla/Miscellaneous-Useful-code
0b6e3d6dd4b9feca3364f98929e26ee9da3221af
cc5be1e8b8e9b0d2f49f2abcba16b2548bf4a41e
refs/heads/master
2021-08-07T23:16:08.088315
2020-05-22T19:38:17
2020-05-22T19:38:17
181,491,048
0
0
null
2019-05-18T09:06:46
2019-04-15T13:19:55
Python
UTF-8
Python
false
false
703
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 11 16:23:34 2019 @author: brijesh Gupta """ import csv import os import sys import time with open('Test.csv','wb') as csvfile: filewriter = csv.writer(csvfile, delimiter=',',quotechar='|',quoting=csv.QUOTE_MINIMAL) filewriter.writerow(['SN','Dat...
[ "eltronicsvilla17@gmail.com" ]
eltronicsvilla17@gmail.com
f09f51e942e96e258583d9deb9f7490ac54883aa
f3fdfdf714e23ef69c9ce6631c188f1ebc328546
/setup.py
a65c551e0c1b8aae6a58f0ff2a4edfb44f1e6111
[ "BSD-2-Clause" ]
permissive
liujie40/PSpider
bf2a134812ce81357588b260cee9e3d039c73df0
f1162c777ec87250edfd2532882eb15b8d712e6a
refs/heads/master
2022-02-21T18:20:41.468852
2022-01-19T06:55:54
2022-01-19T06:56:00
112,547,656
1
0
null
2017-11-30T01:17:47
2017-11-30T01:17:47
null
UTF-8
Python
false
false
383
py
# _*_ coding: utf-8 _*_ """ install script: python3 setup.py install """ from setuptools import setup, find_packages setup( name="spider", version="3.0.4", author="xianhu", keywords=["spider", "crawler"], packages=find_packages(exclude=("test.*",)), package_data={ "config": ["*.conf"]...
[ "qixianhu@qq.com" ]
qixianhu@qq.com
4380d953b1142157b79abdcc6ac89919e7e88fc9
90f545733f076747bad979faa3a8cf23867f7a3a
/HS5f.py
a49ff24bdca897a53c0c4690860b5d5d81f31ae2
[]
no_license
kunweiTAN/techgym_ai
f85dc52ce6e75f4c08213d5796171908beb9a69e
051274bcc789a563c46ed5661301535e76ae1e18
refs/heads/master
2023-08-17T05:15:18.758183
2021-09-21T11:57:07
2021-09-21T11:57:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
#AI-TECHGYM-4-7-Q-1(AI-TECHGYM-3-20-Q-1) #回帰問題と分類問題 #インポート from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.model_selection import train_test_split from sklearn.datasets import load_iris from sklearn.metrics import accuracy_score iris = loa...
[ "noreply@github.com" ]
kunweiTAN.noreply@github.com
1cfebbe7fd51cc5599eba80d68db0e7cd7e7fbdd
2d694018e5f1ca0d8a60e2ecd3debc094a0ce9a2
/venv/Scripts/autopep8-script.py
03573f16b86b67d8a2fcfee0dfb8e380b465a0ce
[]
no_license
gajanantadas/Ecommerce_project
9a380fd5c0c37440b3d48982a9aac742d6831d2a
0b0251d30f8a10a79f72cc8dfb2780d99e62fe05
refs/heads/master
2023-03-05T03:51:02.690861
2021-02-15T07:43:34
2021-02-15T07:43:34
338,998,863
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
#!"G:\New folder\Ecommerce_project\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8' __requires__ = 'autopep8==1.5.4' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy...
[ "gajanantadas3@gmail.com" ]
gajanantadas3@gmail.com
d74d978814589cb360e60156707fb640d5ac8a75
6b587069460046cefbb3f2d18bafbbe4ffbc00d1
/further_study.py
74b6ba5f552ad93ec1ae9135307eced4fe91d5bd
[]
no_license
rachel-lynch-lin/list-slicing
bd992c84ff5865d2b9010e80f9fc01648f161906
d598df20941f34a6e993b73897cfada38f52ca88
refs/heads/master
2020-03-21T06:40:38.214931
2018-06-22T00:06:16
2018-06-22T00:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,103
py
"""Custom implementations of several standard Python list methods. Implement your own versions of Python's standard list methods, as functions. You should use only the primitive operations from Part 1 and 2 in your implementations. For loops are also allowed, such as the following: for element in some_list: ...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
839bbb95ff3a972b5ab6d75ef01bd4339081612a
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/inspur/sm/plugins/modules/download_auto_screenshot.py
7c8f830ec5e4a390bc12d58743e4817959ff16e9
[ "MIT", "GPL-3.0-only", "GPL-3.0-or-later" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
2,448
py
#!/usr/bin/python # -*- coding:utf-8 -*- # Copyright (C) 2020 Inspur Inc. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: download...
[ "sifang@cisco.com" ]
sifang@cisco.com
e4bf678fe219d6b3554fa9948f51af523385ce03
b2b79cc61101ddf54959b15cf7d0887d114fb4e5
/web/pgadmin/tools/debugger/tests/test_restart_debugger.py
6c30562bf91dcb925a73c5ff388af96cf835ee8a
[ "PostgreSQL" ]
permissive
99Percent/pgadmin4
8afe737eb2ec1400ab034ad1d8a4f7c4ba4c35c8
5e0c113c7bc4ffefbec569e7ca5416d9acf9dd8a
refs/heads/master
2021-10-10T20:08:48.321551
2021-09-30T12:51:43
2021-09-30T12:51:43
165,702,958
0
0
NOASSERTION
2019-01-14T17:18:40
2019-01-14T17:18:39
null
UTF-8
Python
false
false
3,016
py
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2021, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import json impor...
[ "akshay.joshi@enterprisedb.com" ]
akshay.joshi@enterprisedb.com
efda514ddc0e46df56878a94c5569a740445e0fb
d429c131df32789e11a98e9e965e652176fcee97
/454B - Little Pony and Sort by Shift.py
8dcfd32741c9cd4e29c47a0c82bd29701b71a480
[]
no_license
shan-mathi/Codeforces
a11841a1ef1a1ef78e3d506d58d9fdf4439421bd
6f8166b79bea0eb1f575dbfc74c252ba71472c7e
refs/heads/main
2023-06-15T08:25:41.130432
2021-06-24T10:36:06
2021-06-24T10:36:06
341,176,287
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
#118706045 Jun/07/2021 14:53UTC+5.5 Shan_XD 454B - Little Pony and Sort by Shift PyPy 3 Accepted 218 ms def one_shift(n,x): c = x.copy() c.sort() if c ==x: return 0 set =0 for i in range(n): if x[i+1] < x[i] and not set: set = 1 if (x[i+1:] + x[:i+1])== c: ...
[ "noreply@github.com" ]
shan-mathi.noreply@github.com
f0d75c548356b509d1ce973bd3524ff051486610
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004907.py
f15c185acaf516f2e92f4364b40ff14c731692d7
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,296
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
f79e2cae087ea96ee7bf206c8c58102f233d61a4
aadad415f425b9f45fed14290235488a46687a4f
/2009/bastieri/cadmio/passosbagliato/wavelength.py
54e7ed3023e3d79258a794b356218a90c4540593
[]
no_license
enucatl-university/lab-unipd
c1fdae198ccc3af3f75ad07554e148427a9cc096
c197bb92f479913c1183375fa22fd1619e6bbad4
refs/heads/master
2023-08-15T01:59:55.502505
2016-11-11T19:20:13
2016-11-11T19:20:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
from __future__ import division import math from ROOT import TGraph, TF1, TCanvas def to_decimal(deg): int = math.floor(deg) rem = 5*(deg - int) / 3 return int + rem class WaveLength(object): def __init__(self, file_name): self.output_file = file_name + '.out' with open(file_name) as i...
[ "gmatteo..abis@gmail.com" ]
gmatteo..abis@gmail.com
522f43d045aead4510090ccba73165183d45dd2a
a3cf848e37683b45ea570578e398ab85f1ca4732
/DEMO/write_excel.py
c874f2fbbb1796ab96bf428e6653507c492782df
[ "MIT" ]
permissive
AceCoooool/python-example
7f456f702ecc59909d500bcf62e478d0a86082de
1d0068627210f08d31f027b6a333118d9f743956
refs/heads/master
2020-04-18T07:27:45.200465
2019-02-24T11:22:26
2019-02-24T11:22:26
167,360,679
2
0
null
null
null
null
UTF-8
Python
false
false
597
py
import xlwt if __name__ == '__main__': # Workbook is created wb = xlwt.Workbook() # add_sheet is used to create sheet. sheet1 = wb.add_sheet('Sheet 1') sheet1.write(1, 0, 'ISBT DEHRADUN') sheet1.write(2, 0, 'SHASTRADHARA') sheet1.write(3, 0, 'CLEMEN TOWN') sheet1.write(4, 0, 'RAJPUR ...
[ "tinyshine@yeah.net" ]
tinyshine@yeah.net
ecb2639a5a72d1cd7a09a16340dc5cfff6926757
55eda01bdcbda99f72cfdf0b29afb5ea36756873
/arxiv/kdgan/mdlcompr_xw/train_kd.py
5fac90bbad9ad11f7d44ec75643db75b3b861de5
[]
no_license
yyht/KDGAN
7489a0ca1a2f044b6bcb7cd8bb0d6f2dae1da5e7
8f1367d242d7d174bf5bb2740aa18e3846d7b521
refs/heads/master
2020-05-16T08:36:18.872239
2019-01-12T04:17:31
2019-01-12T04:17:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,738
py
from kdgan import config from kdgan import metric from kdgan import utils from flags import flags from data_utils import AffineGenerator from gen_model import GEN from tch_model import TCH import data_utils from os import path from tensorflow.contrib import slim import math import os import time import numpy as np imp...
[ "xiaojiew1@student.unimelb.edu.au" ]
xiaojiew1@student.unimelb.edu.au
03f83b3a694301dea1d55fc6a15c0c9f2974f189
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/lib-python/3/test/test_pep263.py
598d980b2a67e289dfefb23de2265ee229c13b0e
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
WINDOWS-1252
Python
false
false
1,852
py
# -*- coding: koi8-r -*- import unittest from test import support class PEP263Test(unittest.TestCase): def test_pep263(self): self.assertEqual( "ðÉÔÏÎ".encode("utf-8"), b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd' ) self.assertEqual( "\ð".encode("utf-8")...
[ "thezhangwei@gmail.com" ]
thezhangwei@gmail.com
b73c82ceb84172586c6092a5ce99dceb1c4cfeb1
fe06311a7de13a02ca0be37d84c542c3cece3f33
/Chapter35/file_35_1_3b.py
ea3649be523e31c869c950e58a5182dc36a0424f
[]
no_license
mooksys/Python_Algorithms
a4a84ddabc34ec4b7cc0ac01d55019880af38514
375817e3dfdec94411cf245fe3f685a69d92b948
refs/heads/master
2020-08-24T06:35:05.791979
2018-07-30T01:22:24
2018-07-30T01:22:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
ELEMENTS_OF_A = 20 ELEMENTS_OF_B = 30 # 입력받은 값을 리스트 a와 b에 각각 저장한다. a = [None] * ELEMENTS_OF_A b = [None] * ELEMENTS_OF_B for i in range(ELEMENTS_OF_A): a[i] = float(input()) for i in range(ELEMENTS_OF_B): b[i] = float(input()) # 리스트 new_arr를 생성한다. new_arr = [] for element in a: new_arr.append(element) for...
[ "jeipubmanager@gmail.com" ]
jeipubmanager@gmail.com
f8066949fde26242a622104d46dbf942a6148195
78f3fe4a148c86ce9b80411a3433a49ccfdc02dd
/2012 and earlier/superdonors-20121023/graphic_config.py
f8301f5d3df1c9e94821f63c2824fad43e9647b1
[]
no_license
nprapps/graphics-archive
54cfc4d4d670aca4d71839d70f23a8bf645c692f
fe92cd061730496cb95c9df8fa624505c3b291f8
refs/heads/master
2023-03-04T11:35:36.413216
2023-02-26T23:26:48
2023-02-26T23:26:48
22,472,848
16
7
null
null
null
null
UTF-8
Python
false
false
305
py
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1o6fwDxOQI70FxDnK7_PaXad8viYcTkY7Q1a_B6uzdlE' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
[ "ahurt@npr.org" ]
ahurt@npr.org
7a047c3eaac3fc87eeeb8acc8bd41efee40e159c
897871d09b8b1e86c5a48599839ba9534260f2c9
/aromawine3-new_update__with_checkout/admin_manage_notification/admin.py
d94ca7e5b51a57bff11127a6e62b3e27e9e735ab
[]
no_license
sidkushwah123/wine
0b8b8fdf44068b4488d5f1ae5d34a24d3fff19a9
bb29e84fb4a0709aca36e819ae6191147a9691b5
refs/heads/main
2023-07-27T14:03:06.814484
2021-09-11T15:25:39
2021-09-11T15:25:39
405,354,798
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
from django.contrib import admin from .models import AwNotification from import_export.admin import ImportExportModelAdmin # Register your models here. class AwNotificationAdmin(ImportExportModelAdmin): list_display = ('user','Send_Status', 'Created_by', 'Created_by','Created_date','Read_Status','Read_date') admi...
[ "sachinkushwah0007@gmail.com" ]
sachinkushwah0007@gmail.com
b23ab19206208ca963896607269c13453e188470
0d61f90e3a7877e91d72fed71b0895c7070dc046
/final_project/.history/project/menu_app/urls_20210103102257.py
433c7dab24301af7a57b5a070851582c545d4fcd
[]
no_license
lienusrob/final_project
44d7d90dc0b7efc0cf55501549a5af0110d09b3b
4164769626813f044ec2af3e7842514b5699ef77
refs/heads/master
2023-02-10T16:36:33.439215
2021-01-05T09:34:01
2021-01-05T09:34:01
325,002,104
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# from project.account_app.views import HomeView from django.urls import path from . import views from .views import view_cart, add_to_cart, adjust_cart urlpatterns = [ #path('', views.menu_list_view(template_name = 'menu_app/menu_list.html'), name = 'menu_list'), #path('menu/', views.menu_list_view, name = 'menu_lis...
[ "lienus.rob@hotmail.de" ]
lienus.rob@hotmail.de
80cecf6b14e008ae28b91dce83556e31dd9fb1a7
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_81/507.py
bdd84a38baf779ae289c6f1817d6c5003b53e93f
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,592
py
fp = open('A-large.in') T = int(fp.readline()) for t in range(T): N = int(fp.readline()) M = [] for n in range(N): s = fp.readline().strip() M.append(s) print "Case #%d:"%(t+1) WP = [] for n in range(N): playcount = 0 wins = 0.0 wp = 0.0 for i i...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d8b174c28eccb7c63f64135fafc8e975c5d0d119
fd574c2d37afd8fddc548f64aa8befdfcf96d43a
/greedy/queueByHeight.py
bcee8e588c9ce1d64f6ecc744310778402e743e9
[]
no_license
g10guang/LeetCode
023f1630611b05edf0ba069adf383e86db66c3f3
da2a75c3c4a853b4768ae03bab7725e11cf38d1a
refs/heads/master
2021-07-05T15:29:03.007752
2020-07-15T14:32:10
2020-07-15T14:32:10
129,694,867
0
1
null
null
null
null
UTF-8
Python
false
false
758
py
# https://leetcode.com/problems/queue-reconstruction-by-height/description/ class Solution: def reconstructQueue(self, people): """ :type people: List[List[int]] :rtype: List[List[int]] """ if not people: return people length = len(people) i = len...
[ "g10guang@gmail.com" ]
g10guang@gmail.com
747653f0003ab3203563cf84d3100573691845ae
20b04495f17e7cb9970feffb92eb2b2fc05289a3
/sample/ThreadPy.py
7bf1df16327b09d783ffb6cae3f622729d8c4e3a
[]
no_license
to-yuki/pythonLab
4a69e5f24df86005f32bda0e41ddfd23a2942335
270487690818faa90d5c17e6619d0b531f9a4f39
refs/heads/master
2021-09-09T23:59:25.938777
2018-03-20T09:26:18
2018-03-20T09:26:18
108,782,578
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# -*- coding: UTF-8 -*- import threading from time import sleep # スレッド化する関数1 def thread1(): # 1秒間隔で "T1" を表示 for i in range(5): sleep(1) print "T1 ", # スレッド化する関数2 def thread2(): # 2秒間隔で "T2" を表示 for i in range(5): sleep(2) print "T2 ", # メインスレッド関数 def mainThread(): ...
[ "to-yuki@jtp.co.jp" ]
to-yuki@jtp.co.jp
d033b899c9e461cf8c7d511f8aea043dfb973638
5af277b5819d74e61374d1d78c303ac93c831cf5
/grouptesting/utils.py
8a680f40932fb818fdc48333c6f8d26210eaa058
[ "Apache-2.0" ]
permissive
Ayoob7/google-research
a2d215afb31513bd59bc989e09f54667fe45704e
727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7
refs/heads/master
2022-11-11T03:10:53.216693
2020-06-26T17:13:45
2020-06-26T17:13:45
275,205,856
2
0
Apache-2.0
2020-06-26T16:58:19
2020-06-26T16:58:18
null
UTF-8
Python
false
false
2,223
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
2377ec59602cc8f7f6606e2b2bc07593ae2982a3
7b6377050fba4d30f00e9fb5d56dfacb22d388e1
/xData/Documentation/keyword.py
047eedd677d3fb462e8a9cbd6adeadcbebc84fca
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LLNL/fudge
0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370
6ba80855ae47cb32c37f635d065b228fadb03412
refs/heads/master
2023-08-16T21:05:31.111098
2023-08-01T22:09:32
2023-08-01T22:09:32
203,678,373
21
4
NOASSERTION
2023-06-28T20:51:02
2019-08-21T23:22:20
Python
UTF-8
Python
false
false
1,266
py
# <<BEGIN-copyright>> # Copyright 2022, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> """ This module contains the GNDS documentation child nodes keywords and keywork classes. """ from LUPY import ancestry as a...
[ "mattoon1@llnl.gov" ]
mattoon1@llnl.gov
4fb633e66e24821fa918896ec72f310a2c7d7300
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/count-square-submatrices-with-all-ones.py
aedd724cf51f450b6e3698b4879fa2c9d95b2743
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
501
py
# Time: O(m * n) # Space: O(1) class Solution(object): def countSquares(self, matrix): """ :type matrix: List[List[int]] :rtype: int """ for i in xrange(1, len(matrix)): for j in xrange(1, len(matrix[0])): if not matrix[i][j]: ...
[ "noreply@github.com" ]
kamyu104.noreply@github.com
9b66a08d83f538492518e8d3c941d747b9fd27df
b7851ffc689990a5c394697b1d016ba34307630c
/venv/lib/python3.8/site-packages/faker/providers/ssn/uk_UA/__init__.py
7673ee7bc606d47605ae2f9243e218267865b6d0
[]
no_license
denokenya/django-schooling-rest-api
f38fb5cc31a6f40462f9cb1dcc6c3fd36e1301c6
552b98d5494344049541df615f446713cb5da1fa
refs/heads/main
2023-06-14T12:53:11.897887
2021-07-10T18:02:11
2021-07-10T18:02:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
from datetime import date from .. import Provider as SsnProvider class Provider(SsnProvider): def ssn(self): """ Ukrainian "Реєстраційний номер облікової картки платника податків" also known as "Ідентифікаційний номер фізичної особи". """ digits = [] # Number of d...
[ "lucasciccomy@gmail.com" ]
lucasciccomy@gmail.com
2a5d6a8fa6c48f12df1474865332576ad3e7cadc
7882860350c714e6c08368288dab721288b8d9db
/구현/swea1954.py
ed62a9b2ebde3549be409ada6635d1d7bd8ba1fd
[]
no_license
park-seonju/Algorithm
682fca984813a54b92a3f2ab174e4f05a95921a8
30e5bcb756e9388693624e8880e57bc92bfda969
refs/heads/master
2023-08-11T18:23:49.644259
2021-09-27T10:07:49
2021-09-27T10:07:49
388,741,922
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
delta = ( (0, 1), # 열증가 (1, 0), # 행증가 (0, -1), # 열감소 (-1, 0), # 행감소 ) T = int(input()) for test_case in range(1, T + 1): N = int(input()) board = [[0] * N for _ in range(N)] def snail(): row = 0 col = 0 num = 1 distance = max(N - 1,1) while T...
[ "cucu9823@naver.com" ]
cucu9823@naver.com
51cdbcf4d68698ce397c18e4b7206e52ed374f3e
45c170fb0673deece06f3055979ece25c3210380
/toontown/speedchat/TTSCSellbotNerfMenu.py
bbd255756bc5a8d3dac7b3e4c5b633742d7a73a5
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
1,965
py
#Embedded file name: toontown.speedchat.TTSCSellbotNerfMenu from toontown.toonbase import ToonPythonUtil as PythonUtil from otp.speedchat.SCMenu import SCMenu from otp.speedchat.SCMenuHolder import SCMenuHolder from otp.speedchat.SCStaticTextTerminal import SCStaticTextTerminal from otp.otpbase import OTPLocalizer Sell...
[ "linktlh@gmail.com" ]
linktlh@gmail.com
f0a517b00e54ed242fe81c1004b6aee54258f5a3
e7f67295e62fc5301ab23bce06c61f2311c2eeee
/mjml/core/registry.py
e2271ec00d336fba2502dc0692184cf39c26c0c4
[ "MIT" ]
permissive
bayesimpact/mjml-stub
94d10588359990cd58d2085429b19a3777c51f15
30bab3f2e197d2f940f58439f2e8cd9fadb58d48
refs/heads/main
2023-05-08T11:54:19.313877
2021-01-25T21:30:48
2021-01-25T21:30:48
344,026,118
0
0
MIT
2021-03-03T06:31:49
2021-03-03T06:31:48
null
UTF-8
Python
false
false
828
py
__all__ = [] def _components(): from ..elements import (MjButton, MjText, MjSection, MjColumn, MjBody, MjGroup, MjImage, MjDivider, MjTable, MjRaw) from ..elements.head import (MjAttributes, MjFont, MjHead, MjPreview, MjStyle, MjTitle) components = { 'mj-button': MjButton, ...
[ "felix.schwarz@oss.schwarz.eu" ]
felix.schwarz@oss.schwarz.eu
6105554d84433e416576e543c9d8029e5b038601
f889bc01147869459c0a516382e7b95221295a7b
/test/test_body_61.py
83de2fb29e48fbb0b61eadc44a78bdfab46ca709
[]
no_license
wildatheart/magento2-api-client
249a86f5c0289743f8df5b0324ccabd76f326512
e6a707f85b37c6c3e4ef3ff78507a7deb8f71427
refs/heads/master
2021-07-14T16:01:17.644472
2017-10-18T13:33:08
2017-10-18T13:33:08
107,412,121
1
1
null
null
null
null
UTF-8
Python
false
false
871
py
# coding: utf-8 """ Magento Community No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sy...
[ "sander@wildatheart.eu" ]
sander@wildatheart.eu
f7754d30c7af009e5787a949e16e849192197347
fde8c89b352076f95cc16e589b1baf18f7befb51
/tempest/api/volume/admin/v2/test_snapshot_manage.py
111492428e46f21cf3942f3c59602e1e69b2eb0a
[]
no_license
571451370/devstack_mitaka
b11145256deab817bcdf60a01a67bb6b2f9ddb52
1bdd3f2598f91c1446b85c5b6def7784a2f6ab02
refs/heads/master
2020-08-26T12:53:07.482514
2017-04-12T01:32:55
2017-04-12T01:32:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,876
py
# Copyright 2016 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
856d2373425f060429aa63fde2ae8ce926777eec
888899f0cb3e6e7b28a9de39001a1fd1c177cd35
/COMPLETE PYTHON-3 COURSE/Chapter-03-IF_ELSE_FOR_WHILE_LOOP/infinite_loop.py
9e010471ab0611accc49974e87c73a684c37d8ed
[]
no_license
VivakaNand/COMPLETE_PYTHON_3
ef162d71d3a44bf661fcc1a8aacce31e7953cd7c
b3b835afe7671fdc3d29d912650fd4ccd3bc83f6
refs/heads/master
2023-02-04T10:13:41.881939
2020-12-23T08:30:51
2020-12-23T08:30:51
323,839,528
0
1
null
null
null
null
UTF-8
Python
false
false
164
py
# infinite loop #i = 0 #while i<10: # print(Hello World) while True: print("Hello World") # to terminate infinite loop use command # Ctrl + c
[ "vivekjetani83@gmail.com" ]
vivekjetani83@gmail.com
5fd0337e4783437ab44e5fcf862272a2e3c1070e
aa0270b351402e421631ebc8b51e528448302fab
/sdk/identity/azure-identity/azure/identity/_credentials/device_code.py
688c44c12f6b04cad5a40b0980d84b109f0cfcad
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
5,815
py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from datetime import datetime import time from typing import Dict, Optional, Callable, Any from azure.core.exceptions import ClientAuthenticationError from .._constant...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
35dbc8417982370fd70de25f449e08b98d2b5632
0ba2c3776618b5b8b76f4a23f21e9c6ad3f6e2e1
/afterclass/homework3/6.1.py
fc73fce3ae1c98fb5f0ed793b9585b6b9b1ba543
[]
no_license
WangDongDong1234/python_code
6dc5ce8210b1dcad7d57320c9e1946fd4b3fe302
6a785306a92d328a0d1427446ca773a9803d4cc0
refs/heads/master
2020-04-15T12:35:03.427589
2019-09-16T15:38:25
2019-09-16T15:38:25
164,681,323
1
0
null
null
null
null
UTF-8
Python
false
false
754
py
while 1: try: str=input() array=[int(i) for i in str.strip().split(" ")] list=array[1::] result=[] for i in range(array[0]): result.append(0) for i in range(array[0]): for j in range(array[0]): if list[i]>list[j]: ...
[ "827495316@qq.com" ]
827495316@qq.com
6908c575ccde591afe9caf7d459b020ca4b7f5b9
56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf
/src/api_v1/serializers/openaccess.py
aada052fbc6179eb4bd84c660136bfb111f92683
[ "MIT" ]
permissive
iplweb/bpp
c40f64c78c0da9f21c1bd5cf35d56274a491f840
a3d36a8d76733a479e6b580ba6ea57034574e14a
refs/heads/dev
2023-08-09T22:10:49.509079
2023-07-25T04:55:54
2023-07-25T04:55:54
87,017,024
2
0
NOASSERTION
2023-03-04T04:02:36
2017-04-02T21:22:20
Python
UTF-8
Python
false
false
288
py
from rest_framework import serializers from bpp.models import Czas_Udostepnienia_OpenAccess class Czas_Udostepnienia_OpenAccess_Serializer(serializers.HyperlinkedModelSerializer,): class Meta: model = Czas_Udostepnienia_OpenAccess fields = ["id", "nazwa", "skrot"]
[ "michal.dtz@gmail.com" ]
michal.dtz@gmail.com
5a8427de6fdcde4bce96df3cfac1ad3cec39ace3
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil1203.py
fafeb57574e59bf7a05a7e9fb1487768b3914af1
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,220
py
# qubit number=5 # total number=51 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=3 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
11feff481cc0b103cd744e5ddaa43c27c9b9557e
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/list_auditlogs_request.py
a1697211afe96dd24be2581077e2977269f456d9
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,513
py
# coding: utf-8 import pprint import re import six class ListAuditlogsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the val...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
229367ad40fc730f2e52dd2f23c9e2967bc956e6
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/b8wRDMWgMZTN2nmfx_12.py
d816d604f90e8b6c23df10170ce6f72b2ee90835
[]
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
135
py
def equal(a, b, c): eq = 0 if a == b and a == c and b == c: eq = 3 elif a == b or a == c or b == c: eq = 2 return eq
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
9af273cac076fed3d2bb3147957deeebc7485900
c6dc8b682aea706b18b05952f791e01989db3669
/Programiz/checkStringIsPalindrome.py
4d9854af2259cf67461730ef2b277c103a7f238e
[]
no_license
LizaPersonal/personal_exercises
aeb9ceb2593a6d5ee1a8e9f7c0862ce638acd29b
649dc0c116861995fbf58b4736a0c66fd75d648c
refs/heads/master
2021-04-03T02:17:51.850676
2018-07-31T21:10:59
2018-07-31T21:10:59
125,123,778
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Program to check if a string is palindrome or not # change this value for a different output my_str = 'aIbohPhoBiA' # make it suitable for caseless comparison my_str = my_str.casefold() # reverse the string rev_str = reversed(my_str) # check if the string is equal to its reverse if list(my_str) == list(rev_str): ...
[ "liza@rocketrip.com" ]
liza@rocketrip.com
4a8b858b417a2c65f955b1ce76dfdf44fba59bea
8629f82f971f4e036c2b6358fe353a2c88bfd098
/BConverters/AnnotationConverters.py
76e538d13ae67693278507c13db362dc14a696cc
[ "MIT" ]
permissive
mahajrod/MAVR
92828fa1c191b5f8ed08f1ba33f1684df09742cd
8c57ff5519f130357e36e6f12868bc997e52a8a7
refs/heads/master
2023-08-25T01:02:24.738724
2023-08-22T15:13:39
2023-08-22T15:13:39
21,181,911
11
6
null
2017-09-18T20:25:16
2014-06-24T21:45:57
Python
UTF-8
Python
false
false
635
py
__author__ = 'mahajrod' import os from BCBio import GFF class AnnotationConverters: " @staticmethod def gff22gff3(input_file, output_file, target_lines=100000): in_fd = open(input_file, "r") out_fd = open(output_file, "w") GFF.write(GFF.parse(in_fd, target_lines=target_lines), out_...
[ "mahajrod@gmail.com" ]
mahajrod@gmail.com
a510a15dfe373e469b66e9435f40c354e16b56cf
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res_bw/scripts/common/lib/encodings/cp1026.py
c4de9dd6738fbafdea4d05746feed1a2dabe7703
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,269
py
# 2016.02.14 12:48:01 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/encodings/cp1026.py """ Python Character Mapping Codec cp1026 generated from 'MAPPINGS/VENDORS/MICSFT/EBCDIC/CP1026.TXT' with gencodec.py. """ import codecs class Codec(codecs.Codec): def encode(self, input, errors = 'stric...
[ "info@webium.sk" ]
info@webium.sk
1fe21bfb31d89042f71c3414c4e127daaeb2dadb
eb61d62ca1f6f0123e3771105f5dfbbd6115138d
/.history/leccion_20210910224916.py
890f138fa4238e95326e91bb5a1829aaf353de86
[]
no_license
Alopezm5/CORRECTO-2
e0f14bcc3a88c0e222d10e3261e68532008bc42e
223613f1fb04dce3fac9f82f243cb2f22fe100f3
refs/heads/main
2023-07-29T06:52:48.147424
2021-09-12T20:33:27
2021-09-12T20:33:27
388,995,308
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
from datetime import date class Calculos: def antiguedad(self,fecha): hoy=date.today() if hoy<fecha: return -1 else: anio=fecha.year mes=fecha.month dia=fecha.day aa=0 while fecha<hoy: aa=1 ...
[ "85761855+Alopezm5@users.noreply.github.com" ]
85761855+Alopezm5@users.noreply.github.com
aa3ae29b2d0ea43a8ec9e447b892f19baf331b19
258b656d1b6864726864f89d4c8dc38fc633a48f
/odoo_addons_customization/lending_import_kairos/models/lending_kairos_line.py
319e3707c1efd5689559ff6c6ea912bea29179ab
[]
no_license
test-odoorosario/opt
c17e1c1767710ca8e13a799644fb85b07e83639b
77921b4d965f2e4c081d523b373eb306a450a873
refs/heads/master
2022-12-02T04:36:04.685119
2019-07-11T17:17:20
2019-07-11T17:17:20
196,436,293
0
1
null
2022-11-22T00:30:40
2019-07-11T17:13:21
Python
UTF-8
Python
false
false
2,130
py
# - coding: utf-8 -*- ############################################################################## # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # ...
[ "root@ip-172-31-8-107.sa-east-1.compute.internal" ]
root@ip-172-31-8-107.sa-east-1.compute.internal
f90310a5c43477d44f9d152349a9a72b164b204a
2ed86a79d0fcd299ad4a01310954c5eddcf01edf
/homeassistant/components/ws66i/media_player.py
1101c0c9fbc8c9e1a5adc29af5766489e54fae72
[ "Apache-2.0" ]
permissive
konnected-io/home-assistant
037f12c87bb79e19220192eb918e49db1b1a8b3e
2e65b77b2b5c17919939481f327963abdfdc53f0
refs/heads/dev
2023-05-11T08:57:41.891518
2023-05-07T20:03:37
2023-05-07T20:03:37
109,931,626
24
10
Apache-2.0
2023-02-22T06:24:01
2017-11-08T05:27:21
Python
UTF-8
Python
false
false
6,345
py
"""Support for interfacing with WS66i 6 zone home audio controller.""" from pyws66i import WS66i, ZoneStatus from homeassistant.components.media_player import ( MediaPlayerEntity, MediaPlayerEntityFeature, MediaPlayerState, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core impo...
[ "noreply@github.com" ]
konnected-io.noreply@github.com
f07cc36cc24fb93bc7abf3c6797c8a06336d73ce
61f6a7b3226e892d897538180a41b9d65f3be9ef
/run.py
ef09f7438d369749a1b07c293e1931da000c9400
[ "MIT" ]
permissive
tangbiondi/aantonop-subtitles
db7952dc6dd340eabb53b85813493f34ca6e45bd
35120f247cee63b4f1c0f937d5c337374ef51ec3
refs/heads/master
2021-04-28T01:32:54.412736
2018-02-20T13:45:31
2018-02-20T13:45:31
122,281,228
0
0
MIT
2018-02-21T01:55:35
2018-02-21T01:55:34
null
UTF-8
Python
false
false
1,875
py
import re from collections import defaultdict from glob import glob languages = set() videos = {} for filepath in glob("./subtitles/original/*"): filename = filepath.replace("./subtitles/original/", "") title, youtube_id, lang = re.match(r"(.*)-(.{11,13})\.(.*)\.vtt", filename).groups() languages.add(la...
[ "noisy.pl@gmail.com" ]
noisy.pl@gmail.com
88f23fd76116a7637df84116fa5bd6222cf5318a
f7dd190a665a4966db33dcc1cc461dd060ca5946
/apps/posts/migrations/0001_initial.py
97494a6fbf0f67308adabcc659abd18daaae77c0
[]
no_license
Darwin939/macmeharder_back
2cc35e2e8b39a82c8ce201e63d9f6a9954a04463
8fc078333a746ac7f65497e155c58415252b2d33
refs/heads/main
2023-02-28T12:01:23.237320
2021-02-02T17:37:33
2021-02-02T17:37:33
328,173,062
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
# Generated by Django 3.1.5 on 2021-01-16 09:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(aut...
[ "51247000+Darwin939@users.noreply.github.com" ]
51247000+Darwin939@users.noreply.github.com
8aac422067e1cd8db4e302ec4ff97aacdc5f7736
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02708/s543945314.py
6e7a98625c4186a02cb68a2ca3bd2c3ee37b3d97
[]
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
283
py
#!/usr/bin/env python3 def main(): N, K = map(int, input().split()) mod = 7 + 10 ** 9 res = 0 for k in range(K, N + 2): res += ((k * (2 * N - k + 1) / 2) - (k * (k - 1) / 2) + 1) res %= mod print(int(res)) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fc6c6f943c0e49189d8ac9a2b455467b12652b7d
6b9084d234c87d7597f97ec95808e13f599bf9a1
/models/operator/multiscale_deformable_attention/_get_torch_build_conf.py
06290f7aabf171664429380306b945bfc02fd19c
[]
no_license
LitingLin/ubiquitous-happiness
4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc
aae2d764e136ca4a36c054212b361dd7e8b22cba
refs/heads/main
2023-07-13T19:51:32.227633
2021-08-03T16:02:03
2021-08-03T16:02:03
316,664,903
1
0
null
null
null
null
UTF-8
Python
false
false
953
py
import torch from torch.utils.cpp_extension import include_paths, library_paths, CUDAExtension, COMMON_NVCC_FLAGS def _get_torch_cuda_flags(): return COMMON_NVCC_FLAGS def _get_torch_cuda_archs(): config = torch.__config__.show() configs = config.split('\n') archs = set() for conf in configs: ...
[ "linliting06@live.com" ]
linliting06@live.com
54af20a4223a7fce77f976c6063056318656c59a
0fa98dbc4d6256121b9f478a13ff2254047fb543
/12_01_typical_interview_tasks/L. Extra letter.py
3044323e3d49139edab4073c9b2c1641c929ee7f
[]
no_license
vamotest/yandex_algorithms
48d5b29cb6e2789ea8f7e8024c798851058f1d4c
a588da3d21ff95e2437818493769719600f3eaf7
refs/heads/master
2023-03-19T20:44:59.373046
2021-01-20T19:06:28
2021-01-20T19:06:28
330,421,669
3
1
null
null
null
null
UTF-8
Python
false
false
427
py
from itertools import zip_longest def define_anagrams(first, second): li = list(zip_longest(first, second)) for letter in li: if letter[0] != letter[1]: return letter[1] if __name__ == '__main__': first_word = ''.join(sorted(list(str(input())))) second_word = ''.joi...
[ "vamotest@gmail.com" ]
vamotest@gmail.com
16953af903b8aa207c099df1b969dace225c4224
40c3c3ad98e5d5b10af1cdaa5b5d2278472448a5
/tests/app/tests/test_content_panes.py
20881cc868cfd0f4365af6ba10b42a04acede327
[]
no_license
modohash/django-hstore-flattenfields
ac96a509dde799625c01cff078c830b48d479f9d
09626a638b9ef85d28fa5bfef1b040f9926bb95b
refs/heads/master
2021-01-18T16:08:59.850946
2015-05-04T23:19:00
2015-05-04T23:19:00
54,548,872
0
0
null
2016-03-23T09:54:54
2016-03-23T09:54:53
null
UTF-8
Python
false
false
3,645
py
#!/usr/bin/env python # encoding: utf-8 """ This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase from django.core.exceptions import ValidationError from dateti...
[ "luanfonceca@gmail.com" ]
luanfonceca@gmail.com
c4397cb30b808d19f39e5dc639214ad89de14d75
8832f83436809e8e918e60e5526d95add9fe8dbd
/books_app/migrations/0068_auto_20190930_1758.py
4ad159bea80bec7a1af460bd8bd499d5f456283d
[]
no_license
HCDigitalScholarship/booksofduchesses
e31e56eaba253b92a1362de5918b5b005cb27f3c
3f0e27515963c92a56714c5bada3b6a68a8665df
refs/heads/master
2022-12-09T18:41:20.019687
2021-10-25T14:58:18
2021-10-25T14:58:18
190,254,161
0
3
null
2022-12-08T05:21:54
2019-06-04T18:05:08
Python
UTF-8
Python
false
false
539
py
# Generated by Django 2.2.2 on 2019-09-30 17:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [("books_app", "0067_auto_20190927_1626")] operations = [ migrations.AlterField( model_name="dateowned", ...
[ "apjanco@gmail.com" ]
apjanco@gmail.com
cbd2c64466a8223e6f012a4117d8d62e307a34fb
f2a967dfcb768ef2e5729b1f7665740dc8f4e09c
/tti/indicators/_relative_momentum_index.py
84f4a6dd01db9e19231be93ec64dd61f5df603f8
[ "MIT" ]
permissive
Bill-Software-Engineer/trading-technical-indicators
799c44a88ee73fb33c0255cb3ff5463f9d578506
fc00008a41da54f160609343e866c72306f4962c
refs/heads/master
2023-03-24T20:13:16.088567
2021-03-24T05:50:58
2021-03-24T05:50:58
349,295,934
0
1
MIT
2021-03-20T04:31:57
2021-03-19T04:05:07
null
UTF-8
Python
false
false
6,267
py
""" Trading-Technical-Indicators (tti) python library File name: _relative_momentum_index.py Implements the Relative Momentum Index technical indicator. """ import pandas as pd from ._technical_indicator import TechnicalIndicator from ..utils.constants import TRADE_SIGNALS from ..utils.exceptions import NotEnoug...
[ "vsaveris@gmail.com" ]
vsaveris@gmail.com
f4b5f06d621a40f412a9d3abd8a0a2c8f2e1248b
26dcf8e0457156a8bde936d56a59e1099893f8c6
/tests/test_hmm.py
e97feff68370733dbcc69ffcce59a30cb789f25b
[ "MIT" ]
permissive
SilenceWinter/MicroTokenizer
fc4212fb9a324e93e707edbe130b518bd782d07a
0b617f4b107743f6c7c473a9fac9408d21c56931
refs/heads/master
2020-03-29T04:31:23.050836
2018-09-18T16:40:28
2018-09-18T16:40:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `MicroTokenizer` package.""" import pytest from MicroTokenizer.hmm import HMMTokenizer def test_persist(tmpdir): temp_path = tmpdir.mkdir("hmm") temp_path_str = str(temp_path) tokenizer = HMMTokenizer() tokenizer.train_one_line(["我", "是", "...
[ "u1mail2me@gmail.com" ]
u1mail2me@gmail.com
fc53892213fa66aece7218c6e1a0dc1a2b68968c
5c0a253bf2fb83db01abc99097871c965f4cf565
/spark/crm/PROC_A_CI_DEP_CONTRIBUTION.py
e899aff59721d52b99cbb6e4dbf84908af6f822b
[]
no_license
airuibel/python-1
3b16553ede9d069ec56efbb12a89a4de6917a447
94f387e2d406fab2128bcfffce6146da720b2ccc
refs/heads/master
2020-07-05T15:43:00.957221
2017-09-17T14:05:48
2017-09-17T14:05:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,376
py
#coding=UTF-8 from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext from pyspark.sql.types import * from datetime import date, datetime, timedelta import sys, re, os st = datetime.now() conf = SparkConf().setAppName('PROC_A_CI_DEP_CONTRIBUTION').setMaster(sys.argv[2]) sc = SparkContext(conf = conf)...
[ "cysuncn@126.com" ]
cysuncn@126.com
efce074729bc329b7d3d2b62f933c18cd1893b4b
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/executale_binaries/register-variants/cmovbeq_r64_r64.gen.vex.py
aac0087e2d26b58209d268bec75c7d8b5c9eaab4
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
import angr proj = angr.Project('cmovbeq_r64_r64.exe') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
76d09e968cf645ce2067c816a6f63d03efb99692
4920b6c12dc2427036077d38ed8fa513130418a8
/bipad_api/test/test_inline_response20059.py
7f7f5f5d6b53b4e708645271de5f31afefb61347
[]
no_license
laxmitimalsina/covid_dashboard
d51a43d3ba2ad8a9754f723383f6395c1dccdda5
ccba8a3f5dd6dbd2b28e2479bda6e581eb23805f
refs/heads/master
2023-05-29T15:07:32.524640
2021-05-03T11:15:43
2021-05-03T11:15:43
273,698,762
0
0
null
null
null
null
UTF-8
Python
false
false
948
py
# coding: utf-8 """ BIPAD API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittes...
[ "laxmitimalsina2017@gmail.com" ]
laxmitimalsina2017@gmail.com
8c0e1b2b4be9161d9d7d0227d2503c37d44d22eb
0c7d7b24a8d453fc1a9c2f27a08f3c4cfa46ec3b
/recipes/sota/2019/lm_analysis/shuffle_segments.py
f7e4b68d3a3f817fbc7488b29cbead6bad1659ba
[ "BSD-3-Clause", "MIT" ]
permissive
piEYj/wav2letter
e6ae462eeeb6a4374f8280c8fa15d8f194c60215
49fbb1392e69b5194c077df9847505ec995b4e3d
refs/heads/main
2023-09-06T01:08:48.837731
2021-11-12T14:13:41
2021-11-12T14:15:15
444,344,109
1
0
NOASSERTION
2022-01-04T08:37:19
2022-01-04T08:37:19
null
UTF-8
Python
false
false
3,394
py
import os import random import sys from multiprocessing import Pool import sox align_file = sys.argv[1] output_dir = sys.argv[2] lines = [] with open(align_file) as fin: lines = fin.readlines() N_THREADS = 40 MIN_SIL_LENGTH = 0.13 TOLERANCE = 0.04 def process(parameters): tid, n_samples = parameters ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
49f63466b6602a419c57f27b6e2d27a713646b02
56ade096db1fe376ee43d38c96b43651ee07f217
/033. Search in Rotated Sorted Array/Python/Solution.py
c1099f90447f301ab75df1e19f2814222c1d9484
[]
no_license
xiaole0310/leetcode
c08649c3f9a9b04579635ee7e768fe3378c04900
7a501cf84cfa46b677d9c9fced18deacb61de0e8
refs/heads/master
2020-03-17T05:46:41.102580
2018-04-20T13:05:32
2018-04-20T13:05:32
133,328,416
1
0
null
null
null
null
UTF-8
Python
false
false
788
py
class Solution(object): def search(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ length = len(nums) low = 0 high = length - 1 while low < high: mid = (low + high) // 2 if nums[mid] > nu...
[ "zhantong1994@163.com" ]
zhantong1994@163.com
91dcd5408203ac48530134b4c58374aad4842f14
e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6
/oslo_messaging/_drivers/zmq_driver/poller/green_poller.py
ab8f313f9fb8e6fd25990f75c2785310d39b15a9
[]
no_license
KevinKaiQian/polar-bear
46a814c746246394f76505846166673a049f12f2
61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e
refs/heads/master
2022-04-29T02:15:35.536039
2021-05-19T12:33:07
2021-05-19T12:33:07
172,068,536
2
0
null
2022-03-29T21:56:51
2019-02-22T13:11:58
Python
UTF-8
Python
false
false
2,501
py
# Copyright 2015 Mirantis, Inc. # # 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 ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
5b868fc577cd8428158cebc51ec4b35b5f9e7d80
9970ab0ad1e805f83cc4463d008ee4654cfb668e
/tags/2.01/AStyleTest/file-py/file-extract.py
342109f0b3e5c350d23ed0312153fc5378c9d14d
[]
no_license
svn2github/Artistic-Style
a464a7f6cc6bd11aec2a3452a9736e638630ecd8
6bd4db522937a182e63db96dbc095f2baae8a17a
refs/heads/master
2020-12-08T06:01:08.497124
2018-04-05T22:36:21
2018-04-05T22:36:21
67,278,407
2
2
null
null
null
null
UTF-8
Python
false
false
1,425
py
#! /usr/bin/python # Calls libextract to extract files in the TestArchives directory. # Change the global variables to the desired values. import libastyle #local directory import libextract #local directory import os import sys import time # global variables --------------------------------------------------------...
[ "jimp03@1fe3c263-5997-42ff-936f-87a7378ef0cd" ]
jimp03@1fe3c263-5997-42ff-936f-87a7378ef0cd
4304b728a6cae825d940ba9d9e818606ca8eb1b0
aaf045878465b2b26ff7ea12eb72453446cbd428
/flaskRESTful/app.py
e19033a24a3162b6c6ec4ffe77a40785473fac05
[]
no_license
mishrakeshav/REST-APIs-with-Flask-and-Python
c35a0e61c75763459227079c524eaf1dceb078f3
2b9dfdcb8da8d487713cd85cee9ee0aa3e65d974
refs/heads/master
2022-04-24T23:06:52.675441
2020-04-30T07:57:54
2020-04-30T07:57:54
257,958,388
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
from flask import Flask,request from flask_restful import Resource , Api, reqparse from flask_jwt import JWT ,jwt_required from security import authenticate,identity app = Flask(__name__) app.secret_key = "keshav" api = Api(app) jwt = JWT(app, authenticate, identity) # /auth items = [] class Item(Resource): ...
[ "mishrakeshav@users.noreply.github.com" ]
mishrakeshav@users.noreply.github.com
1d2033a62e150fe1e23310385b00a8eba8c7586f
2a7acc39c637824dd6974fa154664ef9eca4383e
/app/utils/validators.py
3734657aa887f9ffb80c401926e70d99a84f7645
[]
no_license
pigmonchu/backfiles
e2a9415902f780708928065770486c6a8ee34e15
d0e8248d2949710f56d62777fb2a57727de39302
refs/heads/master
2022-10-04T12:10:50.078244
2019-08-26T22:30:20
2019-08-26T22:30:20
204,572,276
0
0
null
2022-09-16T18:08:43
2019-08-26T22:27:30
Python
UTF-8
Python
false
false
1,117
py
import importlib from werkzeug.datastructures import MultiDict import inspect ''' Gestión de validaciones y mensajes de error ''' def validate_form(blueprint_import_path, class_name, data): m_data = MultiDict(data) module = importlib.import_module('{}.forms'.format(blueprint_import_path)) form_class ...
[ "monterdi@gmail.com" ]
monterdi@gmail.com
3b8c7c687f2e9d9835d220c82d5e677e59f7cea6
dcbe50ee6cb4dc108e71df95479d9fd6e868e4e6
/Torch/6_nn.py
990f6dd84670a000b7a0c511a2bad9919fc6d998
[]
no_license
krishnakalyan3/DeepLearning-Experiments
1854821bb630a0ce2f4dea2423350c1b303d954b
7b7d9e9570e787b162c68e2734aa6b0c6567f257
refs/heads/master
2020-07-03T16:46:09.491095
2017-07-20T03:18:44
2017-07-20T03:18:44
74,243,657
1
0
null
null
null
null
UTF-8
Python
false
false
681
py
#!/usr/bin/env python3 # https://github.com/PythonWorkshop/Intro-to-TensorFlow-and-PyTorch/blob/master/PyTorch%20Tutorial.ipynb import pandas as pd import numpy as np from sklearn.model_selection import train_test_split import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.activation...
[ "krishnakalyan3@gmail.com" ]
krishnakalyan3@gmail.com
1aa7ae250a923bee4235a9567487ed406c8f8edd
e5873fabe08bac8c298026871bc3a562e330151e
/openrasp_iast/plugin/scanner/directory_basic.py
13fdb506795d49166c2fb0b801e70926a8e1ca03
[ "Apache-2.0" ]
permissive
1u0Hun/openrasp-iast
7a93d33301fdeae8021f4742870068f2d09f62bb
8b98e4ffda52c3e04bfaa682dde219e78c87c21a
refs/heads/master
2020-11-30T13:57:55.088148
2019-12-20T06:42:08
2019-12-20T06:42:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,472
py
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ Copyright 2017-2019 Baidu Inc. 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...
[ "350905402@qq.com" ]
350905402@qq.com
5ab15084fd09e6973269b95c1650ba480596b272
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2700486_0/Python/Venia/prob.py
86e3993e498a5d987a87e9293bcae14108d3f127
[]
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
2,633
py
#from functools import lru_cache from fractions import Fraction from copy import copy def sim(n): s = {(0, 0)} for i in range(20): s.add((2*i+1, -1)) s.add((-2*i+1,-1)) d = [(s, 1)] for i in range(n-1): dd = [] for pos, P in d: i = 0 whil...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
13f1a79700d0944ac29487331e54040083749301
7d2f933ed3c54e128ecaec3a771817c4260a8458
/venv/Lib/site-packages/hamcrest/core/matcher.py
9694cdc65f3a3d50e5c962cf8660c9ebfdeb01ff
[]
no_license
danielmoreira12/BAProject
c61dfb1d0521eb5a28eef9531a00e744bfb0e26a
859f588305d826a35cc8f7d64c432f54a0a2e031
refs/heads/master
2021-01-02T07:17:39.267278
2020-02-25T22:27:43
2020-02-25T22:27:43
239,541,177
0
0
null
null
null
null
UTF-8
Python
false
false
2,663
py
from hamcrest.core.description import Description from typing import Generic, Optional, TypeVar from .selfdescribing import SelfDescribing __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" T = TypeVar("T") class Matcher(Generic[T], SelfDescribing): """A ...
[ "danielmoreira12@github.com" ]
danielmoreira12@github.com
fe086916c88a8fb986cfa09b74afb9490397ab2f
86df6f8f4f3c03cccc96459ad82bcdf3bf942492
/lintcode/majority-number.py
e759f4f141d0ff3c9823992ea18f1ff927931f25
[]
no_license
bdliyq/algorithm
369d1fd2ae3925a559ebae3fa8f5deab233daab1
e1c993a5d1531e1fb10cd3c8d686f533c9a5cbc8
refs/heads/master
2016-08-11T21:49:31.259393
2016-04-05T11:10:30
2016-04-05T11:10:30
44,576,582
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
#!/usr/bin/env python # encoding: utf-8 # Question: http://www.lintcode.com/en/problem/majority-number/ class Solution: """ @param nums: A list of integers @return: The majority number """ def majorityNumber(self, nums): # write your codeare if len(nums) == 0: return 0 ...
[ "liyongqiang01@baidu.com" ]
liyongqiang01@baidu.com
3c227d101d4c7c8c94b047534ef9453524806f5f
6e95e9b6a1fc996ebcb46c44d4ef7678f762e4f7
/others/xiangmu/Shandong/淄博.py
bea8f6c3343a4e8c8f6c56153246b4f980f88462
[ "Apache-2.0" ]
permissive
625781186/lgd_spiders
3a4d6917a01e446136e7aef4c92b9b7a1f8e498d
1c8680115beb42f4daaf6be71bf3fb14fcc2c255
refs/heads/master
2020-08-29T13:21:12.116395
2019-10-21T14:28:00
2019-10-21T14:28:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,699
py
# -*- coding: utf-8 -*- import requests import re import time from lxml import etree import datetime from common.update_mongo import Update from common.update_mongo import Update2 from common.spider_class import TongyongSpider now = datetime.datetime.now().strftime('%Y/%m/%d') city = 'zibo' class Producer(TongyongSp...
[ "lgdupup" ]
lgdupup
fbd90a1183ff5f2c498044ca317aadebbf6dab6c
2f63688febd21dc3ae6b19abfa79ad313c820154
/0063_Unique_Paths_II/try_2.py
52c31b667efe89f6f4c2c7c52a459bda0a3052c2
[]
no_license
novayo/LeetCode
cadd03587ee4ed6e35f60294070165afc1539ac8
54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7
refs/heads/master
2023-08-14T00:35:15.528520
2023-07-30T05:56:05
2023-07-30T05:56:05
200,248,146
8
1
null
2022-11-19T04:37:54
2019-08-02T14:24:19
Python
UTF-8
Python
false
false
1,051
py
class Solution: def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int: ''' 上左是石頭的則+0 ''' dp = [[0 for j in range(len(obstacleGrid[0]))] for i in range(len(obstacleGrid))] # 1th row flag = True for j in range(len(obstacleGri...
[ "f14051172@gs.ncku.edu.tw" ]
f14051172@gs.ncku.edu.tw
bd955766f2c05e3737ab33a80c4b5c543ad7629c
59f03c7528c9c806e3e25b9864db89f25dfa73c2
/tests/onegov/swissvotes/test_views_exceptions.py
968fb33a50f3a189a70f68d75e43cdb109cc258f
[ "MIT" ]
permissive
OneGov/onegov-cloud
8d8cd6d0378991ebc2333b62337246719102e723
c706b38d5b67692b4146cdf14ef24d971a32c6b8
refs/heads/master
2023-08-24T15:37:52.536958
2023-08-24T14:15:54
2023-08-24T14:15:54
189,431,418
17
4
MIT
2023-09-14T20:39:37
2019-05-30T14:47:14
Python
UTF-8
Python
false
false
442
py
from webtest import TestApp as Client def test_view_exceptions(swissvotes_app): client = Client(swissvotes_app) client.get('/locale/de_CH').follow() assert ( "Sie versuchen eine Seite zu öffnen, für die Sie nicht autorisiert " "sind" ) in client.get('/votes/update', status=403) a...
[ "denis.krienbuehl@seantis.ch" ]
denis.krienbuehl@seantis.ch
24b7be1f03ebf1b37b40a37b19178385c6947d2b
ea1ec59c934acc6dfbaa4c8e63349b2d391e9c25
/pandas-ta-quant-plot/pandas_ta_quant_plot/__init__.py
adc97cab839b9e24088969636475747502329f41
[ "MIT" ]
permissive
Allensmile/pandas-ml-quant
475c09573b47ea3d589c94644edbd85d9d1917b2
59b702307c1842b0b89b5cbf755c1296da97b00a
refs/heads/master
2023-06-19T00:24:13.263411
2021-06-19T09:30:05
2021-06-19T09:30:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
"""Augment pandas DataFrame with methods for quant analysis plotting""" __version__ = '0.2.0' from collections import namedtuple from pandas_ta_quant_plot.plots import * from pandas.core.base import PandasObject from pandas_ta_quant_plot.ta_plot_context import PlotContext _ta = getattr(PandasObject, "ta", None) if _t...
[ "kic@kic.kic" ]
kic@kic.kic
a12fa220e2127d65695380961b8a907ca2a9640b
6e9a420485b25684b178984fd90f74bbe3ab5b58
/api/vm/define/vm_define_nic.py
77484d97193ab6c5c1f3b42141c180c0d77bf09d
[ "Apache-2.0" ]
permissive
BillTheBest/esdc-ce
d367a88685548d41672c773364484ca7f82c4a26
ab71bf9dc66fb78a0de724077c02c58bc7d970ec
refs/heads/master
2021-04-26T23:34:06.535783
2018-02-25T19:19:15
2018-02-25T19:19:15
124,016,413
1
0
Apache-2.0
2018-03-06T03:41:33
2018-03-06T03:41:32
null
UTF-8
Python
false
false
4,253
py
from django.db.transaction import atomic from api import status as scode from api.utils.db import get_listitem from api.task.response import SuccessTaskResponse, FailureTaskResponse from api.vm.define.utils import is_vm_operational from api.vm.define.api_views import VmDefineBaseView from api.vm.define.serializers imp...
[ "daniel@kontsek.sk" ]
daniel@kontsek.sk
12931f85fab5e70495912647ce9e0e73a0b33b5f
7f114a1fb511b816c116d5b9e67cb998e3e23956
/PyproS42.py
2376562757fa81b9b049f4905404b79c591ba9a8
[]
no_license
Bharanij27/bharanirep
90ac34eb28deaa7ec96d042de456de71b96866d7
982133a7939c889d433c178a601441fa087293d9
refs/heads/master
2021-08-07T20:22:36.244395
2020-06-05T04:58:10
2020-06-05T04:58:10
186,580,768
0
6
null
null
null
null
UTF-8
Python
false
false
212
py
n,k=map(int,input().split()) l=list(map(int,input().split())) m=ma=-99999999999 def split(l,i): m=(max(min(l[:i]),min(l[i:]))) return m for i in range(1,n): m=split(l,i) if m>ma: ma=m print(ma)
[ "noreply@github.com" ]
Bharanij27.noreply@github.com
80e7408c473f7878fa0a47f087e8e936739924c4
e1efc8e0b0e4629dea61504fbc816c0527691bd9
/15.Tomcat/Tomcat16-Connector组件.py
394d6907603f9e207e89c25c721ef85e84967fe6
[]
no_license
xiongmengmeng/xmind-technology
2bb67a0bf92cfd660cac01f8ab3a2454423ccba5
e2fdb6987ef805a65f0a4feb52d84383853f4b77
refs/heads/main
2023-07-31T07:10:29.868120
2021-09-11T08:18:17
2021-09-11T08:18:17
307,636,242
3
1
null
null
null
null
UTF-8
Python
false
false
3,537
py
import os,sys parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0,parentdir) import xmind from xmind.core.markerref import MarkerId xmind_name="tomcat" w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind") s2=w.createSheet() s2.setTitle("Connector...
[ "xiongmengmeng@qipeipu.com" ]
xiongmengmeng@qipeipu.com
39196a1a8ee52ea5b7922cb7fe6d55035522c25f
a821e5a6e45665f7e219e3e3ed07c150219e4add
/exercicio87.py
15af26a0b52b2b4d33419be908b3021ddf0dc2b6
[]
no_license
andreplacet/exercicios_python
18a28af942eb2bb211438f0aca10d651b7324fe5
0affe524e99f7739b08fdf58e2b54c5b577c8624
refs/heads/master
2020-08-29T02:05:52.850805
2020-06-01T19:09:50
2020-06-01T19:09:50
217,887,722
1
0
null
null
null
null
UTF-8
Python
false
false
954
py
lista1 = [] lista2 = [] lista3 = [] matriz = [] somapares = somacoluna = 0 for c in range(0, 3): lista1.append(int(input(f'Digite um valor para a [linha 0 coluna {c}]: '))) matriz.append(lista1[:]) for i in range(0, 3): lista2.append(int(input(f'Digite um valor para a [linha 1 coluna {i}]: '))) matriz.append(li...
[ "andreplacet@gmail.com" ]
andreplacet@gmail.com
b0567b632314b432d96a5ec767e7e49d16a3a590
1f32af53c3f0d1cf1176e72a887135e1e5309e4b
/en/1_dqn/dqn.py
f55918bfaba1c556492ae116865e843d11dc1e8d
[ "MIT" ]
permissive
seungjaeryanlee/rainbow-ride
bff020c61fd86d03993d4f7c68d965d071753105
29b0af19f5cc3d41433a8b405e736bc49309f540
refs/heads/master
2020-03-20T23:30:51.723184
2018-06-22T04:43:45
2018-06-22T04:43:47
137,849,945
1
1
null
null
null
null
UTF-8
Python
false
false
459
py
import torch.nn as nn class DQN(nn.Module): """ A simple Deep Q-Network with fully connected layers. """ def __init__(self, input_dims, output_dims): super().__init__() self.layers = nn.Sequential( nn.Linear(input_dims, 128), nn.ReLU(), nn.Linear(12...
[ "seungjaeryanlee@gmail.com" ]
seungjaeryanlee@gmail.com
af6517f8f612bd6daa93525c115f29b30d940596
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02997/s415838912.py
f36fccc0a8389864ad1d55d8962f2354c082d9bc
[]
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
346
py
N, K = map(int, input().split()) edges = [(1, to) for to in range(2, N + 1)] M = (N - 1) * (N - 2) // 2 if K > M: print(-1) exit() for fr in range(2, N + 1): for to in range(fr + 1, N + 1): if M == K: break edges.append((fr, to)) M -= 1 print(len(edges)) for fr ,to in...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c738a11291e2651813c258b3b4ef5316c6a08b75
3076bd73c41ed665c987d99218b8a3599fa05ec2
/tests/test_hopfield_net.py
c3a7716eb7e004205ee9b22386d2acd827f3efe6
[ "Apache-2.0" ]
permissive
lantunes/cellpylib
5135a6986e68424d9ec8b09fb42421b3dcf046d1
743e936d48f8520f6f4ac652570ac7bb46414189
refs/heads/master
2023-03-07T03:31:32.380400
2023-02-21T12:34:28
2023-02-21T12:34:28
126,618,694
203
32
Apache-2.0
2023-02-15T03:40:38
2018-03-24T16:33:15
Python
UTF-8
Python
false
false
2,486
py
import unittest import cellpylib as cpl import numpy as np import os THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class TestHopfieldNet(unittest.TestCase): def test_hopfield_net(self): np.random.seed(0) # patterns for training zero = [ 0, 1, 1, 1, 0, 1, ...
[ "lantunes@gmail.com" ]
lantunes@gmail.com
ce6d34048467bbdff945b612bc3eba00b13c0baf
dd9de22427fd78910bdb6bff79b69dfb39d233d1
/accounts/urls.py
7f25807c9702aac4b0e2e9c2dae99ea84b018267
[]
no_license
sulembutproton/joinsys
a21162d9d887194d3f252fc14da8adf538bd5c30
729fd046446b9389dab3a3cca25a50ddfb173af0
refs/heads/master
2023-04-17T01:59:14.639572
2021-04-28T17:44:25
2021-04-28T17:44:25
362,556,466
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
from django.contrib.auth import views as auth_views from django.urls import path from .import views urlpatterns = [ path('register/', views.Register.as_view(), name='register'), path('login/', views.user_login, name='login'), path('logout/', auth_views.LogoutView.as_view(template_name='accounts/logout.htm...
[ "sulembut@protonmail.com" ]
sulembut@protonmail.com
cba9ce61d1502a557bd65c9c39a8c4939f68e3e6
e972dc486e62152981177f85b5f9cff919ac0867
/et_wiki/wiki_comp.py
a9e8c24fbdb4fa2fc5c2dca405063eee2b8bf36a
[]
no_license
yeongsunpark/cute
d81b9b03f747f65bed742b10b2f9a59f69efea96
d69f918f9a1f1d6db70bc62272fc0ce582d7bf50
refs/heads/master
2020-03-27T12:43:41.728918
2019-04-29T04:41:47
2019-04-29T04:41:47
146,564,948
0
2
null
2018-11-06T07:45:59
2018-08-29T07:52:20
Python
UTF-8
Python
false
false
249
py
f2 = open("new_chunk.txt", "w") with open("/data1/we_kor/kowiki_pages_170620_sent_chunk_10.tsv", "r") as f: for line in f: item = line.split("\t") title = item[1] f2.write(title) f2.write("\n") f2.close()
[ "ylunar@naver.com" ]
ylunar@naver.com
854c291b441bfdbf6c527767955aed060484ef1c
a5d22c99e781270317078f8980c934bcc71e6e8b
/neodroidvision/detection/single_stage/ssd/bounding_boxes/__init__.py
39a56c4c514c00d0e79606e1f538b09770dd807b
[ "Apache-2.0" ]
permissive
aivclab/vision
dda3b30648b01c2639d64a016b8dbcfccb87b27f
06839b08d8e8f274c02a6bcd31bf1b32d3dc04e4
refs/heads/master
2023-08-21T22:35:10.114394
2022-11-02T10:14:08
2022-11-02T10:14:08
172,566,233
1
3
Apache-2.0
2023-08-16T05:11:30
2019-02-25T19:00:57
Python
UTF-8
Python
false
false
265
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 05/03/2020 """ from .conversion import * from .ssd_priors import * from .ssd_transforms import * from .tensor_metrics import *
[ "christian.heider@alexandra.dk" ]
christian.heider@alexandra.dk
a9045e150a1a97f2d4d88e005f75da3043df176e
f2e97b979c648b3b121ff0f8c37cf6ae998fa513
/python/compare_thread_asyncio.py
8345af6a5fd57ddce861f2e20365a413f2ddb79c
[]
no_license
LeonKennedy/LearningByLanguage
64564271a323809ab27bd09b2d142a485d013ce2
51d44f54b13c2e0202f9986f3556ad7f93e55e7c
refs/heads/master
2022-11-10T22:46:07.917794
2022-11-08T10:48:52
2022-11-08T10:48:52
52,009,288
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
#!/usr/bin/env python #-*- coding: utf-8 -*- # @Filename: spinner_thread.py # @Author: olenji - lionhe0119@hotmail.com # @Description: 多线程和异步的对比 # @Create: 2018-12-10 10:29:31 # @Last Modified: 2018-12-10 10:29:31 import threading, asyncio import itertools, time, sys, pdb # -------------- threading -------------- ...
[ "lionhe0119@hotmail.com" ]
lionhe0119@hotmail.com
370bba158aa6b9ed78e5e53ff1ec9aece224f346
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03612/s889391086.py
70896f9cae948f4c33f1f7fbb4659992722e6cbd
[]
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
214
py
n = int(input()) *p, = map(int, input().split()) q = [True if p[i] != i+1 else False for i in range(n)] + [True] ans = 0 for i in range(n): if not q[i]: ans += 1 q[i] = q[i+1] = True print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com