blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e9aa43fbb3cbd1f96f219c92e072a7b3b356403 | 223499de35fa67f487f332b70364ec48604fb67e | /spotify/migrations/0002_auto_20210326_1421.py | 9b8029693ec2d846851e241dfd7445f52ab0f193 | [] | no_license | MichelAtieno/Music_Controller | 961dfa9c7bbcee0df686a1281d622875eca386e4 | 059e65167e73f44f1b505184a2f41dcf209b38ed | refs/heads/master | 2023-04-07T16:47:17.527827 | 2021-04-15T11:50:26 | 2021-04-15T11:50:26 | 350,689,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.1.7 on 2021-03-26 11:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('spotify', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='spotifytoken',
name='access_token',
... | [
"mishqamish@gmail.com"
] | mishqamish@gmail.com |
fb106f607a49363343562465ba2d40b67c5618fe | e174e13114fe96ad2a4eeb596a3d1c564ae212a8 | /Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_06_Code/4375OS_06_23_interpolation.py | 6866265b574971a283ffc99347e4dfdc5debddea | [] | no_license | Kevinqian0501/python_books | c1a7632d66dceb46db439f7cbed86d85370aab42 | 0691e4685af03a296aafb02447e3585db55ce461 | refs/heads/master | 2021-08-30T19:27:03.985464 | 2017-12-19T05:56:31 | 2017-12-19T05:56:31 | 104,145,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | """
Name : 4375OS_06_23_interpolatioin.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate imp... | [
"kevin@Qians-MacBook-Pro.local"
] | kevin@Qians-MacBook-Pro.local |
dc29881f87dbe8e453f4f9473740b0d42fd07bda | 538aec79c8039e500411647bba4a12343976bd03 | /00 - Risorse/PYscripts/05scarica_condensatore.py | d4473036af722c795053b3b7c4825a9576ec40b6 | [] | no_license | Andreo95/Lab3_gruppoBF_primosemestre | 27adff4fa1b1a9c75cf74840c55ee2653d36d07e | 8866ca1200f95bb86712c3b896409aabc395bf81 | refs/heads/master | 2020-01-23T21:43:47.212214 | 2017-02-22T22:35:08 | 2017-02-22T22:35:08 | 74,684,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | import scipy
from scipy.optimize import curve_fit
import pylab
import numpy
## indirizzo e nome file
indirizzo_dati = '/afs/uz.sns.it/user/albord95/Scrivania/'
file_origine = 'data05scarica.txt'
## importiamo i dati
sxa, sya = pylab.loadtxt( r'%s%s' %(indirizzo_dati,file_origine), unpack = True )
## grafici... | [
"andrea.luzio95@gmail.com"
] | andrea.luzio95@gmail.com |
eaa89b0f66c0000c7e6c6f864c2936a2557be3e1 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/eventhub/v20210601preview/list_namespace_keys.py | bd36206585e0c79e0cb1b7dc610f727d641a1a59 | [
"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 | 7,240 | 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
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
e0ed519f505619c172341d75c16b1d767d11c23a | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/event.py | 6769cd2f23ac637c24543600a6c7e0b682fecc30 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Event:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c18b4b2479e2e52a5c6fb4c2daeb6a110dac55d8 | 28ef7c65a5cb1291916c768a0c2468a91770bc12 | /configs/body/2d_kpt_sview_rgb_img/topdown_heatmap/mpii/cpm_mpii_368x368.py | eac8aef24aa08db278f9d31a79fbf5bfe6cd5ab2 | [
"Apache-2.0"
] | permissive | bit-scientist/mmpose | 57464aae1ca87faf5a4669991ae1ea4347e41900 | 9671a12caf63ae5d15a9bebc66a9a2e7a3ce617e | refs/heads/master | 2023-08-03T17:18:27.413286 | 2021-09-29T03:48:37 | 2021-09-29T03:48:37 | 411,549,076 | 0 | 0 | Apache-2.0 | 2021-09-29T06:01:27 | 2021-09-29T06:01:26 | null | UTF-8 | Python | false | false | 3,842 | py | _base_ = ['../../../../_base_/datasets/mpii.py']
log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='PCKh', save_best='PCKh')
optimizer = dict(
type='Adam',
lr=5e-4,
)
op... | [
"noreply@github.com"
] | bit-scientist.noreply@github.com |
d7bb46d9cff6cf7b90cb46af434aa1d1b5d00a2d | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /lib/jnpr/healthbot/swagger/models/groupgroupid_roles.py | ba247dfe7ee49ba923fd077393f66bb21f434add | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 3,796 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 3.1.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Groupgroupi... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
c19c3248b62dd32e7099185d2caa553d438fe77b | 810c479dcaf8a5685a9d5b1a35a79c27f3bf6ba1 | /movil/models.py | 45eba52e1416087f67c8cbbf4daf9fe80b4bd215 | [] | no_license | xangcastle/multipagos | 1e8f9cac9033f964e54ab9b9bddb37763f6f275f | 72d2b1b0f5494dacd413ae87520a902a413197db | refs/heads/master | 2021-01-21T04:55:37.112879 | 2016-06-22T19:42:46 | 2016-06-22T19:42:46 | 50,454,659 | 0 | 1 | null | 2016-03-07T23:31:45 | 2016-01-26T19:49:09 | Python | UTF-8 | Python | false | false | 1,694 | py | from django.db import models
from django.contrib.auth.models import User
from metropolitana.models import get_media_url, Zona, Departamento
from cartera.models import TipoGestion
class UserProfile(models.Model):
'''
esta clase es la utilizada para guardar los perfiles de usuario
'''
user = models.OneT... | [
"cesarabel@johnmay.com.ni"
] | cesarabel@johnmay.com.ni |
ebd2465ef5377d7dbdf889989eb9d1f39004f369 | 50f2587a55fd5364c5bf8e127eeeda52df1388f1 | /ponosen/urls.py | d032e955cd80adb8646dd178f813086a508c0721 | [] | no_license | OpenLuna/luna-api | e6cec2ea3adf63e4275f50802130d917bb840142 | 8f186e02d3b0c8939384dbbcd25bd3a1ccc276ab | refs/heads/master | 2021-01-17T12:52:30.149021 | 2016-06-29T13:20:17 | 2016-06-29T13:20:17 | 56,492,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from django.conf.urls import url
from ponosen.views import *
urlpatterns = [
url(r'^save_email/(?P<email>[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4})', saveEmail),
url(r'^req_recover_password/(?P<email>[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4})', reqRecoverPassword),
url(r'^recover_password/(?P<code>[\w ]+)/', r... | [
"tomazkunst@gmail.com"
] | tomazkunst@gmail.com |
e22e842a4653476d6dcfc969b8723ce9367fd231 | 5bc10755eb843642f272b4d96812e968d1229100 | /backend/TheFoundater/venv/bin/chardetect | 419b4ec56688e56623a40df1766a21e189ddde6c | [] | no_license | AhmedOmi/Rest_APi_Django_React_blog | 5c24f90c8da4fd1654788ceab6ab32571158b3b8 | e8d7fd23e0b27cc7f6ac9289be80db57ca2732ca | refs/heads/master | 2023-04-08T17:33:18.682152 | 2021-04-21T06:12:52 | 2021-04-21T06:12:52 | 360,047,019 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 287 | #!/Users/ahmedomarmiladi/Documents/theFoundater/backend/TheFoundater/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ahmedomarmiledi@gmail.com"
] | ahmedomarmiledi@gmail.com | |
e5d24182fdead8cd02d5319ff10780e76a83b905 | 439386f9097632d44d31d1f599df76ec2820d072 | /常规项目/统一大厅常规checklist/1450/DFQP/src/cases/dfqp_mall.py | e7422d7ee1c2b3362eaa672fd34d80bca04b5559 | [] | no_license | YiFeng0755/testcase | 33693f0940a6497aa40e2e51a0535c9eb6c12b29 | edc19480c3e94cbcbf004aa9d20099ec6d1b9304 | refs/heads/master | 2020-04-28T04:34:28.232022 | 2019-03-11T11:13:25 | 2019-03-11T11:13:25 | 146,287,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
商城
'''
import time
from runcenter.enums import EnumPriority,EnumStatus
from runcenter.testcase import debug_run_all,TestCase
from uilib.mall_page import Mall_Page
from uilib.hall_page import Hall_Page
from common.common import Common
class C31049_DFQP_Mall(TestCase):
... | [
"YoungLiu@boyaa.com"
] | YoungLiu@boyaa.com |
25703d130ef26252405e1f3e2b069e65fe2b38c0 | fe70f357ac403c3ea6f859ae6648ae1aaae989f3 | /apis_v1/documentation_source/organization_follow_doc.py | 67287f52be6a872374bbbef485b943783bf12373 | [
"MIT"
] | permissive | nickelser/WeVoteServer | 313242945b3b556bc602240cc767bc2e41397163 | be2c1367e8263f2cdcf3bd2e27e6cd4a6f35af68 | refs/heads/develop | 2021-01-22T02:24:35.099734 | 2017-05-25T01:16:47 | 2017-05-25T01:16:47 | 92,358,884 | 1 | 0 | null | 2017-05-25T03:00:26 | 2017-05-25T03:00:25 | null | UTF-8 | Python | false | false | 3,606 | py | # apis_v1/documentation_source/organization_follow_doc.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
def organization_follow_doc_template_values(url_root):
"""
Show documentation about organizationFollow
"""
required_query_parameter_list = [
{
'name': 'vo... | [
"dale.mcgrew@wevoteusa.org"
] | dale.mcgrew@wevoteusa.org |
575b7eebc7449a5c217a0894b3470af53972e4bf | 1dad74c0d1b050e4a66026599f9f883d82dabd60 | /practices/pil_merge.py | ffd3726d223788c952f5145f00a3506c2fd90c2a | [] | no_license | DingZiming/python-api-tesing | 0af0f9963f00f6de38e2c7bf7ebe8d85afb9e286 | efd220ce3eca5d2728eea5110d8169c767e3eff2 | refs/heads/master | 2020-04-09T13:27:23.924448 | 2018-12-04T08:43:32 | 2018-12-04T08:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# 技术支持:https://www.jianshu.com/u/69f40328d4f0
# 技术支持 https://china-testing.github.io/
# https://github.com/china-testing/python-api-tesing/blob/master/practices/pil_merge.py
# 项目实战讨论QQ群630011153 144081101
# CreateDate: 2018-12-04
import math
from PIL import Image
column = 2... | [
"x_r_zh@163.com"
] | x_r_zh@163.com |
34fd125ce84e0a0bc0a8960ea874107dbbf28dea | 59afd4e7c4a16838afb11f69ba2f908695c17794 | /atcoder006/c.py | da243ca226b10fdc54e9628581b70bd0187a486f | [] | no_license | mugenen/AtCoder-Solution | ca29437abdcb90177eca6ff59f499235cb046bfc | a25c54a365f41e7a61abc9d4f7a90657c39fdd46 | refs/heads/master | 2021-01-01T17:57:49.228749 | 2013-10-12T15:25:10 | 2013-10-12T15:25:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # -*- coding: utf-8 -*-
import math
N = int(raw_input())
w = int(raw_input())
stack = [[w]]
for i in xrange(N - 1):
w = int(raw_input())
for j in stack:
if j[-1] >= w:
j.append(w)
break
else:
stack.append([w])
stack.sort(lambda x, y: cmp(x[-1], y[-1]))
# pri... | [
"8monkey.theorem@gmail.com"
] | 8monkey.theorem@gmail.com |
fac680958628294515257aa44df4dceddd5d0101 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03378/s856989995.py | f7d9d1fe3966811a933ff601b0728cdcd2a7c4ea | [] | 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 | 197 | py | n,m,x = map(int,input().split())
a=list(map(int,input().split()))
cnt1, cnt2 = 0, 0
for i in range(m):
if 0 <= a[i] < x:
cnt1 += 1
if x < a[i] <= a[-1]:
cnt2 += 1
print(min(cnt1, cnt2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
507054441fa8c8cb81c76f7c51336ccd96dddea1 | f4ccf2f4bd7f806d32ef7121d949af2b9d45f159 | /pytorch/scripts/compile_results_pytorch_bs.py | fbe7d1bd2e0856abeba20a8c837e1a4f57ff3b53 | [] | no_license | shadowkun/deeplearning-benchmark | 77d6089faa89025248c6794f3dcadcb441399dd3 | 85a7854440d74bce2f07b407077c7892f5c7537b | refs/heads/master | 2023-06-19T03:44:40.088762 | 2021-07-13T05:03:54 | 2021-07-13T05:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | # -*- coding: utf-8 -*-
import os
import re
import argparse
import pandas as pd
# You need add your own experiments here so it can be included in the generated csv files
# naming convention
# key: config name
# value: renaming the system so it is easier to read
list_system_single = [
('V100', 'V100 32GB'),
(... | [
"cl.chuanli@gmail.com"
] | cl.chuanli@gmail.com |
a42805b8e555c430f0797491343fdda4821e6518 | 7d0fdfeba2f6b1b2c4c2ac519ce31a2e0adc8d5d | /loan_prediction/__manifest__.py | f3789ad0338609af1dd51b9ccba57270464d51fd | [] | no_license | Inoxevious/malin_erp-custom-addons | 54806cdf2b4083ad3f1833ba2d2ab9a65701e17c | 11951bbad1df51347c2169da93a6ab21b5554e3c | refs/heads/main | 2023-03-27T23:16:57.396133 | 2021-03-29T14:17:28 | 2021-03-29T14:17:28 | 344,091,174 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
{
'name': "loan_prediction",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Company",
'... | [
"mpasiinnocent@gmail.com"
] | mpasiinnocent@gmail.com |
01097f42356c3084810e62f9534dfe02b930e580 | 44cbcfa0f861e92917e5617cf5fce5832c7fda12 | /python/练习/客户端.py | 26938dfaa0223a9678c59db3fa8846e465803893 | [] | no_license | cao-xing/python | 9581d1a3ff901d9cca81d368c3088f2ecae75611 | d260a15b127763c9dc17b4cdb2bb514217373b5e | refs/heads/master | 2021-09-21T03:10:35.460798 | 2018-08-20T01:24:22 | 2018-08-20T01:24:22 | 103,017,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/8/22 15:56
# @Author : Aries
# @Site :
# @File : 客户端.py
# @Software: PyCharm
import socket
import struct
client=socket.socket()
client.connect(("127.0.0.1",8080))
while True:
msg=input("=>>")
if not msg:continue
client.send(msg.encode("... | [
"38168722@qq.com"
] | 38168722@qq.com |
70768a1e403b7f3091fda143abdaa8a45a458a16 | 1fddb12ae9b7db260b9161983a726f1528ece940 | /Part_02/Exercícios_alien_invasion/13_3_and_13_4_Gotes_de_chuva/test.py | b2cb711e049cd969d50595d0e68caac2b6850453 | [] | no_license | davicosta12/python_work | aecf642bbbf2a007fba159f305b4ab21ff00503f | 5df62d3ced25b7e04cda71846fd07862dda39b4c | refs/heads/master | 2023-04-23T09:49:31.923211 | 2021-04-27T00:31:42 | 2021-04-27T00:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | cria_linha_gota(screen, settings, gota, gotas)
def cria_linha_gota(screen, settings, gota, gotas):
if gota.VerificaOndeAgotaEncosta():
gota = Gota(screen, settings)
avaliando_space_x = settings.screen_width - gota.rect.width
number_gotas = int(avaliando_space_x / (2 * gota.rect.width)... | [
"deadspace24@hotmail.com"
] | deadspace24@hotmail.com |
9f13fd2ca6acccc03d1dd7c37d11b283e8d37c1d | d6cb1c056b441fb435b780aac190786b52d18862 | /python/git-github-fork | 4c4d7dc4db2685a0e808047bb3ab7a9a2ddaade2 | [
"MIT"
] | permissive | asottile/scratch | 2e189b7c903b12a4ade35f1148bbb89673df73e3 | 616a6c972d5c3de8698eb41b8c4b74c393f7f397 | refs/heads/main | 2023-08-16T23:51:21.919592 | 2023-08-15T14:18:03 | 2023-08-15T14:18:03 | 30,501,563 | 125 | 13 | MIT | 2023-09-05T13:05:32 | 2015-02-08T18:53:26 | Python | UTF-8 | Python | false | false | 1,633 | #!/usr/bin/env python3
from __future__ import annotations
import argparse
import json
import os
import subprocess
import sys
import urllib.request
from typing import NoReturn
from typing import Sequence
def get_slug() -> str:
cmd = ('git', 'config', 'remote.origin.url')
remote = subprocess.check_output(cmd).... | [
"asottile@umich.edu"
] | asottile@umich.edu | |
e955b2bc0135273d801ec2818256ff087b9a4f86 | ecf6fe6aa87b2c3f041acc30fab11b0cafe3dd46 | /architecture_py/archi_v3_30.py | e3453c90d78789666fb45300a164841e7b14572b | [] | no_license | antgratia/Memoire_code | 73c7806c4576c2e73e00d9a84b1063a2c8f6b559 | 2cdc1339ea24896a6628238f6467edff80f98166 | refs/heads/main | 2023-06-20T16:19:07.041464 | 2021-07-13T11:53:48 | 2021-07-13T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py |
import numpy as np
import os
from keras import backend as K
from tensorflow import keras
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Sequential, Model,load_model
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, C... | [
"antoine.gratia@student.unamur.be"
] | antoine.gratia@student.unamur.be |
0b9dbb64c50ea9248b0265712478b99b9d6c8300 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class1786.py | 610f8fde6dac66e86511229eaf7f8927e6e439db | [
"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 | 4,887 | py | # qubit number=5
# total number=70
import cirq
import qiskit
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 as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
ad88fe2e16a5adbea172806fa7d86ebdfa481342 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.SPA/Mono_16/pdf_to_json_test_Latn.SPA_Mono_16.py | 0be4ae65d67247118673d5d58736e42717295f37 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.SPA/Mono_16/udhr_Latn.SPA_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e69bcc7516979ce09edabc7d718e8eca0a0d794f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/LeetCode_with_solution/605 Can Place Flowers.py | 658816e49cf0bf234c579ca59a7d4561b16531c3 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,311 | py | #!/usr/bin/python3
"""
Suppose you have a long flowerbed in which some of the plots are planted and
some are not. However, flowers cannot be planted in adjacent plots - they would
compete for water and both would die.
Given a flowerbed (represented as an array containing 0 and 1, where 0 means
empty and 1 means not em... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
855148317d46238f6f0a99be9e89688696668f5e | 8845a9557ef7a93a4235bc5aff059110c7c0846c | /Decorators/double_return.py | 7ec2f76092ad954a1a96de46e9c96d749990493c | [] | no_license | Makhanya/PythonMasterClass | c127791337c862bf5c6c8780a1643642d6e99ab6 | 241f48396e59cd20f1a275f15fa6fec3e8676bb6 | refs/heads/master | 2023-07-20T12:44:05.055259 | 2023-07-09T11:20:52 | 2023-07-09T11:20:52 | 86,587,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | '''
@double_return
def add(x, y):
return x + y
add(1, 2) # [3, 3]
@double_return
def greet(name):
return "Hi, I'm " + name
greet("Colt") # ["Hi, I'm Colt", "Hi, I'm Colt"]
'''
from functools import wraps
def double_return(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
val = fn(*args, **kwarg... | [
"makhanya.mzili@gmail.com"
] | makhanya.mzili@gmail.com |
4b3ff2faf3fb9d4006638355b98ca3527feb4f92 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02270/s475630671.py | a7913845a9653b909329e96d11e5910a53bdb908 | [] | 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 | 541 | py | def check(P):
global w, k
t=1
wt=0
for wi in w:
if wt+wi>P:
wt=wi
t+=1
else:
wt+=wi
if t>k:
return False
return True
def search(l, r):
if r-l==1:
return r
else:
m=(l+r)//2
if not check(m):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
33949dd2321b96eef46329e73735f12ac62437d1 | 0dee7cc69ae44e30c5cb372eb17f2e469635056b | /holbertonschool-higher_level_programming/0x01-python-if_else_loops_functions/8-uppercase.py | f2a5b337421ce94b40170a794bc783b5c51ba660 | [] | no_license | HausCloud/Holberton | 00cd25b4a489041e041551ea8f87674d53f43713 | b39c5978698e02b9e746121d6c55d791b73e6d9b | refs/heads/master | 2022-12-13T01:06:18.968047 | 2020-09-05T18:23:00 | 2020-09-05T18:23:00 | 293,129,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/python3
def uppercase(str):
for var in str:
if ord(var) >= 97 and ord(var) <= 122:
var2 = ord(var) - 32
else:
var2 = ord(var)
print("{:c}".format(var2), end="")
else:
print()
| [
"hauscloud.me@gmail.com"
] | hauscloud.me@gmail.com |
d3d5566076b929a309da59234c53596ff385821b | 9c81628bc814841d09eef15ea89068436838836d | /neo4j_graph/farm_template.py | fe6dddb1b37ce564a3e412716d0e4bee82585994 | [] | no_license | glenn-edgar/cloud_scada | dae9ce58ba1a51a36a26dac578a9ed0461398289 | d75006f47e67a17d0d07a107cc549322ae2c30d8 | refs/heads/master | 2021-01-22T11:10:37.136364 | 2017-11-16T01:58:35 | 2017-11-16T01:58:35 | 49,163,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,118 | py | import json
from graph_functions import Build_Configuration
class Construct_Farm():
def __init__( self, bc):
self.bc = bc # Build configuration in graph_functions
def construct_system( self,name=None):
self.bc.construct_node( True,"SYSTEM","SYSTEM",name,{} )
def end_system( self):
... | [
"glenn-edgar@onyxengr.com"
] | glenn-edgar@onyxengr.com |
1055f2b9979f4f089b71c5f85e6a00f7a510e344 | 3032a58254a0d61403cc75476438bf60a119c2ea | /ADB Scripts/GMLAB Scripts/android_test/src/calculator/calculator_sanity.py | eec6d9f5a72faa191feac6c5b7f2e19d74a169fd | [] | no_license | anithamini/useful-info | 1e05528d61609ca4249920e41c88957ed1476fd7 | a393db8d8e727d29d185d75f7920e21770a39e70 | refs/heads/master | 2020-04-14T15:42:06.627213 | 2019-01-03T07:02:16 | 2019-01-03T07:02:16 | 163,935,084 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,601 | py | '''
Created on Jul 24, 2018
@author: hnagella
'''
import os
from time import sleep
from common import constants
LaunchPassCnt=0
LaunchFailCnt=0
KillPassCnt=0
KillFailCnt=0
DegPassCnt=0
DegFailCnt=0
RadPassCnt=0
RadFailCnt=0
i=0
def Validate(s1,s2):
os.system('adb shell dumpsys '+s2+' > calc.txt') #To Co... | [
"akesiboyina@innominds.com"
] | akesiboyina@innominds.com |
52b7c325b80ecf5a7a3c95b1d6d91142d29c6b21 | 3546dd5dbcffc8509440c820faa7cf28080c5df7 | /python35/Lib/site-packages/win32com/demos/connect.py | 992965ee1eaf18af7978dfda4348d9e446dab4e2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | Matchoc/python_env | 55ad609c8270cc6148eda22d37f36709d73b3652 | 859d84d1717a265a4085ad29706b12c19c62d36f | refs/heads/master | 2022-02-13T11:05:51.825544 | 2020-06-05T02:42:08 | 2020-06-05T02:42:08 | 75,793,921 | 0 | 1 | Apache-2.0 | 2018-12-14T07:30:28 | 2016-12-07T03:06:13 | Python | UTF-8 | Python | false | false | 3,741 | py | # Implements _both_ a connectable client, and a connectable server.
#
# Note that we cheat just a little - the Server in this demo is not created
# via Normal COM - this means we can avoid registering the server.
# However, the server _is_ accessed as a COM object - just the creation
# is cheated on - so this is s... | [
"matchoc@hotmail.com"
] | matchoc@hotmail.com |
ca04c2e7dbfd946dbcca42e690b220b9db48573d | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_state_py3.py | 365b0c4a2811f97f28d15960c152de63d4aff27e | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,787 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
84c661b811a5bddefd7c514ef2e30e4620d1de47 | e8ea12b8114b5751c5a840c87da50773f8718039 | /app/aldrovanda/urls.py | b45d5490ca2f5af49698cb183e287331f18ca424 | [] | no_license | juanros13/aldrovanda | 786964fb6896bc60216e0d297696fa1742d3e9f8 | 0fd363a91b4880da5f3d7978d62474eb81ff8307 | refs/heads/master | 2021-01-18T15:21:53.320987 | 2012-10-12T08:56:35 | 2012-10-12T08:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
admin.autodiscover()
urlpatterns = patterns('aldrovanda.views',
# Examples:
# url(r'^$', 'app.views.home', name='home'),
# url(r'^app/',... | [
"juanros13@gmail.com"
] | juanros13@gmail.com |
8fdbc71c124a3d8aa5382ae8e28eb00b798df2e8 | bcb36baf1b3d3eceffba383f72c2b5335cc7048d | /leetcode/198_house_robber/house_robber.py | a4ab696950ba57ffa5c4ef74a78060c3b6c8c914 | [] | no_license | paulghaddad/solve-it | 0aa1400cefab783f4ea757921811668fb2c9477c | e0f72be0fca82bc0378def5499f7158bafff975b | refs/heads/master | 2023-01-24T03:46:24.285793 | 2021-07-06T19:44:29 | 2021-07-06T19:44:29 | 200,406,482 | 2 | 0 | null | 2023-01-06T13:53:43 | 2019-08-03T18:07:53 | Python | UTF-8 | Python | false | false | 744 | py | # Time Cost: O(n)
# Space Cost: O(n)
def rob(nums):
if not nums:
return 0
if len(nums) < 3:
return max(nums)
max_profit_at_each_house = [0] * len(nums)
max_profit_at_each_house[0:2] = nums[0:2]
max_profit_at_each_house[2] = nums[0] + nums[2]
current_max = max(max_profit_at_ea... | [
"paulh16@gmail.com"
] | paulh16@gmail.com |
51478892c734352ed8fe2f42a076a778a0ee4a67 | e70a6500f0ad67ca418c34daaebddba60746525b | /prototypes/regex/tokenizer.py | 62af0f6537149c0c6d5da1dc1a5f9ee6d4be7947 | [
"BSD-3-Clause"
] | permissive | DasIch/editor | e2a2d47c59fa3e12696f0f983c8223c7337d0120 | d906fdae92e1b1856e9b06e51dcd3a092be7b13d | refs/heads/master | 2016-09-01T17:43:15.494985 | 2012-10-17T01:00:33 | 2012-10-17T01:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # coding: utf-8
"""
regex.tokenizer
~~~~~~~~~~~~~~~
:copyright: 2012 by Daniel Neuhäuser
:license: BSD, see LICENSE.rst
"""
from regex.parser import parse
from regex.matcher import Span
class TokenizerError(Exception):
def __init__(self, reason, position):
Exception.__init__(self, reason,... | [
"dasdasich@gmail.com"
] | dasdasich@gmail.com |
f543081460730c27cc2b22cadb1fbb32ce87b65e | f642c054451aa3c87bb18fa63037eea0e6358bda | /geektrust/loan_payments/loan_payments/common/utils.py | 6a7587eee93092587afd23ed034337f7756f4108 | [] | no_license | devendraprasad1984/python | 30f3a539e92be13d893246ad28a42907457a38d5 | 0f1badabba07fbe7f5f792b7e543c0748eecd6c7 | refs/heads/master | 2023-07-21T08:22:45.193077 | 2021-08-27T15:09:28 | 2021-08-27T15:09:28 | 254,812,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | import base64
import json
from uuid import uuid4
from django.core import serializers
from django.core.serializers.json import DjangoJSONEncoder
from django.core.signing import Signer
from django.utils import crypto
from loan_manager import models
from ..common import lookup, field_names
from ..middleware import signe... | [
"devendraprasad1984@gmail.com"
] | devendraprasad1984@gmail.com |
1da209714527b7ebcdecc8cc1e560bd621f8a5e1 | cef6d09715fb354c99987f927ecb961b8bc0e1f5 | /app.py | d7170c77c4db2fcb8e6e231a1ae668fc774b242a | [] | no_license | markoknezevic/Store_app | 745944917fd9f4a5e3f80de82a5cf6151f52856b | d5471fe7c65585e54a70bb3ecf183d558f3a9e52 | refs/heads/master | 2020-07-29T01:11:27.990991 | 2019-09-20T11:05:12 | 2019-09-20T11:05:12 | 209,610,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import os
from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import UserRegister
from resources.item import Item, ItemList
from resources.store import Store, StoreList
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_UR... | [
"you@example.com"
] | you@example.com |
bc9bddb24ed72ad9acd6f71deb360923c4599a63 | 1f4505ed66f4fd68c6d1edf18ecff58362742fad | /algorithm/Tree/922_Sort_Array_By_Parity_II.py | e4ee8de225c664f3d08c609454cb4b414ed66a5a | [
"MIT"
] | permissive | nishitpatel01/Data-Science-Toolbox | 0d9b63a365698cc4a423abd5881cde8f6bf672be | 80dc1310d103c9481feff8792426c550ddcc0a36 | refs/heads/master | 2020-05-19T08:26:40.319321 | 2019-05-04T05:58:48 | 2019-05-04T05:58:48 | 184,921,541 | 1 | 1 | MIT | 2019-05-04T16:53:21 | 2019-05-04T16:53:20 | null | UTF-8 | Python | false | false | 370 | py | class Solution:
def sortArrayByParityII(self, A: List[int]) -> List[int]:
j = 1
for i in range(0, len(A), 2):
# is A[i] is odd, neets to swap it
if A[i] % 2:
# find an even, break loop when even
while A[j] % 2:
j += 2
... | [
"shawlu@github.com"
] | shawlu@github.com |
0ea805e9b47a7af0d679f438dd1e1e660e4420cc | 8c54df511f0d7e08cd63d08a18e38f67c60b43a9 | /Classes/inheritance.py | ddf6e3a4b40fa038e2d459c18f094baccd20ee7a | [] | no_license | dsbrown1331/Python2 | 312dd040423daa99adf9cb3b420b276be0c6294d | 930990a29ee09611ec8dd165acc451fd048265cb | refs/heads/master | 2020-03-24T20:03:20.519261 | 2018-08-10T20:07:35 | 2018-08-10T20:07:35 | 142,957,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | class Member:
"""a member of a school"""
def __init__(self, name, email):
print("Initializing member")
self.name = name
self.email = email
def __str__(self):
member_string = "{}\n{}".format(self.name,
self.email)
return member... | [
"dsbrown1331@gmail.com"
] | dsbrown1331@gmail.com |
5aab043341d3666b02ce0e83ee28d159970da1d9 | 790e797fecb4d57d7af37db512f44b47cd956483 | /migrations/versions/2019_11_07_8f579339eb2d_introduce_broadcast_sent_flag.py | b2b1d373ea5100db49535e001cb7ac1dda39e1a6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | RuslanBitcash/ultimate-poll-bot | fc4d5d9a3e8c5bb0200b7d935e2e049f34d9ee10 | 33bc71b56f79453359043bd0e778cd153d3a83a3 | refs/heads/master | 2021-02-10T07:46:39.453842 | 2020-02-21T11:51:59 | 2020-02-21T11:51:59 | 244,362,504 | 1 | 0 | MIT | 2020-03-02T12:12:34 | 2020-03-02T12:12:33 | null | UTF-8 | Python | false | false | 705 | py | """Introduce broadcast_sent flag
Revision ID: 8f579339eb2d
Revises: c4feb636bb05
Create Date: 2019-11-07 15:48:23.587967
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8f579339eb2d'
down_revision = 'c4feb636bb05'
branch_labels = None
depends_on = None
def u... | [
"arne@twobeer.de"
] | arne@twobeer.de |
205799f30dbd8c4516c374573f461240e4d5045d | 8d90e2eae476ecbe88d46ef2f03fe7ba92cc733b | /Programming Fundamentals with Python/3. List_basics/Ex_list_basics_ex5_faro_shuffle.py | 7a2a16c2468ae995f27471c192a5c4a4a280203b | [] | no_license | KaterinaMutafova/SoftUni | c3f8bae3c2bf7bd4038da010ca03edc412672468 | 7aeef6f25c3479a8d677676cb1d66df20ca0d411 | refs/heads/main | 2023-03-08T10:53:49.748153 | 2021-02-19T15:55:13 | 2021-02-19T15:55:13 | 317,597,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | cards = input().split(" ")
n_shuffles = int(input())
current_shuffle = cards
new_shuffle = []
counter = 0
for j in range(n_shuffles):
for i in range(len(current_shuffle)//2):
second_deck_start_diff = len(current_shuffle)//2
new_shuffle.append(current_shuffle[i])
new_shuffle.appe... | [
"noreply@github.com"
] | KaterinaMutafova.noreply@github.com |
f8d5b9fd542aa6f7c1e83fc3627dceffcf010d27 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03268/s723211580.py | a4e8e5dc56b77ccae356070cd7fdcb06fe135f85 | [] | 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 | 357 | py | n, k = list(map(int, input().split()))
count = 0
i = 1
zero = 0
rem = 0
if k % 2 == 0:
while i <= n:
if i % k == 0:
zero += 1
elif i % int(k/2) == 0:
rem += 1
i += 1
print(zero ** 3 + rem ** 3)
else:
while i <= n :
if i % k == 0:
count += 1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8f9a3b4ca834f94600df59ab404aaa4eebca0837 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/D/drkane/northern_ireland_charity_commission_-_list_of_char.py | 09ef93417596863fff7ab8b79eb7a099eecfba42 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | ###############################################################################
# Scraper for Organisations Previously Known as Charities from the Northern Ireland Charity Commission
# http://www.charitycommissionni.org.uk/Library/ccni_files/List_of_Organisations.htm
####################################################... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
a917f4358c749bf08b054a3886d45d1c55f1eb14 | 8192495d68eb7d1c1e4fe967e447422f8ad4f340 | /tensorflow_datasets/image/inaturalist.py | 10735264e3be107135ff69847b82702595fa9baf | [
"Apache-2.0"
] | permissive | thomwolf/datasets | a3fb69a8da680d2d1d1773e7cdd56c41e7505381 | bc6c38a1bf079ddd030c7750047ee7e4355b813a | refs/heads/master | 2021-04-22T00:40:02.747090 | 2020-03-24T21:44:03 | 2020-03-24T21:48:45 | 249,833,822 | 2 | 0 | Apache-2.0 | 2020-03-24T22:40:55 | 2020-03-24T22:40:54 | null | UTF-8 | Python | false | false | 6,047 | py | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e11ffb8ac23069b6dc4034d4304ba5c6a542a9d5 | 5892ee857d8e3b747d57cdd63a17352e839a6320 | /tiendita/views.py | 8ef27776178a454af8efd1d582d434c0c8ecbdaa | [] | no_license | HugOoOguH/ComicsShop | aac1af3e558def3b14b628e737ad0c09910759b4 | 390fab60a5bf5701f843b9b36ea64f62577e8011 | refs/heads/master | 2020-12-06T21:32:26.379380 | 2016-09-02T19:15:56 | 2016-09-02T19:15:56 | 67,190,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from django.shortcuts import render, get_object_or_404, redirect, HttpResponse
from django.views.generic import View
from .models import Company, Comic
# Create your views here.
class CompaniesListView(View):
def get(self,request):
template_name = "tiendita/list_company.html"
company = Company.objects.all()
co... | [
"hugo-ensc@outlook.com"
] | hugo-ensc@outlook.com |
4587705cf2c8a014bd92ccf961338ae09dcf1002 | 354189955ae91d7fad68e1ca82460f3baf73df1f | /scripts/check_lof_proportions_in_seziure_genes.py | a975361914d8a0b85eda0bad64a742766f1064da | [] | no_license | jeremymcrae/ddd_4k | db85a121836c2f38042e66fb16189db53046c294 | 244b11a041ef2f80320690cf9f39e95aba5f14ec | refs/heads/master | 2021-09-09T04:35:36.150425 | 2018-03-13T22:14:54 | 2018-03-13T22:14:54 | 54,972,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,577 | py | """
Copyright (c) 2015 Genome Research Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | [
"jm33@sanger.ac.uk"
] | jm33@sanger.ac.uk |
ac960c5200912432220c41002eaa00ee8d86af63 | 54e2ff8f41b98e09bf3fcb71446c539ed9524c16 | /03_REST_API/dog_api/test_dog_api.py | 8e825b30549b4d11863972c53be6df31a5253161 | [] | no_license | vamotest/qa_automation | 8b941aeebe17b783655f8391069b54bbfd64607d | 54467b2334b33ae48b5fa5a65cab47fdf03967be | refs/heads/master | 2023-01-07T02:05:07.645726 | 2020-06-04T20:31:10 | 2020-06-04T20:31:10 | 203,171,963 | 4 | 4 | null | 2022-12-26T20:59:48 | 2019-08-19T12:50:08 | Python | UTF-8 | Python | false | false | 2,869 | py | import pytest
class TestDog:
def test_response_status(self, response_status):
"""
Тест проверяет текст успешности ответа сервера для запроса произвольно
выбранного изображения собаки
"""
if response_status.lower() == 'success':
assert f'Response status: {respon... | [
"vamotest@gmail.com"
] | vamotest@gmail.com |
32830090980c8ffd8b67f41cc253baa1245fb01e | 592961def9fe287a31e117649f1ac1e97b085a9b | /venv/lib/python2.7/site-packages/pip/commands/show.py | 5b0445325b5b827950bfb37d05cf589317a32ce6 | [] | no_license | Rushin95/The_Trip_Planner-Lyft_vs_Uber | 62f03a1df8c6a0268089f50f4e80ec3d9b6b9870 | 4eeea4029eb4df047471b92065455a6828232293 | refs/heads/master | 2021-01-19T11:52:47.766019 | 2018-05-03T23:59:58 | 2018-05-03T23:59:58 | 82,268,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,941 | py | from __future__ import absolute_import
from email.parser import FeedParser
import logging
import os
from pip.basecommand import Command
from pip.status_codes import SUCCESS, ERROR
from pip._vendor import pkg_resources
from pip._vendor.packaging.utils import canonicalize_name
logger = logging.getLogger(__name__)
c... | [
"juancpinzone@hotmail.com"
] | juancpinzone@hotmail.com |
ea6a0f52b27ba8519529b66cee6fe8c2d89b917f | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /test/test_block_name.py | de8f97ef2f193b97e8727c0ce33e30a4bb88cf00 | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 1,048 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
1a0d0d8a72a7a500a34f2ff5bb7c6bd7caa8fb72 | ab621c65fc91f5194c4032d68e750efaa5f85682 | /pabi_asset_management/models/account_invoice.py | 44523958b5d29300884b805342d127aa926086e3 | [] | no_license | pabi2/pb2_addons | a1ca010002849b125dd89bd3d60a54cd9b9cdeef | e8c21082c187f4639373b29a7a0905d069d770f2 | refs/heads/master | 2021-06-04T19:38:53.048882 | 2020-11-25T03:18:24 | 2020-11-25T03:18:24 | 95,765,121 | 6 | 15 | null | 2022-10-06T04:28:27 | 2017-06-29T10:08:49 | Python | UTF-8 | Python | false | false | 1,553 | py | # -*- coding: utf-8 -*-
from openerp import models, api, fields, _
from openerp.exceptions import ValidationError
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
asset_adjust_id = fields.Many2one(
'account.asset.adjust',
string='Asset Adjustment',
readonly=True,
... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
581fe975ef4f6f1b56c548e29459448b6bc675e0 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124145056.py | 36e7fa7552b6dca3ae2bded184debbc336fd977d | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
from wagtail.admin.edit_handlers import FieldPanel, InlinePanel, from wagtail.ImageChooserPanel
# Create your models here.
class FormField(AbstractEmailForm):
page = ParentalKey(
'NewsPage',
on_delete=models.CA... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
47b2b4cd2c7ec2ed353cd1389f68fd0d291375dc | 1d3f531435a5c60b7676c4321d360722d34c70a4 | /ksplit/tests/test_kmers.py | 004412b7574ffac321bda8c3ca41c9549002a293 | [] | no_license | t-l-g/ksplit | 24bb425cdce219b294a571da82799ebbc675a290 | 3b0467b255d6defd19f410918d162b7d713c5a51 | refs/heads/master | 2023-01-16T06:49:14.325536 | 2020-11-26T10:32:26 | 2020-11-26T10:32:26 | 306,830,063 | 0 | 0 | null | 2020-11-26T10:32:27 | 2020-10-24T07:30:26 | Python | UTF-8 | Python | false | false | 3,892 | py | from hypothesis import given, note, strategies as st
import pyximport
import numpy as np
pyximport.install(setup_args={
'include_dirs': np.get_include()
})
from ksplit import kmers
def test_kmers():
testing = 'ATTTAACATGAGATAACATGCATGCATGCATTGCGGCTCAGCTAGTCAGCTAGCTAGCTAGCTACGATCGATCGTAGCATCGATCGATCGATCGAT... | [
"luis@luispedro.org"
] | luis@luispedro.org |
d04dda139b730895c0e6988185dfb7e479281c01 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/Python/aguy/fractiles.py | e02280bdf711f12cc673dc333fc9a4f39d8323b8 | [] | 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 | 544 | py | def f(k, c, tiles):
ans = 0
for i in tiles:
ans += i
ans *= k
if len(tiles) == c:
return ans // k + 1
return ans * pow(k, c - len(tiles) - 1) + 1
def ans(k,c,s):
if c * s < k:
return "IMPOSSIBLE"
current = []
ans = []
for i in range(k):
current.append(i)
if len(current) == c:
ans.append(f(k,c,cu... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
66eab3b2572e597e0882942e6953d4d89cd3b923 | 99745d24f3adf3031c146d2a57039527f5a9b51c | /hropapi/models.py | 29318fca028bdbc840b218528e409ada69887557 | [] | no_license | Tartar-san/antihrop | f1076fdab11af473217ca861cd5e577a45aae81c | 5a4b0d9204beb1fd2ce99b3d3f42c07060b2eb76 | refs/heads/master | 2020-12-08T23:48:59.363173 | 2016-08-22T16:53:11 | 2016-08-22T16:53:11 | 66,143,162 | 0 | 0 | null | 2016-08-20T23:17:25 | 2016-08-20T11:24:48 | JavaScript | UTF-8 | Python | false | false | 2,064 | py | from __future__ import unicode_literals
import time
import random
from random_words import RandomWords
# Create your models here.
from django.contrib.auth.models import User
from django.db import models
from django.utils import timezone
from django.db.models.signals import post_save
from django.dispatch import rece... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
6313d711dc7d48738f6bc4acf1966ca2e94a348a | 6929a33a7259dad9b45192ca088a492085ed2953 | /solutions/0369-plus-one-linked-list/plus-one-linked-list.py | f2bdf2be627faddbb243dc48c20d4e041cae2605 | [] | no_license | moqi112358/leetcode | 70366d29c474d19c43180fd4c282cc02c890af03 | fab9433ff7f66d00023e3af271cf309b2d481722 | refs/heads/master | 2022-12-10T01:46:14.799231 | 2021-01-14T05:00:09 | 2021-01-14T05:00:09 | 218,163,960 | 3 | 0 | null | 2022-07-06T20:26:38 | 2019-10-28T23:26:47 | Python | UTF-8 | Python | false | false | 1,338 | py | # Given a non-negative integer represented as a linked list of digits, plus one to the integer.
#
# The digits are stored such that the most significant digit is at the head of the list.
#
#
# Example 1:
# Input: head = [1,2,3]
# Output: [1,2,4]
# Example 2:
# Input: head = [0]
# Output: [1]
#
#
# Constraints:
#
#
... | [
"983028670@qq.com"
] | 983028670@qq.com |
eb94c351a5475c49b2a69d6f6a0188c182563a2c | 295eb752d0ea8d6f9c3f0646f9d6b07a707da700 | /Python/SpeechRecognition/asr_nlp_main_sr_eval/Evaluation_Data_III/evaluate_III.py | ce834454888bd170114f87fed6fab5cfc5e0f7ab | [] | no_license | GiulliMo/Master_Soft | f4f836c0f2a9e105d809e68f9064546ab08fbc0a | ae168a90bab75acb4753c87b9d24af3e0752d189 | refs/heads/master | 2022-07-27T11:03:00.356237 | 2020-10-20T14:39:12 | 2020-10-20T14:39:12 | 241,363,290 | 0 | 0 | null | 2022-07-06T20:53:41 | 2020-02-18T13:07:44 | HTML | UTF-8 | Python | false | false | 6,072 | py | ## Author: Hannes Dittmann
## Version: 1.0
## Email: hannes.dittmann@stud.hshl.de / hannes.dittmann@t-online.de
## Status: Fertig
## Kommentar: -Programm zum Auswerten von Hypothesen mit ausgewählten ASR System
## - ground-truth und hypothese wird benötigt
## - form : siehe datei
## - H... | [
"hannes.dittmann@t-online.de"
] | hannes.dittmann@t-online.de |
d6f66c713de1d552092f12111e42da8300b3e978 | f786ed57a3b3a689d87e81eef53a94b7da2c82e7 | /medical_appointment/appointment/tests/selectors/test_appointment_assign_by_id.py | 8751717f716147b1fa6f1b542a1da0b9dd778a93 | [] | no_license | italoantonio0909/medical_appointment | 4c2381285016f2e85dd48554551d99912b029cca | 4eaadb8e7e8455ea1307c1a06e66cde0ef9b79d2 | refs/heads/master | 2023-04-22T07:24:00.613621 | 2021-05-14T06:17:18 | 2021-05-14T06:17:18 | 351,559,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,004 | py | import datetime
from datetime import timedelta
from unittest.mock import patch
from django.core.exceptions import ValidationError
from django.test import TestCase
from medical_appointment.appointment.models import AppointmentAssign, Specialty
from medical_appointment.appointment.selectors import appointment_assign_by_... | [
"italobarzola18@gmail.com"
] | italobarzola18@gmail.com |
f2d1801896babaa067accf4c22c61a4788603700 | 5f0590f00e27822dde2fba0e57edbc783d763c64 | /extract_csv_column.py | 8e8bc4e9421310cd5ba856a466259abb3a93c4a5 | [
"MIT"
] | permissive | YazzyYaz/ethereum-etl | 188720869e66ca618fe54fcd8c245a5e390ea1c0 | eb69307ddb7b09733de2c71f17a4f9f0191f9049 | refs/heads/master | 2023-04-07T09:14:26.865159 | 2018-11-14T06:10:12 | 2018-11-14T06:10:12 | 157,900,047 | 0 | 1 | MIT | 2023-03-28T18:07:32 | 2018-11-16T17:26:43 | Python | UTF-8 | Python | false | false | 1,580 | py | # MIT License
#
# Copyright (c) 2018 Evgeny Medvedev, evge.medvedev@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | [
"medvedev1088@gmail.com"
] | medvedev1088@gmail.com |
19533f4c1dda80cc45133cbfd33ea2b59e8996d6 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/pinakighosh/pincode2.py | 1bba96d5e48206ba2d839677d738d653de81693d | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,726 | py | import scraperwiki
import mechanize
import re
import lxml.html
import sys
import requests
def get_start():
url="http://www.indiapost.gov.in/Pin/"
br = mechanize.Browser()
response = br.open(url)
response = br.response() # this is a copy of response
headers = response.info() # currently, this is ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
15927dcf24025279907d2e741868b61cee115051 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC113.py | 3d630e9b6df273b3ce63a9772869e196fbbddb71 | [
"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 | 2,588 | py | # qubit number=3
# total number=11
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2d2395a4ac28c64b53583e2fe39ad243adc5160f | 2db1a0038d26ccb6adc572b536cb5cd401fd7498 | /tryTen/Lib/encodings/iso2022_jp_2004.py | 3c1eaafdaa145af7e2fa8dab5dc18e48af4c3667 | [] | no_license | syurk/labpin | e795c557e7d7bcd4ff449cb9a3de32959a8c4968 | 04070dd5ce6c0a32c9ed03765f4f2e39039db411 | refs/heads/master | 2022-12-12T02:23:54.975797 | 2018-11-29T16:03:26 | 2018-11-29T16:03:26 | 159,692,630 | 0 | 1 | null | 2022-11-19T12:15:55 | 2018-11-29T16:04:20 | Python | UTF-8 | Python | false | false | 1,074 | py | #
# iso2022_jp_2004.py: Python Unicode Codec for ISO2022_JP_2004
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_iso2022, codecs
import _multibytecodec as mbc
codec = _codecs_iso2022.getcodec('iso2022_jp_2004')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class ... | [
"syurk738@students.bju.edu"
] | syurk738@students.bju.edu |
a9488eccd4dbce8dcc9a434b97e18a37d6b2374c | fe9b3bbffe50c7cc6c61f08176cc12ede5b6a90e | /solutions/2039. The Time When the Network Becomes Idle/2039.py | 356df5e55b05a74b32c6ed1bbf5981746b22ee95 | [] | no_license | freephys/LeetCode-6 | 56778d3d5d37b5c3370295c5ada30f4a45fa76f6 | bbabe6ace73b0176a2210dc0a20cc2d8e5566122 | refs/heads/main | 2023-09-03T19:21:16.985774 | 2021-10-19T06:01:34 | 2021-10-19T06:01:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | class Solution:
def networkBecomesIdle(self, edges: List[List[int]], patience: List[int]) -> int:
n = len(patience)
ans = 0
dist = [inf] * n # dist[i] := dist(i, 0)
graph = [[] for _ in range(n)]
for u, v in edges:
graph[u].append(v)
graph[v].append(u)
q = deque([0])
dist[0... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
a52aba24ee0c24c2f845c80c62c29ce3528659b8 | 91fe8f479fa921fa84111d19222a5c6aa6eff030 | /basis/progr-py/Gui/Tour/grid2_same.py | 6eab34889e18fd70042bc8b849e9ada203ed8582 | [] | no_license | romanticair/python | 2055c9cdaa46894c9788d5797643283786ed46dd | 6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141 | refs/heads/master | 2022-11-03T17:17:17.608786 | 2019-07-05T07:07:29 | 2019-07-05T07:07:29 | 195,356,190 | 0 | 1 | null | 2022-10-14T20:51:14 | 2019-07-05T07:00:33 | Python | UTF-8 | Python | false | false | 553 | py | """
build pack and grid forms on different frames in same window;
can't grid and pack in same parent container (e.g., root window)
but can mix in same window if done in different parent frames;
"""
from tkinter import *
from grid2 import gridbox, packbox
root = Tk()
Label(root, text='Grid:').pack()
frm = Frame(root, b... | [
"1024519570@qq.com"
] | 1024519570@qq.com |
a6f1e1eb27d29d840568bd9dee440e51a8b78d9f | 9135a1c5bcd20f77971085496d9e966d892fb7e9 | /reports/python/jobRunsReport/jobRunsReport.py | 1c20786a601006a31a3fbc95bf8f14abc0b6b594 | [
"Apache-2.0"
] | permissive | bseltz-cohesity/scripts | cc54b2b3534175562b0d9cfba85bd63aa5ca2346 | 53c4b057bb4f41ae079fc8236caacf13fd35c10e | refs/heads/master | 2023-08-23T13:13:12.169724 | 2023-08-22T13:21:22 | 2023-08-22T13:21:22 | 142,414,700 | 83 | 44 | Apache-2.0 | 2023-08-24T11:42:22 | 2018-07-26T08:50:47 | PowerShell | UTF-8 | Python | false | false | 4,679 | py | #!/usr/bin/env python
"""job runs report"""
# import pyhesity wrapper module
from pyhesity import *
from datetime import datetime
import codecs
# command line arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, required=True) # cluster to connect to
parser... | [
"bseltzer@cohesity.com"
] | bseltzer@cohesity.com |
2b6c535bcc9b8cbd7dad3ca4768e3cf8edf3e7b6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03455/s099249586.py | ed7bae5ea3248483cf2e487ab2a7bf12c75b9a63 | [] | 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 | 188 | py | import sys
input_list = sys.stdin
for num in input_list:
num_list = num.split(' ')
a = int(num_list[0]) % 2
b = int(num_list[1]) % 2
ans = 'Even'
if a * b == 1:
ans = 'Odd'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
04876ea4060849c387eef743dca95dec82adb55c | 0b8ae7a9bc185b76c64cb353808da7713c4b8ecd | /baekjoon/[Bruteforce]/연습/[Brute_Force]*스타트와 링크.py | 12fc86f41061398ecda8721884d633c54fd7a0fa | [] | no_license | snowedev/baekjoon-code.plus | b5f468b99fa70b00521657122f46cef575cabb9b | 2f983a9c559e803f6dcdeb549aa8d304ff5a664c | refs/heads/master | 2023-04-05T22:22:01.652744 | 2021-04-14T16:11:57 | 2021-04-14T16:11:57 | 357,951,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | # 스타트와 링크 # B_14889
# N제한(4<=N<=20)
# N명중에 N/2명을 골라서 두 팀으로 나누는 경우의수: N C N/2 -> 20 C 10
# 경우의 수 백만개 이하
"""
1. 백트래킹으로 푸는 방법 (백트래킹: 재귀함수를 이용한 브루트포스 방법.)
* 요구하는 답을 도출할 수 없을 때 불필요한 경우의 수를 만들지 않음으로써(재귀호출중단)
처리속도를 월등히 빨라지게
"""
def go(index, first, second):
if index == n:
if len(first) != n//2:
return... | [
"wurijang@gmail.com"
] | wurijang@gmail.com |
ca4654278aafa08267bc95a5e8282e44e8ff23d0 | a44557a162d42edfce3c51d3cf27363342591f96 | /server/client.py | cf5d50bfb0557df17486b2ccecb1ed8b91276448 | [] | no_license | Jeffrey-Ede/simple-webserver | 57d9370e630a5949106bd55d32120b898b848543 | 0da4de4567f6e46487ce70af1936e116b7c67339 | refs/heads/master | 2020-07-09T14:59:04.047471 | 2019-08-23T13:26:13 | 2019-08-23T13:26:13 | 204,003,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | from socketIO_client import SocketIO
import zlib
import numpy as np
from scipy.misc import imread
import cv2
from helpers import *
model_dir = "//flexo.ads.warwick.ac.uk/Shared41/Microscopy/Jeffrey-Ede/models/stem-random-walk-nin-20-54/"
addr = model_dir + "truth-975000.tif"
inputs = imread(addr, mode='... | [
"noreply@github.com"
] | Jeffrey-Ede.noreply@github.com |
bd0dfb49776e3f17cd52e506a9c1a66a185ca7dd | ab6cfc2aedad3de7a04efae4a6105dc893958b9e | /hivwholeseq/cross_sectional/clean_reference_alignment.py | 0cba991807859d03aeaa484bd25f53dd8312ead1 | [
"MIT"
] | permissive | neherlab/hivwholeseq | 158c0ce590bc67d1d36042c71b8b0afa3e8d8abf | 978ce4060362e4973f92b122ed5340a5314d7844 | refs/heads/master | 2021-01-15T16:48:15.769316 | 2015-09-04T08:33:52 | 2015-09-04T08:33:52 | 49,801,765 | 4 | 3 | null | 2016-01-17T03:43:46 | 2016-01-17T03:43:44 | null | UTF-8 | Python | false | false | 2,847 | py | # vim: fdm=marker
'''
author: Fabio Zanini
date: 15/01/15
content: Clean a reference alignment from LANL sequences from problematic seqs.
'''
# Modules
import os
import argparse
from collections import defaultdict
from Bio import AlignIO
from hivwholeseq.cross_sectional.filenames import (
get_raw_LANL... | [
"fabio.zanini@tuebingen.mpg.de"
] | fabio.zanini@tuebingen.mpg.de |
78ef491bb7f375603e96284d1a56004c0d3f2715 | 207bc9a3e7a9f035353963876757745ddbcfc384 | /knet/tests/accounts/test_oauth.py | 9692e639f90aae1d3d13c51afdf526b41f76f4e3 | [] | no_license | oddbird/knet | e6322cbca0350dc78d2a4e824a84d81f42960878 | 30e41c37dd608cbc8f1bd794cb30c7d935cf6723 | refs/heads/master | 2021-01-25T07:18:53.337897 | 2013-07-27T20:19:33 | 2013-07-27T20:19:33 | 9,507,222 | 0 | 0 | null | 2013-07-27T20:43:07 | 2013-04-17T20:46:55 | Python | UTF-8 | Python | false | false | 726 | py | from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from pretend import stub
from knet.accounts.oauth import get_provider
class FakeProvider(stub):
pass
@override_settings(
BASE_URL = 'http://example.com',
OAUTH_PROVIDER='knet.tests.accounts.test_oauth.FakeProvi... | [
"carl@oddbird.net"
] | carl@oddbird.net |
f750b7d131900809440e3ecca557b7f423d4ec30 | 8c8ed3e1046655beddc768672ca45e16a7a1c15e | /skbm/generate_dataset.py | 25290c34ff04c022b713a1c9b9794723a79d5c10 | [] | no_license | DSABenchmark/DSAB | e44759eb31d369d3a9a63505588ee14481c60dfe | 7af890230add7ac3039c15061eb130f86b4de3b8 | refs/heads/master | 2020-04-03T11:23:04.675308 | 2018-12-05T12:26:15 | 2018-12-05T12:26:15 | 155,220,126 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | import sys
import random
from scipy.stats import powerlaw
import math
import os
'''
input:
dir - directory of the dataset
distributionName - dataset type(zipf/powerlaw/weibull)
bytePerStr - bytes number per item
totalNum - total number in dataset
distinctNum - distinct number in dataset
paramet... | [
"huangyc96@gmail.com"
] | huangyc96@gmail.com |
338db2c5671740e8cf914067ab343ce6f98b8c7e | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/strongh_storm-drpc-client-py/storm-drpc-client-py-master/storm/drpc.py | f2e2a2c86713ccfb33f3c443049113a066b9410e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,017 | py | from thrift.transport import TSocket
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
from repoze.lru import lru_cache
from DistributedRPC import Client
from sasl_client_transport import SaslClientTransport
import json
STORM_SASL_SERVICE = 'storm_thrift_server'
class DRPCClient:
... | [
"659338505@qq.com"
] | 659338505@qq.com |
8fc0f772e77af4b547b18176adc8fbf3a50a97c7 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/alembic/ddl/oracle.py | 554ac221ab786d06459486e4572bad48841e3978 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 2,773 | py | from sqlalchemy.ext.compiler import compiles
from .impl import DefaultImpl
from .base import alter_table, AddColumn, ColumnName, \
format_column_name, ColumnNullable, \
format_server_default, ColumnDefault, format_type, ColumnType
class OracleImpl(DefaultImpl):
__dialect__ = 'oracle'
transa... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
0b7b856a5e1e08c1b8295026c552fa5de82b3e2f | 7925e4ff3950cd94275779a51f80d9f2078fe132 | /algorithm_python/로또_만들기(lotto).py | 51ff56e714528d74cb1377fd968769821ffee639 | [] | no_license | Covee/Algorithm_Prac_Python | 6e7336fbb62cd1e2b3b0215d34618481540983c4 | 42ea338a96949ac8b420e83320610a435b2cee59 | refs/heads/master | 2020-03-23T07:35:33.693367 | 2018-08-11T17:27:37 | 2018-08-11T17:27:37 | 141,280,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | # 백준 / 10947
# 정답 비율: 3.83%
# 문제: 로또 만들기
# 1보다 크거나 같고, 45보다 작거나 같은 수 6개를 출력한다. 채점 프로그램은 랜덤으로 이용해서 '수 6개와, 보너스 숫자 하나'를 구한다.
# 채점 프로그램이 구한 숫자와 6개와 번호가 모두 일치하면 100점을 받는다.
# 5개의 번호가 일치하고, 일치하지 않는 숫자가 보너스 숫자와 일치하면 80점을 받는다.
# 5개의 번호가 일치하면 60점을 받는다. 4개의 번호가 일치하면 40점을 받는다. 3개의 번호가 일치하면 20점을 받는다.
# 그 외의 경우에는 틀렸습니다를 받는다.
impo... | [
"uniqtop91@gmail.com"
] | uniqtop91@gmail.com |
ee6653a72b02fd21634a17952ea141bfba570c33 | b11e5545ae0de900a0bac981555d2584fbc719ce | /0x0A-python-inheritance/8-rectangle.py | 8ae5581173d3061e4eaaea314725fd1364cbf5cf | [] | no_license | AndresCallejasG/holbertonschool-higher_level_programming | 6fa844002dad56545bc500c839e88cd5c71033f5 | 062fe54721ef0fb3c02da1a7d9b2327496b0838a | refs/heads/master | 2022-12-19T00:23:09.277883 | 2020-09-28T20:19:18 | 2020-09-28T20:19:18 | 259,443,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/python3
"""Inheritance project
"""
BaseGeometry = __import__("7-base_geometry").BaseGeometry
class Rectangle(BaseGeometry):
""" Rectangle class, inherts from BaseGeometry
"""
def __init__(self, width, height):
"""init method
Arguments:
width {[type]} -- Rectangle... | [
"andres.callejasg@gmail.com"
] | andres.callejasg@gmail.com |
af30ff3d5dbe26b5a0df0ded652657eec22ba988 | 8b606215d26314c046b24f779cad1d29679de73f | /GroundSegment/Telemetry/migrations/0016_auto_20190214_2113.py | b9d30f70f9242d23cc76484e7c700d502575f117 | [] | no_license | unlamgidsa/unlam_gs_backend | b5a76660458fd43557602840eb24f838aabc4ce2 | 6284a5d55b8fe3b5b7c8f3a8def505409f7ea735 | refs/heads/master | 2023-07-20T10:30:30.618320 | 2022-12-29T21:55:51 | 2022-12-29T21:55:51 | 244,700,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | # Generated by Django 2.0.7 on 2019-02-14 21:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Telemetry', '0015_auto_20190214_1900'),
]
operations = [
migrations.AddField(
model_name='bltlm... | [
"pablosoligo1976@gmail.com"
] | pablosoligo1976@gmail.com |
59fe96776dc25c7660fe1ba570f9db92e694dcf2 | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /SW_expert/sw_1244_최대상금.py | c123a5bcc2adb0fe196f3bb4e52211faaabb1755 | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import sys
sys.stdin = open('./input/input_1244.txt','r')
def getMostMony(k):
global ans
if k == n:
ans = max(int(''.join(arr)), ans)
return
for i in range(N-1):
for j in range(i+1, N):
arr[i], arr[j] = arr[j] , arr[i]
middle = int(''.join(arr))
i... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
efad72c2ee262764185c9fb6083bb3c7e7e5862d | ea00f60f8f690536ad27d4a75586ae5d74a23e13 | /Book/Ch05/Ch5_3.py | bec54b7fac9e42a5701b704baabfa3f3b644c8e1 | [] | no_license | ricky4235/Python | 3603a085567d1554358a52c8ad47be70fdb463e9 | fdeecadc7e156f517cb4ec2eff2bb28423dc1d79 | refs/heads/master | 2023-07-20T06:17:18.443342 | 2020-12-23T04:27:53 | 2020-12-23T04:27:53 | 221,387,521 | 2 | 2 | null | 2023-07-06T21:21:28 | 2019-11-13T06:22:25 | Jupyter Notebook | UTF-8 | Python | false | false | 207 | py | from bs4 import BeautifulSoup
soup = BeautifulSoup("<b class='score'>Joe</b>", "lxml")
tag = soup.b
tag.name = "p"
tag["class"] = "question"
tag["id"] = "name"
print(tag)
del tag["class"]
print(tag) | [
"ricky1229x@gmail.com"
] | ricky1229x@gmail.com |
8f72f19372a8a6d00c1e1dde589bbaee09eace59 | e53c9a5694b00153f8ac50e6d680fc9817798986 | /case/migrations/0003_auto_20190111_1705.py | 2824d646c80940d1ec4d7920a696742d8bd166d3 | [] | no_license | peijipe/project-management | a40923a935d81be58029ea53258e042b5edeb498 | 4446313c382750fa57b855c4c64e9f57f2184831 | refs/heads/master | 2020-04-11T17:56:55.017519 | 2019-01-23T08:19:31 | 2019-01-23T08:19:31 | 161,980,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # Generated by Django 2.1.4 on 2019-01-11 17:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('case', '0002_auto_20190108_1659'),
]
operations = [
migrations.RemoveField(
model_name='case',
name='low_skill',
),
... | [
"admin@example.com"
] | admin@example.com |
6606ed75976525c40589fa0b1fcf65119bffd351 | 1498f1ff7ed0e4318b4475c04d486b301328a4b5 | /test/test_field_permission.py | 15f71e6c80ad4db11cf7097dc545b8fd0cc662ce | [
"Apache-2.0"
] | permissive | greenpau/pycherwell | b66e27b3e0e07e914a07a092472575a56c48a8bf | 2a25446d5cf86d69e6158067faf27ce250aba966 | refs/heads/master | 2021-07-25T01:58:57.682666 | 2020-07-19T01:40:26 | 2020-07-19T01:40:26 | 199,328,283 | 2 | 2 | Apache-2.0 | 2020-07-16T21:31:33 | 2019-07-28T19:24:17 | Python | UTF-8 | Python | false | false | 890 | py | # coding: utf-8
"""
Cherwell REST API
Unofficial Python Cherwell REST API library. # noqa: E501
The version of the OpenAPI document: 9.3.2
Contact: See AUTHORS.
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import pycherwell
from pych... | [
"greenpau@outlook.com"
] | greenpau@outlook.com |
5e9d59a96ffe4d5350f32346b070ded5a6294235 | 0353ecdc410b3b047d873ea9d5e30000d4d7b724 | /contrib/devtools/check-doc.py | be4293146b1fe3d74652e2897016589e4689cf2c | [
"MIT"
] | permissive | MotoAcidic/BaseSource | d3c58b881997f5434b12d5c4f5e548b4a8a1d3b2 | 2b48377ddda416fff1c83dbfc8b96997613521ea | refs/heads/main | 2023-06-10T19:31:39.127177 | 2021-05-21T00:20:55 | 2021-05-21T00:20:55 | 369,367,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | #!/usr/bin/env python
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
This checks if all command line args are documented.
Return value is 0 to indicate no error.
Author: @... | [
"travisfinch01@gmail.com"
] | travisfinch01@gmail.com |
669b428f6be8288621b19bee3a8405ce64aa9813 | d2df591c50458f88b3ebef4e5f9c65fa8ba42688 | /Algorithm-Study/Backjoon/10989_countingSort.py | 711d61749dae0fb5d6fe0143c610309119da9caf | [] | no_license | JuHyang/today-I-learned | 16eba628b3e9e8c99cb3ca6bcdf1d49f9f496f94 | 6a262bc7a88612aa22fcb5119d4d182bacb22b49 | refs/heads/main | 2022-02-10T16:37:36.793196 | 2022-01-28T01:06:02 | 2022-01-28T01:06:02 | 222,265,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | ## counting sort
import sys
def countingSort (N, list_num) :
for i in range (10000) :
list_num.append(0)
for i in range (N) :
list_num[int (sys.stdin.readline()) - 1] += 1
for i in range (len(list_num)) :
for j in range (list_num[i]) :
print (i + 1)
N = int (inp... | [
"kkss2889@naver.com"
] | kkss2889@naver.com |
1e6601ecbaad109d19ffd77a2d1735d7d723e8b4 | e246361dddc75a79c22e983c6af06e47ad76fb31 | /JumpScale9RecordChain/servers/gedis/GedisCmds.py | f78d542b483991fd8da71eb613684e10689300d0 | [] | no_license | Dinaamagdy/recordchain | 2a3e97c1db9c3ccddade2e498777e35824d2ca18 | a5b048d7b5d3ee3f41f5c7702731e65e28e13bd7 | refs/heads/master | 2020-03-22T05:28:23.195917 | 2018-07-03T09:09:38 | 2018-07-03T09:09:38 | 139,568,296 | 0 | 0 | null | 2018-07-03T10:39:35 | 2018-07-03T10:39:34 | null | UTF-8 | Python | false | false | 3,428 | py |
from js9 import j
import inspect
# import imp
import sys
import os
JSBASE = j.application.jsbase_get_class()
class GedisCmds(JSBASE):
def __init__(self, server, namespace, class_):
JSBASE.__init__(self)
self.server = server
SCHEMA = """
@url = jumpscale.gedis.cmd
@name... | [
"kristof@incubaid.com"
] | kristof@incubaid.com |
948e9f658720fceb019e2fc85c9764063c0f34ac | d99ac626d62c663704444a9cce7e7fc793a9e75e | /asm2vec/examples/non_crypto_code/PackedArray_functions.py | 3dd0a419891408f18b4950cba1887d59b0e80456 | [] | no_license | Experiment5X/CryptoFunctionDetection | 3ab32d5573a249d24db1faf772721bc80b8d905d | dac700193e7e84963943593e36844b173211a8a1 | refs/heads/master | 2023-04-19T09:12:35.828268 | 2021-05-13T22:39:27 | 2021-05-13T22:39:27 | 355,299,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | function_names = [
'___PackedArray_pack_1',
'___PackedArray_unpack_1',
'___PackedArray_pack_2',
'___PackedArray_unpack_2',
'___PackedArray_pack_3',
'___PackedArray_unpack_3',
'___PackedArray_pack_4',
'___PackedArray_unpack_4',
'___PackedArray_pack_5',
'___PackedArray_unpack_5',
... | [
"xmeadamx@gmail.com"
] | xmeadamx@gmail.com |
c95ff50362c7341f7c89fa4b3dd5edb04f69b817 | 9cf434b6ee59ab22496ee031fb4ab145bbaff1a2 | /tranque_v1.8.4_source/backend/src/api/v1/views/template_views.py | 7164ea45395b746ffd813d084a755a1961feb06e | [] | no_license | oliverhernandezmoreno/SourcesOH | f2ff1a5e3377f0ac1fb8b3153d99d0ee703700b7 | 5d9ca5ab1caceafd4d11207139c9e56210156ef8 | refs/heads/master | 2023-01-05T02:51:25.172103 | 2020-08-27T14:39:34 | 2020-08-27T14:39:34 | 64,422,812 | 0 | 1 | null | 2022-12-30T17:25:10 | 2016-07-28T19:33:44 | JavaScript | UTF-8 | Python | false | false | 5,809 | py | import tempfile
import coreapi
import coreschema
from django.http import FileResponse
from rest_framework import response, viewsets, serializers
from rest_framework.decorators import action
from rest_framework.utils.urls import replace_query_param
from base.pagination import PageNumberPagination
from base.permissions... | [
"oliverhernandezmoreno@gmail.com"
] | oliverhernandezmoreno@gmail.com |
7a440f8fa9a713d4169d492dec2d1fd25cfc15a4 | 7676f139bea57f37b7af399afdfb04016f17b30a | /test/test_lor.py | e309eb79ee6824b4e528837bfddeaf40b6ee2417 | [] | no_license | Canisback/pantheon | 32da2239dd20255a85f5a4d78edd888d0ed995df | 3a9588a635035e2f89489fef35eec690f3069f96 | refs/heads/master | 2023-07-21T05:00:32.315615 | 2023-07-14T19:19:58 | 2023-07-14T19:19:58 | 129,768,571 | 57 | 17 | null | 2022-11-10T15:22:19 | 2018-04-16T15:51:04 | Python | UTF-8 | Python | false | false | 643 | py | from .config import *
def test_leaderboard():
try:
data = loop.run_until_complete(panth.get_lor_leaderboard())
except Exception as e:
print(e)
assert "players" in data
assert type(data["players"]) == list
def test_match():
try:
data = loop.run_until_complete(panth... | [
"canisback@gmail.com"
] | canisback@gmail.com |
047903756bde3ab9de086df778b2e72bda0cbd03 | 82b728e805d887102c0b8c415731b353877690cd | /samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_vizier_service_lookup_study_sync.py | 5d076d04aa6c105097f75f75cd4c7af7ec1a84e8 | [
"Apache-2.0"
] | permissive | geraint0923/python-aiplatform | 90c7742c9bdbde05b9688b117e8e59c0406d6f85 | 7ab05d5e127636d96365b7ea408974ccd6c2f0fe | refs/heads/main | 2023-08-24T05:30:38.519239 | 2021-10-27T20:38:25 | 2021-10-27T20:38:25 | 370,803,114 | 0 | 0 | Apache-2.0 | 2021-05-25T19:15:47 | 2021-05-25T19:15:46 | null | UTF-8 | Python | false | false | 1,599 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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"
] | geraint0923.noreply@github.com |
fa5c4a3f82722a7f4ea1911d46cd805a4cc0a118 | 5a9798598f3e3575c46584f1b0185186066860ac | /tfx/experimental/templates/penguin/pipeline/pipeline.py | 4dc773cb75bab4e60a0aab3810f136f36d2a9176 | [
"Apache-2.0"
] | permissive | UsharaniPagadala/tfx | 1cfbc8dbc5934cfceea8ceae4896d09404638369 | 4576b783e8c91e688337d3cd3b5dbdf93dbd278f | refs/heads/master | 2023-08-07T17:47:29.629144 | 2021-09-21T08:03:06 | 2021-09-21T08:03:06 | 353,321,718 | 0 | 0 | Apache-2.0 | 2021-09-21T08:03:07 | 2021-03-31T10:46:51 | Python | UTF-8 | Python | false | false | 5,988 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
117876ae2a3f04ee3bbb6df29713c1dad3bcc9c0 | d5d5b042bdc74130d562574dce62bf4d732411b7 | /test/gdsctools/test_gdsc1000.py | b16c3cac1f32336f643dc4ba8d48bd3dee5eb8e8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | cokelaer/gdsctools | e8d932f29c4ab9d2f4fea8b64c701a13995f3535 | 5609aadf8b29c8672dc7e47a1d37fbef43728da2 | refs/heads/master | 2023-08-13T21:32:57.542738 | 2021-10-17T15:58:48 | 2021-10-17T15:58:48 | 417,879,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | from gdsctools import GDSC1000
def test_download(tmpdir):
p = tmpdir.mkdir("download")
name = "download/"
gg = GDSC1000(data_folder_name=name)
gg.download_data()
gg = GDSC1000(data_folder_name=name)
gg.load_data(annotation=False)
# now some filtering. Let us start with alteration_type
... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
fdcdc18790dfa2b5e639771b3495089885d4d850 | ebf3e0fdb7ca2c19e04f893b49120cd4fdf10649 | /Models_pro/population.py | e4121535f2c153a614db5986cb4b4c74d53eb44f | [] | no_license | Sem31/Django-Basics | 19f8528f683c1bbc67a4d5d01988fa8d64d251c2 | 3219143d135a1d918e0994b61128375b01b35a5d | refs/heads/master | 2022-12-12T00:01:04.518559 | 2019-09-29T18:16:57 | 2019-09-29T18:16:57 | 190,061,340 | 0 | 0 | null | 2022-12-08T05:22:25 | 2019-06-03T18:37:25 | Python | UTF-8 | Python | false | false | 1,008 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','Models_pro.settings')
import django
django.setup()
#fake pop script
import random
from first_app.models import AccessRecord,Webpage,Topic
from faker import Faker
fakegen = Faker()
topics = ['Search','Social','Marketplace','News','Games']
def add_topic():
... | [
"31kamleshprajapat@gmail.com"
] | 31kamleshprajapat@gmail.com |
58c50599c5bb0fed81a5e29f8f9ab92dad0b3ed3 | b3528a3795ce373e27d52362128de3cff6f9969d | /python/delta_debugging/delta_debugging.py | 775517fdbe826a7e4fff8b4f14483d909055a65e | [] | no_license | greenmonn/daily-coding | 43e0f3775678c7d6116df7ba5034ea18489d87c9 | ef6ecc88e6db61e18364eef3ea071c11e1385a99 | refs/heads/master | 2023-01-14T04:59:14.130309 | 2021-02-08T23:32:56 | 2021-02-08T23:32:56 | 157,735,438 | 1 | 1 | null | 2022-12-21T02:13:17 | 2018-11-15T15:47:37 | Python | UTF-8 | Python | false | false | 2,663 | py | import subprocess
prefix = """
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class MyTest {
public static boolean debug = false;
@Test
public void test4() throws Throwable {
Account account1 = ne... | [
"greenmon@kaist.ac.kr"
] | greenmon@kaist.ac.kr |
f45259da4d410c951bd7fab63394ea93796504a9 | 1c9a5513a573e43aab30b032529699e6767540ba | /flask_sqlalchemy_jsonapi/sort.py | eb62cf35b7021747096db589ea00a016e7a7174d | [
"MIT"
] | permissive | Raistlfiren/sqlalchemy-jsonapi-collections | bdefeb411316950c944d0ff53822467e8a6330ee | 890d6377e9a3ee07e14a0b4028ba24a03a1420ef | refs/heads/master | 2020-12-11T01:47:36.187863 | 2016-03-29T13:24:24 | 2016-03-29T13:24:24 | 55,098,906 | 0 | 0 | null | 2016-03-30T21:24:45 | 2016-03-30T21:24:45 | null | UTF-8 | Python | false | false | 3,322 | py | # -*- coding: utf-8 -*-
from sqlalchemy import desc
from flask_sqlalchemy_jsonapi.errors import FieldError
class SortValue(object):
"""Validate and sort a provided `marshmallow` schema field name."""
attribute = None
descending = False
join = None
def __init__(self, schema, value):
"""Se... | [
"cmanallen90@gmail.com"
] | cmanallen90@gmail.com |
e8d26fb2e48c2f7a7151e58560c9f695f093a8be | 05dcaeb9cbb86d8139118fdc306b2b722739098c | /media_manager/decorators.py | 0891df76694b9887e251caf1624f001895fbf0b2 | [] | permissive | Harvard-ATG/media_management_lti | a6363276a920653dfc7d130c1fc1155e90b1f638 | a4b89c3e1c5f7a8adc31a258413b512507916a94 | refs/heads/main | 2023-05-25T09:41:56.843354 | 2021-09-21T14:24:50 | 2021-09-21T14:24:50 | 47,143,864 | 5 | 5 | BSD-3-Clause | 2023-05-22T23:55:11 | 2015-11-30T20:24:09 | JavaScript | UTF-8 | Python | false | false | 368 | py | from media_manager.lti import LTILaunch
from functools import wraps
def require_permission(permission):
def perm_decorator(func):
@wraps(func)
def func_wrapper(request, *args, **kwargs):
LTILaunch(request).require_perm(permission)
return func(request, *args, **kwargs)
... | [
"abarrett@fas.harvard.edu"
] | abarrett@fas.harvard.edu |
8703fbf0dae4888bfc097f5cda483e79df4193bb | 4a852785538f4589e6e5122c075437118f1ae31f | /src/richmond/webapp/api/gateways/e_scape/backend.py | ea552c7bb7be9c3ac04b96a957395b12b0ed6672 | [] | no_license | euan/richmond | 3ebc132cc103567ed6c93f25d735bce848128180 | cd4b02998f5f5cc50f21aea6608e66449c0f32c9 | refs/heads/master | 2021-01-21T01:27:27.783146 | 2010-08-18T08:16:05 | 2010-08-18T08:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | from richmond.webapp.api.utils import callback
import xml.etree.ElementTree as ET
from collections import namedtuple
class E_ScapeException(Exception): pass
class E_ScapeReponse(object):
recipient = None
sender = None
status = None
smsc = None
text = None
class E_Scape(object):
def __ini... | [
"simon@soocial.com"
] | simon@soocial.com |
b9fbf432be4d10e425c65617e63fa9e902bcfb71 | cf0ab8503d4d704045070deea1e2125375711e86 | /apps/admins/migrations/0016_email_trgm_index.py | 37fb89311f3da4b1e63edf8e88407ba4ae5ec7d9 | [] | no_license | faierbol/syncano-platform | c3c6468600115752fd9fa5e46a0ad59f75f6bc9c | 879111874d1ef70418b4890cf970720b0a2be4d8 | refs/heads/master | 2023-07-20T10:13:40.066127 | 2021-02-08T15:01:13 | 2021-02-08T15:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-04 13:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('admins', '0015_auto_20151116_1124'),
]
operations = [
migrations.RunSQL(
"""
CREATE INDEX admins_admin_trgm_email ON admins_a... | [
"rk@23doors.com"
] | rk@23doors.com |
8b19f88bf31d2955f25c21644e2842d7b82b3fb4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/3211.py | c858ddd5d9f486b0a798b83f0bd5067a8acacfd8 | [] | 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 | 612 | py | #!/usr/bin/env python
from __future__ import print_function
def main():
f = open('myfile','w')
with open("sample.txt") as fp:
line_count = int(next(fp).strip())
for inst in range(line_count):
line = next(fp).strip()
shyMax, audi = line.split()
sum = 0
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
88d169aa75a10b91bbdce47120e6b90e421aba8c | 8a6dde82fa2bb14a92ee9c45013c15424572c076 | /flask_app/adoption_app/app.py | 64805087af9022502b90179d089ec251ad63dee6 | [] | no_license | irekpi/flask | 4c9d6f65d0b54bcb4bf5e2e59fdca3e426793c7e | 4bc9caddebcb903a7da0e2fd9eef507112d358ed | refs/heads/master | 2022-04-11T03:33:16.630625 | 2020-03-26T19:30:57 | 2020-03-26T19:30:57 | 250,352,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from adoption import app
from flask import render_template
@app.route('/')
def index():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True) | [
"pilat.irek@gmail.com"
] | pilat.irek@gmail.com |
5ae87aa4a615766ce9e138470e20a278f275cc6f | 7deda84f7a280f5a0ee69b98c6a6e7a2225dab24 | /Receptionist/migrations/0003_auto_20200101_1048.py | faf01ddd9b6e58c1f60a74740ab12f7d4d570747 | [] | no_license | Cornex-Inc/Coffee | 476e30f29412373fb847b2d518331e6c6b9fdbbf | fcd86f20152e2b0905f223ff0e40b1881db634cf | refs/heads/master | 2023-01-13T01:56:52.755527 | 2020-06-08T02:59:18 | 2020-06-08T02:59:18 | 240,187,025 | 0 | 0 | null | 2023-01-05T23:58:52 | 2020-02-13T05:47:41 | Python | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.15 on 2020-01-01 10:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Receptionist', '0002_auto_20200101_1047'),
]
operations = [
migrations.RenameField(
model_name='payment',
old_name='discoun... | [
"khm4321@naver.com"
] | khm4321@naver.com |
effe1cf035f81d7f598fa870362c76740cf17bdd | 65c31008f79a1227e8eda04f507e2ef26413bd3a | /maximum.py | ff9df3ccf61cda2c3e302ef62ece83362625c5bf | [] | no_license | qwangzone/leetcode_pro | da2b98770d12e3d3e57b585f24727cdd600adb96 | 0e008fa293f54cc97c79e86648fadf67c0507e7a | refs/heads/master | 2020-03-06T22:22:47.434221 | 2018-04-28T09:00:53 | 2018-04-28T09:00:53 | 127,101,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | class Solution:
# @param A, a list of integers
# @return an integer
# 6:57
def maxSubArray(self, A):
if not A:
return 0
curSum = maxSum = A[0]
for num in A[1:]:
curSum = max(num, curSum + num)
maxSum = max(maxSum, curSum)
return maxSu... | [
"578380132@qq.com"
] | 578380132@qq.com |
efae14ea5b64bab7cfc0a336e7bea98939e7bd96 | 5bc9cd49ea8852852fc7caf38bd40c261c178985 | /blogs/urls.py | f38a877ec835a48ff07207693b6918c5b28df95c | [
"Apache-2.0"
] | permissive | Tooskich/python_core | 90f2ae97c1cde6b7eca0bdd84da1237d54db9b53 | ae2d9e201a903fc5fabcddf66b3e96aff1176007 | refs/heads/master | 2021-01-19T01:42:23.866215 | 2015-12-29T12:20:20 | 2015-12-29T12:20:20 | 16,333,738 | 0 | 1 | null | 2016-06-28T06:30:19 | 2014-01-29T02:55:21 | Python | UTF-8 | Python | false | false | 903 | py | from django.conf.urls import patterns, url
from blogs import views
urlpatterns = patterns(
'blogs.views',
# url(
# regex=r'^$',
# view='bloggers',
# name='basic_urls',
# ),
# url(
# regex=r'^bloggers/$',
# view='bloggers',
# name='basic_urls',
# ),
# url(
# regex=... | [
"seba-1511@hotmail.com"
] | seba-1511@hotmail.com |
16ee3ce5d7916d66726b2fa0302489056100e2b9 | 5a4b7c41ffe95a1b0422a8eb1cb89bd9a75fd68c | /tests/models/mappa/test_response_models.py | 7c3405ea6f91df8fbd0e20e83d48b3bfe62ef812 | [
"MIT"
] | permissive | escoteirando/escoteiros-mappa-old | 3c7ca4f6b4c4e9dbee1abb5430cc773c9ee4d903 | 4917da4cae49ded521db248fdea39ca79b7ef8f7 | refs/heads/develop | 2022-12-11T06:26:10.239310 | 2020-04-20T00:52:03 | 2020-04-20T00:52:03 | 253,770,625 | 1 | 1 | MIT | 2022-12-08T09:39:59 | 2020-04-07T11:16:18 | Python | UTF-8 | Python | false | false | 2,188 | py | import unittest
from datetime import datetime, tzinfo
from dateutil.tz import tzutc
from mappa.models.mappa.associado import AssociadoModel
from mappa.models.mappa.escotista import EscotistaModel
from mappa.models.mappa.login import LoginModel
class TestResponseModels(unittest.TestCase):
def test_login_mappa(s... | [
"guionardo@gmail.com"
] | guionardo@gmail.com |
da4219c9fa4f5b076e85b7cc131e88c1acf86898 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200628000400.py | d60bfbff6cf07f0498fc2d12a1ed68303c1eecd8 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
# import xlml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
# def parse(self, response):
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.