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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0affb5c2908c801e1a13681bffc7ea7b82e0a314 | 35fff80627ad675bec1e429943cb2bbbaf141ca2 | /notebooks/Papers/paper2/packages/gc/linear.py | 20cc18c644f8dcbb81fbbbc2421c6b59b26360f2 | [] | no_license | ishrat2003/IS-Goldsmiths | bac3473b7ffde7cebfb952cd78aba510c8d72c6f | afae9525ceb62cd09eb14149ee2b88798c5ceb90 | refs/heads/master | 2020-04-27T09:24:10.399620 | 2019-10-16T21:23:13 | 2019-10-16T21:23:13 | 174,212,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | from .k3s import K3S
import time
class Linear(K3S):
def __init__(self, datasetProcessor):
super().__init__(datasetProcessor)
self.startX = 0
self.now = time.time()
return
def setStartX(self, start):
self.startX = start
return
def getPoints(self, totalTo... | [
"ishrat@thebyte9.com"
] | ishrat@thebyte9.com |
45dd076e67e7b0aa3e828ae9f09e605be013a1f6 | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/practise/learn-python/python_basic/function_return.py | c6bfaa6be95d86618db7d0e8ec69f0779b22cd3d | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 1,298 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@FileName: function_return.py
@Function: python function return
@Author: Zhihe An
@Site: https://chegva.com
@Time: 2021/7/4
"""
"""一、函数的定义之多个返回值"""
"""
如果需要在调用函数后有多个返回值,可以在定义函数时在函数体内使用return语句返回由多个返回值组成的元组
"""
# 把列表中的所有数分成奇数和偶数两类
de... | [
"anzhihe1218@gmail.com"
] | anzhihe1218@gmail.com |
8d1d2eae33f02ebd2a785ecfa17dacc98d23012f | 76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6 | /tfx/experimental/templates/penguin/models/features_test.py | 7119b23db0b9dd891dec82abd726468d73366074 | [
"Apache-2.0"
] | permissive | tensorflow/tfx | 0cfc9c55171352ecc98c9dfa8ffe976c689d7073 | 1b328504fa08a70388691e4072df76f143631325 | refs/heads/master | 2023-08-30T11:56:50.894497 | 2023-08-29T22:47:19 | 2023-08-29T22:48:26 | 169,116,405 | 2,116 | 899 | Apache-2.0 | 2023-09-14T21:51:42 | 2019-02-04T17:14:36 | Python | UTF-8 | Python | false | false | 862 | py | # Copyright 2020 Google LLC. 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... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
8da5ce3936b1da52b252d10efbff997d6d849dbd | 141545126466a00f32247dfa40e067ec049b0fa4 | /Programming OOP Python/OOP Exercise/Inheritance/mix_it/project/technology/smart_phone.py | b7230e65fb2ec7f6944b3f0c3e211ea53cb085e1 | [] | no_license | RadkaValkova/SoftUni-Web-Developer | 83314367172a18f001e182b4e57f7ca0502ad1fc | 61d3414373498bb6009ae70e8d17f26cd2d88ea5 | refs/heads/main | 2023-06-01T02:11:06.606370 | 2021-06-29T19:39:19 | 2021-06-29T19:39:19 | 325,611,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from Inheritance.mix_it.project.technology.technology import Technology
class SmartPhone(Technology):
def __init__(self, memory, memory_taken):
Technology.__init__(self, memory, memory_taken)
def install_apps(self, app, app_memory):
try:
memory_left = self.get_capacity(self.memory... | [
"76747070+RadkaValkova@users.noreply.github.com"
] | 76747070+RadkaValkova@users.noreply.github.com |
36df42514050300322261b602adbfe6fa29e0bc7 | a12a4be7e8c792b4c1f2765d3e7a43056e9196b0 | /954-array-of-doubled-pairs/954-array-of-doubled-pairs.py | a8fded849712c623826c0a5ca9dd1551054073ce | [] | no_license | fdas3213/Leetcode | d4b7cfab70446b3f6a961252a55b36185bc87712 | 1335d5759c41f26eb45c8373f33ee97878c4a638 | refs/heads/master | 2022-05-28T16:24:15.856679 | 2022-05-19T21:56:35 | 2022-05-19T21:56:35 | 94,024,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | class Solution:
def canReorderDoubled(self, arr: List[int]) -> bool:
#essentially this problem is asking for numbers in the array, can we find their double-valued number. The tricky part is some numbers are negative, so after sorting, -4 occurs before -2. Therefore if the current number is negative, we eith... | [
"szx9404@gmail.com"
] | szx9404@gmail.com |
bde58e23222bd99c920e1284e7207867ac5e06e9 | 6cf46f85debb1b0505c0edcbc7296f50a44a615d | /dexy/tests/plugins/test_calibre_filters.py | bb179756c0d39fdcb753c000c2dbc0ced84862d2 | [
"MIT"
] | permissive | aioupload/dexy | 27b7f5051417093d8336e39d71e824b3ef5c9f56 | 350b7ed23d2f3aab50097aabf3481229d75d1cf7 | refs/heads/master | 2021-01-16T22:59:11.707350 | 2013-08-05T06:08:00 | 2013-08-05T06:08:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from dexy.tests.utils import wrap
from dexy.doc import Doc
HTML = """
<h1>Header</h1>
<p>This is some body.</p>
"""
def run_calibre(ext):
with wrap() as wrapper:
node = Doc("book.html|calibre",
wrapper,
[],
calibre = { 'ext' : ext },
contents... | [
"ana@ananelson.com"
] | ana@ananelson.com |
76d7a7d86c0471f1d76d26edd9001a7eeac6b623 | 170525ccbacdc6068633f6226dde4ba9cbd1dc1c | /scripts/demo_script/teardown_xxx.py | 937f48c83eac4da786f82b99b6e60830a89a9e82 | [
"MIT"
] | permissive | Python3pkg/Ftest | a942a48696e96001db5c71411c4555bbeb5a8e7e | 0f06af325b6ffd60458ab0fbd4c0288d3e2fb0a9 | refs/heads/master | 2021-01-21T17:31:47.729669 | 2017-05-21T14:01:45 | 2017-05-21T14:01:45 | 91,961,482 | 0 | 0 | null | 2017-05-21T14:01:41 | 2017-05-21T14:01:41 | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from optparse import OptionParser
import os,sys
if __name__ == '__main__':
print((0)) | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
a31f44226efff3a124c92a48abc8d635d571dcb4 | 8064af9cb8120b5ebdfcdcbb10547695e3c646d2 | /girder_worker/_test_plugins/tasks.py | 7fe0cf91ecf9cc2966139b408d6debcabf3fc49d | [
"Apache-2.0"
] | permissive | girder/girder_worker | 5f7391c2ea41d953e9b7e380fdb74a0a38c21e2f | 19b4fc3360a0c9d92fbd0ecd1bfab693f8c75ae7 | refs/heads/master | 2022-11-20T10:41:26.072154 | 2022-11-17T13:27:31 | 2022-11-17T13:27:31 | 50,359,589 | 39 | 30 | Apache-2.0 | 2022-11-17T13:27:33 | 2016-01-25T15:24:13 | Python | UTF-8 | Python | false | false | 295 | py | from girder_worker.app import app
from girder_worker_utils import types
from girder_worker_utils.decorators import argument
def not_a_task():
pass
@argument('n', types.Integer)
def function_task(n):
return n
@app.task
@argument('n', types.Integer)
def celery_task(n):
return n
| [
"jonathan.beezley@kitware.com"
] | jonathan.beezley@kitware.com |
597a7e2b6239f0d6103602a0725fef9d45390bac | 2cd82d99b1abae8c16d35905b4fde97fdddd2b5a | /flapi_schema/protect.py | d265033810ed85ae41378c35528e28a4cf42e38c | [
"MIT"
] | permissive | manoadamro/flapi-schema | 3bd2bcf39b308dee0ff96f6bc99cc0a1e81cb7a4 | 840cfe4bd0ff1e057c3ace9931bd35d8fdaf7808 | refs/heads/master | 2020-04-16T07:54:31.963040 | 2019-02-28T18:10:50 | 2019-02-28T18:10:50 | 165,403,488 | 0 | 0 | MIT | 2019-02-28T18:10:51 | 2019-01-12T15:31:19 | Python | UTF-8 | Python | false | false | 2,081 | py | import functools
from typing import Any, Callable, Type, Union
import flask
from . import errors, types
class Body(dict):
def __init__(self, body):
body = body or {}
super(Body, self).__init__(**body)
def __getattr__(self, item):
try:
return self[item]
except Key... | [
"manoadamro.imp@gmail.com"
] | manoadamro.imp@gmail.com |
eca934b02d2e1a02396bf9c6653c834b14aafba9 | 2befb6f2a5f1fbbd5340093db43a198abdd5f53b | /pythonProject/customAuth/customAuth/asgi.py | 487989b2f070569554101e46ab3848fb480d0aaa | [] | no_license | JanardanPandey/RestAPI | 1956d3529782d18ef2118961f6286e3213665aad | 654933a4d9687076a00c6f4c57fc3dfee1a2c567 | refs/heads/master | 2023-06-14T07:02:31.702000 | 2021-07-02T07:50:59 | 2021-07-02T07:50:59 | 382,357,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for customAuth project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"janardanpandey0510@gmail.com"
] | janardanpandey0510@gmail.com |
0aa739d65a529174e0569ea6665d5f7b6f2a581d | cf32b755ad8fcbcc4cf56de7454b1a5a29bc3045 | /packaging/scripts/build_vcpkg_port.py | 6738eb360cfdfb056540500a3c6381e72fe3ebe1 | [
"Apache-2.0"
] | permissive | robotraconteur/robotraconteur | e6a6e5ad8f17a7c8d93f70d40ff6716ab6c93e78 | 56cd9c90aa764eb3218e611e080353d3263c90d1 | refs/heads/master | 2023-07-24T18:24:50.301823 | 2023-07-10T17:36:41 | 2023-07-10T17:36:41 | 148,683,017 | 58 | 5 | Apache-2.0 | 2023-09-12T05:34:30 | 2018-09-13T18:49:34 | C++ | UTF-8 | Python | false | false | 1,789 | py | from pathlib import Path
import hashlib
import urllib.request
import sys
import re
import os
import shutil
ref = os.environ["GITHUB_SHA"]
ver = ref
ref1 = os.environ.get("GITHUB_REF", None)
if ref1 is not None:
ref_match = re.match(r"refs/tags/v(\d+\.\d+\.\d+.*)", ref1)
if ref_match is not None:
ref ... | [
"wason@wasontech.com"
] | wason@wasontech.com |
7632ec4924efde1068c63425c83f3704de1989b8 | 248bdd698605a8b2b623fe82899eec15bc80b889 | /media/webrtc/trunk/webrtc/build/android/emulator.py | 77c9a75daa11963c0de2502d33bc828363f5fef1 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | Feodor2/Mypal68 | 64a6f8055cb22ae6183a3a018e1487a44e20886e | dc92ce6bcc8032b5311ffc4f9f0cca38411637b1 | refs/heads/main | 2023-08-31T00:31:47.840415 | 2023-08-26T10:26:15 | 2023-08-26T10:26:15 | 478,824,817 | 393 | 39 | NOASSERTION | 2023-06-23T04:53:57 | 2022-04-07T04:21:39 | null | UTF-8 | Python | false | false | 10,812 | py | #!/usr/bin/env python
#
# Copyright (c) 2012 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.
"""Provides an interface to start and stop Android emulator.
Assumes system environment ANDROID_NDK_ROOT has been set.
Emulat... | [
"Feodor2@mail.ru@"
] | Feodor2@mail.ru@ |
57fe335d8e387b47a6c81ba90f3b79a1dbe6e530 | ed870e08f635ea7aaaf1638aa312c58892c3e8d2 | /tensorflow2/tf2cv/models/model_store.py | 3b7946ef287f043119a6fe79eea23c174c96b2dd | [
"MIT"
] | permissive | NurHika/imgclsmob | a8d2671703539d9370950e3c8fbc1d74ddf1d120 | 881055d10796ae1fa686de3c6fc46f523ca75256 | refs/heads/master | 2023-03-07T03:24:47.493061 | 2021-02-23T07:47:34 | 2021-02-23T07:47:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,937 | py | """
Model store which provides pretrained models.
"""
__all__ = ['get_model_file']
import os
import zipfile
import logging
import hashlib
_model_sha1 = {name: (error, checksum, repo_release_tag, ds, scale) for
name, error, checksum, repo_release_tag, ds, scale in [
('alexnet', '1609', '8ae4618... | [
"osemery@gmail.com"
] | osemery@gmail.com |
ec73443d8f34bbe1f2038b561189ef1275326267 | 7b51587e6caa998f32dc26d3693d6f5f70cb505a | /course_project/course_app/models.py | ac006fcb35f0128c9ca0856492bb9643b8fd1cf7 | [] | no_license | connorskorburg/django_full_stack | 18faba73737e3af42cd1c069cca261f4b113a2af | 02bc8060c478137049796ff4891347cd00992717 | refs/heads/master | 2022-05-03T11:09:05.229233 | 2020-04-27T21:06:55 | 2020-04-27T21:06:55 | 255,200,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from django.db import models
# Create your models here.
class CourseManager(models.Manager):
def course_validator(self, post_data):
errors = {}
if len(post_data['course_name']) < 7:
errors['course_name'] = "Course Name should be at least 6 characters!"
if len(post_data['desc']... | [
"connorskorburg@gmail.com"
] | connorskorburg@gmail.com |
2e693b0a65617447e7f2b143b692f45364ed1bd4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/103/usersdata/233/50069/submittedfiles/av1_3.py | 7bba14b55a1296269cb0f918b3b2e730ba56c8df | [] | 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 | 465 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite um número: '))
b=int(input('Digite um número: '))
ndedivisoes=0
if b>a:
mdc=a
maior=b
menor=a
elif a>b:
mdc=b
maior=a
menor=b
cont=0
while resto>0:
resto=maior%menor
maior=menor
menor=maior%resto
cont=cont+1
mdc=resto
pr... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f04dd6254e85e120585faf21ddd5105a4d0ff75d | 321804c57505c583b34c10cbcc5089b03c4d3bd7 | /schoolapp/migrations/0016_auto_20190701_1810.py | ecb2b6bbd0bae3a626b4adeebfa3dac064a1f320 | [] | no_license | Dilipsa/janakalyan | 8db50b541f1f8a380c865a116c6db81a6abfa40a | 2fb27d7deae24546115490ac024835c008289673 | refs/heads/master | 2023-05-03T16:45:20.643681 | 2019-07-03T10:46:56 | 2019-07-03T10:46:56 | 194,267,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # Generated by Django 2.2.2 on 2019-07-01 12:40
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('schoolapp', '0015_auto_20190701_1751'),
]
operations = [
migrations.RenameField(
model_name='exam',... | [
"dilipsapkota.d@gmail.com"
] | dilipsapkota.d@gmail.com |
a9f81ef8ff403f985800a69ebcad60e28086ec72 | a3f1ef21441277188b2b0bdd4afffc19681bd744 | /Algorithm_2021/May_2021/210523/2482 - Color/2482_210521_KimMinJae.py.py | a0b5d9482c2e5c6761871967b527b9923a21de27 | [] | no_license | Python-study-f/Algorithm-study_1H | 8e13da661de763daae221a4e11b0b266418d1052 | 7fbb01b89b1ac3535c30025b37b6edb9ea885aa3 | refs/heads/master | 2023-07-12T10:32:43.258663 | 2021-08-19T09:35:31 | 2021-08-19T09:35:31 | 325,935,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | n= int(input())
k= int(input())
M=int(1e9)+3
dp= [[0]*(k+1) for _ in range(n)]
for i in range(1,n):
dp[i][1]=1
for i in range(1,n):
for a in range(1,k+1):
if i-2>=0:
dp[i][a]+=dp[i-2][a-1]
dp[i][a]%=M
for a in range(1,k+1):
dp[i][a]+=dp[i-1][a]
dp[i][a]%=M
... | [
"baradamoh@gmail.com"
] | baradamoh@gmail.com |
aaec6c95523c5d5043019580baaaa09d0aad3f6d | ae39da924cf7cd695fcdca91aeb533c086828649 | /qiita.the.judge.py | 1a8ea02bf4003f5632032be2dccd3b57d73ffee2 | [] | no_license | GINK03/poetty | 34e9f7d28ac674e422235cd338c195a808213014 | 9e4a15db12236e4b42a4eb9ac2f012d1b636faee | refs/heads/master | 2021-01-23T03:53:30.970822 | 2017-03-25T04:24:13 | 2017-03-25T04:24:13 | 86,132,113 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,276 | py |
import sys
import json
import os
import requests
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import selenium
from bs4 import BeautifulSoup
import time
import http
import concurrent.futures
import urllib
SLEEP = 10.0
def tag_scrape():
cap = DesiredCapa... | [
"you@example.com"
] | you@example.com |
5e7ca6f3a51bbace7703021a844c4ded0735ea1f | 3cc62bb1988ad83b4ec4bbfdfb9fa58acd11906e | /ESP32/L9110/testeClasseMotorDC.py | 3ab3b91c39cb09bb3234df69944c10505af8b517 | [] | no_license | Natalnet/lib_ura_esp | e4a44c73ae6e89b34407bb7dd9979206b9dffa79 | 8314cb83725ba3462dd8ad35f78395ce99b23521 | refs/heads/master | 2022-11-26T05:07:50.921949 | 2022-11-22T00:59:18 | 2022-11-22T00:59:18 | 181,964,776 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py |
from MotorDC import MotorDC
## Direito
m1 = MotorDC(13,12)
## Esquerdo
m2 = MotorDC(5,23)
import time
# Motor 1 girando no sentido anti-horário - Direito
m1.velocidade(0)
m1.sentido(1)
time.sleep(1)
# Motor 1 girando no sentido horário
m1.velocidade(1000)
m1.sentido(0)
time.sleep(1)
# Motor 1 parado
m1.veloc... | [
"orivaldo@gmail.com"
] | orivaldo@gmail.com |
75edb50d48c3b72adf89abc5966bed56206a0637 | a25aa09af984d08084a395f9b6df427d3756f11a | /function/closure.py | 592279a7f269b4a8984c448e99c24a4a32b4acc7 | [] | no_license | luyihsien/leetcodepy | 31971e851a4ae77942a5d9e3ff07faea6e504c66 | a54bd09f4b28f106196a6cd8a0f9c056bcd237e6 | refs/heads/master | 2020-05-19T13:21:57.854086 | 2019-10-16T14:23:00 | 2019-10-16T14:23:00 | 185,037,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | #https://www.youtube.com/watch?v=gwetZc-7Gg4&list=PLNTlJhYDV6sN8cH0bgaaVwsoF7EVHD_R6&index=16
#參考program diary->pretest2hr->part1 counting.py
def test(number):
def test_in(number_in):
print('in test_in 函數,number_in is %d',number_in)
return number+number_in
return test_in
ret=test(20)#不印東西,傳了20
p... | [
"luyihsien@gmail.com"
] | luyihsien@gmail.com |
4d56a84b9ab7810e70bcb59a53272772483dcc5b | fd26306a308e954b8a4be0c2295c252c47d6935f | /test_scripts/test_iris_load_rips.py | 4e0fede66015b7e61261085cc3d93b40f65544b8 | [
"BSD-2-Clause"
] | permissive | ukcp-data/ukcp18-data-factory | 39a4a122828cc8eb12ea1285e49f13e55185fd66 | 939ca5449ebb33415a3aece976ab86065066ce0b | refs/heads/master | 2021-01-21T14:25:17.306342 | 2019-01-23T11:29:42 | 2019-01-23T11:29:42 | 95,437,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | import os
import time
import iris
import pytest
def _get_file_list(threshold=40):
files = []
for dirpath, _2, filenames in os.walk('fakedata/ukcp18/data/land-gcm/uk/60km/rcp85'):
for f in filenames:
if not f.startswith('tas'): continue
fpath = os.path.join(dirpath, f)
... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
c450d953b4104127a02d5c7743e9a6b29095ef32 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /quantlab/feature/zoo/G_NetAssetsPerShare.py | e002b015cddd8123cac1c9ec977a1ac6aa50e3a9 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from quantlab.feature import *
from quantlab.feature.error import *
class G_NetAssetsPerShare(PersistentFeature):
description = '每股净资产增长率'
def _create_feature(self, instrument_id, time_range):
raise OriginalFeatureError('Can not create original features')
| [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
35770470b116ff966c8a8745608d8385bcd306a6 | 3b574a8d1f9cd0bde99f2e94c3c6e7b59ab46ee3 | /project/apps/keller/migrations/0001_initial.py | 5609440e0fe331002db798e1295c5b5a209efdc0 | [
"BSD-2-Clause"
] | permissive | barberscore/archive-api | 7ac908d2754f6fa5c387bf6e49c257424887f9b3 | d6cf8867ad60c6ae334a555881c06c71069fa12c | refs/heads/master | 2023-02-24T19:45:23.973475 | 2022-01-26T14:35:10 | 2022-01-26T14:35:10 | 202,747,844 | 0 | 0 | BSD-2-Clause | 2023-02-08T00:52:56 | 2019-08-16T15:01:15 | Python | UTF-8 | Python | false | false | 18,696 | py | # Generated by Django 2.2.4 on 2019-08-16 15:27
import django.contrib.postgres.fields
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import phonenumber_field.modelfields
import uuid
class Mig... | [
"dbinetti@gmail.com"
] | dbinetti@gmail.com |
7f2f689b6883c422ff89b0e0b6d7caa9ddee9614 | 946c04aa741b557daf56eac46385a613ac5e0cf2 | /PP4E/Gui/Intro/gui5.py | b2b8b70f650807ef1549ca6f4323d7c8a9f57dd9 | [] | no_license | Ozavr/lutz | 513ba0ca91d7188b2d28f649efe454603121106f | 0ee96b5859c81ab04e8d2a3523a17fff089f12f2 | refs/heads/master | 2021-01-02T23:18:16.680021 | 2018-09-04T22:27:35 | 2018-09-04T22:27:35 | 99,497,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from tkinter import *
class HelloButton(Button):
def __init__(self, parent=None, **config):
Button.__init__(self, parent, **config)
self.pack()
self.config(command=self.callback)
def callback(self):
print('Goodbye world...')
self.quit()
if __name__ == '__main__':
... | [
"ozavr@me.com"
] | ozavr@me.com |
5eb7dd61863280778a5cd54af2e5ab262e045e7a | 6f0d08b02ae0274216ea2ffcf39b5faefcc6ca69 | /djangocms_redirect/__init__.py | 1d7cc6b18a40ef8365e096190018c64681c97545 | [
"BSD-3-Clause"
] | permissive | maestrofjp/djangocms-redirect | 9ea7eebd30b3f46978fbd7bd61596ad227b55ca7 | 8fb1a9f163de586a989b452af2e41e04c9b3b9b2 | refs/heads/master | 2022-07-15T01:04:43.861402 | 2019-12-27T11:29:20 | 2019-12-27T12:15:31 | 266,379,015 | 1 | 0 | null | 2020-05-23T16:47:26 | 2020-05-23T16:47:25 | null | UTF-8 | Python | false | false | 120 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
__version__ = '0.5.0'
| [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
a3747146d7f8678915c0c173eb6d0695793974e3 | f8e64dd069b2d65f1b9af53e03c42d97301e9a1d | /tests/django_test/tests.py | fce02241b82e1399b7cb2ee76df55ba7e3653277 | [] | no_license | grengojbo/django-currency | 8daef53e442d7409f02c68dec48ff535b1712377 | 26e26cfb09ae8e62851a81bc8d821e1530eef20c | refs/heads/master | 2021-04-12T04:32:53.928776 | 2010-04-28T17:00:39 | 2010-04-28T17:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,206 | py | # -*- mode: python; coding: utf-8; -*-
from unittest import TestCase
from currency_test.models import Entity, Entity_0_USD, Entity_USD
from currency.fields import NotSupportedLookup
from currency.money import Money
from l10n.models import Currencies
import logging
log = logging.getLogger('currency_test')
cla... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
d56f4ea037bc27467c7b6ff93127249dcdcd3a15 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j194443+544943/sdB_O11_J194443+544943_coadd.py | 7f0b5187489f4f32a43f3fd1021269bc0d5900b6 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[296.179167,54.828611], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_O11_J194443+544943/sdB_O11_J194443+544943_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHT... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
de4b512f6f8e51b658c8c53c140d3df0a4b14b44 | 4c33dee03cf55b112b9a0b950690ccd45511e580 | /code/lvmeng_project-master/erp/migrations/0119_position_department.py | f6d4218c3fe48d071d30dc128b0e6fdb146348c2 | [] | no_license | yfjelley/lvmeng | 4a40cf5b8c89581162d4ab4bcf303b97d40c4ccd | bb109b39381177782838fb6301204dd7d9a2d206 | refs/heads/master | 2020-08-02T21:00:40.579192 | 2016-11-12T14:00:44 | 2016-11-12T14:00:44 | 73,555,732 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('erp', '0118_auto_20160527_1658'),
]
operations = [
migrations.AddField(
model_name='position',
name=... | [
"549636719@qq.com"
] | 549636719@qq.com |
1514742dde6ae2b304dd7dfb50872bd586a69720 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/medium/19_6.py | ddaa591fada7eb3c14f6e998a2633e0b3f978525 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,327 | py | Python | Tokenize text using TextBlob
**TextBlob** module is a Python library and offers a simple API to access
its methods and perform basic NLP tasks. It is built on the top of NLTK
module.
Install TextBlob using the following commands in terminal:
pip install -U textblob
python... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
7ba39ecac5902e8e07f7ce7b1706f98dc18359cc | fccf6c2a7eb9de7e5dc5daa361e29c4726b9b09c | /mush/plugins/_plugins/csv_datastore.py | 82378c81fa70d93252d7ac834906cfe5fdb31e1d | [] | no_license | corystone/mush | b2331babf60e2ce4fece88337372ddef68e0d9ea | cebad9029e157f8421a760f5da807192088629fd | refs/heads/master | 2020-12-25T23:08:50.905246 | 2015-06-22T21:31:01 | 2015-06-22T21:31:01 | 38,126,010 | 0 | 0 | null | 2015-06-26T18:03:40 | 2015-06-26T18:03:40 | null | UTF-8 | Python | false | false | 1,315 | py | # This contains the default implementations for all of mush's interfaces.
import csv
import os
import prettytable
import sys
from collections import OrderedDict
from mush.plugins import interfaces
class data_store(interfaces.data_store):
__keyname__="csv"
def __init__(self, data_file=None):
self.data... | [
"jose.idar@rackspace.com"
] | jose.idar@rackspace.com |
dd21f4453e8f599ce6d096bae06ac7b552f4f64e | 75f07b93b77e3e7eca1e31075b23dcf8c10f2546 | /portfolio/position.py | fd755eae5a40282fabff9a36ffc8886980d98e4f | [] | no_license | ivanliu1989/EventDrivenForexTrading | 138743b56ce6651cfae0067a955b97a355d3be84 | 0eba6931a8cbc2f46177681e336688a70f9ae71a | refs/heads/master | 2020-07-31T19:21:42.660053 | 2017-01-08T21:10:36 | 2017-01-08T21:10:36 | 73,593,224 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,297 | py | from decimal import Decimal, getcontext, ROUND_HALF_DOWN
class Position(object):
def __init__(
self, home_currency, position_type,
currency_pair, units, ticker
):
self.home_currency = home_currency # Account denomination (e.g. GBP)
self.position_type = position_type # Long o... | [
"ivan.liuyanfeng@gmail.com"
] | ivan.liuyanfeng@gmail.com |
03084d6addd2e7071d35fa9a713ea06a9d1d83fb | fc4d142b5fec695e740af79058db919ad235ad53 | /sandyspringbank/pipelines.py | 150fcf000e4668c5e1b5aac427a11b101be6c269 | [] | no_license | daniel-kanchev/sandyspringbank | 4cc36b965621ea6265a53778dfa883a8314980f2 | f3f7db678dba045b8f9986ddf3d48fa0313fe6f3 | refs/heads/main | 2023-04-03T08:42:09.199209 | 2021-04-08T10:23:20 | 2021-04-08T10:23:20 | 355,860,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from itemadapter import ItemAdapter
import sqlite3
class DatabasePipeline:
# Database setup
conn = sqlite3.connect('sandyspringbank.db')
c = conn.cursor()
def open_spider(self, spider):
self.c.execute(""" DROP TABLE IF EXISTS articles """)
self.c.execute(""" CREATE TABLE articles (
... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
b82834ddecd77b9f12ca4bb842a94bc75c4021d1 | 139715a923c8c82b172803d5bdc1b1bca46fbdf3 | /leetcode/longest_palindromic.py | 1558c28aff116b13ee0bc8669113cf36a37c87fd | [] | no_license | haoccheng/pegasus | ab32dcc4265ed901e73790d8952aa3d72bdf72e7 | 76cbac7ffbea738c917e96655e206f8ecb705167 | refs/heads/master | 2021-01-10T11:33:23.038288 | 2016-03-18T04:17:28 | 2016-03-18T04:17:28 | 46,103,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # longest palindromic substring.
def lps(input):
if len(input) == 0:
return ''
elif len(input) == 1:
return input
scores = []
for i in range(len(input)):
row = [-1] * len(input)
scores.append(row)
for i in range(len(input)):
scores[i][i] = 1
for j in range(1, len(input)):
for i in r... | [
"haoc.cheng@gmail.com"
] | haoc.cheng@gmail.com |
6b8b9fe30ece7039707dd229ddd3c1020adedd9c | a247e3a40bca426f604ee057319ae3f7fce5c22f | /django1/djangonautic/urls.py | 0d4dc74f4d6396317ca197b82807154782049cc4 | [
"MIT"
] | permissive | stephenndele/django-1 | fcb5cd2a8598b5d68855814fb588a231e06efc09 | 11be0289bc3b6b3234b1e34979f282bd06cbce2e | refs/heads/main | 2023-03-26T14:55:11.769279 | 2021-03-25T12:12:55 | 2021-03-25T12:12:55 | 349,335,362 | 0 | 2 | null | 2021-03-25T12:12:56 | 2021-03-19T07:22:05 | Python | UTF-8 | Python | false | false | 1,281 | py | """djangonautic URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"stephenndele09346@gmail.com"
] | stephenndele09346@gmail.com |
27a6433c20f1f68049011382aae5e56e0b5f9452 | e3abe5129d705b8d92ebd87f9a3e863ab88848a9 | /sdks/python/http_client/v1/polyaxon_sdk/models/v1_list_bookmarks_response.py | a407aef848ef2bd0e694649a14fd7c4d410c557a | [
"Apache-2.0"
] | permissive | adamjankaczmarek/polyaxon | 082a832ac67433eadb84174c41f866d0699186b1 | fe3d182b8d0a910002ccc13c309c69f226807003 | refs/heads/master | 2023-04-22T13:52:09.043020 | 2021-05-09T22:06:09 | 2021-05-10T11:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,999 | py | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"contact@polyaxon.com"
] | contact@polyaxon.com |
8b0503b582214ed0f0b18124486d100073d96c8e | 747f759311d404af31c0f80029e88098193f6269 | /addons/training_exam/migrations/0.1/pre-10-associate_group_to_seance.py | e5009787b7bcf54e128642b6ac76a80145eae8e5 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/openerp/production/extra-addons/training_exam/migrations/0.1/pre-10-associate_group_to_seance.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
2c3e7fe3e05b4fc792b33fc317a459849dbbf604 | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/suds/umx/core.py | a8192451d1eaf24661e928594ae563a4e530d6de | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 7,554 | py | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will b... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
f940a9c283dd7d30f54ed928bab5ccd889d43de5 | b685036280331fa50fcd87f269521342ec1b437b | /src/myTensorflow/demo_05.py | 1f2b57671c2b987ed681ce7c3c160a6d3972d3f4 | [] | no_license | chenqing666/myML_DM_Test | f875cb5b2a92e81bc3de2a0070c0185b7eacac89 | 5ac38f7872d94ca7cedd4f5057bb93732b5edbad | refs/heads/master | 2022-02-26T01:52:06.293025 | 2019-09-20T06:35:25 | 2019-09-20T06:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import tensorflow as tf
hello = tf.constant('hhh')
a = tf.constant([[12, 12], [1, 5]])
b = tf.constant([[1], [2]])
c = tf.matmul(a, b)
with tf.device("/cpu:0"):
sess = tf.Session()
print(sess.run(hello))
print(sess.run(c))
sess.close()
with tf.device("/cpu:1"):
sess = tf.Session()
print(sess.... | [
"daijitao@ctsi.com.cn"
] | daijitao@ctsi.com.cn |
458e11e4811a96d9661b93c0257629b6f944003c | 9e131c705936db8b9d3a473a13c5f17aab5b6bda | /chainer_/chainercv2/models/xdensenet.py | c95858f624d55039b269e6051dda3e0f07943672 | [
"MIT"
] | permissive | kolingv/imgclsmob | 0b792cdcc88abbfb63bebbe8a45e5772e755aed0 | 11e77cf36f0c99be044597d5be29313be394a692 | refs/heads/master | 2020-04-23T14:12:08.784090 | 2019-02-17T19:39:48 | 2019-02-17T19:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,365 | py | """
X-DenseNet, implemented in Chainer.
Original paper: 'Deep Expander Networks: Efficient Deep Networks from Graph Theory,'
https://arxiv.org/abs/1711.08757.
"""
__all__ = ['XDenseNet', 'xdensenet121_2', 'xdensenet161_2', 'xdensenet169_2', 'xdensenet201_2']
import os
import chainer
import chainer.functio... | [
"osemery@gmail.com"
] | osemery@gmail.com |
318e60bb5353bf9eaba8063aa04e015f49e9a0e1 | a7f442bc306d1a8366a3e30db50af0c2c90e9091 | /blockchain-env/Lib/site-packages/Cryptodome/Random/random.py | febf4166bce2618664f4f98ec0f4504e8918819c | [] | no_license | Patreva/Python-flask-react-blockchain | cbdce3e0f55d4ba68be6ecfba35620585894bbbc | 474a9795820d8a4b5a370d400d55b52580055a2e | refs/heads/main | 2023-03-29T01:18:53.985398 | 2021-04-06T08:01:24 | 2021-04-06T08:01:24 | 318,560,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,384 | py | # -*- coding: utf-8 -*-
#
# Random/random.py : Strong alternative for the standard 'random' module
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the ex... | [
"patrickwahome74@gmail.com"
] | patrickwahome74@gmail.com |
8eda803cef0cd42e4531597c58443b4afb2dbac6 | 222c8bc3a44805e09f27701a28a7ede29713ebb5 | /prjadmin/serializers.py | 2ce1f655a619fb2c455d8a1415141f0bc1229832 | [] | no_license | GDThumar2409/CodePlatform | 8ad9db0c87dd7dce0dec013df6123750093efa18 | 9e0f447409310e56ccddc0db3ed8da0080fa955d | refs/heads/master | 2021-05-26T01:08:58.773411 | 2020-04-12T20:38:23 | 2020-04-12T20:38:23 | 253,993,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from rest_framework import serializers
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['username', 'password', 'email', 'first_name', 'last_name','is_staff'] | [
"you@example.com"
] | you@example.com |
3a1ef59235550e1647d31935fbdc7c770583e372 | 4adc1d1b8f9badefcd8c25c6e0e87c6545ccde2c | /OrcView/Lib/LibView.py | f6d11bbca121dfcb331baac9fe04b7d0cb9fbf0f | [] | no_license | orange21cn/OrcTestToolsKit | eb7b67e87a608fb52d7bdcb2b859fa588263c136 | 69b6a3c382a7043872db1282df4be9e413d297d6 | refs/heads/master | 2020-04-15T07:30:35.485214 | 2017-09-30T06:16:17 | 2017-09-30T06:16:17 | 68,078,991 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 22,595 | py | # coding=utf-8
import os
import json
from PySide.QtCore import Signal as OrcSignal
from PySide.QtGui import QWidget
from PySide.QtGui import QPushButton
from PySide.QtGui import QSizePolicy
from PySide.QtGui import QHBoxLayout
from PySide.QtGui import QVBoxLayout
from PySide.QtGui import QLabel
from PySide.QtGui import... | [
"orange21cn@126.com"
] | orange21cn@126.com |
605206c877a8dda26d26468f830f37f4dfbb3db3 | eb676eb94cd3d21d684108d25249f1d1437ccf50 | /mmrotate/core/bbox/assigners/__init__.py | ace9cc76460684a297699a775c9bee0edb086f5e | [
"Apache-2.0"
] | permissive | Ixiaohuihuihui/AO2-DETR | c11d5f2115180712907976b6a76d1526ba02f134 | bb9ae812c804260900b101f417e58d247eaa8ad7 | refs/heads/master | 2023-05-23T21:36:04.978670 | 2023-03-16T03:25:03 | 2023-03-16T03:25:03 | 496,444,703 | 62 | 9 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .atss_kld_assigner import ATSSKldAssigner
from .convex_assigner import ConvexAssigner
from .max_convex_iou_assigner import MaxConvexIoUAssigner
from .sas_assigner import SASAssigner
#from .hungarian_assigne
from .rotated_hungarian_assigner import Rotated_HungarianAss... | [
"1577884743@qq.com"
] | 1577884743@qq.com |
cfeeea8038ce5977273fa5d81dc00c26c86c4b6e | b1659f79351d99c648f25ca9a9e84970d7c2ef64 | /shiyan7_file_processing/copy_file.py | 57c0d3a03e5babdd727e2fbc4771413e94121b10 | [] | no_license | MingGeng/shiyanlou_python_louPlus | 5d64abbbe33940098e7c4130fea6a022db10d160 | 96d570bcee8f500f54f8ac38b29395fcda54d844 | refs/heads/master | 2021-04-06T19:46:29.381630 | 2018-07-17T14:54:40 | 2018-07-17T14:54:40 | 125,378,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/env python3
import sys
def copy_file(src, dst):
with open(src, 'r') as src_file:
with open(dst, 'w') as dst_file:
dst_file.write(src_file.read())
if __name__ == '__main__':
if len(sys.argv) == 3:
copy_file(sys.argv[1], sys.argv[2])
else:
print('Parameter Erro... | [
"gengming8859@icloud.com"
] | gengming8859@icloud.com |
d8c23c6a910a0e40bb2c24d749d5b9997673a46b | e395c0a213a458d6aa90ef1b9ef84d616dbd7af6 | /storage-appliance/usr/lib/python2.7/dist-packages/PetaSAN/web/admin_controller/replication.py | a8ad3281a09d59d4a00dfdd4d3c3ed7cc589243b | [] | no_license | robertoberto/petasan | 486316854f950b22720a6223f829d8d056d4bfd5 | eaa001552afee5c18833d366500264b2957dc5d5 | refs/heads/master | 2020-12-27T00:17:04.682792 | 2020-02-02T01:56:27 | 2020-02-02T01:56:27 | 237,702,479 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 36,845 | py | '''
Copyright (C) 2019 Maged Mokhtar <mmokhtar <at> petasan.org>
Copyright (C) 2019 PetaSAN www.petasan.org
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License
as published by the Free Software Foundation
This program is distributed i... | [
"roberto.berto@gmail.com"
] | roberto.berto@gmail.com |
f9fe29a923068b65833697452535840dccea2b86 | 98810fbf90a42028915a88bfac9fb8cb8681008e | /azure-devops/azext_devops/devops_sdk/v6_0/core/core_client.py | 57867fae6a99a235747cf48dd42774b859e52b71 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"PSF-2.0",
"PostgreSQL",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"C... | permissive | Azure/azure-devops-cli-extension | ba87357a8243e1318f100791fc32acbb59448d05 | bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b | refs/heads/master | 2023-08-29T10:56:54.228674 | 2023-07-17T04:37:06 | 2023-07-17T04:37:06 | 107,708,057 | 419 | 208 | MIT | 2023-08-02T02:10:10 | 2017-10-20T17:39:11 | Python | UTF-8 | Python | false | false | 27,267 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a7abd4638892c84d227287cb1282bfd6ab9163f1 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba3648.pngMap.py | 441b8fa2dcfe7210a22ebbcca0d1d3a1afc6eaf9 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba3648.pngMap = [
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'1111111111111111111111111111111110011... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
650aed86295644d3b0a017d10603cab76189774c | 0eb0b12c332dec70066ff373d70e847f0b9ff04e | /colordiffs/cmdline.py | adc8fdbad920b82b5062f378d67199d82acf2cbe | [] | no_license | ngzhian/colordiffs | 221370533181d44bb1bd97765dc7bd856a647087 | a5644fc9785ead9568d6d2039a0ba5aafcf3cc5e | refs/heads/master | 2023-08-11T15:55:22.557518 | 2023-07-20T13:10:56 | 2023-07-20T13:14:26 | 36,635,839 | 7 | 0 | null | 2023-07-20T13:14:27 | 2015-06-01T03:35:13 | Python | UTF-8 | Python | false | false | 71 | py | import sys
from .colordiffs import run
def main():
run(sys.stdin)
| [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
7ca280eecffe3178dcdc5cfb5ba813620212f11d | a29456fffea8742552a27967e77d930ec7af49c1 | /binary-to-number.py | d7ca2dff38967fc2f7ad33d83ba63ede5d553bc2 | [] | no_license | alex-bellon/python | 591c7804fd913df6023f13dc83c1f50f049a41f7 | 651e24bff5e7ca4f284c52286cc9f6c4fe1095e1 | refs/heads/master | 2022-05-13T10:17:54.086443 | 2022-03-28T03:42:00 | 2022-03-28T03:42:00 | 170,757,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | bits = '110010'
number = int(bits, 2)
print(number)
| [
"alexrbellon@gmail.com"
] | alexrbellon@gmail.com |
e04ba123578b457aa6bdc457f22417cfbce58d6c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/SlowFast_ID0646_for_PyTorch/detectron2/projects/DensePose/densepose/modeling/losses/cycle_pix2shape.py | 67ce477160282e1678251e1da8988d8168e3dd32 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"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,970 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
5228acdcf06e9af2aed9200d7b2db8fcedd16858 | cd03e63db2b8c84e7ec6fdefa9c87ee30d71c6bd | /source/static/admin/js/compress.py | 1277f9d8e68dd3829b084f30928c217be8800864 | [] | no_license | twidi/fpe2aa | 31e4210b533360fdae5fe2cd79a4d7ba9d27d3f0 | b426659c357b1d3b840afa5afe93e300a3b1c630 | refs/heads/master | 2016-09-05T20:29:15.052855 | 2012-03-29T00:54:38 | 2012-03-29T00:54:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | /home/twidi/dev/envs/pres2012/src/django/django/contrib/admin/static/admin/js/compress.py | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
1320ccdcabeec2102af80bce10fe58ad04cc68b6 | f885c62db9ccbd199bc85fd440cc7d46b1667bf4 | /src/main.py | 29debb32e00ac2342950042dd6330ea41672efc3 | [] | no_license | mikekestemont/char-w2v | 9fe77acb8eb7472a7a52ca1cedbc342789bc7cf0 | b78fc115dd195cb57a12e164c7af6ee9cdc05122 | refs/heads/master | 2021-01-18T19:54:52.072161 | 2016-06-28T14:41:08 | 2016-06-28T14:41:08 | 61,814,117 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,886 | py | from __future__ import print_function
import codecs
from collections import Counter
import random
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from keras.layers import Input
from keras.layers.core import Activation, Reshape, Flatten, Dense
from ker... | [
"mike.kestemont@gmail.com"
] | mike.kestemont@gmail.com |
034cf1b1308370192a9ab2340253d102ef5bbc6c | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_intro/project_time_display/time_display/views.py | b238849ea6063ca9c51919b8556a6ebde2a1f8d7 | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py |
from django.shortcuts import render
from time import gmtime, strftime
def index(request):
context = {
"time": strftime("%Y-%m-%d %H:%M %p", gmtime())
}
return render(request,'index.html', context)
| [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
f70acbf56e56f24e26c3c2808fc6aa5d0a7635ec | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/17626pypy/a.py | 43ec93671373bad428745d81436d93d8559bf4c1 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | n=int(input())
d={i+1:set([])for i in range(n)}
for i in range(1,int(n**.5)+1):
for j in range(i+1):
if i*i+j*j>n:continue
for k in range(j+1):
if i*i+j*j+k*k>n:continue
for l in range(k+1):
if i*i+j*j+k*k+l*l>n:continue
if i*i+j*j+k*k+l*l==n:
... | [
"dwj1996@naver.com"
] | dwj1996@naver.com |
bfa07f61497ac1d49059b4af509b1844addd9485 | ad71c89863122dfb4093db0d9f9c40d962d567ff | /Week 10/4-Filter.py | 3ce6e74e198c41ed602ce39f4fd16c4986268cce | [] | no_license | jacktnp/PSIT60 | 8958e7cca278c81d2c5d3af6956728c35425628d | b63c63d8d9c1e97ce66bbb0b884b1f19fecf7b6b | refs/heads/master | 2021-08-16T07:53:33.900161 | 2017-11-19T10:07:02 | 2017-11-19T10:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | """ PSIT Week 10
Wiput Pootong (60070090)
Filter
"""
import json
def main():
""" Filter print content """
# Get input
score = json.loads(input())
minimum = float(input())
result = {}
# Filter dict and add to result
for key in score:
if score[key] > minimum:
result[ke... | [
"wiput.pootong@gmail.com"
] | wiput.pootong@gmail.com |
8c48777341e44f792ab6dcb9e9da7e70eb67f220 | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /openapi-generator/python-aiohttp/openapi_server/models/data_input_history_response.py | 6672b2175e984ab8db1350d1ca8bfc4654f85bce | [] | no_license | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | # coding: utf-8
from datetime import date, datetime
from typing import List, Dict, Type
from openapi_server.models.base_model_ import Model
from openapi_server.models.data_input_history_response_points import DataInputHistoryResponsePoints
from openapi_server import util
class DataInputHistoryResponse(Model):
... | [
"greg@samsara.com"
] | greg@samsara.com |
cdd508ea83e581bcbd0e2f671f104c1414b5b9f7 | 8a136d27c97471f77d097a787db156de06adfb16 | /recombinator/statistics.py | ed5b1b58a4e8c5729dc942121a0868aaf87d9aa9 | [
"MIT"
] | permissive | InvestmentSystems/recombinator | 1dba03c522b21e007c255602904f31d7a26b08a6 | d424af17468f47837b9382fe1ec26a318f5bfa5d | refs/heads/master | 2022-04-30T01:27:24.532236 | 2022-03-14T17:09:21 | 2022-03-14T17:09:21 | 193,591,908 | 48 | 7 | NOASSERTION | 2021-10-15T17:50:09 | 2019-06-24T22:54:39 | Jupyter Notebook | UTF-8 | Python | false | false | 2,597 | py | import numpy as np
import typing as tp
def estimate_bias_from_bootstrap(
bootstrap_estimates: np.ndarray,
original_estimate: float) \
-> float:
"""
This function estimates the bias of an estimator given an estimate of a
statistic from the original data as well as variety of estimat... | [
"nowotnym@gmail.com"
] | nowotnym@gmail.com |
75edf8f809347705de99a148db8613dbe9a2242c | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /train_wgangp_postemb_geomtest3.py | f32bfb2fc4453fedcdda412b8e0bfce2bb6cd0e3 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,463 | py | #!/usr/bin/python3
#$ -P P_comet
#$ -j y
#$ -cwd
#$ -M m.dubouchet18@imperial.ac.uk
#$ -m be
#$ -q mc_gpu_long
#$ -pe multicores_gpu 4
#$ -l sps=1,GPU=1,GPUtype=V100
import os
import sys
sys.path.append(os.getcwd())
import argparse
import logging
import os
import numpy as np
import torch
import torch.nn as nn
import ... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
d16cb68beadf89a16185b08bd09bd75bae2cda13 | 4178f2916d2da72cbb45454fbed941dcfe8f6460 | /POM_test/TestCase/Carings/TC_004.py | f2ead3ccafac57472446f9c1bdd2739738d9281f | [] | no_license | maxcrup007/Selenium_Webdriver_Python | 15196cb04ba5cafdc5b776c26d167f0b48fb0e14 | 6be7f0b9f53df1ba592957029e8a4d22e409d1c4 | refs/heads/main | 2023-03-24T21:04:31.976451 | 2021-03-22T09:16:04 | 2021-03-22T09:16:04 | 349,379,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py |
# ทดสอบการเข้าใช้งานของ "ดูแล" (ไม่กรอกค่าใช้จ่าย)
import time
import unittest
import sys
from selenium import webdriver
from POM_test.login import *
from POM_test.carePage import *
import os
sys.path.append(os.path.join(os.path.dirname(__file__), "...", "..."))
class TestCarring_4(unittest.TestCase):
@... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
95659be5d2b9fb41e555cdbb25327e0291bc2851 | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/2020/Test_w_46_HolidayDeals_T2/Page/UrlSegmentPage.py | 61a6dd2c24f998b80fd6e222ede997e7ec931584 | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | import glob
import json
from urllib.parse import urlparse, parse_qs
import sys
import os
import logging
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
sys.path... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
d304225bc84eb2bec9567d3480889e172d89a555 | c13ff329df99c3589012420284113b066af29b1f | /core/gpx_course.py | ac443f892a7811253662678a3d84ed6a24d2e648 | [] | no_license | esitarski/RaceDB | 8bbdaecbf357777e13a4edcf6505ecdd7103f6ca | 2d2add6390ca530c84bf1a023a94d5e1be493e60 | refs/heads/master | 2023-08-03T06:24:14.509166 | 2023-07-29T14:54:01 | 2023-07-29T14:54:01 | 26,198,293 | 11 | 9 | null | 2023-04-06T23:47:35 | 2014-11-05T02:03:24 | Python | UTF-8 | Python | false | false | 3,544 | py | import io
import operator
from django.utils.translation import gettext_lazy as _
from django.utils.safestring import mark_safe
from .views_common import *
from .gpx_util import simplify_gpx_file
gpx_fields = ('name', 'description', 'is_loop')
#-----------------------------------------------------------------------
... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
3d5a55d347cc1bc11ea731b190a643f856803c70 | 2bd8fbe6e2ee2511d00479440aa589249234c2d8 | /00-before/day02/day02-02.py | 821f53381fefd0c304af25fb2cce00ccaf3a42a0 | [] | no_license | LeenonGo/sklearn-learn | 71d21f9b26cfb5cc6d65a22883127db873a31091 | 460d6e75e82943c802f7c025a03c821d02b5d232 | refs/heads/master | 2023-07-13T18:42:17.510938 | 2021-08-18T11:34:06 | 2021-08-18T11:34:06 | 371,628,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | """
使用核 https://www.scikitlearn.com.cn/0.21.3/54/#_8
在特征空间中 类并不总是线性可分的。当不是线性可分时,解决办法就是构建一个不是线性的但能是多项式的函数做代替。
核技巧(kernel trick)
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn import svm
# 显示3种不同类型的核函数 多项式和径向基函数在数据点不可线性分离时特别有用。
# Our dataset and targets
X = np.c_[
(.4, -.7), (-1.5, -1), (-1.... | [
"yaa.lee@hotmail.com"
] | yaa.lee@hotmail.com |
977209a94b46fb2730ead78aa93ff34d4464ce3e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03151/s789097501.py | becc8d411e69359a20b256c72dc2e6e2eb1aa843 | [] | 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 | 505 | py | from collections import deque
N = int(input())
A_list = list(map(int, input().split()))
B_list = list(map(int, input().split()))
AB_list = sorted([A-B for A,B in zip(A_list, B_list)])
AB_q = deque(AB_list)
if sum(AB_list) < 0:
print(-1)
exit()
if AB_list[0] >= 0:
print(0)
exit()
cnt = 0
stock = 0
whi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6f53bcccde0a98f07f693b4281475f98032e7f8f | bccb2cb00fecc24031e727a0ecbc246338d488eb | /softdesk/projects/models.py | c3234eb7a9d15f6e84c9059f8c8b24290aafa058 | [] | no_license | Arnaud290/OC_P10 | 03c8e85e8f89d7a32afea086b56adea34047ab53 | fb22c9e8906d2b61e6fa575ea2e271933e19b2ca | refs/heads/master | 2023-04-27T04:59:40.320393 | 2021-05-19T11:45:59 | 2021-05-19T11:45:59 | 361,775,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | """Models module of the projects application"""
from django.db import models
from django.contrib.auth.models import User
from projects import models_settings
class Project(models.Model):
"""Class model of projects"""
title = models.CharField(max_length=150)
description = models.TextField()
project_typ... | [
"arnaud.manach@gmail.com"
] | arnaud.manach@gmail.com |
8d8110debe4699408211ea4bb0962b0a9bf66819 | a7ab35ff204d7c4679ce8b1bf7da8fa363a7a708 | /algo_problems/q21-40/q23.py | cb55f511f5fdab09a549928e1f8ab28fe315dc05 | [] | no_license | lin13k/practice | c68e7270be2694cb9737c35af8beb19db7e30d65 | c3efe1a5839c3ff1c320c0fcfc7b65a9462f7b52 | refs/heads/master | 2021-01-19T11:05:43.521468 | 2018-11-12T09:42:29 | 2018-11-12T09:42:29 | 87,928,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
from heapq import heappop, heappush
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
... | [
"lin.13k@gmail.com"
] | lin.13k@gmail.com |
b5eb48a9b0f03e7d1fb8db15af97f2c08854f2aa | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/sympy/physics/mechanics/tests/test_kane3.py | 852e10822e14c3b4cb98350ac415bdefb5ee85d0 | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 14,517 | py | import warnings
from sympy.core.compatibility import xrange
from sympy import evalf, symbols, pi, sin, cos, sqrt, acos, Matrix
from sympy.physics.mechanics import (ReferenceFrame, dynamicsymbols, inertia,
KanesMethod, RigidBody, Point, dot)
from sympy.utilities.exceptions import Sy... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
da571d73461045494b60e526070e97af8271e170 | b79547dd150df2fd77a7b9a323623cd6a42b8e25 | /djpsilobus/bin/file_search.py | a55336fb36183da576e8551691a55923c95fa133 | [
"MIT"
] | permissive | carthage-college/django-djpsilobus | 030d704d7345cdcb993f378c644fdfacb1fa5fff | 386bc17a845247be3049f98f4d38ff49cb54d60c | refs/heads/master | 2023-08-06T17:37:25.021935 | 2023-07-26T17:53:28 | 2023-07-26T17:53:28 | 62,468,994 | 2 | 0 | MIT | 2023-02-24T18:19:35 | 2016-07-02T20:41:30 | Python | UTF-8 | Python | false | false | 1,635 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import logging
import os
import sys
from django.conf import settings
from djpsilobus.core.dspace import Search
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djpsilobus.settings.shell')
logger = logging.getLogger('debug_logfile')
# set up command-l... | [
"plungerman@gmail.com"
] | plungerman@gmail.com |
fe1bea797d76883e3f659fcca6b2c325b12774e0 | 161b18b516fd5b2752ea295efc05676b3b34892d | /tensorflow_datasets/text/eraser_multi_rc.py | 28207e014e73a1cc5b3d7ca9910c8016ab63092c | [
"Apache-2.0"
] | permissive | bryanko1/datasets | 8b35bc6e2e085036bfd30223aa2b0008afa002f3 | e49ca713c49090ce4f492972f9aa262f5ba9bc9a | refs/heads/master | 2020-12-22T14:02:54.667732 | 2020-01-28T09:17:35 | 2020-01-28T09:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,318 | py | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
dfa95e2462bd86d26a9f7d3757b27bdef972362f | 48181c1bd373edaaadbec309cab5da25c52e47c3 | /hutch_python/sim.py | e1dfb4542370862fe71846ba5454c1cd38a2c38c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | pcdshub/hutch-python | af9ff58107e070fe969b7a8c8d1da18ed81a5873 | fef6f96d3c44bf0da1ed25c6c17df9672821e82e | refs/heads/master | 2023-08-07T18:19:26.405423 | 2023-07-26T18:46:37 | 2023-07-26T18:46:37 | 113,611,605 | 0 | 12 | NOASSERTION | 2023-09-14T21:12:43 | 2017-12-08T19:49:46 | Python | UTF-8 | Python | false | false | 531 | py | from pcdsdevices.sim import FastMotor, SlowMotor
from .utils import HelpfulNamespace
def get_hw():
"""
Create and return a standard namespace of simulated hardware.
"""
ns = HelpfulNamespace(
fast_motor1=FastMotor(name='fast_motor1'),
fast_motor2=FastMotor(name='fast_motor2'),
... | [
"zlentz@slac.stanford.edu"
] | zlentz@slac.stanford.edu |
2377b02069bf9b22cbb3f89194613ce2d7525707 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/show_auto_enlarge_policy_response.py | 75f08f4d44424ce81bdffa24b129356802af2175 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,527 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowAutoEnlargePolicyResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
18d081a1a26e6b3c47c8e55d81a6d91aa2b7b735 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2218/60668/258458.py | f38e4c040c42a7174b78c93f3637f955f0585387 | [] | 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 | 280 | py | def nums_2_MaxRe(list = []):
co = 0
maxN = 0
list = sorted(list)
maxN = max(list[0]*list[1]*list[-1],list[-1]*list[-2]*list[-3],list[0]*list[1]*list[2])
print(maxN)
if __name__=='__main__':
list = [int(i) for i in input().split(',')]
nums_2_MaxRe(list) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4dedbba84e4889f05bcad7b75275e677afc3f312 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/13104141.py | f0d4bf6a4d694ece0647c69bf0b806b0c67d2a4d | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/13104141.py generated: Fri, 27 Mar 2015 16:10:15
#
# Event Type: 13104141
#
# ASCII decay Descriptor: {[B_s0 -> K+ pi- (KS0 -> pi+ pi-)]cc, [B_s0 -> K- pi+ (KS0 -> pi+ pi-)]cc}
#
from Configurables import Generation
Generation().EventType = 13104141
Gener... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
84fb8e291315d9a393354a8e67361dd64e6fd0e4 | c5a8f6dd4e5ebc43f02923704325620f0787b2f4 | /ssr/basicscene.py | bc159ec8a3c24dce6476f9b14ae58672f281a783 | [] | no_license | alex-berman/tforms | 50098501d19de75632426423d02025162bbc94e6 | 046476001609dfa8192c2e373a040d4129975ab6 | refs/heads/master | 2021-01-01T20:00:00.381901 | 2014-03-16T13:44:09 | 2014-03-16T13:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | import time
class Source:
def __init__( self, scene, id, x=0, y=0):
self.scene = scene
self.id = id
self.x = float(x)
self.y = float(y)
self.type = "point"
self.orientation = float(0)
self.mute = False
self.name = "Unnamed"
self.volume = 0.0 # in dB
self.level = 0.0
self.allocated = False
self... | [
"alex@nimations.com"
] | alex@nimations.com |
6e7a32865eb8dbea26532005cc58571592484527 | df264c442075e04bb09d82f9be1d915c070d7e09 | /BJ/test.py | 68b9f10e7570303b108ced7ca8241e23a7fa15b4 | [] | no_license | Koozzi/Algorithms | ff7a73726f18e87cab9406e7b71cd5d1856df183 | 38048ac0774fcab3537bdd64f48cae7d9eb71e6f | refs/heads/master | 2021-07-06T04:59:38.564772 | 2021-05-03T08:49:56 | 2021-05-03T08:49:56 | 231,848,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import sys
sys.setrecursionlimit(10**9)
N = int(sys.stdin.readline())
graph = [[] for _ in range(N+1)]
for _ in range(N-1):
A, B, V = map(int, sys.stdin.readline().split())
graph[A].append([B, V])
graph[B].append([A, V])
first_node = []
second_node = []
def dfs(start, dist, visit, flag):
is_next =... | [
"koozzi666@gmail.com"
] | koozzi666@gmail.com |
8008cb74c0796e8dc38df9909485efc9043688a2 | aa1e01857c2e02b711e1b748d79016377bcbf3f6 | /3. Chapter 3 Strings/Practice problems/44_string.py | 02a6bdb72dd4e24d12f502bf244f4318ddfd62aa | [] | no_license | jaishivnani/Python-Practice-Problems | 3d6b64aca93d28bc479f21845e878b0cc2b037fb | 46d82b276cb46d61cd0acac507cc92b4707e5456 | refs/heads/main | 2023-01-22T23:06:48.309872 | 2020-12-05T14:13:26 | 2020-12-05T14:13:26 | 303,448,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | '''Exercise Question 3:
Given 2 strings, s1, and s2 return a new string made of the first, middle and last char each input string
s1 = "America"
s2 = "Japan"
Sample Output
AJrpan
'''
def mix_string(s1,s2):
first_char = s1[:1]+s2[:1]
middleindexstr1 = int(len(s1)/2)
middleindexstr2 = int(len(s2)/2)
last... | [
"jaishivnani30@gmail.com"
] | jaishivnani30@gmail.com |
1497165184eefde56d8e6e78e009701022cfcccc | d8eb27616043df6d04413f542b41a44cae36bf7e | /app_control_pagos/migrations/0009_contrato_tipo_venta.py | 275df190692dd8a41ebee01d5f63d9e73649eea3 | [] | no_license | josuetec2003/prados_uni | b6fc18869a7e687d00207904c705a3151ef1cee8 | c28931da6bbdcbd571c39adacddb9633530ef295 | refs/heads/master | 2023-02-17T22:38:35.247733 | 2021-01-17T06:18:22 | 2021-01-17T06:18:22 | 174,756,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 2.1.5 on 2019-02-24 22:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_control_pagos', '0008_auto_20190224_1607'),
]
operations = [
migrations.AddField(
model_name='contrato',
name='t... | [
"josuetec2003@gmail.com"
] | josuetec2003@gmail.com |
3dc5b935668da85a6d0d68a3f8ff52b712707042 | bc4688c02d16c4f786f0ea835f9e1a7e45272090 | /cnn/keras/deepROI2/train.py | a2c901cab094d045423034b3b9a2711f1ae1be40 | [] | no_license | mhubrich/adni-python | 4e3fb24e216fb908eb2426b2fc90482431f3494d | 21e14e4cb5ab8edf33deff7fbe2494bbc396ea35 | refs/heads/master | 2021-06-15T02:04:00.435915 | 2017-02-28T14:25:23 | 2017-02-28T14:25:23 | 69,449,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,158 | py | ##############################################################
# Set seed for determinisitc behaviour between different runs.
# Especially fresh weights will be initialized the same way.
# Caution: CudNN might not be deterministic after all.
SEED = 0
import numpy as np
np.random.seed(SEED)
#############################... | [
"mhubrich@students.uni-mainz.de"
] | mhubrich@students.uni-mainz.de |
5c25e6f49d864fdbe34d9f52d36b9342c77cc673 | 203fd0a2a91ee063736d11b069e11026c4184ec5 | /tools/test_files/all_10_or_less/benstein_vazirani_4b_secret_64.py | e67acc15699e4fb9e5a5bc39dd0d2df78e53f8a2 | [
"Apache-2.0"
] | permissive | Astlaan/OpenQL | 19b35200775367e6f11d1756e9495c1883a1c531 | 1b60d5784d439e6c19e662b570114aa1b3045d38 | refs/heads/develop | 2020-09-01T02:56:37.906564 | 2019-11-15T15:43:55 | 2019-11-15T15:43:55 | 181,012,110 | 0 | 0 | NOASSERTION | 2019-04-12T13:18:51 | 2019-04-12T13:18:51 | null | UTF-8 | Python | false | false | 3,314 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"diogovalada.7@tecnico.ulisboa.pt"
] | diogovalada.7@tecnico.ulisboa.pt |
a78d626ed6b9fdba7310ee814419c4e8fc87672a | 268a6b7a1138dce434c6b7a54eb36cb4ae799ddd | /traffic/gen_global3.py | a40e5bd17336117dd59518e7333434717245641a | [
"BSD-2-Clause"
] | permissive | rubiruchi/fdeval | 2b0592853a684a8c5b87aeb363e4ccff61f47c0c | f6463c1c7549b8ac7fc39854e87c88d3cac858a0 | refs/heads/master | 2022-11-08T17:56:34.188225 | 2020-06-23T16:46:13 | 2020-06-23T16:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import logging
import random
import math
import scipy.stats
import numpy as np
import matplotlib.pyplot as plt
from core.flow import Flow
from core.events import *
from plotter import flow_timeline
logger = logging.getLogger(__name__)
class gen_global3(object):
def __init__(self, ctx, generator, **kwargs):
... | [
"robert.bauer@kit.edu"
] | robert.bauer@kit.edu |
efe9da7fa86810dfd385f6396b294dd1970df151 | 0190fe5a5b650abca6a65b200ea3a7af644759ce | /conftest.py | 1a300a6133b2db1a0ec79f601a41b316b98a853f | [] | no_license | hjwp/process-hobbler-experiment | 8d09e5a2a7359d88dc6b4b87d4da9fef36b0d97c | 6ab90a5bd9726c8a943b9e1d45bdab38704b8330 | refs/heads/master | 2021-01-10T10:01:50.914178 | 2017-10-20T14:20:28 | 2017-10-20T14:20:33 | 47,463,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | from unittest.mock import MagicMock
import os
import pytest
import shutil
import subprocess
import tempfile
import hobbler
@pytest.fixture
def fake_tarpit_dir():
tempdir = tempfile.mkdtemp()
open(os.path.join(tempdir, 'tasks'), 'w').close()
yield tempdir
shutil.rmtree(tempdir)
@pytest.fixture
def f... | [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
9cd848ffaea44c0ee981b09a95f92b841cef53c2 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /go_person_with_last_way/know_first_eye/own_man.py | 7042c034a3aa2a060078b517f42b1a363467afd2 | [] | 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 | 228 | py |
#! /usr/bin/env python
def work_or_new_work(str_arg):
problem_and_few_group(str_arg)
print('point')
def problem_and_few_group(str_arg):
print(str_arg)
if __name__ == '__main__':
work_or_new_work('first_eye')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
ea4b91de5188c08322eb93e14a91ec61413a8aee | 55173732ce1f2537a4fd8a6137b2a813f594b250 | /azure-mgmt-web/azure/mgmt/web/models/csm_slot_entity.py | a4fa331c44923274bf1c0cb45fde420170618a93 | [
"Apache-2.0"
] | permissive | dipple/azure-sdk-for-python | ea6e93b84bfa8f2c3e642aecdeab9329658bd27d | 9d746cb673c39bee8bd3010738c37f26ba6603a4 | refs/heads/master | 2020-02-26T15:32:39.178116 | 2016-03-01T19:25:05 | 2016-03-01T19:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
48497ac7c8cec0739f72691a46b25e8a520925d2 | abf2df30f13ab035280a24a0cb46da9138516174 | /DailyCodingProblem/Problem_0072_directed_graph.py | 53a5ea56337339e65eaf155df3fcdfd503c02099 | [
"MIT"
] | permissive | stephanosterburg/coding_challenges | 19ade39b87e6712b87ec8e370d0440baae29c8d7 | 601cf1360a7fdf068487106ba995955407365983 | refs/heads/master | 2022-04-03T05:04:53.282117 | 2020-02-09T23:39:19 | 2020-02-09T23:39:19 | 214,471,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # In a directed graph, each node is assigned an uppercase letter. We define a path's value as the number of
# most frequently-occurring letter along that path. For example, if a path in the graph goes through "ABACA",
# the value of the path is 3, since there are 3 occurrences of 'A' on the path.
#
# Given a graph with... | [
"stephanosterburg@me.com"
] | stephanosterburg@me.com |
17a497a2df07cc53fa24a005cf3a807d626a9b40 | e1acd737f0d6d3ffce53ca0eab74c7b3d8bc12fe | /musics/models.py | ba04f666e4c80bfddeef6e17f73de5b8acf1080d | [] | no_license | yooseungju/django_restframework | bad082fbc8efd66e40031f2c294ab3408388090e | 73afc6158f7e7db5e6c4943aa7f3df114b29cf90 | refs/heads/master | 2020-05-16T09:36:08.080062 | 2019-04-23T07:04:28 | 2019-04-23T07:04:28 | 182,954,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.db import models
# Create your models here.
class Artist(models.Model):
name = models.TextField()
def __str__(self):
return self.name
class Music(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
title = models.TextField()
def __str_... | [
"seung338989@gmail.com"
] | seung338989@gmail.com |
55269f45a3f0812a1368a6bcd776754e10dc9a5e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03186/s921086785.py | b7706541bdddcea1c3f9a0c90d98af9bba4f214f | [] | 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 | 132 | py | from sys import stdin
a,b,c = [int(x) for x in stdin.readline().rstrip().split()]
if c > a+b+1:
print(a+2*b+1)
else:
print(b+c)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5cea0651ce728891e9e420e6a703db7d4cee7d3b | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatterpolar/selected/_textfont.py | 30aeb59e814c41aa71bc69f95b74d658733bed99 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 547 | py | import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self,
plotly_name='textfont',
parent_name='scatterpolar.selected',
**kwargs
):
super(TextfontValidator, self).__init__(
plotly_name=pl... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
8565158cb2c90eaf4a4618f308ae44b191bf8f43 | 93039551fbdef0a112a9c39181d30b0c170eb3a6 | /day32/taobaoDemo.py | 6ff4682c0b348d8f69564e0766e5d71c7700738c | [] | no_license | wenzhe980406/PythonLearning | 8714de8a472c71e6d02b6de64efba970a77f6f4a | af0e85f0b11bf9d2f8e690bac480b92b971c01bb | refs/heads/master | 2020-07-14T20:46:45.146134 | 2020-05-28T12:16:21 | 2020-05-28T12:16:21 | 205,398,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | # _*_ coding : UTF-8 _*_
# 开发人员 : ChangYw
# 开发时间 : 2019/8/27 11:03
# 文件名称 : taobaoDemo.PY
# 开发工具 : PyCharm
import re
import pymongo
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import exp... | [
"noreply@github.com"
] | wenzhe980406.noreply@github.com |
7ef6abb868a7e5b3019233e4889aa1558055b4bb | cffc460605febc80e8bb7c417266bde1bd1988eb | /since2020/ZeroJudge/ZeroJudge a121.py | b2ac7ad7616056cec23201fe50cfdeec0cc63899 | [] | no_license | m80126colin/Judge | f79b2077f2bf67a3b176d073fcdf68a8583d5a2c | 56258ea977733e992b11f9e0cb74d630799ba274 | refs/heads/master | 2021-06-11T04:25:27.786735 | 2020-05-21T08:55:03 | 2020-05-21T08:55:03 | 19,424,030 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | '''
@judge ZeroJudge
@id a121
@name 質數又來囉
@tag Prime, Range Query
'''
from math import ceil
from itertools import chain
from collections import defaultdict
from sys import stdin
def LinearSieve(n):
size = n + 1
prime = []
sieve = [ True ] * size
sieve[0] = sieve[1] = False
for x in range(2, size):
if sie... | [
"m80126colin@gmail.com"
] | m80126colin@gmail.com |
030fe07bf277febb8cb78cb0b5cef575adcfc29f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2956/60721/293098.py | 5619ad5cc2557214b159ddcfeb74a6e58de9c11e | [] | 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 | 275 | py | n=int(input())
s=input()
if(n==2):
print(675)
elif(n==5):
print(11607365)
elif(n==1):
print(26)
elif(n==3):
if(s=="sss"):
print(17525)
else:
if(s=="sas"):
print(17474)
else:print(17473)
elif(n==17525):
print(17474)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
f59a2c6445dd7696398ae140e74fa5bec2b94747 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/task/task_runner/test_task_runner.py | afeafd03b216d7fa789b653e07c1ba27727d1f26 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 2,497 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
24458fe06bcbdb67cb0ec3e9f29a18b69a0f3637 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/pygments/lexers/automation.py | 3ef42e48e5edca31c60596e9dc2647b37d943b60 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 19,640 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.automation
~~~~~~~~~~~~~~~~~~~~~~~~~~
Lexers for automation scripting languages.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer, include, bygroups, com... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
d65d517ee886cbdba4f6330df3dc89828242ceef | 05c0df5c49089c243603093769af6c0f6ea8db62 | /auto_deployment/asgi.py | 9fe080853a614a1f0b913b62bb725c82672eab89 | [] | no_license | mishraranjeet/auto_deployment | 3a6e89d3dbb43f0605cec4d31dc2f85aab154627 | c1e0a8b901237a59b3e9115edd7414c6faa0a4ff | refs/heads/master | 2022-11-14T20:16:31.859416 | 2020-07-05T09:23:45 | 2020-07-05T09:23:45 | 277,261,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for auto_deployment project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"mac@Macs-MacBook-Pro.local"
] | mac@Macs-MacBook-Pro.local |
606a1db2e2eb7ffd65ea7af1bb118e58eb2b8cd8 | 35be0509b6f98030ef5338033468710de1a536a3 | /heat/contrib/heat_docker/heat_docker/tests/test_docker_container.py | 3f2e1cf471bd63633f35852cd4b2bed64b33eaae | [
"Apache-2.0"
] | permissive | yizhongyin/OpenstackLiberty | 6f2f0ff95bfb4204f3dbc74a1c480922dc387878 | f705e50d88997ef7473c655d99f1e272ef857a82 | refs/heads/master | 2020-12-29T02:44:01.555863 | 2017-03-02T06:43:47 | 2017-03-02T06:43:47 | 49,924,385 | 0 | 1 | null | 2020-07-24T00:49:34 | 2016-01-19T03:45:06 | Python | UTF-8 | Python | false | false | 21,116 | py | #
# Copyright (c) 2013 Docker, 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 requir... | [
"yizhongyin@os-easy.com"
] | yizhongyin@os-easy.com |
079676899690099e0c1c59758494294fe2caf37d | b3a5a479eb5aedbc39776fe5f580b127e6a86d2b | /androGuard_main/build/scripts-2.7/androsign.py | 243c932959d9facff160a7f2cbb03b590db717e2 | [
"Apache-2.0",
"MIT"
] | permissive | jat023/G10442Project | 5403bf245f294748b64e42ff87699659b6c7c796 | 6ed4ad943c3f897fdafd4db4e52e4e44473f9f1f | refs/heads/master | 2021-05-01T07:08:13.805343 | 2016-12-04T07:21:00 | 2016-12-04T07:21:00 | 74,098,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,430 | py | #!/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
# This file is part of Androguard.
#
# Copyright (C) 2012, Anthony Desnos <desnos at t0t0.fr>
# All rights reserved.
#
# Androguard is free software: you can redistribute it and/or modify
# it under the terms of the GNU Less... | [
"james@Jamess-MacBook-Pro.local"
] | james@Jamess-MacBook-Pro.local |
a8c3eac5e6463dee940aace563f20a1f6667e6de | abbc2d332bdfa036ac12438983e6d74cf4107e64 | /SiamRPN/SiamRPN/siamrpn/transforms.py | b906c135996df184c93efaebb9327b1baf63885a | [] | permissive | HonglinChu/SiamTrackers | c494cff7543a433e8ec7dbf6d9439b1e7395b0c0 | 805208b5348346d35e64abcbe901a3829743e157 | refs/heads/master | 2023-08-29T06:50:59.532271 | 2023-03-06T09:13:53 | 2023-03-06T09:13:53 | 253,718,080 | 1,166 | 243 | Apache-2.0 | 2023-08-03T16:39:53 | 2020-04-07T07:24:00 | Python | UTF-8 | Python | false | false | 30,530 | py | import torch
import numpy as np
import cv2
import random
import sys
import os
import math
import matplotlib.pyplot as plt
from .bbox_util import *
#--------------------------------------------------------------------------------------------#
class RandomStretch(object):
def __init__(self, max_stretch=0.05):
... | [
"chuhonglin@chuhonglindeMacBook-Pro.local"
] | chuhonglin@chuhonglindeMacBook-Pro.local |
0ed51f0938faaffca49d5d6260d033cb2860ea14 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /executale_binaries/register-variants/nop.gen.vex.py | adc0b8ab44a953037082c5e4cf29abd7c5d6580d | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import angr
proj = angr.Project('nop.exe')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
8222a8c44c2c15ac35c62c6e0793e999f60e571c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/433.py | 6b399c8cae78461bbd77cc6746ab4efd4f99f295 | [] | 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 | 2,252 | py | #!/usr/bin/python
''' Usage %s
'''
import logging
import re
CurrentDebugLevel=logging.DEBUG
wordBank = []
dictionary = []
def ProcessCase(inFile, caseNum):
logging.debug('Case %d', caseNum)
wordContent = inFile.readline().strip()
wordContent = wordContent.replace("(", "[")
wordContent ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f28fd80173ca96a9fbaf894a8e128f33b98cde69 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/fcb1a2b6cc146d9bb9dd8a45a439ed8c84fe6b1b-<ensure_present>-fix.py | 6c3c05621622653123252641e662e0fe938c0f54 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py |
def ensure_present(ec2, module, domain, address, private_ip_address, device_id, reuse_existing_ip_allowed, check_mode, isinstance=True):
changed = False
if (not address):
if check_mode:
return {
'changed': True,
}
address = allocate_address(ec2, domain, ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c260c9d967897cf72638ee5621607fcb88ccc96b | c03ac514c1ba380d03c933ba08635f6e7ede33e1 | /deploy_two_model_large5.py | 39268bf06997752427e8d7804149a57913a78829 | [] | no_license | ysong07/LSTM_tracking_joint | 010b05daf42829db3033f20c5311ac4b90e5d5aa | 8b68ab94ef34d350b89ed82da0e00ba64f3f0aec | refs/heads/master | 2021-05-11T07:12:36.393357 | 2018-01-18T17:08:42 | 2018-01-18T17:08:42 | 118,013,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,835 | py | import tensorflow as tf
import pdb
import numpy as np
import h5py
import scipy.io as scipy_io
import numpy as np
from matplotlib.path import Path
from data_handler_inference import *
from params_refine_local_5 import *
from G_model_glob_share_weight import *
from G_inference_new5 import *
import os
import time
import ... | [
"song3681@126.com"
] | song3681@126.com |
74c898b95d5dfc2e765064db3077a42b595fa177 | 26d8dfdf67ed97b9dbfed32bb53153ef295b3132 | /study_project/text_mining/01_re_module/sample_re_007.py | 3f373c551fd172dcf16c51a32fa55435b6f15ef6 | [] | no_license | JuniorMSG/python_study | 32961de49ebefe67f3806b632e976329f386ddab | 3407810c502b25391d4cf1207d450081202e473c | refs/heads/master | 2023-09-06T03:50:53.939882 | 2021-11-18T11:11:51 | 2021-11-18T11:11:51 | 380,512,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | # 주어진 텍스트내에서 영문자가 3개 또는 5개로 구성된거 다 찾기?
import re
# [1]
text1 = "(Question) kor 단어는 검색되지만 korea 또는 korean 에는 매칭이 안되는 패턴? a ab abc abcd abcde abcdef"
pattern1 = re.compile( r'\b[a-zA-Z]{3}\b|\b[a-zA-Z]{5}\b' )
rst_matchLst1 = re.findall( pattern1, text1 )
print( "[1] : ", rst_matchLst1 )
... | [
"="
] | = |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.