blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a12343947c99a0584b18996596487918113884d1 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1360455/snippet.py | ff62eb5f770ed285b9b8fdc6e6f331c6b6e4e651 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,727 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Done under Visual Studio 2010 using the excelent Python Tools for Visual Studio
# http://pytools.codeplex.com/
#
# Article on ideas vs execution at: http://blog.databigbang.com/ideas-and-execution-magic-chart/
import urllib2
import json
from datetime import datetime
from ti... | [
"[email protected]"
] | |
9e427939fee2e4d3f52f2a70e6743b49bcc4d34e | cc2fcc1a0c5ea9789f98ec97614d7b25b03ba101 | /st2tests/integration/mistral/test_errors.py | 3280859646406164d582cf4022c8c414ea41ca1f | [
"Apache-2.0"
] | permissive | Junsheng-Wu/st2 | 6451808da7de84798641882ca202c3d1688f8ba8 | c3cdf657f7008095f3c68b4132b9fe76d2f52d81 | refs/heads/master | 2022-04-30T21:32:44.039258 | 2020-03-03T07:03:57 | 2020-03-03T07:03:57 | 244,301,363 | 0 | 0 | Apache-2.0 | 2022-03-29T22:04:26 | 2020-03-02T06:53:58 | Python | UTF-8 | Python | false | false | 6,469 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"[email protected]"
] | |
23c0dd25543411644e979a4ed4368b85c6f49098 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /LeetCode/8.py | 15f59ed2df0e448995c3a574ba4fa386c04f4725 | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
import re
minus = 1
if len(str) == 0:
return 0
str = str.strip()
i = 0
while i < len(str):
if i == 0 and (str[i] == '-' or str[i] ... | [
"[email protected]"
] | |
1f29a592c39022e79242a176b8638f31728d0fba | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/190.py | 4ea85e66ef60f663dfa02f1f700dbd13bd15454c | [] | 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,505 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from heapq import *
def read_ints():
return list(map(int, input().split()))
def solve(t):
N, r, o, y, g, b, v = read_ints()
if r == g != 0:
if o or y or b or v:
print('Case #{}: IMPOSSIBLE'.format(t))
else:
print('Case #... | [
"[email protected]"
] | |
fd95d5fbefacb5b37e09b549986f43d521ae44a2 | 21fec19cb8f74885cf8b59e7b07d1cd659735f6c | /chapter_8/dlg-custom.py | b1338fb1bb4b149b6737cc31b65a691d7ecc67ba | [
"MIT"
] | permissive | bimri/programming_python | ec77e875b9393179fdfb6cbc792b3babbdf7efbe | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | refs/heads/master | 2023-09-02T12:21:11.898011 | 2021-10-26T22:32:34 | 2021-10-26T22:32:34 | 394,783,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | "Custom Dialogs"
'''
Custom dialogs support arbitrary interfaces, but they are also the most complicated to
program. Even so, there’s not much to it—simply create a pop-up window as a
Toplevel with attached widgets, and arrange a callback handler to fetch user inputs
entered in the dialog (if any) and to destroy the wi... | [
"[email protected]"
] | |
1ced0778202d32bf5b35354803964d6939afc6ea | 9ac35a2327ca9fddcf55077be58a1babffd23bdd | /cadence/tests/test_errors.py | 6921b0a8d11e06f2d032e6cc1b4e6d0ef653cd7c | [
"MIT"
] | permissive | meetchandan/cadence-python | f1eb987c135f620607a62495096a89494216d847 | cfd7a48e6da7c289c9ae0c29c94d12d2b05986e4 | refs/heads/master | 2022-12-14T12:46:32.364375 | 2020-09-16T15:50:55 | 2020-09-16T15:50:55 | 260,763,097 | 1 | 0 | MIT | 2020-09-16T15:48:14 | 2020-05-02T19:47:56 | Python | UTF-8 | Python | false | false | 1,347 | py | from unittest import TestCase
from cadence.errors import find_error, InternalServiceError, WorkflowExecutionAlreadyStartedError
from cadence.thrift import cadence_thrift
class TestError(TestCase):
def setUp(self) -> None:
self.internalServiceError = cadence_thrift.shared.InternalServiceError("ERROR")
... | [
"[email protected]"
] | |
bf15a0134c6b3e379d9901b3901eb79bfb8cefa4 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/xm5.py | 38c66cb97e0801b2ac4684ce92a27b4b9fd0b4e8 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
47dd4b0d0b97967cfa1f6829d045d33383c9b932 | 96796bca1f00c5af89c695ff51691e977fda262c | /myEnvironments/multipleApps/multipleApps/urls.py | 1e1daa59868f00d10f30a34bb8adb6c29c2d563a | [] | no_license | LexiPearl/Python-Projects | 5be7ecb11ff7e332daf7b92d23e183511b67444c | c76ce5611d8abd8dfcdea24051cbdfe705a98ffd | refs/heads/master | 2021-01-19T11:35:50.624237 | 2017-04-28T04:13:13 | 2017-04-28T04:13:13 | 87,978,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | """multipleApps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"[email protected]"
] | |
6f93021be2e728eb052b23276ba667565f0f0bb7 | 872ea32f551c803ac497a38667dc272965246561 | /tensorflow_transform/gaussianization.py | 320acb6f67fcda13b616b72cb43fb36c878774ab | [
"Apache-2.0"
] | permissive | tensorflow/transform | 5c4d74c15e7a13ef0901816dfe35b0901d6cb1da | d2bfc2640137324dcad7f7be365e6c851c01f4e9 | refs/heads/master | 2023-08-31T21:54:54.222760 | 2023-08-15T22:45:45 | 2023-08-15T22:46:20 | 81,509,390 | 1,030 | 267 | Apache-2.0 | 2023-08-11T22:57:56 | 2017-02-10T00:36:53 | Python | UTF-8 | Python | false | false | 13,792 | py | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"[email protected]"
] | |
f9c962a39baa75c624eed77ea4bb3ed83b1d85ba | 4851d160a423b4a65e81a75d5b4de5218de958ee | /Number Format.py | 63d6f6c7b330bb5a08ff5f80773c51da98bf8514 | [] | no_license | LarisaOvchinnikova/python_codewars | 519508e5626303dcead5ecb839c6d9b53cb3c764 | 5399f4be17e4972e61be74831703a82ce9badffd | refs/heads/master | 2023-05-05T14:52:02.100435 | 2021-05-25T18:36:51 | 2021-05-25T18:36:51 | 319,399,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # https://www.codewars.com/kata/565c4e1303a0a006d7000127
def number_format(n):
sign = "" if n >=0 else "-"
n = str(abs(n))
if len(n) <= 3: return sign+n
s = []
while len(n)>0:
s.append(n[-3:])
n = n[:-3]
return sign+",".join(s[::-1]) | [
"[email protected]"
] | |
eaeecb735041bbbe5891d953465fba1e4783f1c7 | 43b9eb11e90dbf984f950e4885085c83daa719b2 | /migrations/versions/339a6b145e56_user_status.py | f81e899bdc79017e6803c52bc8c09c0dbee04e15 | [
"Apache-2.0"
] | permissive | dpdi-unifor/thorn | 8ec7982812fe07906567514ad6628154ea99f620 | 37695c66607f60b29afd25ac512c0242079e1342 | refs/heads/master | 2023-01-02T19:48:27.409446 | 2020-09-09T14:31:51 | 2020-09-09T14:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """User status
Revision ID: 339a6b145e56
Revises: 9f52309f0d44
Create Date: 2020-03-26 11:53:32.044767
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '339a6b145e56'
down_revision = '9f52309f0d44'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"[email protected]"
] | |
57260f6b5d40f289986b5d8fb601c421eafeae75 | 35c1a591ce5ea045b72a1d9f89fc0d8f46cdd78b | /rice/deps/prompt_toolkit/application/dummy.py | ebe2f334fe11c7f8340bb99e392d2af6fc46a457 | [
"MIT"
] | permissive | jimhester/rice | 0a0aef48ccab3d6b2d7f700cc311977e8c4a3740 | 61cafc717d9398a57ecd2afb2a086afe1c676e30 | refs/heads/master | 2021-07-07T21:37:00.826756 | 2017-09-27T14:02:49 | 2017-09-27T14:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from __future__ import unicode_literals
from .application import Application
from prompt_toolkit.input import DummyInput
from prompt_toolkit.output import DummyOutput
__all__ = (
'DummyApplication',
)
class DummyApplication(Application):
"""
When no `Application` is running,
`prompt_toolkit.applicati... | [
"[email protected]"
] | |
9fa6656765c702e8f6936b48d78042e07de88013 | 3856dbedcf846f9845290e9b2efa4d18e300623d | /test/test_user_report.py | 25a240a1bb120206353d2d97b51104617f0cbe91 | [] | no_license | Valandur/webapi-client-python | 5b314da41803f5b55a5c6cce62d2384b86d0fa37 | 8502726bf3facb17c6fa681faf0f600207eb61ae | refs/heads/master | 2022-02-04T21:45:37.686703 | 2019-07-23T12:11:47 | 2019-07-23T12:11:47 | 113,748,693 | 2 | 0 | null | 2019-01-09T16:07:31 | 2017-12-10T12:38:14 | Python | UTF-8 | Python | false | false | 3,145 | py | # coding: utf-8
"""
Web-API
Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELET... | [
"[email protected]"
] | |
3014d12db736cc4a036c7172f8e025c97af34d2f | aee7a6cca6a2674f044d7a1cacf7c72d7438b8b1 | /cup_skills/stats/average_rewardgp_reset_good_7.py | 2458b18354d006e66a6d8060bf125fd8d3f27459 | [] | no_license | lagrassa/rl-erase | efd302526504c1157fa5810e886caccba8570f1b | 0df5c8ce4835c4641a2303d11095e9c27307f754 | refs/heads/master | 2021-05-13T13:36:12.901945 | 2019-08-01T02:13:15 | 2019-08-01T02:13:15 | 116,709,555 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | 52.72727272727272,45.45454545454545,35.45454545454545,38.18181818181819,19.090909090909093,44.54545454545455,20.909090909090907,52.72727272727272,51.81818181818182,50.0,-100.0,28.18181818181818,-100.0,28.18181818181818,39.09090909090909,49.09090909090909,35.45454545454545,38.18181818181819,31.818181818181817,52.7272727... | [
"[email protected]"
] | |
2bd40a80b828137202059058e88f7504df2e6470 | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /boot/hard/2017.py | 36601afabce20178c45edae2db36c8014b9864eb | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | q = int(input())
l, r = [0] * q, [0] * q
for i in range(q):
l[i], r[i] = map(int, input().split())
mini = min(min(l), min(r))
maxi = max(max(l), max(r))
ans = [0] * (maxi + 1)
prime = [0] * (maxi + 1)
def judge_prime(n):
for i in range(2, int(n ** 0.5) + 1):
if n % i == 0:
return False
... | [
"[email protected]"
] | |
6018b78f698286b8dcc5c68df4f3473b415eb318 | bf8870d923adca9877d4b4dacef67f0a454727a8 | /_other/decorator.py | 23fb94a26518ba636f1e500656ad6d7d4a7a468e | [] | no_license | artkpv/code-dojo | 6f35a785ee5ef826e0c2188b752134fb197b3082 | 0c9d37841e7fc206a2481e4640e1a024977c04c4 | refs/heads/master | 2023-02-08T22:55:07.393522 | 2023-01-26T16:43:33 | 2023-01-26T16:43:33 | 158,388,327 | 1 | 0 | null | 2023-01-26T08:39:46 | 2018-11-20T12:45:44 | C# | UTF-8 | Python | false | false | 922 | py | import threading
def persistant_caller(max_calls=None, timeout_ms=None):
def actual(function):
def persistant_function(*args, **kwargs):
count = 0
while True:
try:
count += 1
return function(*args, **kwargs)
ex... | [
"[email protected]"
] | |
eacb9522092aa5e0ceb98aa10b3504cb2ba0ef10 | aceaf99df06081676f33145ff104009fcf30e922 | /core/permissions.py | 709d90b2de6a29e2b5eb15e460ad2a721747fd68 | [] | no_license | jonatasoli/process_monitoring | 2222d692b5255cbdf1e982940bf4f8a749257295 | 6ba2b3cf68b8bf8be6e1a4547b98c09e08d91794 | refs/heads/master | 2021-01-24T01:59:50.231667 | 2018-02-27T20:00:52 | 2018-02-27T20:00:52 | 122,831,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from rest_framework import permissions
class UpdateOwnProfile(permissions.BasePermission):
"""Allow users to edit their own profile"""
def has_object_permission(self, request, view, obj):
"""Check user is trying to edit their own profile"""
if request.method in permissions.SAFE_METHODS:
... | [
"[email protected]"
] | |
c1bcd65d34b7a3e59e2d47a48b25316f3ee6c058 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/mmdet/models/mask_heads/fcn_mask_head.py | 26cb3c0ff0c362870863dc2fddb5f9a2379cb87e | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 8,012 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"[email protected]"
] | |
f488fb1b598893609ff4510a7ee334fda84ad105 | 212724dd876c15ef801fb781e907b1c7dd08f4ae | /skyline/webapp/gunicorn.py | 50d0f6817e3af53960712284da80d1324840b628 | [
"MIT"
] | permissive | wfloutier/skyline | b9e769cddccdefeeb7c7cc258524bbf489f9d5eb | b12758dc11564de93c7ad76c1f8ed3327db78aa4 | refs/heads/master | 2020-08-08T03:19:40.283298 | 2019-10-09T11:05:13 | 2019-10-09T11:05:13 | 213,693,601 | 0 | 0 | NOASSERTION | 2019-10-08T16:20:15 | 2019-10-08T16:20:15 | null | UTF-8 | Python | false | false | 1,378 | py | import sys
import os.path
import logging
# import multiprocessing
# import traceback
from logging.handlers import TimedRotatingFileHandler, MemoryHandler
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
sys.path.insert(0, os.path.dirname(__file__))
import settings
bind = '%s:%s' %... | [
"[email protected]"
] | |
f96b6739d30de98f438bfc15e544eb95f5523574 | 4a7a6f629e4dd16b5ba3db23a6b6369dbb19c10d | /a038- 數字翻轉.py | f4df8c96273b40ed14b01a7ac42e057c5349a0a8 | [] | no_license | jlhung/ZeroJudge-Python | 1170fc70ffc6a1a577d035cd70289529d2bbc07e | 356381363891ba05302736746c698ea85668af50 | refs/heads/master | 2022-12-08T06:42:12.160731 | 2020-09-03T12:04:49 | 2020-09-03T12:04:49 | 282,219,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | '''
20200723 v1.0 jlhung "0"也要輸出 要消除尾數的0
'''
while True:
try:
n = int(input())
if n == 0:
print(0)
break
while n % 10 == 0:
n //= 10
print(str(n)[::-1])
except(EOFError):
break | [
"[email protected]"
] | |
3bdbd3cfdd89c89ececba6bd06fdd7af1e184e39 | 6e68584f2819351abe628b659c01184f51fec976 | /Centre_College/CSC_339_SP2015/vindiniumAI/pybrain/optimization/memetic/inversememetic.py | f38eec205b10fd0408828968956d69f6cf8c206b | [
"WTFPL"
] | permissive | DanSGraham/code | 0a16a2bfe51cebb62819cd510c7717ae24b12d1b | fc54b6d50360ae12f207385b5d25adf72bfa8121 | refs/heads/master | 2020-03-29T21:09:18.974467 | 2017-06-14T04:04:48 | 2017-06-14T04:04:48 | 36,774,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | __author__ = 'Tom Schaul, [email protected]'
from memetic import MemeticSearch
class InverseMemeticSearch(MemeticSearch):
""" Interleaving local search with topology search (inverse of memetic search) """
def _learnStep(self):
self.switchMutations()
MemeticSearch._learnStep(self)
... | [
"[email protected]"
] | |
9866fcf46bab6408ee2d067adcfed3f1ed0287ad | fcdfb4231b64e38a5f6611057097def815a6a987 | /baidumap/tests/autopilot/baidumap/tests/__init__.py | 0bf71b2ca06c109fd48386845c2031198789f74a | [] | no_license | liu-xiao-guo/baidumap | f2967efc845347bb40769ea7202bb8d4b4c6e66d | e6ba8ba6bb3df4e2956af55414e5e8a1a34ac06a | refs/heads/master | 2021-01-10T08:45:01.423685 | 2016-03-23T04:47:49 | 2016-03-23T04:47:49 | 54,531,442 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
"""Ubuntu Touch App Autopilot tests."""
import os
import logging
import baidumap
from autopilot.testcase import AutopilotTestCase
from autopilot import logging as autopilot_logging
import ubuntuuitoolkit
from ubuntuuitoolkit import base
log... | [
"[email protected]"
] | |
e29850d4bc107cdd9a707c816fea75d159dd1ae1 | 4cae2a0808d0f200a5f91a9724419a081b8c3eb0 | /create_biometric_users/models/ecube_bio_machine.py | 57453c1b50ef85bdab1500893f326346dbd611f0 | [] | no_license | khyasir/Latitude_Custom_Modules | 7392ba47da8c172f46902d32454e13614b5d5e8b | 6758fc2a97073609dc305e71571f9ea42916f71b | refs/heads/master | 2021-05-02T12:04:37.953490 | 2018-02-08T08:52:24 | 2018-02-08T08:52:24 | 120,735,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from openerp import models, fields, api
class EcubeMachine(models.Model):
_name = 'ecube.machine'
_description = 'EcubeMachine'
name = fields.Char('Machine Name')
machine_ip = fields.Char('Machine IP')
machine_status = fields.Boolean('Machine Status') | [
"[email protected]"
] | |
8258490a8523ca5ddcc472087885ef1dc25aa68b | f2cc1dc87486833613fb83543c68784849fd7319 | /subtests/test_search_item.py | e063b884b30225a9c67e4b1ebc4d511584d3914c | [] | no_license | EduardoUrzuaBo/platziChallenge | cc953e2615653d575cf079bceea4fdcad75a4da0 | a8f06c98f14ee58db47848ec287dcd105b685dcb | refs/heads/master | 2023-07-29T10:44:16.469765 | 2021-09-05T20:14:42 | 2021-09-05T20:14:42 | 403,379,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from src.testproject.decorator import report_assertion_errors
"""
This pytest test was automatically generated by TestProject
Project: Test Projects
Pack... | [
"[email protected]"
] | |
92aa7a25070d981b4443680ae1a1621f0f40d582 | ce4d1c3a1522f382d9b3f73b7f126e7a3616bfb5 | /projects/DensePose/densepose/data/datasets/coco.py | ddd03c25b6956e8afa7d78ac0a259d255fb51541 | [
"Apache-2.0"
] | permissive | davidnvq/detectron2 | 6c01512326687e86ab50c0f89af4e926c0007ae6 | eaca19840e5db014c3dd37dee9920d780b3b6165 | refs/heads/master | 2022-04-26T03:29:08.080258 | 2020-04-24T09:05:07 | 2020-04-24T09:05:07 | 258,421,912 | 1 | 0 | Apache-2.0 | 2020-04-24T06:08:26 | 2020-04-24T06:08:25 | null | UTF-8 | Python | false | false | 4,143 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import os
from dataclasses import dataclass
from typing import Any, Dict, Iterable, Optional
from detectron2.data import DatasetCatalog, MetadataCatalog
from detectron2.data.datasets import load_coco_json
DENSEPOSE_KEYS = ["dp_x", "dp_y", "dp_I", ... | [
"[email protected]"
] | |
a071d653f678661efe5f76d8153b380eb2aa9da1 | 5456320f03ed956ff7b1ad6a9539d65a602c71d4 | /mozCingi/fuzzers/mutagen/mutagenExecutor.py | 03e99823055ea5ebf8b00cf285f353720184fc6d | [] | no_license | ShakoHo/mozCingi | 9020cbb4aa65308ca5fd5bf9c074230f1fddb751 | 39239411abc840cd58a05f1fa41a24ae7cf9695f | refs/heads/master | 2016-08-12T12:51:16.331671 | 2016-03-25T09:35:54 | 2016-03-25T09:35:54 | 49,626,247 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | __author__ = 'shako'
import os
from mozCingi.util.mozITPWrapper import MozITPWrapper
from mozCingi.steps.executor import AbsExecutor
class MutagenExecutor(AbsExecutor):
DEFAULT_EXEC_LOG_NAME = "exec.log"
def launch_execute_file(self):
mozitp_obj = MozITPWrapper()
pack_file_name = self.fuzzer_na... | [
"[email protected]"
] | |
a3dbfd07afbe0391b734bd981eafc9d8ac28b53b | 64fe4fcaeb71b5e4d448abed92e03bebd838b1a2 | /Models/Form_Factors.py | b5559332237915e69187a8b4ae18f8282d5fa4c1 | [] | no_license | Caster89/Scattering_Analysis | ea2ddbd9311f0beebae6f083a37d843f44d3d00b | 2bd14efb2d1bb6c1af5173a8ed98b668dbfc4673 | refs/heads/master | 2021-01-19T16:04:41.322316 | 2017-12-17T16:22:46 | 2017-12-17T16:22:46 | 88,247,591 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,797 | py | from config import _AvlbUnits, _UnitsSymbols,_UnitsConv, _AvlbSASFit, _AvlbSASFitDic, _AvlbSASFitDicInv, _lmfitModels, _lmfitModelFunctions, _lmfitDistFunctions
import numpy as np
import scipy as sp
from scipy import signal
from scipy import interpolate
from scipy.integrate import dblquad, tplquad
import logging
import... | [
"="
] | = |
0bea0ecced4c778b22f949d0bfa1c3a5954fc139 | e0519908caa23bef1873ff69ebd17c5d81f741e1 | /calabiyau/views/sessions.py | 23c24167a6ff049d9af607d405a9047b9d2be499 | [
"BSD-3-Clause"
] | permissive | TachyonicProject/calabiyau | 2fb7af37bd656a686a5f741cadd082b2500718ff | 415a8ada4a93ee84c4776e89c9442af328dcfdd6 | refs/heads/latest | 2020-05-02T04:14:43.953841 | 2019-12-06T04:12:39 | 2019-12-06T04:12:39 | 177,745,608 | 0 | 3 | NOASSERTION | 2019-12-06T04:12:40 | 2019-03-26T08:31:25 | Python | UTF-8 | Python | false | false | 4,448 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2020 Christiaan Frans Rademan <[email protected]>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the ... | [
"[email protected]"
] | |
8bcd9aa863af02fbda6ca89f80c595b263e35e8a | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/client/api/authorization_api.py | 420284fe2740cbf841d0d542f50e1b597a20ae81 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 4,144 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import r... | [
"[email protected]"
] | |
dc765d76018ce6cd8317283edeebe0aa3727ded8 | 86b293ef3df8a276c97db49f25e5a9c36822776e | /0x08-python-more_classes/1-rectangle.py | a89c2a3ea1af8ed99a9cdb92d6e584860d74097b | [] | no_license | tayloradam1999/holbertonschool-higher_level_programming | 3c6ceab832ad85448df320a437ddf6c39130f0dd | 70068c87f3058324dca58fc5ef988af124a9a965 | refs/heads/main | 2023-08-19T16:13:04.240756 | 2021-09-28T00:37:03 | 2021-09-28T00:37:03 | 361,856,354 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | #!/usr/bin/python3
"""
This module defines a class 'Rectangle' that
defines a rectangle based on '0-rectangle.py'
"""
class Rectangle:
"""Defines a rectangle with a private instance attribute 'width'
and 'height'"""
def __init__(self, width=0, height=0):
self.width = width
self.height = h... | [
"[email protected]"
] | |
0d155686d2b7d638897fc2d02dc556dd3da8babb | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /other_time/last_part_and_thing/problem_or_world.py | e42537b5fd907d85a61cab4911bd521a6bc81f4a | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#! /usr/bin/env python
def feel_eye(str_arg):
early_life(str_arg)
print('find_next_part_about_small_person')
def early_life(str_arg):
print(str_arg)
if __name__ == '__main__':
feel_eye('take_company_at_little_case')
| [
"[email protected]"
] | |
0dac5829221d058f43409e95e5d6afb11cbbcefd | 2e2c9cf0bf1f6218f82e7ecddbec17da49756114 | /day14ddt_opnpyxl/day14_封装Hand_excel/demo5列表推导式.py | 450b10ac6ae56ab647b20b0e36b9b6e0c8cf6283 | [] | no_license | guoyunfei0603/py31 | c3cc946cd9efddb58dad0b51b72402a77e9d7592 | 734a049ecd84bfddc607ef852366eb5b7d16c6cb | refs/heads/master | 2023-03-02T20:50:02.052878 | 2021-02-05T06:17:24 | 2021-02-05T06:17:24 | 279,454,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """
============================
Author:小白31
Time:2020/8/2 22:03
E-mail:[email protected]
============================
"""
# 生成1-100到列表
# li = []
# for i in range(1,101):
# li.append(i)
#
# print(li)
#
# print(list(range(1,101)))
# 生成 ["学号101","学号102","学号103"..."学号150"]
li = []
for i in range(101,151):
li.appe... | [
"[email protected]"
] | |
013ad4f8eb3ba02e9770aed25cb228d75475289b | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/030d0c5ebc377ba768e6bdbbc82d64a6cfcbb7d4__main__.py | 030d0c5ebc377ba768e6bdbbc82d64a6cfcbb7d4 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 580 | py | import gi
from ghue.controller import Controller
from ghue.device.hue import HueDeviceManager
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GLib
import phue
from .application import GHueApplication
if __name__ == '__main__':
GLib.set_application_name("Philips Hue")
controller = Controller(... | [
"[email protected]"
] | |
8817c6128119450c0fb5105ac6f32c7a7f78a753 | c57ce2b6aab3350dedf10942f893b86951076fbc | /link/mongo/__init__.py | 092c06d8331b86e49a60f2566d0767944c5d7e11 | [] | no_license | linkdd/link.mongo | b1c5e66b0519aecdb9d5832d1f74ea1f4e7e8bd4 | 3cd9d264a4e0e44726767385add871c67af2928c | refs/heads/master | 2020-04-10T20:34:23.847508 | 2016-09-02T21:48:22 | 2016-09-02T21:48:22 | 60,538,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | # -*- coding: utf-8 -*-
__version__ = '0.10'
CONF_BASE_PATH = 'link/mongo'
| [
"[email protected]"
] | |
92bda0387d9d98eb70e6077ff9a9ac8da8450137 | dd65e3cbfa3fb5ef378e83f810d67822db396269 | /oracle_mon/views.py | 6abc95f240b3de063267206dfd9120e30846c67d | [] | no_license | ampere1984/dbmon | a385ffa43377df9a203cee443c648f846782f035 | 60a39bb311008e33e08c9df7547be6142bbef6b0 | refs/heads/master | 2020-04-22T02:45:08.430898 | 2019-01-29T09:45:37 | 2019-01-29T09:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,217 | py | #! /usr/bin/python
# encoding:utf-8
from django.shortcuts import render
from django.shortcuts import render,render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
# Create your views here.
from django.contrib.auth import ... | [
"[email protected]"
] | |
a6610f3481b08658f371b6904911bc55a74f4c12 | ff481a22256d045e28403f4ee65480dc3d6ce1d9 | /gerencia/views.py | 073e9d8eb381f5ced2498a8713c677de275c3ce7 | [] | no_license | redcliver/inomont | 83fa6501cbca74e79fc1a42509e5bb5c05eea2dd | 0b8d6511618b6509a5208c8a5d9f82903de8da87 | refs/heads/master | 2023-04-27T03:22:57.138482 | 2020-01-14T21:22:19 | 2020-01-14T21:22:19 | 221,098,331 | 1 | 0 | null | 2023-04-21T20:40:39 | 2019-11-12T00:51:22 | CSS | UTF-8 | Python | false | false | 65,237 | py | from django.shortcuts import render
from website.models import funcaoModel, cadastroSite, fornecedorModel, colaboradorModel, clienteModel, contaPagarModel, contaReceberModel
import datetime
from django.contrib.auth.models import User
from django.utils.crypto import get_random_string
# Create your views here.
def home... | [
"[email protected]"
] | |
a59ca1f99c5f53cd1737d4fcb2670dc70f7ec927 | ca22c441ec0eabf61b3b415fc9be8453855481cf | /rapid/__init__.py | b47d1e365bbc7cdc678e8f7640ddc873208950a7 | [
"MIT"
] | permissive | linhao1998/rapid | cc1d45a119a4c7c3c384ad708c3220226c5c7edd | 1611e47fffac0f61e6c07ad5388eb2368a426f06 | refs/heads/main | 2023-06-16T16:24:57.498657 | 2021-07-08T14:48:47 | 2021-07-08T14:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from gym.envs.registration import register
register(
id='EpisodeInvertedPendulum-v2',
entry_point='rapid.mujoco_envs:EpisodeInvertedPendulumEnv',
max_episode_steps=1000,
reward_threshold=950.0,
)
register(
id='EpisodeSwimmer-v2',
entry_point='rapid.mujoco_envs:EpisodeSwimmerEnv',
max_episo... | [
"[email protected]"
] | |
5e8e9e4cc04b87577c04e4b09ce745dd68a85d04 | 706fcc0630a2a1befa32e8d0e9e0a61978dcc947 | /config.py | 7fcc7def7a3c78d71daf7c805bc812e5aabcc542 | [] | no_license | paulgowdy/hal_split | a8f731a5a6e77f605d45de345d1c48bbc774738d | f618a6b1a132e192f4778c237a92c86f24540ca0 | refs/heads/master | 2022-11-17T00:51:37.343265 | 2020-07-07T22:25:49 | 2020-07-07T22:25:49 | 277,934,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | BOARD_SIZE = 9
MAX_NB_SHIPS = 2
NB_SHIP_ACTIONS = 5
#TRAIN_EPISODES = 10
STEPS_PER_EP = 200
GAMMA = 0.99
PPO_BATCHES = 10000000
PPO_STEPS = 32
LOSS_CLIPPING = 0.2
ENTROPY_LOSS = 5e-2
| [
"[email protected]"
] | |
7dbd29bffaf83e67b074c5c83a4b80d149c08915 | b5d6219ac738ed05485439540f38d63d21694c51 | /DAT/ED6_DT01/T0401.帕赛尔农场.py | a052afc836ef6b9539bb500251eaf69edad7b457 | [] | no_license | otoboku/ED6-FC-Steam-CN | f87ffb2ff19f9272b986fa32a91bec360c21dffa | c40d9bc5aaea9446dda27e7b94470d91cb5558c5 | refs/heads/master | 2021-01-21T02:37:30.443986 | 2015-11-27T07:41:41 | 2015-11-27T07:41:41 | 46,975,651 | 1 | 0 | null | 2015-11-27T10:58:43 | 2015-11-27T10:58:42 | null | UTF-8 | Python | false | false | 55,311 | py | from ED6ScenarioHelper import *
def main():
# 帕赛尔农场
CreateScenaFile(
FileName = 'T0401 ._SN',
MapName = 'Rolent',
Location = 'T0401.x',
MapIndex = 13,
MapDefaultBGM = "ed60084",
Flags ... | [
"[email protected]"
] | |
21b9c07f5745ad1954c3ca3af77d74dac67620d0 | bfb113c3076f5b0570953583e7a2321c774d73ea | /venv/Scripts/easy_install-3.8-script.py | 88b18d55d3cfc7b1e4ca627aaafb9710ef93d7c3 | [] | no_license | gsudarshan1990/Training_Projects | 82c48d5492cb4be94db09ee5c66142c370794e1c | 2b7edfafc4e448bd558c034044570496ca68bf2d | refs/heads/master | 2022-12-10T15:56:17.535096 | 2020-09-04T06:02:31 | 2020-09-04T06:02:31 | 279,103,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #!E:\Training_Projects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"[email protected]"
] | |
543db5403219ea73e88c510b470c95cc4e6a7ff0 | 18c8a7cb838702cdf1c4d4e9f66b2cffd63130aa | /{{cookiecutter.project_slug}}/config/settings/test.py | 69b8d3be1f0ba85b3bda931e3cd01983f435d82f | [
"MIT"
] | permissive | DiscordApps/launchr | c304008a0d05bdf2d3ed77ada365f80d861f307d | 61049879591ba851ce50d1651abc7193aae4aca0 | refs/heads/master | 2022-02-26T21:22:36.656108 | 2019-10-11T13:05:35 | 2019-10-11T13:05:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KEY",
default="!!!SET DJ... | [
"[email protected]"
] | |
26d8aaa4d2b005645c48370b880a005933c1fdc0 | 9129a791f45cd3b25d8a5da57ee6936bfe4e73a2 | /learn-django/jango/Scripts/pip3-script.py | d5c70d9b707ed3b9eea1c0bec34cc59c4c2ec8ba | [] | no_license | Sunsetjue/Django2.0 | 94be49ed9d65dab6398ab8f0ddd02bb1871afb6b | 102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8 | refs/heads/master | 2020-04-22T03:25:24.014196 | 2019-02-15T16:18:23 | 2019-02-15T16:18:23 | 170,086,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!C:\Users\l\learn-django\jango\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"10073631822qq.com"
] | 10073631822qq.com |
63309f5b16e32ac3d1a5c83f1cabc9d2e02f0132 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/workbook/test_write_workbook_view.py | 683d301b318446951f7cca09b7fc061d5ee04506 | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 4,953 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, [email protected]
#
import unittest
from ...compatibility import StringIO
from ...workbook import Workbook
class TestWriteWorkbookView(unittest.TestCase):
"""
... | [
"[email protected]"
] | |
f36bac8cb3c65b13ba04323591cf99f819b50868 | 431c8beacf2b1a54982bf2d06b3dc5cebba87c69 | /buttontest.py | 1b228e5bfeb4437a78e6f55ab31ba9c5574807e5 | [
"MIT"
] | permissive | watrt/micropython-tft-gui | 290c27ba810943033d26214b7f9ec38129fa774e | 1ae9eafccb7084093eb80354e9e30d1f02367221 | refs/heads/master | 2020-12-10T06:49:51.299653 | 2019-05-25T07:30:57 | 2019-05-25T07:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | # buttontest.py Test/demo of pushbutton classes for Pybboard TFT GUI
# The MIT License (MIT)
#
# Copyright (c) 2016 Peter Hinch
#
# 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 rest... | [
"[email protected]"
] | |
f17ed08bf47fc77482e427e5e7c87e52a0ab5d46 | 756d50be34245115ad28e79f4dfceb5516d17225 | /relsearch.py | af268beec2663fa43b51c0f5de63ab395fea2d2b | [] | no_license | abyssonym/gg3 | f1ce189a2a70786da8b2ab78281b39615fc59af2 | 1e6adadc6765d339ebbd7ca650d9b435d56fb366 | refs/heads/master | 2021-01-18T13:51:25.702975 | 2017-11-16T22:26:30 | 2017-11-16T22:26:30 | 34,976,112 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | from sys import argv
from string import ascii_lowercase
from shutil import copyfile
filename = argv[1]
outfile = "test.smc"
searchstr = argv[2].lower()
if '.' in searchstr:
searchstr = map(int, searchstr.split('.'))
else:
numdict = dict([(b, a) for (a, b) in enumerate(ascii_lowercase)])
searchstr = [numdi... | [
"none"
] | none |
e1bc080590be397ae15d86246e7de108caaf0d0f | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/benanne_kaggle-ndsb/kaggle-ndsb-master/dihedral_ops.py | e5d8d87655fb7072e1ad79d489e425aaca16ac92 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 12,079 | py | import numpy as np
import theano
import theano.sandbox.cuda as cuda
from pycuda.compiler import SourceModule
import theano.misc.pycuda_init
class PyCudaOp(cuda.GpuOp):
def __eq__(self, other):
return type(self) == type(other)
def __hash__(self):
return hash(type(self))
def __str__(sel... | [
"[email protected]"
] | |
761cee9bc33bc3cdd7d2e32c4faecdbf2ed7481f | bab76d8cf312ee3eae66472b6abd119903e17e8e | /CountAndSay.py | 13420321dce191e20923da4c08ead73e60c68669 | [] | no_license | lixuanhong/LeetCode | 91131825d5eca144a46abe82a2ef04ea1f3ff025 | 48d436701840f8c162829cb101ecde444def2307 | refs/heads/master | 2020-04-05T02:54:52.473259 | 2018-11-07T05:31:30 | 2018-11-07T05:31:30 | 156,494,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
The count-and-say sequence is the sequence of integers with the first five terms as following:
1. 1
2. 11
3. 21
4. 1211
5. 111221
1 is read off as "one 1" or 11.
11 is read off as "two 1s" or 21.
21 is read off as "one 2, then one 1" or 1211.
Given an integer n, generate the nth term of the coun... | [
"[email protected]"
] | |
efe854c65e8348927573faaf27d384468a2f32dc | a90d490bf8a9df04334746acbafa5f8dad20c677 | /recipes/migrations/0009_auto_20160410_2021.py | 6dc28757abd45521c92ee402fe3f6ff6cb9d9162 | [
"MIT"
] | permissive | vanatteveldt/luctor | 8e8ffc20c05cc20a241c677bbe5400a5d71f2882 | 9871fa7afa85f36353b3f4740f73ae3e36d68643 | refs/heads/master | 2023-03-15T20:05:29.220407 | 2023-03-08T22:06:53 | 2023-03-08T22:06:53 | 14,639,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-10 20:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('recipes', '0008_auto_20160405_0044'),
]
operations ... | [
"[email protected]"
] | |
171f8ff483c3386ba48cab36f6dbfbfd0b5a1471 | 72ab330a358e3d85fb7d3ce29f9da3b9fb1aa6b8 | /quickbooks/objects/timeactivity.py | 459175558f4a1afa9c1e9e0294a3ead28c38c5c9 | [
"MIT"
] | permissive | fuhrysteve/python-quickbooks | d21415c2eb0e758dece4dbdcd3890361781f9ca5 | c017355fa0e9db27001040bf45bc8c48bbd1de45 | refs/heads/master | 2021-01-21T16:04:24.393172 | 2016-01-03T17:50:50 | 2016-01-03T17:50:50 | 48,954,178 | 0 | 0 | null | 2016-01-03T17:18:51 | 2016-01-03T17:18:49 | null | UTF-8 | Python | false | false | 1,302 | py | from six import python_2_unicode_compatible
from .base import Ref, QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin, AttachableRef
@python_2_unicode_compatible
class TimeActivity(QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin):
"""
QBO definition: The TimeActivity ent... | [
"[email protected]"
] | |
82cbd2304696415df1c92ba0cedca7acc29983b8 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/mdlyud002/question2.py | ebdc1dede1c8a1ab523e6c9a607a685c9867f7a7 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Yudhi Moodley
# Assignment 6 - Vector Calculator
# 23/04/2014
import math
vectorA = []
vectorB = []
addition = []
dotProduct = []
normalization = []
def vector_calculator():
vector1 = input("Enter vector A:\n")
vectorA = vector1.split(' ') # splits the input
vector2 = input("Enter ... | [
"[email protected]"
] | |
6f747b5fb9f472c6c4e89b6ca3610f1726436bee | a5fc521abe901fe9db46a605ec0ba71635bc308b | /managment/migrations/0001_initial.py | 059c4d114c5c4f2ebd8c9b576271218cb6f43401 | [] | no_license | revankarrajat/rms | 020b3736fb0855e547ffe7b3f91eae609cee80c7 | ed68bf427ab5612ae7f3a5308cd8075e19fc1daf | refs/heads/master | 2020-04-12T18:21:32.834786 | 2018-12-24T11:01:57 | 2018-12-24T11:01:57 | 162,676,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,218 | py | # Generated by Django 2.1.4 on 2018-12-14 06:29
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"[email protected]"
] | |
d4a8da26e252085f122e551fb397f2999bd76eec | 17c9bdd9f740f5549c2ae95c22d0f42907af6bf4 | /beautiful.py | 74906ad989a3ec033998b8f2093f95878b9d36ae | [] | no_license | vim-scripts/beautiful-pastebin | e8a2510aaeff1d782f7fd7552c5475edc1f9a380 | 854f3373b0b8e52a697e9856486906311efd138c | refs/heads/master | 2021-01-13T02:14:33.027077 | 2011-06-08T00:00:00 | 2011-06-23T22:51:24 | 1,865,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #File: beautiful.py
#Author : Aman Agarwal <[email protected]>
#License : MIT
#version 1.0
#Dependencies : BeautifulSoup <http://www.crummy.com/software/BeautifulSoup/>
#
import urllib2
from BeautifulSoup import BeautifulSoup
import sys
data=urllib2.urlopen(sys.argv[1]).read();
soup = BeautifulSoup(''.join(da... | [
"[email protected]"
] | |
4b18bbafce196b41f74a02a0ded69010dc374a94 | 569db39ea53d67b695d5573e567e1b85cd83176f | /testcases/tutu/Android/AITest/__init__.py | 9596f08c4a577f19f599f5dd0c5ffe3af31631ff | [] | no_license | 1weifang/tutuandroidautotest | f38d9c86023e4d3857b04a8860f9d5ec810c485d | f3fb49eacee27682f478cb8b27a5e8f38d62e2b1 | refs/heads/master | 2022-11-15T04:48:25.333206 | 2020-07-14T03:38:16 | 2020-07-14T03:38:16 | 279,472,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/11/19 9:54
# @Author : Durat
# @Email : [email protected]
# @File : __init__.py.py
# @Software: PyCharm | [
"1qaz!QAZ1"
] | 1qaz!QAZ1 |
b212f30ce3a4c9af92e433cec3f79e72b4586b9f | c71a1053315e9277daf01f2b6d3b7b3f9cc77075 | /menu/urls.py | 7755a066a01883ca36d599c7d6927de8a072fdae | [] | no_license | ingafter60/dinner | f59bb42135d5dd8eb9a42bf665ea1dfc30e01937 | 08b4a33d899ffa45bb7f56b58cfef97703bd2083 | refs/heads/master | 2020-07-03T20:28:27.635316 | 2019-08-18T03:14:44 | 2019-08-18T03:14:44 | 202,040,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # menu urls.py
from django.urls import path
from menu import views
app_name = 'menu'
urlpatterns = [
path('', views.menuList, name='menuList'),
path('<slug:slug>', views.menuDetail, name='menuDetail'),
] | [
"[email protected]"
] | |
5b9b16d3f350192012b8a8d223b402d78902b5c8 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Spacy/source2.7/spacy/lang/id/tokenizer_exceptions.py | 3bba57e4cbd39db28e872da9aa8cb1051962e24a | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,722 | py | # coding: utf8
from __future__ import unicode_literals
import regex as re
from ._tokenizer_exceptions_list import ID_BASE_EXCEPTIONS
from ..tokenizer_exceptions import URL_PATTERN
from ...symbols import ORTH
_exc = {}
for orth in ID_BASE_EXCEPTIONS:
_exc[orth] = [{ORTH: orth}]
orth_title = orth.title()
... | [
"[email protected]"
] | |
5506648e5839441f8042bcb8beadaa3a9c211d93 | ef0220b65d3ac860d33d77b6a8eef74d2df3b81b | /mod10/flask/venv/bin/wheel-3.8 | e1b86e3bb58c1e5edfcfb27af7a4be942b7afe75 | [] | no_license | safwanvk/py | b9922df211fe7f4356be3221c639cdd6d3dcf2d8 | 52482a90fb39f15846987607f1988c50f07e758b | refs/heads/master | 2022-12-12T12:21:51.335733 | 2020-09-07T08:21:49 | 2020-09-07T08:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | 8 | #!/home/safwan/xanthron/mod10/flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | |
51dd65811d72d74966faf28d8b397f1eb74579b0 | ddda55fcfc84ac5cd78cfc5c336a3df0b9096157 | /components/ble/mynewt-nimble/docs/conf.py | 629b8a4f14b0e686d9f12357cc72d9f04ee83c5c | [
"LicenseRef-scancode-gary-s-brown",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | liu-delong/lu_xing_xiang_one_os | 701b74fceb82dbb2806518bfb07eb85415fab43a | 0c659cb811792f2e190d5a004a531bab4a9427ad | refs/heads/master | 2023-06-17T03:02:13.426431 | 2021-06-28T08:12:41 | 2021-06-28T08:12:41 | 379,661,507 | 2 | 2 | Apache-2.0 | 2021-06-28T10:08:10 | 2021-06-23T16:11:54 | C | UTF-8 | Python | false | false | 5,476 | py | # -*- coding: utf-8 -*-
#
# Mynewt documentation build configuration file, created by
# sphinx-quickstart on Tue Jan 10 11:33:44 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... | [
"[email protected]"
] | |
9b209805bbc3e5381db705ee82f66c38d2e5ef39 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.15/_downloads/plot_compute_rt_average.py | fd3b17129bcbbdb519a78a19a35ccce09b59e38c | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 1,912 | py | """
========================================================
Compute real-time evoked responses using moving averages
========================================================
This example demonstrates how to connect to an MNE Real-time server
using the RtClient and use it together with RtEpochs to compute
evoked respo... | [
"[email protected]"
] | |
3da13c58c4199d31c98e3b0c81e7ab5d55abad24 | a873f3cd46a10ad879fc56d78e1f533d8bf486c0 | /z_python-stu1/first/廖雪峰/迭代.py | 4115de44525792f329471d5da4b183b906436215 | [] | no_license | shenhaiyu0923/resful | d0301b39363e6b3d3659f62fa4a9b2532ebcd225 | 1e66cae7d68fa231794776953cc1a5e999bf36c6 | refs/heads/master | 2021-07-08T20:46:57.300298 | 2021-06-01T08:17:27 | 2021-06-01T08:17:27 | 244,308,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = '[email protected]'
def findMinAndMax(L):
if len(L) == 0:
return (None, None)
else:
for i, x in enumerate(L):
if i == 0:
min = max = x
else:
if x > max:
max =... | [
"[email protected]"
] | |
b9f3a49f7f1fe0e94be6a1066047c260b2555dcc | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374851334/HTT_24Jul_newTES_manzoni_Down_Jobs/Job_18/run_cfg.py | 38dbc249e4f6a3beb3e7f9386fe60200d89f9895 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,054 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_... | [
"[email protected]"
] | |
4581a71677876a19591feba186db5b19a914147a | 1a7595a5896ca709eb98805b2a570bf12775a9ff | /muonShieldOptimization/study_muEloss.py | 56d16036361c9cb08313151c37f2833ff4938c81 | [] | no_license | nathandpenha/CERN-FairShip | 953683117f4971b323392bc1213b7ae7d9a3a708 | 10db3d519a5ac8fd67132afd39736b550cb60a30 | refs/heads/master | 2021-05-24T10:10:11.763338 | 2020-05-06T18:46:14 | 2020-05-06T18:46:14 | 261,848,065 | 2 | 0 | null | 2020-05-06T18:47:30 | 2020-05-06T18:39:22 | C++ | UTF-8 | Python | false | false | 10,048 | py | #!/usr/bin/env python
import ROOT,os,sys,getopt,time,shipRoot_conf
ROOT.gROOT.ProcessLine('#include "FairModule.h"')
time.sleep(20)
import shipunit as u
from ShipGeoConfig import ConfigRegistry
mcEngine = "TGeant4"
runnr = 1
nev = 1000000
setup = {}
#
setup['NA62'] = {'thickness': 125*u.cm/2., ... | [
"[email protected]"
] | |
7cffd984d55e0708e92416f0d126056f75c33470 | ec062c479c09ce250c3e23ff47f144f423b55648 | /py/Lib/site-packages/azure/mgmt/compute/compute/v2016_04_30_preview/models/virtual_machine_paged.py | f4ce0dcbeaf516525bd3f7441a2a98148efea77a | [] | no_license | betisb/InputParser | c442ffc877a941bd5b7aac4d843a4d21594d8e96 | 68747d69e04d126f7ea679f93a291a6de244a95f | refs/heads/master | 2021-07-13T05:05:19.479329 | 2019-05-28T16:56:53 | 2019-05-28T16:56:53 | 188,087,891 | 0 | 2 | null | 2020-07-24T00:14:31 | 2019-05-22T17:52:13 | Python | UTF-8 | Python | false | false | 978 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"[email protected]"
] | |
8fe088fdb84933fc73e957b74a89bbc398332e43 | 1fe8b4a22ba986e06788c31237171f986d5b440e | /uploader/admin.py | 3d8d57f43d4ba6b1119c84b3d84eaf416bfb5bec | [] | no_license | whitews/StickyTempFile | 0f654bafe23b6e4e104fe76368cd642c30f918d5 | 1812fa2c669c2128e13c9533b5ea6a97e5449e3e | refs/heads/master | 2021-01-19T05:29:59.049931 | 2013-03-07T21:36:11 | 2013-03-07T21:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from uploader.models import *
from django.contrib import admin
admin.site.register(UploadedFile)
| [
"[email protected]"
] | |
3017eff3a8d21fac6867ed2bc8da08b705f9d229 | cfc415c9b247521b872bf86fd22b55b4a3ff2ee3 | /tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 4b83d50036b6c4e9572b40d7b6377685f94dacc8 | [
"Apache-2.0"
] | permissive | chengmengli06/tensorflow | f7fdb51d709e87b302d60a6dc9391cb6bbaaa3e1 | e81d0c5499eab1ae2d301c5caa128e0b69b0289b | refs/heads/master | 2021-06-24T21:54:28.571878 | 2018-11-16T06:45:48 | 2018-11-16T06:45:48 | 157,813,648 | 0 | 0 | Apache-2.0 | 2018-11-16T04:42:57 | 2018-11-16T04:42:57 | null | UTF-8 | Python | false | false | 6,225 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"[email protected]"
] | |
80810bf8538a097220492556fb02df2122426b9e | e4007870b4d75ba23c2f12ac6646f272cf17865c | /FFMPEG_Scripts/Video_Drawer.py | ff79049fa690bf27f94f3a7db415cde233945c49 | [
"MIT"
] | permissive | knut0815/PythonUtility | 385ce332ff34501be7ad21ac7948eb609770e72a | 0062e1e60dc151776b963d13bc4c1763eb90d333 | refs/heads/master | 2023-01-10T09:58:14.619531 | 2020-11-10T12:22:47 | 2020-11-10T12:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | import sys
import platform
import subprocess
import os
horizontal_center = 'x=(w-tw)/2'
horizontal_right_margin = 'x=(w-tw)'
vertical_bottom_margin = 'y=h-(2*lh)'
class VideoDrawer(object):
@staticmethod
def _get_font_ifp():
if platform.system() == 'windows':
font_ifp = 'C:\\Windows\\Fon... | [
"[email protected]"
] | |
f36b312afc18e9f6b1941362c2dfbc66574e3deb | 98b63e3dc79c75048163512c3d1b71d4b6987493 | /tensorflow/python/keras/tests/memory_test.py | 465df84d6fef375a6f515ec1eb64815e4b74ec3f | [
"Apache-2.0"
] | permissive | galeone/tensorflow | 11a4e4a3f42f4f61a65b432c429ace00401c9cc4 | 1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206 | refs/heads/master | 2022-11-13T11:56:56.143276 | 2020-11-10T14:35:01 | 2020-11-10T14:35:01 | 310,642,488 | 21 | 12 | Apache-2.0 | 2020-11-06T16:01:03 | 2020-11-06T16:01:02 | null | UTF-8 | Python | false | false | 2,599 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"[email protected]"
] | |
7eb105d6e6a9cab22984c6db01666070c56c508b | 2bf76e30ad517adf8805a9fdb22e60c4c010eea3 | /ipypandex/tests/echo_pandas.py | 4c35a62cf638ddd4aa4f4bf2ae5ef84c977c07cf | [
"BSD-3-Clause"
] | permissive | isabella232/ipypandex | 2be06d8be96280f110ffd063eb7f8c81a6d4dc8c | fc1023266a7e3e784595f296629f4fd827fb7d0f | refs/heads/main | 2023-02-11T20:15:02.731204 | 2021-01-06T00:41:44 | 2021-01-06T00:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import pandas as pd
from IPython.utils.capture import capture_output
with capture_output() as c:
display(pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}))
print(c.outputs[0].data)
| [
"[email protected]"
] | |
aeb34e6f1e8723cc6424c196cb99ef779f507e4d | c2081f368428e5fb684e08863ecac4f37f5717e5 | /jobapplicant/wsgi.py | 045dbc1851268e7d082365cdb2495383f2d755be | [] | no_license | agimenezpy/jobapplicant | 9148e80e3e535f7ea956992ba9c7fc0ea472b0e8 | 99ac06464a9137061c89fea0389b7c95422c29f2 | refs/heads/master | 2020-06-05T08:48:25.222470 | 2013-10-04T00:42:33 | 2013-10-04T00:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | """
WSGI config for jobapplicant project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATI... | [
"[email protected]"
] | |
9be6c9b60a6871fc27eb6f3f9518c33a42785596 | c6c6c32547ba334f75a5cc938a9c07e708670365 | /buses/migrations/0002_alter_busbooking_bus_id.py | af6ea77ae0304b32d0b5ac41d86b6f261725998a | [] | no_license | wilsonmwiti/SmartTravel | e693acb0b323d1be9ae1c58917a32ef6a418448d | 9513f0f15745f9e73e70680c5d9e5798de85be7c | refs/heads/master | 2023-09-01T14:16:28.471037 | 2021-10-14T10:55:20 | 2021-10-14T10:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.2.8 on 2021-10-13 05:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('buses', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='busbooking',
name='bus_id',
... | [
"[email protected]"
] | |
03a6cc2e483937f89f007060d6086be7425f4626 | 4e9d3ba19a694c25fdbfd4ed1c6ab66339674beb | /python/GafferUI/PopupWindow.py | b13e219fa456b6bdee63ed65695f9d5a99197b0f | [
"BSD-3-Clause"
] | permissive | mcanthony/gaffer | 0a6af7856b1c2ecae5620a9f2bd04316f2df271c | 32189357fda4bc4b2e5367a06af64928c479ffaf | refs/heads/master | 2021-01-18T19:59:29.212027 | 2015-10-26T20:43:45 | 2015-10-26T20:43:45 | 45,088,868 | 2 | 0 | null | 2015-10-28T04:30:06 | 2015-10-28T04:30:04 | null | UTF-8 | Python | false | false | 7,109 | py | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | [
"[email protected]"
] | |
c7867baeca22849ea7b5625a957b27b04f171214 | 3dcb9b9de4e27ee0e7ece48dcd51f920638ca14d | /api/api.py | 291f60faae09d446c7bb503a005fc97f6adb87c9 | [] | no_license | chyld/flask-postgres-react-docker | 4f4a7fb52c52df6fd005af68668a1425139613b1 | e36f36cb32ae259d6472ca7813c4dfb0cb3213da | refs/heads/master | 2021-01-20T07:02:13.625385 | 2017-05-02T06:26:40 | 2017-05-02T06:26:40 | 89,951,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from flask import Flask, jsonify, request
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from marshmallow import Schema
import os
app = Flask(__name__)
CORS(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:pass1234@db/animals'
db = SQLAlchemy(app)
@app.route('/hello', methods=[... | [
"[email protected]"
] | |
2e24bb1da5abc68896108ac8b9934925cd0b5c5e | aa0c7bb4935ff68bb4ba2be4332890b760c9dda2 | /ipcv/scalespace.py | 998699a9f9b1b62a439bf745940a9dd6c314086b | [
"MIT"
] | permissive | andersbll/ipcv | 0b4deb5f867a4fd642aa7864769e7f4c4901e809 | ea533def7967c9d3a53002ae109db8b256b51c1d | refs/heads/master | 2021-03-12T23:40:26.990304 | 2014-03-05T13:57:31 | 2014-03-05T13:57:31 | 15,453,581 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | import numpy as np
from scipy.ndimage.filters import gaussian_filter
class ScaleSpace:
def __init__(self, img_shape, sigmas, dys, dxs):
''' Compute the scale-space of an image.
Upon initialization, this class precomputes the Gaussian windows used
to smooth images of a fixed shape to save t... | [
"[email protected]"
] | |
ee82f549982587ab5b564579fb516fba6bdf691f | 22013212df1e21f29d0180f2109841177a2a8791 | /basic_addons/account_budget_report/reports/__init__.py | 08af8422c824fc2e2e1015f5bb8891ccaf05f79f | [] | no_license | butagreeza/DTDATA_A | f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6 | 90b09f89714349a3f26de671a440a979aeebd54c | refs/heads/master | 2023-06-18T00:41:02.521432 | 2021-06-14T21:17:06 | 2021-06-14T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jesni Banu(<https://www.cybrosys.com>)
# you can modify it under the terms of the... | [
"[email protected]"
] | |
9657b3ceec8c66aed46b44498f1668e29d1b6871 | 3b09dc4623dac559c85c0333526d55b0615d79d7 | /problems/56.py | 94bcfe31fbef92738fe0088cba102cb331404cf7 | [] | no_license | Asperas13/leetcode | 5d45bd65c490ada9b3cb2c33331a728eab2ef9b4 | 7f2f1d4f221925945328a355d653d9622107fae7 | refs/heads/master | 2021-09-28T15:54:54.761873 | 2020-05-05T15:29:48 | 2020-05-05T15:30:59 | 145,767,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | class Solution:
def merge(self, intervals: List[List[int]]) -> List[List[int]]:
if len(intervals) < 2:
return intervals
intervals.sort(key=lambda a: a[0])
prev = intervals[0]
result = []
for i in range(1, len(intervals)):
if intervals[i][0] >= prev[0]... | [
"[email protected]"
] | |
ba40efc0bfb9c633b665651d2a5df988b9473ea7 | 250d92826005352e418d9bf9f902da4f6e60b85c | /Frittie/venv-frittie/lib/python2.7/site-packages/celery/task/trace.py | 2ac1a503d98c48ce5122543e571784ff46971406 | [
"BSD-2-Clause"
] | permissive | itamsvtd/FrittieHome | 0e4133e6d64b5d2f42824ec7854b080262a49279 | a81a708bf5c7ef2347f4a3e738a46c2776dce9ed | refs/heads/master | 2020-06-06T07:37:51.622937 | 2012-09-27T03:36:05 | 2012-09-27T03:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,253 | py | # -*- coding: utf-8 -*-
"""
celery.task.trace
~~~~~~~~~~~~~~~~~~~~
This module defines how the task execution is traced:
errors are recorded, handlers are applied and so on.
"""
from __future__ import absolute_import
# ## ---
# This is the heart of the worker, the inner loop so to speak.
# It used to... | [
"[email protected]"
] | |
bacc780f56a918e21b35b9fecc1d2a15d95159bf | 5d1a348e11ad652e6cc8f894d4ca774429f335f9 | /Prob-and-Stats/_Calculators/confidence_intervals.py | 014691dd6abedfa0a271ad2b36d1498a30b5a843 | [] | no_license | anhnguyendepocen/UCSanDiegoX | 5332fe0780540038c0cde70af70d67544a3e7725 | 053a1fae52f9b46188a9fcf10729f70d10b3db63 | refs/heads/master | 2022-04-18T03:23:27.636938 | 2020-03-30T23:29:40 | 2020-03-30T23:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import numpy as np
from scipy.stats import norm, t, sem
from math import sqrt
# list = [60, 56, 61, 68, 51, 53, 69, 54, 80, 90, 55, 35, 45]
list = np.random.randint(low=35,high=71, size=20)
print(list)
n = len(list)
mu = np.mean(list)
sigma = np.std(list)
var = np.var(list)
bounds = t.interval(0.90, len(list)-1, loc=... | [
"[email protected]"
] | |
7caaba5f6d3bc82752e4d751b5c5e178037ab7f7 | 74951991a9e1dbe92d4999da9060409a9492bdc3 | /palindrome-number/palindrome-number.py | 3155e839eb464780b9d419ca27c1b6a61a2bf6d4 | [] | no_license | drpuig/Leetcode-1 | fd800ee2f13c7ce03fa57c8a1d10b3aa6976d7c0 | 4ee104f3069c380e1756dd65f6ff6004554e6c0e | refs/heads/main | 2023-07-15T08:57:32.971194 | 2021-08-21T08:29:24 | 2021-08-21T08:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | class Solution:
def isPalindrome(self, num: int) -> bool:
if num < 0: return False
r, x = 0, num
while x > 0:
r = r * 10 + x % 10
x //= 10
return r == num
| [
"[email protected]"
] | |
7eb9e41beacc32274f19363e57b7522cb3378335 | a59d1faced9fe7348ca7143d2a8643e0ebad2132 | /pyvisdk/do/invalid_profile_reference_host.py | 8adf31269e62041bb94e93f6a596abce09a3a869 | [
"MIT"
] | permissive | Infinidat/pyvisdk | c55d0e363131a8f35d2b0e6faa3294c191dba964 | f2f4e5f50da16f659ccc1d84b6a00f397fa997f8 | refs/heads/master | 2023-05-27T08:19:12.439645 | 2014-07-20T11:49:16 | 2014-07-20T11:49:16 | 4,072,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def InvalidProfileReferenceHost(vim, *args, **kwargs):
'''A InvalidProfileReferenceHost f... | [
"[email protected]"
] | |
a9aae5af5a7cacba668bf8b9da5cef2adec167b3 | a29c7e363026111276e94b96d39b1b4ab48dbca8 | /sdk/test/test_authorisation_request_response.py | d58f0334a7f10dfe20737e184735fd187ad09325 | [
"MIT"
] | permissive | matteo-kalogirou/yapily-sdk-python | a56bf6f9b1b308efda38f081f6237ebd8c8f8ad5 | f10d2d14383f551eeb59aa893d328ffa5080da22 | refs/heads/master | 2022-12-16T22:24:18.026765 | 2020-09-18T13:59:26 | 2020-09-18T13:59:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
The version of the OpenAPI document: 0.0.242
Generated by: https://openapi-generator.tech
"""
from __future__ imp... | [
"[email protected]"
] | |
a6b04f1468e584f07faee05a9f0038e74e17f645 | e527efa21057bdab7aff6a6b8c753171e75c6bfe | /quetzalcoatl/settings/celery/prod.py | b940474cf5d70d73314d43a75ecee8d4c48b1ffa | [
"WTFPL"
] | permissive | dem4ply/quetzalcoatl | cb49d6cbf0260ebdb127f6d95d39d299684291c6 | f9f72dc72f0da4f264c33128dc01b79f9fda5f2a | refs/heads/master | 2022-01-10T14:37:08.985767 | 2020-03-14T07:47:27 | 2020-03-14T07:47:27 | 235,905,684 | 0 | 0 | WTFPL | 2021-09-22T18:28:28 | 2020-01-23T23:19:15 | Python | UTF-8 | Python | false | false | 1,131 | py | import os
# from kombu import Exchange, Queue
# from celery.schedules import crontab
# from datetime import timedelta
url_key = os.environ[ 'QUETZALCOATL__RABBITMQ__KEY__URL' ]
celery_url = os.environ[ url_key ]
BROKER_URL = celery_url
RESULT_BACKEND = celery_url
CELERY_RESULT_BACKEND = celery_url
'''
task_annota... | [
"[email protected]"
] | |
54320cc144accbbc19a2366c523173264961565a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02922/s040859855.py | c93462013926489db291dd42664757224e2579ba | [] | 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 | 245 | py | import sys
import math
from collections import deque
def input():
return sys.stdin.readline().rstrip()
def main():
A, B = map(int, input().split())
a = math.ceil((B-1)/(A-1))
print(a)
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
41aab887f5b4c35a78397323e316aa412cbfc975 | da934e0010380fdc6894063540f61b0ebc2c9ded | /vendor/lockfile/lockfile/linklockfile.py | f8aeaefcfc16578a51a1d2fb4c86a762e01c4047 | [
"Apache-2.0",
"MIT"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 2,419 | py | from __future__ import absolute_import
import time
import os
from . import (LockBase, LockFailed, NotLocked, NotMyLock, LockTimeout,
AlreadyLocked)
class LinkLockFile(LockBase):
"""Lock access to a file using atomic property of link(2).
>>> lock = LinkLockFile('somefile')
>>> lock = LinkL... | [
"[email protected]"
] | |
498b161763e04089ca2bc69b627c2c265422a62b | e23b28fc3ed196866a04af4e790c1c16b1b5183e | /django/portfolio/apps/portfolio_app/urls.py | 73a949e99ec0e9b82a53e892a13c8fb1443a2aa5 | [] | no_license | diazmc/Python | 6f47e7fcfb8c263eb154d59a5a9b3866e2c9d6a8 | 89e3d54eeb2b0ed7dc7af24103ace6fb6e45d65e | refs/heads/master | 2021-01-20T01:18:23.954877 | 2017-08-24T10:39:19 | 2017-08-24T10:39:19 | 101,283,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^testimonials$', views.testimonial)
]
| [
"[email protected]"
] | |
c451c1854b8bfd9dc2aa1c81ff03ee27356279ce | 7822e004b9697e451a9345589a411133ca12d74e | /scripts/createGradientImage.py | 54fb723a814d6d173509a46a8a6458d07aa24bec | [] | no_license | tomwright01/SLOAntsRegistration | 0e6335feff3f97e59728fdca0f174165df582f4a | 5ff0eb100d40604feae62500c5b8e6cd07c00017 | refs/heads/master | 2021-01-04T14:14:11.212043 | 2014-12-09T20:39:12 | 2014-12-09T20:39:12 | 26,826,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import subprocess
import logging
import os
def main(dims,outputName,inputName,Sigma,antsPath):
"""Use the ANTs ImageMath to create a gradient image"""
imPath = os.path.join(antsPath,'ImageMath')
cmd = '{0} {1} {2} Grad {3} {4}'.format(imPath,dims,outputName,inputName,Sigma)
logging.info('Creating Gradi... | [
"[email protected]"
] | |
f6a87a9dedd704b40464a5040ddb2d851e703ba9 | a9b31181ad6f695a2809018167a52a6d9847c0df | /Chap05-funcoes-frutiferas/compara.py | 2de8e1459dc0075b09a80469e8aaee81d6d62fa9 | [] | no_license | frclasso/Aprendendo_computacao_com_Python | 21cdecdebcdbafad35a48d8425d06e4ec2ba1259 | 40276f396c90d25b301e15e855942a607efd895b | refs/heads/master | 2020-03-12T17:38:04.886153 | 2018-10-11T14:17:13 | 2018-10-11T14:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python3
def compara(x, y):
if x > y:
return 1
elif x == y:
return 0
else:
return -1
print(compara(1,2))
print(compara(3,2))
print(compara(3,3)) | [
"[email protected]"
] | |
1d7fcddad197b9c1e5b50b8573b0b569e645370a | 35a1593fbd15c8ef1a20971055774a1cdcd41bce | /test/test_rpc_fork.py | 5e2432f60183e5c5213ef1772931d6b7939ae669 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sahils2607/pytorch | 884a2da2a613b525522a1615c8c5ecef013e4fb1 | 16454095e09eab2e737d99ad569cd44bb7910f03 | refs/heads/master | 2020-08-07T15:13:53.319183 | 2019-10-07T21:22:42 | 2019-10-07T21:24:34 | 213,499,886 | 1 | 0 | NOASSERTION | 2019-10-07T22:39:43 | 2019-10-07T22:39:43 | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python3
from __future__ import absolute_import, division, print_function, unicode_literals
from rpc_test import RpcTest
from common_distributed import MultiProcessTestCase
from common_utils import run_tests
class RpcTestWithFork(MultiProcessTestCase, RpcTest):
def setUp(self):
super(RpcTe... | [
"[email protected]"
] | |
3472469d1a6567b5c42751cad45681f14a096b86 | b9bc60cca34c6b4f8a750af6062f357f18dfcae2 | /tensorflow/contrib/ndlstm/python/lstm2d.py | 3907046ddad48c43fe12f40301240acae3703489 | [
"Apache-2.0"
] | permissive | lidenghui1110/tensorflow-0.12.0-fpga | 7c96753aafab5fe79d5d0c500a0bae1251a3d21b | f536d3d0b91f7f07f8e4a3978d362cd21bad832c | refs/heads/master | 2022-11-20T11:42:11.461490 | 2017-07-28T09:28:37 | 2017-07-28T09:28:37 | 98,633,565 | 3 | 2 | Apache-2.0 | 2022-11-15T05:22:07 | 2017-07-28T09:29:01 | C++ | UTF-8 | Python | false | false | 5,639 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"[email protected]"
] | |
e6b0e6837166020928a9bfbdf5bc302fa4f86ad8 | 7dfa21d74dae975082c6d5deaa01248bac1dcc26 | /.circleci/cimodel/data/pytorch_build_data.py | 09476a970b40045f3d53a7de2f01f11f71d683ae | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | mruberry/pytorch | 88cf536ed58d20a409c1e5119be4ec04ec960082 | 19f73180cfb39eb67110d2a1d541975a49211453 | refs/heads/master | 2022-02-03T16:25:31.070089 | 2019-04-22T17:52:28 | 2019-04-22T17:58:15 | 130,132,886 | 4 | 1 | NOASSERTION | 2020-01-16T16:51:39 | 2018-04-18T23:24:38 | C++ | UTF-8 | Python | false | false | 3,956 | py | #!/usr/bin/env python3
from cimodel.lib.conf_tree import ConfigNode, X
CONFIG_TREE_DATA = [
("trusty", [
(None, [
X("2.7.9"),
X("2.7"),
X("3.5"),
X("nightly"),
]),
("gcc", [
("4.8", [X("3.6")]),
("5.4", [("3.6", [X(Fa... | [
"[email protected]"
] | |
71dafe2db4bc761973d6704dc92903b815a5d803 | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/discord/channel/channel_metadata/tests/test__parse_video_quality_mode.py | 1d27462067dbc38950831d7cb97ceae62bdabb9d | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 594 | py | import vampytest
from ..preinstanced import VideoQualityMode
from ..fields import parse_video_quality_mode
def test__parse_video_quality_mode():
"""
Tests whether ``parse_video_quality_mode`` works as intended.
"""
for input_data, expected_output in (
({}, VideoQualityMode.auto),
({'v... | [
"[email protected]"
] | |
02870225cf065083ba4335fd8a97915249b45f48 | cf50ea39bfd5a7dee49f10c5889637131bb40c74 | /11-CHAPTER/3-multiple-inheritance.py | f44b08ef42b3cd67a92e4e03882b0df37fad6336 | [] | no_license | Rishi05051997/Python-Notes | 4878b1760731d7b7f5060f320ec9758fc5946536 | 1c7c1d927e1c78be430d7131f569e3272f8e81ad | refs/heads/main | 2023-07-15T03:00:06.498240 | 2021-08-24T05:27:46 | 2021-08-24T05:27:46 | 377,142,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | class Employee:
company = "Visa"
eCode = 120
class Freelancer:
company = "Fiverr"
level = 0
def upgradeLevel(self):
self.level = self.level + 1
class Programmer(Employee, Freelancer):
name = "Vrushabh"
p = Programmer()
p.upgradeLevel()
print(p.level)
print(p.company)
| [
"[email protected]"
] | |
8e15123ac1006ef3d53de1573baf06184dd75c95 | 48832d27da16256ee62c364add45f21b968ee669 | /res_bw/scripts/common/lib/plat-mac/carbon/lists.py | 4fc2252e450153f6e01beee179948af9cb5f9698 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,082 | py | # 2016.08.04 20:01:15 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/Lists.py
def FOUR_CHAR_CODE(x):
return x
listNotifyNothing = FOUR_CHAR_CODE('nada')
listNotifyClick = FOUR_CHAR_CODE('clik')
listNotifyDoubleClick = FOUR_CHAR_CODE('dblc')
listNotifyPreClick = FOUR_CHAR_COD... | [
"[email protected]"
] | |
1dbbd38333e4bdfa695a265eab97dede7839959c | 893a2fea722b77148f1fb1cac066ce476f1afa0a | /codeforces/cf_beta_85/problem2.py | 8c260d049262d5c1c10a34300dcf43695e7bd3a3 | [] | no_license | the-brainiac/contests | feb9f1ee1abdfb3cc9dccd5a69623192b4ec09ed | b95426aa3e54e703f7924fe0f222c2915e07c8f7 | refs/heads/main | 2023-05-12T13:10:11.765678 | 2021-06-03T04:05:50 | 2021-06-03T04:05:50 | 373,376,225 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | N = 10**5
is_prime = [1]*N
# We know 0 and 1 are composites
is_prime[0] = 0
is_prime[1] = 0
def sieve():
"""
We cross out all composites from 2 to sqrt(N)
"""
i = 2
# This will loop from 2 to int(sqrt(x))
while i*i <= N:
# If we already crossed out this number, then continue
if ... | [
"[email protected]"
] | |
ab512419d61466446b1eb72ac84831498db20e06 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuits_operations.py | 3f54bb957557bb672da6c0a1511c65b6114abde7 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 46,037 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"[email protected]"
] | |
61f2b2619c96c01b5dda1b6c9aeb86457872c271 | 0ee8350bedb5c8ac575ee0b634fece214a06646a | /poezio/asyncio.py | 2b02a91ffd66a8b6a9a97f66ca7342e5dcce6026 | [
"Zlib",
"CC-BY-2.0"
] | permissive | LukeMarlin/poezio | 3fcad784d37aa665850b649622d6f8d75cc1fa3f | 884aae28a24d65951cc7d57f6044098f236f52bc | refs/heads/master | 2021-01-09T20:12:18.234842 | 2016-10-28T15:26:02 | 2016-10-28T15:57:38 | 72,423,788 | 1 | 0 | null | 2016-10-31T09:54:48 | 2016-10-31T09:54:48 | null | UTF-8 | Python | false | false | 1,353 | py | """
A module that monkey patches the standard asyncio module to add an
idle_call() method to the main loop. This method is used to execute a
callback whenever the loop is not busy handling anything else. This means
that it is a callback with lower priority than IO, timer, or even
call_soon() ones. These callback are ca... | [
"[email protected]"
] | |
36119431fd312a3e8902674067afbe6396c63da9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/219/29883/submittedfiles/testes.py | 4f4b4f48b93942c5a8eddaabeee18acfd3de9bd6 | [] | 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 | 301 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a=int(input('Digite a:'))
b=int(input('Digite b:'))
c=int(input('Digite c:'))
d=int(input('Digite d:'))
if a>=b and a>=c and a>=d:
print(a)
if b<=c and b<=d:
print(b)
elif b>=a and b>=c and b>=d
print(
| [
"[email protected]"
] | |
4455b3a1b142bedf192ae2f451c4ff35db376820 | 176c59cf09d42c66d4101eca52beb9c3ea7362a1 | /pyramid_authsanity/tests/test_includeme.py | ad635c82cfa576e918a2c5fbe5ec15a7f88c8027 | [
"ISC"
] | permissive | stevepiercy/pyramid_authsanity | 146d90abcf7622e1d509eb069bfbbf80ed61acc8 | daf7188a8ab1a8bd215d9e1e1cb6682e87fa8ac7 | refs/heads/master | 2021-07-16T08:33:46.683994 | 2016-01-10T05:48:32 | 2016-01-10T05:48:32 | 51,718,108 | 0 | 0 | null | 2016-02-14T22:53:13 | 2016-02-14T22:53:13 | null | UTF-8 | Python | false | false | 3,043 | py | import pytest
from pyramid.authorization import ACLAuthorizationPolicy
import pyramid.testing
from zope.interface import (
Interface,
implementedBy,
providedBy,
)
from zope.interface.verify import (
verifyClass,
verifyObject
)
from pyramid_services import IServiceClassifier
from... | [
"[email protected]"
] | |
0a0504b0bc50786ad6319cc72a59f6bd7ed5d613 | 8f7c595f2b9d075a89417760b7fbf9abb1fecb72 | /try_enricher.py | e94463b5038fad8d0620db03b893bab816739527 | [
"MIT"
] | permissive | MainakMaitra/trading-utils | 555ed240a20b26d4876f1490fc8a2d9273231fc5 | 3e73091b4d3432e74c385a9677b7f7ca4192c67f | refs/heads/main | 2023-07-04T09:19:40.122188 | 2021-08-08T09:01:37 | 2021-08-08T09:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import json
import matplotlib.pyplot as plt
import pandas as pd
from common.analyst import fetch_data_from_cache
plt.ioff()
pd.set_option("display.max_columns", None)
pd.set_option("display.width", None)
ticker = "AAPL"
# weekly_options.set_index('Symbol', inplace=True)
# cboe_options = pd.read_csv(f"data/cboesym... | [
"[email protected]"
] | |
0ab91b8fc7a8f722176caa772e62d86f3f98bab8 | ecbf6a7c04b068a4f5606bbab46b974e53bd28d8 | /src/replace_localparam.py | debb116037d08c9f96c454b86e2bebe117057dc9 | [
"MIT"
] | permissive | jamesjiang52/V2SV | 970357be757ba068111645fd6964e8672a72f69f | 4b6109d16482131785b9dfec13fd66452078ae17 | refs/heads/main | 2022-12-30T06:47:27.814305 | 2020-10-18T00:07:39 | 2020-10-18T00:07:39 | 300,928,285 | 1 | 2 | MIT | 2020-10-18T00:06:56 | 2020-10-03T16:41:38 | Python | UTF-8 | Python | false | false | 4,354 | py | def __remove_extra_declarations(module_string, replaced_wires, debug=False):
buffer = module_string[:module_string.index(");") + 2] + "\n"
body_string = module_string[module_string.index(");") + 2:]
statements = body_string.split(";")
# remove the previous declarations of any new enums
for statemen... | [
"[email protected]"
] | |
d63408c2d9adafeadf3ac5e64efccfc40b438cae | 025fa245d4cbffdaa422287ed2f31c4d0442ee28 | /menus/models.py | 27649dd15508def3b9d933b9bfa95ba0bc8eb771 | [
"MIT"
] | permissive | elcolie/zero-to-deploy | 01f346ca50b8ccb271faef23934abe6a487baca6 | 6191a33ef55af7c550c0e529a4e373bfe40bc014 | refs/heads/master | 2022-02-08T23:22:17.008555 | 2018-06-15T19:39:06 | 2018-06-15T19:39:06 | 137,083,690 | 0 | 0 | MIT | 2022-01-21T19:35:33 | 2018-06-12T14:28:01 | Python | UTF-8 | Python | false | false | 653 | py | from django.db import models
from djchoices import DjangoChoices, ChoiceItem
from commons.models import AbstractTimestamp
class Menu(AbstractTimestamp):
class BackType(DjangoChoices):
food = ChoiceItem(f"Food")
drink = ChoiceItem(f"Drink")
menu_type = models.CharField(max_length=15, choices=... | [
"[email protected]"
] | |
976cddf10f6864ba5c9a7a761545d47337c3af20 | 4789ee577801e55bb6209345df6ddd1adff58aa9 | /skyline/boundary/boundary_alerters.py | 0f63c5c74e6d30f89ea03ffca79842f2fafdab45 | [
"MIT"
] | permissive | bastienboutonnet/skyline | 76767fdad5eb9b9ee9bb65bfcee05e2551061fbe | 7f19fcc7ac1177b4a0a4663d6e645be63ceea452 | refs/heads/master | 2023-04-25T01:57:17.955874 | 2021-04-11T09:20:30 | 2021-04-11T09:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,389 | py | from __future__ import division
import logging
import traceback
# @modified 20201207 - Task #3878: Add metric_trigger and alert_threshold to Boundary alerts
# hashlib not used
# import hashlib
from smtplib import SMTP
# @added 20200122: Feature #3396: http_alerter
from ast import literal_eval
import requests
import b... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.