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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b332387214949ab45f1771f0aae9a5028021c655 | a81d21f98dd558416f8731f001cb8151d8309f4f | /interviewbit/interviewbit/pointers/three_sum_zero.py | cea0a17f6a40485087dbf69d9c3abc66aac3694b | [] | no_license | marquesarthur/programming_problems | 1128c38e65aade27e2435f7987d7ee2b328fda51 | 2f7df25d0d735f726b7012e4aa2417dee50526d9 | refs/heads/master | 2022-01-25T18:19:02.575634 | 2022-01-18T02:07:06 | 2022-01-18T02:07:06 | 32,213,919 | 2 | 0 | null | 2020-10-13T01:29:08 | 2015-03-14T13:44:06 | Python | UTF-8 | Python | false | false | 2,088 | py | class Solution:
def threeSum(self, A):
A = sorted(A)
n = len(A)
result = set()
for i in range(n):
j = i + 1
k = n - 1
target = A[i]
while j < k:
if target + A[j] + A[k] < 0:
j += 1
... | [
"marques.art@gmail.com"
] | marques.art@gmail.com |
6358884396388c3ab81261921c2983e5f5ede5ab | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /jSjjhzRg5MvTRPabx_10.py | 329a38580f7189f6c5c3fc07a47ac0fbdc5fc1a3 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py |
def sentence(words):
result = []
if len(words) == 1:
if words[0][0].lower() in "aeiou":
result.append("An " + words[0].lower() + '.')
else:
result.append("A " + words[0].lower() + ".")
elif len(words) == 2:
if words[0][0].lower() in "aeiou" and words[1][0].lo... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ea68d77f4f32d08fb814a0049b8bd29dfa307ca4 | 41a0220bf117124bf281a50396582c0df1e0675f | /Pyrado/scripts/evaluation/trn_argmax_policy_bayrn.py | da89629bf80d4d2cf83de3f2f6b06d59b967a485 | [
"BSD-3-Clause"
] | permissive | jacarvalho/SimuRLacra | c071dfc22d4f2c54a198405e8974d03333c9961d | a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5 | refs/heads/master | 2022-11-24T20:08:52.376545 | 2020-08-03T09:01:35 | 2020-08-03T09:01:35 | 276,885,755 | 0 | 0 | BSD-3-Clause | 2020-07-03T11:39:21 | 2020-07-03T11:39:21 | null | UTF-8 | Python | false | false | 2,508 | py | """
Script to get the maximizer of a GP's posterior given saved data from a BayRn experiment
"""
import os.path as osp
import torch as to
from pyrado.algorithms.advantage import GAE
from pyrado.algorithms.bayrn import BayRn
from pyrado.algorithms.cem import CEM
from pyrado.algorithms.nes import NES
from pyrado.algorit... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
b967bedddcf45fcc7236e63a57d263e03a35babc | a2c0c8f20584a5d92551f18e7f6e73cfc20ab9a6 | /27.py | d7162bd765c2eecbb712bf831cd9d3b7ebc2922d | [] | no_license | subayadhav/wed05061 | 8acbd1491cd4d5d7f0eb98c62ade8879b5a8739a | 45cdb0bbe11624967178c356b31c90abf99eb412 | refs/heads/master | 2020-05-31T16:57:36.956998 | 2019-06-05T17:39:37 | 2019-06-05T17:39:37 | 190,394,471 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | n1=input()
if n1.isnumeric()==True:
print("Yes")
else:
print("No")
| [
"noreply@github.com"
] | subayadhav.noreply@github.com |
2cb62cc18d2371aebccf0e88ffa1ecd3594ee3e2 | 6c61ad8562dd72888d1544d6176fee5eb73d1e15 | /pix2pix/networks.py | 8ea028ed60acb2374b59227449788659ab54c3ee | [
"MIT"
] | permissive | kendricktan/rarepepes | 7b744ff483d00163ace541577da51b30eb1191dc | c6e7525cba4c3e3ff9f7de8e97a02b3f3450b898 | refs/heads/master | 2021-06-06T11:24:10.206399 | 2017-05-26T02:09:18 | 2017-05-26T02:09:18 | 90,793,293 | 24 | 4 | MIT | 2021-04-02T15:51:43 | 2017-05-09T21:25:10 | Python | UTF-8 | Python | false | false | 9,328 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
###############################################################################
# Functions
###############################################################################
def weights_init(m):
classname = m.__class__.__name_... | [
"kendricktan0814@gmail.com"
] | kendricktan0814@gmail.com |
25c89576f82e9202346193c01764c1a192c9cbfd | 2825bf6479e08dfead428ff9f29f28d5c23d953e | /26_2/26_7.py | e9fd86e7707b27199667321125bfa3feba2697cc | [] | no_license | zedaster/ImaevIntensive | bc459187dace7946d8ad75a04e058748134aeac4 | b91760fa23f25ce2d19778781f35416c177ab881 | refs/heads/main | 2023-06-22T00:24:47.039208 | 2021-07-20T10:40:54 | 2021-07-20T10:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | file = open('26-j2.txt')
values = sorted(map(int, file.readlines()[1:]))
medium = values[len(values)//2]
avg = sum(values)/len(values)
count = 0
for val in values:
if min(medium, avg) <= val <= max(medium, avg):
count += 1
print(count) | [
"serzh.kazantseff@gmail.com"
] | serzh.kazantseff@gmail.com |
fe0efe683946a1b5e9c30a52b867324f374e121c | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/plugins/lookup/nios_next_ip.py | 5b979b8d075f498a8eacf83c572686b3d3b13f96 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 3,580 | py | #
# Copyright 2018 Red Hat | Ansible
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"test@burdo.fr"
] | test@burdo.fr |
58178854f14d7de01b5a58abeb950b2d4c6fe2db | 6a61667e176b06ccdef07e84d79b382b2fb491bb | /common/services/email_service.py | 6b2cc57cdf6fc6d96376703f32b4245ec18d1103 | [] | no_license | vsokoltsov/Interview360Server | 333f08f13b33ef88928b3e4b844f60e72ebec809 | 252b0ebd77eefbcc945a0efc3068cc3421f46d5f | refs/heads/master | 2022-12-11T05:38:01.310133 | 2019-03-24T17:47:09 | 2019-03-24T17:47:09 | 95,320,167 | 2 | 3 | null | 2022-12-08T04:54:08 | 2017-06-24T20:09:08 | Python | UTF-8 | Python | false | false | 2,742 | py | from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.core.mail import EmailMultiAlternatives
import os
import ipdb
class EmailService:
"""Service for email sending."""
SENDER = 'Anymail Sender <from@example.com>'
@classmethod
def send_interview_remin... | [
"vforvad@gmail.com"
] | vforvad@gmail.com |
a6c0a838c9d08cc5d940f86faa2809284d203636 | e3b9e8ec177e2b4c8bf24bbfefd7b2af4cd51e80 | /search/InitializationError.py | 339256d08a540446ba7de3e7f3b6b667392675c7 | [] | no_license | dmitriyVasilievich1986/radius-logs-parser | cae3ea7aade9ddcdd3b8739e8048a80ee8134d7c | f4d4256dee0c772b06d57acf49e72e742d56996e | refs/heads/main | 2023-06-02T23:26:09.001345 | 2021-06-25T13:00:05 | 2021-06-25T13:00:05 | 379,828,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from .Config import V3
class InitializationError(Exception):
def __init__(self, *args, **kwargs):
if V3:
super().__init__(*args, **kwargs)
else:
super(Exception, self).__init__(*args, **kwargs) | [
"dmitriyvasil@gmail.com"
] | dmitriyvasil@gmail.com |
046a2b58fd3c8b67a19b77e17be9792baf525356 | 112882b8d6c5071e7d2610c595bfca9210c79a0a | /tools/leetcode.189.Rotate Array/leetcode.189.Rotate Array.submission6.py | 927e2502fa4eb865d39c018a80d1e268d6be7b85 | [
"MIT"
] | permissive | tedye/leetcode | 193b1900d98e35d5c402013cbe3bc993d0235da2 | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | refs/heads/master | 2021-01-01T19:06:06.408135 | 2015-10-24T06:44:40 | 2015-10-24T06:44:40 | 41,804,923 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | class Solution:
# @param nums, a list of integer
# @param k, num of steps
# @return nothing, please modify the nums list in-place.
def rotate(self, nums, k):
if not nums or k == 0:
return
k = len(nums) - k%len(nums)
for i in range(k):
nums.append(nums.pop(... | [
"tedye@bu.edu"
] | tedye@bu.edu |
c667278cf860aef9d54dc6dc40e0ec577a621cbe | 21e7753732296bfdfb6dd9a9b58c7c6b8d90a1e5 | /Hard/longestIncreasingSeq/longestIncreasingSeq_test.py | acf4794919c97abea3326458e44a4ef4dad62e8c | [] | no_license | rongfeng-china/python-algorithms-and-data-structures | eb8514b44d7ff97dd7c4deda2d8ea888a5aa8d04 | a69241bb7b684bc7d00acdd46c2fc214f7b61887 | refs/heads/master | 2020-03-13T09:08:13.375870 | 2015-12-11T07:37:30 | 2015-12-11T07:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from longestIncreasingSeq import longestIncreasingSeq
import pytest
def test_longestIncreasingSeq():
arr = [13,14,10,11,12]
res = longestIncreasingSeq(arr)
assert(res == [10,11,12])
| [
"prathamt@outlook.com"
] | prathamt@outlook.com |
b375d115741069c717a9c061d18b42d1de4fda00 | 70bee1e4e770398ae7ad9323bd9ea06f279e2796 | /openapi_client/models/waas_network_controls.py | 3099374b53195c2dcd56ab82bfaefc1258838d85 | [] | no_license | hi-artem/twistlock-py | c84b420b1e582b3c4cf3631eb72dac6d659d4746 | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | refs/heads/main | 2023-07-18T07:57:57.705014 | 2021-08-22T04:36:33 | 2021-08-22T04:36:33 | 398,637,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,756 | py | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
try:
from inspect import getfulla... | [
"aakatev@virtru.com"
] | aakatev@virtru.com |
b174000a9efc0a2cfcad23ba2a171ed686f20bdf | 97d34d62e4232e754c5f1a458b2d4068abadc1ab | /flask/flasky-master/app/__init__.py | 8438b924c8c21163e6af7b40d38c746c9ee4c1de | [
"MIT"
] | permissive | chenzhenpin/py_test | d0e4ae32ab43fae4da53d0f0ac7d89b77b041a96 | b05ed73210ab7ebdaa39d8ebcf9687d4ef16125c | refs/heads/master | 2022-12-27T10:21:54.114869 | 2018-12-06T02:04:31 | 2018-12-06T02:04:31 | 159,364,911 | 0 | 1 | null | 2022-12-15T14:30:38 | 2018-11-27T16:22:28 | Python | UTF-8 | Python | false | false | 1,256 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_pagedown import PageDown
from config import config
bootstrap = Bootstrap()
mail = Mail()
moment = Moment()
db... | [
"1595347682@qq.com"
] | 1595347682@qq.com |
ffd5af4e55a9c62b4108a72d9b8dd7da83f80184 | 5a9c11b0d7d9d1ef11c8404c2e38cf2f5c4c6744 | /myapp/migrations/0002_delete_test.py | 41afe6a17802a63e3ce82c28b340021dfa556f12 | [] | no_license | tlaboni-ecl/Demo_project | 7c671498c8f0f65520552c884b274cbbd2aea47c | 9ed5427d504e830df65ec1e8b17f218feb92ad83 | refs/heads/main | 2022-12-20T17:08:58.545689 | 2020-10-17T20:19:52 | 2020-10-17T20:19:52 | 304,962,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # Generated by Django 2.1.5 on 2020-10-17 06:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='test',
),
]
| [
"you@domain.com"
] | you@domain.com |
cc9fc4571d0de756eca3429627552998a832d55c | 2ce71cf8b2ab41b5ad26dbcb9b6cc5b8d27e632d | /ibis/pandas/tests/test_udf.py | 9a580c7e8331f1e32dc2db56ba648e0e41c4e422 | [
"Apache-2.0"
] | permissive | brandonwillard/ibis | 6f1341687df7bb15db7c655f0c7697efeb86357e | 93cc4ba8703a96e19660255e6e48e66d7cd69b31 | refs/heads/master | 2020-03-13T17:08:48.066938 | 2018-04-25T20:09:34 | 2018-04-25T20:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import pytest
import numpy as np
import pandas as pd
import pandas.util.testing as tm
import ibis
import ibis.expr.types as ir
import ibis.expr.datatypes as dt
from ibis.pandas.udf import udf, udaf, nullable
from ibis.pandas.dispatch import pause_ordering
with pause_ordering():
@udf(input_type=[dt.string], o... | [
"cpcloud@gmail.com"
] | cpcloud@gmail.com |
9b22f1b8a901bd7097257f0ce01b711698201d5b | a6fa311aff9a99ad6a47e41fe34f3f12bb507007 | /reagent/test/gridworld/test_gridworld_pytorch.py | ee5afe6e37f0a158e0ef29191e97d2229a700519 | [
"BSD-3-Clause"
] | permissive | cts198859/ReAgent | 222e9dd4aeba455ad5faa9f6178a0e9793cb82fc | 20f3d333821bad364fd567cce97de51c44123484 | refs/heads/master | 2022-09-15T13:08:24.732208 | 2020-05-29T00:51:35 | 2020-05-29T00:54:45 | 267,776,326 | 0 | 0 | BSD-3-Clause | 2020-05-29T05:51:43 | 2020-05-29T05:51:43 | null | UTF-8 | Python | false | false | 15,477 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import os
import random
import tempfile
import unittest
import numpy as np
import reagent.models as models
import reagent.types as rlt
import torch
from reagent.parameters import (
DiscreteActionModelParameters,
Nor... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5fad363ab88211dc685ce0fcd8f0c3dfbf84edfd | fb6e7922df3da2e9cdc37a00150d6d7663e907ff | /environment/rtfm/dynamics/dice.py | fbc50b78c60b350d2271d13d50dffc0476ae6757 | [
"Apache-2.0"
] | permissive | Spiph/GTG | c54a587002c42a032c89e8eceb5ec638f6c8c05f | 4a45032290d0c1364e4398684582c51094b245f5 | refs/heads/main | 2023-09-02T14:44:14.946624 | 2021-10-27T12:29:05 | 2021-10-27T12:29:05 | 393,086,007 | 0 | 0 | Apache-2.0 | 2021-08-05T15:09:07 | 2021-08-05T15:09:07 | null | UTF-8 | Python | false | false | 2,034 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import random
class Dice:
def __init__(self):
pass
def roll(self):
raise NotImplementedError()
... | [
"jzyjiangzhengyao@gmail.com"
] | jzyjiangzhengyao@gmail.com |
499b4e1d8e1b2d32fea99ccda7428930a2633d1c | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Vue.js/juejin_1689.py | b0dda920b43dd2ae496c60a944c794d487f62220 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,153 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6882680744569733133", "article_info": {"article_id": "6882680744569733133", "user_id": "676954895026318", "category_id": "6809637767543259144", "tag_ids": [6809640369764958215], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "Vue... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
bfb953ab310f302eb8ffded9021eab8dcf3d59c9 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/J/jindrichmynarz/air_pollution.py | 2f4733075ffae9ef96d3f49abd1b74a7777bbad3 | [] | 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 | 8,030 | py | ####################################
# Informace o kvalitě ovzduší v ČR #
####################################
import datetime, re, scraperwiki, urlparse
from BeautifulSoup import BeautifulSoup
def getEvaluation(node):
evaluation = re.match(
"\d+(\.\d+)?",
node.find("span").text.encode("utf8").rep... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
7b28757dca0e9585daaacf0aae60298e6545f140 | ebb63b057a82b8a10df305252cbcda4186ec02f7 | /taichi_blend/bundle-packages/melt/random_generator.py | b5cab4edc76ffef734527c01ec5d9bf5e01957b7 | [] | no_license | yjchoi1/taichi_blend | aa2d6f0129c8068b9a2c8bb5a7677b3c60923d5b | 907fdbee6027375324c9605ffc14db16e590f992 | refs/heads/master | 2023-03-21T12:31:04.126621 | 2021-03-01T15:06:13 | 2021-03-01T15:06:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from . import *
@A.register
class Def(IField):
'''
Name: random_generator
Category: sampler
Inputs: min:c max:c dim:i
Output: sample:f
'''
def __init__(self, min=0, max=1, dim=0):
self.min = min
self.max = max
self.dim = dim
@ti.func
def random(self):
... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
c430daf78308008c1535ac302c6886333d61e02f | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/010/handle_name.py | 6ce801becb568a35b0f0c7f0da87e9d3c2d3e015 | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | S = input()
print(S + 'pp') | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
62bdf3e1d053de1b7c4bac023a257cd463d2a679 | d237e2624a30007bf8b1934057cd667f54245d40 | /url_summary/url_summary.py | 519893a361d74494357492e3d764243feefc29e2 | [
"MIT"
] | permissive | xidianwang412/url-summary | 8b64c6b374ecf155dd17de53c00eb4b9d2765177 | affb4a08d08d1c79d2df40cb318ae40d531e9583 | refs/heads/master | 2023-04-25T17:40:59.757519 | 2018-05-29T21:26:10 | 2018-05-29T21:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,826 | py | from collections import defaultdict
import random
from uuid import uuid4
from six.moves.urllib.parse import (
urlsplit, parse_qsl, ParseResult, urlunsplit, quote_plus)
from typing import Iterable
def get_summary(urls, top_items=20, top_urls=3, sample=True):
# type: (Iterable[str], int, int) -> UrlSummaryResul... | [
"kostia.lopuhin@gmail.com"
] | kostia.lopuhin@gmail.com |
d65d0ea1045bd8d3db1d4f75a714ca11a80b322d | 3125e84d311b099935ca819aac36dd21ec165bc7 | /mapclientplugins/scaffolddatamapperstep/model/scaffoldmodel.py | 6ba7b7e983b5ad537868491c3e7363dd33b70e3f | [
"Apache-2.0"
] | permissive | tsalemink/mapclientplugins.scaffolddatamapperstep | e3af382759d2158e4257244d092c7d7716e15265 | 2f51dac59faab3bb386aa0998a8c55896c03c123 | refs/heads/master | 2023-03-15T18:43:02.308814 | 2019-07-23T20:12:01 | 2019-07-23T20:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,346 | py | from math import radians
from opencmiss.zinc.graphics import Graphics
from opencmiss.zinc.material import Material
from opencmiss.zinc.status import OK as ZINC_OK
from opencmiss.utils.maths import vectorops as maths
from ..utils import zincutils
class ScaffoldModel(object):
def __init__(self, region, material_m... | [
"m.osanlouy@auckland.ac.nz"
] | m.osanlouy@auckland.ac.nz |
4620ec8b24a8b30d7078db3e41d39d5b8bd26563 | 449b3edf6ed1649f64f133533d6214f6679e6f2c | /customers/urls.py | 56177910b5e6f49a051e05a280b2230ab46e2888 | [
"MIT"
] | permissive | endonte/quotation2 | bbd82b0ab0ad524d19294e14bcc4752949cbbe03 | ddb9bf2f98ea8b45c9c43f272e61bb85fb563613 | refs/heads/master | 2021-01-15T14:19:36.476070 | 2017-08-21T07:20:07 | 2017-08-21T07:20:07 | 99,687,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.conf.urls import url
from .views import CustomerListView
urlpatterns = [
url(r'^$', CustomerListView.as_view(), name='customer_list'),
]
| [
"endonte88@gmail.com"
] | endonte88@gmail.com |
6885710c04ad189c6b12a2d576cb1720f585575d | 3ebed5d25b0f325736e435f03fb7cbf027a18da4 | /emc/memberArea/content/todo.py | e9aa77b5821b18022f4476034567cd627719d21f | [] | no_license | adam139/emc.memberArea | 82950eca452c781d0976d5f1c5c3140526f5823e | a549074240d780933cb590ce46c78bdecdbda654 | refs/heads/master | 2022-05-31T18:44:58.841750 | 2020-09-29T12:59:16 | 2020-09-29T12:59:16 | 47,908,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #-*- coding: UTF-8 -*-
from plone.directives import form
class ITodo(form.Schema):
"""
emc project member area personal todo items container content type
"""
| [
"yuejun.tang@gmail.com"
] | yuejun.tang@gmail.com |
8eac734c22821c8104fc1c4200d29219a39df2d8 | 0c955ea058eae749695835b31d07f60775631f36 | /test_plots/test_patches.py | cbcab29018475b5a3089ff91f30d532cf115c260 | [
"BSD-3-Clause"
] | permissive | Ahmed/mpld3 | f75934ee5e0da196eb4440f19b54cbf9dab58d0c | edb9c82e1555b778adea932a55b51ca6dc3de6e4 | refs/heads/master | 2020-12-07T00:33:17.193173 | 2014-04-02T09:39:22 | 2014-04-02T09:39:22 | 18,023,559 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | """Plot to test patches"""
import matplotlib.pyplot as plt
from matplotlib import patches
import numpy as np
def main():
fig, ax = plt.subplots()
ax.grid(color='lightgray')
rcolor = lambda: np.random.random(3)
p = [patches.Arrow(0.75, 0.75, 0.5, 0.5),
patches.Circle((1, 2), 0.4),
p... | [
"vanderplas@astro.washington.edu"
] | vanderplas@astro.washington.edu |
9e9053f992d74ab70ebb2bf5c40292d1251d11e6 | 60ff82c168f247728fa88ca8e748b61876d6b5c3 | /Chrome/GuestUser/ExploreCompaniesPage/TopSection/Test_SecondHeadline.py | bbf4c1031950ca663d8ae51e6b3461ec5d0fbfb5 | [] | no_license | mariana-rusu/the.muse | 2b9bee8a7740c3f305463cbfc28ebd3bacd49907 | 58434e3ad45795cb980aca8d6b5c67132b8a855c | refs/heads/master | 2021-01-12T07:33:04.831570 | 2017-01-09T21:02:52 | 2017-01-09T21:02:52 | 76,977,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from selenium import webdriver
import unittest
import time
class SecondHeadline(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
self.driver.maximize_window()
self.driver.get("https://www.themuse.com/")
time.sleep(1)
explore_companies = self.driver.fin... | [
"mirabelia@yahoo.com"
] | mirabelia@yahoo.com |
95f800ba3a4d4c934ae6e706cea07edfc6d46be1 | e233f9bf52ad0f88416962edd957a3c866c19b78 | /reagent/test/base/horizon_test_base.py | 676c00c95aa0b12b78c937e5cb05f5420ff12268 | [
"BSD-3-Clause"
] | permissive | dwtcourses/ReAgent | 38c99dfe47adf1471620419f744cb4145f4f4151 | b9b54d4f30ff65cf1c54dc0cf90c938b48c44f90 | refs/heads/master | 2022-04-26T15:35:46.109984 | 2020-04-29T05:38:14 | 2020-04-29T05:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
from reagent.tensorboardX import SummaryWriterContext
class HorizonTestBase(unittest.TestCase):
def setUp(self):
SummaryWriterContext._reset_globals()
def tearDown(self):
SummaryWri... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
48ca418ae561d715421faaa683c95b01c751cfac | 7c5304c697f858147f5a6655eef814bc32872848 | /setup.py | 6d00328ae8f4d9c7e715cc77af03403589f75a1e | [
"MIT",
"BSD-2-Clause"
] | permissive | MadisKarli/pyJuliusAlign | 2d5e644363f20cbe1265bb183df79724e12963e4 | 2e2a9951e7599f5dc83a977bc6605c515afec253 | refs/heads/master | 2022-01-06T00:37:29.734312 | 2019-02-23T23:42:37 | 2019-02-23T23:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #!/usr/bin/env python
# encoding: utf-8
'''
Created on Aug 29, 2014
@author: tmahrt
'''
from setuptools import setup
import io
setup(name='pyjuliusalign',
version='2.0.3',
author='Tim Mahrt',
author_email='timmahrt@gmail.com',
url='https://github.com/timmahrt/pyJuliusAlign',
package_dir={... | [
"timmahrt@gmail.com"
] | timmahrt@gmail.com |
dad36b398af2b8faf8d022d56955587525f59b3b | 1ba2b4a507783eb2051887b9ecbed85d87e4c16b | /qiskit/algorithms/aux_ops_evaluator.py | 9ce9349a7de8f236e92d1aadf7ead38d663f97ec | [
"Apache-2.0"
] | permissive | manoelmarques/qiskit-terra | 34a948605d98168b1344cee1fd6adc117a137f25 | 71dd7f7b9603e1991f9d97fef66bb9b63d552c91 | refs/heads/main | 2023-04-30T08:42:15.886082 | 2023-02-15T21:58:01 | 2023-02-15T21:58:01 | 228,042,086 | 0 | 0 | Apache-2.0 | 2019-12-14T15:07:03 | 2019-12-14T15:07:02 | null | UTF-8 | Python | false | false | 7,407 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021, 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | manoelmarques.noreply@github.com |
5d268dd6a1d73ac3491ec9214064db7e76186d8e | f6db8d85a3b41eed543959314d65927353a8229c | /.history/W5/restaurant/forms_20201202155445.py | 54887e8fa52493f1ec9492f492ded07847b4da12 | [] | no_license | NFEL/DjangoPaeez99 | d573cc8e36500f08bc104d76f7a2628062d86c2f | 621636bfb47d71f2a4f45037b7264dd5ebc7cdd7 | refs/heads/main | 2023-01-27T22:05:57.788049 | 2020-12-08T10:08:28 | 2020-12-08T10:08:28 | 304,553,353 | 1 | 2 | null | 2020-10-16T07:33:04 | 2020-10-16T07:33:03 | null | UTF-8 | Python | false | false | 219 | py | from django import forms
# from django.db.models import fields
from .models import ElementAddress
class NearByReastaurants(forms.ModelForm):
class Meta:
model = ElementAddress
fields = ('element',) | [
"nfilsaraee@gmail.com"
] | nfilsaraee@gmail.com |
54fac0e0c625b35779f704ceba5b0921fa2f22a7 | 74faed0c7465e7fa629400ddfdcfd58f66a6d6e3 | /manage.py | 2b0a775b4b720d0487a55eea64bf1dabb56717ae | [] | no_license | dengshilong/test-flask | 5952dc28d39588705f71bc87cba6c50fcb959e92 | 847c51ea524e6ffde211ca41c82f21997cf02899 | refs/heads/master | 2021-01-19T20:08:01.744585 | 2017-04-17T09:17:22 | 2017-04-17T09:17:22 | 88,488,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #!/usr/bin/env python
# pylint: disable=wrong-import-position
import os
from test_flask import create_app, db
from flask_script import Manager, Shell
from flask_migrate import Migrate, MigrateCommand
from test_flask.models import User, Address
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manag... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
37dee3f1ada38b2abb4fe10458182260e4944d89 | a045c20593669cbb82395e58dc116154d5c6c86b | /stalker_hud_rig_helper/ui.py | 869ecbe3aee0c3af278fed8ba20c965e1b6658e9 | [] | no_license | PavelBlend/blender-stalker-hud-rig-helper-addon | 4eba43cf49c1b815048d54ad1205456e9ea3eb92 | 6ebeabbca92788cdb70f4cb286bf6f5b6e47b014 | refs/heads/master | 2020-06-04T20:23:39.285879 | 2019-06-16T09:38:18 | 2019-06-16T09:38:18 | 192,179,043 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | import bpy
class _ListOp(bpy.types.Operator):
bl_idname = 'io_scene_xray.list'
bl_label = ''
operation = bpy.props.StringProperty()
collection = bpy.props.StringProperty()
index = bpy.props.StringProperty()
def execute(self, context):
data = getattr(context, _ListOp.bl_idname + '.dat... | [
"stalkermodkytia@yandex.ru"
] | stalkermodkytia@yandex.ru |
3bb521fa84719f1797e0bb0b6e9dc5230ea3ed5a | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/11c6ffa2-1596.py | 634f6b84e257b4ab196fc2c9b9eed72c5fc1cb73 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
#author:小光
#refer:http://www.wooyun.org/bugs/wooyun-2010-070091
#refer:http://www.wooyun.org/bugs/wooyun-2010-077673
#refer:http://www.wooyun.org/bugs/wooyun-2010-082926
def assign(service, arg):
if service == "jienuohan":
return True, arg
... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
bf5ff7b4246763917fcc89424e632f404a4f5308 | af41c215f420bbd66067d6dc851ce41d9ed40819 | /GBRBM/test_mini_movie.py | ad0397fa82fa6eb437eb6ead354ff9ac8e500f35 | [] | no_license | danathughes/pyNeuralNetwork | b704f525bddbc64eabf33c1174dad0649be7bfd9 | dbe2090e50434f33ac7a46845ad67eb5dc7dea87 | refs/heads/master | 2021-01-01T16:30:47.781646 | 2016-01-27T23:11:51 | 2016-01-27T23:11:51 | 19,729,930 | 0 | 4 | null | 2015-02-27T22:22:18 | 2014-05-13T07:32:24 | Python | UTF-8 | Python | false | false | 987 | py | from RBM import *
def get_RBM():
r = RBM(6,2)
k = 9
dataset = [[0.9,0.8,0.9,0.1,0.2,0.2],
[0.9,0.4,0.8,0.2,0.1,0.2],
[0.8,1.0,0.9,0.0,0.1,0.0],
[0.1,0.1,0.9,0.8,1.0,0.2],
[0.2,0.1,0.9,0.9,0.9,0.1],
[0.1,0.2,1.0,0.9,0.8,0.1]]
# Train ... | [
"danathughes@gmail.com"
] | danathughes@gmail.com |
276efaa89b7025eb62f18860f10c254de3df0147 | 26edf9a7a579782e72753c82082047ebe23a5080 | /catalyst/contrib/models/cv/segmentation/blocks/fpn.py | 2c3106814fe5f3f1db7a7f92fde028fe271e8148 | [
"Apache-2.0"
] | permissive | 418sec/catalyst | e8578c3561d54053bf53cb065d5ab516a2c505e9 | 8ce39fc31635eabc348b055a2df8ec8bc5700dce | refs/heads/master | 2023-02-17T22:18:57.257809 | 2021-01-21T09:27:46 | 2021-01-21T09:27:46 | 327,367,304 | 0 | 1 | Apache-2.0 | 2021-01-21T09:27:47 | 2021-01-06T16:24:31 | null | UTF-8 | Python | false | false | 3,708 | py | # flake8: noqa
# @TODO: code formatting issue for 20.07 release
import torch
from torch import nn
from torch.nn import functional as F
from catalyst.contrib.models.cv.segmentation.blocks.core import DecoderBlock
class DecoderFPNBlock(DecoderBlock):
"""@TODO: Docs (add description, `Example`). Contribution is wel... | [
"noreply@github.com"
] | 418sec.noreply@github.com |
a5675c5781886c2efa317d61bb02a5aa1e60eabe | 3be8b5d0334de1f3521dd5dfd8a58704fb8347f9 | /dependencies/mongo/example/nested_reference.py | a69614dea4ae0d495a5995665ac30ce01e296563 | [
"MIT"
] | permissive | bmillham/djrq2 | 21a8cbc3087d7ad46087cd816892883cd276db7d | 5f357b3951600a9aecbe6c50727891b1485df210 | refs/heads/master | 2023-07-07T01:07:35.093669 | 2023-06-26T05:21:33 | 2023-06-26T05:21:33 | 72,969,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # encoding: utf-8
from marrow.mongo.document import Document
from marrow.mongo.field import ObjectId, String, Embed
class Sample(Document):
class Nested(Document):
name = String()
reference = ObjectId()
id = ObjectId('_id')
nested = Embed(Nested, default=lambda: Nested(), assign=True)
from pprint import ... | [
"bmillham@gmail.com"
] | bmillham@gmail.com |
41cc6093c3c0a68f6f0a994159f9a2551570180c | 5a281cb78335e06c631181720546f6876005d4e5 | /karbor-1.3.0/karbor/services/operationengine/engine/triggers/timetrigger/timeformats/crontab_time.py | e11467c8c185fbb93e1b6e2cce38bebbd4bd4c07 | [
"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 | 1,856 | 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 |
f89a2a68338f83f4a881cb9afc97f86862752b31 | 0a08829b3327ecf180c72c03d0ba76d5ce118ae6 | /src/traffic_sign_classifier/model.py | da8623a2702b2c8fe677c5160aeab1dc25f0a117 | [] | no_license | ajunlonglive/self-driving-vehicle | 3ce2b83a642a7fc148288e12da9689592078a678 | a66746dea5448dcb175ab85a0a46ef60a09d185e | refs/heads/master | 2023-05-14T05:46:01.490492 | 2020-05-26T06:03:30 | 2020-05-26T06:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | import numpy as np
import tensorflow as tf
from tensorflow.keras import layers
def dataset_pipeline(images, labels, input_fn, params, mode="train"):
num_classes = tf.constant(
np.repeat(params["num_classes"], len(images)).astype(np.int32), dtype=tf.int32
)
tf.assert_equal(tf.shape(images)[0], ... | [
"sardhendumishra@gmail.com"
] | sardhendumishra@gmail.com |
bed7c0f2544d7469900ac7b0c9d6a9378ac8d8be | b26772a7ac736f5454815567817feda20d690363 | /source/lists/migrations/0005_translationslist_language.py | 0dec92a3e658e3b07c63c711cf39fead34de7222 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | mverleg/WW | 3f49e4be411a6203951fccf6f967f8164b988d09 | b58a9bbfc91d19541840f490ed59997d85389c0a | refs/heads/master | 2021-01-10T06:53:22.004564 | 2015-09-23T21:28:13 | 2015-09-23T21:28:13 | 54,189,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('lists', '0004_more_help_text'),
]
operations = [
migrations.AddField(
model_name='translationslist',
name='language',
field=mode... | [
"mark@rafiki"
] | mark@rafiki |
4113f46b5b98d26a87750e2dfe93b09c474d84ff | 8fbd17c39db677b91442f6e26d7e760d8296c064 | /chapter_11/fmnist_momentum.py | 9e6f464027c6e5af29db09ee0772ea3f11d7c188 | [
"MIT"
] | permissive | a1ip/MathForDeepLearning | 869172a36292a77195d28ffee23281e25a0440e3 | 8db1a85ce3cef4b48aab01ebe156e3fab2dfa271 | refs/heads/main | 2023-09-02T13:17:54.098315 | 2021-10-24T13:40:26 | 2021-10-24T13:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | #
# file: fmnist_momentum.py
#
# Train and test the small 14x14 FMNIST dataset.
#
# RTK, 03-Feb-2021
# Last update: 19-Feb-2021
#
################################################################
from sklearn.metrics import matthews_corrcoef
import numpy as np
from NNm import *
# Load, reshape, and scale the dat... | [
"oneelkruns@hotmail.com"
] | oneelkruns@hotmail.com |
00e20cd468336b04b4956713b6b9fd482529e2bb | dddbfd8eb6dff0bd3449bac87ee76b5c3e0bdfb1 | /icehouse-patches/neutron/vlan2vlan/neutron/common/config.py | 825672289770b3d46951b001355f5f0c0047d420 | [
"Apache-2.0"
] | permissive | joey5678/tricircle | 40897fed8fe9d6772e8878b4f06ba1a829636488 | e211f7efef129bbfb038cc05232ea1de33f82a97 | refs/heads/master | 2021-01-17T21:04:32.945469 | 2014-11-17T09:46:29 | 2014-11-17T10:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,309 | py | # Copyright 2011 VMware, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"joehuang@huawei.com"
] | joehuang@huawei.com |
cb9a8d46b6e83034c5f9c0d66e55bdebe20adcc4 | d191a04a3ded41175ea84ae88ebddb4f262b7fb1 | /Dynamic_program/47_dice_roll_simulation.py | 21a976620079f907ec469158fee53ad284a8bf02 | [] | no_license | YLyeliang/now_leet_code_practice | ae4aea945bae72ec08b11e57a8f8a3e81e704a54 | 204d770e095aec43800a9771fe88dd553463d2f7 | refs/heads/master | 2022-06-13T20:22:51.266813 | 2022-05-24T05:29:32 | 2022-05-24T05:29:32 | 205,753,056 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | # A die simulator generates a random number from 1 to 6 for each roll. You introduced a constraint to the generator
# such that it cannot roll the number i more than rollMax[i] (1-indexed) consecutive times.
#
# Given an array of integers rollMax and an integer n, return the number of distinct sequences that can be obt... | [
"k87974@163.com"
] | k87974@163.com |
4c9a02b5409c94b1bb4ea0e3c04bac9a3ea27a01 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-gsl/huaweicloudsdkgsl/v3/model/show_real_named_response.py | a878e053144f5e24e1385f5992007dfc2351944c | [
"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,870 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowRealNamedResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
e0fd8a8d176a8e39489490cca6af92f2274b1118 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch34_2019_06_03_00_25_27_762087.py | f2819fd0219c42be675bd7d5afd0366d356bc55b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | deposito= float(input("depósito inicial: "))
taxa= float(input("taxa de juros: "))
total=0
mes=1
contador=0
while contador<=24:
mes+=deposito*(1+taxa)
deposito=mes
print(mes, '.2f')
contador+=1
total+=deposito*taxa
print(total, '.2f') | [
"you@example.com"
] | you@example.com |
7216333c302abb5b4fec775da03c1c66a1cae875 | e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d | /a10sdk/core/rate/rate_limit.py | 929ad6636bdb4d3038f3d89fee75dae645facb41 | [
"Apache-2.0"
] | permissive | amwelch/a10sdk-python | 4179565afdc76cdec3601c2715a79479b3225aef | 3e6d88c65bd1a2bf63917d14be58d782e06814e6 | refs/heads/master | 2021-01-20T23:17:07.270210 | 2015-08-13T17:53:23 | 2015-08-13T17:53:23 | 40,673,499 | 0 | 0 | null | 2015-08-13T17:51:35 | 2015-08-13T17:51:34 | null | UTF-8 | Python | false | false | 1,402 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class RateLimit(A10BaseClass):
""" :param maxPktNum: {"description": "Max number of packets", "format": "number", "default": 10000, "optional": true, "maximum": 100000, "minimum": 1000, "type": "number"}
:param rl_type: {"optional": true, "enum": ["c... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
824b24517c09d539722766485dba21e97ce02513 | c2a03f1cdc338c9078534d8eb2213b214a251e73 | /Pollapp/models.py | 1f700be8d88cd216b815efd7141c4ea87d9d0ca1 | [] | no_license | risification/onlinde_test | 9a2db6a945734cc74ee8bc8408ac0ce39fa9d3b3 | 3e1e7e5aca4fa59db08f6394c85ce00652c0871b | refs/heads/master | 2023-03-14T08:24:53.574738 | 2021-03-05T17:22:08 | 2021-03-05T17:22:08 | 344,850,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from django.db import models
from datetime import date
# Create your models here.
class Poll(models.Model):
name = models.CharField(max_length=30)
date = models.DateField(auto_now_add=True)
points = models.IntegerField(default=0)
class Question(models.Model):
poll = models.ForeignKey(Poll, on_delete... | [
"sultangaziev01@bk.ru"
] | sultangaziev01@bk.ru |
df168a8023119311931f1cfac20f2fad47c90e2e | 19fa45bfc16ba8c4856c0c4de8a9491714e77c3c | /PythonLearningDemo/python_repos.py | a9c7a3f44e41344106bc87e5940b77fd2afdb8fc | [] | no_license | JoyUCUU/QA | 046971d84d13b75155b91201267f7374e93d30cf | acff032c481be1483e05cf478bb6f07039c4048f | refs/heads/master | 2021-01-18T12:54:46.219302 | 2018-07-23T12:10:59 | 2018-07-23T12:10:59 | 84,333,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import requests
import requests
import pygal
from pygal.style import LightColorizedStyle as LCS,LightenStyle as LS
#执行API调用并存储相应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
r = requests.get(url)
print("Status Code: " ,r.status_code)
#将API的响应存储到一个变量中
response_dict = r.json()
print... | [
"your_email@youremail.com"
] | your_email@youremail.com |
b0162723ed29495537ea9a9eec04cca7e4c319e7 | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/graphql/tax/tests/queries/test_tax_configuration.py | 73297b2699c9d21b07e645750f303df73f7fd48c | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 3,467 | py | import graphene
from saleor.tax.models import TaxConfiguration
from ....tests.utils import assert_no_permission, get_graphql_content
from ..fragments import TAX_CONFIGURATION_FRAGMENT
QUERY = (
"""
query TaxConfiguration($id: ID!) {
taxConfiguration(id: $id) {
...TaxConfiguration
... | [
"noreply@github.com"
] | jonserna.noreply@github.com |
923fbbb3366566898a71cf15294ef39fc1dc4139 | 6d0f6cc613c6f1a61b787c8cc1ef9a20895be40c | /django-cielo-exemplo/apps/carrinho/cart.py | 2568e3f07c18169eeefc6fa2e5797e2ed6b0e6dc | [
"Apache-2.0"
] | permissive | vitorh45/django-ecommerce-exemplo1 | 7f3f4887a118439b8de305044392e9baa381cf23 | c033ff2eca70230f676f8bd95d0bd5ecd89948a4 | refs/heads/master | 2016-09-15T18:42:38.600694 | 2013-09-08T05:23:26 | 2013-09-08T05:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | # -*- coding: utf-8 -*-
import datetime
import models
from django.utils.formats import number_format
from apps.cart import Cart as Cart_
from apps.cart.models import Cart, Item
class CustomCart(Cart_):
def add(self, product, size, quantity=1):
try:
item = models.Item.objects.get(... | [
"vitorh45@gmail.com"
] | vitorh45@gmail.com |
53503ee1218375df372c3de772acf5ad34434c8e | 372f1aa2cf1d7091d3c8116dfeb9284d9630cfa0 | /examples/lambda/s3/dl_s3_trial.py | ac1e6e176843b3dbfd27a1dfb07878af5c8aa996 | [
"Apache-2.0"
] | permissive | NLGithubWP/LambdaML | 8dbb3c4355aa899708cdefa5415659d0a950868e | 0afca7819e08632ba116fec8e102084e4040a47a | refs/heads/master | 2023-09-04T11:32:40.141624 | 2021-10-25T11:38:10 | 2021-10-25T11:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,095 | py | import os
import time
import math
import numpy as np
import pickle
import json
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import boto3
from utils.constants import Prefix, MLModel, Optimization, Synchronization
from storage import S3Storage
from communicator import S3Communicato... | [
"blue.jwjiang@gmail.com"
] | blue.jwjiang@gmail.com |
1babc7072766b27347596ff016edc48801b231a5 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/timber/testcase/firstcases/testcase2_014.py | be622f71f51754baf60fa67975a8405d081d50d6 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
222685f51ec56d50a935508b87c66af2db694e28 | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200322005203.py | dc127637a831840c9f18cc1ca90688e8540b41dc | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 1000
tabuIteration = '1000'
tabuDuration = '10'
numberOfCities = '50'
final_solution = []
list_coverage = []
local_minimum = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterati... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
f3e047c6d5a259010568b73807716e530bc4005d | 3481023b43028c5ee9520a8be0978e914bdcb548 | /manga_py/providers/mang_as.py | 27238087ebc8dca9f1a40bcd29d161ac214b695c | [
"MIT"
] | permissive | manga-py/manga-py | 18f6818d8efc96c3e69efee7dff3f3d6c773e32a | 0db97123acab1f2fb99e808b0ba54db08977e5c8 | refs/heads/stable_1.x | 2023-08-20T03:04:06.373108 | 2023-04-16T08:28:15 | 2023-04-16T08:28:15 | 98,638,892 | 444 | 56 | MIT | 2023-07-27T13:21:40 | 2017-07-28T10:27:43 | Python | UTF-8 | Python | false | false | 1,185 | py | from sys import stderr
from manga_py.provider import Provider
from .helpers.std import Std
class MangAs(Provider, Std):
def get_chapter_index(self) -> str:
idx = self.re.search('/manga/[^/]+/([^/]+)', self.chapter).group(1)
return idx.replace('.', '-')
def get_content(self):
return ... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
00d37ef5a44949f4d28a68655229c1733d6e2627 | da687718aa8ce62974090af63d25e057262e9dfe | /cap08-numeros/03_random.py | db2785183561b4bbf0cdc15b8b4c5a6a79ce731f | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | #!/usr/bin/env python3
# importando o modulo random
import random
# random numbers
print(random.random()) # imprime um numero entre 0 e 1
decider = random.randrange(2) # 0 OU 1
if decider == 0:
print('HEADS')
else:
print('TAILS')
print(f'Decider is:', decider)
print("You rolled a " + str(random.randrange(1,... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
02c87dfe25889db419238131737049196a75d3fd | f36999827ad651b5ff2fd4b20d7c0245d5f30cfe | /twi_search_sht_01.py | 7912ed0564577b9c68a69549a85199199c5ca20f | [] | no_license | axuaxu/twi-src | cbcfe6891539d568c9ecece0db531984d7552094 | 3347c7d4ebd94c3399a7427427745fa73fe8463e | refs/heads/master | 2021-07-11T09:07:58.013503 | 2017-10-15T17:15:10 | 2017-10-15T17:15:10 | 105,077,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,568 | py | import tweepy
from credentials import *
import sys
#import jsonpickle
import os
import codecs
import datetime
import json
auth = tweepy.AppAuthHandler(consumer_key, consumer_secret)
#auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth, wait_on_rate_limit=True,
wait_on_rate_limit_notif... | [
"axu0110@gmail.com"
] | axu0110@gmail.com |
f5eb98bcd90970ce6adcab0d5a97253af6e5eec1 | afedbd0af6dff5a4fca8bab92e2a5574d9e541ca | /venv/lib/python3.5/site-packages/pytube/streams.py | bb3d1290a3817b2494579370fb2dd5a988b350ba | [] | no_license | wagolemusa/web_scrapping | d847b71ded82f471f28daed6083667eef450b21d | 794d24d1492d8ebeb9ffab16d1b185c6cab33c74 | refs/heads/master | 2022-12-31T22:31:02.407179 | 2020-10-21T09:27:39 | 2020-10-21T09:27:39 | 305,924,696 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,621 | py | # -*- coding: utf-8 -*-
"""
This module contains a container for stream manifest data.
A container object for the media stream (video only / audio only / video+audio
combined). This was referred to as ``Video`` in the legacy pytube version, but
has been renamed to accommodate DASH (which serves the audio and video
sep... | [
"homiemusa@gmail.com"
] | homiemusa@gmail.com |
e87e47c309e8b06fd93c6d7cc597f5ad45defb4c | a152297e3e61f99a6e48570f39a92f5bae44bfce | /read_csv_dtype.py | 533219d206b37a32af0682be7909bd61c27208a4 | [] | no_license | Syaza2007/pandas | 5ce73f2a15425619344ea7d6d69341bea4716fe3 | 3096bccbc58d4bb3cb1e5a62bb759aef55a97983 | refs/heads/master | 2020-06-09T02:58:15.913925 | 2017-09-12T17:08:34 | 2017-09-12T17:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | df = pd.read_csv(inFile, dtype={'state':object,'county':object,'tract':object}) | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
f7793911f3d5f2ab90020e6656f60bbb34963128 | 9f594f95fabf672df31c451ef758f1dd979d20e4 | /agsci/seo/__init__.py | 208daa14b09f51282fb42de2b027d9d6443ba431 | [] | no_license | tsimkins/agsci.seo | 0d37fea8f8a736a5109e050bbb82e90e4233a0a3 | 39b31b5df21961cbd278851dc3a53f71937fa84a | refs/heads/master | 2020-12-30T10:36:47.454391 | 2018-06-18T14:52:43 | 2018-06-18T14:52:43 | 26,601,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | from Products.CMFCore.utils import getToolByName
from Products.PythonScripts.Utility import allow_module
from zope.i18nmessageid import MessageFactory
from DateTime import DateTime
seoMessageFactory = MessageFactory('agsci.seo')
allow_module('agsci.seo')
exclude_types = [
'Cardinality Constraint',
'Content R... | [
"trs22@psu.edu"
] | trs22@psu.edu |
20e5c44e7c4bffe2d3c42c00cb01c58c6a6f4c9f | d886bbef4caafefc1796e77d41d7c7fdddbb4794 | /mb/__init__.py | 22b50fb108b7696e26f4c3bf7d0d376a66a26c1f | [] | no_license | coryshain/pyModelBlocks | 4864a23e4e8452340797fdbc60338ad5e579d14f | ba25bf5d5279962675763f3c30b6452dbae15d25 | refs/heads/master | 2020-08-26T21:30:55.126202 | 2019-11-11T21:12:38 | 2019-11-11T21:12:38 | 217,154,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from mb.util.general import *
from mb.core.general.core import *
from mb.core.general.text import *
from mb.core.general.table import *
from mb.core.general.tree import *
from mb.core.parsing.core import *
from mb.core.regression import *
from mb.core.regression.lmer import *
from mb.core.regression.cdr i... | [
"cory.shain@gmail.com"
] | cory.shain@gmail.com |
f9216e0b85abadad6d47ea519c87ced608c69d2a | 897802abf4ee5c7267de3eb5e321cc931898e2f6 | /python/python/songTian/part0_base/week02/c231_z_draw/__init__.py | 3186d069bc19e4cc6cb986cd688cddf78bfa3f9b | [] | no_license | aojie654/codes_store | 0527c7a7729b472e8fd2fd67af462cf857970633 | ed71b6266b2d2b5ddefadcb958f17695fb9db6cf | refs/heads/master | 2021-07-15T17:04:33.591673 | 2021-07-03T14:42:30 | 2021-07-03T14:42:30 | 132,343,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import turtle
# turtle.left(45)
turtle.penup()
turtle.bk(200)
turtle.pendown()
turtle.fd(150)
turtle.right(135)
turtle.fd(300)
turtle.left(135)
turtle.fd(150)
turtle.penup()
turtle.goto(100,150)
turtle.pendown()
turtle.circle(50,360)
| [
"aojie654@live.cn"
] | aojie654@live.cn |
f09ddbf128cad3f9efabae34ddc77bf3a77764f0 | 078918048099dfa2454cfac2d449ea3d77fbec55 | /452-minimum-number-of-arrows-to-burst-balloons.py | 370660e7078631a2893e6cedf203d00f19083f7a | [] | no_license | DmitryVlaznev/leetcode | 931784dcc4b465eebda7d22311f5bf5fa879f068 | b2a2afdfc725330545c9a2869fefc7d45ec594bc | refs/heads/master | 2023-06-10T05:42:34.992220 | 2023-06-05T09:54:10 | 2023-06-05T09:54:30 | 241,064,389 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | # 452. Minimum Number of Arrows to Burst Balloons
# There are some spherical balloons spread in two-dimensional space. For
# each balloon, provided input is the start and end coordinates of the
# horizontal diameter. Since it's horizontal, y-coordinates don't
# matter, and hence the x-coordinates of start and end of t... | [
"dmitry.vlaznev@datadvance.net"
] | dmitry.vlaznev@datadvance.net |
e85356b804f2734ce5dbfaf2d8f1d7ce277df17f | 78743e6b4f07a466d9b43e462f2d687443bf8538 | /phkit/english/__init__.py | 3ad48a32dab7797f62fdaa4cf8cbdc65b881d773 | [
"MIT"
] | permissive | tomguluson92/phkit | 9bac08019cc9f742ac82fa24a51e33448bb735da | ff6cd9114aa8a3737c05f0d4bba5d4da766770a0 | refs/heads/master | 2022-10-04T19:13:03.829071 | 2020-06-01T03:10:59 | 2020-06-01T03:10:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,789 | py | """
## english
from https://github.com/keithito/tacotron "
Cleaners are transformations that run over the input text at both training and eval time.
Cleaners can be selected by passing a comma-delimited list of cleaner names as the "cleaners"
hyperparameter. Some cleaners are English-specific. You'll typically want t... | [
"kqhyj@163.com"
] | kqhyj@163.com |
283beabf89838afcd66883c346c7a93bfba3840a | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day6_data_structure/04-代码/day6/102_元组.py | 2a44d5053791d093d0eafa1f4fa309c5bf6d9cd2 | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | """
演示元组
"""
tuple1 = (1,2,3,"itcast","黑马程序员",True,False)
print(tuple1)
tuple2 = (100,)
print(tuple2)
# tuple3 = ("itcast") #不是元组
# print(type(tuple3))
# print(tuple1[4])
# tuple1[4] = "heima"
for data in tuple1:
print(data) | [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
9b371d5b80d4dc46d3a0bcdd75543261fb3c344c | 29d09c634ffdd8cab13631d62bc6e3ad00df49bf | /Algorithm/swexpert/1234_비밀번호.py | d93923dd1ba591415e9c6fd6a7dc893fdd765f2b | [] | no_license | kim-taewoo/TIL_PUBLIC | f1d32c3b4f46344c1c99f02e95cc6d2a888a0374 | ae86b542f8b1805b5dd103576d6538e3b1f5b9f4 | refs/heads/master | 2021-09-12T04:22:52.219301 | 2021-08-28T16:14:11 | 2021-08-28T16:14:11 | 237,408,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | T = 10
for t in range(1, T+1):
n, s = input().split()
n = int(n)
s = list(s)
while True:
flag = False
i = 1
while i < n:
if s[i-1] == s[i]:
flag = True
s = s[:i-1] + s[i+1:]
n -= 2
else:
i... | [
"acoustic0419@gmail.com"
] | acoustic0419@gmail.com |
3f5f7777bc8920d17095f915f96a0d7b1b008d6b | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /plugins/terminal/nxos.py | f093b70b69edb7d451e1ffb889970913d6c3de30 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
d6c566b32dfe352180d1386f041b191f852b2d05 | ca66a4283c5137f835377c3ed9a37128fcaed037 | /Lib/site-packages/sklearn/datasets/tests/test_lfw.py | ef3e181b7ea130652cd413504429c6cda3597051 | [] | no_license | NamithaKonda09/majorProject | f377f7a77d40939a659a3e59f5f1b771d88889ad | 4eff4ff18fa828c6278b00244ff2e66522e0cd51 | refs/heads/master | 2023-06-04T20:25:38.450271 | 2021-06-24T19:03:46 | 2021-06-24T19:03:46 | 370,240,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,768 | py | """This test for the LFW require medium-size data downloading and processing
If the data has not been already downloaded by running the examples,
the tests won't run (skipped).
If the test are run, the first execution will be long (typically a bit
more than a couple of minutes) but as the dataset loader is leve... | [
"namithakonda09@gmail.com"
] | namithakonda09@gmail.com |
604599cedc334aac2215f97356a0b6f4335a8b7e | effce116340b7d937bd285e43b49e1ef83d56156 | /data_files/077 Word Search.py | df667d96008f38fbe8068603ea7dac53fef15da9 | [] | no_license | DL2021Spring/CourseProject | a7c7ef57d69bc1b21e3303e737abb27bee3bd585 | 108cdd906e705e9d4d05640af32d34bfc8b124da | refs/heads/master | 2023-04-11T18:52:30.562103 | 2021-05-18T09:59:59 | 2021-05-18T09:59:59 | 365,733,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py |
__author__ = 'Danyang'
class Solution:
def exist(self, board, word):
if not board:
return
m = len(board)
n = len(board[0])
visited = [[False for _ in xrange(n)] for _ in xrange(m)]
for i in xrange(m):
for j in xrange(n):
... | [
"1042448815@qq.com"
] | 1042448815@qq.com |
c800922df670b98c575e1b37bf3ed5a8a111b60b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/remote_protection_group_response.py | 7dc6d86902296b0ff666f551e0f931da5d595eaf | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,024 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
34bdda6befcd530668ce884b66c6f71627ad7812 | 06b1e6b254d0be9f42f4832f94f5ba225ea54b80 | /tests/test_commands/test_deps_tree.py | b9d8355d47a3cf352de388aef766d3d2b9ee8f14 | [
"MIT"
] | permissive | b0g3r/dephell | 9481b7023b65d94bea5825e9784907c6f57f6d79 | 40f3451bf5958284af021fbd5486ad71c03efc25 | refs/heads/master | 2020-06-13T16:24:41.404188 | 2019-06-26T17:16:15 | 2019-06-26T17:16:15 | 194,709,388 | 0 | 0 | null | 2019-07-01T16:38:57 | 2019-07-01T16:38:56 | null | UTF-8 | Python | false | false | 763 | py | # built-in
import json
from pathlib import Path
# project
import pytest
from dephell.commands import DepsTreeCommand
from dephell.config import Config
@pytest.mark.allow_hosts()
def test_deps_tree_command(temp_path: Path, capsys):
config = Config()
config.attach({
'level': 'WARNING',
'silent'... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
97e53264bee22412d3530524e5d9112807c0a671 | ca299cec2cd84d8b7c2571fa2fdf7161e66b8fe7 | /private_server/guard/CELL-34/Q-33/34-33.py | 259448e0006f40ecbc27700fd825b133d9cb27bf | [] | no_license | benmechen/CodeSet | ca57d4a065ac4fc737749f65cb5aa1011d446a88 | f5a4bf627a9a8efc76a65ae58db63a973fedffb7 | refs/heads/master | 2021-07-16T14:23:36.355491 | 2019-12-02T13:58:27 | 2019-12-02T13:58:27 | 225,385,245 | 1 | 0 | null | 2021-06-22T15:37:57 | 2019-12-02T13:47:09 | JavaScript | UTF-8 | Python | false | false | 148 | py | from datetime import datetime
now = datetime.now()
year = now.year
month = now.month
day = now.day
print(now)
print(year)
print(month)
print(day) | [
"psybm7@nottingham.ac.uk"
] | psybm7@nottingham.ac.uk |
108dfa96dc0b6497ddfb5addccc22f6f7974880a | 138f2550bb088a0597e1e71124d9ae32b1fe59c9 | /xbrr/edinet/models/documents.py | 8b15506df1c609b1ab2e24c2fd4dc3f37fbd524f | [
"MIT"
] | permissive | chakki-works/xbrr | 9009539e1821c3d9c815f694eb52158ccbbeeb78 | a9783acbb6c23eb0be0e1fbfb47e5b0b0e2cbfb8 | refs/heads/master | 2022-07-22T22:30:17.054418 | 2021-06-16T13:27:40 | 2021-06-16T13:27:40 | 182,622,738 | 23 | 5 | MIT | 2022-07-15T18:42:36 | 2019-04-22T04:26:21 | Python | UTF-8 | Python | false | false | 999 | py | from xbrr.edinet.models.metadata import MetaData
from xbrr.edinet.models.document import Document
class Documents():
"""Document lists"""
def __init__(self, metadata: MetaData = None, documents: list = ()):
"""
Keyword Arguments:
count {MetaData} -- Metadata (default: {None}).
... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
406a7ce5aac74ea320d07ca700ccb30e3dee2c7f | 8ae28de60c84c4f36d29289bad14cf8bbb4be1ba | /bot/units/models/terran/cyclone.py | b9eef5eb284ad781ced60ff5809439fd0b96b40d | [
"MIT"
] | permissive | ljuti/raynors-rangers | 05d0be6e5dcb9e480f6a75bf0b7fe216f05da8d1 | 1f9f3a39aa62c8956987e322d690318c7b67e283 | refs/heads/master | 2023-04-30T23:06:26.893739 | 2019-05-19T20:21:49 | 2019-05-19T20:22:08 | 169,393,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | class CycloneModel():
def __init__(self):
self.supply = 3
self.cargo_size = 3
self.health = 180
self.range = 4
self.range_upgraded = 6
self.sight = 11
self.speed = 4.13
self.ground_attack = True
self.aerial_attack = True | [
"ruby@laurijutila.com"
] | ruby@laurijutila.com |
5799c479daf151abfecc6cf23b20949168fe1702 | 7dbb60661d3d8b8e0ded9d3febd21032e5c281d5 | /Pycon2009/excell/xlrd/open.py | c338f5150dc90a9ed67d5717dfc0ca0cd8a1fb0a | [] | no_license | cabecada/pydanny-event-notes | dc8175196e936a8c97b9009281c184beecd28778 | cda2a32cafe96701f4e728d4802ef3f3d9d5e9a0 | refs/heads/master | 2021-01-24T04:54:14.991218 | 2018-01-24T23:45:37 | 2018-01-24T23:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from mmap import mmap,ACCESS_READ
from xlrd import open_workbook
print open_workbook('simple.xls')
with open('simple.xls', 'rb') as f:
print open_workbook(
file_contents=mmap(f.fileno(),0,access=ACCESS_READ)
)
aString = open('simple.xls','rb').read()
print open_workbook(file_contents=a... | [
"pydanny@gmail.com"
] | pydanny@gmail.com |
d5bcf06456df9f6bf43807cb045a5cb3a0d9f605 | 94f1711fc8b25f3c027ee64a1c44e7a7c9be9972 | /examples/plot.py | 0df8728bfdbe26d21fe46b36dc700454caa2dd9e | [] | no_license | ALBA-Synchrotron/sls-detector | b5211a98800c2d271569b775bc1e48224ee89313 | 961d33152af298eb4cbd311d9d185683ba992199 | refs/heads/master | 2023-07-01T14:26:11.152686 | 2021-07-30T10:06:14 | 2021-07-30T10:06:14 | 262,325,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import argparse
import threading
import pyqtgraph
from pyqtgraph.Qt import QtGui, QtCore
import sls.client
class QDetector(QtCore.QObject):
newFrame = QtCore.Signal(object)
def run(options):
app = QtGui.QApplication([])
plot = pyqtgraph.plot()
curve = plot.plot()
plot.show()
mythen = sls... | [
"coutinhotiago@gmail.com"
] | coutinhotiago@gmail.com |
157381b94215aba0360d4819a7269f9adf6b9595 | 1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e | /Utilities/python/rootbindings.py | 675032fc480bd291fe0ad8c11edb5d6bdaab6d34 | [] | no_license | uwcms/FinalStateAnalysis | f2be318546728621676a4b90ed2678b2560c94e6 | bcb164a8e27d459a9ac438780f6c8730d3e856bf | refs/heads/miniAOD_9_4_0 | 2022-11-09T01:28:52.199025 | 2019-03-15T19:25:10 | 2019-03-15T19:25:10 | 5,201,989 | 5 | 32 | null | 2020-11-19T17:02:32 | 2012-07-27T07:51:18 | Python | UTF-8 | Python | false | false | 259 | py | import ROOT
## ROOT.gSystem.Load("libFinalStateAnalysisStatTools")
## ROOT.gSystem.Load('libFinalStateAnalysisTagAndProbe')
ROOT.gSystem.Load('libFinalStateAnalysisUtilities')
#ROOT.gSystem.Load('$CMSSW_BASE/lib/$SCRAM_ARCH/libHiggsAnalysisCombinedLimit.so')
| [
"Silvia.Taroni@cern.ch"
] | Silvia.Taroni@cern.ch |
6b5df35f09ed114b1f7f501d8fe3b0dc271e5838 | 03778e9985613ffccd8e2076ed51e86e86f997b6 | /pysad/models/standard_absolute_deviation.py | 169b9170f9ec8f4192f841274f51c846c746ec8d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isci1102/pysad | e3fe263a075fc51ee2bce548da458222ec5a3b7a | dff2ff38258eb8a85c9d34cf5f0b876fc1dc9ede | refs/heads/master | 2023-03-18T03:33:19.345541 | 2020-09-08T01:32:29 | 2020-09-08T01:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | from pysad.core.base_model import BaseModel
from pysad.statistics.average_meter import AverageMeter
from pysad.statistics.median_meter import MedianMeter
from pysad.statistics.variance_meter import VarianceMeter
class StandardAbsoluteDeviation(BaseModel):
"""The model that assigns the deviation from the mean (or ... | [
"yilmazselimfirat@gmail.com"
] | yilmazselimfirat@gmail.com |
1472d32a4b5d251e86c90bb8047f947c76ee319e | 31ba27461d50fcd85027318eacefa04d828feb4b | /addons/web-addons/__unported__/web_percent/__init__.py | 658c115ad64576f6692ee844b890b5666bbf1ba0 | [] | no_license | TinPlusIT05/tms | 5f258cec903d5bf43c26b93fc112fce0b32de828 | 673dd0f2a7c0b69a984342b20f55164a97a00529 | refs/heads/master | 2022-12-04T02:11:54.770745 | 2019-09-23T07:18:11 | 2019-09-23T07:18:11 | 210,278,672 | 0 | 0 | null | 2022-11-22T00:30:37 | 2019-09-23T06:18:48 | Python | UTF-8 | Python | false | false | 996 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014 TeMPO Consulting (<http://www.tempo-consulting.fr>).
#
# This program is free software: you can redistribute it and/or modify
# it under th... | [
"Tinplusit05@gmail.com"
] | Tinplusit05@gmail.com |
c9e7539b202b1738a137cfccd61c1f9be308fe28 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/isis/levels/level/traffic_engineering/state/__init__.py | a68fd130b13467316ffbc9fb71519d044dcfca4e | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,682 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
95ec8fd7a6bd143e8448f66896fba383bddf5373 | e7d5db388df22905d3a00eaf970acbcf1c839bab | /python/.old3/student.py | 8e4f20257fe54f0a6719c69fc0c6d7f0ee7fff92 | [] | no_license | seanho00/twu | 0c47afe4bfb47bb86c81f4871a8e5973dbc843a2 | 5e97bd08c8a281f77c16a1ae890d234972a4622e | refs/heads/master | 2020-12-25T15:08:09.413702 | 2016-08-30T04:52:55 | 2016-08-30T04:52:55 | 66,873,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | """Definitions for a student info record.
Sean Ho for CMPT140 demo.
"""
class Date:
def __init__(self, y=2000, m=1, d=1):
"""Setup a new date object,
optionally with the given year/month/day.
pre: y/m/d must be integers in the appropriate range.
See also: datetime.date:
... | [
"github@seanho.com"
] | github@seanho.com |
4d42a0286cd3434b0e825806b741203dfc7d2dc3 | a5fcfbef729c372d3a5396619c8ab03085d9fdb1 | /pylib/cmdutils.py | ce1c70348424691f2a26817d0b7c833ec48d70c9 | [] | no_license | decli/winterpy | 88bb127729937885d7ae021e2b6439d8dd8bdc00 | 082cf9f30c66a33291b4a7737f91e90990c59d92 | refs/heads/master | 2021-01-18T08:43:06.804938 | 2014-06-01T10:41:15 | 2014-06-01T10:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # vim:fileencoding=utf-8
'''
call external tools to do things.
'''
import subprocess
from functools import lru_cache
@lru_cache(maxsize=20)
def lookupip(ip, cmd='cip'):
return subprocess.getoutput(subprocess.list2cmdline([cmd, ip])).replace('CZ88.NET', '').strip() or '-'
def check_mediafile(file):
'''intergrity... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
f4b639cb8c07e02fec8aa6043412392fe54c6158 | a8d68074db5c2b2697650ed0281979d3e00cf5a8 | /Nyspider/www.fang.com/get_hourse.py | 2f84d0325f7b83294a58f290281d20927869f256 | [] | no_license | 15807857476/bogdata-2 | 9595609ea2ae5ae0a48c511f911df2498456467e | 1934cdfa234b77ca91e349b84688db113ff39e8c | refs/heads/master | 2023-05-26T19:10:18.439269 | 2019-05-24T02:50:41 | 2019-05-24T02:50:41 | 188,327,526 | 3 | 1 | null | 2023-05-22T21:37:27 | 2019-05-24T00:53:28 | Python | UTF-8 | Python | false | false | 5,243 | py | #coding:utf-8
import requests
from bs4 import BeautifulSoup
import xlwt3
import threading
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-US,en;q=0.5",
"Connection": "keep-alive",
"User-Agent": "Mo... | [
"2397955090@qq.com"
] | 2397955090@qq.com |
daa66efa2fa8e1a639c548a211243e733270d3e1 | 63ace5832d453e325681d02f6496a0999b72edcb | /benchmark/tests/ed25519_blake2b_tests.py | 5919601af41a2317c191c4864206a57fd69662b9 | [
"MIT"
] | permissive | ebellocchia/bip_utils | c9ec04c687f4247e57434319e36b2abab78f0b32 | d15c75ddd74e4838c396a0d036ef6faf11b06a4b | refs/heads/master | 2023-09-01T13:38:55.567370 | 2023-08-16T17:04:14 | 2023-08-16T17:04:14 | 251,130,186 | 244 | 88 | MIT | 2023-08-23T13:46:19 | 2020-03-29T20:42:48 | Python | UTF-8 | Python | false | false | 1,606 | py | # Copyright (c) 2021 Emanuele Bellocchia
#
# 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,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
9e4fc391a584e7ebf2c2497e63bc5969b3f98b65 | 39dc00c9ac403d93800781b75c4d28079d66c407 | /03_reaction_roles.py | c1747c27ec95a2a25fd6d6cafc8a3528a656a854 | [] | no_license | aleks969/Discord-Bot-Tutorials | 631352c2f030471c2b956dfb820c59944fd2cee3 | 96b4357cf7f520b10de2823a48dd281525059ebf | refs/heads/master | 2023-08-15T00:09:48.680245 | 2021-09-28T04:27:32 | 2021-09-28T04:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import discord
"""
client = discord.Client()
@client.event
async def on_ready():
print('Ready')
client.run('')
"""
# https://discordpy.readthedocs.io/en/latest/intents.html
# https://discord.com/developers/docs/topics/gateway#gateway-intents
# https://discord.com/developers/docs/topics/gateway#list-of-intents
... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
054ace37618a4a5d09d7b5c5c11ecb90b4ad3f39 | b6a31ec10b39a3dbae183ba40c42078cadf88946 | /256. Paint House.py | f7d21cd7ee9430bc39d12fadd63f2ffe33b083ef | [] | no_license | QIAOZHIBAO0104/My-Leetcode-Records | 69fabd11b279f08861cd644973e51bf664da0d90 | 882724c8d50b2f21193c81e5072c31385c5e6b8e | refs/heads/main | 2023-07-11T00:17:02.368441 | 2021-08-07T16:19:45 | 2021-08-07T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | '''
https://leetcode.com/problems/paint-house/
There is a row of n houses, where each house can be painted one of three colors: red, blue, or green.
The cost of painting each house with a certain color is different. You have to paint all the houses such that no two adjacent houses have the same color.
The cost of pai... | [
"noreply@github.com"
] | QIAOZHIBAO0104.noreply@github.com |
7e1c7bee1e6cb127c838be3b6a3b85c4cb6533af | 9c148df61545c38f0cbdd00fba3f504458a382b1 | /nes_server.py | 59b8c7d574cdd1cff7357b7b6fe2ea0fd566ad3a | [] | no_license | fafaschiavo/contrAI | 4244d5be76bba35a1f8662a5a95dadc099e0de3e | 3900d10f28afefe492be88948d0cdcdac3d3c537 | refs/heads/master | 2021-04-28T13:25:59.718148 | 2018-03-10T20:57:56 | 2018-03-10T20:57:56 | 122,105,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import socket
import json
import os
import glob
from threading import Thread
import time
import sys
import os
import subprocess
import cv2
sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), "subfolder"))
screenshots_folder = 'screenshots'
keep_socket_alive = True
data_received = ''
data_to_send = False
class ... | [
"fayschiavo@gmail.com"
] | fayschiavo@gmail.com |
1f735558d3abd06f0aa70ca44547176b357637e3 | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/config/tests/test_manager.py | 364c3375e7688e994f5e5540acb1efa9f0e347b9 | [
"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 | 3,509 | py | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""Tests for config/manager.py."""
# Standard library imports
import os
import os.path as osp
import shutil
import tempfile
# Third party imports
import pytest
# L... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
46a8322fa4b383f6245a82c54d704d3bd9fcdc76 | 7b35116856a8a2dfcb356245e739236d011a751d | /jesse/indicators/hma.py | 8be9d57b17e466720683ee3e67feb482e4f8aed1 | [
"MIT"
] | permissive | shaunstanislauslau/jesse | a13fa212edd3ff1fa4b1aa743e9ec03efab4e091 | 4a7658813f765287f5aad99b8619d98eac5bfe7b | refs/heads/master | 2023-07-20T14:39:25.232089 | 2021-03-30T16:32:39 | 2021-03-30T16:32:39 | 353,088,903 | 0 | 0 | MIT | 2023-07-06T22:41:29 | 2021-03-30T17:39:46 | null | UTF-8 | Python | false | false | 748 | py | from typing import Union
import numpy as np
import tulipy as ti
from jesse.helpers import get_candle_source, same_length, slice_candles
def hma(candles: np.ndarray, period: int = 5, source_type: str = "close", sequential: bool = False) -> Union[
float, np.ndarray]:
"""
Hull Moving Average
:param ca... | [
"mysecondworld@firesurf.de"
] | mysecondworld@firesurf.de |
c21aca46aeb7e6aacb91b28c29f10ac5d5f1e5ee | 35f9def6e6d327d3a4a4f2959024eab96f199f09 | /developer/lab/OpenAi/lab/main.py | e816f070d1384fa0cb602ade37d792dc8a2d5945 | [
"MIT",
"CAL-1.0-Combined-Work-Exception",
"CAL-1.0",
"CC-BY-SA-4.0",
"LicenseRef-scancode-free-unknown"
] | permissive | arXiv-research/DevLab-III-1 | ec10aef27e1ca75f206fea11014da8784752e454 | c50cd2b9154c83c3db5e4a11b9e8874f7fb8afa2 | refs/heads/main | 2023-04-16T19:24:58.758519 | 2021-04-28T20:21:23 | 2021-04-28T20:21:23 | 362,599,929 | 2 | 0 | MIT | 2021-04-28T20:36:11 | 2021-04-28T20:36:11 | null | UTF-8 | Python | false | false | 122 | py | from rl.experiment import run
from rl.util import args
if __name__ == '__main__':
run(args.experiment, **vars(args))
| [
"noreply@github.com"
] | arXiv-research.noreply@github.com |
09b390ae6289622e3995c1e7a72ff45395efd0e8 | 11b420a9e6dbe371167227f41ef8e344e3382612 | /ConvNets/FINAL_Averaged_Experiments/N=3000/Q=10/Max_Entropy/Max_Entropy_Q10_N3000.py | 730e0fddd928e420fb8156c8c7c3c1615cbc7e43 | [
"MIT"
] | permissive | tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks | 7092386758b68dc922efaa2c2eba055930bf2896 | f8b68038bd3b97c473e9c1de6b6cdee4538021f4 | refs/heads/master | 2021-01-13T06:57:19.343775 | 2016-11-02T12:22:16 | 2016-11-02T12:22:16 | 81,338,773 | 1 | 0 | null | 2017-02-08T14:34:15 | 2017-02-08T14:34:15 | null | UTF-8 | Python | false | false | 11,816 | py | from __future__ import print_function
from keras.datasets import mnist
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers i... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
4feb30114b2c476812f4f003b8dcdf252ef3718e | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/demo1_20201107181245.py | 2f6a553cf350e59408c1cbdc619074b719aa1300 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # import sys
# import yaml
# from demo import search
# from demo import a
# from demo import search1
# search("A")
# print(a)
# search1(12)
# print(dir())
# print(sys.path)
# name = "zhang"
# age = 12
# print("my name is:{0},my age is:{1}".format(name,age))
# list1 = [1,3,2]
# dic1 = {"a":1,"b":2}
# print("List ... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
594eea4c930aca5711b3e1ffab4751c1af242b54 | f35e820678dd9ba88195abf8739826222236736e | /client/main_window.py | 8dbe6be3a4bda3d3d95751e68912d2e27cf10e79 | [] | no_license | spoliv/Messenger | a58065b13cdfb7f41e4f0213ccc9383f4e4b1e4c | ecb1bb2559cc5a8b3f537f510eafb2c21f2a2fe5 | refs/heads/master | 2022-12-24T21:30:17.695897 | 2020-09-28T15:58:03 | 2020-09-28T15:58:03 | 299,356,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,793 | py | from common.constants import *
from common.errors import ServerError
from client.start_dialog import UserNameDialog
from client.transport import ClientTransfer, send_message
from client.database import ClientDatabase
from client.del_contact import DelContactDialog
from client.add_contact import AddContactDialog
from cl... | [
"spoliv@rambler.ru"
] | spoliv@rambler.ru |
3d0cfb8549a4333779da65805f245c044c3a7739 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncai.py | 87e46160893ad96819ed62acdeb66ef9cf5cbad3 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 219 | py | ii = [('LyelCPG2.py', 1), ('MarrFDI.py', 1), ('LeakWTI2.py', 2), ('LeakWTI3.py', 5), ('PettTHE.py', 2), ('WilkJMC2.py', 1), ('GodwWLN.py', 1), ('LeakWTI.py', 2), ('BachARE.py', 1), ('MackCNH2.py', 1), ('SomeMMH.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
8c9a9f741726da776b4308350bc36ee2122176dc | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/RygelServer/HTTPGetHandlerPrivate.py | abf284586181e910e051275ee24086b26ae3ec76 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,491 | py | # encoding: utf-8
# module gi.repository.RygelServer
# from /usr/lib64/girepository-1.0/RygelServer-2.6.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attrib... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
d035d1dae19cfea09c2da4df135bd31e7906ddb9 | a4bb0cde9697aa0c85375764d8353da0e1422525 | /mapping_features_fn.py | a369e667d81b360cd2deaeb73b8053108bdcc8fc | [] | no_license | JanzYe/KDD_CUP_2012_Track2 | 5dd529eb1ca0592ab2ea71bda9416a756fc3a0b5 | 027f4a6025814278c82f68da1cb19ef8f3fb1f1a | refs/heads/master | 2020-04-16T06:23:21.419074 | 2019-01-14T06:55:29 | 2019-01-14T06:55:29 | 165,344,529 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | '''
This scripts should run on raw user feature files.
'''
# total number of records in training.txt is almost 150000000, exactly 149639105
# divide the training.txt to feature_mapped_train and feature_mapped_valid
# feature_mapped_train(120000000), feature_mapped_valid(30000000)
# data_descriptionid, data_purchased... | [
"1173865843@qq.com"
] | 1173865843@qq.com |
69ff0d97a85477dcd1228d5e42b4be7da7365da2 | 0e25dc15ae9efce8bfd716d4d2041da07767968b | /qbench/benchmarks/QLib/OPENQL_converted/benstein_vazirani_41b_secret_32.py | 245553254e73295a001dbe1eb9cb042f6d2efc45 | [] | no_license | alxhotel/crossbar-bench | f608fc0062b4f8a5162ec33d61c0204aaf27b6ff | 3bf7536e7697d29c3089b0ba564ba22d39698b88 | refs/heads/master | 2021-07-13T16:06:50.085838 | 2020-10-04T23:39:05 | 2020-10-04T23:39:05 | 213,409,122 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"alxmorais8@msn.com"
] | alxmorais8@msn.com |
5871936defe13c8c76a1e5180211aed6b730fb84 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02939/s874669540.py | a4a0e29c427f34abd6e8938f8a85118db21cf80c | [] | 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 | 211 | py | s = str(input())
S = []
temp = ''
for c in s:
temp += c
if S:
if S[-1] != temp:
S.append(temp)
temp = ''
else:
S.append(temp)
temp = ''
print(len(S))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
50413ba7b2f7b0d8c96b23ca8c6e6550f4a489e3 | 259453140d6b563fc0c280f0922601a54a2cb2c2 | /CMGTools/Production/scripts/dataset.py | 1f44ad56b3e945725420679cfd494be56a9a079b | [] | no_license | wangmengmeng/WHAnalysisPackage | f56b4a128f50801409828ca38d0f26e199201dd8 | 7eb1bf3b4e77579c4362396ca5e594bc93a41f2b | refs/heads/master | 2021-01-17T14:31:11.701436 | 2014-06-05T16:07:38 | 2014-06-05T16:07:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | #!/usr/bin/env python
import os
import fnmatch
from CMGTools.Production.dataset import createDataset
if __name__ == '__main__':
import sys
from optparse import OptionParser
import pprint
parser = OptionParser()
parser.usage = "%prog [options] <dataset>\nPrints information on a sample."
p... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
69dbcf71f1bbf8f6d7c05e580c0952e58ee38dca | 8760766a314dc1cb126b235cd2528fd39963a5bf | /database_ui/venv/Lib/site-packages/pyrogram/raw/functions/stats/get_megagroup_stats.py | 5e001bdde3d2ddacb375aef3400530946f88538d | [] | no_license | sunliangjun/database_demo | bb3eeaf0523e35f1b5c2c4d80ee68197f6e60715 | f7a1edc9a0eb9ce56ec76c5be67bbcbd66e45666 | refs/heads/main | 2023-01-02T19:43:16.874831 | 2020-10-22T13:06:20 | 2020-10-22T13:13:10 | 306,046,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"582675682@qq.com"
] | 582675682@qq.com |
5af08f0235d4499b872253caf77b8dd5584d4afe | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/alphagov/uk_dvla_practical_test_centres_1.py | 05a90b7771facbdbc2cd97a7e16b55bc915f0fad | [] | 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 | 7,646 | py | # http://www.dft.gov.uk/dsa/AtoZservices_Bannered.asp?Cat=-1&TestType=car&TypeID=17
# http://www.dft.gov.uk/dsa/AtoZservices_Bannered.asp?letter=G&CAT=-1&s=&TypeID=17&TestType=car
import scraperwiki
import re
import time
from BeautifulSoup import BeautifulSoup, Tag
def a_to_z(url):
letters = "ABCDEFGHIJKLMNOPQRST... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.