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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d0b9a61ae8804745c3cbebac640bc73ed5218fae | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/desseim/elf.py | f293e2ea3e500e0d67fe7c0919a02450f44ff4aa | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | FILE_NAME_PREFIX = 'A-small-attempt0'
def min_gen(num, den, min_val):
if (den%2) != 0:
return -1
if num == den:
return min_val
elif (num*2) == den:
return min_val+1
elif (num*2) > den:
return min(min_val+1, min_gen(num-(den/2), den/2, min_val+1))
else: #num < den/... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
525ce30844843b6a76aa7b1fb207a737646a6747 | d5c68e828909b3102f7f51969d9a00c68ba1d1c3 | /tests/__init__.py | e8fb2517e3304b5f796d5cf0f64bb7d69dedc0a4 | [
"Apache-2.0"
] | permissive | cehbrecht/ecas-wps-demo | 7ab757d6a944da49151cfd4a3c2acc5445717106 | 36ac8e62fcaf103956a2944aa97e7eff50f8a0da | refs/heads/master | 2020-03-25T11:30:22.873104 | 2018-11-01T13:43:25 | 2018-11-01T13:43:25 | 143,735,539 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | # -*- coding: utf-8 -*-
"""Unit test package for ecaswps."""
| [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
dfe41ff94722ff8ba0f797e0e979e84e86a8a643 | a781bdd2dc4b6ee6aa46d65c8bdbd55e75e4e864 | /src/Pocheck/preprocessing.py | aa4ee575a50b24f57cb69feca7d7823d95846b0a | [] | no_license | asaf0813/Pocheck-V2-Beta | f3ef9b89631781f3581f27d9ae32e9d2e9cd8815 | 169d145f346d7d045afa4d4d98009fb62122a24d | refs/heads/master | 2023-02-06T12:03:41.541169 | 2019-05-28T07:53:20 | 2019-05-28T07:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors
import imageio
import scipy, scipy.misc, scipy.signal
import cv2
import sys
def build_is_hist(img):
hei = img.shape[0]
wid = img.shape[1]
ch = img.shape[2]
Img = np.zeros((hei + 4, wid + 4, ch))
for i in rang... | [
"b8goal@naver.com"
] | b8goal@naver.com |
ebbd244ad9b6856d51545ac99c5347c087aed493 | ab4b1fab2bec82be1e13f4b7501a046eec4e60b6 | /main2/filter_v6.py | ace42c1d3988273289132baf93111371cdb37e80 | [
"Apache-2.0"
] | permissive | BioQwer/track2 | fc1ead6ce4ffbc49b33b709c695176b925cf2c84 | d7d5aa559459963e850f47f9a10357561be0a7b1 | refs/heads/master | 2021-01-13T14:51:11.202738 | 2017-01-22T16:45:28 | 2017-01-22T16:45:28 | 76,540,565 | 0 | 0 | null | 2016-12-15T08:38:52 | 2016-12-15T08:38:52 | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/python
import re, sys
from chinese_name_list_v4 import *
def author_name_filter(name):
# ()
name = re.sub(r'\(.*\)', r'', name)
# -
name = re.sub(r'-', r' ', name)
# @
name = re.sub(r'@.*$', r'', name)
# ?
name = re.sub(r'\?', r'', name)
# '
name = re.sub(r'\'', r'', name)
# deal with latin character... | [
"you@example.com"
] | you@example.com |
fcbe0d52c6584cd52c53c8757eec91c06f56512f | 9bd76957feae4b01f961a968c6d89eda0c704a5d | /accounts/serializers.py | 448053cb2bf75dc0e274b2f8e5c0b402c3345ba3 | [] | no_license | deepakkumar96/flirtjar | 4312e64f6d87d9810d96724e0b766521a3a7d8bf | 349e65b1b5f994b1efa2829600fbec150c5cf961 | refs/heads/master | 2020-05-02T22:09:38.316047 | 2019-04-01T03:36:33 | 2019-04-01T03:36:33 | 178,243,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from rest_framework import serializers
from rest_framework_gis.serializers import GeoModelSerializer
from .models import Account
class UserSerializer(GeoModelSerializer):
email = serializers.EmailField(required=False)
# oauth_id = serializers.CharField(required=False)
rating = serializers.ReadOnlyField(s... | [
"deepakkumar21120.dk@gmail.com"
] | deepakkumar21120.dk@gmail.com |
2830449f7eecd83c8f50057c328895583b0190b5 | 96f32051b1fcd322534fdf1f590704b7f48e08e3 | /otcore/occurrence/migrations/0003_auto_20160504_0937.py | f74cf7e04b78d92e4029b5aebb44fe312293709d | [
"Apache-2.0"
] | permissive | NYULibraries/dlts-enm-tct-backend | 0f1ebad7d7334d41b4f24b2243639314c6ed1353 | 07455a660fb2cb8bc91a54f7f12d150923678157 | refs/heads/master | 2020-05-18T14:36:31.041830 | 2017-09-30T17:51:16 | 2017-09-30T17:51:16 | 84,251,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-05-04 13:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('occurrence', '0002_auto_20160415_1549'),
]
operatio... | [
"go.for.dover@gmail.com"
] | go.for.dover@gmail.com |
c5404bc24558757683a2f5c68c63f162f185088f | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /kgsh_project/kgsh/builtins/cd.py | 6e1592c0948a5433262f963d8392703443e3e35d | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | import os
# from ..constants import SHELL_STATUS_RUN, SHELL_STATUS_STOP
from kgsh.constants import SHELL_STATUS_RUN, SHELL_STATUS_STOP
def cd(args):
os.chdir(args[0])
return SHELL_STATUS_RUN
| [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
0b30d78e97b2b18669dfe0c499f21f30a501d308 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/754dfc54c890f1785bbc24a15c478ed8f2cf93a6-<set_host_configuration_facts>-fix.py | a6fd2d306f593cf6fef158b244fb0d367cbaa0a2 | [] | 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 | 3,462 | py |
def set_host_configuration_facts(self):
changed_list = []
message = ''
for host in self.hosts:
option_manager = host.configManager.advancedOption
host_facts = {
}
for s_option in option_manager.supportedOption:
host_facts[s_option.key] = dict(option... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3523325b987771c5c9d053fb3913505083d51c1d | 335fd1b91236852ac93ced562a73f2fe157d4afb | /ch7_sequential/q1_in.py | 14c9c76f011c4796e86013fd3057e04972cd108b | [] | no_license | plzprayme/study-python-algorithm-interview | d446805710d2bfec6b440ab87667b987b2ecd70a | 1829450cb4c4ac240c2587b6efe4e507a40f9a03 | refs/heads/master | 2022-12-23T12:43:53.031925 | 2020-10-07T06:26:31 | 2020-10-07T06:26:31 | 298,566,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | test_cases = [
dict(nums=[2,7,11,15], target=9),
]
def main(test_case):
nums = test_case["nums"]
target = test_case["target"]
for idx, item in enumerate(nums):
elem = target - item
if elem in nums[idx+1:]:
return idx, nums[idx+1:].index(elem) + idx + 1
return False
... | [
"dbfpzk142@gmail.com"
] | dbfpzk142@gmail.com |
225d352f55cd2c5524fcb67ea1208684c386f53d | 184f13269249b08e5b62444ece10af8a3a35c9a5 | /extending_streamlit_usage/008_simple_app_spacy_example/simple_app_spacy_example_7.py | cca1b0a0d6e644f60dcbc3f23fb1fffce71c196a | [
"MIT"
] | permissive | bflaven/BlogArticlesExamples | 3decf588098897b104d429054b8e44efec796557 | aca40bb33f1ad4e140ddd67d6bb39bdd029ef266 | refs/heads/master | 2023-09-04T16:57:57.498673 | 2023-09-01T13:14:12 | 2023-09-01T13:14:12 | 42,390,873 | 9 | 4 | MIT | 2023-03-02T22:39:06 | 2015-09-13T09:48:34 | HTML | UTF-8 | Python | false | false | 1,488 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
[path]
cd /Users/brunoflaven/Documents/01_work/blog_articles/extending_streamlit_usage/simple_app_spacy_example/
[file]
streamlit run simple_app_spacy_example_7.py
# more on infos and apps on
https://streamlit.io/
https://streamlit.io/gallery
https://doc... | [
"bflaven@gmail.com"
] | bflaven@gmail.com |
6a4e665e241d7c0ce9338b76d6a573d22d2ca7e1 | 0eeed46e9b836bfe2fd2075e657af473da270514 | /data/scripts/quests/35_FindGlitteringJewelry/__init__.py | c8624e8127bc577b38ada051d953b17e4e3def5c | [] | no_license | RafaelRauber/DataPackL2 | 4e329c30bfc19f44e8832a86584f2c9914a28077 | 7bace9dad9ac5b0151d26e6e49d14c42d75eb642 | refs/heads/master | 2021-05-19T00:22:49.340415 | 2020-04-10T18:36:27 | 2020-04-10T18:36:27 | 251,491,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | # Made by disKret
import sys
from com.guardian.util.random import Rnd
from com.guardian.gameserver.model.quest import State
from com.guardian.gameserver.model.quest import QuestState
from com.guardian.gameserver.model.quest.jython import QuestJython as JQuest
qn = "35_FindGlitteringJewelry"
ROUGH_JEWEL = 7162
ORIHARU... | [
"rrafaelfr2@gmail.com"
] | rrafaelfr2@gmail.com |
5055d0f29bfe1e08da42003181a412ac5d6504bb | 4678b522b0fbe63a339a616bfbd82342d9ff889f | /lib/exabgp/bgp/message/open/routerid.py | 8ae5c99670b6af8170e58efe4c88987dbc6affb4 | [] | no_license | nicolas-strina/exabgp | be069deef21b25a100b4041c0866fb8ecce8bcf0 | 0a9322ae4f0cc223eb52e4f87d8d0b6930bba1c6 | refs/heads/master | 2021-01-12T20:06:28.533273 | 2015-01-02T09:39:03 | 2015-01-02T09:39:03 | 25,227,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # encoding: utf-8
"""
routerid.py
Created by Thomas Mangin on 2012-07-17.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
from exabgp.protocol.ip import IPv4
# ===================================================================== RouterID
#
class RouterID (IPv4):
@classmethod
def unpack (cls,data):... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
21915dd01bd195f2de78252eb36c86e9b95abccd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_135/ch45_2020_06_21_20_58_38_452719.py | 6e224ccf0891d1ece9774b7787a4a4e9ac1b9740 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | int numero
lista = []
lista_invertida = []
while numero > 0:
numero = int(input())
lista.append(numero)
while len(lista) > 0:
lista_invertida.append(lista[-1])
del lista[-1]
print(lista_invertida) | [
"you@example.com"
] | you@example.com |
04b490cd98dd1fd24f4d08754a055a33962f6632 | 4de354bbbef93055e89bddf431f31659b1231628 | /pkg/tests/upgrade/test_salt_upgrade.py | c5c3771e71ed08b70d2fa0c92330585a75e63c91 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | Ch3LL/salt | 2faa555f01855f450df032c2be7277b3f3d4235e | 64a2ce161041690b96b02978a315ace62b1ff082 | refs/heads/pkg-tests | 2023-08-21T17:22:32.799887 | 2023-02-01T20:06:47 | 2023-02-02T19:21:17 | 43,173,383 | 1 | 0 | Apache-2.0 | 2023-01-25T20:35:34 | 2015-09-25T20:14:42 | Python | UTF-8 | Python | false | false | 2,824 | py | import pytest
@pytest.mark.skip_on_windows(
reason="Salt Master scripts not included in old windows packages"
)
def test_salt_upgrade(salt_call_cli, salt_minion, install_salt):
"""
Test upgrade of Salt
"""
if not install_salt.upgrade:
pytest.skip("Not testing an upgrade, do not run")
#... | [
"mwilhite@vmware.com"
] | mwilhite@vmware.com |
c6ec95d16b2f08bd33f8b1a11b6a3b123a6b0899 | 7cec0bc03100c85ae0dc4f636b92ada46de06802 | /cdad/cdadmap/management/commands/import_list_of_partners.py | ef4083393a5e58fc0d8f04fa8d2099144283e0fb | [
"MIT"
] | permissive | NiJeLorg/CDADMap | 200040b45510f7965fd1d772f7e9627561311e70 | 1f03dccf57951748155a0094a5aec3253183c412 | refs/heads/master | 2021-01-17T10:22:06.865934 | 2018-11-01T17:12:22 | 2018-11-01T17:12:22 | 27,398,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import sys,os
from django.core.management.base import BaseCommand, CommandError
from cdadmap.models import *
import csv
"""
Loads list for CDAD partners from CSV
"""
class Command(BaseCommand):
def load_partners(self):
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file... | [
"jd@nijel.org"
] | jd@nijel.org |
c42682e4584fffeabb4167626f0c440817fb1f01 | 1faf574fc2592e8c65043021762ed6eab441feb5 | /백준/백준_1260번.py | 6562c1178ff2f6d18a0d37a8c0e1ef871d38589b | [] | no_license | YooGunWook/coding_test | 4e9c8851a025271f79408fd7a0f097f07351b1e7 | 2806ecf5db3714d1a4b5dbfaa2b584bb8b6166a0 | refs/heads/master | 2022-10-15T03:37:46.129384 | 2022-09-26T13:45:53 | 2022-09-26T13:45:53 | 240,265,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import collections
n, m, v = map(int, input().split(" "))
graph = collections.defaultdict(list)
for _ in range(m):
g, e = map(int, input().split(" "))
graph[g].append(e)
graph[e].append(g)
graph[g].sort()
graph[e].sort()
def recursive_dfs(v, discovered=[]):
discovered.append(v)
for w in gr... | [
"gunwook0307@yonsei.ac.kr"
] | gunwook0307@yonsei.ac.kr |
008868db7db723331751701644e8dc7f707b649a | cc602782a8bdf1c38b1ac21a9c8efefef4d07f6d | /pacientes/migrations/0011_consulta_motivo_de_la_consulta.py | cf6ac3d10696c15babe1aed2f6bfc8b21c6f6b85 | [
"BSD-3-Clause"
] | permissive | cluster311/ggg | aa5fb487e40e8e1a54210d499e1d11d54299405c | 262173c66fe40ada30083d439a79f16f841f5772 | refs/heads/develop | 2022-04-28T20:58:17.696122 | 2020-10-16T01:09:49 | 2020-10-16T01:09:49 | 205,560,308 | 7 | 4 | BSD-3-Clause | 2022-04-22T22:11:03 | 2019-08-31T15:13:56 | Python | UTF-8 | Python | false | false | 411 | py | # Generated by Django 2.2.4 on 2019-11-16 19:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pacientes', '0010_auto_20191116_1541'),
]
operations = [
migrations.AddField(
model_name='consulta',
name='motivo_de... | [
"andres@data99.com.ar"
] | andres@data99.com.ar |
aa667bc221421779c59bf14551723e41b69f1d3a | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/virt/hyperv/migrationops.py | 3e8ff550f31e2840a70755748af01034bba22542 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 26,060 | py | begin_unit
comment|'# Copyright 2013 Cloudbase Solutions Srl'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
331e237a879f5199c5e6d3cc7a55d399faf5b506 | baaeb8c1d335e258fd49b5ef024ac39790fd660f | /backend/schemas/user_document_tag.py | 958cad5d324af99ed9573c631e1537d0d4a7e7ab | [] | no_license | ReactARDev/React_Redux_Python | f0b80a9d2a603b38f8e144966bc899c5aa3690e6 | afdb4a55f82fdff86686ad955448a4168d05c739 | refs/heads/master | 2021-10-10T19:28:05.142652 | 2019-01-15T21:24:06 | 2019-01-15T21:24:06 | 159,198,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | from .base_users import BaseUsers
from sqlalchemy import Column, BigInteger, Sequence, ForeignKey, Boolean, Text, Index
from sqlalchemy.orm import relationship
from coaster.sqlalchemy import TimestampMixin
class UserDocumentTag(TimestampMixin, BaseUsers):
__tablename__ = 'user_document_tags'
id = Column... | [
"talentmobile9999@gmail.com"
] | talentmobile9999@gmail.com |
532b2a5f4ebec5acd6aeca3b59e2cb44fa877311 | 3c27b86f0165ab24e6b04d505e8471e032594f0b | /pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES2/EXT/texture_compression_dxt1.py | 90da85cc86e654f1a4538529524f03741d2fdb45 | [
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LGPL-2.1-or-later",
"GPL-3.0-only",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"MIT"
] | permissive | alexus37/AugmentedRealityChess | 8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1 | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | refs/heads/master | 2020-12-24T13:29:21.967833 | 2020-02-27T09:38:50 | 2020-02-27T09:38:50 | 31,264,034 | 1 | 1 | MIT | 2020-02-27T09:38:52 | 2015-02-24T14:36:34 | Python | UTF-8 | Python | false | false | 827 | py | '''OpenGL extension EXT.texture_compression_dxt1
This module customises the behaviour of the
OpenGL.raw.GLES2.EXT.texture_compression_dxt1 to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/texture_compression_dxt1.txt
'''
from... | [
"alexlelidis@gmx.de"
] | alexlelidis@gmx.de |
c1b15e7541a32f89074dd817455dd8f07b96df07 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /sesv2_write_f/account-sending-attribute_put.py | 8bbb221c4deb3cb79ac889c4cb5b6c6c23968174 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
3828aeb129a656eb50b0045ca664de29ab11e9bc | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200322173619.py | 8e0ccf00df014e34d1d69e79aa08decc94f32ea4 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 5
tabuIteration = '1000'
tabuDuration = '50'
numberOfCities = '50'
final_solution = []
list_coverage = []
local_minimum = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterations... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
86b5cac59c4dc4896ace5ea608119b44872ee843 | 5ee0a9030f6c23118d9e5383c54432d81ed33cec | /Algorithm/backtracking/permute4.py | 301464fbe6bdf99c1c4bc3946e84628aebc1c759 | [] | no_license | dmlimgo/TIL | 49c4c29b29c77dd63762e2b78b082d26362b29b0 | 9f7439c20a2c8f893c8cb65efbacbc37d2202724 | refs/heads/master | 2023-01-08T08:43:16.408807 | 2020-01-28T14:54:03 | 2020-01-28T14:54:03 | 162,101,377 | 1 | 0 | null | 2023-01-04T17:44:28 | 2018-12-17T08:51:55 | Python | UTF-8 | Python | false | false | 1,270 | py | def solve(pos, res):
global N
# if pos == N:
# print(res)
print(pos, res)
for i in range(1, N, 2):
if not visit[i] and num[i] > res[-1] + 3:
visit[i] = 1
solve(pos + 1, res+[num[i]])
visit[i] = 0
N = 10
num = list(range(N))
visit = [0] * N
print(N, nu... | [
"dongmyeong.lim@gmail.com"
] | dongmyeong.lim@gmail.com |
afda5d23c3a4667fdf0fe876ff3b56fce6515ba9 | c6d852e5842cf6f74123445d20ff03876377ae26 | /lemon/python22/lemon_06_190828_for_while_函数/优秀作业_0828/homework5.py | 0f56734c34c09cc0589cceb84cd46678143b21dc | [] | no_license | songyongzhuang/PythonCode_office | 0b3d35ca5d58bc305ae90fea8b1e8c7214619979 | cfadd3132c2c7c518c784589e0dab6510a662a6c | refs/heads/master | 2023-02-13T14:06:10.610935 | 2021-01-14T09:11:32 | 2021-01-14T09:11:32 | 327,183,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | # 第一题、求三个整数中最大值
# 定义一个取最大值的函数
# 引入math库使用负无穷
import math
def GetMaxNumber():
while True:
temp_list = input("请输入三个整数,以空格分隔开:")
number_list = temp_list.split()
# 最大值赋值成负无穷
max_number = -math.inf
if len(number_list) != 3:
print("您输入整数个数不对")
continue
... | [
"songyongzhuang9@163.com"
] | songyongzhuang9@163.com |
a81ae91d38e64ee6ded87faf86980626d24c3f11 | 40c6fa589a0dfe88e82f8bd969cd5ef0ed04f303 | /Test/sw/pro04.py | 795439f5eed5dccb93240cc83820685e3f22b1c7 | [] | no_license | EHwooKim/Algorithms | 7d8653e55a491f3bca77a197965f15792f7ebe47 | 5db0a22b9dc0ba9a30bb9812c54d2d5ecec1676b | refs/heads/master | 2021-08-20T04:05:09.967910 | 2021-06-15T07:54:17 | 2021-06-15T07:54:17 | 197,136,680 | 0 | 2 | null | 2021-01-08T05:51:37 | 2019-07-16T06:46:57 | Python | UTF-8 | Python | false | false | 105 | py | def isPrime(n):
for i in range(2, int(n ** (1 /2)) + 1):
if n % i == 0:
return i
return 1
| [
"ehwoo0707@naver.com"
] | ehwoo0707@naver.com |
5bdc45d06336e4f76cd2e47e63e0ed0cb74e0c6f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03345/s369019823.py | a7276c49038ed289f304d1f024d9264e54c6da79 | [] | 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 | 109 | py | #/usr/bin/env python
a, b, c, k = map(int, input().split())
if k%2==0:
print(a-b)
else:
print(b-a)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
467d7d4e2f10d5e31c3f9e64569a6071632456a3 | 7997a9581ac4badc53793e32bc85878b8e16094e | /shp2csv_all.py | 81e25926f1b4f81e07857a718c9ad39b6b436dd4 | [] | no_license | jasonfleming/pputils | 78adb832c5860a37e1473a43a5b9a54ad4d5ce55 | 2b34e47e4c3331d5780019d248e3f37c71164665 | refs/heads/master | 2022-09-29T13:40:38.657005 | 2022-08-10T19:40:06 | 2022-08-10T19:40:06 | 79,500,881 | 1 | 0 | null | 2017-01-19T22:17:09 | 2017-01-19T22:17:09 | null | UTF-8 | Python | false | false | 2,025 | py | #!/usr/bin/env python3
#
#+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!
# #
# shp2csv_all.py #
# ... | [
"pprodano@gmail.com"
] | pprodano@gmail.com |
6461c5d8ead21561aee4cfc53a959dda2c0ee823 | 3d7dece5254e42059e8a2cb1e72b295460284983 | /haas_lib_bundles/python/docs/examples/weather_forecast/esp32/code/micropyGNSS.py | 346e3d6648af4ae538a2c7d75c7ce05ea10a2d54 | [
"Apache-2.0"
] | permissive | windowxia/AliOS-Things | 172639d6e0d2b2e2e816bce757cf95e89187c132 | a99f20706f9c666903a12a205edce13263b1fadb | refs/heads/master | 2023-09-01T06:03:57.853390 | 2023-07-04T05:51:52 | 2023-07-04T06:49:36 | 149,751,180 | 0 | 0 | Apache-2.0 | 2018-09-21T10:56:09 | 2018-09-21T10:56:08 | null | UTF-8 | Python | false | false | 30,723 | py | """
# MicropyGPS - a GPS NMEA sentence parser for Micropython/Python 3.X
# Copyright (c) 2017 Michael Calvin McCoy (calvin.mccoy@protonmail.com)
# The MIT License (MIT) - see LICENSE file
"""
"""
MIT License
Copyright (c) 2017 Calvin McCoy
Permission is hereby granted, free of charge, to any person obtaining a copy
... | [
"yilu.myl@alibaba-inc.com"
] | yilu.myl@alibaba-inc.com |
370db36e2a65663811dbd8984e62d118e9b8f8f7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_recuperating.py | 472085219dee000550d740a9a0e0ddad53b1fcdf | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#calss header
class _RECUPERATING():
def __init__(self,):
self.name = "RECUPERATING"
self.definitions = recuperate
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['recuperate']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f3b4ed509752f32ea4962351063ef14d85b2f6b6 | 2ea61e98627dd6b170590b69ead79a828614dec0 | /youtrack_api/model/agile_column_field_value.py | 2c69868fa6f90c405bcdb0a045412de0039cb179 | [] | no_license | alpduez/youtrack_api | 55dc25465f027645525efe5296c5699f7d824f33 | 2450523d87e6bdbbd53ca4908042a701a1a867e6 | refs/heads/master | 2023-09-01T01:34:33.356354 | 2021-10-20T15:32:05 | 2021-10-20T15:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,190 | py | """
YouTrack REST API
YouTrack issue tracking and project management system # noqa: E501
The version of the OpenAPI document: 2021.3
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from youtrack_api.model_utils import ( # noqa: F401
ApiTypeErr... | [
"hank@sellerlabs.com"
] | hank@sellerlabs.com |
2e09e05cfd2c5b049f7aa58de8a31a762d1cb83b | 2cbda9202549c23c0e0a0e291017d10056b9bed4 | /resources/__init__.py | 499f3042c84026635c83747cff5d36dfb826524b | [
"MIT"
] | permissive | rrosajp/readme-generator | e38d9d6350cb17ae1fef7aa3763e11a99d61ecfc | 6829407f58cdf13f76d165b6968b327bd2acdbaa | refs/heads/master | 2023-01-28T06:07:59.381850 | 2023-01-19T14:15:57 | 2023-01-19T14:15:57 | 251,298,536 | 1 | 0 | MIT | 2023-01-19T16:42:44 | 2020-03-30T12:32:05 | Python | UTF-8 | Python | false | false | 1,282 | py | # coding=utf-8
"""
README GENERATOR
Generate a README.md file from a configuration file
Autor: Pablo Pizarro R. @ ppizarror.com
Licencia:
The MIT License (MIT)
Copyright 2017 Pablo Pizarro R.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated do... | [
"pablo.pizarro@ing.uchile.cl"
] | pablo.pizarro@ing.uchile.cl |
4190ab1d01e28db72d20239ee865728728a9a8c8 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Hot_Water_Differential_Pressure_Integral_Time.py | 082381044b4da3f6d92655e2cd3cf78210b15cba | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.UndefinedMeasurement import UndefinedMeasurement
class Hot_Water_Differential_Pressure_Integral_Time(UndefinedMe... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
e0c5d52ee3fa703dd0160c3a4d04a305bb9b52ec | 45e23d1db1c1ecd19b4f4055b60b994cf866f240 | /源程序/14电子健康/hospital2/profile_test.py | 4ab8f0f1819d12b699e5c62f1e8da0c16d88bcca | [] | no_license | hushaoqi/MIS_project | ff8d60ac5461e3be6d1c599378790baa059f43c0 | d23aaf791809d912b15277dc057d84c8f2685f8e | refs/heads/master | 2022-12-23T21:50:37.024694 | 2019-07-24T13:05:28 | 2019-07-24T13:05:28 | 150,825,940 | 0 | 1 | null | 2022-12-17T11:17:42 | 2018-09-29T04:53:06 | Python | UTF-8 | Python | false | false | 5,622 | py | from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QWidget
class profile_widget(QWidget):
def __init__(self,parent=None):
super().__init__(parent)#相当于下面那句
self.setupUI()
def setupUI(self):
#self=QtWidgets.QWidget(Form)#self不能变
self.setGeometry(QtCore.QRect(259... | [
"1941017133@qq.com"
] | 1941017133@qq.com |
533f53ab7a41dc706643586d3840595c70b2e493 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2795/60714/236506.py | fb2375dcc432e339a29cfa2477c0ee3aa6b7296c | [] | 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 | 322 | py | input()
num = [int(x) for x in input().split()]
ans = set(num)
if len(ans) is 1:
print(max(ans))
elif len(ans) is 2:
print(max(ans) - min(ans))
elif len(ans) is 3:
a = max(ans)
b = min(ans)
if int((a + b) / 2) in ans:
print(int(a - (a + b) / 2))
else:
print(-1)
else:
print(-1... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d7627af5523985a0cb851ceaffa65cce2e84cf0c | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-websecurityscanner/google/cloud/websecurityscanner_v1/services/web_security_scanner/pagers.py | 2272acf741f38deff42ea4bcfd96bc1bfbfdde28 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 21,558 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
56db4c53233fb017269c2de12548880487eb25ab | 9210dad5d84af438b9450bb8a91ae13b30392060 | /Notebooks/Combined_interactive_spectra.py | 590a0fb442fdb3f1a487a33e5960329e8a4d4767 | [
"MIT"
] | permissive | jason-neal/companion_simulations | 0ccb4e043ab5bff7e779678f3984aed6bd304c77 | 036610a902cb11b4c408deb2c0d3be1bb377dee8 | refs/heads/master | 2023-07-22T17:39:41.340156 | 2022-04-24T09:24:50 | 2022-04-24T09:24:50 | 83,430,578 | 3 | 1 | MIT | 2023-07-06T21:23:12 | 2017-02-28T12:36:59 | Jupyter Notebook | UTF-8 | Python | false | false | 3,973 | py |
# coding: utf-8
# # Interactive Spectra combination!
# In[1]:
from __future__ import print_function
from ipywidgets import interact, interactive, fixed, interact_manual
import ipywidgets as widgets
import os
from astropy.io import fits
import matplotlib.pyplot as plt
import numpy as np
# In[2]:
import simulato... | [
"jason.neal@astro.up.pt"
] | jason.neal@astro.up.pt |
c00305a5d8b2a87bb809e6f45d8e2546a9979981 | 587b0ac23355ce4238d7a75d058fe53c2ed1a9c6 | /notes4chap7/objects_and_values.py | c2944308224cf61d130f2d4d43f2d79f7772ba70 | [] | no_license | CyborgVillager/Repetition-Structures | 26c33d316e02c7a3cffaa2da1ed3107655b057f0 | 8482afdf0164a7c45be586c9b7c921559c14c57d | refs/heads/master | 2020-08-03T00:53:51.321844 | 2019-09-30T03:44:38 | 2019-09-30T03:44:38 | 211,572,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | a = 'banna'
b = 'banna'
if a is b:
print('True')
else:
print('False')
a = [1,2,3,4,5,6]
b = [1,2,3,4,5,6]
if a is b:
print('True')
else:
print('False')
#they have same element, but are not idential
#because not same object
#a = [1,2,3,4,5,6] refers to a list of object who value is specific in a sequenc... | [
"almawijonathan@gmail.com"
] | almawijonathan@gmail.com |
fc069399796b0a2d0c8f0727344c487946809cfd | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/444ba646944c6a44490633587fc779d39b55cbfc-<get_dummies>-fix.py | 23d0ff0d01a7c5a476ceba409c24726714102e36 | [] | 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 | 4,975 | py | def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, columns=None, sparse=False, drop_first=False, dtype=None):
"\n Convert categorical variable into dummy/indicator variables.\n\n Parameters\n ----------\n data : array-like, Series, or DataFrame\n Data of which to get dummy indicat... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fd5f99a757b2b28b0e4e6862eb5a4d94080f131e | ff9d1c7890cf8e3a8080dd5b4548792f8440772e | /lino_xl/lib/courses/workflows.py | 6502cd4420436a4513609a7c79fe498d2ef27dcc | [
"BSD-2-Clause"
] | permissive | TonisPiip/xl | 24a7e91bf3fbab5d2b238fb79cc6fe2019505e85 | ec517b9ec922e629db18645d7876bd029229b7ae | refs/heads/master | 2021-06-10T09:17:29.122585 | 2017-01-31T10:17:50 | 2017-01-31T10:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | # -*- coding: UTF-8 -*-
# Copyright 2012-2017 Luc Saffre
# License: BSD (see file COPYING for details)
from __future__ import unicode_literals
"""Importing this module will install default workflows for
`lino_xl.lib.courses`.
"""
from django.utils.translation import ugettext_lazy as _
from lino.api import dd, rt... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
addac87d8a379c9555e249ffe838f77b71918f40 | fb4ed5b9061e835aebf81325ea5ba98a78ba1ff0 | /holiday_challenge/pytorch/inception/inceptionv_1/inception.py | 291c0548cfc265e71a2054b90fc4633cee60071c | [
"Apache-2.0"
] | permissive | guruprasaad123/all_dl_projects | 999a65b396b4a9c94c8051b5918bfb1947317d08 | 04c869f7f001ef94c467740260663d91a34815e0 | refs/heads/main | 2023-06-29T16:45:16.745286 | 2021-08-03T07:19:44 | 2021-08-03T07:19:44 | 389,979,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,657 | py | import warnings
from collections import namedtuple
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from torch.utils.model_zoo import load_url as load_state_dict_from_url
from typing import Optional, Tuple, List, Callable, Any
__all__ = ['GoogLeNet', 'googlenet', "GoogLeNetOu... | [
"jiiva116@live.com"
] | jiiva116@live.com |
8d9a25f5cc0cb39e3c9c0d4d2e4815f202a9226c | ae31189906a16fd0427ef0f6686a2c5787ae4b4a | /app/config/urls.py | 982a6764b251047f94024e904809cb441025b121 | [] | no_license | hanyonghee9264/Coffee-calorie | 54a2188c8aa65957e64527a836e5ae5736b57579 | 666b9da9082e6910565a68d1818e9686826106e4 | refs/heads/master | 2022-12-22T18:56:10.650703 | 2019-12-03T10:13:35 | 2019-12-03T10:13:35 | 167,666,047 | 3 | 0 | null | 2022-12-08T01:35:49 | 2019-01-26T08:18:47 | Jupyter Notebook | UTF-8 | Python | false | false | 1,052 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-based ... | [
"hanyonghee9264@gmail.com"
] | hanyonghee9264@gmail.com |
35c240799d8bb4b24ef4f7b558e13f840d0f57c0 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/PasteScript-1.7.3-py2.6.egg/paste/script/cherrypy_server.py | 635d9756fd098eaf5d734c2c175c28ea0eca84bf | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 2,967 | py | """
Entry point for CherryPy's WSGI server
"""
import paste.script.wsgiserver as wsgiserver
def cpwsgi_server(app, global_conf=None, host='127.0.0.1', port=None,
ssl_pem=None, protocol_version=None, numthreads=None,
server_name=None, max=None, request_queue_size=None,
... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
ae8cd6b1cb83f5d6fbb46e1785d1f4ff30f68fe0 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/React.js/juejin_2041.py | aa11c826387401d7009432c063c4a1e69a2a7e01 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,312 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903930044874766", "article_info": {"article_id": "6844903930044874766", "user_id": "2049145403357293", "category_id": "6809637767543259144", "tag_ids": [6809640357354012685], "visible_level": 0, "link_url": "https://juejin.im/post/6844903930044874766", "c... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
31980bde9de16586f96288f236032b99501dad6e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc099/C/2732781.py | 1d3b68701b2e8bf3322b24dd442e00bab6747673 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | N,M = map(int,input().split())
E = [[False]*N for _ in range(N)]
for n in range(N):
E[n][n] = True
for _ in range(M):
a,b = map(int,input().split())
a,b = a-1,b-1
E[a][b] = True
E[b][a] = True
unvisited = set(range(N))
color = [None]*N
components = []
while unvisited:
v0 = next(iter... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
2ae57e6bc6ea5bb7969c2325c9831c5043c51054 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc001-abc050/abc015/a.py | d18444c3d8e3a68dffac50307c33f91c68243981 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 265 | py | '''input
ttttiiiimmmmeeee
time
ttttiiiimmmmeeee
isuruu
isleapyear
isleapyear
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
if __name__ == '__main__':
a = input()
b = input()
if len(a) > len(b):
print(a)
else:
print(b)
| [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
52231bb2992a35a87d86eb127c54be37797b359c | 2d24c495ba7318c639043095b6bdf4707be29f7e | /test/test_carrier_proposed_assignment_response.py | 2ae69451f4d8059c96d4441e29a75b620afe77ed | [] | no_license | samsarahq/samsara-python | e032d72b041f45a142566d7d9756c28e6acb24bd | 59704b2e2c8af94a069a512b0bc0db7494c8c10d | refs/heads/master | 2021-12-11T08:21:57.218305 | 2021-11-29T19:13:47 | 2021-11-29T19:13:47 | 66,108,617 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | # coding: utf-8
"""
Samsara API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 2020-06-15
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import un... | [
"ci@samsara.com"
] | ci@samsara.com |
db3ee223152fcfdd4ae4443e7276ea81c6ff31a8 | 55d806500ea02ca951cc0bb1972e02476c9c8db9 | /cad/src/cad/cad_export/export.py | 7ae817e26029a788cc29b703877797005c6ec3cb | [] | no_license | iorodeo/roscad | 95ef4c964f765fad3b1d71e18794ccee2be673b6 | f27d58ab92b349e20a6758bfeeb66c5e0e30d62f | refs/heads/master | 2022-11-15T02:23:23.751832 | 2011-12-02T03:52:16 | 2011-12-02T03:52:16 | 273,789,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | """
Copyright 2010 IO Rodeo Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | [
"peterpolidoro@gmail.com"
] | peterpolidoro@gmail.com |
9dcf757a23ac77586cb0bbe496471debc7d87087 | 9dc665657115730bae2414e2860d43dce9ab6499 | /com/qa/pythonprograms/SumOfElementsInAnArray.py | fe4b32ecc31227ba66bc03aee134932dbabbaae0 | [] | no_license | parihar08/SeleniumPythonSession | 627771b166b1c74f9178707fdcdb01c63b6d631d | 820468ecf75b4dd740a66ec25e9b99b5cd3140cd | refs/heads/master | 2022-12-08T12:38:58.252443 | 2020-09-03T13:59:36 | 2020-09-03T13:59:36 | 287,835,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # Input: arr = [1,2,3]
# Output: 1+2+3 =6
list = [1,2,3,4]
print(sum(list))
print(sum(list,10))
print(sum(list)+10)
print(sum(list,-5))
print(sum(list)-5)
| [
"sparihar08@yahoo.com"
] | sparihar08@yahoo.com |
ab45ace1209d4e9d06d4aaa58c9960b60f7af32f | 46e50114924e150712a8565be3351067a6d693f4 | /algorithms/ENN.py | 02fc61d250bc5f4adb6fe2bd2c295aa4dbee4bd4 | [] | no_license | spencerzhang91/comp5121 | a10d9a41e44da5aa5b29b63a3aa45ac89f359327 | 3f40b5147981ef63cc4a418da3a752b23a1ffe68 | refs/heads/master | 2021-09-01T19:19:30.021529 | 2017-12-28T11:51:18 | 2017-12-28T11:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | # extended k-NN algorithm | [
"spencerpomme@live.com"
] | spencerpomme@live.com |
7b5e04d744a7cf4d3e73f5687bc63f4847195108 | e3bc0936873c3472b660cbd50a7ffd9ebf4344cb | /190207/Test05.py | 5ee6016eb51d7fe60d907f6a294ea26e9934fc36 | [] | no_license | carnad37/python_edu | 710e52536d25606571ad572f68c1cfbce681848d | 620d59272cbb60318b0220d5d4459633b6f2f55a | refs/heads/master | 2020-04-17T23:03:40.065131 | 2019-05-10T02:34:49 | 2019-05-10T02:34:49 | 167,019,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | def num_toList(url):
openfile = open(url,'r')
num_List = []
for line in openfile:
line = int(line.strip("\n"))
num_List.append(line)
openfile.close()
return num_List
def cal_Avg(cal_List):
n_Sum = 0
counter = 0
for i in cal_List:
n_Sum += i
counter += 1
... | [
"carnad37@gmail.com"
] | carnad37@gmail.com |
62f8cf28ad40f42260454faf5ec3c0a61dd79d79 | 555c1221294e030d13b2f2cfbccde0f6c51d50eb | /setup.py | de49f34ddf6415b2deb8725f88673b7959787f96 | [] | no_license | unixpickle/gnome-hacks | daf0db77e756a27c33617da7ec88661f40d0b800 | dc41edfc09bd4bf49b0aea80d89d85f27dc39d37 | refs/heads/main | 2023-08-24T07:39:42.735902 | 2021-10-22T22:22:38 | 2021-10-22T22:22:38 | 412,803,734 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from setuptools import setup
setup(
name="gnome-hacks",
py_modules=["gnome_hacks"],
install_requires=[],
)
| [
"unixpickle@gmail.com"
] | unixpickle@gmail.com |
3e55aa8e08b99b99132eb73763c98494e88dd8b6 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/5071300/snippet.py | ce006750daa3dd3d584426f64cfaa3b4bf6a5cd1 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 4,567 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<i@binux.me>
# http://binux.me
# Created on 2013-03-02 20:47:08
import os
import re
import sys
import logging
import requests
from PIL import Image
class PinterestAPI(object):
def __init__(self)... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
bd8f9c899fc802d1da778c31c84c0b9e4a038b76 | 65c0564c9f12a4d6b4dc07ec4e78d1254707e86a | /customers/forms.py | 9f7b66c87ab12fec303b8497642d8afb3a5b442d | [] | no_license | Umutonipamera/DjangoReactProject | d5d226574a3bc34e7a41473a168d38cf39eaa428 | ab8ef37bd9b3833c7b5d73979eb61a1f950ea6d4 | refs/heads/master | 2023-08-29T08:12:23.695183 | 2021-11-08T05:16:44 | 2021-11-08T05:16:44 | 424,115,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django import forms
from .models import Customer
class CustomerRegistrationForm(forms.ModelForm):
class Meta:
model= Customer
fields= "__all__" | [
"umutonipamera@gmail.com"
] | umutonipamera@gmail.com |
31d90a9dc24170903f3226432866c2bfd98c5664 | 399dae0b5ad9ca27cde175d25b5435958674eb50 | /System/Collect all the PM Logs and Upload into the SFTP Server/collect-all-the-pm-logs-and-upload-into-the-sftp-server.py | 893910547d5b9c9ba2a1a581e5f10f81ad2c73cb | [] | no_license | kannanch/pythonscripts | 61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba | 843a522236f9c2cc2aadc68d504c71bb72600bd9 | refs/heads/master | 2020-06-12T11:18:00.404673 | 2019-06-28T11:24:37 | 2019-06-28T11:24:37 | 194,282,297 | 1 | 0 | null | 2019-06-28T13:55:56 | 2019-06-28T13:55:56 | null | UTF-8 | Python | false | false | 8,064 | py | kayako_ticket_number="Testing"
import urllib2
import os
import shutil
import zipfile
import time
import ctypes
import re
import sys
from subprocess import PIPE, Popen
def copy(source_path, destination_path):
if os.path.isfile(source_path):
with open(source_path, 'rb') as reader:
... | [
"noreply@github.com"
] | kannanch.noreply@github.com |
68ba2885d926baea16fab2b339a1c1945514504f | 945cfa8e9128507565de0107762215663bcb7ca4 | /dwave_networkx/__init__.py | a0e51d136f9be708c32363de965daade4165c91e | [
"Apache-2.0"
] | permissive | boothby/dwave_networkx | 9047b10e27b197d7bd6528168a5fe138d48c773d | 1e631b093bc45eb3676f32f84f9cae834caa1c82 | refs/heads/master | 2023-05-12T02:56:24.122824 | 2019-12-16T23:07:47 | 2019-12-16T23:07:47 | 129,129,963 | 0 | 1 | Apache-2.0 | 2019-11-28T18:06:17 | 2018-04-11T17:26:52 | Python | UTF-8 | Python | false | false | 1,262 | py | # Copyright 2018 D-Wave Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"acondello@dwavesys.com"
] | acondello@dwavesys.com |
a9f6658d90e0c3663bf81d47eaa0deb4bda4ce09 | b76d2b037c2af38edfeb718deae22697444ee121 | /proto-chain/client_api.py | 10752a04b32eb1f154ac65377b43f5bc2e7df182 | [] | no_license | hyo07/proto-chain | e8aa1a5d549310da79e9b28c55683a9361c48fe5 | 4fd3e91d6f9d4912634759a908f5a2bf0c1f4d47 | refs/heads/master | 2020-06-06T07:36:27.302334 | 2019-07-01T07:07:46 | 2019-07-01T07:07:46 | 192,679,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import signal
from time import sleep
import json
from libs import call_api
import sys
from core.client_core import ClientCore
from p2p.message_manager import MSG_NEW_TRANSACTION
my_p2p_client = None
args = sys.argv
def signal_handler(signal, frame):
shutdown_client()
def shutdown_client():
global my_p2p_c... | [
"yutaka727kato@gmail.com"
] | yutaka727kato@gmail.com |
c1d5e68d9eb62fb23298562e49fa2e20824a44f1 | a462a24ff937e151e8151f3a1bdc9c3714b12c0e | /2021EJOR/scripts/mebb/mebb_9_51.py | 14b762ab77573be383946ade864baadabd703618 | [] | no_license | noeliarico/kemeny | b4cbcac57203237769252de2c50ce959aa4ca50e | 50819f8bf0d19fb29a0b5c6d2ee031e8a811497d | refs/heads/main | 2023-03-29T14:36:37.931286 | 2023-03-16T09:04:12 | 2023-03-16T09:04:12 | 330,797,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163,831 | py |
import numpy as np
import pandas as pd
import time
from kemeny import algorithms as alg
rep = 3
results = np.zeros(0).reshape(0,7+rep)
##############################################################
om = np.array([
[0,33,29,33,25,31,32,28,29],
[18,0,25,25,25,28,30,29,24],
[22,26,0,25,25,23,20,28,25],
[18,26,26,0,27,2... | [
"noeliarico@uniovi.es"
] | noeliarico@uniovi.es |
eef73802c9fc462a583e16b6d16e0944be749b03 | 4fd84e0e1097d1153ed477a5e76b4972f14d273a | /myvirtualenv/lib/python3.7/site-packages/adal/util.py | 1c84b479ca0527bd52352fd152e945fcb3b556f7 | [
"MIT"
] | permissive | peterchun2000/TerpV-U | c045f4a68f025f1f34b89689e0265c3f6da8b084 | 6dc78819ae0262aeefdebd93a5e7b931b241f549 | refs/heads/master | 2022-12-10T09:31:00.250409 | 2019-09-15T15:54:40 | 2019-09-15T15:54:40 | 208,471,905 | 0 | 2 | MIT | 2022-12-08T06:09:33 | 2019-09-14T16:49:41 | Python | UTF-8 | Python | false | false | 3,568 | py | #------------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation.
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated ... | [
"peterchun2000@gmail.com"
] | peterchun2000@gmail.com |
b9382ddd1c3e882cd5d14ff167df30163e12505a | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg_fr_2016/DYJetsToTauTau_ForcedMuEleDecay_M-50_cfg.py | c9644504b5c80bb04c4e8408488b4f721361215b | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'DYJetsToTauTau_ForcedMuEleDecay_M-50_2016'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pl... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
da8f0604004449ae7b3d971e80e5b21ae69351b0 | 46aba27a95e821832173c97ac4009d2da0a004b7 | /rpost/settings.py | 9c0efb5ea5289d87d31db4d739425d7ebbee6a9b | [] | no_license | codervince/rpost | 58c0e112386c384df293fba89cb9dc204299ece9 | f5ba7ce082518ffe4fbdaf53fe890e0d8fd90300 | refs/heads/master | 2020-04-10T22:42:29.418917 | 2016-02-04T06:52:11 | 2016-02-04T06:52:11 | 31,486,009 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
# Scrapy settings for rpost project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'rpost'
SPIDER_MODULES = ['rpost.spiders']
NEWSPIDER_... | [
"publicvince102@gmail.com"
] | publicvince102@gmail.com |
364cbb326ebf06998419de8b0fa13d96100b3442 | c939ff37dd95a5bb149c31c59c3e975d33967108 | /stack/stack_pylist.py | cc5d474f974ff734b22db971131cba11d4331e2a | [] | no_license | richnakasato/practice-python | 3b7a5633b1e8debcb358611f3d0837afde8d0fd6 | ec8b49cda16785b0548f823e5557edb93808f3e9 | refs/heads/master | 2021-05-11T09:14:46.552069 | 2018-03-19T12:20:32 | 2018-03-19T12:20:32 | 118,071,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | class StackPyList(object):
"""Stack implementation using Python lists."""
def __init__(self):
self._data = list()
def __str__(self):
return str(self._data)
def __len__(self):
return len(self._data)
def top(self):
if is_empty(self):
raise IndexError('i... | [
"richnakasato@hotmail.com"
] | richnakasato@hotmail.com |
643005039b50cd11926426aacdca01d03f2a6898 | f144e4876a77cb4e5ae05305ac41b72adec19872 | /yelp_web/rating/models.py | 67ae3f4c17eaa9d4fb8a4b938e2f9a2f3a570131 | [] | no_license | ArnoldLara/Taller3_SR | b2c6645f219d1bddb76aee2a19552c33b9ea198c | 23b0018c21e49f204fd1c7d50c7bea7ff8c4cade | refs/heads/master | 2023-03-29T07:55:46.066901 | 2020-06-06T17:54:45 | 2020-06-06T17:54:45 | 268,096,510 | 0 | 0 | null | 2021-03-25T23:48:02 | 2020-05-30T14:32:19 | Jupyter Notebook | UTF-8 | Python | false | false | 525 | py | from django.db import models
# Create your models here.
class ratings(models.Model):
user_id = models.CharField(max_length=50)
movie_id = models.CharField(max_length=10)
rating = models.DecimalField(max_digits=8, decimal_places=0, default=0.0)
def __str__(self):
return self.user_id
class movi... | [
"you@example.com"
] | you@example.com |
c36f91aec3113f606e0c4499ab07ea663715640f | 6260f75ff0ca71dcef822e030ba2420921cc485c | /main.py | b6cf7dcd4c4a5d583f0078aeec30865630e36548 | [] | no_license | JakeHartnell/swale_sensor | eaf8fed798fc586b43060bbd8d2880b542920155 | 3ed5f83f0b29f2bf19f0e12ffa43709ef8a65b5c | refs/heads/master | 2021-01-18T01:26:16.926711 | 2016-04-16T15:07:01 | 2016-04-16T15:07:01 | 58,887,764 | 1 | 0 | null | 2016-05-15T22:29:19 | 2016-05-15T22:29:17 | null | UTF-8 | Python | false | false | 2,041 | py | #!/usr/bin/env python3
import time, json, math, threading, queue, requests
from random import random
from collections import deque, OrderedDict
from housepy import config, log, util
from housepy.xbee import XBee
RANGE = 0, 1023
TYPE = "moisture"
def message_handler(response):
try:
# print(response['senso... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
9c697eb1a7a4ce91f0f17a284c5c337fc5ec6a2e | 67f9fdbe44173c5a756a0905ee86a9a03bce7364 | /code/textrank/summa/graph.py | f8790b11940782fc5727423bd622fa59e52f4c2a | [
"MIT"
] | permissive | ziqizhang/texpr | bbe774a968a6e27806be53a5f3eca160ffacf79a | 35aa1ae27068ec0994e856e8b0f13c528b638da9 | refs/heads/master | 2018-12-08T17:24:23.126752 | 2018-09-11T14:42:13 | 2018-09-11T14:42:13 | 111,107,750 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,482 | py |
from abc import ABCMeta, abstractmethod
class IGraph:
"""
Represents the interface or contract that the graph for TextRank should implement
"""
__metaclass__ = ABCMeta
@abstractmethod
def nodes(self):
"""
Return node list.
@rtype: list
@return: Node list.
... | [
"ziqizhang.email@gmail.com"
] | ziqizhang.email@gmail.com |
7f13f6678ea810217a5c6f4e13fcd21d829a1b89 | 13482204549e3ab05f7ed4accdc69bd5d22d4d45 | /main/api/permissions.py | 1643bb1b7376e964c5adc0891cc00f6fea9c6ce0 | [] | no_license | HectorBlisS/DjangoRestFrameworkViewSet | 0331fc923412828c4869feda5653725d4034491a | 26bf07e6b1f3e924dce31b5c8d6285e4bbfa2d04 | refs/heads/master | 2020-06-14T08:58:45.589550 | 2016-11-30T20:07:56 | 2016-11-30T20:07:56 | 75,207,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from rest_framework.permissions import BasePermission
class IsEnrolled(BasePermission):
def has_object_permission(self, request, view, obj):
return obj.aplicantes.filter(id=request.user.id).exists() | [
"contacto@fixter.org"
] | contacto@fixter.org |
1c1f0ce0c09846c545e49568a3def9c56efbc0f2 | 40acb5b7ae835aef33cd910e7a4346ec296c328b | /backend/test_app_28161/settings.py | 3158a39565773339d2a55cf079af8a709ffdb3bc | [] | no_license | crowdbotics-apps/test-app-28161 | ff6afd17eb1e670e591f4932c04b6b5f7f293f6f | ac6a9d6d651dda1e434fe8a2d8221f78bd2cd98f | refs/heads/master | 2023-06-16T01:47:06.971230 | 2021-06-22T02:52:56 | 2021-06-22T02:52:56 | 379,123,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,108 | py | """
Django settings for test_app_28161 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
067acb22f15ef93a29ecb2e2894bfe8d6390fa6d | 2d7d8f066966357a1a0444a5f37a9cc218ac1c9c | /sceneid/views.py | 265095906d6f10c71b5ccfef86c0bc7cc281012a | [
"BSD-3-Clause"
] | permissive | FishGuy876/django-sceneid | 8c1487508e89cd6d9ec95bfe2db105efcf540047 | 5224beb42129e55d326ce829a0a58c0c105ebba2 | refs/heads/main | 2023-04-17T22:49:20.096990 | 2021-05-08T17:13:25 | 2021-05-08T17:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,013 | py | from django.apps import apps
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth import login as auth_login
from django.contrib.auth.forms import AuthenticationForm
from django.contrib import messages
from django.core.exceptions import SuspiciousOperation
from django... | [
"matt@west.co.tt"
] | matt@west.co.tt |
d156d19dfc91267c7cd3e84b5c1919c167ad0c64 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/MonoZLL/DMSimp/lib/DMSimp_lib.py | d56cd67192959564b07b5210a8f83e1c3ad7905c | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 3,707 | py | import copy
from card_lib import Parameter,ParameterPoint
class DMSimp_Spin0_ParameterPoint(ParameterPoint):
'''Struct to hold parameters for single DMSimp spin 0 dataset'''
def __init__(self,other=None):
if other:
self.parameters = copy.deepcopy(other.parameters)
else:
... | [
"andreas.albert@cern.ch"
] | andreas.albert@cern.ch |
cf40e2620a15ae4684a68a396a4f62097cf8a920 | 1326612e90a772bd6acbf0c9532cbcaefdec9f48 | /BiblioPixelAnimations/matrix/AnalogClock.py | 6fd72d582a9159602dd41b10a2072661a458d9b0 | [
"MIT"
] | permissive | russp81/BiblioPixelAnimations | cc2ad721ed60435950282ce09d95191bf09b1eb3 | 4184ace37200861cc721e5bd7a43014bd0bbcadf | refs/heads/master | 2021-01-17T21:01:22.832174 | 2016-09-16T06:43:06 | 2016-09-16T06:43:06 | 68,341,732 | 1 | 0 | null | 2016-09-16T00:23:29 | 2016-09-16T00:23:29 | null | UTF-8 | Python | false | false | 3,502 | py | from bibliopixel.animation import BaseMatrixAnim
import bibliopixel.colors as colors
from bibliopixel.util import pointOnCircle
import time
import math
class AnalogClock(BaseMatrixAnim):
def __init__(self, led, aa=True):
super(AnalogClock, self).__init__(led)
self._centerX = (self._led.width - 1) ... | [
"adammhaile@gmail.com"
] | adammhaile@gmail.com |
38e02191b46c4f7c2c60a8490d02f23a8a186c79 | 578d83b3c4b08ec703b2d66fb073a00224ef7ab0 | /fortimanager/library/fortios_firewall_auth_portal.py | 6f45ad899e1b93c66d83957edf22bfb07bd672dc | [] | no_license | prajavat/fortiget | 9cb73760b1704db9e633ef835ea6b6947ba87647 | 7ed08b1b98284b21934743c1830629c5b48b510c | refs/heads/main | 2023-06-29T18:29:51.963775 | 2021-08-05T07:53:03 | 2021-08-05T07:53:03 | 334,605,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,445 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"prashant@cloudstake.com"
] | prashant@cloudstake.com |
14328922255fe351b0c5ca99e43e55e86b981c00 | 8df496a1131913d660515db3fe7372a37fb58023 | /api/users/views/users.py | e27025629f0b753dcd312e8d738f924fa0b3b652 | [] | no_license | alexhernandez-git/freelanium | d99ff35ed3f1a4b3f0ab5cbf3bf94d0414ff33b4 | 4dea2123d92375a223dad63eb79d90084ac5b1af | refs/heads/main | 2023-04-08T15:37:12.663455 | 2021-04-05T12:33:13 | 2021-04-05T12:33:13 | 347,499,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,824 | py | """Users views."""
# Django
from operator import sub
from django.core.mail import EmailMultiAlternatives
from django.template.loader import render_to_string
# Django REST Framework
import uuid
from django.core.exceptions import ObjectDoesNotExist
from rest_framework import status, viewsets, mixins
from r... | [
"vlexhndz@gmail.com"
] | vlexhndz@gmail.com |
35bd6304f8bb25b214624eb868b89bbeb09553ce | 23805cffc86ac4dfb5bcce672b8c7070b4616e41 | /Apprendre-Python/vowels-number/scripts/preprocess.py | 033f7109a1b2898fab83148e87655679833a4727 | [] | no_license | ukonline/pythia-tasks | f90ff90299fe0eedd0e2787bcf666df07c709a00 | 81a3731eb0cdfe16b26a4e75a165a5071fb48ff5 | refs/heads/master | 2021-01-25T03:26:33.915795 | 2016-01-04T20:03:24 | 2016-01-04T20:03:24 | 40,974,655 | 0 | 2 | null | 2016-12-21T13:12:14 | 2015-08-18T13:49:39 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Course: Apprendre Python
# Problem: Nombre de voyelles
# Preprocessing script
import json
import sys
sys.path.append('/task/static')
from lib import pythia
# Setup working directory
pythia.setupWorkingDirectory('/tmp/work')
# Read input data and fill skeleton files
data ... | [
"seb478@gmail.com"
] | seb478@gmail.com |
6014b0c76a0491a4ba2d8d067f62c9acd0e7204e | 3b2cf35a15c4a352b4bb92e08a1aa6511485086a | /backend/app/models/bus.py | db6c7cb60a2b7a9144666f51449d297a108a7057 | [] | no_license | debajyotidasgupta/PlanMyTrip | 2af0352668b65d3e59fd63c0b8e28c2e070bb39f | 6fdfdd405ba1808eda1a79e5da9701382af34f96 | refs/heads/master | 2023-01-14T09:30:02.226255 | 2021-06-28T06:53:55 | 2021-06-28T06:53:55 | 258,790,205 | 0 | 2 | null | 2023-01-07T08:44:27 | 2020-04-25T14:04:18 | JavaScript | UTF-8 | Python | false | false | 1,492 | py | from app.models.base import Model
# For each valid DoJ, add a separate entry.
class Bus(Model):
SCHEMA = {
"bus_id": "bus_id int PRIMARY KEY",
"departure": "departure datetime NOT NULL",
"arrival": "arrival datetime NOT NULL",
"source": "source int NOT NULL",
"destination": ... | [
"smishra99.iitkgp@gmail.com"
] | smishra99.iitkgp@gmail.com |
a2973a28dccb0f490908116d525cd650a72afdd8 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/memre/armv7l/obsolete/corp2/system/base/mkinitramfs/actions.py | aea2fa481c3d4936afded91f6d751497b51d490f | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import crosstools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
W... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
343df1e38b6db0ca5bb2e48bacb2a6720a563999 | 1e78076bd3171e009a1230ebb70c03c1e464099c | /src/scripts/m3u2symlinks | 9d56f3f64342adfa2b6a5e9be26b676590028a8c | [] | no_license | jldupont/jld_scripts | e8f1c136d5ff502ee0b41dbbe32bbcce34de2130 | dae53b57eb9c5ced78a4ca1d947ce13dba60469c | refs/heads/master | 2020-04-06T06:57:17.693108 | 2012-12-27T02:01:17 | 2012-12-27T02:01:17 | 815,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | #!/usr/bin/env python
"""
@author: Jean-Lou Dupont
"""
from jld_scripts.scripts.m3u2symlinks import main
try:
main()
except KeyboardInterrupt:
print "\nExiting..."
import sys
sys.exit(1)
| [
"github@jldupont.com"
] | github@jldupont.com | |
ec1ebf8493d019104c8c03f2085888938bb6c310 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/sql/v20210201preview/failover_group.py | 9895718b378f1b849d6c42389232ba533fc19e04 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,537 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
aeb86ee810c2af727bd9aefe032a84ebafbb13f8 | a635b8d51016220a6d84808def431c27dde41b90 | /libcms/apps/sso_opac/backend.py | 7bf3d3a132462a94c58504bd8795b5d10707cc84 | [] | no_license | isergey/chel | aab3ac98ae2a10258f7a5afce88c74f9e13a2d7f | d1a38bfe7ebba80d9c39ae3b0d54ebfd2965046c | refs/heads/master | 2023-07-07T02:13:41.363452 | 2023-06-26T10:25:14 | 2023-06-26T10:25:14 | 3,816,204 | 1 | 0 | null | 2023-03-31T14:52:31 | 2012-03-24T09:33:53 | JavaScript | UTF-8 | Python | false | false | 2,506 | py | # encoding: utf-8
import hashlib
import logging
from django.contrib.auth.models import User
from django.db import transaction
from opac_global_client.entities import ReaderResponse
from sso.models import create_or_update_external_user, find_external_user
from .settings import opac_client, AUTH_SOURCE
logger = logg... | [
"dostovalov@gmail.com"
] | dostovalov@gmail.com |
22642bc82303105c9af4c2cc474c31d20435bb08 | dc2682f687a203dcf5f4f4260f857ef5099bbdab | /src/bootstrapping_olympics/utils/natsorting.py | 89da5b2b594a9af064c6adc40a8fd47103e1c3b5 | [] | no_license | AndreaCensi/boot_olympics | 1bc3d0cd887ca6b47a159929b53032c298979450 | dc05e283bde01cafc4843d82f17413b13c6ce1af | refs/heads/master | 2020-07-08T10:49:37.368104 | 2013-07-19T07:00:22 | 2013-07-19T07:00:22 | 2,098,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # ---------------------------------------------------------
# natsort.py: Natural string sorting.
# ---------------------------------------------------------
# By Seo Sanghyeon. Some changes by Connelly Barnes.
def try_int(s):
"Convert to integer if possible."
try:
return int(s)
except:
... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
6cb86a4a1b4c9e7c555ec9def9902941d4061150 | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/resHashpolicyEnvoy.py | 20429d0ed219bf10587614c0253328ae57dca0da | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 200 | py | from resData import Data
class Hashpolicy(Data):
def __init__(self, rid, **kwargs):
Data.__init__(self, rid, type="hash_policy.envoy", **kwargs)
self.label = "envoy hash policy"
| [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
333ff4279b60ad7da2612ea37ff7798667f8ce6f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/scrabble-score/13b5810a4d2641b6978663045bd8be5d.py | de6fc156d032ebbfdc147aad38352a3fa0268e0e | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 419 | py |
def score(word=''):
out = 0
letter = {
1: ['a', 'e', 'i', 'o', 'u', 'l', 'n', 'r', 's', 't'],
2: ['d', 'g'],
3: ['b', 'c', 'm', 'p'],
4: ['f', 'h', 'v', 'w', 'y'],
5: ['k'],
8: ['j', 'x'],
10: ['q', 'z']
}
for i in word.lower():
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c0211d9e90615e285164725a62884dc7513c5680 | 45f23ed5d9b712107e44e3ae2028176faa8a1f6a | /myproject/2021-04/08-Day20/002-http-post-response-push.py | 7848bbc6bcfed68be81cd61227bc11bb37fa99c3 | [] | no_license | miku3920/pythonStudyNotes | b02167fc63beb8d52ce2ff0df975e872eb972c23 | ea2273ad8fbfb07bf14a195a588c318e6c37653a | refs/heads/main | 2023-05-28T01:19:33.024464 | 2021-06-08T07:05:03 | 2021-06-08T08:23:35 | 344,477,491 | 0 | 1 | null | 2021-04-14T06:22:40 | 2021-03-04T13:06:21 | Python | UTF-8 | Python | false | false | 1,416 | py | from cgi import parse_header, parse_multipart
import socketserver as socketserver
import http.server
from http.server import SimpleHTTPRequestHandler as RequestHandler
from urllib.parse import parse_qs
import json
import requests
auth_token='???????'
class MyHandler(RequestHandler):
def do_HEAD(self):
sel... | [
"papa964204@gmail.com"
] | papa964204@gmail.com |
d914f2bba43c7c3f3b277e591ab95f557e0f6ef7 | 488845a6b10e9f91b8747d701fa76c29b657728e | /Chap0/project/m.py | 32efdd952d04048a50230fdff069c87aef211ad9 | [] | no_license | AIHackerTest/lovejennifer_Py101-004 | 00c41a9a17b43e4437196e56cc4b6840698b2162 | 87033511ae8cf9526cac87b33b3feef2f01547f5 | refs/heads/master | 2021-06-26T18:49:46.453046 | 2017-09-12T08:27:44 | 2017-09-12T08:27:44 | 103,240,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from random import (randint,
sample
)
def generate_randnum():
optional_numbers = [str(i) for i in range(10)]
first_num = optional_numbers.pop(randint(1, 9))
three_num_ls = sample(optional_numbers, 3)
three_n... | [
"xiaowan5219@gmail.com"
] | xiaowan5219@gmail.com |
5e42617301f0889382f61ff47ce80d35773edb0e | 6a4ffecddbb7c60a8dcc19de1965960e8c6086d9 | /employados/venv/bin/django-admin | 7c53f3e0b56fe015c7e0df3eee8d09eaa8070093 | [] | no_license | ale-fante/python | 4811af1e8a6d82616bdec47702dd938b2d1a0250 | 619fd920c0958af5aa0a85623395cd504a9f0030 | refs/heads/master | 2020-05-29T11:11:43.234650 | 2020-05-05T23:21:34 | 2020-05-05T23:21:34 | 189,107,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | #!/Users/animaleja/python/employados/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"you@example.com"
] | you@example.com | |
defcb8df0af5d3a53818d25fec28f6f6b66357e1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/2769.py | c8765a27a5bb6ec2519e9dfe371c9665df41eff5 | [] | 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,896 | py | # Google Jam code - Yuval Feinstein
def game(T):
output_file = open('output.txt','w')
with open(T) as input_file:
test_ammount = int(input_file.readline())
for test_case in range(test_ammount):
# Let's get the relevant line from the first matrice
first_line_n... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
895978f45fa5815c49b19c2136b61ca2d06dcada | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/knx/number.py | fbf4db3f5b231f0f7d36a6956f816f1b754f97f1 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,579 | py | """Support for KNX/IP numeric values."""
from __future__ import annotations
from typing import cast
from xknx import XKNX
from xknx.devices import NumericValue
from homeassistant import config_entries
from homeassistant.components.number import RestoreNumber
from homeassistant.const import (
CONF_ENTITY_CATEGORY... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
bd05b1072ccc33bab9274a5790f09ba45c2c9cda | 08a3848a8e8e431bd05c424d26c462b2e13182ff | /train.py | e40877e4116a9d6ec0382451e73a26518c88b138 | [] | no_license | TalentBoy2333/VideoSAR-segmentation | f1ba2b9bb06c2e180cadf3df0dfaf774d174c3bb | db33547167fda6653723a81e04d081d177a42298 | refs/heads/master | 2022-04-04T11:53:38.407131 | 2020-02-28T14:01:03 | 2020-02-28T14:01:03 | 186,581,063 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,953 | py | import torch
import torch.nn as nn
import torch.utils.data as Data
import numpy as np
from dataset import VideoSAR
from model import Model
import os
cuda = True if torch.cuda.is_available() else False
os.environ['CUDA_VISIBLE_DEVICES'] = '0,1,2,3'
def weights_init(model):
"""
设计初始化函数
使用方法: 在创建model后使用P... | [
"957498562@qq.com"
] | 957498562@qq.com |
30e338049dedf5a163000d4d170ab0b8fa453ac4 | 14a87a2f1baa58600c29a06bbe8d3875e19d9493 | /app/forms/login.py | 3dc09bebb2d68f7e314371350ee80e1335be0dda | [] | no_license | damienSeffray/LostInNetwork | 1a151238de400111c97f533fa06d158e30a425ea | 411e3b81f2a6332fb6b683dd2f3dfd69696d385d | refs/heads/master | 2020-12-11T07:53:58.269999 | 2014-11-28T16:31:21 | 2014-11-28T16:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
from flask_wtf import Form
from wtforms import PasswordField, SubmitField, StringField
from wtforms.validators import DataRequired, ValidationError
from app import db
from app.models import User
class LoginForm(Form):
username = StringField('login', validators=[DataRequired()])
pass... | [
"paul.lhussiez@gmail.com"
] | paul.lhussiez@gmail.com |
db04581111574a9d2ed97845d0d59e610ad20d4d | 31d972d4e30923c945ba00663eab684777f60ddd | /qa/conf/api-flow.run | 7997ec5c41e6bf1ccbf0d0ae9a118427564717de | [] | no_license | plajjan/exabgp | 0a366e220cf3efb125af34e68c8e203cd3e1946a | 787ae66f9ea6ce90e4b802cabee4eb1fe07d50fe | refs/heads/master | 2021-01-21T05:44:47.112151 | 2015-07-10T19:39:16 | 2015-07-10T19:39:16 | 39,240,177 | 1 | 0 | null | 2015-07-17T07:10:54 | 2015-07-17T07:10:54 | null | UTF-8 | Python | false | false | 1,131 | run | #!/usr/bin/env python
import sys
import time
announce_flow_1 = 'announce flow route source 10.0.0.2/32 destination 10.0.0.3/32 destination-port =3128 protocol tcp rate-limit 9600;'
withdraw_flow_1 = 'withdraw flow route source 10.0.0.2/32 destination 10.0.0.3/32 destination-port =3128 protocol tcp;'
announce_flow_2 =... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
c9bac942bcb11583fba01b6e42b84639b653ba64 | ed7e6b0be2b94b9af11cd82d7794426f5015b749 | /util/util.py | 7d1fb09d5b48eefcb85481e37e61ec6841bbc8ee | [] | no_license | phymhan/pc-gan | e1d9fca9ce79ef75f73564f5f892814f8a04c968 | 983ba0f9a3b57d736ae3f823dafd042129aa14e0 | refs/heads/master | 2020-09-14T05:13:58.855811 | 2019-11-23T04:06:47 | 2019-11-23T04:06:47 | 223,029,479 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,522 | py | from __future__ import print_function
import torch
import numpy as np
from PIL import Image
import os
import ast
import argparse
from torch import autograd
from torch import optim
# Converts a Tensor into an image array (numpy)
# |imtype|: the desired type of the converted numpy array
def tensor2im(input_image, imtyp... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
778dfef78fb5706abdbb598f2a1f221920d71fb4 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/depot_tools/fetch_configs/infra_superproject.py | 51060e42172f135b6e018eeacc2e15a68bc9f3c6 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 1,246 | py | # Copyright 2023 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import ast
import config_util # pylint: disable=import-error
# This class doesn't need an __init__ method, so we disable the warning
# pylint:... | [
"jengelh@inai.de"
] | jengelh@inai.de |
843b5a38a3083c1d9f15b736a880f14566ec7121 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_186/Bimestral1_186_20192/jose_moreira_antonio_francisco_mendes/numeros.py | 60a3f5a43bcc649b508157d1f4cbe8aa06a53e58 | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def programa():
numero = int(input("Digite um numero: "))
contador = 0
soma = 0
while numero > 0:
numero = int(input("Digite um numero: "))
soma = soma + numero
contador = contador + 1
print("Soma dos numeros, ", soma)
print("contador", contador)
print("Media sera... | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
3d6fe871ebaa29b884cbe83e7d1475acc94f931e | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /Coderbyte_algorithms/Easy/CheckNums/test_CheckNum.py | 6895a7a171aaab7b9b9f0014d202718e8fc739bb | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | '''
Unittests for CheckNums.py
October 2020 Jakub Kazimierski
'''
import unittest
import CheckNums
class test_CheckNums(unittest.TestCase):
'''
Class contains unittests for CheckNums.py
'''
#region Unittests
def test_TrueOutput(self):
'''
Checks if output is equal ... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
71dc34ef0ced4c76f929688ac390639435d7efc3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/simulator/startQiskit215.py | 679eb176345f1b8013a7cc10a968050606937649 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | # qubit number=2
# total number=13
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy a... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2a27a9e9a8adea03451c430f14c7674e8fe481ae | 9ac20f22b6041dfd817af91044b0a70309ce99ee | /lrcurve/keras_learning_curve_test.py | d09ee42964e2f48c7da2e31899f24c73d656a906 | [
"MIT"
] | permissive | minhlab/python-lrcurve | 28b4138b9b0f5771c85e3bafe8f63f60531b0c60 | 8a63ffa27f6d7ab8c0268a487047b2e0c6e806cb | refs/heads/master | 2021-02-06T23:16:32.934770 | 2019-12-15T15:03:28 | 2019-12-15T15:03:28 | 243,955,957 | 0 | 0 | MIT | 2020-02-29T11:25:01 | 2020-02-29T11:25:00 | null | UTF-8 | Python | false | false | 1,321 | py | from nose.tools import *
from lrcurve import KerasLearningCurve
class DisplayHandle:
def __init__(self, display_objects):
self.display_objects = display_objects
def update(self, obj):
self.display_objects.append(obj)
def display_replacer(display_objects):
def display(obj, display_id=None... | [
"amwebdk@gmail.com"
] | amwebdk@gmail.com |
16e83033f60a1af0cee8ebc54a181fc047d70dfc | ed5a082d977aefcecc8c40c76046d26334615a8e | /contest/abc/abc168/d.py | dfd9ba0bc990d250178c6b27a189b7ba1e681e68 | [] | no_license | arakoma/competitive_programming | 0ff9b9a97d2f37a3a1dac96c157f3235dde96b85 | ebbc5621860aca320a6949433f1707f1cbfcf911 | refs/heads/master | 2021-08-07T10:50:08.890353 | 2021-07-10T14:10:15 | 2021-07-10T14:10:15 | 223,712,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | N, M = map(int, input().split())
L = [[] for _ in range(N+1)]
for _ in range(M):
a, b = map(int, input().split())
L[a].append(b)
L[b].append(a)
ans = [0 for _ in range(N+1)]
now = [1]
next = []
while len(now):
for x in now:
for y in L[x]:
if ans[y] == 0:
... | [
"arakoma555@gmail.com"
] | arakoma555@gmail.com |
cca9fa6e70c387bf5922145e6ae860488286b729 | 2d2242addadbd1c7690c964a0c14804b8494e9f9 | /cultg/cgapp/templatetags/categories.py | 23a29ea905dd31f6cf7cb3b88491bf4f1d17f8cb | [] | no_license | biletboh/culturalgeorgaphies | 57720c5ac4a0005bb4953bcd3c4d9171874d323d | 8337955447800573d90ee1fa40c2dc8bc0919672 | refs/heads/master | 2020-07-04T05:16:58.997019 | 2017-05-27T08:11:20 | 2017-05-27T08:11:20 | 67,863,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django import template
from django.utils.translation import ugettext as _
register = template.Library()
@register.filter
def in_category(things, category):
return things.filter(category=category)
@register.filter
def language(things, language_code):
if language_code == "en":
language = "en"
... | [
"biletskyboh@gmail.com"
] | biletskyboh@gmail.com |
3bb3a39242c0a587a22e483bf5893574a50b6b48 | 024316d7672c7c2b2c558003c586df5116c73731 | /wavesynlib/languagecenter/wslinp/modelnode.py | 98d4a3f61269c7c7f1c259929d7ddd1d1f331f81 | [] | no_license | kaizhongkaizhong/WaveSyn | c305b03e44a961892a792a49601f625a90ae4f70 | b7918af5f66dba8c0d63cbb986465febe075cec2 | refs/heads/master | 2023-04-23T00:20:44.134876 | 2021-05-03T07:43:10 | 2021-05-03T07:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from wavesynlib.languagecenter.wavesynscript import ModelNode
import hy
from .engine import Engine
class WSLinp(ModelNode):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def run(self, program, *files):
engine = Engine()
engine.run(program, *files)
| [
"xialulee@live.cn"
] | xialulee@live.cn |
b559cd3a63d9f0c3d81b478e820763498c7f354a | 1e987bd8b8be0dc1c139fa6bf92e8229eb51da27 | /experimental/deeplearning/clgen/backtracking/logger.py | 10c1e52d59843a5dd0723afe67002b5535156379 | [] | no_license | tszdanger/phd | c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5 | aab7f16bd1f3546f81e349fc6e2325fb17beb851 | refs/heads/master | 2023-01-01T00:54:20.136122 | 2020-10-21T18:07:42 | 2020-10-21T18:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | """Results logging for backtracking experiments."""
import time
from experimental.deeplearning.clgen.backtracking import backtracking_db
from experimental.deeplearning.clgen.backtracking import backtracking_model
from labm8.py import app
from labm8.py import humanize
FLAGS = app.FLAGS
class BacktrackingLogger(objec... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
c53998cde360109d2db8694cb1e066768a5b5b38 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /yukicoder/400-499/406.py | 3aeb6a9055b7aa74348e251414bf783907c003e0 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
N = int(raw_input())
x = sorted(map(int, raw_input().split()))
if len(set(x)) == N and len(set((x[i + 1] - x[i] for i in xrange(N - 1)))) == 1:
print "YES"
else:
print "NO"
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
0767314724e24093509436537c991c1a85e89624 | 6e423cddd8698bc662bcc3208eb7a8fdb2eb0d72 | /mlops/parallelm/mlops/e2e_tests/__init__.py | 73455c8442d465290655e23070f5b4313dfd0ffe | [
"Apache-2.0"
] | permissive | theromis/mlpiper | 7d435343af7b739767f662b97a988c2ccc7665ed | 738356ce6d5e691a5d813acafa3f0ff730e76136 | refs/heads/master | 2020-05-05T04:44:00.494105 | 2019-04-03T19:53:01 | 2019-04-03T22:02:53 | 179,722,926 | 0 | 0 | Apache-2.0 | 2019-04-05T17:06:02 | 2019-04-05T17:06:01 | null | UTF-8 | Python | false | false | 75 | py |
from .train_node import train_node
from .predict_node import predict_node
| [
"lior.amar@parallelmachines.com"
] | lior.amar@parallelmachines.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.