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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77a82b1e7d4bc1d00910f61fcaba9536d4b9e2e4 | 89145800ada60f8d2d1b3200b6f384c1a4f8fff8 | /aparcamientos/migrations/0007_auto_20170513_2045.py | c46410372c612861e5c7097ab767691fd484be12 | [] | no_license | malozanom/X-Serv-Practica-Aparcamientos | 2f8f2cab9b9ca096ab3209d8fa6579aacbdce593 | d6da3af090aef7e8b0d23add7a5ff76f979d0311 | refs/heads/master | 2021-06-24T17:34:40.930085 | 2019-11-04T18:36:38 | 2019-11-04T18:36:38 | 90,887,116 | 0 | 0 | null | 2017-05-10T16:46:30 | 2017-05-10T16:46:30 | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('aparcamientos', '0006_auto_20170513_2038'),
]
operations = [
migrations.AlterField(
model_name='aparcamiento',
... | [
"you@example.com"
] | you@example.com |
6e1a191a96a7f8c72db1a5e68631517295612b77 | 81c5323d6a456479d32c9a2a2b9ab61484dd7922 | /otter/assign/r_adapter/tests.py | a1922198413bc3a05d3eb9c88d3baaf1309b1b53 | [
"BSD-3-Clause"
] | permissive | fperez/otter-grader | c488f339fa6db8577c09bbcba22d919519fb3fb5 | 6c9ded064b7c8bbd115d8ab54330f4400a564b17 | refs/heads/master | 2023-07-27T16:33:33.392295 | 2021-08-26T18:12:18 | 2021-08-26T18:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | """
ottr test adapters for Otter Assign
"""
import re
import pprint
import yaml
import nbformat
from collections import namedtuple
from ..constants import BEGIN_TEST_CONFIG_REGEX, END_TEST_CONFIG_REGEX, OTTR_TEST_FILE_TEMPLATE, OTTR_TEST_NAME_REGEX, TEST_REGEX
from ..tests import write_test
from ..utils import get_s... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
71e9ae05007db3f56841804f0ffc628cd0c3a41a | 1b48b3980abbe11691310a7f35efef62bc0ae831 | /Qt/_dir/QListWidgetItem.py | f2062d8e84265d8f629e3b90a4e90f97e2ccdfeb | [] | no_license | FXTD-ODYSSEY/MayaScript | 7619b1ebbd664988a553167262c082cd01ab80d5 | 095d6587d6620469e0f1803d59a506682714da17 | refs/heads/master | 2022-11-05T08:37:16.417181 | 2022-10-31T11:50:26 | 2022-10-31T11:50:26 | 224,664,871 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | ['ItemType', 'Type', 'UserType', '__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lshift__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rlshift__', '__rrshift__', '__rshift__', '__set... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
6ecfa4e76bd00ac931f5a23055997abaa3f3c7c0 | 02952ddf96e7960a3faef74485f4ffc12bcf2973 | /projects/node_failure/grayscott_example.py | 70cc7692d34770f851f5fac30d67789e8b4e26c1 | [
"BSD-2-Clause"
] | permissive | danielru/pySDC | 5decca37e1ecea643fe21dac0f978e3fdaa24ac6 | 558b2b4db3aeb97e6a87e41cd4958a8a948af37a | refs/heads/master | 2020-12-25T10:58:57.215298 | 2017-03-21T06:45:59 | 2017-03-21T06:45:59 | 31,062,846 | 0 | 0 | null | 2015-02-20T11:52:33 | 2015-02-20T11:52:33 | null | UTF-8 | Python | false | false | 5,773 | py | import numpy as np
import projects.node_failure.emulate_hard_faults as ft
from projects.node_failure.allinclusive_classic_nonMPI_hard_faults import allinclusive_classic_nonMPI_hard_faults
from pySDC.helpers.stats_helper import filter_stats, sort_stats
from pySDC.implementations.collocation_classes.gauss_radau_right im... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
383a092bc9a555f76149adf252e0ffee79da8587 | c1120d1d6352f35dc988b9874b24cd30f83f2f58 | /jobs_admin/apps.py | 9dc1cab06b32ff7f0fe79c1f909690269471d036 | [] | no_license | andrem122/Invoice-Management | 70032d86cfdfb2ed21479baae3a8057f88b61047 | 7f7a617a39602a656ff54724c344745038f304b4 | refs/heads/master | 2022-12-11T19:19:47.898336 | 2020-10-01T01:39:52 | 2020-10-01T01:39:52 | 120,393,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class JobsAdminConfig(AppConfig):
name = 'jobs_admin'
| [
"andre.mashraghi@gmail.com"
] | andre.mashraghi@gmail.com |
4bc2fe82e33b7056ddfa4db9de4d352059f62de5 | 95aa541b9dcede42e6969947d06a974973dd052a | /ch10_thread_and_subprocess/manpage_server.py | 154595fe1845e23af8d4100d18008086d16f2c64 | [] | no_license | AstinCHOI/book_twisted | a693d5eaf7a826b26671e9e98d167f6808dcc0dc | dc5a5dff1ac432e2fb95670b683628e09d24774e | refs/heads/master | 2016-09-05T16:11:03.361046 | 2015-03-27T07:27:23 | 2015-03-27T07:27:23 | 28,185,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import sys
from twisted.internet import protocol, utils, reactor
from twisted.protocols.basic import LineReceiver
from twisted.python import log
class RunCommand(LineReceiver):
def lineReceived(self, line):
log.msg("Man pages requested for: %s" % (line,))
commands = line.strip().split(" ")
... | [
"asciineo@gmail.com"
] | asciineo@gmail.com |
41c52d2f3a7f55a45be9dfe6db28d0dc6eccfa11 | b06978b6020ce3240912ba5c131c4f38a86d7996 | /Pycharm_files/Clara_projects/venv/bin/easy_install-3.7 | c2619aa12d88e86faba1383e852d858ca0ce059b | [] | no_license | mn4774jm/PycharmProjects | 95dc8ee6b89a85ba02d4134aa5b5bce11004647b | 886bcf2400abc9a1f797fe98d09241f99fa16322 | refs/heads/master | 2021-08-09T10:20:27.907847 | 2020-09-04T15:21:21 | 2020-09-04T15:21:21 | 219,878,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | 7 | #!/Users/tom/PycharmProjects/Clara_projects/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"mn4774jm@go.minneapolis.edu"
] | mn4774jm@go.minneapolis.edu |
808da2cebeee1cf74826f659edf3a3e4224feeb7 | 54f33f6026b6fb71caba620f4bf39ec48ad76422 | /trazabilidad/migrations/0004_auto_20200707_1259.py | 6674d2af94293ccf727b9c3873faf9e43c2fc171 | [] | no_license | geovanniberdugo/lab7 | 7d30458c64bc32e21c390d4836db76bf894609f5 | 8a945d937864961da3fcd1e8c4dbf7575febc58d | refs/heads/main | 2023-02-13T02:03:19.067815 | 2021-01-15T22:24:35 | 2021-01-15T22:24:35 | 330,033,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # Generated by Django 2.2.13 on 2020-07-07 17:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('trazabilidad', '0003_recepcion_responsable_tecnico'),
]
operations = [
migrations.AlterModelOptions(
name='reporte',
option... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
336baca78251949d3080584964342725bd72e442 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/111/usersdata/224/64138/submittedfiles/av2_p3_m2.py | 6a24b72cb7c12e52bc9bb665c8c885fcad335b6c | [] | 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 | 1,000 | py | # -*- coding: utf-8 -*-
import numpy as np
def L(A):
L=[]
for i in range(0,A.shape[0],1):
soma=0
for j in range(0,A.shape[1],1):
soma=soma+A[i,j]
L.append(soma)
return(L)
def C(A):
C=[]
for j in range(0,A.shape[1],1):
soma2=0
for i in range(0,A.s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
98981c98e568239d5f45a9956b008fa6e08dddc3 | d2eb7bd335175edd844a3e6c1c633ee0dc2dbb25 | /contests_cf/cgr13/a.py | 17700eeffc72067c1d7b3c7ce4a4409baea8f942 | [
"BSD-2-Clause"
] | permissive | stdiorion/competitive-programming | 5020a12b85f1e691ceb0cacd021606a9dc58b72c | e7cf8ef923ccefad39a1727ca94c610d650fcb76 | refs/heads/main | 2023-03-27T01:13:42.691586 | 2021-03-08T08:05:53 | 2021-03-08T08:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | n, Q = map(int, input().split())
a = list(map(int, input().split()))
queries = [tuple(map(int, input().split())) for _ in range(Q)]
sa = sum(a)
for t, q in queries:
if t == 1:
if a[q - 1]:
sa -= 1
else:
sa += 1
a[q - 1] ^= 1
if t == 2:
print(int(sa >= q)... | [
"itkn1900@gmail.com"
] | itkn1900@gmail.com |
f1e1916d5ee16ab930b58883865ded11391e592b | 9d8e2dd4441c50b443390f76c899ad1f46c42c0e | /hacker_rank/warmup/acm_icpc.py | d89e3c9e0e9eacebe4f54393b2719d36db302d06 | [] | no_license | vikramjit-sidhu/algorithms | 186ec32de471386ce0fd6b469403199a5e3bbc6d | cace332fc8e952db76c19e200cc91ec8485ef14f | refs/heads/master | 2021-01-01T16:20:52.071495 | 2015-08-03T17:42:29 | 2015-08-03T17:42:29 | 29,119,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | """
Hacker Rank - Algorithms Warmup
ACM ICPC team
https://www.hackerrank.com/challenges/acm-icpc-team
"""
def find_max_skillset(n, person_skills):
""" Using brute force method - O(n^2) """
max_or = 0 #the number representing the max no of topics a pair can have in common, using bitwise or gate
co... | [
"vikram.sidhu.007@gmail.com"
] | vikram.sidhu.007@gmail.com |
71b60f4bbb9e39e2541f0232e385b0b1d2e736a1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03150/s166029107.py | 7912d0c3c96249b3eef4d049d6bd02ec4463ca6b | [] | 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 | 160 | py | S = input()
N = len(S)
for i in range(N):
for j in range(i,N):
if S[:i]+S[j:] == "keyence":
print("YES")
exit()
print("NO")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f5c021dd4ad92eb1323ab6f3c80d395203333111 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/generated_samples/managed_clusters_reset_service_principal_profile.py | 739b2c854e6450765b65166d73c7b8c134a5715c | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,688 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
a50387cc2103e7bb54d4efc666435bc50c0049b5 | 3c5ae1e6dcd105354971c78ef279420b0b817ffa | /nova-master/nova/version.py | 01b6b47658d7e4e1fb5362ba57ca75420093f641 | [
"Apache-2.0"
] | permissive | Yunzhe-Sun/CentOS-openstack | e9e99360cedd46e9bf7f2f1b2dab22032c6b2aca | e22b8090e7bf748c38448a61793a23ca71ec91d4 | refs/heads/master | 2021-07-15T23:19:15.560323 | 2021-07-07T02:43:01 | 2021-07-07T02:43:01 | 218,758,174 | 0 | 1 | null | 2021-07-07T02:43:02 | 2019-10-31T12:13:49 | Python | UTF-8 | Python | false | false | 2,531 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation
#
# 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/LICEN... | [
"171194570@qq.com"
] | 171194570@qq.com |
10c80893e0962195bc013fc9cbf7d856336bd164 | 089f35b5a6ba8df05fbd5fe5540235074d36b465 | /python-basic-project/unit03/01.py | 52e904b1ad00339e95e2887544cca2195024058a | [
"MIT"
] | permissive | sangwon9591/learningspoons-bootcamp-finance | e42b5e2793a875a6800dbb21e1bf8793d6a0bf92 | 57a9971d9156e274372918bdea10eda090c65437 | refs/heads/master | 2023-04-15T04:57:30.708424 | 2021-04-21T14:12:05 | 2021-04-21T14:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import pyupbit
price = pyupbit.get_current_price("KRW-BTC")
print(price) | [
"brayden.jo@outlook.com"
] | brayden.jo@outlook.com |
c489de6483130e1719c5238ee2f413453c3d8a12 | 5a281cb78335e06c631181720546f6876005d4e5 | /karbor-1.3.0/karbor/common/opts.py | 141e3d4b1f62c335e989a939c6679f778d7b5c9f | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,875 | py | # 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
# d... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
2f01de5c5e7a5e29462094ffdd55f586b4adf634 | 5739e542af6b6442491a8b077b4f3da1c17a6881 | /tensor2tensor/mesh_tensorflow/mtf_image_transformer.py | ab37e7a4de795124831b5408301f3d9712bf59c1 | [
"Apache-2.0"
] | permissive | scott-gray/tensor2tensor | 3c1acdcc335d86e28ea72bea89fcc18396aa9f56 | 3d418439076c1732b0703b7dbc1b6269aef7c469 | refs/heads/master | 2020-03-26T12:19:56.499115 | 2018-08-15T17:03:38 | 2018-08-15T17:04:13 | 144,887,126 | 5 | 1 | null | 2018-08-15T18:08:49 | 2018-08-15T18:08:49 | null | UTF-8 | Python | false | false | 9,756 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor 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 applicable... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
d2a1e18f1dbe66e35809ad3d837e3d80d6088ed7 | 2dfec35bafb4a808771b723ca94c102240b5d8f4 | /align/alignProject/lineWriteExcel.py | d830271cf966eca71653032874f36f2d7fa74475 | [] | no_license | mengguiyouziyi/outsourcing | cde7169d94bcdde63091e92f91d140c72c1d184c | 140172ca792c9808cb69251468a14529b84ea380 | refs/heads/master | 2022-11-13T19:55:54.851329 | 2020-06-18T02:51:25 | 2020-06-18T02:51:25 | 273,120,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import os
import xlwt
def toExcel(file_align, en_sen, zh_sen, xlsx):
"""
根据对齐文件 1 <-> 1,在英中断句文件中找到相对应的句子,写入到excel中
:param file_align: 对齐文件路径
:param en_sen: 英文断句文件路径
:param zh_sen: 中文断句文件路径
:param xlsx: 导出的excel文件路径
:return:
"""
current_path = os.getcwd()
# 筛选对应行号,入 xxx_num_list... | [
"775618369@qq.com"
] | 775618369@qq.com |
05a6452019d5174fb690d15af867475d68631d14 | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /test/test_entity_connections_api.py | a4ae054613ef7893641cedf678af4e98b49895ed | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 41,022 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
cbea139f8853a006a1972d5ee7af4fcd57543eaa | 8be5929368bd987caf744c92f234884bf49d3d42 | /lib/app/reportdatasources/loader.py | 10ddd1e2dc402ed2c6599f4203b634578a5d1d95 | [
"BSD-3-Clause"
] | permissive | oleg-soroka-lt/noc | 9b670d67495f414d78c7080ad75f013ab1bf4dfb | c39422743f52bface39b54d5d915dcd621f83856 | refs/heads/master | 2023-08-21T03:06:32.235570 | 2021-10-20T10:22:02 | 2021-10-20T10:22:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # ----------------------------------------------------------------------
# ReportDataSource Loader
# ----------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# Pyth... | [
"aversanta@gmail.com"
] | aversanta@gmail.com |
2b16643e7e21bbfc7d0c383285dbed507442b4ec | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/accounts/migrations/0230_auto_20190813_0943.py | cad59fc29518cbca8c11ec4722683b2757ed0e2f | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.4 on 2019-08-13 07:43
import diventi.accounts.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0229_auto_20190812_1402'),
]
operations = [
migrations.AlterModelManagers(
name='diventiuser'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
d89e6017f9e196bd0d483c3a18cb9fb5229046ed | 04683108de1628e0e5286d424296eda7e340f62a | /test/functional/feature_proxy.py | ce5d0fbd4b3014d00e7a3f8f76e222adc4e45ea0 | [
"MIT"
] | permissive | youngseoka/youngseokcoin_dd | 0c52a036c1a724c351676e594f4da71178e2ec59 | ddfa2836901ce0346261118379e116042130d8de | refs/heads/master | 2022-07-11T23:13:14.226723 | 2020-05-14T17:59:07 | 2020-05-14T17:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,440 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2019 The Youngseokcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test youngseokcoind with different proxy configuration.
Test plan:
- Start youngseokcoind's with... | [
"youngseokaaa@gmail.com"
] | youngseokaaa@gmail.com |
74fa365c1adbad9b80577e126779020c1164fc07 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_085029.80+325447.4/sdB_SDSSJ_085029.80+325447.4_coadd.py | 499208837b41dc63ff2c0793947849f68567605c | [] | 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 | 482 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[132.624167,32.913167], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_085029.80+325447.4/sdB_SDSSJ_085029.80+325447.4_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
f41e8f81b5f3338158a8eb1869dcfb2e36386ba3 | 871b090c3562669c6ff2fc92508419b680443fad | /Booking_Management/edl_management/migrations/0026_auto_20210622_2153.py | b4a828c53fcaeae9de2eabecc4d009fe221f5d14 | [] | no_license | maxcrup007/CLEM | 4ace1a28be7a0463d8f04a04c0e19d991d7cdb70 | 3a1cb35fce426f1826e8764487ad97c631ff59a9 | refs/heads/master | 2023-06-06T00:13:26.663741 | 2021-06-24T17:12:19 | 2021-06-24T17:12:19 | 379,998,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.0 on 2021-06-22 14:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('edl_management', '0025_auto_20210622_1351'),
]
operations = [
migrations.AlterField(
model_name='... | [
"36732487+maxcrup007@users.noreply.github.com"
] | 36732487+maxcrup007@users.noreply.github.com |
6fe1d3435b2d13a8d15eb7cc8183c60cff221de0 | bd6ae68d882cc40876b4f2906fa522ef807d1d89 | /tepy/openstack/glance/glance/db/__init__.py | e2120dd34c26f8e392620da9be0ff726eb6de972 | [
"Apache-2.0"
] | permissive | bopopescu/Projects-1 | 7ecc1f472f418b701bc40c8a58bab447e678c68f | 1b7fd99bf1ed96adb7a9486daf098947a9208f77 | refs/heads/master | 2022-11-19T18:31:32.863170 | 2018-02-26T02:09:09 | 2018-02-26T02:09:09 | 281,792,443 | 0 | 0 | null | 2020-07-22T22:06:26 | 2020-07-22T22:06:25 | null | UTF-8 | Python | false | false | 34,009 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2010-2012 OpenStack Foundation
# Copyright 2013 IBM Corp.
# Copyright 2015 Mirantis, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "L... | [
"liujicun01@163.com"
] | liujicun01@163.com |
2f55c363d20f9a90e541fbc60990f6901e6e451d | 87274e9dd7cf48645b3bc6baa5e7572b9fcdcb0b | /ceshi/ceshi/spiders/lagou_spider.py | a471e1cd80f359b586c3576741c0fef3563362f2 | [] | no_license | ixiaoxinxin/xiaoxinxinPAPAPA | 1619652812cd1db4caa84528c814f58e3afa1ce4 | ac97c81f24e725ff5f33160b032e2f99c7f1dfe2 | refs/heads/master | 2021-05-02T01:27:20.706064 | 2017-02-05T14:24:13 | 2017-02-05T14:24:13 | 79,033,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # -*- coding: utf-8 -*-
from scrapy.spider import Spider
from scrapy.contrib.spiders import Rule,CrawlSpider
from scrapy.selector import Selector
class LagouSpider(Spider):
name = "lagou"
allowed_domains = ["lagou.com"]
start_urls = [#这个名称不能写错,否则会识别不到url,d导致爬不到数据
"https://www.lagou.com/zhaopin/cesh... | [
"295563386@qq.com"
] | 295563386@qq.com |
61d98a99974294a3d48ec28e780ce63457575bf4 | 272a8b0b38e4af5f22dd811040f0ca2b0b111c61 | /exp_scripts/loss_gan_noload3.py | 3d8162cf5e1b818f3e989bbee573ebe95b041078 | [] | no_license | jessemin/GeneGan | 1c1a97b6ab566a7c556ce1452e4c35530b0b626c | 2ad94e842cfaee531d7e13af7472b623bf96de30 | refs/heads/master | 2021-09-13T13:02:33.629138 | 2018-04-30T06:57:13 | 2018-04-30T06:57:13 | 112,046,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import os
os.chdir('../exp_notebooks')
os.system('python loss_gan.py\
-w=2001\
-save=loss_gan_noload_3\
-sample_num=10000\
-g_weight=0.5\
-mse_weight=0.5\
-g_lr=0.001\
-d_lr=0.001\
--smooth_rate=0.1\
-cuda=1')
| [
"jesikmin@stanford.edu"
] | jesikmin@stanford.edu |
dd881acb19392265ebaf229e8e5e36e1235eb54b | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/addons/hw_escpos/__init__.py | b69f45ed25a74e18525c21c133b53d0f06904456 | [
"MIT"
] | permissive | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # -*- coding: utf-8 -*-
# Part of YuanCloud. See LICENSE file for full copyright and licensing details.
import controllers
import escpos
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
86c561dd371fef267ab970ef768b6ee1bf15dfa5 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_21984.py | d4bc79b9b96d2041bf6af93a6972d7b221585904 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,843 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
0d8a541cf7e89dc8bfa362e75441297927f3dbdb | 61afe17201589a61c39429602ca11e3fdacf47a9 | /Chapter3/Day23/16.进程间数据的共享_Array.py | c663d6e8677d235e387ba052b83e1d4875630641 | [] | no_license | Liunrestrained/Python- | ec09315c50b395497dd9b0f83219fef6355e9b21 | 6b2cb4ae74c59820c6eabc4b0e98961ef3b941b2 | refs/heads/main | 2023-07-17T14:16:12.084304 | 2021-08-28T14:05:12 | 2021-08-28T14:05:12 | 399,408,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from multiprocessing import Process, Value, Array
def f(data_array):
data_array[0] = 66
if __name__ == '__main__':
arr = Array('i', [11, 22, 33, 44]) # 数组:元素类型必须是int;只能是这么几个数据,不能多,也不能少
p = Process(target=f, args=(arr, ))
p.start()
p.join()
print(arr[:]) # [66, 22, 33, 44]
| [
"noreply@github.com"
] | Liunrestrained.noreply@github.com |
1072aa5aaa01fe24e899ea2b0f8a6e9a903d8087 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/periodicities/Business_Hour/Cycle_Business_Hour_25_BH_12.py | 110c2fc033a09aba57a6284c31765160ac140d2c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 82 | py | import tests.periodicities.period_test as per
per.buildModel((12 , 'BH' , 25));
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e890e6a1b3efbd2ecb9561220b3fdbe2a0c6c70d | 3e78bf8a64318c091837cab3c1288cafc3617310 | /scripts/Script.py | c3c3b28229d28ae56f80278c459c443cc3f2cd66 | [] | no_license | eddiedb6/rate | e6887a6f8324e79fafa0ccd75a280dcc883a18b7 | 9c54bf949348d74fe8c7e4b0d3a1abd56b936821 | refs/heads/master | 2022-03-10T12:04:53.025473 | 2019-11-06T10:15:42 | 2019-11-06T10:15:42 | 105,227,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | import sys
import os
import time
# __file__ will be AFW.py in auto/afw
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], "../../scripts"))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], "../../util"))
sys.path.append(os.path.join(os.path.split(os.path.realpath(__fil... | [
"eddiedb6@gmail.com"
] | eddiedb6@gmail.com |
f610ac4877ded41728b8e65579ba101a3dbe0b45 | 7f31d42f80dd93d6f18baed192125991b3645d66 | /examples/scripts/x86/check_constraint1.py | d96398bde35cf6fda16fd4ffcb7f772c978a822b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | jmorse/barf-project | e183aba9ab99d0b742c320cba8169704441777ed | 7b336f9747216b44773f01a57bafbe4cbdf3c838 | refs/heads/master | 2021-05-08T07:02:07.175186 | 2017-10-17T15:51:47 | 2017-10-17T15:51:47 | 106,693,149 | 0 | 0 | null | 2017-10-12T12:59:04 | 2017-10-12T12:59:03 | null | UTF-8 | Python | false | false | 2,459 | py | #! /usr/bin/env python
from barf import BARF
if __name__ == "__main__":
#
# Open file
#
barf = BARF("../../samples/bin/constraint1.x86")
#
# Check constraint
#
# 80483ed: 55 push ebp
# 80483ee: 89 e5 mov ebp,esp
# 80483f... | [
"cnheitman@fundacionsadosky.org.ar"
] | cnheitman@fundacionsadosky.org.ar |
61d05adc137915e86dd216e736831bf0cc5917fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03665/s821294954.py | b2af28f559909e7fcc451a213b7441c4c193ce2c | [] | 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 | 775 | py | def two_int():
N, K = map(int, input().split())
return N,K
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N, P = two_int()
A=many_int()
even = 0
odd = 0
for a in A:
if a%2==0:
even+=1
else:
odd+=1
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
912c4c70d6ec6508942c8a1919093486e3750e9c | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/sklearn/datasets/_samples_generator.py | 1d4ba96f5cfd87b62b93b714a4704ecb5533f151 | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,054 | py | """
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe, J. Nothman
# License: BSD 3 clause
import numbers
import array
from collections.abc import Iterable
import numpy as np
from scipy import linalg
import scipy.spa... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
868c53f25cc4f5ef1a654a7bb8fa9c5eb7ad3c89 | 141d1fb160fcfb4294d4b0572216033218da702d | /exec -l /bin/zsh/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/dns/v1beta2/dns_v1beta2_client.py | e66c6f897750b41139ac64b7e930be260e2c63b3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | sudocams/tech-club | 1f2d74c4aedde18853c2b4b729ff3ca5908e76a5 | c8540954b11a6fd838427e959e38965a084b2a4c | refs/heads/master | 2021-07-15T03:04:40.397799 | 2020-12-01T20:05:55 | 2020-12-01T20:05:55 | 245,985,795 | 0 | 1 | null | 2021-04-30T21:04:39 | 2020-03-09T08:51:41 | Python | UTF-8 | Python | false | false | 24,714 | py | """Generated client library for dns version v1beta2."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.dns.v1beta2 import dns_v1beta2_messages as messages
class DnsV1beta2(base_api.BaseApiClient):
"""Generated client li... | [
"yogocamlus@gmail.com"
] | yogocamlus@gmail.com |
de13c796eb2ff43e6f5f5a08ccc5e6911a6a6749 | d2cfe3ef86d89d580f2a9670f9fc9b11c3e424b4 | /rvsml/EvaluateRVSML.py | 67a0ebf4c95d06d1ab04f36c3197a780b026bcac | [
"BSD-3-Clause"
] | permissive | ShuheiKuriki/SentEval_by_RVSML | 4e89ccd20fa6446c1656d76bafbbd79199b36e86 | b2cebb65c755bfec8ebb0a0400f0d69a5725bd6f | refs/heads/master | 2022-04-25T22:01:21.612920 | 2020-04-14T19:07:08 | 2020-04-14T19:07:08 | 254,819,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | import numpy as np
import time
from rvsml.NNClassifier import *
from rvsml.RVSML_OT_Learning import *
import logging
from array import array
def EvaluateRVSML_dtw(classnum, dim, trainset, trainsetnum, testset, testsetdata, testsetdatanum, testsetlabel, testsetnum, logname, logfile):
#rankdim = 58
CVAL = 1
... | [
"shukuri.7336.8@gmail.com"
] | shukuri.7336.8@gmail.com |
c62305d533cfdea397699d4dcbbcc47d4d51441f | f63fdd673e5b9881a0395be83e0a6b5ccc7edbdb | /ReedsShepp_planner/drawing_pallet_jack.py | ac856f0c27793f58e4388e1c15825a7020aa8cfb | [] | no_license | karry3775/Motion-Planning-Python | 63ad4bf928c57b9ea6b8c19fceea16dbc2adb783 | 20ed30526bd03380ead8b29357e5bf7eb291ba9b | refs/heads/master | 2023-02-08T18:19:26.644696 | 2020-12-30T22:22:36 | 2020-12-30T22:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,109 | py | import matplotlib.pyplot as plt
import numpy as np
import math
def wrapToPi(theta):
return math.atan2(math.sin(theta),math.cos(theta))
def dpj(x,y,theta,steer):
# plotting the center point
wd = 1.5
plt.plot(x,y,'co')
plt.arrow(x,y,math.cos(theta),math.sin(theta),width=0.01,color='orange')
plt... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
f99707e466fb45f4b828045d6ea2f479b3607a9e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4145/codes/1785_1593.py | bdc0b42949e4321e6639bacb31776578fbdc14d2 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from numpy import*
v = array(eval(input("vetor de notas: ")))
#v=input("vetor de notas: ")
#vv=arange(v,dtype ==float)
i=1
n=0
c=0
d=0
while(i<size(v)):
v[c]= v[c]*i
c=c+1
d=d+i
i=i+1
m =sum(v)/d
#print(round(n/d,2))
print(round(m,2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0ef05a08b6f483dac468d83fbee9b86c0391c9de | 28a7feb26470d0d6743454222b74abadf05af449 | /dcase_util/utils/timer.py | 79247276c5e10e9961884ce814bfae551278dea5 | [
"MIT"
] | permissive | DCASE-REPO/dcase_util | de322c900388de66af3398af294e095e28392beb | a2694b0b9ad4592c9c27c935fb92b0e5751b8ab4 | refs/heads/master | 2023-06-08T08:06:23.525652 | 2022-06-09T22:05:38 | 2022-06-09T22:05:38 | 110,171,294 | 137 | 41 | MIT | 2022-06-09T22:05:39 | 2017-11-09T22:03:27 | Python | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import
import datetime
import time
class Timer(object):
"""Timer class"""
def __init__(self):
# Initialize internal properties
self._start = None
self._elapsed = None
def start(self):
... | [
"toni.heittola@gmail.com"
] | toni.heittola@gmail.com |
22476f16fbbdba9d4cd70f408ea0265dce33ddf2 | e522dc3b8ae16fb6adf8c679c2fcd61e06979f29 | /example/serial_example_2.py | c0f03b4ff72605d2fc8273faa36f0f388dd3043c | [
"MIT"
] | permissive | amaork/raspi-io | 96e92330555e7700f54633f582efbc7620f8b10b | aaea4532569010a64f3c54036b9db7eb81515d1a | refs/heads/master | 2021-09-17T15:27:43.853195 | 2021-08-27T08:51:24 | 2021-08-27T08:51:24 | 94,192,125 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/env python3.5
from raspi_io import Serial
import raspi_io.utility as utility
if __name__ == "__main__":
cnt = 0
port = Serial(utility.scan_server()[0], '/dev/ttyS0', 115200, timeout=1)
while True:
port.read(1)
| [
"amaork@gmail.com"
] | amaork@gmail.com |
153829a56bfdcb6f0bf9cf971b037d569141c8b2 | a8750439f200e4efc11715df797489f30e9828c6 | /codechef/CFR_383_2_742_A.py | b5af70d5e071990b82d467c9a9062dbe056f81f8 | [] | no_license | rajlath/rkl_codes | f657174305dc85c3fa07a6fff1c7c31cfe6e2f89 | d4bcee3df2f501349feed7a26ef9828573aff873 | refs/heads/master | 2023-02-21T10:16:35.800612 | 2021-01-27T11:43:34 | 2021-01-27T11:43:34 | 110,989,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py |
# -*- coding: utf-8 -*-
# @Date : 2018-10-02 08:00:37
# @Author : raj lath (oorja.halt@gmail.com)
# @Link : link
# @Version : 1.0.0
from sys import stdin
max_val=int(10e12)
min_val=int(-10e12)
def read_int() : return int(stdin.readline())
def read_ints() : return [int(x) for x in stdin.readline().spli... | [
"raj.lath@gmail.com"
] | raj.lath@gmail.com |
98039b25a467025b1eb7152af7fecb84cafc6724 | 4626631c5e68a13ed4dde041212da39d344d74d9 | /examples/scripts/define-user-roles.py | 8066ecfe60673ba22a2b7e702350628e5d50c9c2 | [
"MIT"
] | permissive | xod442/python-hpOneView | a1482677e3252dabf1e14f9349c119428331089f | b78fb81cba34992bb84ed3814aae04ce05ef913f | refs/heads/master | 2021-01-18T05:53:42.466348 | 2015-08-11T15:59:16 | 2015-08-11T15:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | #!/usr/bin/env python3
###
# (C) Copyright (2012-2015) Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... | [
"troy@debdev.org"
] | troy@debdev.org |
1a6c349482a32dd6f302abf1c4292833b754d0c1 | f151d2e8ce0f09069f76a2719fcc4bc106f90e15 | /config.py | afe05ab4494fe3e5491ab130e7960f456b01545f | [] | no_license | Ali-Khakpash/flask-admin | b8d71e85edb644f8f3754ea8bdbcc8f79e0425e3 | f2beab858368dabe5c9f48b2e41ff8ddbca0fdae | refs/heads/master | 2020-12-02T04:10:38.978578 | 2020-06-05T09:47:17 | 2020-06-05T09:47:17 | 230,882,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
#SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SECRET_KEY = os.urandom(24)
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]'
FLASKY_MAIL_SENDER = 'Flasky Admin <flasky@exam... | [
"ali.khakpash@gmail.com"
] | ali.khakpash@gmail.com |
c377866aad88f931fedcf91312e31f92701861f1 | 44e1f22280921216c8ef9acabec761cbe450030a | /src/models/train_funcs.py | 4e4419dcd6969838bb147df62c7aa30da36305f0 | [] | no_license | EstherWMaina/kenya-crop-mask | 69e727874ad2305f6a1fc159061f85f632b4f795 | b51c21e73c296b70ffa79ebd57162d23553e99a1 | refs/heads/master | 2023-06-15T09:50:48.156473 | 2021-06-01T19:04:15 | 2021-06-01T19:04:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from argparse import Namespace
import pytorch_lightning as pl
from pytorch_lightning.callbacks import EarlyStopping
def train_model(model: pl.LightningModule, hparams: Namespace) -> pl.LightningModule:
early_stop_callback = EarlyStopping(
monitor="val_loss", min_delta=0.00, patience=hparams.patience, ver... | [
"gabriel.tseng@mail.mcgill.ca"
] | gabriel.tseng@mail.mcgill.ca |
8f99742151ed8f40985dfb4fd6b45b2ef1a0ae0d | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_tight_crop_size256_pad20_jit15/pyr_3s/bce_s001_tv_s0p1_L8/step11_L2345678.py | 621e5a5f3d41ee90f7032450b516ccccb9fcc450 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,834 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
f09b8f651cefa953c0742615d4f262d8e9c98712 | e4ab984c6d27167849f6c6e2d8ced3c0ee167c7c | /Edabit/Say_Hello_to_Guests.py | f28b89fb446b0024e359066dc21b26dc4ffc8239 | [] | no_license | ravalrupalj/BrainTeasers | b3bc2a528edf05ef20291367f538cf214c832bf9 | c3a48453dda29fe016ff89f21f8ee8d0970a3cf3 | refs/heads/master | 2023-02-10T02:09:59.443901 | 2021-01-06T02:03:34 | 2021-01-06T02:03:34 | 255,720,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #Say Hello to Guests
#In this exercise you will have to:
#Take a list of names.
#Add "Hello" to every name.
#Make one big string with all greetings.
#The solution should be one string with a comma in between every "Hello (Name)".
#Each greeting has to be separated with a comma and a space.
#If you're given an empty lis... | [
"63676082+ravalrupalj@users.noreply.github.com"
] | 63676082+ravalrupalj@users.noreply.github.com |
db3ccdd045b929d6f0651b9eddf8263751f07e22 | 2b8f1b067a6602a6520e9846a2df8b83a359623a | /BOJ/단계별로 풀어보기/18_ 그리디 알고리즘/11047.py | 261066b1e4355ae315db35c339efe4c72692125d | [] | no_license | ymink716/PS | 3f9df821a1d4db110cd9d56b09b4c1d756951dd8 | e997ecf5a3bec1d840486b8d90b934ae1cbafe94 | refs/heads/master | 2023-08-18T18:21:45.416083 | 2023-08-16T07:26:18 | 2023-08-16T07:26:18 | 218,685,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | n, k = map(int, input().split())
coins = [int(input()) for _ in range(n)]
count = 0
for i in range(n-1, -1, -1):
if k >= coins[i]:
count += (k // coins[i])
k = k % coins[i]
print(count) | [
"ymink716@gmail.com"
] | ymink716@gmail.com |
f6c6735da757355ba46dec2b33f48b3df3694037 | 45129489b5556a70d3caa6020b0f035de8019a94 | /probn/01.04/27.py | 2b62b314c4fb4d838ef574020e8bdfce27aa20b8 | [] | no_license | trofik00777/EgeInformatics | 83d853b1e8fd1d1a11a9d1f06d809f31e6f986c0 | 60f2587a08d49ff696f50b68fe790e213c710b10 | refs/heads/main | 2023-06-06T13:27:34.627915 | 2021-06-23T20:15:28 | 2021-06-23T20:15:28 | 362,217,172 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | n = int(input())
h1, h2, h_a = 0, 0, 0
is_ch_nech = 0
diff = []
for _ in range(n):
a, b, c = sorted(map(int, input().split()))
h1 += a
h2 += b
h_a += c
if (a + b) % 2:
is_ch_nech += 1
ac, bc = c - a, c - b
k = []
if ac % 2:
k.append(ac)
if bc % 2:... | [
"noreply@github.com"
] | trofik00777.noreply@github.com |
bcadedacfc6c370a4221aaeaa5438df25888438c | 13c2639490aa8cc3ecf891ae3422f0e105dd886e | /api/apps.py | c3118076780bbe0eedb6d061b647017eb6d9fecb | [] | no_license | maratovision/rest_api | d32fdfc8d5d8968d2c8ef77aaed05b25d6fa26a0 | b734f3cf1c626f4043dbaa0fa7a6f41ebf9cdcae | refs/heads/main | 2023-04-08T12:54:40.736337 | 2021-04-08T20:24:15 | 2021-04-08T20:24:15 | 356,038,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from django.apps import AppConfig
class RestConfig(AppConfig):
name = 'api'
| [
"maratovision@gmail.com"
] | maratovision@gmail.com |
f496c9ca6c2d179194b41af953114afe4dbcd9df | 32aa7d3f9a90bafaf0ff89d01fe71e970cbe64a6 | /pytext/torchscript/tensorizer/roberta.py | 7a72df0d120cb39d6dced64be2d96f6fddf2a497 | [
"BSD-3-Clause"
] | permissive | HarounH/pytext | 67135563939723c47076de3c4d213549ba6246b6 | 6dd8fccac0b366782b5319af6236d2d337a25b42 | refs/heads/master | 2020-09-12T21:34:35.749162 | 2019-11-18T23:07:53 | 2019-11-18T23:12:13 | 222,563,726 | 0 | 0 | NOASSERTION | 2019-11-18T23:17:42 | 2019-11-18T23:17:41 | null | UTF-8 | Python | false | false | 3,733 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import List, Optional, Tuple
import torch
from pytext.torchscript.utils import pad_2d, pad_2d_mask
from .bert import ScriptBERTTensorizerBase
class ScriptRoBERTaTensorizer(ScriptBERTTensorizerBase):
@torch... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e7c56cdf9130241750530b46da969e1b3999db5a | 01b7728c138818a43a967b1129c7cf328d1620c2 | /built-in/tickets/create_ticket.py | 2136677d04b3cce6bf50f1f074970c639d8e3b94 | [] | no_license | lliurex/n4d | 62d303947bc4ae0ff20cb1f2217e532ef17091a5 | 09e5f15acbb1ce584a074dc7540959258c165f66 | refs/heads/master | 2023-08-31T23:34:04.859965 | 2023-04-14T11:17:12 | 2023-04-14T11:17:12 | 133,468,639 | 0 | 1 | null | 2023-02-16T08:57:32 | 2018-05-15T06:22:13 | Python | UTF-8 | Python | false | false | 344 | py | import n4d.responses
def create_ticket(self,user):
ret=self.tickets_manager.create_ticket(user)
if ret:
return n4d.responses.build_successful_call_response(True,"Ticket created for user %s"%user)
else:
CREATE_TICKET_ERROR=-5
return n4d.responses.build_failed_call_response(CREATE_TICKET_ERROR,"Failed to cre... | [
"hectorgh@gmail.com"
] | hectorgh@gmail.com |
3a67c44f85c9bc3d0ad12206c20f27c4d045cce5 | 8e123e4d2859cba2ad62ddaa58c7998e8a984e28 | /dojo_survey/urls.py | 6d7962f50d01d48a6beb2d6b249cac64d336a4b3 | [] | no_license | Ktlim83/Sample_Form_Django | c8bc94b114c766222a2d7ce3ff1374705ba79631 | 24f71f1318a5325b81a2a00d6f0c34b3af7b1afd | refs/heads/master | 2022-10-24T15:25:05.932983 | 2020-06-17T00:31:24 | 2020-06-17T00:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | """dojo_survey 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-b... | [
"63866293+Kweef206@users.noreply.github.com"
] | 63866293+Kweef206@users.noreply.github.com |
c2a1ec30d6c85e49248724ac2e7f709f702411e3 | 9df267613fe858c7f8dac85255fdf1f592c8bdf9 | /image/image-open.py | 97f958ba4fadfede8820597af1b5e029d31ce44f | [
"MIT"
] | permissive | martinmcbride/python-imaging-book-examples | 6ad44067dd20919ff6e8af0f482bc245a8338756 | 37e4ccf9b7b2fc3ff75b1fdb9f772de452a843b2 | refs/heads/main | 2023-07-17T12:01:19.851394 | 2021-08-22T20:49:46 | 2021-08-22T20:49:46 | 365,778,031 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Author: Martin McBride
# Created: 2021-07-17
# Copyright (C) 2021, Martin McBride
# License: MIT
# Open an image
from PIL import Image
# Open an image of any supported format
image = Image.open("boat-small.jpg")
image.close()
# Only open PNG or JPEG images
image = Image.open("boat-small.jpg", formats=['PNG', 'JP... | [
"mcbride.martin@gmail.com"
] | mcbride.martin@gmail.com |
b40b07274f7adcd1bfcfcbb81396f652db3b129c | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/1501.circle-and-rectangle-overlapping/1501.circle-and-rectangle-overlapping.py | fa66d6e63ecac5efece6056e67d08b33212fa829 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class Solution:
def checkOverlap(self, radius: int, x_center: int, y_center: int, x1: int, y1: int, x2: int, y2: int) -> bool:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
219dea222cde58156d3ae38cb078aea71abb1c9c | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/contracts/KT1G72fc8TP3C7WgnaMB8uG3ZbDgfkJNBWEr/test_michelson_coding_KT1G72.py | 981ba4b2284f21132fc049c53a0e55ab6f03c747 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 5,342 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.micheline import michelson_to_micheline
from pytezos.michelson.formatter import micheline_to_michelson
class MichelsonCodingTestKT1G72(TestCase):
def setUp(self):
self.maxDiff = None
def test_michelson_parse_code_KT... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
fdd6cd19067be398e034485ffed4ce17161ee1f1 | 5acc20092ee93935594a7e0522924245a43e5531 | /decision_trees/plot_tree_regression.py | d4307a1f717e2be72689a8cbfde8de070109e9ce | [] | no_license | shengchaohua/sklearn-examples | aae2332c4382a57a70c1887777c125e6dc4579d6 | 1dac6a9b5e703185a8da1df7c724022fbd56a9e4 | refs/heads/master | 2020-05-05T01:19:20.037746 | 2019-10-18T08:55:01 | 2019-10-18T08:55:01 | 179,599,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import numpy as np
from sklearn.tree import DecisionTreeRegressor
import matplotlib.pyplot as plt
# Create a random data set
rng = np.random.RandomState(1)
X = np.sort(5 * rng.rand(80, 1), axis=0)
y = np.sin(X).ravel()
y[::5] += 3 * (0.5 - rng.rand(16))
# Fit regression model
regr_1 = DecisionTreeRegressor(max_depth=... | [
"shengchaohua163@163.com"
] | shengchaohua163@163.com |
a67a2f111943e37b2de75f874d927ab0bbffa793 | bf20548c143fdaecc1d8b5746dab142414b27786 | /galaxy-tool-make-otu-table/make_otu_table.py | 22524e4c043b77b7ef423080b9d6b2de61662c31 | [] | no_license | zeromtmu/galaxy-tool-temp-2019 | e9f58956b014e2e4e9260b028c14549f90756f05 | 704c3b850e8ddf5420dc458a0282717ab2268c40 | refs/heads/master | 2021-10-25T05:02:55.328975 | 2019-04-01T11:40:41 | 2019-04-01T11:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,777 | py | #!/usr/bin/python
"""
"""
import sys, os, argparse, string
import glob
from Bio import SeqIO
from subprocess import call, Popen, PIPE
# Retrieve the commandline arguments
parser = argparse.ArgumentParser(description='')
requiredArguments = parser.add_argument_group('required arguments')
requiredArguments.add_argumen... | [
"martenhoogeveen@gmail.com"
] | martenhoogeveen@gmail.com |
ca9258e6924e408fc0176eaaf8cc9f02aa0c7bfa | 3844678a0fb3b1f0838fb04bc57fd93dee6ee631 | /siteApps/ecrisApps/css/ECRIS/script/glassman_set_value.py | fcce39d050b67b9e8f1089766248385506406dbb | [] | no_license | jeonghanlee/Work | daa9295da3af3ff6c3a68daf51fac804dd1942cd | bef817911ea29fe091547f001ac35ac3765d8258 | refs/heads/master | 2022-09-28T03:59:29.435017 | 2022-09-15T18:26:34 | 2022-09-15T18:26:34 | 91,843,357 | 3 | 0 | null | 2019-01-08T16:10:37 | 2017-05-19T20:34:36 | VHDL | UTF-8 | Python | false | false | 468 | py | from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.csstudio.opibuilder.scriptUtil import ConsoleUtil
sys = widget.getMacroValue("SYS")
subsys = widget.getMacroValue("SUBSYS")
dev= widget.getMacroValue("DEV")
par= widget.getMacroValue("PAR")
pv_name=sys + "-" + subsys + ":" + dev + ":" + "v0set"
text_box="... | [
"silee7103@gmail.com"
] | silee7103@gmail.com |
25f96cedec9f44d673e174f26f7009c567e4d75e | 6daaf3cecb19f95265188adc9afc97e640ede23c | /python_design/pythonprogram_design/Ch4/4-2-E55.py | 3183e603b8e24766d0c7c8793cf4ac19b5a5405c | [] | no_license | guoweifeng216/python | 723f1b29610d9f536a061243a64cf68e28a249be | 658de396ba13f80d7cb3ebd3785d32dabe4b611d | refs/heads/master | 2021-01-20T13:11:47.393514 | 2019-12-04T02:23:36 | 2019-12-04T02:23:36 | 90,457,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | def main():
## Sort New England states by land area.
NE = [("Maine", 30840, 1.329), ("Vermont", 9217, .626),
("New Hampshire", 8953, 1.321), ("Massachusetts", 7800, 6.646),
("Connecticut", 4842, 3.59), ("Rhode Island", 1044, 1.05)]
NE.sort(key=lambda state: state[1], reverse=True)
pr... | [
"weifeng.guo@cnexlabs.com"
] | weifeng.guo@cnexlabs.com |
9682c7a2b7ccafa088bfb89d7104ae3684b1c697 | 3691259d4be62b60d8d52f38b36d6a24e5fd4536 | /libcloud/compute/drivers/ktucloud.py | 75a5eef6eafc0c674f4fdb81343b669158f21aba | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chenjiang1985/libcloud | f385fac278777c2bbfedaf440d353c9ad9eb5c69 | 587212da626dfe0e2936737108bcc49d666cf4b4 | refs/heads/master | 2021-07-16T14:29:21.821490 | 2019-11-27T02:20:43 | 2019-11-27T02:20:43 | 222,844,781 | 1 | 2 | Apache-2.0 | 2020-10-27T22:06:36 | 2019-11-20T03:41:31 | Python | UTF-8 | Python | false | false | 3,610 | 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 use ... | [
"jacob.cj@alibaba-inc.com"
] | jacob.cj@alibaba-inc.com |
8b6ba1d95b208bc8087ef5dc27da02b1de14f438 | d7f64c3929642836691f4312cd936dd5647a2d80 | /ast.py | 93adf258d453a2a01bbb6c06fbdbc8a327e71293 | [] | no_license | folkol/imp | bb09528f5e1f2376ecaec6be94cbdee54fd306fe | ac1a085360d0f75f7326a731d51475cca386e923 | refs/heads/master | 2021-01-25T14:33:46.808721 | 2018-03-03T19:18:44 | 2018-03-03T19:18:44 | 123,711,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | py | class ArithmeticExpression(object):
pass
class IntExp(ArithmeticExpression):
def __init__(self, i):
self.i = i
def eval(self, ignored):
return self.i
class Variable(ArithmeticExpression):
def __init__(self, name):
self.name = name
def eval(self, env):
if self.na... | [
"mattias4@kth.se"
] | mattias4@kth.se |
fc0b6f99fcb1be107a0ce98c126476be63146522 | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res_bw/scripts/common/lib/plat-mac/lib-scriptpackages/_builtinsuites/builtin_suite.py | 44040300db7fa8e6ef5204fd93a23f5516945284 | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,654 | py | # 2016.10.11 22:22:11 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/lib-scriptpackages/_builtinSuites/builtin_Suite.py
"""Suite builtin_Suite: Every application supports open, reopen, print, run, and quit
Level 1, version 1
"""
import aetools
import MacOS
_code = 'aevt'
class builtin_Sui... | [
"info@webium.sk"
] | info@webium.sk |
e4fdcb98e8edf08861cc723590e7f6122279a99c | b2ddc8011a4048d810bf4611c53b561293dd9452 | /testcube/settings.py | ec405de5927a291fe6e7c342a2d79d4ab3ae6c6a | [
"MIT"
] | permissive | RainYang0925/testcube | 677f6955d8a12e45b8c53037aad053482ab45f4f | a294c35a781e8495400ae7e04c342b326bc9c8ac | refs/heads/master | 2021-01-25T08:00:51.443311 | 2017-06-07T03:52:25 | 2017-06-07T03:52:25 | 93,696,358 | 1 | 0 | null | 2017-06-08T01:49:25 | 2017-06-08T01:49:25 | null | UTF-8 | Python | false | false | 3,973 | py | """
Django settings for testcube project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"toby.qin@live.com"
] | toby.qin@live.com |
223f66caff5c88c80988b760c208573cadc95bf5 | f7a20374403b55189cc5db6e8fa34d0ba290387c | /modules/process_launch/wizard/__init__.py | 0ef95b703baa1af1000819826388c416f26f5cc9 | [] | no_license | dark-ice/upink_modules | 1a7b5a165cc5e05396c62cf33c261b907c23e33c | c497bf87a39796f1df3877542359b1927bec3a76 | refs/heads/master | 2021-05-01T04:40:16.436666 | 2014-04-12T15:09:31 | 2014-04-12T15:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | __author__ = 'andrey'
import sla
| [
"karbanovich.andrey@gmail.com"
] | karbanovich.andrey@gmail.com |
3245aee47e4ac2131d988470aa907e073849400c | 7bd82b4fa83ca2442e204d3d2a721e3759f44baa | /project_name/admin.py | 590a114047ce337fde50dc3f4f01b9488a88c2c9 | [
"MIT"
] | permissive | rupin/heroku-django-template | 0b43455739772292feda6c5d89fbc0793799e64e | bdb117d73a7c1e85c6c82778784319787f15bacf | refs/heads/master | 2020-06-29T08:24:14.601479 | 2019-10-24T04:52:26 | 2019-10-24T04:52:26 | 200,485,262 | 0 | 0 | null | 2019-08-04T11:38:44 | 2019-08-04T11:38:43 | null | UTF-8 | Python | false | false | 494 | py | from import_export.admin import ImportExportModelAdmin
from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import *
class CustomUserAdmin(UserAdmin):
add_form = ... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
cc9fdcd55675b096709fb144e7d45b92487833b2 | ba2dbc19e899faaa17b994a1224e455a3de5b9ad | /02 Data Science/2. Analysis/1. CSV/3pandas_value_meets_condition.py | d1d763c6537a94766d202df868af4bb5e45b9337 | [] | no_license | xsky21/bigdata2019 | 52d3dc9379a05ba794c53a28284de2168d0fc366 | 19464a6f8862b6e6e3d4e452e0dab85bdd954e40 | refs/heads/master | 2020-04-21T10:56:34.637812 | 2019-04-16T04:16:27 | 2019-04-16T04:16:27 | 169,503,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python3
import pandas as pd
import sys
input_file = sys.argv[1]
output_file = sys.argv[2]
data_frame = pd.read_csv(input_file)
k = data_frame['Cost']
data_frame['Cost'] = data_frame['Cost'].str.strip('$').astype(float)
data_frame_value_meets_condition = data_frame.loc[(data_frame['Supplier Name'].str.... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
f9771dc0b891f65fb7526cfd3c55da8d270457c1 | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Brian Heinold (243) ile Python/p10506.py | bd4165bb54bc3dcc03caa0f97cad5ca92ee31c40 | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 1,237 | py | # coding:iso-8859-9 Türkçe
from random import randint
from math import trunc
# Virgüllerle ayrık 2 ayrı veri giriş yöntemi
a, b = eval (input ('Virgüllerle ayrık 2 sayı girin: '))
if a<b: a,b=b,a # (küçük/büyük) kontrolsüz, biçimsiz sonuçlar üretebiliyor...
print (a, "+", b, "=", a+b)
print (a, "-", b, "=", ... | [
"noreply@github.com"
] | mnihatyavas.noreply@github.com |
0875ce4acd4136ebb9d8128af0cd76afdae5a06e | b4ca78134c296d8e03c39496bcc57369fd5f619b | /kubehub/views/k8s_cluster_view.py | 4305fb86a5f76432fac40d1bc2aa06664faecb27 | [] | no_license | dedicatted/kubehub-backend | 7f4b57033962f1ef8604a2cee0cf55bebd533ec9 | 3b944e462f5366b2dbad55063f325e4aa1b19b0e | refs/heads/master | 2023-02-05T04:44:50.213133 | 2020-06-10T15:02:03 | 2020-06-10T15:02:03 | 236,169,121 | 1 | 1 | null | 2023-01-24T23:19:38 | 2020-01-25T12:45:32 | Python | UTF-8 | Python | false | false | 5,236 | py | from django.http import JsonResponse
from django.forms.models import model_to_dict
from django.views.decorators.csrf import csrf_exempt
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import api_view, permission_classes
from json import loads
from ..models.proxmox_vm_group import ... | [
"noreply@github.com"
] | dedicatted.noreply@github.com |
497314bfc946aa25317f6658dd9d4e8e9f00df30 | 2e3349340d12733892c6208b32ba955b4360d1db | /kunsplash/models/image_urls.py | 24794fa55f8b194bf76145715ce67f9bb4eb67ac | [] | no_license | kkristof200/py_unsplash | 4b8a6d7148dbd738de1caa44a551a30dce3a94eb | 9b4a428580de8e36a77e01b3f27501cbe73d1b83 | refs/heads/main | 2023-01-06T07:36:36.323854 | 2020-11-15T23:01:19 | 2020-11-15T23:01:19 | 313,140,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # ----------------------------------------------------------- class: ImageUrls ----------------------------------------------------------- #
class ImageUrls:
# ------------------------------------------------------------- Init ------------------------------------------------------------- #
def __init__(
... | [
"kovacskristof200@gmail.com"
] | kovacskristof200@gmail.com |
f806d3225b073d92885ee4e935e1b1b677ff49af | b54d2b785d324828decd84941c7dbe6e1d2c5cf0 | /venv/Session10B.py | aadd65c5d21d207830a51fbf3430fbd0b8888195 | [] | no_license | ishantk/GW2019PA1 | 193c30dd930d17dacdd36f3adff20246c17ae6f9 | 120a63b05160a78a2c05c6e9f8561a7c02c6b88e | refs/heads/master | 2020-05-31T06:36:48.814161 | 2019-07-19T06:20:48 | 2019-07-19T06:20:48 | 190,145,890 | 14 | 15 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | class Parent:
def __init__(self, fname, lname):
self.fname = fname
self.lname = lname
print(">> Parent Constructor Executed")
def showDetails(self):
print(">> Hello, ",self.fname, self.lname)
class Child(Parent): # Relationship -> IS-A
def __init__(self, fname, lname, vehic... | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
406b3a67d50ad721e4827ee2929ce4120881cd16 | 133cbe0eeccd42d3e0f77de56a48032a4d8a5dd6 | /astropy_timeseries/io/kepler.py | decaccf371fcb10b59a170b8ac1c2919e8c9186c | [] | no_license | barentsen/astropy-timeseries | 5d1a4c4af8aaa4bd7271d0284d32b7101d4c2b2e | 1a0852efcf37854c4088d2cd3f86b1e38eb71b8f | refs/heads/master | 2020-05-01T02:08:36.803144 | 2019-02-25T16:04:07 | 2019-02-25T16:04:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from astropy.io import registry
from astropy.table import Table
from astropy.time import Time
from ..sampled import TimeSeries
__all__ = ['kepler_fits_reader']
def kepler_fits_reader(filename):
# Parse Kepler FITS file with regular FITS reader
tab = Table.read(filename, format='fits')
for colname in t... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
3672299abcf38d60edba474bdaa16a910e9e2918 | 6413fe58b04ac2a7efe1e56050ad42d0e688adc6 | /tempenv/lib/python3.7/site-packages/plotly/validators/bar/marker/_reversescale.py | 0643f12996715a3baf7cbdc908afd0a358154f87 | [
"MIT"
] | permissive | tytechortz/Denver_temperature | 7f91e0ac649f9584147d59193568f6ec7efe3a77 | 9d9ea31cd7ec003e8431dcbb10a3320be272996d | refs/heads/master | 2022-12-09T06:22:14.963463 | 2019-10-09T16:30:52 | 2019-10-09T16:30:52 | 170,581,559 | 1 | 0 | MIT | 2022-06-21T23:04:21 | 2019-02-13T21:22:53 | Python | UTF-8 | Python | false | false | 476 | py | import _plotly_utils.basevalidators
class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='reversescale', parent_name='bar.marker', **kwargs
):
super(ReversescaleValidator, self).__init__(
plotly_name=plotly_name,
p... | [
"jmswank7@gmail.com"
] | jmswank7@gmail.com |
e7cdbdb4afd52e49b81f4f1fbd4b703332ea426d | 05b0162d5ee7ab74f71ad4f21d5188a8735dfaef | /plugins/action/sg_mapping_deploy_all.py | 0c785231f7c774872d04b7ffa8364529096202eb | [
"MIT"
] | permissive | steinzi/ansible-ise | 567b2e6d04ce3ca6fbdbb6d0f15cd1913a1e215a | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | refs/heads/main | 2023-06-25T15:28:22.252820 | 2021-07-23T14:21:40 | 2021-07-23T14:21:40 | 388,820,896 | 0 | 0 | MIT | 2021-07-23T14:03:07 | 2021-07-23T14:03:06 | null | UTF-8 | Python | false | false | 2,511 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
try:
from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import (
AnsibleArgSpecValidator,
)
except ImportError:
ANSIBLE_UTILS_IS_INST... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
f0191ceb0448c8b6eacede545dd5863c69667797 | cb1d59b57510d222efcfcd37e7e4e919b6746d6e | /python/serialize_and_deserialize_BST.py | b07ff5bbbf5e37248ebf473b88bb3d16d5bafbd1 | [] | no_license | pzmrzy/LeetCode | 416adb7c1066bc7b6870c6616de02bca161ef532 | ef8c9422c481aa3c482933318c785ad28dd7703e | refs/heads/master | 2021-06-05T14:32:33.178558 | 2021-05-17T03:35:49 | 2021-05-17T03:35:49 | 49,551,365 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Codec:
def serialize(self, root):
"""Encodes a tree to a single string.
:type root: TreeNode
:rtype: str
... | [
"pzmrzy@gmail.com"
] | pzmrzy@gmail.com |
a25e58ffc121cdabeac8d4d10d327c475e84b51a | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_LOG/test_c142758.py | 9a8984479db4dc8ffc54e5244552c4f02ae21dfe | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_physical_interface import *
from page_obj.scg.scg_def_vlan_interface import *
from page_obj.scg.scg_def_bridge import *
from page_obj.common.rail import *
... | [
"15501866985@163.com"
] | 15501866985@163.com |
f56c525467ade5e3001eaa43d9726b72abff18cd | 19a7cbef5ccfdba8cfcaab0ab2382faea37b0fc6 | /backend/task_profile/migrations/0001_initial.py | 6253f2bb0e045f5037b01bc5d7cb47da1e50101e | [] | no_license | crowdbotics-apps/test-2-20753 | 6457b3d87abda53344537f0595d92ad0283efda8 | 6f59ab7cef1bd3d31adea98d4ecb74ba8044a180 | refs/heads/master | 2022-12-17T22:50:24.918623 | 2020-09-27T13:14:18 | 2020-09-27T13:14:18 | 299,032,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,518 | py | # Generated by Django 2.2.16 on 2020-09-27 13:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c87ffea0e40fdb83f0cd6960f8e62d33f1362501 | c1b237c351a27da9c32e7193593c568f6ed29f90 | /src/pydae/urisi/vscs/ac3ph4wgfpidq.py | 037837f59e775fd798a7b7eb70000a7997c644e7 | [
"MIT"
] | permissive | pydae/pydae | 046123f95b38c54ff874e264af126020845c6e52 | bdf01490d768fd97dfc540e862359b4a4540a5a0 | refs/heads/master | 2023-07-08T08:35:59.349878 | 2023-07-05T18:15:59 | 2023-07-05T18:15:59 | 238,614,352 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,463 | py |
def ac3ph4wgfpidq(grid,vsc_data):
'''
VSC with 3 phase and 4 wire working in open loop as a grid former.
'''
params_dict = grid.dae['params']
f_list = grid.dae['f']
x_list = grid.dae['x']
g_list = grid.dae['g']
y_list = grid.dae['y']
u_dict = grid.dae['u']
h_dict = g... | [
"jmmauricio6@gmail.com"
] | jmmauricio6@gmail.com |
6f508176b3ca094892486adba3d54a24a15695e5 | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/app/tests/test_tour.py | 8119b0810110005f285b4bacd55f36840f505b6a | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
#
"""
Tests for tour.py
"""
# Test library imports
import pytest
# Local imports
from spyder.app.tour import TourTestWindow
@pytest.fixture
def tour(qtbot):
"Setup the QMainWindow for the tour."
... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
bf43e790286174e15d0347f8e37777dde97aa064 | b932ddc6d1187a795ef3c2b2af0ef5b186c8463f | /clients/views.py | 6522a5f469990285833849200e9da9f4437b00aa | [] | no_license | FlashBanistan/drf-property-management | 77f7ce487878b08298627e08dbaf5b9599768e73 | 016fb3e512dafa901de70e0b75ce0a6f6de38933 | refs/heads/master | 2021-11-16T18:55:48.314808 | 2020-09-09T03:13:36 | 2020-09-09T03:13:36 | 98,379,119 | 1 | 0 | null | 2021-09-22T17:37:36 | 2017-07-26T04:21:59 | Python | UTF-8 | Python | false | false | 979 | py | from rest_framework import viewsets
from rest_framework.response import Response
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import user_passes_test
from .models import Client
from .serializers import ClientSerializer
@method_... | [
"FlashBanistan66@gmail.com"
] | FlashBanistan66@gmail.com |
9d67d310c01d76d57b2c16257c4455828651f443 | 9e87897c988af634c3fddc42113992a65ec006f4 | /sandbox/pytorch/gmm.py | ffdc083af1b3e4f5ad2a1eb80ca3c16f29bd22be | [
"MIT"
] | permissive | luiarthur/cytof5 | 152eb06030785fdff90220f0d0a244a02204c2e9 | 6b4df5e9fd94bfd586e96579b8c618fdf6f913ed | refs/heads/master | 2021-07-20T13:39:45.821597 | 2021-03-02T23:27:35 | 2021-03-02T23:27:35 | 145,253,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # https://www.kaggle.com/aakashns/pytorch-basics-linear-regression-from-scratch
# https://angusturner.github.io/generative_models/2017/11/03/pytorch-gaussian-mixture-model.html
# https://pytorch.org/tutorials/beginner/examples_autograd/two_layer_net_custom_function.html
import torch
import time
import math
from gmm_da... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
a816b6057d723ea0010e5dff9f5f61c79b1e910f | 64e3b825b050d5e2a998e6bb809098e95d16b83c | /basemap_matplotlib_使用案例/003_basemap_绘制中国地图_GitHub上的中国地图数据.py | a2bf5acafa3f99bef68d273e5932c2fdb4c8aa52 | [] | no_license | jackyin68/wuhan_2019-nCoV | a119828c32e7b8479c68b6a48993ab3aeab98805 | 340909ad6d012863452c6a2ffc61e4c3f091d7be | refs/heads/master | 2022-04-10T03:09:59.726502 | 2020-03-17T07:40:42 | 2020-03-17T07:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | # -*- coding:utf-8 -*-
# project_xxx\venv\Scripts python
'''
Author: Felix
WeiXin: AXiaShuBai
Email: xiashubai@gmail.com
Blog: https://blog.csdn.net/u011318077
Date: 2020/1/31 15:31
Desc:
'''
# 首先导入绘图包和地图包
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
# 第一步:设置图片大小及分辨率
plt.figure(figsize=(16... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
1046870de0c05a4a728d3ef2a523485617239418 | b0717aeda1942dd35221e668b5d793077c074169 | /env/lib/python3.7/site-packages/twilio/rest/messaging/v1/__init__.py | 3f1e4ca3869413abfe1a5e499e1c2a2bec60d919 | [
"MIT"
] | permissive | stevehind/sms-steve-server | 3fdeed6de19f29aeaeb587fe7341831036455a25 | 9b0dac19f2e6ccf6452e738017132d93e993870b | refs/heads/master | 2022-12-21T23:34:10.475296 | 2020-01-27T16:24:39 | 2020-01-27T16:24:39 | 231,842,510 | 0 | 0 | MIT | 2022-05-25T05:03:16 | 2020-01-04T23:25:23 | Python | UTF-8 | Python | false | false | 1,615 | py | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base.version import Version
from twilio.rest.messaging.v1.service import ServiceList
from twilio.rest.messaging.v1.session import SessionList
from twilio.rest.messaging.v1.webhook import ... | [
"steve.hind@gmail.com"
] | steve.hind@gmail.com |
b1f20e1c4908222e39f3237763cab46248ac30e6 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/squareroot/83e76566-5f8e-4c9d-bea6-8a3c1519efe1__square_root.py | c1d2251d2f20561b14fcba31b5ee9d1797198cb8 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | """ Comparing different ways of finding square root
1st column number a
2nd col square root from written function
3rd col square root computed by math.sqrt
4th col absolute value of difference between the two estimates
"""
def findsquare(a):
epsilon = 0.0000001
x = a/2.0
while True:
y = (x + a/x) ... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
e010a539cfed9506356780db88110ebfec463503 | 77dd413b4d4bcbe503785d9e16daacfc71febb78 | /salt/roster/flat.py | a562e16741c7cc622f385c18963d105b38e3cbe6 | [
"Apache-2.0"
] | permissive | amarnath/salt | 77bd308f431a8d70c6cf46212cfbb2b319019e63 | 0f458d7df5b9419ba9e8d68961f2ead197025d24 | refs/heads/develop | 2021-01-17T22:42:11.455863 | 2013-08-29T23:00:24 | 2013-08-29T23:00:24 | 12,478,872 | 0 | 2 | null | 2017-07-04T11:33:51 | 2013-08-30T05:36:29 | Python | UTF-8 | Python | false | false | 2,325 | py | '''
Read in the roster from a flat file using the renderer system
'''
# Import python libs
import os
import fnmatch
import re
# Import Salt libs
import salt.loader
from salt.template import compile_template
def targets(tgt, tgt_type='glob', **kwargs):
'''
Return the targets from the flat yaml file, checks op... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
1f052b4b2809f6daa1ec11d1b1292d2d680d53f5 | 4cdb3d1f9d0022284507877928d8f42d2fb0a5ee | /scripts/api/fetch_to_library.py | 6c497bcb402b8ba73fef0d49167a4497575da63e | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | phnmnl/galaxy | 9051eea65cc0885d6b3534f0ce7c4baea3b573e4 | 45a541f5c76c4d328c756b27ff58c9d17c072eeb | refs/heads/dev | 2020-12-28T21:39:38.829279 | 2018-03-22T18:13:01 | 2018-03-22T18:13:01 | 53,574,877 | 2 | 4 | NOASSERTION | 2018-10-09T09:17:06 | 2016-03-10T10:11:26 | Python | UTF-8 | Python | false | false | 1,013 | py | import argparse
import json
import requests
import yaml
def main():
parser = argparse.ArgumentParser(description='Upload a directory into a data library')
parser.add_argument("-u", "--url", dest="url", required=True, help="Galaxy URL")
parser.add_argument("-a", "--api", dest="api_key", required=True, hel... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
f44a44c690da1bfd0c74d3ad297d84b89c3b0f3e | fb19849a37b3fa11908bd1654d62b40b8f6bf227 | /udoy_4.py | 858fa8cec22f6cea676338288e0cc195875192ec | [] | no_license | udoy382/PyCourseBT | 51593b0e9775dd95b1ee7caa911818863837fabf | cff88fe33d7a8b313f0a2dbf4d218160db863b48 | refs/heads/main | 2023-03-25T03:44:09.173235 | 2021-03-25T14:29:19 | 2021-03-25T14:29:19 | 351,466,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # Privacy in Classes
class __Private:
def __init__(self, a, b):
# self.__a = a
self._a = a
self.b = b
print("Private class is created")
def _sum(self):
# return self.__a + self.b
return self._a + self.b
priv = __Private(10, 20)
print(priv._sum())
print(priv._... | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
9f8f92e26f9d76cf09b8fc8dab1a2a0bd6f94e30 | 9fda7a515674a76c80874f9deb63a6c472195711 | /demo/office31/best_classifier/Amazon2Webcam/exp_Temp_FL_IW.py | 1eaf35e0bd93235aaff5a5495d9a14ccaf2abde6 | [
"Apache-2.0"
] | permissive | sangdon/calibration-under-covariateshift | c1f65062ed8a8df108747162b0385b69ad4c8a50 | b1ed33d253a0c2539f8dd910b9ffa63150a14383 | refs/heads/main | 2023-03-23T00:33:27.350912 | 2021-03-19T04:19:20 | 2021-03-19T04:19:20 | 347,825,644 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os, sys
##--------------------------------------------------
from exp_Amazon2Webcam import exp
sys.path.append("../../")
sys.path.append("../../../../../")
## param
from params import Temp_FL_IW_AmazonParamParser as ParamParser
## model
from train_model import train_model as netS
from models.DAForecasters import... | [
"ggdons@gmail.com"
] | ggdons@gmail.com |
d672e788c47c90bccd96eed4786b21e953f8ecf7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02594/s006908287.py | 7d015c45ecdc8404a7f9fdf11589075fde91de6c | [] | 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 | 68 | py | n = int(input())
if n >= 30 :
print("Yes")
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
29eb355dde09276ea14d9335e447f6f8488466b2 | fd4163b9032ea17ea34e7575855a33746c1772c6 | /src/azure-cli/azure/cli/command_modules/ams/tests/latest/test_ams_sp_scenarios.py | 55ca18445ab2a90c6d7f433ac505010554a6f9e2 | [
"MIT"
] | permissive | ebencarek/azure-cli | b1524ed579353ee61feb9a2ec88b134f7252d5cd | ede3aaa83aa4ac8e352e508408cada685f9f8275 | refs/heads/az-cli-private-env | 2021-06-02T04:51:29.831098 | 2020-05-01T00:15:31 | 2020-05-01T00:15:31 | 137,520,442 | 2 | 9 | MIT | 2020-05-01T00:15:33 | 2018-06-15T18:33:10 | Python | UTF-8 | Python | false | false | 2,501 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
52c9a144a025ca9815e448130e5b5ffb0d68d30f | 12a5b72982291ac7c074210afc2c9dfe2c389709 | /online_judges/URI/Data_Structures/1069/code.py | a63f5171a71f9481b3f88fb686a8311ec953073a | [] | no_license | krantirk/Algorithms-and-code-for-competitive-programming. | 9b8c214758024daa246a1203e8f863fc76cfe847 | dcf29bf976024a9d1873eadc192ed59d25db968d | refs/heads/master | 2020-09-22T08:35:19.352751 | 2019-05-21T11:56:39 | 2019-05-21T11:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from Queue import LifoQueue
n = int(raw_input())
for i in xrange(n):
s = raw_input()
fila = LifoQueue()
resposta = 0
for e in s:
if e == '<':
fila.put(1)
elif e == '>' and not fila.empty():
fila.get()
resposta += 1
print resposta
| [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
02c7599b6c6cee78be601d154db584e40d18d55f | 0b0abc06caa25dd269e1855d3cc6c72d34dc436c | /escuela/visitante/migrations/0005_detalle.py | aee59eb1e0833cae2e4229a9d2672e655bc22458 | [] | no_license | escuela2021/escuelagithub | 0130589214681d1ff9da36ffafd8aafb99c9b96d | f35897d1918af3a22d66b163153fc72a927516e8 | refs/heads/master | 2023-09-03T21:36:00.513263 | 2021-11-11T18:38:08 | 2021-11-11T18:38:08 | 427,109,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # Generated by Django 3.2.4 on 2021-11-06 15:31
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('visitante', '0004_tema'),
]
operations = [
migrations.CreateModel(
name=... | [
"gjangoinminutes@gmail.com"
] | gjangoinminutes@gmail.com |
1299544a9cd69674c4b9a5513dbb3441d4e300e5 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/auth/core/ticket.py | 93fce93d029c09cdfef3a405f923fcb67d61ff8a | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 7,563 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
060e3d3c52f7c8946fc6ce8307a4633642f9db33 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/widgets/container.py | 1421529ddfd2d0cd52357c3dcb904f215742c914 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,031 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
87f5c24314b39490e8e74e0b1de8d082502121b4 | fd7720dfc136eb92dbff8cc31e0f83bb8bbced16 | /db/queries.py | 7180c0c49d977ee644b04f66463964b52d135018 | [] | no_license | Villux/golden_goal | d134a1660dd32f0b4d05f720993dd23f8a064faf | f36f4dd0297e2e52c0f990cb3ac134f70fc16780 | refs/heads/master | 2020-03-27T01:53:09.863147 | 2018-11-15T15:40:04 | 2018-11-15T15:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,326 | py | create_elo_table = '''CREATE TABLE elo_table
(id integer PRIMARY KEY AUTOINCREMENT,
date TIMESTAMP,
team text,
elo real,
match_id integer,
season_id INTEGER NOT NULL,
FOREIGN KEY(s... | [
"villej.toiviainen@gmail.com"
] | villej.toiviainen@gmail.com |
ca79e5fd9f9270aabed432701bd25c1f14e6fdc8 | 29881fa0c087f3d3ce0e27fb51309384266203e1 | /price_register/forms.py | 62c7c641dab7ec7fc4fbd7a250098d5eaf789c6f | [] | no_license | aidant842/mymo | 0e5ec2a5c73b6755d994467e4afba10141f449ea | 877e7a38198d1b5effc6c3a63ad12e7166c20a77 | refs/heads/master | 2023-07-17T15:30:21.350974 | 2021-08-24T12:43:18 | 2021-08-24T12:43:18 | 340,033,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | from django import forms
class PropertyRegsiterFilter(forms.Form):
IE_COUNTY_CHOICES = [
(None, 'County'), ('carlow', 'Carlow'), ('cavan', 'Cavan'),
('clare', 'Clare'), ('cork', 'Cork'),
('donegal', 'Donegal'), ('dublin', 'Dublin'),
('galway', 'Galway'), ('kerry', 'Kerry'),
... | [
"aidant842@gmail.com"
] | aidant842@gmail.com |
734e216421a945afd8daef96e60cedf08644860b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_initial.py | d1cef3978d2c3fa4aabf672c80ed94a85932a083 | [
"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 | 352 | py |
#calss header
class _INITIAL():
def __init__(self,):
self.name = "INITIAL"
self.definitions = [u'the first letter of a name, especially when used to represent a name: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
573446d0eb0db0b59632fc96555a27bbc131d18f | bf8870d923adca9877d4b4dacef67f0a454727a8 | /codeforces.com/contest/133/a/pr.py | 63730bff7c0f31101ef62f87f15e0b187a1c0c68 | [] | no_license | artkpv/code-dojo | 6f35a785ee5ef826e0c2188b752134fb197b3082 | 0c9d37841e7fc206a2481e4640e1a024977c04c4 | refs/heads/master | 2023-02-08T22:55:07.393522 | 2023-01-26T16:43:33 | 2023-01-26T16:43:33 | 158,388,327 | 1 | 0 | null | 2023-01-26T08:39:46 | 2018-11-20T12:45:44 | C# | UTF-8 | Python | false | false | 400 | py | #!python3
from collections import deque, Counter
from itertools import combinations, permutations
from math import sqrt
import unittest
def read_int():
return int(input().strip())
def read_int_array():
return [int(i) for i in input().strip().split(' ')]
####################################################... | [
"artyomkarpov@gmail.com"
] | artyomkarpov@gmail.com |
442f658071a199deed2ea39033e67851ce549cd2 | c50e5af8f72de6ef560ee6c0bbfa756087824c96 | /刷题/Leetcode/p974_Subarray_Sums_Divisible_by_K.py | 5515fb9f32761fd960718a1bc96ae72209273fe2 | [] | no_license | binghe2402/learnPython | 5a1beef9d446d8316aaa65f6cc9d8aee59ab4d1c | 2b9e21fe4a8eea0f8826c57287d59f9d8f3c87ce | refs/heads/master | 2022-05-27T03:32:12.750854 | 2022-03-19T08:00:19 | 2022-03-19T08:00:19 | 252,106,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | from typing import List
import collections
'''
前缀和
n*K = sum[i+1:j+1] = prefixSum[j]-prefixSum[i]
(prefixSum[i] - prefixSum[j]) % K == 0
prefixSum[i] % K == prefixSum[j] % K
'''
class Solution:
def subarraysDivByK(self, A: List[int], K: int) -> int:
prefixSum = 0
prefix_cnt = collections.Counte... | [
"binghe2402@hotmail.com"
] | binghe2402@hotmail.com |
bf36f0203b6e49922be55bdbe48c77f4e48f19a7 | 1e3dba48c257b8b17d21690239d51858e5009280 | /exit_server/config/wsgi.py | 2d6f7b7f4d45020bc3a0deda128c173c13eea691 | [] | no_license | JEJU-SAMDASU/EXIT-Server | e3eb87707e5f79b0399dc614507c8d5889a85a4a | ac1b73703c9fff54866c979a620fd22470345b07 | refs/heads/master | 2023-02-12T13:29:18.508066 | 2020-11-23T12:42:18 | 2020-11-23T12:42:18 | 315,288,514 | 0 | 0 | null | 2020-11-24T17:16:29 | 2020-11-23T11:07:47 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for exit_server project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"hanbin8269@gmail.com"
] | hanbin8269@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.