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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4bbfa20fd19cd5b5194cd16b2af4adc22c20a60d | ded13e921c8365c6113911a5834969ec3d33f989 | /082/Remove Duplicates from Sorted List II.py | 2dd27f6dcafbf95d6357d10e5156dc9fc2abbec7 | [] | no_license | ArrayZoneYour/LeetCode | b7b785ef0907640623e5ab8eec1b8b0a9d0024d8 | d09f56d4fef859ca4749dc753d869828f5de901f | refs/heads/master | 2021-04-26T23:03:10.026205 | 2018-05-09T15:49:08 | 2018-05-09T15:49:08 | 123,922,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | # /usr/bin/python
# coding: utf-8
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
Given 1->2->3->3->4->4->5, r... | [
"hustliyidong@gmail.com"
] | hustliyidong@gmail.com |
1ae02112a6b34c47b25fc53f5eeae25ccc13eca9 | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/071_Get_Movie_Summary/GetMovieSummary.py | a84b1602f2c2ed7a0ca49bbc1cb1d69b1c6bb938 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # GetMovieSummary.py
# Simple app using TheMovieDb.org to retrieve movie information
# pip install tmdbsimple
#
# 2020-07-15 PV
# 2023-01-03 PV Added .mp4 suffix
import os
import tmdbsimple as tmdb # type: ignore
from typing import Iterable
# Chemin complet de tous les fichiers à partir d'une racin... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
93df35b7e5445736b838d299bc73a4b524517d1e | 8ab6330e149fb4bcd303f3ca12b3e10bb08eda3e | /RPA-python/rpa_basic/excel/9_move.py | 92be2254f0d09f796407a904a104807222dc4477 | [] | no_license | jongin1004/python | 73e72b9187a0a707777e1474f5bb48f33a603e8f | 997e6bf59c71943d65447d11729a225b8e323a16 | refs/heads/main | 2023-08-05T02:44:01.673614 | 2023-08-02T07:51:56 | 2023-08-02T07:51:56 | 300,539,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from openpyxl import load_workbook
wb = load_workbook('sample.xlsx')
ws = wb.active
# 번호, 영어, 수학 -> 번호, 국어, 영어, 수학
# 이동하려는 범위의 값을 같은행(rows=0)에 열만 1칸 오른쪽(cols=1)으로 이동하도록
# 값을
# ws.move_range("B1:C11", rows=0, cols=1)
# ws['B1'].value = '국어'
# -는 반대 방향으로 이동
ws.move_range("C1:C11", rows=5, cols=-1)
wb.save('sample_... | [
"bill1224@naver.com"
] | bill1224@naver.com |
b20d1fbac2a2d855a426c601759521a07a9efb5c | 88620a5d4526493112c157cd7a80b160e794f956 | /testgames.py | 24bae21126ca311af9db144921e21f6d2c8abd0a | [] | no_license | sweettea/python-airmash | 6da7b225642ca188e9a3f0e33895bf91de286c4d | 3640fc96d46cce5360b4a7a866eccabea3616de6 | refs/heads/master | 2021-05-14T18:40:00.661754 | 2018-01-07T02:38:09 | 2018-01-07T02:38:09 | 116,082,157 | 0 | 1 | null | 2018-01-03T02:39:24 | 2018-01-03T02:39:24 | null | UTF-8 | Python | false | false | 441 | py | from airmash import games
url = games.get_url('eu', 'ffa1')
print("Game URL: {}".format(url))
data = games.get_data()
for region_id in data['regions']:
region = data['regions'][region_id]
print('\nRegion: {} ({})'.format(region['name'], region_id))
for game_id in region['games']:
game = region['ga... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
6f5fc2de343a2b0e2c06629972e900ea90911b5c | fda201d7cca34e216a17d97665c8457c72e66cb2 | /voting/tests/factories.py | effa73194a92f887e852dba761788d9759e92dba | [
"Apache-2.0"
] | permissive | SmartElect/SmartElect | 94ab192beb32320e9ae8ae222f90ee531037c1c6 | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | refs/heads/develop | 2020-12-26T04:04:42.753741 | 2019-07-17T17:08:25 | 2019-07-17T17:08:25 | 44,687,036 | 24 | 12 | Apache-2.0 | 2020-06-06T07:16:48 | 2015-10-21T15:47:07 | Python | UTF-8 | Python | false | false | 1,479 | py | import random
from datetime import timedelta
from factory import DjangoModelFactory, SubFactory, Sequence
from factory.declarations import LazyAttribute
from factory.fuzzy import FuzzyDateTime
from django.utils.timezone import now
from voting.models import Ballot, Candidate, Election, RegistrationPeriod
start_dt =... | [
"vinod@kurup.com"
] | vinod@kurup.com |
d428a0c2923c810ba7fe622e0a9c3497156c3348 | 2979d177a9388b25a84179127a06728b44955268 | /First-Year/CA117-Labs/Lab3/reversecomp_0311.py | 597ac50e665839a62aba123af4dcd35b3601a859 | [] | no_license | BrendanSimms8898/Python | ccb2b8284aa4e187ab89d4fc34b7fe7a980950cc | 920c39fe02a26e7b131f299d5d082d13021df78b | refs/heads/master | 2023-08-16T00:58:28.742295 | 2021-10-07T12:42:14 | 2021-10-07T12:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python3
import sys
def revcom(words):
return([word for word in words if len(word) >= 5 and word[::-1] in words])
def main():
words = [word.strip() for word in sys.stdin]
print(revcom(words))
if __name__ == '__main__':
main()
| [
"brendan.simms3@mail.dcu.ie"
] | brendan.simms3@mail.dcu.ie |
daf1e49afe7cc6634eb7d0c2bc13eb678c4fa7a3 | 07527179eef5debf8932e6f8ba52742fb078c8ab | /styleguide_example/users/apis.py | 56c2e717e136029ddcef47ba199949afd095e169 | [
"MIT"
] | permissive | brunofvpp/Styleguide-Example | 5389c0ca757c2e3d0e836f3e0b3457bc4ba9960d | 0514a7dd534b1eea2a0baa5e29d05a51ff8bc41c | refs/heads/master | 2023-08-15T04:23:09.642185 | 2021-10-04T09:38:09 | 2021-10-04T09:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | from rest_framework.views import APIView
from rest_framework import serializers
from styleguide_example.api.mixins import ApiErrorsMixin
from styleguide_example.api.pagination import get_paginated_response, LimitOffsetPagination
from styleguide_example.users.selectors import user_list
from styleguide_example.users.mo... | [
"radorado@hacksoft.io"
] | radorado@hacksoft.io |
cc62bcc7205e8c86cefdb8329f467b67aa8ad039 | 9545652800884f0e54fe6595d8634c29ea4827a2 | /模拟面试/leetCode_168_串联字符串的最大长度.py | 4d63432852efd76698194bbf3a2a16c37ecacc49 | [] | no_license | challeger/leetCode | 662d9f600a40fd8970568679656f6911a6fdfb05 | d75c35b6f8ab33c158de7fa977ab0b16dac4fc25 | refs/heads/master | 2023-01-13T07:34:42.464959 | 2020-11-13T02:40:31 | 2020-11-13T02:40:31 | 286,426,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """
day: 2020-09-14
url: https://leetcode-cn.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/
题目名: 串联字符串的最大长度
给定一个字符串数组 arr,字符串 s 是将 arr 某一子序列字符串连接所得的字符串
如果 s 中的每一个字符都只出现过一次,那么它就是一个可行解。
请返回所有可行解 s 中最长长度
示例:
输入:arr = ["un","iq","ue"]
输出:4
思路:
深度遍历,判断每一种可能性.
"""
from typing import... | [
"799613500@qq.com"
] | 799613500@qq.com |
054c3c33e78838f6a9ba28c44196908020f21232 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s866916139.py | 1d67b2a68376143ed1bd7e8e9e1004056e4ac21c | [] | 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 | 211 | py | '''
参考
https://qiita.com/u2dayo/items/98917c94c89c77b9b3a1#c%E5%95%8F%E9%A1%8Cubiquity
'''
MOD = 10 ** 9 + 7
N = int(input())
ans = pow(10, N)
ans -= 2 * pow(9, N)
ans += pow(8, N)
ans %= MOD
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34a096c61f612a6449607b8e24560f2e5a7200d2 | 93a7f579adc1882939a6ace69deefa4127c7c3cb | /code/chp12-scraping/selenium_form_submit.py | 5bd9167669e44eee13e7268d87a0dd337b1c45aa | [] | no_license | tschoi6712/dataWrangling | 251060bfc6c9075042d649e59a17662e0c92545c | 28df17afc706bb5ab3786d144615eb80957495b8 | refs/heads/master | 2022-12-08T17:09:56.194795 | 2019-09-24T07:19:48 | 2019-09-24T07:19:48 | 210,534,336 | 0 | 0 | null | 2022-12-07T23:33:32 | 2019-09-24T07:01:45 | HTML | UTF-8 | Python | false | false | 698 | py | from selenium import webdriver
from time import sleep
#browser = webdriver.Firefox()
browser = webdriver.Chrome('C:/chromedriver/chromedriver.exe')
browser.get('http://google.com')
inputs = browser.find_elements_by_css_selector('form input')
for i in inputs:
if i.is_displayed():
search_bar = i
br... | [
"tschoi6712@gmail.com"
] | tschoi6712@gmail.com |
2359b782828f9d49623622307e680a93981e9e5f | b66c3ec94db4f6ced5d7fb3099c7af1227ea8c02 | /unit/test_zuoye1_2.py | c7bebbd30ec3ead23ed23d4c512451b5191ce0d3 | [] | no_license | moshang1003/hogwartsSDET11 | 0c6b6a0bc7caedaade17b9b39607cefdf4fde5e4 | e0eb30826a8f23b08c964c805dfe2cd5ae503826 | refs/heads/master | 2021-03-29T09:02:47.045166 | 2020-03-21T10:46:16 | 2020-03-21T10:46:16 | 247,939,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | import os
import time
import allure
import pytest
# 能够正常返回结果的类似整数测试数据,数据格式(预期值,a,b,标题)
data_int = [
(5, 10, 2, '正常整数'),
(1024, 4294967296, 4194304, '大数值整数'),
(-6.25, -25, 4, '含负数整数'),
(0, 0, 999999, '被除数为0整数'),
(1.25 - 0.25j, 3 + 2j, 2 + 2j, '复数数据')
]
# 能够正常返回结果的类似浮点数测试数据,数据格式(预期值,a,b,精度,标题)
data_... | [
"you@example.com"
] | you@example.com |
9ffd2532080f8ef3fdc3d8345d8fdf308689efd5 | 0e8d49afd0e35510d8fa6901cf216896604240d8 | /lib/pyfrc/tests/docstring_test.py | 02ef66ff67747fdf692f6f5d0fb08d2fa37ddd6b | [
"MIT"
] | permissive | ThunderDogs5613/pyfrc | 3878a3d887d7adcb957128333ee71fc874c56f2b | d8e76a9284690f71ea7fab7d2aa9022cb6eec27d | refs/heads/master | 2021-08-29T14:21:13.124227 | 2017-12-04T05:46:40 | 2017-12-04T05:46:40 | 114,410,477 | 1 | 0 | null | 2017-12-15T20:55:31 | 2017-12-15T20:55:30 | null | UTF-8 | Python | false | false | 4,104 | py |
import inspect
import os
import re
import sys
# if you want to be really pedantic, enforce sphinx docstrings. Ha.
pedantic_docstrings = True
# regex to use to detect the sphinx docstrings
param_re = re.compile("^:param (\S+?):\s*(.+)$")
def ignore_object(o, robot_path):
'''Returns true if the object can be ... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
712cbef7c9caa13001d11892e7ebfa5ca34642d5 | af3e249753fbf04ce10a01e4dbeab549cb4ae34d | /oscar/apps/catalogue/migrations/0014_auto_20181115_1953.py | fb912bfd712eb0dc972432ad7a40d44467e3d751 | [] | no_license | rwozniak72/sklep_oscar_test | 79588b57470c9245324cc5396aa472192953aeda | fb410dc542e6cb4deaf870b3e7d5d22ca794dc29 | refs/heads/master | 2020-08-12T04:55:25.084998 | 2019-10-16T21:14:08 | 2019-10-16T21:14:08 | 214,692,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Generated by Django 2.0.7 on 2018-11-15 19:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0013_auto_20170821_1548'),
]
operations = [
migrations.AlterField(
model_name='product',
... | [
"rwozniak.esselte@gmail.com"
] | rwozniak.esselte@gmail.com |
22fc07b80e8a0195b0e11cd601c09efe7a51bedf | 30b98382e8621ec45bc52b8f69a3ca6285e83a6a | /python/1-GeneticAlgorithm/GA_on_Knapsack_problem.py | 94e532ea3dba37eeaa81a29e5124a564d4f03e07 | [] | no_license | JG-cmd/algrithm | 404c2d7f0c7ab677ae3f4913ffbd57370627366f | 93d8ebc7074e5411f281b1882d92d5f11bcbb652 | refs/heads/master | 2023-03-15T19:24:07.025977 | 2020-02-15T17:20:06 | 2020-02-15T17:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # encoding=utf-8
#####
# 遗传算法用于背包问题
# Python 3.6
# http://www.myzaker.com/article/59855a9c1bc8e0cf58000015/
#####
import os
import random
from copy import deepcopy
# 种群
class GAType(object):
def __init__(self, obj_cnt):
# 个体基因
self.gene = [0 for _ in range(0, obj_cnt)]
# 个体适应度
sel... | [
"zhoutong@apusapps.com"
] | zhoutong@apusapps.com |
45c0af97d21af7351b881ee9681d2dc86db4a4c9 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /monai/handlers/lr_schedule_handler.py | 3b300537b273be71ed40e34dc2b2f45a984dd082 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 3,437 | py | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
7ea2028e24f5008ab25e293b157929cc4359f7a9 | 2567e10b9c713b0a6064147885db9628de4fca30 | /subdomain.py | a148b45749aa95eb47603ed03c443079d251ff9a | [] | no_license | Gamerited/subpyforce | 759ea42b37532ddeecbcb76020fb0fd49b02abfa | 5cc1ddd6a6d200c3a4b40b604b80317c24a29ac8 | refs/heads/master | 2022-11-13T05:29:52.809233 | 2020-06-26T07:16:54 | 2020-06-26T07:16:54 | 275,091,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | import requests
from threading import Thread
from queue import Queue
from colored import fg, bg, attr
x = Queue() #defining x to hold the queue for subdominas
def subs(domain):
global x
while True:
sdomain = x.get()
location = f"http://{sdomain}.{domain}"
try:
requests.get... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
03dfadc9b08f7a78c163125f7724ce3c71849df2 | 43cb8b3e0a730e2a24e90c430b3399129541f328 | /2. django-models/example/migrations/0001_initial.py | 6e5f4a85a6c212fef6b7fc8649bf06b283b16b30 | [] | no_license | josancamon19/django-studies | 817c2b17b3c7c0d8fddd9a8bf938eddaa56e0019 | 875d08fc615bdc86ec8075e665aeb8a135f83efb | refs/heads/master | 2020-09-23T10:50:19.658173 | 2019-12-12T13:29:20 | 2019-12-12T13:29:20 | 225,477,236 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # Generated by Django 3.0 on 2019-12-03 04:26
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"joan.santiago.cabezas@gmail.com"
] | joan.santiago.cabezas@gmail.com |
2767f917d3fa9e9be187ea894b815bd79dc4b39d | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /main/migrations/0010_add_metric_group_20160225_2311.py | 6353404be3d139d5fdd25fa4257e8756ae3c7861 | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 4,661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def check_db(apps, schema_editor):
GoalMetric = apps.get_model("main", "GoalMetric")
Portfolio = apps.get_model("main", "Portfolio")
PortfolioItem = apps.get_model("main", "PortfolioItem")
db_alia... | [
"peterroth0612@gmail.com"
] | peterroth0612@gmail.com |
f4f958de1ba2e127ee2c19421aa94948a44de570 | 9ebc9bba7577c958cc83bf52573303404ea3c7f1 | /mycasa_scripts_active/scripts_ts08_ngc3110/scripts_ts08_ngc3110_old/mypaper99_figures/mypaper99_fig12_oao_vla.py | 6b95bfef4f1994e038b1895c41e64fb00c564bf3 | [] | no_license | toshikisaito1005/mycasa_scripts | 3c3d8942d492ea5b5d28bfe7348764caea857549 | 6367ce6c28e0fe6f98e3adae9823843ba7742da1 | refs/heads/master | 2021-08-10T23:02:38.690492 | 2020-10-01T20:10:00 | 2020-10-01T20:10:00 | 225,368,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | import os
import re
import sys
import glob
import scipy
sys.path.append(os.getcwd() + "/../../")
import mycasaimaging_tools as myim
dir_data = "../../../ngc3110/ana/data_nyquist/"
ra_center = "10:04:02.090"
dec_center = "-6.28.29.604"
xlim = [-30, 30]
ylim = [30, -30]
value = None
done = glob.glob(dir_data + "../ep... | [
"toshikisaito1005@gmail.com"
] | toshikisaito1005@gmail.com |
9605c4c35f4cd3538b731010d656254dbc417ebb | 180e1e947f3f824cb2c466f51900aa12a9428e1c | /pattern7/simple_smart_home/src/Service.py | f0f3be546dcd0e68c212e1d6e8019ec7fe1e3bcf | [
"MIT"
] | permissive | icexmoon/design-pattern-with-python | 216f43a63dc87ef28a12d5a9a915bf0df3b64f50 | bb897e886fe52bb620db0edc6ad9d2e5ecb067af | refs/heads/main | 2023-06-15T11:54:19.357798 | 2021-07-21T08:46:16 | 2021-07-21T08:46:16 | 376,543,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #######################################################
#
# Service.py
# Python implementation of the Class Service
# Generated by Enterprise Architect
# Created on: 01-7��-2021 11:07:50
# Original author: 70748
#
#######################################################
from abc import ABC, abstractmethod
class S... | [
"icexmoon@qq.com"
] | icexmoon@qq.com |
ede3854aea68816b248a134c73f8b2aa365b8327 | e8bacf4e4443ea2b8459bf7975d1ff315746cc61 | /.venv/lib/python3.8/site-packages/pygments/lexers/ecl.py | 2aba635002b5d723c1eaa4eaa21f90ef9f3eec9e | [
"Apache-2.0"
] | permissive | WhiteBuffaloTribe/Dragon-Token | 657589873de5a62be858f152808c5bc2edd1fd56 | d9b4d54268e03de1987522a779ed805137e9468f | refs/heads/main | 2023-07-11T06:13:33.525775 | 2021-08-20T21:52:05 | 2021-08-20T21:52:05 | 398,401,607 | 0 | 0 | Apache-2.0 | 2021-08-20T21:13:26 | 2021-08-20T21:13:26 | null | UTF-8 | Python | false | false | 6,270 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.ecl
~~~~~~~~~~~~~~~~~~~
Lexers for the ECL language.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, bygroups, words
from pygments.... | [
"noreply@github.com"
] | WhiteBuffaloTribe.noreply@github.com |
35a4db3609ff41fec26d012ebfd1b23d77e6693a | 3bd8c98c260a783235bb9ab30bfcd645434bfeb0 | /custom_user/migrations/0001_initial.py | d2859f5c2f4b21901f0a48aefa633945a2c7f4c7 | [] | no_license | utkbansal/gharonda | 7006320e86afa5f892ee53c2c588f8e2489d3038 | a183ed542639d044130196ccf32ae83911fbe130 | refs/heads/master | 2021-01-10T02:09:45.159143 | 2015-09-26T08:06:55 | 2015-09-26T08:06:55 | 38,991,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"bansalutkarsh3@gmail.com"
] | bansalutkarsh3@gmail.com |
32cdf1d579b17b1eb5c709ee08b58ddabea33509 | 331a072232cadac7ee40f139be010502e2048c54 | /test/integration_test/tools/lib/ofp/ofp_meter_stats_reply.py | a54325424c949cfedc4564ed7794fa4438d62ffe | [
"Apache-2.0"
] | permissive | zewei/lagopus | ab3790c561ed00f5a7af5da2e18543600e84b886 | 98bfe2f007729191b91466270bc82e1288c2e7c3 | refs/heads/master | 2021-01-22T16:00:25.312867 | 2016-02-11T14:40:33 | 2016-02-11T14:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | import os
import sys
import copy
import logging
from checker import *
from ofp import register_ofp_creators
from ofp import OfpBase
from ofp_meter_stats import SCE_METER_STATS
from ofp_meter_stats import OfpMeterStatsCreator
# YAML:
# meter_stats_reply:
# flags: 0
# body:
# - meter_stats:
# meter_id: 0... | [
"hibi.tomoya@lab.ntt.co.jp"
] | hibi.tomoya@lab.ntt.co.jp |
a98e88df142505b55c6660fa7b7217ee02afd1bd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2840/60793/261082.py | 2efd81729769b2a2f3cb0be53ea8f9c20c7524ef | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | def lucky_num_count(num: int) -> int:
count = 0
num_ls = [int(x) for x in str(num)]
for i in num_ls:
if i == 4 or 7:
count += 1
return count
k = list(map(int, input().split(" ")))[1]
ls = list(map(int, input().split(" ")))
result = 0
for a in ls:
if lucky_num_count(a) <= k:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
016e01530920eee745ba36888f79657ff27cb21d | 1f8812be38ff5dfc2bf8488e757077ebae1791be | /apps/askfm/migrations/0004_question_anonymous.py | 1478e6682af18fbd9cfb3e792902816f02d557ee | [
"MIT"
] | permissive | Morsa11/AskFmClone | d51e28a2568a2678af488fcbda63c2b1a23943e3 | 50ded5126926989627b7aa0fb445da5a8a4a5d68 | refs/heads/master | 2020-04-25T21:46:03.899930 | 2016-12-13T07:51:57 | 2016-12-13T07:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('askfm', '0003_auto_20160823_0038'),
]
operations = [
migrations.AddField(
model_name='question',
nam... | [
"shakib609@gmail.com"
] | shakib609@gmail.com |
9398a3090703eb99a86009ee5f9c25b5465dcd51 | 209aae9f40657d48461bed5e081c4f235f86090a | /2019/day2-2.py | 6027822c550d9b2f5a284bd7e34efa848f918fef | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py |
import copy
f = open('day2-1_input.txt')
# f = open('day2-1_debug.txt')
text = f.readlines()
f.close()
program = [int(i) for i in text[0].strip().split(',')]
target = 19690720
P = copy.deepcopy(program)
for noun in range(100):
for verb in range(100):
program = copy.deepcopy(P)
program[1] = noun... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
ab23504080ede563743c2867277a27dba9d1b2c4 | 065acd70109d206c4021954e68c960a631a6c5e3 | /shot_detector/filters/dsl/filter_condition_features.py | 0f001a19c2e2cb1545711dbabebd2c822dfea2c6 | [] | permissive | w495/python-video-shot-detector | bf2e3cc8175687c73cd01cf89441efc349f58d4d | 617ff45c9c3c96bbd9a975aef15f1b2697282b9c | refs/heads/master | 2022-12-12T02:29:24.771610 | 2017-05-15T00:38:22 | 2017-05-15T00:38:22 | 37,352,923 | 20 | 3 | BSD-3-Clause | 2022-11-22T01:15:45 | 2015-06-13T01:33:27 | Python | UTF-8 | Python | false | false | 1,779 | py | # -*- coding: utf8 -*-
"""
This is part of shot detector.
Produced by w495 at 2017.05.04 04:18:27
"""
from __future__ import absolute_import, division, print_function
import logging
from shot_detector.filters.base.base_plain_filter import BasePlainFilter
class FilterConditionFeatures(BasePlainFilter):
... | [
"w@w-495.ru"
] | w@w-495.ru |
374f2018883157cf160b2f2a8718c53e847003ed | 52151d0ae89622ffd5dcecdb626feb1f44e53761 | /lists/views.py | dfd1e1823872187eff8e4f38334b68962bfe4e13 | [] | no_license | jms7446/python-tdd | e77ef943fc50c0e8f9f6adb89cf0d2b47b022eb7 | 0fe47ecc0c66d302d361af39b7dc84f4915a411e | refs/heads/master | 2022-05-11T01:19:47.230300 | 2019-05-26T15:21:36 | 2019-05-26T15:21:36 | 95,457,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | from django.shortcuts import render, redirect
from django.http import HttpRequest
from django.core.exceptions import ValidationError
from lists.models import Item, List
from lists.forms import ItemForm, ExistingListItemForm
def home_page(request: HttpRequest):
return render(request, 'home.html', context={'form':... | [
"jms7446@gmail.com"
] | jms7446@gmail.com |
c4f62f947dcc44df833367e426cdf7e6301a8eb5 | af7bc5841fd980c09da27c69dbd0cee3a9eb402a | /shop/migrations/0016_auto_20201117_2137.py | 57c8594ed7da9785c2eafce2f33406abeeea1bf4 | [] | no_license | homutovan/Django-diplom | 35c78f39f5fcdfeec7005e039242c7f4e6b19cef | 72f9f2dd49d2c760cee8cfe2609b278f8688cacc | refs/heads/master | 2023-01-14T10:54:22.498027 | 2020-11-20T20:51:48 | 2020-11-20T20:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.2.10 on 2020-11-17 21:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0015_auto_20201116_2341'),
]
operations = [
migrations.AlterField(
model_name='order',
name='amount_goods',... | [
"Smikhalcv@yandex.ru"
] | Smikhalcv@yandex.ru |
f3201f180930a559c2e0b5616789f4d32b47e9f5 | 1032ebbc585d0f9de33247ba6f30e2ffc8916aee | /slidescript/antlr3/dfa.py | bd923fbc85c5fca9c9724e0ea0ba9ebfffb724de | [] | no_license | mdornseif/Slidescript | 98db95cd55bc9838836b786cca1a4db18bb62375 | 60cc24049b75222edd4046afa08f6d1252709b33 | refs/heads/master | 2021-12-29T17:44:54.845035 | 2010-04-12T09:58:54 | 2010-04-12T09:58:54 | 544,207 | 0 | 0 | null | 2021-12-17T19:45:45 | 2010-03-03T08:02:10 | Python | UTF-8 | Python | false | false | 7,655 | py | """ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | [
"md@hudora.de"
] | md@hudora.de |
274b0189eedce0785051ebff12043aba0b2e200d | 80593bc3dd02e80381b801f96820b28e82d9641c | /lib/deprecated/softphone2.py | c7616fd09893b6e457ce124a6636d965e353d5e8 | [] | no_license | mccrorey48/mtaf_private | 39045c1a4b5288b9b9340e29b419590c3beba6bf | 0c65aaedca5189a377a78776f52773eac5645bfa | refs/heads/master | 2023-04-11T08:22:47.455990 | 2018-04-30T18:20:14 | 2018-04-30T18:20:14 | 105,019,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,833 | py | # softphone class that uses simple_pj
import random
import re
from time import time, sleep
import lib.logging_esi as logging_esi
from lib.wrappers import Trace
import lib.softphone.simple_pj as pj
from lib.softphone.wav_audio import create_wav_file
from lib.user_exception import UserException as Ux, UserTimeoutExcept... | [
"mmccrorey@esi-estech.com"
] | mmccrorey@esi-estech.com |
bda426d73a162db938d51aa0011a0c12b47e5d89 | 97caa124ffa5da9819c39a16c734165176d90349 | /projects/ideas/api/nba/nba_players.py | adde586a9f8bcb7246108819c3a5de18ab7919ce | [
"Apache-2.0"
] | permissive | YAtOff/python0 | dd684731065321fd52d475fd2b2105db59f5c19c | b5af5004131d64dd52d42746eddb72b6c43a13c7 | refs/heads/master | 2021-01-18T21:19:11.990434 | 2019-05-29T20:14:23 | 2019-05-29T20:14:23 | 44,601,010 | 6 | 7 | Apache-2.0 | 2019-10-31T22:45:21 | 2015-10-20T11:13:11 | Jupyter Notebook | UTF-8 | Python | false | false | 715 | py | """
NBA API
https://pypi.org/project/nba-api/
Преди да започнете инсталирайте:
pip install nba_api
https://github.com/swar/nba_api
"""
from nba_api.stats.static import players
from nba_api.stats.endpoints import commonplayerinfo
name = ""
while name != "exit":
name = input("Player name: ")
result = players... | [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
2564ea2977644b8d4ec91ec350761e03c7cfff6f | f9e3a0fb511470561d3d94bc984dafaee06000cb | /9780596009250/PP3E-Examples-1.2/Examples/PP3E/System/Filetools/site-forward.py | 43c772418aad4c045863a31bed676eaa7d153913 | [
"LicenseRef-scancode-oreilly-notice"
] | permissive | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | ###########################################################################
# Create forward link pages for relocating a web site.
# Generates one page for every existing site file; upload the generated
# files to your old web site. Performance note: the first 2 str.replace
# calls could be moved out of the for lo... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
ef153fa9651dace4d24ab5d1475eee7afaf808cb | 6cd690fb01e100f440289ea8fe7342bb58d37e78 | /tests/elemental/combat_elemental_tests.py | 1e175b4d862b30ee622ca4db805356341ff523d9 | [] | no_license | Hammerlord/Monbot | 6db8308ae492d7cfbb6f1bdff909105129924269 | fde8177d9170dddd958a89068a560008259d6e24 | refs/heads/master | 2020-03-07T16:43:20.019123 | 2019-08-29T03:08:33 | 2019-08-29T03:08:33 | 127,591,188 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,556 | py | import unittest
from src.elemental.ability.abilities.wait import Wait
from src.elemental.ability.ability import Ability
from src.elemental.combat_elemental import CombatElemental
from src.elemental.elemental import Elemental
from tests.elemental.elemental_builder import CombatElementalBuilder, ElementalBuilder
class... | [
"nepharus@gmail.com"
] | nepharus@gmail.com |
30a1e31371ef290579d9c7c19f8771ad60bf07c6 | 6e631bd7f138abb9f7eb0d936a8615287248b697 | /Home/DaysBetween.py | 76d67e4c8f9b064e75254e0764b99006c53ced5b | [] | no_license | ankiwoong/Check_Io | 24494390a851fad91f173c5e81a4eedfad7cfe6e | f417dbf1c1cce316ca25d51d645e228e7b03bf9c | refs/heads/master | 2022-06-03T14:59:04.571112 | 2020-04-25T11:29:55 | 2020-04-25T11:29:55 | 254,514,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | '''
Days Between
We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter.
How old are you in a number of days? It's easy to calculate - just subtract your birthday from today. We could make this a real ch... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
de53426f1c73e86d0c2bf22d218d124d89f7947c | f9033131dc4d66ede2c5c22fcaa4a0be5b682152 | /BinaryTrees/Tasks/eolymp(3326).py | 504d4e87e8e265aa065e0b26f1c53ee7288a6ca3 | [] | no_license | Invalid-coder/Data-Structures-and-algorithms | 9bd755ce3d4eb11e605480db53302096c9874364 | 42c6eb8656e85b76f1c0043dcddc9c526ae12ba1 | refs/heads/main | 2023-04-29T08:40:34.661184 | 2021-05-19T10:57:37 | 2021-05-19T10:57:37 | 301,458,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | class BinaryTree:
def __init__(self, key):
self.key = key
self.leftChild = None
self.rightChild = None
def hasLeft(self):
return not self.leftChild is None
def hasRight(self):
return not self.rightChild is None
def setLeft(self, key):
self.leftChild = B... | [
"gusevvovik@gmail.com"
] | gusevvovik@gmail.com |
60e71440b4fa46560d11572b5594307fa09e7b55 | e7af5a3e76e674be0a85628067fa494348d45123 | /Python-for-Finance-Second-Edition-master/Chapter12/c12_28_basic_income_best.py | 360b70b1ba061b5ab73780ecb6b715663f4dfd9d | [
"MIT"
] | permissive | SeyedShobeiri/Work | 8321ead6f11de8297fa18d70a450602f700f26fb | f758e758106fbd53236a7fadae42e4ec6a4e8244 | refs/heads/master | 2022-07-25T02:33:25.852521 | 2020-05-17T16:11:27 | 2020-05-17T16:11:27 | 264,706,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py |
"""
Name : c12_28_basic_income_best.py
Book : Python for Finance (2nd ed.)
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 6/6/2017
email : yany@canisius.edu
paulyxy@hotmail.com
original : https://gist.github.com/stucchio/7447067
"""
from pylab import *
from sci... | [
"shobeiri@math.uh.edu"
] | shobeiri@math.uh.edu |
1cf9bc616d68317e6e54b595f5fa04659ec0aa69 | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2/kazoo/client.pyi | 683596f0fc6c615216bdead3db0ebdda388f94a5 | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 3,879 | pyi | from typing import Any
string_types = ... # type: Any
bytes_types = ... # type: Any
LOST_STATES = ... # type: Any
ENVI_VERSION = ... # type: Any
ENVI_VERSION_KEY = ... # type: Any
log = ... # type: Any
class KazooClient:
logger = ... # type: Any
handler = ... # type: Any
auth_data = ..... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
83ebf0a66825f6e61ab543b4e72c1939cbe90293 | 57e148ea3ebc4a7476a661ce4332fdc15912934d | /cf 606 div 2 C.py | ee6cc6c8cbec456b68807eceb9a6cee0e076571c | [] | no_license | FahimSifnatul/online_problem_solving_with_FahimSifnatul_python_version | 20f99a59dda8083ac4cf220b0cd4b45b34262fa3 | 6e1e54b78ba5d64ba4bb5edee507277fe2c1a186 | refs/heads/master | 2022-12-24T10:57:06.212206 | 2020-10-07T05:29:54 | 2020-10-07T05:29:54 | 265,504,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from sys import stdin,stdout
ans,pos = [], 0
for i in range(int(input())):
s = stdin.readline()
cnt, j, l = 0, 0, len(s)-2
while j <= l-2:
tmp = s[j] + s[j+1] + s[j+2]
if j <= l-4 and tmp+s[j+3]+s[j+4] == 'twone':
ans.append(str(j+3))
ans.append(' ')
cnt += 1
j += 5
... | [
"noreply@github.com"
] | FahimSifnatul.noreply@github.com |
45de7de2ca65f57cb6a7a2c82425aa4a63f7f879 | 2127cabeeda296f7a6b692982872d91e8bdd3016 | /tests/test_schema_priority.py | 15535c1c3ad072aac439c0948434e442010679ea | [
"Apache-2.0"
] | permissive | nomilkinmyhome/dataclass_factory | 26059993af95509e386793c42fd743d6f08e1079 | 7bcbd395acd5c61806ae36042067a7f9882cec28 | refs/heads/master | 2022-11-18T21:51:40.308764 | 2020-03-26T08:51:08 | 2020-03-26T08:51:08 | 279,984,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | from dataclasses import dataclass
from unittest import TestCase
from dataclass_factory import Factory, Schema
@dataclass
class Data:
a: str = ""
b: str = ""
c_: str = ""
_d: str = ""
class TestFactory(TestCase):
def test_only_mapping(self):
factory = Factory(
schemas={
... | [
"tishka17@mail.ru"
] | tishka17@mail.ru |
72fd3453bb6ac3f150bff9dbcaa458288016d216 | 8379cb63b570eb29c2d2e52b37960ea350fe6be3 | /datasets/create_bond_dataset.py | 953ce6f39ef64c0eccda9e81138d9b55caacd945 | [] | no_license | biotite-dev/biotite-util | 3ad622cee28a556ef37c2abf7dabee8f4ae91bfb | 3c5bcce9411c6f1bd5c12df91b1c091c5eff84ab | refs/heads/master | 2022-10-13T21:49:25.040376 | 2022-09-18T15:51:42 | 2022-09-18T15:51:42 | 152,449,276 | 1 | 1 | null | 2022-09-18T15:51:43 | 2018-10-10T15:46:49 | Python | UTF-8 | Python | false | false | 2,164 | py | import argparse
import msgpack
import biotite.structure as struc
import biotite.structure.io.pdbx as pdbx
BOND_ORDERS = {
("SING", "N") : struc.BondType.SINGLE,
("DOUB", "N") : struc.BondType.DOUBLE,
("TRIP", "N") : struc.BondType.TRIPLE,
("QUAD", "N") : struc.BondType.QUADRUPLE,
("SING", "Y") : s... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
83156090bb8b3b0a4cc1a33ac9e451f5d4f13a09 | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/100+/euler131.py | 4d34b9b3dbb1e9573a034fa5863f2228130191e4 | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from fractions import gcd
def isPrime(n):
for i in range(2, int(n**0.5)+1):
if n % i == 0: return False
return True
def euler131():
m = 2
n = m-1
ps = 0
while m**3 - n**3 < 1000000:
p = m**3 - n**3
if isPrime(p): ps += 1
m += 1
n = m-1
return ps
if __name__ == "__main__":
print euler131() | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
6bcbd7cb96b17a945779fd33d2772b582faa191c | 2ba8378d2028305c2582a2d5d16a91527d207040 | /Soilder.py | 1b6e9968b690cf80f1a63808b6568dd247d9e2ac | [] | no_license | giridhararao/guvi | 41bf15e7dbd8ca3494f2e7ada5b42737e80fefe8 | e67e245a2b31463f39087430bce0f7cf5bc92b4a | refs/heads/master | 2020-03-22T06:04:27.296180 | 2019-03-30T06:52:05 | 2019-03-30T06:52:05 | 139,610,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def factors1(n) :
L = []
i = 2
cnt = 0
while n >1 :
while n%i == 0 :
cnt += 1
n //= i
i += 1
return cnt
n = int(input())
L = [input().split() for i in range(0,n)]
for i in range(0,n) :
a = 1
n, k = L[i]
n, k = int(n), int(k)
for i in range(k+1... | [
"noreply@github.com"
] | giridhararao.noreply@github.com |
ed430e4a8ec7376b2596b58d7285585e9507bec0 | 609a4bb18ffd8e93ef28da6762266d852c9aca54 | /src/h02_bert_embeddings/bert_per_word.py | 9343c3f703ec8633f3d6dd09f9e3c73e45675912 | [
"MIT"
] | permissive | tpimentelms/lexical-ambiguity-in-context | 0fe9a6835451bc2d5abcba65654e7049109ded67 | 5277b9e0f1a846b5fe93eeba1cf37de2d48cfc62 | refs/heads/main | 2023-05-31T03:25:34.499572 | 2021-06-02T15:04:37 | 2021-06-02T15:04:37 | 373,110,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import torch
import torch.nn as nn
from transformers import BertModel
from utils import constants
class BertPerWordModel(nn.Module):
# pylint: disable=arguments-differ
def __init__(self, bert_option):
super().__init__()
self.bert = self.get_bert(bert_option)
@staticmethod
def get_be... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
0479a264837198ef41a9305938f1a57efdcd97d3 | 75e8d0da60b0e9456058eee70ada47ed11e953a2 | /584A.py | db56edd5936777f92ff2e128d8c3d63cc31d75f5 | [] | no_license | smirnoffmg/codeforces | 87aa12596b4927e5b5620369a5d4fb52330c51f7 | 1b0e7feb051c7b7c5c4e46351e122a050d1561ac | refs/heads/master | 2021-10-11T10:09:24.019018 | 2019-01-24T13:54:35 | 2019-01-24T13:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # -*- coding: utf-8 -*-
n, t = map(int, raw_input().split(' '))
if t == 10:
if n > 1:
print(10 ** (n - 1))
else:
print(-1)
else:
f = 10 ** (n - 1) % t
print(10 ** (n - 1) + (t-f))
| [
"smirnoffmg@gmail.com"
] | smirnoffmg@gmail.com |
a29184b368126daa37dbeb89a73cfc13478bb9a9 | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-173/roger-bell-west/python/ch-1.py | 3ee4659182a9b33fabe21f977355cec1a0bd03bc | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 809 | py | #! /usr/bin/python3
import unittest
def esthetic(n0, base):
n = n0
pdigit = 0
ch = False
while n > 0:
digit = n % base
if ch and abs(digit - pdigit) != 1:
return False
ch = True
pdigit = digit
n //= base
return True
def esthetic10(n):
return esthetic(n, 10)
class TestEsthetic(u... | [
"roger@firedrake.org"
] | roger@firedrake.org |
d8f05b966238a7358ae208514b580ac1cdfb8039 | 0792f5f7432ef3320c16e717671726289d1db3be | /filetest.py | 7c1f8dad9c01c68c7b9df6e8a0cdd1053bf2b2b9 | [] | no_license | hujiangyi/autoupgrade | 47a28ee9751d555a11d7697105b17af1f2d6c13c | 1f6cae3a264d4ce639283bda10df97e216d1fa40 | refs/heads/master | 2020-04-13T04:53:07.185244 | 2019-05-17T06:20:06 | 2019-05-17T06:20:06 | 162,974,411 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 jay <hujiangyi@dvt.dvt.com>
#
cmdfile = open('./collectDataCmd.txt', "r")
for line in cmdfile.readlines():
print line.strip() | [
"hujiangyi@dvt.dvt.com"
] | hujiangyi@dvt.dvt.com |
2888b0395bdc3f6679dfc6bde5a66fad4551756e | 339901caa0cbb3bd2762ad83bb9f847c01b0df39 | /rice_RILs_mPing_scripts/Construction_of_recombination_bin_and_linkage_map/scripts/genotype/Tab2SNP.py | ec1d59a1b3f5eef7fce9a54aabae2c80828dece8 | [] | no_license | stajichlab/Dynamic_rice_publications | e592e83a4842eff7354e06e5368e6f7590b472ee | 93ac8732d64b7ab4831a0b0b9b1593efc5814805 | refs/heads/master | 2020-03-24T05:10:56.815367 | 2020-02-11T07:26:17 | 2020-02-11T07:26:17 | 142,477,743 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
from Bio import SeqIO
import subprocess
import multiprocessing as mp
import gzip
def usage():
test="name"
message='''
python Tab2SNP.py --input RILs_ALL_bam_correct
... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
45689ce9ef1065b6e18e0fd34e1d78d680c0cb51 | 162eed4191aef4431f94a0db1ad4185b6daa6f67 | /supervised_learning/0x00-binary_classification/21-deep_neural_network.py | f28ab914fda9b74ef9fc8a9f068b6e0624e1b5b5 | [] | no_license | giovannyortegon/holbertonschool-machine_learning | d6897bfb492f9d266302930927416637be3c172d | 8cd5e0f837a5c0facbf73647dcc9c6a3b1b1b9e0 | refs/heads/master | 2022-12-31T15:34:20.489690 | 2020-10-24T03:37:01 | 2020-10-24T03:37:01 | 279,656,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | #!/usr/bin/env python3
""" deep neural network """
import numpy as np
class DeepNeuralNetwork:
""" DeepNeuralNetwork - defines a deep neural network
"""
@staticmethod
def he_et_al(nx, layers):
""" The weights initialized using the He et al """
if type(layers) is not list or len(layers)... | [
"ortegon.giovanny@hotmail.com"
] | ortegon.giovanny@hotmail.com |
0ce1310744f3da08e0fa94833be91e0a0a8e6cbf | 0172fee2851e3d02b855a53d8b63b262d169e6a5 | /ptsites/sites/pttime.py | 75c6b76556862fd4b682da3f9345ccdd374cb347 | [
"MIT"
] | permissive | Tuohai-Li/flexget_qbittorrent_mod | 3f3f9df45680d27853f44bee6421ceb750d9d01e | 81e3bb473f82dce759da3795b2e89bfc7717d3bb | refs/heads/master | 2023-09-02T17:46:42.077469 | 2021-11-17T04:06:53 | 2021-11-17T04:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | from ..schema.nexusphp import AttendanceHR
from ..schema.site_base import Work, SignState
from ..utils.net_utils import NetUtils
class MainClass(AttendanceHR):
URL = 'https://www.pttime.org/'
USER_CLASSES = {
'downloaded': [3221225472000, 16106127360000],
'share_ratio': [3.05, 4.55],
'... | [
"12468675@qq.com"
] | 12468675@qq.com |
c82569cd70f74e9a2395eb42b18ea0e8e570ef28 | 0693cce8efbeca806f4551c22dce60d5f392c5c9 | /contentful_management/content_type_resource_proxy.py | ee4655778b24c6a08f53eb004c1fabac287e1758 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | timwis/contentful-management.py | 2dc4b7389ca2136ee2a12b89812b18ef2a347e67 | d71a0e18205d1de821b41c7225e8244e786be7f3 | refs/heads/master | 2021-06-28T12:04:58.130393 | 2017-08-10T16:30:09 | 2017-08-10T16:32:50 | 103,517,328 | 0 | 0 | null | 2017-09-14T10:04:48 | 2017-09-14T10:04:48 | null | UTF-8 | Python | false | false | 1,557 | py | """
contentful_management.content_type_resource_proxy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements the ContentTypeResourceProxy class.
:copyright: (c) 2017 by Contentful GmbH.
:license: MIT, see LICENSE for more details.
"""
class ContentTypeResourceProxy(object):
"""Base class for c... | [
"david.litvakb@gmail.com"
] | david.litvakb@gmail.com |
1033b438cc562e7a9ed44ead113b464f37380f81 | 1e70fa970f3c0f7d71273b5aaf97e2dfdaf249ec | /axi/planner.py | 62a712bebc75653c3622814abd414afbfcadfb36 | [
"MIT"
] | permissive | sgentle/axi | fbbd423560078878f4fdcc2e5bb6354d04077634 | cc4551e990713aa28fd6a3e10634b825041f6e3e | refs/heads/master | 2021-04-06T15:32:58.904837 | 2018-03-08T11:30:37 | 2018-03-08T11:30:37 | 124,370,678 | 1 | 0 | null | 2018-03-08T09:45:20 | 2018-03-08T09:45:20 | null | UTF-8 | Python | false | false | 7,163 | py | from __future__ import division
from bisect import bisect
from collections import namedtuple
from math import sqrt, hypot
# a planner computes a motion profile for a list of (x, y) points
class Planner(object):
def __init__(self, acceleration, max_velocity, corner_factor):
self.acceleration = acceleration... | [
"fogleman@gmail.com"
] | fogleman@gmail.com |
be0ace15d0a17f5c8094cd0c651183e8263917e7 | c6cbc2adf3acd58c8892874d0172b9844129595f | /web_flask/3-python_route.py | a85c50ff586ccdb64ea212a5e68027cc3b9e586f | [] | no_license | Joldiazch/AirBnB_clone_v2 | 4dac319e03f94ba677e5a3e17801958223c78552 | a9c2d54991e2e956fe27c89ece0ecc3400b045c1 | refs/heads/master | 2021-05-25T21:12:54.056693 | 2020-04-22T23:52:46 | 2020-04-22T23:52:46 | 253,921,574 | 1 | 0 | null | 2020-04-07T21:59:16 | 2020-04-07T21:59:16 | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/python3
""" that starts a Flask web application """
# import flask
from flask import Flask
app = Flask(__name__)
# strict_slashes allow that this route work with /my_route and /my_route/
@app.route('/', strict_slashes=False)
def root():
""" return Hello HBNB """
return 'Hello HBNB!'
@app.route(... | [
"jluis.diaz@udea.edu.co"
] | jluis.diaz@udea.edu.co |
4f824041f4d0d7bd13c488ef541522624434f08a | 90bc7032cda25da6541a976f37e5b9f491b70bd0 | /nrlbio/chimirna/lfc2cdf.py | 9c5e2d701dd00f6abf6a59d897007688e137812b | [] | no_license | afilipch/nrlbio | da89bb262e9b900b5b71cf14612ace9630263e61 | d05258e4b1e352130999a23e4d2b9717b8f834c9 | refs/heads/master | 2020-04-12T01:21:19.231931 | 2017-03-17T16:16:08 | 2017-03-17T16:16:08 | 52,795,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | #! /usr/bin/python
'''produces table of LFC CDF for tables of genes'''
import sys;
import copy;
import os;
import argparse;
from collections import *;
import itertools
from scipy.stats import ks_2samp, mannwhitneyu
parser = argparse.ArgumentParser(description='Script outputs presence of certain binding modes in the ... | [
"afilipch@a58d7b47-41b6-4d21-bc94-2c2c30e24b6a"
] | afilipch@a58d7b47-41b6-4d21-bc94-2c2c30e24b6a |
9f38fdd55389eccffedf6e73cd9bedac9c27be08 | 9120120ee0b52f24c627759b0901afbc55347529 | /pygis_src/ch06_spatialite/sec3_access_sqlite_via_python/test_3_import_shapefile_x_x.py | 959744afe35441f3c6f3152ce4654d40af5fc49d | [] | no_license | xiaomozi/book_python_gis | d999b17833abe746a7be2683595f48b54071cd59 | 754fa10c17a20506146d8f409e035e4d4869ad3e | refs/heads/master | 2020-03-11T18:36:40.739267 | 2018-01-04T16:31:23 | 2018-01-04T16:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
###############################################################################
import os; import sqlite3 as sqlite
dbfile = 'xx_shapedb.sqlite'
if os.path.exists(dbfile): os.remove(dbfile)
db = sqlite.connect(dbfile)
db.enable_load_extension(True)
db.execute('SELECT load_... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
9de3642c57a0d6237c06147471395720fc4207a4 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/meta/moduleinfometa.py | d7d29dd3d8f30586b5f883e94565df3dd822e3ea | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 967 | py | # 2015.11.10 21:27:57 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ModuleInfoMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class ModuleInfoMeta(AbstractWindowView):
def onCancelClick(self):
self._printOv... | [
"info@webium.sk"
] | info@webium.sk |
5bac41f8f6ba96763a05d3c22ca3bc5063f102a4 | fff80d8049aa19dacc01e48a21032fa74f069441 | /Chapter_15_Generating_Data/mpl_squares_correct.py | 6eb1554d6bb2d9a12e7bcb4d1c83c1173e396f52 | [
"MIT"
] | permissive | charliealpha094/Project_Data_Visualization | a77d5e8290de0fa416394e188e349bf198499ff1 | ccd55db58927dbbcfd57ab750fe7b21754c2b2dc | refs/heads/master | 2022-11-29T13:24:52.725995 | 2020-08-09T09:20:02 | 2020-08-09T09:20:02 | 285,671,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Done by Carlos Amaral (19/07/2020)
#Styling and correcting
import matplotlib.pyplot as plt
input_values = [1,2,3,4,5]
squares = [1, 4, 9, 16, 25]
plt.style.use('seaborn')
fig, ax = plt.subplots()
ax.plot(input_values, squares, linewidth = 3)
#Set chart title and label axes.
ax.set_title("Square Numbers", fonts... | [
"carlosamaral94@gmail.com"
] | carlosamaral94@gmail.com |
335642bb7e305c8a7e2f0448c2a1ec8d75c1a15b | 60dd6073a3284e24092620e430fd05be3157f48e | /tiago_public_ws/build/pal_gripper/pal_gripper_controller_configuration/catkin_generated/pkg.installspace.context.pc.py | 72d62140668fd30c806c4d71575a513fdfde1439 | [] | no_license | SakshayMahna/Programming-Robots-with-ROS | e94d4ec5973f76d49c81406f0de43795bb673c1e | 203d97463d07722fbe73bdc007d930b2ae3905f1 | refs/heads/master | 2020-07-11T07:28:00.547774 | 2019-10-19T08:05:26 | 2019-10-19T08:05:26 | 204,474,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "pal_gripper_controller_configuration"... | [
"sakshum19@gmail.com"
] | sakshum19@gmail.com |
999b8d39e8434c5a1188b45fd7c163f18721d4d2 | db3662b35d48cc2b34b48350db603bb08fd47e81 | /tf_api/arithmetic_experiment.py | eb4d6e474336695b88f01debfe787147f2456e1b | [] | no_license | JuneXia/handml | 70b4c172940e0e10b2775ec0dad462f2b08f47bf | 35c23568065178e48347b440851ad5a38db5f93e | refs/heads/master | 2020-04-02T01:59:23.073289 | 2020-02-11T02:57:16 | 2020-02-11T02:57:16 | 153,885,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | # 各种算术运算实验
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
if __name__ == '__main__1':
# ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8],dtype = tf.int32)
# indices = tf.constant([4, 3, 1, 7],dtype = tf.int32)
# updates = tf.constant([9, 10, 11, 12],dtype = tf.int32)
ref = tf.V... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
1cec5040d91a46de4c6181b2f40f9673101e9b6d | f8d2521a88e465eed01adc3981c7a173d5c2554b | /etc/educational/round0001-0025/round0003/a1.py | 852c5741db4bf0680c354c4cf3bf35dd431c8deb | [] | no_license | clarinet758/codeforces | b2a8a349bba40e7761a8ce50dd5ff9a57477b60d | d79870c47bdb109547891a0d076dd173d6d647cf | refs/heads/main | 2021-12-15T05:46:51.000160 | 2021-12-01T12:01:33 | 2021-12-01T12:01:33 | 41,968,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
import collections
import bisect
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
IS=float('inf')
xy=[(1,0),(-1,0),(0,1),(0,-1)]
... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
365149b42675dd45c83444b739330f8d68f7586e | d6de6311ab2794cd3cce36ae0d1e591330941e8a | /2019/day09/part1_and_2.py | 623945fb25630ccddae81196e6974a98fb25a7e6 | [] | no_license | candyer/Advent-of-Code | a5346cffb4b9b1f45691c7f1b8d45bfd480b3fc0 | d5c6758c5b1feb66c4afb8ee773085a3751d8b37 | refs/heads/master | 2022-03-27T23:07:42.712877 | 2019-12-12T23:11:54 | 2019-12-12T23:11:54 | 112,863,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import sys
from typing import List, Tuple, Dict
from collections import defaultdict
def breakDown(num: int) -> Tuple[int, List[int]]:
modes = list(map(int, str(num)[:-2][::-1]))
modes.extend([0] * (3 - len(modes)))
return (num % 100, modes)
def solve(d: Dict[int, int], inpt: int) -> int:
relative_base = 0
output... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
f8532b1c94622cc29700d629fee455cb052c8cc0 | 1aaaca67031d81eabb07e9e9fb1a4fcae9de7462 | /dictionary.py | 090cb29f273b4decfd6bba42bd4c69c4ede70104 | [] | no_license | supriyo-pal/Joy-Of-Computing-Using-Python-All-programms | 9e08bdf4c2a88cc360c0cb296b217230f0ae0b2c | bd450dfdbc879e0b200d03fa9106ece09456fa8c | refs/heads/main | 2023-01-21T07:28:02.312421 | 2020-12-02T09:18:08 | 2020-12-02T09:18:08 | 317,161,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 12 10:24:41 2020
@author: Supriyo
"""
#dictionary is represented by {}
#example of dictionary {key:value}
conv_factor={'dollar':60,'euro': 80 }
print(conv_factor)
print(conv_factor["dollar"])
print(conv_factor["euro"]) | [
"noreply@github.com"
] | supriyo-pal.noreply@github.com |
5c77f798c033cb12c4cf21c9e04ca72aa05a8927 | ead94ab55e0dc5ff04964a23b16cc02ab3622188 | /src/commands/pendingsubscr.py | e90bca3836fe62c655cb330efdf290ad4acc1fdf | [] | no_license | caifti/openstack-security-integrations | 88d92d6fcfb2a5a438f3a7e98f2e738d7434476f | bddd51675fe0ad4123f23520f3fdc6a793bf7bbc | refs/heads/master | 2023-03-11T02:49:38.442233 | 2020-12-16T07:39:12 | 2020-12-16T07:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | # Copyright (c) 2014 INFN - "Istituto Nazionale di Fisica Nucleare" - Italy
# 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/LIC... | [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
8570f0b581dbd4ad8bbf7a06e2040630abddadc0 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /chainer_/datasets/svhn_cls_dataset.py | 41da30bcecc81e26b5d6dc68f2b4f4fc67cabb8f | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 1,587 | py | """
SVHN classification dataset.
"""
import os
from chainer.dataset import DatasetMixin
from chainer.datasets.svhn import get_svhn
from .cifar10_cls_dataset import CIFAR10MetaInfo
class SVHN(DatasetMixin):
"""
SVHN image classification dataset from http://ufldl.stanford.edu/housenumbers/.
Each sample... | [
"osemery@gmail.com"
] | osemery@gmail.com |
c738e7dd0a22c2c6d399f18ba00ba42343053ea5 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /reebill/payment_dao.py | 7a26623a1f93df8ab5c4f36c04a68d01f167cc14 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,111 | py | from datetime import datetime
from sqlalchemy import and_
from core.model import Session, UtilityAccount
from reebill.exceptions import IssuedBillError
from reebill.reebill_model import ReeBillCustomer, Payment
class PaymentDAO(object):
'''CRUD for Payment objects. Some of these methods are used only in tests
... | [
"dklothe@skylineinnovations.com"
] | dklothe@skylineinnovations.com |
19e03a975d6e84656aa59f9380034203aaaba1c3 | d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e | /Codes/antman/agent/framework/controllers/file.py | e53710b676cb8afb754414194c3a23579657a3a0 | [] | no_license | lengxu/YouYun | e20c4d8f553ccb245e96de177a67f776666e986f | b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815 | refs/heads/master | 2020-09-13T22:30:49.642980 | 2017-11-27T03:13:34 | 2017-11-27T03:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,515 | py | # coding: utf-8
import nfs
import os
import logging
import time
from tornado import web, gen
from tornado.locks import Semaphore
from tornado.httpclient import AsyncHTTPClient
from framework import settings
from framework.config import config
MAX_BODY_SIZE = 4 * 1024.0 * 1024.0 * 1024.0 # 4GB
GMT_FORMAT = '%a, %d %b ... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
b7e9a84dfee84fe3a63a89a7b9e557c566d47949 | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/eve/client/script/ui/structure/structureSettings/schedule/__init__.py | 2527ee24c593c6d6a1cfdf69e8d5bb20d7008db8 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\structure\structureSettings\schedule\__init__.py
__author__ = 'bara' | [
"victorique.de.blois@asu.edu"
] | victorique.de.blois@asu.edu |
a88b50f072fc292e98b1924ee430d4fb78ab9eb7 | dc50eb6176b4f5609519e912bc5379cea3fac9d2 | /Learn/spider/21DaysOfDistributedSpider/ch06/jianshu_spider/jianshu_spider/start.py | 93c5f64fabc256f15c10cbb8676d97c8fddd221c | [] | no_license | shuxiangguo/Python | 890c09a028e660206a8b3a8c7ca094a6f642095d | 089b2795e1db113dea6333d8dee6803071921cab | refs/heads/master | 2020-04-06T10:28:17.851981 | 2018-12-20T04:39:03 | 2018-12-20T04:39:03 | 157,381,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # encoding: utf-8
"""
@author: shuxiangguo
@file: start.py
@time: 2018-11-29 17:26:57
"""
from scrapy import cmdline
cmdline.execute("scrapy crawl js".split()) | [
"shuxiangguo7@gmail.com"
] | shuxiangguo7@gmail.com |
d82c316008ae3777ac502b60b15b2a6e27e8e845 | 7986ec6498e3f93967fa9bfe2b6a9d4056138293 | /Protheus_WebApp/Modules/SIGAPCP/MATA660TESTCASE.py | 16968c8e2418ee95143f196717d2106ec59cdfd2 | [
"MIT"
] | permissive | HelenaAdrignoli/tir-script-samples | 7d08973e30385551ef13df15e4410ac484554303 | bb4f4ab3a49f723216c93f66a4395e5aa328b846 | refs/heads/master | 2023-02-21T11:26:28.247316 | 2020-04-28T16:37:26 | 2020-04-28T16:37:26 | 257,304,757 | 0 | 0 | MIT | 2020-04-20T14:22:21 | 2020-04-20T14:22:20 | null | UTF-8 | Python | false | false | 1,304 | py | from tir import Webapp
import unittest
class MATA660(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGAPCP','26/04/2019','T1','D MG 01 ','10')
inst.oHelper.Program('MATA660')
def test_MATA660_001(self):
self.oHelper.SetButton('Outras Ações', 'Incluir')... | [
"hadrignoli@gmail.com"
] | hadrignoli@gmail.com |
b260ab5265f53119dfc20bd10fab69410b969e8d | 39a5908ff24b9a4d9b5e9a90f76ba248ec47fd39 | /mymultispider/mymultispider/spiders/myspd2.py | c1944c6bf3acf97d9f71130cedffe87a9a2df2b9 | [] | no_license | terroristhouse/crawler | 281b10ccc2490b4f1a86eae7ae819cf408f15bd8 | 3c501da46deef73b80e381d6d3c45cc049702d14 | refs/heads/master | 2020-12-27T03:28:20.586755 | 2020-09-08T03:43:56 | 2020-09-08T03:43:56 | 284,569,509 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
import scrapy
from mymultispider.items import Myspd2spiderItem
class Myspd2Spider(scrapy.Spider):
name = 'myspd2'
allowed_domains = ['sina.com.cn']
start_urls = ['http://sina.com.cn/']
# custom_settings = {
# 'ITEM_PIPELINES': {'mymultispider.pipelines.Myspd2spiderPipeli... | [
"867940410@qq.com"
] | 867940410@qq.com |
17f36f2e6c5b6dc04263fd98c3913c332d50c9a7 | 7cd30248342dc83e0b49409bed4b3df378b629b1 | /sampling_image_15channels.py | d5d3bc787979ea380c94ef835d399663a0d72d43 | [] | no_license | minhnd3796/NGUYENDUCMINH_CODE | d34fc5cb0c9ba4108faf500170a8bea5bdef1d04 | 9fb27777ca0d40018c7154f7be19b420cf391471 | refs/heads/master | 2021-04-06T20:47:34.958473 | 2018-06-12T08:36:33 | 2018-06-12T08:36:33 | 125,452,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,190 | py | import os
import numpy as np
import scipy.misc as misc
base_dir_train = "../ISPRS_semantic_labeling_Vaihingen/train_15channels"
base_dir_validate = "../ISPRS_semantic_labeling_Vaihingen/validate_15channels"
base_dir_annotations = "../ISPRS_semantic_labeling_Vaihingen/annotations"
base_dir_top = "../ISPRS_semantic_lab... | [
"gordonnguyen3796@gmail.com"
] | gordonnguyen3796@gmail.com |
1ad8e42d8d9f216254a022a78cade94d1ffdf242 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191209/example_metashape/conf2.py | 24069b8dfc3798d4637b5f160b6a247571a22e1b | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 1,089 | py | from __future__ import annotations
import typing as t
import dataclasses
@dataclasses.dataclass
class Toplevel:
site_name: str = "Material for MkDocs"
class Theme:
name: str = "material"
language: str = "en"
class Palette:
primary: str = "indigo"
accent: str =... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
c3c267c38c57dffabbb56aeea85b6750efebb684 | 57d964ebf76d2462f21017ec68e124b6728d8ccb | /setup.py | e663edcf79392ac1efe703d50ba0012944b55225 | [
"MIT"
] | permissive | chaeminlim/netron | a2983ada9d803549a3266e1a5922894b39226b26 | d75991128647a636425c746205b0a28a21d40e07 | refs/heads/master | 2021-01-15T03:54:05.742616 | 2020-03-05T10:45:53 | 2020-03-05T10:45:53 | 242,869,800 | 0 | 0 | MIT | 2020-02-24T23:56:50 | 2020-02-24T23:56:49 | null | UTF-8 | Python | false | false | 6,854 | py | #!/usr/bin/env python
import distutils
import io
import json
import os
import setuptools
import setuptools.command.build_py
import distutils.command.build
node_dependencies = [
( 'netron', [
'node_modules/d3/dist/d3.min.js',
'node_modules/dagre/dist/dagre.min.js',
'node_modules/handlebars... | [
"lutzroeder@users.noreply.github.com"
] | lutzroeder@users.noreply.github.com |
ded0b78eb650a9a7b1f02e68ec43f07f81a9da48 | 2b020a49e5c2bff241fd1a99fc31531ea2b6f8c1 | /pyLeetCode/S11_1_Container_With_Most_Water.py | 6e8aa6b416c2cb0808fe6774a90a5b807468c13c | [] | no_license | yangze01/algorithm | 7855461430dc0a5abcc8f1a94fda9318a0653e3e | 44968c3fd2ce02bd9ab18d02b487401a0d72c1a8 | refs/heads/master | 2021-01-11T11:09:54.668345 | 2018-04-08T15:04:11 | 2018-04-08T15:04:11 | 78,757,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py |
height = [1,2,3,4,5,6,7]
class Solution(object):
def maxArea(self,height):
max_val = 0
for i in range(0,len(height)-1):
for j in range(i+1,len(height)):
print(i,j)
tmp = (j-i)*min(height[i],height[j])
if(tmp>max_val):
m... | [
"858848101@qq.com"
] | 858848101@qq.com |
5330811aaf49a7feff3c2159e41445feaa2201d3 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts_from_Astrocyte/scripts/mridataSort.py | 2ec9b124d72314d9b7234cf11aa592e10cf844cc | [
"BSD-2-Clause"
] | permissive | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,926 | py | import os, shutil, csv
src = '/media/katie/storage/PanicPTSD/data/raw_data'
dst = '/media/katie/storage/PanicPTSD/data-neworg/Panic/'
lst = '/media/katie/storage/PanicPTSD/data/PanicSubjListPHI.csv'
lst = open(lst)
def copy_and_rename(sub, exam, time):
for folder in os.listdir(src):
if folder == e... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
124e013441d004398f64e0732e3bf47043367432 | ce6271f3dc32cf374e4dde5e4666e80242e83fde | /grow/partials/partial_test.py | c9db7c2b496316826deeb59f55989568296bcb5e | [
"MIT"
] | permissive | kmcnellis/grow | 26ab42e051906a1aaa28e52aae585b5ed5c497a9 | 4787f5a01681ef0800e9b4388a56cdbc48209368 | refs/heads/master | 2020-04-18T09:44:35.950251 | 2019-01-24T22:05:06 | 2019-01-24T22:05:06 | 167,445,373 | 1 | 0 | MIT | 2019-01-24T22:07:44 | 2019-01-24T22:07:44 | null | UTF-8 | Python | false | false | 1,289 | py | """Test the pod partial."""
import unittest
from grow import storage
from grow.pods import pods
from grow.testing import testing
class PartialTestCase(unittest.TestCase):
"""Tests for partials."""
def setUp(self):
dir_path = testing.create_test_pod_dir()
self.pod = pods.Pod(dir_path, storage... | [
"randy@blinkk.com"
] | randy@blinkk.com |
972103bb17ed3d5a13dc49f753c7d97fdf963e30 | 705fa27fb794898a3ee52a4af8446d7ef8ea13f4 | /tests/constants/route_parser.py | 4d3a6dc8de7d6c0fb40031e61128aa7085a0f51e | [
"MIT"
] | permissive | Mause/pytransperth | 1612063a0c9276ca9b0ae7399b2e9d15598c5dc3 | 411c6a38b8451dc917927bdc4fdb70aeb9acd52b | refs/heads/master | 2022-07-20T00:24:39.252527 | 2014-06-19T07:23:43 | 2014-06-19T07:23:43 | 16,773,465 | 0 | 0 | MIT | 2022-07-06T19:27:24 | 2014-02-12T16:25:48 | Python | UTF-8 | Python | false | false | 1,628 | py | import os
from lxml.html import builder as E
from lxml.etree import HTML
PATH = os.path.dirname(__file__)
with open(os.path.join(PATH, 'header.html')) as fh:
HEADER = HTML(fh.read()).find('body/tr')
STEPS = E.HTML(
E.TD(
E.DIV(
E.TABLE('STEP1'),
E.TABLE('STEP2'),
E... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
2be54c9eb80269c4b94a171aa565464b596c6fc1 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/240230d6f4f34654aed81c439a0398cd.py | 6166c2b7d7b980ccf4335bc4439fcae7d5daf5a5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 491 | py | def hey(statement):
if is_silence(statement):
return 'Fine. Be that way!'
if is_yelling(statement):
return 'Whoa, chill out!'
if is_question(statement):
return 'Sure.'
else:
return 'Whatever.'
def is_silence(statement):
if statement.isspace() or not statement:
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
940ee3c9cce97e80e85a1dcc48bf6688e73046d2 | bd649f51496a24a55a2327e658f31d6e03e2f602 | /InvTL/lm_py/py/apigen/project.py | 0f9fe198fd2c4884e281894e55ad3d2e3a5b2efb | [
"MIT"
] | permissive | mickg10/DARLAB | 6507530231f749e8fc1647f3a9bec22a20bebe46 | 0cd8d094fcaf60a48a3b32f15e836fcb48d93e74 | refs/heads/master | 2020-04-15T20:39:23.403215 | 2019-01-10T06:54:50 | 2019-01-10T06:54:50 | 16,510,433 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | """ this contains the code that actually builds the pages using layout.py
building the docs happens in two passes: the first one takes care of
collecting contents and navigation items, the second builds the actual
HTML
"""
import py
from layout import LayoutPage
class Project(py.__.doc.confrest... | [
"root@darlab1.mickg.net"
] | root@darlab1.mickg.net |
1b4e33e92c9ae5c3d39692435a98f799ea4c7cd9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03733/s769945008.py | 6b0d84553580197dcec9f0813ba6500ba2eaf682 | [] | 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 | 310 | py | import sys
input = sys.stdin.readline
def main():
N, T = map(int, input().split())
t = list(map(int, input().split()))
ans = T * N
for i in range(N - 1):
diff = t[i + 1] - t[i]
if diff < T:
ans -= T - diff
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
107bfdfe9d53d39bb9018b86c818d6f9d0cfe11d | 325ad4c64a3353a41e505737430ba9e9c1005014 | /src/fava/core/accounts.py | 44d32ac792f97022409bef80f9c72e70b5bba94d | [
"MIT"
] | permissive | Linusp/fava | 8a83e8cf57c948a2b324e3d08d7d62f0566d4cdd | 790ff2fc7d46470ed9a3b9c7ab5e3a7b7d960459 | refs/heads/main | 2023-04-15T19:06:59.472054 | 2023-04-01T15:40:48 | 2023-04-01T15:40:48 | 345,133,428 | 0 | 0 | MIT | 2021-03-06T15:57:21 | 2021-03-06T15:57:20 | null | UTF-8 | Python | false | false | 5,440 | py | """Account close date and metadata."""
from __future__ import annotations
import datetime
from dataclasses import dataclass
from dataclasses import field
from typing import Dict
from beancount.core.account import TYPE as ACCOUNT_TYPE
from beancount.core.compare import hash_entry
from beancount.core.data import Balanc... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
bd8049a039c6d0f7f361f1e87b327a78b2d933fb | b75ee1f07fcc50142da444e8ae9ba195bf49977a | /codeowl/search.py | 4c7342035518afb07f0f7ebac759a97fa4dda76d | [
"Apache-2.0"
] | permissive | FlorianLudwig/code-owl | 369bdb57a66c0f06e07853326be685c177e2802a | be6518c89fb49ae600ee004504f9485f328e1090 | refs/heads/master | 2016-08-04T02:26:07.445016 | 2014-05-25T19:19:13 | 2014-05-25T19:19:13 | 18,918,361 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | import copy
import os
from . import score
import codeowl.code
class Query(list):
pass
def generate_query(query_string):
tokens = codeowl.code.parse(query_string)
tokens = [token for token in tokens if not token.search_skip]
query = Query(tokens)
query.score_mali = 0
return query
def token... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
7f26da3a20c57f0e790d52199a3408bf6015437b | 4c1fea9e0f359b6c5ad33db64c6118f949ec254e | /pyroomacoustics/parameters.py | 27eae9dd2486de904c51044170425f605140ddc1 | [
"MIT"
] | permissive | vipchengrui/pyroomacoustics | 59bf42649787a1e2acb187050d524141af34b27c | 45b45febdf93340a55a719942f2daa9efbef9960 | refs/heads/master | 2020-12-01T08:48:03.395356 | 2019-12-10T08:58:18 | 2019-12-10T08:58:18 | 230,594,995 | 1 | 0 | MIT | 2019-12-28T10:31:56 | 2019-12-28T10:31:55 | null | UTF-8 | Python | false | false | 1,901 | py | # @version: 1.0 date: 09/07/2015 by Robin Scheibler
# @author: robin.scheibler@epfl.ch, ivan.dokmanic@epfl.ch, sidney.barthe@epfl.ch
# @copyright: EPFL-IC-LCAV 2015
'''
This file defines the main physical constants of the system
'''
# tolerance for computations
eps = 1e-10
# We implement the constants as a dictionn... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
d471b603fd6219e6ead621714e9324d5516486a3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/251/64527/submittedfiles/testes.py | 3feaf05985f19c0f1139cb33d4cea8996b379a3c | [] | 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 | 722 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def listaDigitos(n):
d=[]
while n>0:
m=n%10
d.append(m)
n=n//10
d.reverse()
return(d)
def somaQuadrados(d):
soma=0
for i in range(0,len(d),1):
soma=soma+(d[i]**2)
return(soma)
def feliz(n):
inicial=n
fe... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
12b7c8751ab24c72909bae8e49624df6b22e9c01 | 0fa03797c72ea761206a9b9cb92e1303d9d7e1b1 | /Lesson 1 - Essentials/Chap05 - operations/boolean-working.py | 2f1ddb8e35a684b300ddb9c140c0b11704e0a47d | [] | no_license | denemorhun/Python-Reference-Guide | c2de64949a6cb315318b7b541460c51379705680 | 450c25435169311f068d9457fbc2897661d1d129 | refs/heads/main | 2023-05-08T21:49:46.217280 | 2021-03-27T12:03:17 | 2021-03-27T12:03:17 | 319,233,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python3
# Copyright 2009-2017 BHG http://bw.org/
a = True
b = False
x = ( 'bear', 'bunny', 'tree', 'sky', 'rain' )
y = 'bear'
if a and b:
print('expression is true')
else:
print('expression is false')
print ("feed the bear" if b else "don't feed bear")
if 'whale' not in x:
print("There ar... | [
"denemorhun@gmail.com"
] | denemorhun@gmail.com |
6f45e400bb39f0d48206588e6ae5cba2eac6d878 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/etotheipi/c.py | d3d0b9335209254b7ceb8da367ac6c792805ab3b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import itertools
# precompute some primes
primes = [2, 3]
numPrime = 2
for n in xrange(5, 10 ** 6):
if n % 10000 == 0: print n
for i in xrange(numPrime):
if n % primes[i] == 0:
break
if n < primes[i] ** 2:
break
if n % primes[i] == 0:
continue
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
7d9901b72f9aa589600f47acedc063c0bf0e2841 | 21a1ee76bbcaccf2155885d9b183009f15665057 | /lib/exabgp/application/cli.py | d9ba33ae1efe52fafa6ce9815c67ddac297f8cb5 | [] | no_license | Akheon23/exabgp | ebaabde663e0c564b83dd2ea837312dae8234a1b | 82348efd7faccdd0db027df3f1f7574f09f329df | refs/heads/master | 2021-01-17T05:20:12.328012 | 2015-05-21T12:20:40 | 2015-05-21T12:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | #!/usr/bin/env python
# encoding: utf-8
"""
cli.py
Created by Thomas Mangin on 2014-12-22.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
import sys
from exabgp.dep.cmd2 import cmd
from exabgp.version import version
class Completed (cmd.Cmd):
# use_rawinput = False
# prompt = ''
# doc_header = ... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
46488abc7063d86e4c425d68aba3da2da3a55acc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2572/60716/251969.py | 20cd79bb0e897d3938298518c16ef8e0f7e9dba4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | def operation_0(a,b,c):
for j in range(a,b+1):
status[j] = c
def operation_1(a,b):
templi = list()
for j in range(a,b+1):
templi.append(status[j])
temp = set(templi)
return len(temp)
n,t,m = map(int,input().split())
status = list()
answer = list()
operations = list()
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8b305145f1f8fac6152dfbcb76194780d4a2f4d4 | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs44/enroll/forms.py | 9723300889ca9bd1a908b5fbebafee0e4833352c | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.core import validators
from django import forms
class StudentRegistration(forms.Form):
name = forms.CharField()
email = forms.EmailField()
password = forms.CharField(widget=forms.PasswordInput)
rpassword = forms.CharField(label='Password(again)', widget=forms.PasswordInput)
def clean(self):
... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
b333ae9330a3f75aac01dbd5d090d9df9f977761 | 41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75 | /reglog/migrations/0013_auto_20201228_1133.py | 54c21dd73e77c2641e8e37b4021bcbb5fdcc2cdb | [] | no_license | joypaulgmail/Dookan | 4df83f37b7bcaff9052d5a09854d0bb344b9f05a | 7febf471dd71cc6ce7ffabce134e1e37a11309f7 | refs/heads/main | 2023-03-02T04:10:19.611371 | 2021-02-09T11:45:32 | 2021-02-09T11:45:32 | 336,476,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Generated by Django 3.1 on 2020-12-28 06:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reglog', '0012_product_book'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='book',
new... | [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
29d744e1a5e2cdd0bec25f5aec42161b5545172f | 886e43d26c08a9eb837f58d1ba1e9185815eced0 | /demos/setup_test.py | 2eb3380d094d17baebf9bc4e16c34f83eefe1b84 | [] | no_license | amaork/PyAppFramework | ca48c08d1d72430538a9b497e0641e7077a7c560 | c75ef175cb7f2a3fc6a3b7709ea07f86c5a7ba1e | refs/heads/master | 2023-09-01T13:39:38.667126 | 2023-08-30T09:49:47 | 2023-08-30T09:49:47 | 46,108,011 | 14 | 2 | null | 2018-06-11T07:21:34 | 2015-11-13T07:55:20 | Python | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
from ..misc.setup import get_git_commit_count, get_git_release_hash, get_git_release_date
if __name__ == "__main__":
print("Commit count:{0:d}".format(get_git_commit_count()))
print("Release hash:{0:s}".format(get_git_release_hash()))
print("Release data:{0:s}".format(get_git_relea... | [
"amaork@gmail.com"
] | amaork@gmail.com |
c16ad00c9701e0cd53eee99c2d7c654023106bb1 | 85973bb901b69bf6fba310d18602bfb86d654b20 | /zjh/gen_hotpatch_zjh.py | ac9e7a644a2cd9b53aafc7b04a2b4edd4124d42a | [] | no_license | nneesshh/minguo-client | 35d1bb530f2099e4674919dc47a1c47c28f861d3 | d9e79b22388b98834c45a8a856a3d5ea85dd6ece | refs/heads/master | 2021-06-30T15:36:44.432882 | 2021-02-01T08:48:04 | 2021-02-01T08:48:04 | 184,216,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | #!/usr/bin/env python
#coding:utf-8
import os
import json
import hashlib
import subprocess
assetsDir = {
"searchDir" : ["src/app/game/zjh", "res/game/public", "res/game/zjh"],
"ignoreDir" : ["cocos", "obj", "patch"]
}
versionConfigFile = "res/patch/zjh_version_info.json" #版本信息的配置文件路径
versionManifestPath =... | [
"unknown@example.com"
] | unknown@example.com |
8dd5d8f19fa5072e9120188d4f166ce23711b167 | 1f1ba16082e752c55271d4eac7a4b574ecacb94b | /rule-lists-python-package/rulelist/rulelistmodel/gaussianmodel/mdl_gaussian.py | 00417a145285071c215ba60df5d2ccfe60eb4aca | [
"MIT"
] | permissive | HMProenca/robust-rules-for-prediction-and-description | 2a7bab373d16f028709ce8deea4ebc6838b838ff | 236086566f853050a909fb4995c97909174cf074 | refs/heads/main | 2023-04-10T10:19:10.408602 | 2021-08-30T15:25:43 | 2021-08-30T15:25:43 | 401,391,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 15 18:09:04 2020
@author: gathu
"""
import math
from math import pi, log2
from numpy import inf
from rulelist.mdl.mdl_base_codes import log2_gamma_half
from rulelist.rulelistmodel.gaussianmodel.gaussianstatistic import GaussianFixedStatistic
def gaussian_bayesian_enco... | [
"hugo.manuel.proenca@gmail.com"
] | hugo.manuel.proenca@gmail.com |
9522fa97499190ed7a1c7d7eac77f38c11cdf9ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02842/s106976287.py | f68eb41598fe68ec1ba6284e9c8a78c45cc4ca09 | [] | 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 | 503 | py | import sys
from collections import deque
import numpy as np
import math
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().spl... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cfcd23b00235f894bb4ae4381726a46b24aaeefc | a70c29d384933040d318a1baf952965621b68490 | /serving/flask/tf/tf_request.py | 474ed0d17f0bcd56f2b284a0670d3904895d2493 | [
"MIT"
] | permissive | romadm/LibRecommender | f4980dcd117997284f96f7b042cf3fbbc8c0f99e | 46bb892453e88d8411e671bd72e7a8c6e8ef1575 | refs/heads/master | 2023-08-27T11:51:21.842980 | 2021-11-07T01:42:35 | 2021-11-07T01:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import argparse
import json
import requests
from serving.flask import colorize
def str2bool(v):
if isinstance(v, bool):
return v
elif v.lower() in ("yes", "true", "y", "1"):
return True
elif v.lower() in ("no", "false", "n", "0"):
return False
else:
raise argparse.Argum... | [
"wdmjjxg@163.com"
] | wdmjjxg@163.com |
bc19d8a3891a523ef3bdb6d9b253b313aedfeebb | a543a24f1b5aebf500c2200cd1d139435948500d | /Book/Ant/1-1/main.py | d7a1e9bc8e75faad0420ddae20bcf50962166c7a | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n = int(input())
m = int(input())
k = list(map(int, input().split()))
answer = 'No'
for i1 in range(n):
for i2 in range(n):
for i3 in range(n):
for i4 in range(n):
if k[i1] + k[i2] + k[i3] + k[i4] == m:
answer = 'Yes'
print(answer) | [
"satory074@gmail.com"
] | satory074@gmail.com |
7a47391ef75e0091b09a665cea3a1fa44799edd1 | 435a7f571e6379e79010a7bbe2f9680a30b43ed8 | /src/blog/urls.py | aab2dc457187be27ddc92670e6b4200c5b054c62 | [] | no_license | Thuglifescientist2018/eastline_django2020 | 3b1c4bc6800fbdd9206dbdd076e1daf6d4228315 | e61882d91189ca8e0bfea42a715eeb2e87253dd2 | refs/heads/master | 2021-10-12T06:31:35.891679 | 2020-03-20T07:45:15 | 2020-03-20T07:45:15 | 248,694,105 | 0 | 0 | null | 2021-09-22T18:51:40 | 2020-03-20T07:31:34 | Python | UTF-8 | Python | false | false | 355 | py | from django.urls import path
from .views import blog_home, blog_list, blog_create, blog_render, blog_update, blog_delete
urlpatterns = [
path("", blog_home),
path("list", blog_list),
path("create", blog_create),
path("<str:slug>", blog_render),
path("<str:slug>/update", blog_update),
path("<str... | [
"="
] | = |
8f21050531f4ad8e6d54d613afbbd6bf2eb37d5a | 0a14b78c83ca1d9f7465aed9b978101710750e4f | /task-urgency/sum-delta-task-urgency.py | f850e9fb1f72409a5a3a9b2cd73effe88d90bb92 | [] | no_license | writefaruq/EpuckExptAnalysisScripts | 8cdd5b8d8c584ed6265b792b81f490af27a69f14 | f6e45b4f181dfca629598a17decb94595877a577 | refs/heads/master | 2020-05-31T17:17:15.872463 | 2010-05-18T17:23:11 | 2010-05-18T17:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | #!/usr/bin/env python
import time
import sys
import os
import fnmatch
import fileinput
#INTERVAL = 50
HEADER_LINE = 2
STEP_TIME = 5
def sum_urgency(infile, outfile):
time_start = 0
time_end = 0
cum_urgency = 0
iter = 1
f = open(outfile, 'w')
try:
for line in fileinput.input(infile... | [
"Mdomarfaruque.Sarker@newport.ac.uk"
] | Mdomarfaruque.Sarker@newport.ac.uk |
897053339598d7c7ac10cf386fc1e4bd52a9034e | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4052/884004052.py | 98b4f26cc0fbf94d2be466c0ceaf4eca65740322 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 620 | py | from bots.botsconfig import *
from records004052 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MF',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BMP', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 5},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
cf7190285977a6d072f2878e18cecc2e23781a05 | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/1551py/a.py | 4b2f1e5ea15cf88fcabae6827199ab542dd4806e | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n, k = map(int, input().split())
a = [list(map(int, input().split(','))),[]]
for i in range(k):
a[(i+1)%2].clear()
for j in range(n-i-1): a[(i+1)%2].append(a[i%2][j+1]-a[i%2][j])
print(*a[k%2], sep=',')
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.