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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
edd042f5b2d0fa90c43f9451ea0b8549a7e1d32b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_10/models/object_store_access_policy_action_response.py | 2a0764dd2f2a1eec8de689c8e0f360a56fadcca5 | [
"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 | 3,268 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.10, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.10
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import t... | [
"azaman@purestorage.com"
] | azaman@purestorage.com |
08bfeae2350ed1c651b3c15cf39558ddead399b8 | f810836bea801f2fa85418ac7f5f5ffb0f3e0bda | /abc/abc237/D - LR insertion.py | b87e8c318a6bc75b348e71e58c1c21e407f300c6 | [] | no_license | cocoinit23/atcoder | 0afac334233e5f8c75d447f6adf0ddf3942c3b2c | 39f6f6f4cc893e794d99c514f2e5adc9009ee8ca | refs/heads/master | 2022-08-29T06:01:22.443764 | 2022-07-29T07:20:05 | 2022-07-29T07:20:05 | 226,030,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
from collections import deque
n = int(input())
s = input()
ans = deque([n])
for i in range(n - 1, -1, -1):
if s[i] == 'R':
ans.appendleft(i)
else:
ans.append(i)
print(*ans)
"""
n = int(input())
s = input()
l = []
r = []
for i, c in enumerate(s):
if c == 'L':
r.append(i)
... | [
"cocoinit23@gmail.com"
] | cocoinit23@gmail.com |
5c7375b81cad282b805c1d33d481cec56fd46b9d | 4f83471a669772731a7b1781d46be6c4eba7ef33 | /脚本化爬虫/购物类/Frys/get_Frys_info.py | a162ac5428aa36b14676fd4ff1170924dfb7a137 | [] | no_license | odtu945/LiuFan_Spider | 19a5eb08ebafc5865931bdf96aea2b9dd436a614 | 848b3aff4754c102491b201684858c3f116ff90b | refs/heads/master | 2022-01-05T10:12:32.085245 | 2019-03-24T02:30:38 | 2019-03-24T02:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,779 | py | import codecs
import re
from Tools import get_html
import time
import pytz
import random
from datetime import datetime,timedelta
from multiprocessing import Pool,Lock
# #把list洗乱
# def shuffle_list(list_name):
#
# from random import shuffle
# shuffle(list_name)
# # 返回随机排序后的序列
# return list_name
#
# #传入商... | [
"liufan.dery@gmail.com"
] | liufan.dery@gmail.com |
07d65e5a9c7180d039cc8a63759cfb25a4047fa9 | 2473c916422a0b517596c70206603d7b0161ef84 | /src/radical/pilot/worker/update.py | 42f9813bd9df1c108aa4d7632e723926049220fd | [
"MIT"
] | permissive | jerome-labbe-sb/radical.pilot | a8bf679ba943505779ecac2f3c06864710dd54af | a911e97c61262e07055a0f11db5a8157e981f8fb | refs/heads/master | 2021-01-14T13:21:34.564661 | 2016-09-09T21:42:02 | 2016-09-09T21:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,226 | py |
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
import time
import threading
import radical.utils as ru
from .. import utils as rpu
from .. import states as rps
from .. import constants as rpc
# ============================================================================... | [
"andre@merzky.net"
] | andre@merzky.net |
9bde53a4965ad421599d521020416e1db9e0916f | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/amg/azext_amg/vendored_sdks/_dashboard_management_client.py | 673cde0f190c519ac78730831c000fed3d99e2f4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,405 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
6b3b6c712d369e9de58b67fd7edfeb5615cd37e1 | a5e6ce10ff98539a94a5f29abbc053de9b957cc6 | /competition/20181125/d.py | da13b71ffe3d2ec5a7d23f0f506885ff52d138b9 | [] | no_license | shimaw28/atcoder_practice | 5097a8ec636a9c2e9d6c417dda5c6a515f1abd9c | 808cdc0f2c1519036908118c418c8a6da7ae513e | refs/heads/master | 2020-07-26T10:59:51.927217 | 2020-06-13T11:53:19 | 2020-06-13T11:53:19 | 208,622,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | s = input()
#%%
# s = "codethanksfes"
#%%
a = s[0]
ans = 0
for l in s:
if l<=a:
a = l
ans += 1
print(ans)
#%%
| [
"shima.w28@gmail.com"
] | shima.w28@gmail.com |
b6d4e1e3a30fef69db367420cab731baab417ab0 | 28053d2ad657d2e6d29396a3b4138cf3946511d0 | /libreco/algorithms/youtube_ranking.py | 3f8f3a810af24728415e4269766015d240d2d43c | [
"MIT"
] | permissive | RaRedmer/LibRecommender | 94a3f52b2f0c331bd70d5f0a99db867a3d742ad6 | 117b84e3deeb7157e62f464ff84ff9fab63f00ed | refs/heads/master | 2023-02-11T05:40:34.112189 | 2021-01-16T17:05:50 | 2021-01-16T17:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,396 | py | """
Reference: Paul Covington et al. "Deep Neural Networks for YouTube Recommendations"
(https://static.googleusercontent.com/media/research.google.com/zh-CN//pubs/archive/45530.pdf)
author: massquantity
"""
import os
from itertools import islice
import numpy as np
import tensorflow as tf2
from tensorflo... | [
"wdmjjxg@163.com"
] | wdmjjxg@163.com |
f7584add9a4108166a191f7f63b755d5aec39a5a | a2ff77ac12c8c8313ebb9d82b0afe0229ac065c6 | /packages/desktop/gnome/addon/gitg/actions.py | a4af4b04586a3f92f2c96f7a1bee230ec0e17431 | [] | no_license | ademirel/COMAK | 80966cffc1833c0d41dbe36514ef2480f4b87ead | 311d8d572c0ed5fe429bb4b2748e509dab7a6785 | refs/heads/master | 2020-12-25T17:23:27.553490 | 2012-09-11T08:58:30 | 2012-09-11T08:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
d77c2989f52c9c5aa6a273abb52368e4bac985f3 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/faster_rcnn/faster_rcnn_r50_caffe_c4_1x_coco.py | c686bcec7c76d3324cacaf69abb51bd7dc5b59f5 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,981 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
0f99ffc01cdb6537622d04736cfb2054589fd8e2 | 306baa2ad596e3962e427d587e7b0d4175a1e48e | /configs/eftnet/R2_ttf53_whh_beta01_1lr_log_2x.py | 74a897aa9dbdab0f29a9de33d0dedb6950f47d88 | [
"Apache-2.0"
] | permissive | mrsempress/mmdetection | 9c7ed7ed0c9f1d6200f79a2ab14fc0c8fe32c18a | cb650560c97a2fe56a9b369a1abc8ec17e06583a | refs/heads/master | 2022-04-24T04:34:30.959082 | 2020-04-26T07:52:23 | 2020-04-26T07:52:23 | 258,957,856 | 0 | 0 | Apache-2.0 | 2020-04-26T06:33:32 | 2020-04-26T06:33:32 | null | UTF-8 | Python | false | false | 3,060 | py | # model settings
model = dict(
type='CenterNet',
pretrained='./pretrain/darknet53.pth',
backbone=dict(
type='DarknetV3',
layers=[1, 2, 8, 8, 4],
inplanes=[3, 32, 64, 128, 256, 512],
planes=[32, 64, 128, 256, 512, 1024],
norm_cfg=dict(type='BN'),
out_indices=(1... | [
"mrsempress98@gmail.com"
] | mrsempress98@gmail.com |
dfc80722741ebb1da00c6319fc894fde464117fc | 1625128b5452d1894847caa9b5266a535b6247c6 | /tests/signin_amazon.py | 3de30299e29f75a20884fd230ca1bed1483de424 | [] | no_license | garou93/inspiration-mission-haithem-CI-CD-python-shell | bb84e99cc3967728b2a06eadb0761800ead04881 | d45ee7609dcf90dea0751a2bfa3ce51130983567 | refs/heads/master | 2023-07-24T22:12:28.496584 | 2021-09-05T08:06:50 | 2021-09-05T08:06:50 | 378,758,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,272 | py | # -*- coding: utf-8 -*-
"""
Title:
Description:
Author: haithem ben abdelaziz
Date:
Version:
Environment:
"""
import sc_stbt
import stbts
import stbt
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import ui
from selenium.webdri... | [
"haithem.ben.abdelaziz@gmail.com"
] | haithem.ben.abdelaziz@gmail.com |
c5fbfda6f64d0654fdb0f07855f20d2db1e8bb6a | a86287b997aceb02b836a951a188fff5c98cdca8 | /train_cnn_multilabel/ckpt_pb.py | 06334157fbd692e76b7ced2ca00fbe72a9410251 | [] | no_license | wonqiao/train_arch | fbdd9ee59ed67ad2a71e638fbcdaadafedc68759 | f78aabffdfb65dd1d40ede40dde81de3b04f2144 | refs/heads/master | 2023-01-29T20:21:24.977626 | 2020-12-09T03:54:00 | 2020-12-09T03:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | # coding = utf-8
"""
Created on 2017 10.17
@author: liupeng
wechat: lp9628
blog: http://blog.csdn.net/u014365862/article/details/78422372
"""
import tensorflow as tf
from tensorflow.python.framework import graph_util
from lib.utils.multi_label_utils import get_next_batch_from_path, shuffle_train_data
from l... | [
"MachineLP@163.com"
] | MachineLP@163.com |
1545b59188024f52bdd1c764d1b8ef97983fa250 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170814145942.py | 6513d4211f297e41a9975f46c661f2308b482d5c | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,976 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
b125adb354a67fab41cbad0382a1d9a0b1ebf676 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/audio/tdnn/templates/speaker_id/train.py | 7045f05974af4d3db27f4b724fd12f685a1eff52 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 13,107 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
6deefd1f16785bce2090866dab195b0c52bb9f78 | e649eaa158a0fb311ac69f8df466097b69f29d8a | /tapioca_toggl/tapioca_toggl.py | 0d8116f1937344e5376c39b6db74915601d32816 | [
"Python-2.0",
"MIT"
] | permissive | pgniewosz/tapioca-toggl | 862f1d454e34139e75bcb1596f92387c94a004f5 | 0b789934d18cbbfe1bdcbe6b0905bf653fb9c68f | refs/heads/master | 2020-12-31T02:00:52.044366 | 2015-12-09T21:24:17 | 2015-12-09T21:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # -*- coding: utf-8 -*-
from tapioca import (
JSONAdapterMixin,
TapiocaAdapter,
generate_wrapper_from_adapter,
)
from requests.auth import HTTPBasicAuth
from .resource_mapping import RESOURCE_MAPPING
class TogglClientAdapter(JSONAdapterMixin, TapiocaAdapter):
api_root = 'https://www.toggl.com/api/v... | [
"raphael@hackebrot.de"
] | raphael@hackebrot.de |
91417fed22a522075bbf7a6fe7c62e14eb481945 | edbf37a80849468145cdcfca2012d205cdba9b50 | /csv_to_hdf5.py | a1fdc67f0ebeb87b9e3b822575a7a3e38dc3bb06 | [] | no_license | hsiaoyi0504/cheminfo-final | f0f19d67c697b91195aff7fd52044e2f7a9fd434 | 7dbfb9729a443060d45562123768398513d11085 | refs/heads/master | 2021-01-12T09:32:26.927273 | 2017-02-14T17:21:26 | 2017-02-14T17:21:26 | 76,188,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import sys
import os
from itertools import islice
import h5py
import numpy as np
from sklearn.model_selection import train_test_split
sys.path.append(os.path.abspath("./keras-molecules"))
from molecules.utils import load_dataset, one_hot_array, one_hot_index
import pandas as pd
data, charset = load_dataset('./keras... | [
"hsiaoyi0504@gmail.com"
] | hsiaoyi0504@gmail.com |
395ae2d504cb4be15aacfe24989028ced7cd5bb6 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/shandong/qingdao.py | 2a7b9ffffeabdc15e72299245459613fca9782da | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # -*- coding: utf-8 -*-
from items.biding import biding_gov
from utils.toDB import *
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
import datetime
# 山东青岛招投标网站
# 其他信息
class LianjiaSpider(CrawlSpider):
name = "qingdao.py"
allowed_domains = ["ggzy.qingdao.gov.cn"]
... | [
"18723163167@163.com"
] | 18723163167@163.com |
1c4c926d1547bee952cd3b18817763f0a75c1a1d | 55123cea6831600a7f94b29df86aa12c9ccd82e4 | /test/test_gpu_programming.py | 26bcc6aa254f5b802e5a5dbb514fe0ccd3266ec9 | [
"MIT"
] | permissive | yngtodd/gpu_programming | 34915f76d2c39d3a3dfe633d0dd40fee1c077579 | 84ce7cb4280690bfb46cb36fb7ef47863d97a529 | refs/heads/master | 2020-04-10T10:50:54.522162 | 2018-12-08T22:54:24 | 2018-12-08T22:54:24 | 160,977,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | """
Tests for `gpu_programming` module.
"""
import pytest
from gpu_programming import gpu_programming
class TestGpu_programming(object):
@classmethod
def setup_class(cls):
pass
def test_something(self):
pass
@classmethod
def teardown_class(cls):
pass
| [
"young.todd.mk@gmail.com"
] | young.todd.mk@gmail.com |
48f1a194c93c3f79e47c8abb291e2846c3dc4d3c | 24b2f3f5f49ed19cf7fd3dcd433d6b72806e08cf | /python/sorting_and_searching/0658_Find_K_Closest_Elements.py | 05baab2d171b85dcb87d49d361a97f8f74117f59 | [] | no_license | lizzzcai/leetcode | 97089e4ca8c3c53b5a4a50de899591be415bac37 | 551cd3b4616c16a6562eb7c577ce671b419f0616 | refs/heads/master | 2021-06-23T05:59:56.928042 | 2020-12-07T03:07:58 | 2020-12-07T03:07:58 | 162,840,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | '''
08/04/2020
658. Find K Closest Elements - Medium
Tag: Binary Search
Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If there is a tie, the smaller elements are always preferred.
Example 1:
Input: [1,2,3,4,5], k=4, x=... | [
"lilcolinn@gmail.com"
] | lilcolinn@gmail.com |
033a22f493ad32f11f1b533014f8c78daae54fa2 | 29597b67f10d456bdcc90a693ac93f571635ae34 | /structure/recursion/keypad.py | b9565dcadcb6cdd6cf9c359c88e82b56b566a7ad | [] | no_license | sh-tatsuno/python-algorithm | 67d50f24604550c115f957ed74e81483566c560d | 2800050077562eef50b6f0bd8ba6733068469c4c | refs/heads/master | 2020-05-17T09:46:05.714449 | 2019-07-25T15:43:20 | 2019-07-25T15:43:20 | 183,641,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | def get_characters(num):
if num == 2:
return "abc"
elif num == 3:
return "def"
elif num == 4:
return "ghi"
elif num == 5:
return "jkl"
elif num == 6:
return "mno"
elif num == 7:
return "pqrs"
elif num == 8:
return "tuv"
elif num == ... | [
"wasabi.mandarin@gmail.com"
] | wasabi.mandarin@gmail.com |
89ab0709a97719352d3faf225b1ef3224e177f24 | 30c820b171447ab772e58f04ac0dc55c4d5ffbdf | /transax/setup.py | fca863366f71e276dc836f489d4594540c33f89a | [] | no_license | TransactiveSCC/TRANSAX | 3b58cff757fb646a825872dc243e04eea3d0b712 | 13c45a1254cb14607d1bfa86267dbde9e61fd538 | refs/heads/main | 2023-05-13T10:50:20.868093 | 2021-05-15T02:45:53 | 2021-05-15T02:45:53 | 316,015,185 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from setuptools import setup
setup(
name='transax',
version='1.0',
description='',
author='Scott Eisele',
author_email='scott.r.eisele@vanderbilt.edu',
packages=['transax'], #same as name
install_requires=['scipy','pycurl'], #external packages as dependencies
) | [
"eiselesr@gmail.com"
] | eiselesr@gmail.com |
6d7534730773802df64b5660a516a95e01c824f8 | 3953a4cf5dee0667c08e1fe1250a3067090e3f24 | /mural/config/settings/base.py | 4b847aae2bbfb7548c7bdbde55ea49cc1d1314f1 | [] | no_license | DigitalGizmo/msm_mural_project | 41960242c84050ee578da90afabcb7f9bc1923df | 5566a2b6f7445dc53d8aaf96cf7d24236fd5ed96 | refs/heads/master | 2020-03-07T11:04:49.633149 | 2019-02-13T18:10:44 | 2019-02-13T18:10:44 | 127,447,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,677 | py | """
Django settings for mural project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
# import os
#... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
ebcc2fb4ec2070fc0d085207134c5027fb58105f | 428165a69405e0ce5245d225e6038598cd2a5be9 | /courses/urls.py | ccbf1b37e0d07f8dff067aa1658bfa5fb2514919 | [] | no_license | alialwahish/courses | 2374a0e52a87e18808f5cdf268a9ecbaa788b3e5 | c01e6cc1b05313764fe07d514c0f10009c3f80b2 | refs/heads/master | 2020-03-17T19:06:57.991045 | 2018-05-17T17:22:27 | 2018-05-17T17:22:27 | 133,846,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.conf.urls import url,include
urlpatterns = [
url(r'^',include('apps.appCourses.urls'))
]
| [
"bayati.ali@icloud.com"
] | bayati.ali@icloud.com |
8f1c32b9228c8eae48071a9322737aa0ae75e2ee | 306afd5282d9c24d58297478a1728a006c29e57e | /python3/905_Sort_Array_By_Parity.py | 3a705fc16ba5f96d63db2ec53acf28e955804135 | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | class Solution:
def sortArrayByParity(self, A):
"""
:type A: List[int]
:rtype: List[int]
"""
even =[]
odd = []
for i in A:
if i % 2 == 0:
even.append(i)
else:
odd.append(i)
return even + odd
... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
c559b7dcb34495138c12b520236775a346862bd8 | 9d30dcfcedc98306e60779d25cad83345b4f032c | /src/pip/_internal/models/target_python.py | 7ad5786c4354cb0e520e8f9493c72619c29ebf82 | [
"MIT"
] | permissive | loke5555/pip | 1cb04e69eecb9969cf663a2a1bf5095b84cdff55 | a8510bc5e6b7c4849a0351deab3c1d41fd9a63d1 | refs/heads/master | 2020-06-14T08:22:50.373830 | 2019-07-02T09:00:02 | 2019-07-02T09:00:02 | 194,958,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,734 | py | import sys
from pip._internal.pep425tags import get_supported, version_info_to_nodot
from pip._internal.utils.misc import normalize_version_info
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import List, Optional, Tuple
from pip._internal.pep425tags import Pep425... | [
"chris.jerdonek@gmail.com"
] | chris.jerdonek@gmail.com |
3fcfcef8fa826d5b89ab602739c53b107e8c0050 | 14f223f1855215f6cbeaba533bcfe26532161918 | /basics and advanced/armstrong_pract.py | 0e16e80f5392370354718a9842eda8c0614e3e04 | [] | no_license | iiibsceprana/pranavsai | 1026519a44eac429db8c4a6e3664277839d5dd52 | ffd8c937c50814676b0ee1eabdfd461087d52b96 | refs/heads/master | 2020-03-09T23:36:23.258180 | 2018-04-11T08:53:55 | 2018-04-11T08:53:55 | 129,061,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | inp=int(input("Enter an Integer:"))
num=inp
print("num:",num)
sum=0
while inp>0:
n=inp%10
print("n:",n)
sum+=n*n*n
print("sum:",sum)
inp=inp//10
print("inp:",inp)
if num==sum:
print("Given number is Armtrong")
else:
print("Given number is not Armstrong")
| [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
4c85c67d781eb179e4dafca7cb96d60c8873cc0e | 0b35072547001ebefa3fde2eea0eae30423e2190 | /editregions/contrib/textfiles/admin.py | 1bc746c9c1addc07aa4ae926a814393591df4afb | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | kezabelle/django-editregions | ceba5561a4768ccda9ccd279f3a6a35e11dbdfea | 961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5 | refs/heads/master | 2020-06-06T19:40:36.682702 | 2015-01-21T14:33:52 | 2015-01-21T14:33:52 | 14,645,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | # -*- coding: utf-8 -*-
from functools import update_wrapper
from django.contrib import admin
from django.contrib.admin import ModelAdmin
from django.core.exceptions import ValidationError, PermissionDenied
from django.http import HttpResponse
from django.template.defaultfilters import striptags
from django.template.lo... | [
"keryn@kerynknight.com"
] | keryn@kerynknight.com |
2ffcff7acb286a0ae13295300bd567c7f8e0cc56 | b8467af3373374f54aef8e4a060eb9550028f298 | /functionsprogram/myprograms.py | dcf9e8fa570248d0908469b331daa249eba8591c | [] | no_license | luminartraining/luminarPythonNovember | 6790acf957bba6ec47ab5c872f8f22b1c22d63f7 | 33f4627f89c281fca45f58d00a4e3f1f221144fc | refs/heads/master | 2023-01-28T20:23:03.863310 | 2020-12-07T02:46:03 | 2020-12-07T02:46:03 | 315,807,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #import modules
#module ? package?
#we have to import mathooperatoons.py module
import functionsprogram.matoperations as fun
res=fun.add(100,200)
print(res)
sub=fun.sub(200,100)
print(res)
#create account in github
#git | [
"sajaykannan10@gmail.com"
] | sajaykannan10@gmail.com |
ab03d8f6384fcbd71e3cd2408f91f5910e8878b7 | 521c1beeb2776161ae6d550be35cd0c180887129 | /customkeywords/tailProtocol.py | a1c19882a20fb2a2a23c6e113b2e1687b55fbdc7 | [] | no_license | elvis2workspace/CustomLibrary | 601b552792ac2c33beeb709474f857c82793ac7e | 6449eea8aa99ca1172f54b669d97703d36132ce3 | refs/heads/master | 2021-01-23T21:33:05.617871 | 2017-09-26T01:57:48 | 2017-09-26T01:57:48 | 58,983,388 | 0 | 1 | null | 2016-12-06T09:56:14 | 2016-05-17T02:22:14 | Python | UTF-8 | Python | false | false | 3,144 | py | # -*- coding: utf-8 -*-
"""
Created on 2015年5月8日
@author: zhang.xiuhai
"""
import os
import hashlib
from twisted.internet.protocol import ServerFactory, ProcessProtocol
from twisted.protocols.basic import LineReceiver
from twisted.python import log
from twisted.internet import reactor, threads
class TailProtocol(... | [
"xiuhai5052@hotmail.com"
] | xiuhai5052@hotmail.com |
3c70d5350e30d99e67991d3efcbe1f1fce136e79 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/demangler/gnu/__init__.pyi | 32ce2a5c514debd6436731a597a14186a1d74212 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386 | pyi | from .DemanglerParseException import DemanglerParseException as DemanglerParseException
from .GnuDemangler import GnuDemangler as GnuDemangler
from .GnuDemanglerNativeProcess import GnuDemanglerNativeProcess as GnuDemanglerNativeProcess
from .GnuDemanglerOptions import GnuDemanglerOptions as GnuDemanglerOptions
from .G... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
58f4826f555e588ae83241260f0facb1e977d6de | 7f916c679df3cd4158afcaf57b7c0e042f59ce91 | /allel/io/vcf_read.py | 61667de07956e067f50cd99f8406c5ba6023ba8b | [
"MIT"
] | permissive | haseley/scikit-allel | 08998a9a418ee68ddc9adb4e263c23c34dab5d37 | 300ab04c858eedf64d339e942589dfcf45d719c7 | refs/heads/master | 2020-04-01T18:22:40.881846 | 2018-10-18T18:59:02 | 2018-10-18T18:59:02 | 153,488,427 | 0 | 0 | MIT | 2018-10-18T18:52:38 | 2018-10-17T16:23:44 | Jupyter Notebook | UTF-8 | Python | false | false | 57,129 | py | # -*- coding: utf-8 -*-
"""
Extract data from VCF files.
This module contains Functions for extracting data from Variant Call Format (VCF) files and loading
into NumPy arrays, NumPy files, HDF5 files or Zarr array stores.
"""
from __future__ import absolute_import, print_function, division
import gzip
import os
impor... | [
"alimanfoo@googlemail.com"
] | alimanfoo@googlemail.com |
8ff270a59500d90bbb8a3db156cc23e09b9628ce | 0124528676ee3bbaec60df5d6950b408e6da37c8 | /Projects/QTPy/adafruit-circuitpython-bundle-7.x-mpy-20220601/examples/lsm303_accel_fast.py | 87d21c1b86f615c46bf8bd76cc4373c70703b763 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | land-boards/lb-boards | 8127658dc537dcfde0bb59a5018ab75c3f0087f6 | eeb98cc2003dac1924845d949f6f5bd387376568 | refs/heads/master | 2023-06-07T15:44:46.110742 | 2023-06-02T22:53:24 | 2023-06-02T22:53:24 | 4,847,305 | 10 | 12 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
""" Read data from the accelerometer and print it out, ASAP! """
import board
import adafruit_lsm303_accel
i2c = board.I2C() # uses board.SCL and board.SDA
sensor = adafruit_lsm303_accel.LSM303_Accel(i2c)
while True:
... | [
"doug@douglasgilliland.com"
] | doug@douglasgilliland.com |
ef94ec0911459dc49f3392233ca8f7e4ed07ddc1 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/openopt/kernel/oologfcn.py | e9819b86d856962730889b3c6c11f8a6131dfd5e | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,040 | py | class OpenOptException(BaseException):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return self.msg
#pass
#def ooassert(cond, msg):
# assert cond, msg
def oowarn(msg):
s = oowarn.s + msg
print(s)
return s
oowarn.s = 'OpenOpt Warning: '
errSet = set()
def ... | [
"noreply@github.com"
] | wangyum.noreply@github.com |
d1a6d4762ab2b6475a8e17c25b4e44c0fe9b6611 | 6bc0a7bbbe769192ff7a7c403d2c5086be1d186c | /main.py | 570d04262295be9d63758e1cf20432c9c0e60610 | [
"MIT"
] | permissive | veryhannibal/pytorch-distributed-cifar | 5c4c2aff27b16f4c6350e7e789f2edc9c50f8111 | cc3528bb80c1bb498fbf717a30d6083ef1931fad | refs/heads/master | 2022-03-12T21:26:06.125558 | 2019-11-21T11:58:02 | 2019-11-21T11:58:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,497 | py | '''Train CIFAR10 with PyTorch.'''
from __future__ import print_function
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
import os
import time
import argparse
from models... | [
"kurisusnowdeng@gmail.com"
] | kurisusnowdeng@gmail.com |
9f9628dbb17329bb8f0ea4ceb9b08d65ac60ec44 | a3c8b67b91fac686aa98fd20179f8807be3ad4c0 | /rsbroker/core/upstream.py | 1ace31aa954eabd78a040a0b49ac38183023f813 | [
"Apache-2.0"
] | permissive | land-pack/RsBroker | d0c6c8fa13cec0c057d24b9f02b20e256b199737 | d556fda09582e0540cac0eabc163a984e8fc1c44 | refs/heads/master | 2021-01-12T07:16:39.853668 | 2016-12-22T07:28:05 | 2016-12-22T07:28:05 | 76,930,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,322 | py | import time
import logging
import ujson
from tornado import gen
from tornado import httpclient
from tornado import httputil
from tornado import ioloop
from tornado import websocket
try:
from util.tools import Log
except ImportError:
logger = logging.getLogger(__name__)
else:
logger = Log().getLog()
APPLIC... | [
"ada.frank.ak@gmail.com"
] | ada.frank.ak@gmail.com |
675b214d92c6d69d2cb94daf2533333331d29cb5 | edf6a50044827f5f24b7fab4806dc25d8887c316 | /news/migrations/0001_initial.py | aa5a3112ead155a681e1a9bdbfb815eb1a9690cf | [] | no_license | zhcxk1998/AlgYun | 4958fdf31bb9009cb6541c39f715410f569b84ff | c54b95af8a87a12848401c7088bb7748793e6b63 | refs/heads/master | 2020-03-09T04:30:35.322800 | 2018-04-08T01:33:29 | 2018-04-08T01:33:29 | 128,589,517 | 1 | 1 | null | 2018-04-08T02:40:27 | 2018-04-08T02:40:27 | null | UTF-8 | Python | false | false | 2,345 | py | # Generated by Django 2.0.3 on 2018-04-03 16:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"dickqi87@gmail.com"
] | dickqi87@gmail.com |
9a04690951ef33d0a11036986d4b9e7e88d5b906 | b039d4f7da5085a4e7d7491acb7bc04f7b896f24 | /tests/network/test_fees.py | 683cd8023b40e02b3ed8189ea6bf2916bdcc9128 | [
"MIT"
] | permissive | d4le/bit | c052cfadd79c52add99b6b576d2498119168c478 | 1153162f55c2ed1b007b237d4215d80ab7db429b | refs/heads/master | 2021-01-22T20:43:57.543622 | 2017-03-16T05:15:18 | 2017-03-16T05:15:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | from time import sleep, time
import bit
from bit.network.fees import get_fee, get_fee_cached, set_fee_cache_time
def test_set_fee_cache_time():
original = bit.network.fees.DEFAULT_CACHE_TIME
set_fee_cache_time(30)
updated = bit.network.fees.DEFAULT_CACHE_TIME
assert original != updated
assert up... | [
"ofekmeister@gmail.com"
] | ofekmeister@gmail.com |
6d9d4d609a09d4ffcab3ad82b4ed5491f6b80906 | 26cf7d2d6c3d6d83b17e304aa94d5e8b3fac323a | /autoencoder.py | a2b7ddcca50d4ad7bc09af0e2d31abe70e518764 | [] | no_license | zbn123/Autoencoder | 4ad8f48e33d9b228dceae6d919c3a5320318fc7e | 13ebeb8f15edecbdd6e362e7769b69053c1f31e0 | refs/heads/master | 2021-07-19T08:46:28.559592 | 2017-10-26T20:08:34 | 2017-10-26T20:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,667 | py | import tensorflow.contrib.slim as slim
import matplotlib.pyplot as plt
import cPickle as pickle
import tensorflow as tf
import numpy as np
import requests
import random
import time
import gzip
import os
batch_size = 5000
'''
Leaky RELU
'''
def lrelu(x, leak=0.2, name="lrelu"):
return tf.maximum(x, leak*x)
def... | [
"cameronfabbri@gmail.com"
] | cameronfabbri@gmail.com |
f428294c05d4756146b1ab11828c824a50119072 | 7de167836cc8018c3504c6153236c37686621634 | /config/SSD-adam.wo-norm.wo-color-aug/train.py | a9d04637910fecfb82f9ada01947e15508285d31 | [] | no_license | Oliver-ss/Leaves_Damage | 357fd295c66bfdecec141bfe562349e7053bfe37 | 82edc050f2d6e47c5db5e52ee53bd7d1524b2043 | refs/heads/master | 2020-07-26T11:40:17.335589 | 2019-09-30T02:06:13 | 2019-09-30T02:06:13 | 208,630,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,446 | py | from data import *
from utils.augmentations import SSDAugmentation
from layers.modules import MultiBoxLoss
from model import build_ssd
import os
import sys
import time
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torch.nn.... | [
"yuansongwx@outlook.com"
] | yuansongwx@outlook.com |
6c393566b9210d3e5a742abc679204096e6546fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03795/s630946730.py | 758e56e2caec2ce4b1f82b042b9e042537e4b2d4 | [] | 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 | 104 | py | input_num = int(input())
X = input_num * 800
Y = int(input_num / 15) * 200
result = X - Y
print(result) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
114fc87817862cd893476714a9ddd0fcef1b5e71 | f4726db4ec192dee3709c6d474b1fb9a743e9d2f | /rllib/algorithms/mpc/abstract_solver.py | 6e9395f231c134c5549b377604bf32b20c842991 | [
"MIT"
] | permissive | SamueleMeta/optimal_is | fc32dbec2eaa1ceb24a70a0c6c7d982bd7cb2c69 | 7d8e0041825acfa003874cd1ad2aec0581f6a9e1 | refs/heads/master | 2023-03-05T23:25:22.651481 | 2021-02-13T21:30:30 | 2021-02-13T21:30:30 | 323,657,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,597 | py | """MPC Algorithms."""
import time
from abc import ABCMeta, abstractmethod
import numpy as np
import torch
import torch.nn as nn
from rllib.dataset.utilities import stack_list_of_tuples
from rllib.util.multiprocessing import run_parallel_returns
from rllib.util.neural_networks.utilities import repeat_along_dimension
f... | [
"metasamuele@gmail.com"
] | metasamuele@gmail.com |
c9ddc6020f6335f0c218bb5bf57f71ec81f55e3c | 62179a165ec620ba967dbc20016e890978fbff50 | /tests/torch/pruning/test_onnx_export.py | 841d1b4a7fc6f0b959dc57c9259844df873540c2 | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 6,169 | py | # Copyright (c) 2023 Intel Corporation
# 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 writ... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
dc7b599f8daa973d59789d42ded36ded640ad411 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/16165060.py | 6c65b7ec1a29a4f35185a3b5334145f51a786eb9 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/16165060.py generated: Wed, 25 Jan 2017 15:25:15
#
# Event Type: 16165060
#
# ASCII decay Descriptor: [ Xi_bc+ -> (D+ -> K- pi+ pi+) p+ K- ]cc
#
from Configurables import Generation
Generation().EventType = 16165060
Generation().SampleGenerationTool = ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
763f3843193e373ffd0a2229f3233e4ebeb3d73f | 3d14a2263e7547f9d3b463a35e4b25e3abb67306 | /ccal/get_vcf_info_ann.py | 4e76f65f9a5dda963ac65d084997f3fcb9b8b31f | [
"MIT"
] | permissive | alex-wenzel/ccal | ec91d214cd169913909de67a8592b9ce4a82af3f | 74dfc604d93e6ce9e12f34a828b601618df51faa | refs/heads/master | 2020-04-17T02:45:50.976156 | 2019-04-22T01:14:24 | 2019-04-22T01:14:24 | 166,151,841 | 0 | 0 | MIT | 2019-01-17T03:10:39 | 2019-01-17T03:10:38 | null | UTF-8 | Python | false | false | 352 | py | from .get_vcf_info import get_vcf_info
from .VCF_ANN_FIELDS import VCF_ANN_FIELDS
def get_vcf_info_ann(info, field, n_ann=None):
ann = get_vcf_info(info, "ANN")
if ann:
field_index = VCF_ANN_FIELDS.index(field)
return [ann_.split(sep="|")[field_index] for ann_ in ann.split(sep=",")[:n_ann]... | [
"kwatme8@gmail.com"
] | kwatme8@gmail.com |
7675618bd38f2113e3e7c2c01134a738a88bf0fd | 11b9e95ce3d73e62ac07893a36690cb3a0d9041b | /NeuralNetwork/随机森林(非神经网络)/RandomForest2.py | 9bc8c512e9be0109525f67ca4ab60c14b7a1ff62 | [] | no_license | zhangjinzhi/SimpleTools | 3fdd2005cb8cf52e8e75d8ec283090a628cebc59 | be9e766d2e22124ce41bec254664b12fdfacaa4b | refs/heads/master | 2020-12-30T11:51:27.116851 | 2018-01-30T09:47:01 | 2018-01-30T09:47:01 | 91,527,509 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # coding=utf-8
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier
import pandas as pd
import numpy as np
iris = load_iris()
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['is_train'] = np.random.uniform(0, 1, len(df)) <= .75
df['species'] = pd.Categorical.f... | [
"584392383@qq.com"
] | 584392383@qq.com |
f03019f06080a632cd818000dfeb75a5995b4219 | fd877cb919622d6a4efa305fb9eaec8a31e8dd37 | /scripts/ua/rule13.py | 45196c0db7db6b6593bc008e7f51e87aa635ae06 | [
"MIT"
] | permissive | NCiobo/iem | 37df9bc466ffcbe4f6b1f9c29c6b5266559f200c | 75da5e681b073c6047f5a2fb76721eaa0964c2ed | refs/heads/master | 2021-01-23T09:39:33.090955 | 2017-09-05T16:34:12 | 2017-09-05T16:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | '''
Compute the difference between the 12 UTC 850 hPa temp and afternoon high
'''
from pyiem.datatypes import temperature
import psycopg2
import datetime
ASOS = psycopg2.connect(database='asos', host='iemdb', user='nobody')
acursor = ASOS.cursor()
POSTGIS = psycopg2.connect(database='postgis', host='iemdb', user='nob... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
6d23619ee3008348e0c51778e10152aa5b555140 | 099172fda019272760aebaa7795def519907e152 | /com.ibm.streamsx.topology/opt/python/packages/streamsx/topology/schema.py | 480e8799768afddfd82f92c6a4705a006a30baf0 | [
"Apache-2.0"
] | permissive | rrea/streamsx.topology | 58ffd48745e83cd6d054d50405e9f7bbbe73876d | d8828ccf3e32cb8a7629f9e325fc14f565cf913e | refs/heads/master | 2020-12-11T07:16:53.701724 | 2016-08-12T19:36:42 | 2016-08-12T19:36:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import enum
class StreamSchema(object) :
"""SPL stream schema."""
def __init__(self, schema):
self.__schema=schema.strip()
def schema(self):
return self.__schema;
def spl_json(self):
_splj = {}
_splj["type"] = 'spltype'
_splj["value"] = self.schema()
r... | [
"debrunne@us.ibm.com"
] | debrunne@us.ibm.com |
c3dbd2c439c3758ad3b7f4b9ce1618b504c41c15 | b92eee41d665314bc42043d1ff46c608af5ffdfd | /sesion_2/prueba.2.py | aeeadbfa75b82afe081d82967acbd794d76c7081 | [] | no_license | badillosoft/python-economics | 40efe8326558a8fb93f84fdbd2137428844ee5f3 | 82af43c7a47297ce186dc0e23e30620d46e6693a | refs/heads/master | 2021-01-11T18:55:15.762752 | 2017-05-09T01:15:59 | 2017-05-09T01:15:59 | 79,656,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # Importación unitaria (por elemento)
from geg import suma, suma2
# from geg import *
print suma([1, 3, 5, 7, 9])
print suma([1, 76, 201, 76])
print suma([5])
| [
"kmmx@hsoft.local"
] | kmmx@hsoft.local |
07522c3ec7506ead2e1af745eda523dcd66be75d | 7d027557cee0ad5ae783480fe79c1b3d11c4eccb | /backend/delivery_order/migrations/0001_initial.py | 0f19ff998f55d6c8023cdddbe7fe661b124db324 | [] | no_license | crowdbotics-apps/lol-21119 | b284e53d4b7ebfa9e4c068807aff813f53871c1e | 78965517edf60545b646e90e77a63aeb7c4515af | refs/heads/master | 2022-12-24T13:05:52.179667 | 2020-10-05T17:54:53 | 2020-10-05T17:54:53 | 301,492,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,307 | py | # Generated by Django 2.2.16 on 2020-10-05 17:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("menu", "0001_initial"),
("delivery_user_profile", "0001_initial"),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d199b63471d48fe41ba0034f9a18d32ec3530fc2 | 0dfdeec83f0b4acd804b9a52212426e9045edfd2 | /v13/addons/cristo_concern/models/dashboard.py | a62adf086f3cf39937c6a7ab9fea53b4303af462 | [] | no_license | cokotracy/Cristo | 2c89d6789a901ec2f1e2f0eca7563d1cebee40cb | aea45d82d9b822c0ffe6275cfcce3eeb5283a152 | refs/heads/main | 2023-08-30T05:01:02.913064 | 2021-07-06T10:09:29 | 2021-07-06T10:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
class Member(models.Model):
_inherit = 'res.member'
@api.model
def get_user_member_details(self):
res = super(Member, self).get_user_member_details()
# Navigation
con_action_id = self.env.ref("cristo_concern... | [
"charlesit333@gmail.com"
] | charlesit333@gmail.com |
43e00d123f74fceb0d9123050968b8d5a1ecd98c | a86293a2033c06410aa8ed19bcbce8ca55ea3c55 | /src/client_libraries/python/microsoft/dynamics/customerinsights/api/models/workflow_refresh_schedule_py3.py | 686a18f736ebacb397d4da542efc3475aa595443 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ramotheonly/Dynamics365-CustomerInsights-Client-Libraries | a3ca28aa78d2b5509e65d9895ff4a0d42d05f611 | e00632f7972717b03e0fb1a9e2667e8f9444a0fe | refs/heads/main | 2023-08-02T08:09:04.063030 | 2021-09-28T22:42:15 | 2021-09-28T22:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"michaelajohnston@mac.com"
] | michaelajohnston@mac.com |
4b20687780fb0fdf9ee2aa84da2e4f050fe6925d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma17.py | 3146b2f412bfb79c7789014ace702fe920a73cb6 | [
"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,262 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=8
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
155563938f93e28b814ded6a968be8956f270d22 | 1287bbb696e240dd0b92d56d4fdf4246370f3e14 | /numpy-demo.py | fd2619fdc2e82feac4224f8733d84b6b6ec43540 | [] | no_license | omerfarukcelenk/PythonCalismalari | ed0c204084860fddcb892e6edad84fdbc1ed38ec | 28da12d7d042ec306f064fb1cc3a1a026cb57b74 | refs/heads/main | 2023-04-13T18:23:15.270020 | 2021-04-26T21:06:21 | 2021-04-26T21:06:21 | 361,893,918 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import numpy as np
# 1- (10,15,30,45,60) değerlerine sahip numpy dizisi oluşturunuz.
result = np.array([10,15,30,45,60])
# 2- (5-15) arasındaki sayılarla numpy dizisi oluşturunuz.
result = np.arange(5,15)
# 3- (50-100) arasında 5'er 5'er artarak numpy dizisi oluşturunuz.
result = np.arange(50,100,5)
# 4- 10 eleman... | [
"omerfar0133@gmail.com"
] | omerfar0133@gmail.com |
5f1384b0ccaccf589e497ee288792f747e49c667 | e2860eb874db045fb8d0279566a935af907e5bdf | /keras01/keras24_cancer_binary.py | 224913ac725bca03a09cec370f03a7af20a3ef3f | [] | no_license | MinseokCHAE/Bitcamp2_new | dda7990907cb136c2e709a345eec634dfdb6ac02 | 849adb5a330b621f1c681f0b5e92005d1281a44d | refs/heads/main | 2023-08-31T03:28:18.068561 | 2021-10-05T00:48:52 | 2021-10-05T00:48:52 | 390,228,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | import numpy as np
from sklearn.datasets import load_breast_cancer
from sklearn.metrics import r2_score
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import MinMaxScaler, StandardScaler
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, Inp... | [
"minseok6739@naver.com"
] | minseok6739@naver.com |
c9ccf86a379bb6844db6786edbb90773790e6322 | 8f1996c1b5a0211474c7fa287be7dc20a517f5f0 | /hail/python/test/hailtop/test_fs.py | fdf431bb6c0fc00b1b5deaf9fbee66b5ced13160 | [
"MIT"
] | permissive | johnc1231/hail | 9568d6effe05e68dcc7bf398cb32df11bec061be | 3dcaa0e31c297e8452ebfcbeda5db859cd3f6dc7 | refs/heads/main | 2022-04-27T10:51:09.554544 | 2022-02-08T20:05:49 | 2022-02-08T20:05:49 | 78,463,138 | 0 | 0 | MIT | 2022-03-01T15:55:25 | 2017-01-09T19:52:45 | Python | UTF-8 | Python | false | false | 14,201 | py | from typing import Tuple, AsyncIterator
import random
import functools
import os
import secrets
from concurrent.futures import ThreadPoolExecutor
import asyncio
import pytest
from hailtop.utils import secret_alnum_string, retry_transient_errors, bounded_gather2, url_scheme
from hailtop.aiotools import LocalAsyncFS, Une... | [
"noreply@github.com"
] | johnc1231.noreply@github.com |
962812ea95c14c421b5d385ad22db70190075490 | 3284c2a6e99c27c9a72de68f60284b7865a7fb0c | /Principles_of_Computing/poc_fifteen_testsuite.py | d67f71a5ed434da0c1ac0fb0994003f591b64614 | [] | no_license | bbusenius/Projects | e6c972a4356d1ece978b402004cd0bdf23279c98 | 57240764f64dd66ce69336450509e8556dbc597e | refs/heads/master | 2022-09-17T17:18:08.884037 | 2022-08-27T21:39:55 | 2022-08-27T21:39:55 | 20,620,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,706 | py | import random
from Fifteen import Puzzle
def test_lower_row_invariant(puzzle, start):
""" test lower row invariants """
assert start[0] > 1, "not an interior tile"
assert puzzle.lower_row_invariant(*start)
if start[1] == 0:
puzzle.solve_col0_tile(start[0])
else:
puzzle.solve_... | [
"bbusenius@users.noreply.github.com"
] | bbusenius@users.noreply.github.com |
e0e7d78dd4f1fee7f98cffb633332ada28ece746 | 1cef5a1cfbe5986142f58995e9ce34b6d51fe8e5 | /parser.py | f531b12682bc90d17a45860672b4e4dabcbe3ad0 | [
"MIT"
] | permissive | sauloal/py_ncbi_taxonomy | cdc70a9a4be13ad2b159ddb7804879de9111b445 | 6e2607e77945609d109f6f418dad0524543c76cf | refs/heads/master | 2020-08-24T21:59:42.245261 | 2019-10-27T21:29:45 | 2019-10-27T21:29:45 | 216,914,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,348 | py | #!/usr/bin/env python3
import os
import sys
import pickle
from collections import OrderedDict
import simplejson as json
#import json
from tax import *
import pandas as pd
import fastparquet
class AllData(General):
__slots__ = [
"divisions",
"genetic_codes",
"names",
"nodes",
# "no_parents",
# "... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
aad2138a61d1e64fd72fccf6ba6766bfefb768b7 | 08d23df88950f1c9beae44ebef584fbf8292866a | /tests.py | 4b71881fbaeb6546d2435f924afd47e8ffdc6dbf | [
"MIT"
] | permissive | arpit1997/church | 7752e19e343d3473f369c672ba8ff0f8d82070bd | 828a8e274b90b6185e47a736bd1b9b6260028e0e | refs/heads/master | 2021-01-11T03:59:48.760502 | 2016-10-18T12:26:38 | 2016-10-18T12:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,498 | py | import array
import re
from unittest import TestCase
import church._common as common
from church.church import (
Address, Text, Personal,
Datetime, Network, File,
Development, Food, Hardware,
Science, Numbers, Business,
Church
)
from church.exceptions import (
UnsupportedLocale
)
from church.ut... | [
"likid.geimfari@gmail.com"
] | likid.geimfari@gmail.com |
1611536927117e0f2425a541aa43462b10ab69e1 | 1fcfb16bbcc4387c83212c559c824cde65664533 | /MAST-1.4.0/MAST/ingredients/checker/genericchecker.py | 633f5c2480ca4559e8918c99f9d2eb8ca9d2efa0 | [
"MIT"
] | permissive | ZhewenSong/USIT | 29a0b207f2a40c8d9ed865854cdac5f82c2281ee | aaa383b8d81c4755cdff22293ef4f0bfe7694cb4 | refs/heads/master | 2021-01-10T14:46:13.155077 | 2016-04-04T19:48:14 | 2016-04-04T19:48:14 | 53,438,454 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,391 | py | ##############################################################
# This code is part of the MAterials Simulation Toolkit (MAST)
#
# Maintainer: Tam Mayeshiba
# Last updated: 2014-04-25
##############################################################
from pymatgen.io.vaspio import Poscar
from pymatgen.io.vaspio import Outc... | [
"zsong39@wisc.edu"
] | zsong39@wisc.edu |
c98db546b314ceed3b99d5a290116ca53e79c0be | 5e45f1d1d9f58aa1456777b0d75334d6efd43840 | /challenges/contests/code_forces/round310/b.py | ddeeef394ad7437d7d538332cc5b25d2b0c84464 | [] | no_license | missingdays/nerdy.school | 604953dc9b3c38a0f71793f066ce2707aa980dae | 051673e0ebc54bc2f7e96a6477697d1d528dc45c | refs/heads/master | 2021-01-17T08:10:19.558851 | 2016-06-06T15:29:01 | 2016-06-06T15:29:01 | 59,897,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 missingdays <missingdays@missingdays>
#
# Distributed under terms of the MIT license.
"""
"""
def rotate(a, n):
clock = True
for i in range(n):
if clock:
if a[i] == n-1:
a[i] = 0
... | [
"rebovykin@gmail.com"
] | rebovykin@gmail.com |
2d226f5e77c40290e347888ab04c3fd10c6a2a14 | d92330be8ea281bdfefff5d17039b1a6d44057dc | /src/stiamro/startup.py | 478af5d7aa11eaad8202de82c16120520a35f02a | [] | no_license | avoinea/stiamro | 2af6f2329abafb59b7e6b54abacb95c8f6b3d697 | 5ee6ec3b754a776cb87a9fa452e21cb2afbf38f9 | refs/heads/master | 2021-01-18T14:38:49.669592 | 2011-03-11T10:39:44 | 2011-03-11T10:39:44 | 1,397,488 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import os
import sys
import code
import zdaemon.zdctl
import zope.app.wsgi
import zope.app.debug
def application_factory(global_conf, conf='zope.conf'):
zope_conf = os.path.join(global_conf['here'], conf)
return zope.app.wsgi.getWSGIApplication(zope_conf)
def interactive_debug_prompt(zope_conf='zope.conf'):
... | [
"alin@serenity.(none)"
] | alin@serenity.(none) |
0823d037b25810b90b0805adedcdad019270008c | 301b039050c00a9efa4f3a5635e8b633f8adf988 | /caffe2/experiments/python/SparseTransformer.py | c09bb09574798a2db7772eb526185e515e98feb4 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | sunpan822/caffe2 | 9704b6fe556d272fbedfd6edfdb796f6a8f02970 | a3c56d892eb85054b4e7cbd1cf0a0d07422ae796 | refs/heads/master | 2020-04-12T14:31:45.919799 | 2019-04-19T04:10:40 | 2019-04-19T04:10:40 | 162,555,100 | 1 | 0 | Apache-2.0 | 2018-12-20T09:14:48 | 2018-12-20T09:14:47 | null | UTF-8 | Python | false | false | 6,362 | py | ## @package SparseTransformer
# Module caffe2.experiments.python.SparseTransformer
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import workspace
import scipy.sparse
class NetDefNode():
def _... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
10d6c38f461f0064766acde067ce1501198f039b | b92b0e9ba2338ab311312dcbbeefcbb7c912fc2e | /build/shogun_lib/applications/edrt/tutorial_examples/isomap.py | 968afc975fb56b891080841483da3d0476df5337 | [] | no_license | behollis/muViewBranch | 384f8f97f67723b2a4019294854969d6fc1f53e8 | 1d80914f57e47b3ad565c4696861f7b3213675e0 | refs/heads/master | 2021-01-10T13:22:28.580069 | 2015-10-27T21:43:20 | 2015-10-27T21:43:20 | 45,059,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import modshogun as sg
import data
import numpy as np
# load data
feature_matrix = data.swissroll()
# create features instance
features = sg.RealFeatures(feature_matrix)
# create Isomap converter instance
converter = sg.Isomap()
# set target dimensionality
converter.set_target_dim(2)
# compute embedding with Isomap... | [
"prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305"
] | prosen@305cdda6-5ce1-45b3-a98d-dfc68c8b3305 |
7e22946ff315b5f228a8591af59455b54238cba7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03151/s822034196.py | 4313c1c0f2ac588afa27facef6408828aef26183 | [] | 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 | 431 | py | n = int(input())
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
if sum(a_list) < sum(b_list):
print(-1)
exit()
a_sub_b = [a_list[i] - b_list[i] for i in range(n)]
insufficients = [x for x in a_sub_b if x < 0]
cnt = len(insufficients)
sum_insuf = sum(insufficients)
for x in ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
788ba397c4eae832f0db90c5895d6a977650d8ce | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/crnkee002/question2.py | cb2b9f4a82509a3b49d881ae545369931ced4326 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | """A8Q2 - Character Pairs
5/3/2012
CRNKEE002"""
def main():
message = input('Enter a message:\n')
print('Number of pairs:', double_chars(0, message))
def double_chars(pos, word):
if len(word) == 1 or len(word) == 0:
return 0
elif (word[pos] == word[pos+1]) and (pos+1 == len(word)-1)... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
d0cac88d4a8c7145000a7513167b23dddeb83fc1 | f2f88a578165a764d2ebb4a022d19e2ea4cc9946 | /pyvisdk/do/host_vmci_access_manager_access_spec.py | 3be9649b6bb56dbd6ab8a434dee41655e7e84b7b | [
"MIT"
] | permissive | pombredanne/pyvisdk | 1ecc68a1bf264095f72f274c776e5868fb302673 | de24eb4426eb76233dc2e57640d3274ffd304eb3 | refs/heads/master | 2021-01-21T16:18:39.233611 | 2014-07-28T19:50:38 | 2014-07-28T19:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def HostVmciAccessManagerAccessSpec(vim, *args, **kwargs):
'''The AccessSpec data object ... | [
"guy@rzn.co.il"
] | guy@rzn.co.il |
1b172b649cf62bea7e4b718c542cb3c43cb28435 | d38a37c6997f2282b2138fc0a74a82996940dade | /loginapp/views.py | 62e1e750131eabd25d674f07cffda8e604f17a49 | [] | no_license | ethicalrushi/SignUp | 9a295c0dcf20ea7eb47fe4af968b0c3d0caf6532 | 6deac079539bb9281f32f19e027d47436d59ce3d | refs/heads/master | 2020-03-08T13:25:28.023977 | 2018-04-05T15:13:08 | 2018-04-05T15:13:08 | 128,157,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | from django.shortcuts import render
from .forms import UserForm
from .models import User
from django.contrib.auth.hashers import make_password, check_password
from django.http import HttpResponse
from rest_framework.response import Response
from rest_framework import status, viewsets
from .serializers import UserSe... | [
"pupalerushikesh@gmail.com"
] | pupalerushikesh@gmail.com |
ba51dcc9f9c7d92cde27dcd455523ff50ad8d58e | 8930d812d545e4a67be14b928212878befa1a535 | /primes/euler0124.py | 393a0d38105dda9afc7ccd0dea331099a4a39243 | [] | no_license | jwodder/euler | bd59935e9f359e8760b4140243c907a6c44247b8 | 7549bb38dba746a04dcaa021f0c7dc06342d078b | refs/heads/master | 2020-12-22T20:20:29.311514 | 2016-08-06T01:28:33 | 2016-08-06T01:28:33 | 21,482,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | #!/usr/bin/python
r"""Ordered radicals
The radical of $n$, $rad(n)$, is the product of the distinct prime factors
of $n$. For example, $504 = 2^3\times 3^2\times 7$, so $rad(504) = 2\times
3\times 7 = 42$.
If we calculate $rad(n)$ for $1\leq n\leq 10$, then sort them on $rad(n)$,
and sorting on $... | [
"jwodder@sdf.lonestar.org"
] | jwodder@sdf.lonestar.org |
9dfda40d614bb48a5fe3ab1fc73a182b42c25ced | 6846a0469efc79b89edc8f856944d5a8005d7244 | /id_0060.py | 01b7c31aa52da90e0370908d86d70201e6913a1f | [] | no_license | CGenie/project_euler | 42cb966e13645339490046eb44a729660ae0c092 | cc90edd061b0f4d9e076d5a684b842c202a6812a | refs/heads/master | 2020-06-05T00:41:49.266961 | 2014-01-13T19:11:31 | 2014-01-13T19:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | #!/usr/bin/python2
# #####################################################################
# id_0060.py
#
# Przemyslaw Kaminski <cgenie@gmail.com>
# Time-stamp: <>
######################################################################
import pickle
from itertools import combinations
from id_0003 import is_prime
if __n... | [
"cgenie@gmail.com"
] | cgenie@gmail.com |
86d8efefc0aaa304a58e7c9b58202117545fbf48 | 03ac34ae59b3d85b1876a9ca61e08c0b7020537c | /myproject/pages/tests.py | 49bde0bf4c1a592e8d6c4a196c1ff01db6c1fbf1 | [] | no_license | pramodkumarpanda/http-django.repo | 1e94890a50ef59166cbe1919791cdac6ca73b21c | 9551a5991f9dda76674a442598eb14c2cf2312cb | refs/heads/master | 2020-07-02T10:32:58.668280 | 2019-10-21T15:28:37 | 2019-10-21T15:28:37 | 201,500,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
# Create your tests here.
from django.http import HttpRequest
#from django.test import SimpleTestCase
from django.urls import reverse
from django.test import TestCase,SimpleTestCase
from . import views
from .models impor... | [
"user@localhost"
] | user@localhost |
1cca13ce33cc9925a5981731585f0970d3da571e | e3f3b986b256911e43496fe91c463f79dda9b334 | /customauth/migrations/0006_remove_user_is_moderator.py | 3692f715b5ea627df4ca42712fb605ba20be132a | [] | no_license | itkpi/itkpimail | e2ca56849c1ca18dec0b9c7d661b3563ed1f2ffe | 6622208ca36d322e61821935804b2367f956d0b6 | refs/heads/master | 2021-01-01T19:07:29.107033 | 2015-11-08T18:57:45 | 2015-11-08T18:57:45 | 34,176,219 | 3 | 1 | null | 2018-12-09T05:00:27 | 2015-04-18T17:52:20 | JavaScript | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('customauth', '0005_user_is_moderator'),
]
operations = [
migrations.RemoveField(
model_name='user',
... | [
"roman.rader@gmail.com"
] | roman.rader@gmail.com |
35178571ff5eaafb96690f4636cddb7b8642190d | a4e4c3faa29043fc80f62a8442e2f8333cd23933 | /U_Net/primitives.py | cee4c15d4e046dc3f71f456fa4a622db17cc0c77 | [] | no_license | FangYang970206/Intrinsic_Image | 652ab87c2d95b400cf80c6a49d1863a40d1cba07 | 3b8ec261b7b3aeaa1c611473f53fb4e23b82893b | refs/heads/master | 2023-01-21T05:18:40.748488 | 2020-11-24T02:22:00 | 2020-11-24T02:22:00 | 228,824,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import sys, torch, torch.nn as nn, torch.nn.functional as F
from torch.autograd import Variable
def conv(in_channels, out_channels, kernel_size, stride, padding):
convolution = nn.Conv2d(in_channels, out_channels, kernel_size=kernel_size, stride=stride, padding=padding)
batch_norm = nn.BatchNorm2d(out_channel... | [
"15270989505@163.com"
] | 15270989505@163.com |
cd7bdd6f7349ed620ec8caa3c68b3e698ce8989b | 4cf3f8845d64ed31737bd7795581753c6e682922 | /.history/main_20200118153146.py | 31e8805576c95a01bdfc7df75a0d30d9316d527b | [] | no_license | rtshkmr/hack-roll | 9bc75175eb9746b79ff0dfa9307b32cfd1417029 | 3ea480a8bf6d0067155b279740b4edc1673f406d | refs/heads/master | 2021-12-23T12:26:56.642705 | 2020-01-19T04:26:39 | 2020-01-19T04:26:39 | 234,702,684 | 1 | 0 | null | 2021-12-13T20:30:54 | 2020-01-18T08:12:52 | Python | UTF-8 | Python | false | false | 323,675 | py | from telegram.ext import Updater, CommandHandler
import requests
import re
# API call to source, get json (url is obtained):
contents = requests.get('https://random.dog/woof.json').json()
image_url = contents['url']
def get_url():
contents = requests.get('https://random.dog/woof.json').json()
url = cont... | [
"ritesh@emerald.pink"
] | ritesh@emerald.pink |
bf3e130b1bab3b6fcb044e25147092962b48fd91 | 1af49694004c6fbc31deada5618dae37255ce978 | /tools/metrics/histograms/merge_xml.py | d522fae6d1f2e541fa077ec5b9d3ced366c2ce53 | [
"LGPL-2.0-or-later",
"Zlib",
"BSD-3-Clause",
"MIT",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference",
"MPL-1.1",
"GPL-2.0-only",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"APSL-2.0"
] | permissive | sadrulhc/chromium | 59682b173a00269ed036eee5ebfa317ba3a770cc | a4b950c23db47a0fdd63549cccf9ac8acd8e2c41 | refs/heads/master | 2023-02-02T07:59:20.295144 | 2020-12-01T21:32:32 | 2020-12-01T21:32:32 | 317,678,056 | 3 | 0 | BSD-3-Clause | 2020-12-01T21:56:26 | 2020-12-01T21:56:25 | null | UTF-8 | Python | false | false | 7,451 | py | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A script to merge multiple source xml files into a single histograms.xml."""
import argparse
import os
import sys
import xml.dom.mi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
51c20a8be35d9a81e63f1be880d978d0d13c9257 | 017033cc7094fd20334607e4c3e6e90bc5006687 | /django/api/index/migrations/0032_auto_20210607_1433.py | 92261d96b3f94ca8d42235adf992eaaf50474f0b | [] | no_license | HellMenDos/DjangoDockerPostgresSocket.io | cadc8cbc5ec1cd84b1e2455361f9a04ac557c73c | 88e4ff65cfc80df7932cffe23eee0ae221ec3519 | refs/heads/master | 2023-05-31T06:31:35.206756 | 2021-06-21T19:14:55 | 2021-06-21T19:14:55 | 367,129,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 3.1.4 on 2021-06-07 14:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0031_auto_20210607_1431'),
]
operations = [
migrations.AlterField(
model_name='userdata',
name='avatar',
... | [
"poznkirill3@gmail.com"
] | poznkirill3@gmail.com |
afae6fd7399ac8af7fc3a16e3a00a3201726ef74 | 1f006f0c7871fcde10986c4f5cec916f545afc9f | /apps/ice/plugins/pdf_utils/plugin_pdf_utils_test.py | 70219e5a0cb7c5d6363c9d19dc99114ee0ef7663 | [] | no_license | ptsefton/integrated-content-environment | 248b8cd29b29e8989ec1a154dd373814742a38c1 | c1d6b5a1bea3df4dde10cb582fb0da361dd747bc | refs/heads/master | 2021-01-10T04:46:09.319989 | 2011-05-05T01:42:52 | 2011-05-05T01:42:52 | 36,273,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,933 | py | #!/usr/bin/env python
# Copyright (C) 2007 Distance and e-Learning Centre,
# University of Southern Queensland
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2... | [
"raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05"
] | raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05 |
b91955ad63dfda9a71f830d93717f0db2366bf70 | 7ec91f8b8342b1ab62d315424f43588a13dda307 | /solu/221. Maximal Square.py | f17368e629bb9254ed8a5f5a492dfce8f0b97edc | [] | no_license | coolmich/py-leetcode | bbd001a1cb41b13cd0515d1b764ec327dfaaa03c | 3129438b032d3aeb87c6ac5c4733df0ebc1272ba | refs/heads/master | 2020-05-21T08:44:46.564419 | 2016-09-15T15:45:08 | 2016-09-15T15:45:08 | 60,917,444 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | class Solution(object):
def maximalSquare(self, matrix):
"""
:type matrix: List[List[str]]
:rtype: int
"""
if not len(matrix): return 0
mat, maxi = [[0 for i in range(len(matrix[0]))] for j in range(len(matrix))], 0
for c in range(len(matrix[0])):
... | [
"coolmich00@gmail.com"
] | coolmich00@gmail.com |
fc36f5d3bbf141bd5b97e9bfa970fa8c1f641c82 | 31fc068f935aa723a089eda3c8a639e1d9c4cee9 | /jason.py | 27b41fdd76c9d5384f1f606053da85231f1a696c | [] | no_license | jaythaceo/Jaythaceo | 31098a016c4b3453996ef89252f2d9a1f05e9c10 | f4cea385318b0ff1708e3d35e96f4eb53925d8d0 | refs/heads/master | 2023-05-30T15:16:27.589337 | 2023-04-28T16:23:31 | 2023-04-28T16:23:31 | 157,614,343 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | # Lets make a bot that does some cool shit
from flask import Flask, render_template, request, jsonify
import aiml
import os
app = Flask(__name__)
@app.route("/")
def hello():
return render_template('chat.html')
@app.route("/ask", methods=['POST'])
def ask():
message = request.form['messageText'].encode('utf-8... | [
"jaythaceo@gmail.com"
] | jaythaceo@gmail.com |
88c1de86d4d9ba1db69c49098476c61e05196810 | 540b4199dd80228f1d84c9b687e974cfa2c289a2 | /【Python+Dash快速web应用开发】系列文章/16 多页面应用/app2.py | 4298790c10256c39aeb6b4f979952cf587c417be | [] | no_license | CNFeffery/DataScienceStudyNotes | 1186e26c88874b89b65f841af5f78dc49429e479 | d45b42b49be04ba4add9cdd18b4787fb3c334b1f | refs/heads/master | 2023-08-17T07:18:43.730916 | 2023-07-25T14:05:17 | 2023-07-25T14:05:17 | 206,516,448 | 1,141 | 485 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output
app = dash.Dash(__name__)
app.layout = dbc.Container(
[
dcc.Location(id='url', refresh=False),
dbc.Row(
[
... | [
"fefferypzy@gmail.com"
] | fefferypzy@gmail.com |
1c555d3c397b93d8929f1f3d32c733ad9362307a | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/Utkarsh Srivastava/Day 6/Question 1.py | 51078cd3ed9f7841f0a3dc1a97b49dc757ef6903 | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 371 | py | candies = input("Enter Candies ").split()
max = 0
result = [0]*len(candies)
extra = int(input("Enter extra candies "))
for i in range(len(candies)):
candies[i] = int(candies[i])
if int(candies[i])>max:
max = candies[i]
for i in range(len(candies)):
if(candies[i]+extra>=max):
result[i] = True... | [
"noreply@github.com"
] | Codechef-SRM-NCR-Chapter.noreply@github.com |
3cc37cf0d6c169ef8ca16a2422467566dd03733e | 24e843a90a3b3a37cc4d76a207f41d1fc628c2e7 | /python3/test141~225.py | 8fb44d48461a29e5a31ea55c2269ee6e23ee6e0f | [] | no_license | erikliu0801/leetcode | c595ea786716f7df86bd352c1e8d691f1870ec70 | 1de7bfe192324f9de28afa06b9539331c87d1346 | refs/heads/master | 2023-08-07T14:47:19.074076 | 2021-09-05T09:46:35 | 2021-09-05T09:46:35 | 224,321,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,035 | py | #141
def hasCycle(head):
linked_list = []
while head != None:
if head in linked_list:
return True
linked_list.append(head)
head = head.next
return False
#168
def convertToTitle(n):
if n <= 0:
return
else:
digits = ['Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','... | [
"erikliu0801@gmail.com"
] | erikliu0801@gmail.com |
e356b5be593efe2b242480222729f42b266cea26 | 99799383b4e618061fe9261aa70cfe420e02a5aa | /person/migrations/0008_person_datetime_updated.py | b93c4440a6d2a8a9406b93a49b315141c371f377 | [
"MIT"
] | permissive | openkamer/openkamer | f311a97d5c9e182eabd6602f42475e8e049912b0 | bb99963c00ad90299deccd44d977c27aee7eb16c | refs/heads/master | 2023-07-20T10:45:11.402427 | 2023-07-18T17:41:56 | 2023-07-18T17:41:56 | 57,322,204 | 62 | 7 | MIT | 2023-07-17T18:15:43 | 2016-04-28T17:43:23 | Python | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.2.8 on 2019-12-05 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('person', '0007_auto_20191205_1833'),
]
operations = [
migrations.AddField(
model_name='person',
name='datetime_updat... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
4ff6bf0f114dfc486ac2a7d447a98809d1b04a35 | d63b1b36634b68070f6f3c017c0250a7ea646e6f | /SMC/GEM5/gem5/src/mem/ruby/structures/RubyPrefetcher.py | 18bb3dc69472cf6d08ff90277396485033e73a76 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | jiwon-choe/Brown-SMCSim | ccf506d34d85fb3d085bf50ed47de8b4eeaee474 | ff3d9334c1d5c8d6a00421848c0d51e50e6b67f8 | refs/heads/master | 2021-06-30T00:15:57.128209 | 2020-11-24T03:11:41 | 2020-11-24T03:11:41 | 192,596,189 | 15 | 8 | MIT | 2019-06-20T15:43:00 | 2019-06-18T18:53:40 | C++ | UTF-8 | Python | false | false | 2,437 | py | # Copyright (c) 2012 Mark D. Hill and David A. Wood
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of conditio... | [
"brandnew7th@gmail.com"
] | brandnew7th@gmail.com |
6063712ab5545c979e943f37231f60c58696e514 | 1cc5d45273d008e97497dad9ec004505cc68c765 | /cheatsheet/ops_doc-master/Service/cfaq/personalNoteBook/pythonLearn-decorator.py | 79936304b8d47aa4fb0180ebc31d541b08fcf72f | [] | no_license | wangfuli217/ld_note | 6efb802989c3ea8acf031a10ccf8a8a27c679142 | ad65bc3b711ec00844da7493fc55e5445d58639f | refs/heads/main | 2023-08-26T19:26:45.861748 | 2023-03-25T08:13:19 | 2023-03-25T08:13:19 | 375,861,686 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 859 | py |
from functools import wraps
def memorization(func: object) -> object:
cache = {}
@wraps(func)
def wrapper(*args):
v = cache.get(args, None)
if v == None:
cache[args] = func(*args)
return cache[args]
return wrapper
@memorization
def fibonacci(n: int) -> i... | [
"wangfl217@126.com"
] | wangfl217@126.com |
a42a09467bc051a0ce5993db6de29f1ad7ec391d | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetExample/InDetSLHC_Example/scripts/IDPerformanceSLHCRTT_dynamic_pagemaker.py | 7eef87f5215cdfe7baf69f62e24cc6f840ac2d91 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,674 | py | #! /usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
import os
import sys
from Logger import Logger
# module: IDPerformanceSLHCRTT_dynamic_pagemaker.py
class IDPerformanceSLHCRTT_dynamic_pagemaker:
def __init__(self,argDict={}):
# access my args from the dict... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
ec8332242621c2a458f725a777fa1c7e23397c1c | 998e1a1346f59c8e9b7669e7ebf716f9ac8cd117 | /EVSCapp/EVSCApi/urls.py | a7f4daee03f8376cd0fe5a37f9a9cb4180942c30 | [] | no_license | meku54444026/EVSCProject | 3415cf3b0abb682866fcca9bbebb32f37cb744c4 | 1bef5b405391409f27ea5948203c5e28fa1a28ff | refs/heads/master | 2023-07-02T04:45:15.314439 | 2021-08-10T14:52:48 | 2021-08-10T14:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | from django.db import router
from django.urls import path
from django.urls.conf import include
from EVSCapp.EVSCApi.views import (RecordDetailAPIView,
LisVehicle,
VehicleDetailAPIView,
ReportRUDAPIView,
... | [
"you@example.com"
] | you@example.com |
1b01557b777216b35b876eb5b76e8c11dcae98f7 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P376.py | 67230c5dd08e1fd4c1ad079f193aeec2d1ebc6e8 | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | class Solution:
def wiggleMaxLength(self, nums):
n = len(nums)
if n < 2:
return n
inc = None
t = 1
for i in range(1, n):
if inc is None:
if nums[i] == nums[i - 1]:
continue
else:
... | [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
11dcbec116bedb68d9ed2b8d582d4fa3c22d4ed6 | e87403a46c10b0528ae3d51e9d316c6c92409e2c | /models/attention/encoders/bgru_encoder.py | 1f4cbcc86a02f9905836b1f34c787648784c843e | [
"MIT"
] | permissive | xwang0415/tensorflow_end2end_speech_recognition | 662c9b899863f5595f903c4ce3b87e675e1d51a1 | 9d4661e9296b01d1116e82de823f398407207e1f | refs/heads/master | 2021-01-21T20:53:51.563852 | 2017-06-19T06:52:37 | 2017-06-19T06:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Bidirectional GRU Encoder class."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from .encoder_base import EncoderOutput, EncoderBase
class BGRUEncoder(EncoderBase):
"""Bidi... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
24387105dd66efbecce28fdcd23e85ae0ba6337e | d429c131df32789e11a98e9e965e652176fcee97 | /443A - Anton and Letters.py | 608e7a2cee9913d55638b75cd9c1c8131e89672c | [] | no_license | shan-mathi/Codeforces | a11841a1ef1a1ef78e3d506d58d9fdf4439421bd | 6f8166b79bea0eb1f575dbfc74c252ba71472c7e | refs/heads/main | 2023-06-15T08:25:41.130432 | 2021-06-24T10:36:06 | 2021-06-24T10:36:06 | 341,176,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #108786380 Mar/01/2021 14:42UTC+5.5 Shan_XD 443A - Anton and Letters PyPy 3 Accepted 108 ms 0 KB
list = str(input())
if list=='{}':
print(0)
else:
list = (list[1:-1].split(','))
list = [i.strip() for i in list]
print(len(set(list)))
| [
"noreply@github.com"
] | shan-mathi.noreply@github.com |
1c79daaf5498a22d80f0c0867463ce97502692e9 | 3da991a057cd81de802c40da2edd640878685258 | /caffe2/python/operator_test/ctc_beam_search_decoder_op_test.py | 21ca68fe007addb4333d4e8913cecfb64e83a685 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sjx0451/pytorch | 9f5b1c0c7c874f9da72c0190dc131944ba828ab7 | 3544f60f7602081398ee62bc5d652a87f4743dab | refs/heads/master | 2022-12-01T22:30:29.888370 | 2020-08-13T23:45:58 | 2020-08-13T23:48:31 | 287,421,291 | 2 | 0 | NOASSERTION | 2020-08-14T02:06:11 | 2020-08-14T02:06:11 | null | UTF-8 | Python | false | false | 5,391 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from caffe2.python.test_util import caffe2_flaky
from collections import defaultdict, Counter
from hypothesis import given, settings
import... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
42894b20a30101258c0c73f702b75506575bf3c4 | e08801ffc8aa0e59ef88662ba529056a89d924ef | /examples/elk/lsda/elk_pp.py | 13592bebd6ed836096d15314b3a173ff5bfc559f | [] | no_license | chrinide/DFTtoolbox | a8c848849693426b82f4c329523cc8d82f4d39ac | dfe003507011ec14ef520df36d0da55f52dd0028 | refs/heads/master | 2021-04-15T14:28:40.593612 | 2017-12-13T23:00:11 | 2017-12-13T23:00:11 | 126,837,451 | 1 | 0 | null | 2018-03-26T14:00:25 | 2018-03-26T14:00:24 | null | UTF-8 | Python | false | false | 710 | py | from DFTtoolbox.elk import postproc
import os
# Parameters =======================================
run_task=[1,2,3,4,5,6]
wkdir=os.path.dirname(os.path.realpath(__file__))
klabel=['$\Gamma$','X','W','K','$\Gamma$','L','U','W','L','K']
Ebound=[-5,5]
state_grp=[['1:1/1/a/a'],['2:2/2/a/a']]
# Main =======================... | [
"pipidog@gmail.com"
] | pipidog@gmail.com |
6d32704f852655a0cfb1ee6f5c83b7814aa83fcb | d748a68c9d9100cb2ad275ebf0fd161532dd8200 | /cubicus/device.py | 04e4204bac84a483be21a740aef3331e7875f0eb | [] | no_license | drpancake/cubicus-daemon | aff192aa6e5b2ed97a5a34d5e1f3528d99bb4e71 | feaa8009a1bfe25ef47ca198e1bc3783ad5b58fd | refs/heads/master | 2021-01-02T09:27:10.321494 | 2012-05-01T21:31:09 | 2012-05-01T21:31:09 | 3,901,291 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py |
import os
import random
from cubicus.sock import SocketThread
from cubicus.models import Event
PAIRINGS_FILE = 'pairings.dat'
def display_pin(pin):
""" Kludge - PIL for now """
from PIL import Image, ImageDraw
im = Image.new('RGBA', (300, 100))
draw = ImageDraw.Draw(im)
draw.text((5, 5), pin)
... | [
"james.potter@gmail.com"
] | james.potter@gmail.com |
65afdd06bb2760a7cd754a6439f901e8c2c18c55 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=50/sched.py | 906f21dc0c17a1a4da4f66497f1581033d82294a | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | -S 0 -X RUN -Q 0 -L 7 138 400
-S 0 -X RUN -Q 0 -L 7 119 400
-S 1 -X RUN -Q 1 -L 4 90 400
-S 1 -X RUN -Q 1 -L 4 72 250
-S 2 -X RUN -Q 2 -L 3 64 250
-S 2 -X RUN -Q 2 -L 3 62 250
-S 3 -X RUN -Q 3 -L 2 40 125
-S 3 -X RUN -Q 3 -L 2 35 150
-S 4 33 150
-S 4 31 150
-S 4 26 100
-S 5 24 150
-S... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
1efe310b28c4e6a1bf1bfe0b321d4aecdd908515 | c0aff8a6ea16a6921bdbb907e6769d229dcdb6cb | /src/push_server/ios/push_worker/apnslib/notify_mgr.py | e55b66465e5275213ab7b49bdf5df1d116cc4eb8 | [] | no_license | chwangbjtu/pushService | fe1d3f92ea9f1292603be41894f8496fb7c13fba | 28a58bcba1522275d07bb20d41e8df5642955367 | refs/heads/master | 2021-01-11T18:17:30.263415 | 2016-09-27T10:43:08 | 2016-09-27T10:43:08 | 69,335,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | #-*- coding: utf-8 -*-
from __init__ import *
from connection import *
from tornado import log
import traceback
import etc
from statistics import Statistics
from tokens import TokenMgr
class APNSNotificationWrapper(object):
sandbox = True
payloads = None
connection = None
identifier = 1
error_at = ... | [
"chwangbjtu@gmail.com"
] | chwangbjtu@gmail.com |
1cd88b885c3b7efa082c8c2e1d20a5c27e47b3b0 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/qqH_SF/Full2017_HTXS_Stage1p2_v7/aliases.py | 5590cce79052d81eb95a5479ea2953beb062d395 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 11,277 | py | import os
import copy
import inspect
configurations = os.path.realpath(inspect.getfile(inspect.currentframe())) # this file
configurations = os.path.dirname(configurations) # Full2017_HTXS_Stage1p2_v7
configurations = os.path.dirname(configurations) # qqH_SF
configurations = os.path.dirname(configurations) # Configura... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
5accc9fcadaf610a635543b7d61a06617e7baa0f | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sympy/2017/8/test_cse.py | 3043acdc987ebd66cdb5945ed4119422d868b14c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 17,101 | py | from functools import reduce
import itertools
from operator import add
from sympy import (
Add, Mul, Pow, Symbol, exp, sqrt, symbols, sympify, cse,
Matrix, S, cos, sin, Eq, Function, Tuple, CRootOf,
IndexedBase, Idx, Piecewise, O
)
from sympy.core.function import count_ops
from sympy.simplify.cse_opts impo... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
98ee322836ec34a3a4310506f52b914c4f8634ea | 56bf1dbfa5d23257522fb03906e13c597a829ed3 | /lib/wamp_components/analytics_component.py | 09b1634f64ccea3c071b0d8e16dfe5a84f9696bd | [
"MIT"
] | permissive | fendaq/SerpentAI | 0417777bbc0fccb50df456d0ced1bce839aa3211 | e9c147f33a790a9cd3e4ee631ddbf6bbf91c3921 | refs/heads/master | 2021-07-23T02:04:15.977726 | 2017-08-26T23:31:59 | 2017-08-26T23:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import asyncio
from autobahn.asyncio.wamp import ApplicationSession, ApplicationRunner
from autobahn.wamp.types import RegisterOptions, SubscribeOptions
from autobahn.wamp import auth
from lib.config import config
import aioredis
import json
class AnalyticsComponent:
@classmethod
def run(cls):
prin... | [
"info@nicholasbrochu.com"
] | info@nicholasbrochu.com |
468e2fa105770bc6613f4c974b423ea70ccf8192 | 26b03741c4651eb2f076e51cd34d71f2fb826fcf | /dev/web/Rocky/src/accounts/migrations/0007_wallettransactions.py | ba8f123aea7966fa763c98b89bb2264471459679 | [] | no_license | sreeram315/Rocky---Hardware-project-ATmega-Django-mySQL | 072fc8e9913f22dc0e47a73d29ace6ff1795ed0f | 1ef82b1914bdfc57866e7420e12bf4318cf3f030 | refs/heads/main | 2023-06-04T16:01:51.176564 | 2021-06-21T22:18:01 | 2021-06-21T22:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | # Generated by Django 2.2.7 on 2020-04-03 05:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('accounts', '0006_userpro... | [
"sreerammaram2@gmail.com"
] | sreerammaram2@gmail.com |
de0c136c8109404cf6cd1042ce98bf631f321851 | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/utils/callbacks/nemo_model_checkpoint.py | b96eea0192c57fbb46df4e7688c0b4f841e97c04 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 12,380 | py | # Copyright (c) 2023, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
054b06d9579be1ed0da49ab1d44ab99a4bdf7eaf | 27b86f422246a78704e0e84983b2630533a47db6 | /docs/source/tutorials/src/hatch/solid_hatch_true_color.py | 71612e3499d520bbc0a4d87c8b1813705602c924 | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 598 | py | import ezdxf
# hatch with true color requires DXF R2004 or later
doc = ezdxf.new("R2004")
msp = doc.modelspace()
# important: major axis >= minor axis (ratio <= 1.)
msp.add_ellipse((0, 0), major_axis=(0, 10), ratio=0.5)
hatch = msp.add_hatch() # use default ACI fill color
hatch.rgb = (211, 40, 215)
# every boundar... | [
"me@mozman.at"
] | me@mozman.at |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.