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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a15e5071a4cf5caaaaf7b34122dc43319feed79 | 105ee300f5d50be628b81f30550c070fdec04495 | /neuripsconf/done/ma_crosstr_v504b.py | e05d06387669366b4437825d7e66fde6f88f7351 | [] | no_license | Myyyr/segmentation3D | 9b12c08b6eee245cc93b8ba2d1ac932a349eb618 | 0bd33d7a4c24816f3ecb4089a7d96ceaf64f298b | refs/heads/main | 2023-06-21T06:45:12.609911 | 2021-07-13T07:49:43 | 2021-07-13T07:49:43 | 309,314,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,341 | py | # More Parameters (depth) to match with classical UNet number of parameters.
# n_parameters = 114557582
import os
from models.utils import get_scheduler
import torch.optim as optim
import alltrain.atlasUtils as atlasUtils
from PatchedMultiatlasDataset_v3 import *
from torch.utils.data import DataLoader
import torch
imp... | [
"loic.themyr@gmail.com"
] | loic.themyr@gmail.com |
a7db5c206101d67106804b107e212f2550467f76 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /docs/user_guide/operation/scripts/examples/argus/extraction/jan/test scripts/PrepareForBlankNP10.py | 53218ab06727a51bf390cd988a4e472692541d64 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 531 | py |
def main():
info('Prepare for NP10 Blank analysis')
close(description='Jan Inlet')
open(description='Jan Ion Pump')
close(description='Microbone to Minibone')
open(description='Microbone to Turbo')
open(description='Microbone to Inlet Pipette')
close(description='Microbone to Getter NP-10C'... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
984063d568aa192a28ddbfe589875bef2f13dddd | a939e018333a9ecd26ddc618f99835b7eb381686 | /le_crawler/core/.svn/text-base/urlmd5_inserter.py.svn-base | a208af395d09a8d72da4a6707dcead850008a074 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | import memcache
import hashlib
import urllib
class UrlMd5Inserter:
def __init__(self, logger = None):
self._client = memcache.Client(['127.0.0.1:11211'])
self._logger = logger
self._miss_count = 0
self._has_send_message = False
def send_message(self):
for tel in ['13426031534', '18515029185'... | [
"zjc0516@126.com"
] | zjc0516@126.com | |
2b09f1cbc6122618f1660239caaecf8d5c627104 | 070b693744e7e73634c19b1ee5bc9e06f9fb852a | /python/problem-BST/TreeNode.py | bb2a63b5acedeeaa4bc687eaa2c304616739c7b2 | [] | no_license | rheehot/practice | a7a4ce177e8cb129192a60ba596745eec9a7d19e | aa0355d3879e61cf43a4333a6446f3d377ed5580 | refs/heads/master | 2021-04-15T22:04:34.484285 | 2020-03-20T17:20:00 | 2020-03-20T17:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | ../problem-tree/TreeNode.py | [
"morpheus.0@kakaocorp.com"
] | morpheus.0@kakaocorp.com |
a4791b97e58d631653912af81e84687580e8838c | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi | 5af5d8087ee9da8cede3cae09cf08921cd20a938 | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 4,463 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | FallenRiteMonk.noreply@github.com |
c4e30ab3b20858daa94874c13887eb46b306a2dd | c1bfadbc033efba287ad55a804e9d69d297c3bf2 | /valohai_cli/yaml_wizard.py | 044a3a8e52e639b7fe3f82e1cee9cc4721456238 | [
"MIT"
] | permissive | valohai/valohai-cli | 16560b078d20a02c8cdc7388beeea9bebac4be7d | c57cc164e749fb77b622d629a5ad05b2685534bb | refs/heads/master | 2023-08-31T14:04:26.979762 | 2023-08-22T12:54:51 | 2023-08-22T12:54:51 | 81,329,264 | 14 | 5 | MIT | 2023-09-11T13:35:04 | 2017-02-08T12:46:54 | Python | UTF-8 | Python | false | false | 4,261 | py | import codecs
import os
from typing import List
import click
import requests
import yaml
from valohai_cli.messages import error, success, warn
from valohai_cli.utils import find_scripts
from valohai_cli.utils.cli_utils import prompt_from_list
YAML_SKELLINGTON = """---
- step:
name: Execute {command}
image: ... | [
"akx@iki.fi"
] | akx@iki.fi |
3b98be268d96202ec11b07ae5bf7405d018285ef | 4b322cc4a7d5ce099e99fd597e4c51caf1704d16 | /packs/python_packs.py | 82322c932fc0b2c9fa9cae3a507ae5cdf303635c | [] | no_license | mjgpy3/umm_script | 7037b8aa8d3052b0534cbf33760cb681f9549c29 | 2f7a6e6ac34c2d0ec58195dc1d2d0912cc168d28 | refs/heads/master | 2021-01-10T20:11:06.473971 | 2013-03-06T15:27:30 | 2013-03-06T15:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!/usr/bin/env python
# Created by Michael Gilliland
# Date: Fri Jan 25 16:47:44 EST 2013
#
#
from package_container import PackageContainer
packages = {'Sympy': 'python-sympy',
'Numpy': 'python-numpy',
'Scipy': 'python-scipy',
'Matplotlib': 'python-matplotlib',
'Sp... | [
"mjg.py3@gmail.com"
] | mjg.py3@gmail.com |
8962b5672f25b13d653dde89d99035c4d8090e95 | 2d5d13c4bdc64202a520f32e7d4a44bb75e2004f | /week-02/d02/sum.py | a6efc084acd3c1c5d52d0715fbd71556a40e3c3e | [] | no_license | green-fox-academy/andrasnyarai | 43b32d5cc4ad3792ef8d621328f9593fc9623e0b | 19759a146ba2f63f1c3e4e51160e6111ca0ee9c3 | refs/heads/master | 2021-09-07T16:19:34.636119 | 2018-02-26T00:38:00 | 2018-02-26T00:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # - Write a function called `sum` that sum all the numbers
# until the given parameter
def sum(x):
s = 0
for i in range(1,x+1):
s = s + i
return s
x = int(input())
print(sum(x)) | [
"andrasnyarai@gmail.com"
] | andrasnyarai@gmail.com |
c54e78fbf7d25340d3cc30fd3f86b4f534345415 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019093900.py | f2b99c8f80eb8da086d09a372fca19597d3b3670 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
re
) | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
7684a374aa577e0696430e5dec1be15046f15e42 | c3ad35192313827ae1064e9614182c182690d675 | /3 - Two Pointers Algorithm/228. Middle of Linked List.py | f4319e7153443b8a090acb1b9ee6e7585b714d05 | [] | no_license | LingHsiLiu/Algorithm1 | 2614cb6e7d6d83e53081397153e0c7938a8c3196 | 817332c374cab5d2fa8d6abd1b27dbcad85656d5 | refs/heads/master | 2020-03-27T00:46:55.948804 | 2019-11-15T04:15:12 | 2019-11-15T04:15:12 | 145,656,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # Find the middle node of a linked list.
# Example
# Given 1->2->3, return the node with value 2.
# Given 1->2, return the node with value 1.
"""
Definition of ListNode
class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
"""
class Solution:
"""
@pa... | [
"noreply@github.com"
] | LingHsiLiu.noreply@github.com |
9c24e3ed3ce8a5a9fbed8e742abf78e1de21d5ce | e21f7d14e564d7fb921277a329ff078e86ad86a2 | /2016/day_02/day_02.py | 6e7b32d360e727f1672245c6798f5f753b46ca59 | [] | no_license | MrGallo/advent-of-code-solutions | 31456a0718303cca6790cf1227831bcb14649e27 | 28e0331e663443ffa2638188437cc7e46d09f465 | refs/heads/master | 2022-07-07T08:49:30.460166 | 2020-12-17T17:22:24 | 2020-12-17T17:22:24 | 160,988,019 | 0 | 1 | null | 2022-06-21T22:26:19 | 2018-12-08T23:34:51 | Python | UTF-8 | Python | false | false | 1,903 | py | from typing import List
DIRECTIONS = {
"U": (0, -1),
"D": (0, 1),
"L": (-1, 0),
"R": (1, 0)
}
KEYPAD_WIDTH = 3
KEYPAD_HEIGHT = 3
KEYPAD = [
[i for i in range(1+KEYPAD_HEIGHT*j, KEYPAD_HEIGHT*j+KEYPAD_WIDTH+1)]
for j in range(KEYPAD_HEIGHT)
]
ACTUAL_KEYPAD = [
[None, None, "1", None, None... | [
"daniel.gallo@ycdsbk12.ca"
] | daniel.gallo@ycdsbk12.ca |
e4ce2491502b31086ded61177a25b8a7017a2484 | bb79411e60fb06844f4d7cc3069e44caaac4d919 | /asq/tests/test_data_record.py | 85579f6af3b4bbbf38dacb6c7a0ebd60ccb1c75d | [
"MIT"
] | permissive | geraintpalmer/ASQ | 789bf37f7b51fd493fcb3ed10fabc3ad0ac2a904 | 4ff207317b201c96548bfa8263b6f04fcd4a546c | refs/heads/master | 2021-01-10T11:20:06.865591 | 2015-12-14T16:00:15 | 2015-12-14T16:00:15 | 46,278,239 | 2 | 4 | null | 2015-12-14T16:00:15 | 2015-11-16T14:05:03 | Python | UTF-8 | Python | false | false | 1,015 | py | import unittest
import asq
class TestDataRecord(unittest.TestCase):
def test_init_method(self):
r = asq.DataRecord(2, 3, 2, 8, 1, 2)
self.assertEqual(r.arrival_date, 2)
self.assertEqual(r.wait, 0)
self.assertEqual(r.service_start_date, 2)
self.assertEqual(r.service_time, 3)... | [
"palmer.geraint@googlemail.com"
] | palmer.geraint@googlemail.com |
b885fe440bae9dafc2e7c60d43c6c4a58b12034d | 947720511ee9a0cba09347042c3eadbb10f3e01e | /Results_plotting/semantic.py | c698e1bae4eea14a485974b0436e8568274b37ca | [] | no_license | OMARI1988/language_and_vision | 8737ee83043517f58e0cb36943b389c0bf617a04 | 527098c1d47ec959a24669d44effcd307b8309c2 | refs/heads/master | 2021-01-17T01:14:04.994195 | 2020-10-04T21:26:58 | 2020-10-04T21:26:58 | 31,417,989 | 0 | 1 | null | 2017-09-07T14:07:58 | 2015-02-27T12:18:42 | Python | UTF-8 | Python | false | false | 4,482 | py | # This is a ported version of a MATLAB example from the signal processing
# toolbox that showed some difference at one time between Matplotlib's and
# MATLAB's scaling of the PSD. This differs from psd_demo3.py in that
# this uses a complex signal, so we can see that complex PSD's work properly
import numpy as np
impo... | [
"omari.1988@gmail.com"
] | omari.1988@gmail.com |
6f99374339cac941da9a9510f04d46779fdb8a46 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/contrib/cv/tracking/SiamFC/utils.py | e5d77ea29fc4685c0728936c9cf7e966f078b806 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 5,910 | 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 ... | [
"liuzhuheng@huawei.com"
] | liuzhuheng@huawei.com |
d6d9862ce74535a49554e76cbdf4a1b1b3d1f9c1 | ebd6d5c981b2a897e398ccb6be188cfbad734d8a | /experiments/testAllSimilarNets.py | 14c815b8919ba4912a90256a4c9a18e52076b6e3 | [] | no_license | thodorisGeorgiou/transfer_learning_experiments | 02a21b762e5e863dbcc595423955747f4dad245a | 9180c4f2750d56863ea56a1d2d9db9efaf955f11 | refs/heads/main | 2023-03-19T04:15:49.287784 | 2021-03-04T11:37:27 | 2021-03-04T11:37:27 | 344,453,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | import os
import sys
import multiprocessing
# modelTypes = ["op", "cc"]
# modelTypes = ["vc", "ds", "op", "cc"]
modelTypes = ["vc"]
numRuns = 4
# basePath = sys.argv[1]
# mType = sys.argv[2]
mType = "vc"
# if basePath[-1] != "/":
# exit("Path must end with a slash")
# gpu = sys.argv[1]
# releaseDirs = ["vc/1/","vc/2/... | [
"thodorisgeorgiou65@gmail.com"
] | thodorisgeorgiou65@gmail.com |
9286d75d6f5700bd05546d605a80cf14630ff80f | b7126fb70f72fea0e7bba6fe2fef6925302ef07b | /tceh6/venv/bin/easy_install-3.6 | 86c4357459840c772a72c2796a316a5c70675a33 | [] | no_license | duk1edev/tceh | 79cd909c5a6221a2ca77d342b917462345140faa | 21649d42488883beb58d709f4a9d1a05c75d2900 | refs/heads/master | 2021-07-12T10:20:22.330005 | 2020-04-29T09:24:08 | 2020-04-29T09:24:08 | 239,434,484 | 0 | 0 | null | 2021-03-20T03:38:26 | 2020-02-10T05:25:33 | Python | UTF-8 | Python | false | false | 434 | 6 | #!/home/duk1e/code/tceh6/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
53acb3b43aae15e5fd6faadb8b7a2ca68b87c566 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/294/78128/submittedfiles/testes.py | 6763a618605abdfcedcb0473d77f3999150f2231 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
a= int(input('Digite o número: '))
if (a%2)==0:
print('PAR')
else:
print('IMPAR') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fc8146540a4e5180187271bc7e25e4a7259440eb | 5b78602dd41bb226bc97e0acc60d2ec7dff10da4 | /Temur_online_magazini/django_project/store/serializer.py | 12892efabc4dc35b77f33ed5459f7c556c514a04 | [] | no_license | developeryuldashev/Rest_Api_boshlang-ich | fac742823442d052930526b60dc613853e9a9773 | a2f1b5cc104d53504a694d26ba8f492f0743e67e | refs/heads/main | 2023-08-18T23:52:40.441378 | 2021-09-13T03:32:29 | 2021-09-13T03:32:29 | 393,358,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | from rest_framework import serializers
from .models import *
class OrderDetActions(serializers.Serializer):
action=serializers.CharField(max_length=5)
class CustomerSerializer(serializers.ModelSerializer):
class Meta:
model=Customer
fields='__all__'
class CategoriesSerializer(serializers.Mod... | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
3a6bb59f575212600ec46dd373b02dbb5de0329e | 83f443f454716d534eff57ef399f86aa9a267b20 | /b1_cnn/basic/1_tf_low_api.py | 51f9795d81d41463963b3c6e3fd595539420d139 | [] | no_license | Gilbert-Gb-Li/Artificial-Intelligence | fef400c9e767ba7e348e1f135164da1e13c04592 | 28247627eab50613c1a5bf67f70e979a0a9eecb2 | refs/heads/master | 2021-04-23T19:46:19.556837 | 2020-04-09T08:47:42 | 2020-04-09T08:47:42 | 249,986,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import tensorflow as tf
'''
tf 底层api
----------
input, 输入的形式[B, H, W, C]
filter, 卷积核输入形式[B, H, C_in, C_out]
strides, 步长[B, H, W, C]
'''
c_out = 128
'''# 通过输入的数据获取shape'''
b, h, w, c = input.get_shape()
'''
定义filter, 名为kernel;之后操作可以使用该名称提取变量
'''
filter = tf.get_variable('kernel', [3, 3, c, c_out])
tf.nn.conv2d(input,
... | [
"gb.l@foxmail.com"
] | gb.l@foxmail.com |
093a07fb661b25f93b35aa5258dea95855fc25a2 | 3e0468eb7101281ff8133b2acd08b6f83f8953f9 | /chap10/map的使用.py | 48dae53d968733878f5da77b18466b818b9dfc27 | [] | no_license | etoy0328/python_base_knowledge | 4e514f93b844a1e5d2a654267cf5ea295ae634e2 | 7db140e838939da1ddf9967f82fc78d109aa6362 | refs/heads/master | 2023-03-22T10:23:28.211691 | 2021-03-16T10:32:42 | 2021-03-16T10:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # 中国矿业大学(北京)/ 机电硕-6 / ZQT2000405103 / 李天鸽
# 编辑时间:2021/3/16 14:25
ages = [11,13,12,50,30,33,19]
m = map(lambda ele : ele +2,ages)
print(m) #<map object at 0x00000220C1D6F160>
new_ages = list(m)
print(new_ages) | [
"1740636835@qq.com"
] | 1740636835@qq.com |
83087236d2a91b777ad987ef68a4c78684b0c4aa | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC344.py | 1ace2c0f3a04e6d8f71e1bb60a1394826cc48796 | [
"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,589 | py | # qubit number=3
# total number=12
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2669fd30072a0d9fbdbd1acd75c604560975a01b | bcf11ccd5ec986f461edcf874c2d12e2fad13e76 | /junk/208.py | 39cd778d1a04341e41199f5b9766962f166b8c6b | [] | no_license | buxuele/algo_snippet | c1a8a0855e6c2a02f5045d21710baa7fa8b00d13 | 9ab71d523f5079b6d72aef11b09120fee047f66c | refs/heads/master | 2021-05-18T06:45:56.111807 | 2021-02-21T17:13:31 | 2021-02-21T17:13:31 | 251,164,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # author: fanchuangwater@gmail.com
# date: 2020/3/25 下午11:17
# 目的:
# 先暴力一点试试看
ret = 0
for i in range(10 ** 7):
if len(str(i)) == len(set(str(i))):
# print(i)
ret += 1
print()
print("finally")
print(ret)
| [
"baogebuxuele@163.com"
] | baogebuxuele@163.com |
58c2069f47e0843d054c6bfb544cd0d3cca57cea | d8d27da5abc5ad63e288f0f8617f35e4bc14620d | /pyproct/clustering/evaluation/metrics/test/data/example_clustering_1.py | a70e8ed54ae040fcb93607a5a5b1476dd30c8328 | [
"LicenseRef-scancode-other-permissive"
] | permissive | victor-gil-sepulveda/pyProCT | a48a1b86ebcadc48a1146f88fd7363dabecb5079 | 2777c73efb48d5ca6543c69a31719421c4d54694 | refs/heads/master | 2021-01-17T14:47:37.660100 | 2017-08-24T15:14:04 | 2017-08-24T15:14:04 | 6,504,827 | 11 | 13 | null | 2014-07-09T14:26:36 | 2012-11-02T10:47:04 | Python | UTF-8 | Python | false | false | 3,640 | py | """
Created on 27/01/2014
@author: victor
"""
# -> with spectral
clustering_01 = {'clusters': [
{'prototype': 13,
'elements': '13, 15, 17:18, 20, 22, 24, 26, 28, 45:46, 48, 50, 52, 54, 56, 60:61, 63, 65, 67, 69, 71, 86, 88, 90, 93, 96, 98, 112, 114, 117, 11... | [
"victor.gil.sepulveda@gmail.com"
] | victor.gil.sepulveda@gmail.com |
0c634e6bbd42c0e27ca3bc801542af775ec860b2 | cb94a4cdd7a9df17f9c6f1a03f8f4ff12c916cf3 | /Programming_Foundtions_Algorithms/Ex_Files_Programming_Foundations_Algorithms/Exercise Files/6 Other Algorithms/Filter_start.py | 106aa0ba317296d654bc0d6d427504adf4ebebf0 | [] | no_license | sedstan/LinkedIn-Learning-Python-Course | 2b936d0f00703a6e66a872220ed47572123dc7fd | b4584218355bf07aa3d2939b950911eae67adb0b | refs/heads/master | 2021-10-11T10:19:13.675662 | 2019-01-24T17:55:20 | 2019-01-24T17:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # use a hashtable to filter out duplicate items
# define a set of items that we want to reduce duplicates
items = ["apple", "pear", "orange", "banana", "apple",
"orange", "apple", "pear", "banana", "orange",
"apple", "kiwi", "pear", "apple", "orange"]
# TODO: create a hashtable to perform a filter
... | [
"sed@wearewhy.co.uk"
] | sed@wearewhy.co.uk |
d527bc01e6d4354042cdd1609447257fbca71a4f | 978248bf0f275ae688f194593aa32c267832b2b6 | /xlsxwriter/test/worksheet/test_worksheet07.py | 8987c4dc09a18d9fefa1ba175fa8d598780e5d5f | [
"BSD-2-Clause-Views"
] | permissive | satish1337/XlsxWriter | b0c216b91be1b74d6cac017a152023aa1d581de2 | 0ab9bdded4f750246c41a439f6a6cecaf9179030 | refs/heads/master | 2021-01-22T02:35:13.158752 | 2015-03-31T20:32:28 | 2015-03-31T20:32:28 | 33,300,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import Worksheet
from ...shareds... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
8c4037f2fd69e4f6614d648cbd35c997b2d1510e | 536bce6ca78a9a151247b51acb8c375c9db7445f | /src/files/rw_csv.py | 39ccf3e1f9bacec7c15e21e42533d71dca30dde3 | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 734 | py | infile = open('budget.csv', 'r')
import csv
table = []
for row in csv.reader(infile):
table.append(row)
infile.close()
import pprint
pprint.pprint(table)
# transform numbers in table into float objects
# (let first row and first column remain strings)
for r in range(1,len(table)):
for c in range(1, len(table[... | [
"martin@rodvand.net"
] | martin@rodvand.net |
ab7df51266add97d209fa99b82f75cf4f1e0eae2 | 9063052d8e2c294efa3b501d42aef2ac59d84fa0 | /영상처리/assignment3/b.py | 10dce4c350900a30d1a1377b7d280efdc9e3c9c2 | [] | no_license | yes99/practice2020 | ffe5502d23038eabea834ebc2b18ff724f849c4a | 100ac281f4fe6d0f991213802fbd8524451f1ac2 | refs/heads/master | 2021-07-08T00:54:19.728874 | 2021-06-13T05:52:07 | 2021-06-13T05:52:07 | 245,789,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import numpy as np
import cv2
img = cv2.imread('nine.png',cv2.IMREAD_COLOR)
#정상적으로 출력되는지 확인
cv2.imshow('image1',img)
#색을 쪼갠다.
b,g,r = cv2.split(img)
#히스토그램을 긁어오는데 쓴다
histogramR = np.zeros((256,),dtype=np.float64)
histogramG = np.zeros((256,),dtype=np.float64)
histogramB = np.zeros((256,),dtype=np.float64)
histogramY... | [
"yes950324@naver.com"
] | yes950324@naver.com |
9c90fc258340931a86f59dc8604c1067bd1c4304 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/virtualenv/util/path/_sync.py | c8069bad58192642ee180777910daf347c154a3b | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/5b/8a/a2/f7e8f925fe41daefc00ccfdf9628d50e49315ee8dae212a5ab978784ca | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
328897e5bad2df1b8130ad7198c2b38636080d6b | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow/source/tensorflow/python/ops/image_grad.py | b6b61ab92ce0e82331d349d7615f3badd7b6399b | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 3,785 | py | # Copyright 2015 The TensorFlow Authors. 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 applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
94b42e9b782f24022d395b78afbb0c1454c0747b | a9eda70d7cf14604dca1805c19cc5df3a8e8918c | /Cell200/Train_CcGAN_backup.py | b00824e492a55c5fa0b324a046bde9d94031144d | [] | no_license | Zereke/improved_CcGAN | 6f00037f8245d29deeb11cdb37488ce6d801023b | adb1f0cd56ff33e2127d1eee5053dac58e292a5c | refs/heads/master | 2023-04-08T11:35:19.925545 | 2021-04-05T07:07:39 | 2021-04-05T07:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,711 | py | import torch
import numpy as np
import os
import timeit
from PIL import Image
from torchvision.utils import save_image
from utils import *
from opts import parse_opts
''' Settings '''
args = parse_opts()
NGPU = torch.cuda.device_count()
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# some par... | [
"dingx92@gmail.com"
] | dingx92@gmail.com |
a0fd3dd7e8aad3c7028e7c5168f79cb4d2878e3e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2285/60889/279158.py | c12b8b99d18f9cb48e74a03d5c66649041d29e36 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | numOfInput = int(input())
for i in range(numOfInput):
days = int(input())
profits = list(map(int,input().split(" ")))
trade = []
trade.append(0)
for j in range(1,days-1):
if ((profits[j] < profits[j-1]) and (profits[j] < profits[j+1])) or ((profits[j] > profits[j-1]) and (profits[j] > profit... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e2126a086747b41651adecffe157114a80e7dc03 | 8e657d3f3d94d84e1948c61a82d5fbffcf913348 | /akivymd/uix/hintwidget.py | 65895294556bbe496a714b74e305b01e50d2a51d | [
"MIT"
] | permissive | quitegreensky/akivymd | 169b4466b9cbc39e4d940c3d1a616f80528ab8f4 | b2daddd2f58889859514286606f46a4af6f03828 | refs/heads/master | 2023-06-03T15:12:44.746360 | 2020-11-02T19:04:37 | 2020-11-02T19:04:37 | 273,256,286 | 51 | 16 | MIT | 2021-06-17T03:34:51 | 2020-06-18T14:12:55 | Python | UTF-8 | Python | false | false | 7,234 | py | from kivy.animation import Animation
from kivy.clock import Clock
from kivy.core.window import Window
from kivy.lang.builder import Builder
from kivy.properties import (
BooleanProperty,
ListProperty,
NumericProperty,
OptionProperty,
StringProperty,
)
from kivy.uix.boxlayout import BoxLayout
from ki... | [
"quitegreensky@gmail.com"
] | quitegreensky@gmail.com |
5791643f8785ad34b90e8a376555f5e409d40fb1 | facbdbdadacd23f6c83d266116dc14744741070f | /Core_Python/Day-8/Part-2 Loops/22.py | fbe299c4b5770cba90a8d6c96f2804bda69c3b43 | [] | no_license | Yogesh-Singh-Gadwal/YSG_Python | 51b6b53fe34567bf066b6e487c00da766b47ac6b | f0d6841e1f92d1d2b27d8ecdd332d40b49a5ca69 | refs/heads/master | 2023-06-06T04:40:12.004713 | 2021-07-06T19:59:26 | 2021-07-06T19:59:26 | 292,482,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # Loops
# While
a = 0
while a < 10:
a += 1
if a > 7:
break
print('Micky ',a)
else:
print('Complete Loop Executes')
print('End Loop')
| [
"noreply@github.com"
] | Yogesh-Singh-Gadwal.noreply@github.com |
c0ba75e7f47fa1c382e6c8d5e91fb1dc9615395f | 4ec4bc10fb1fd02e56eb1763bde624a47e9b7f9e | /sf_dd/model/distracted_driver_configer.py | e5791d7eca1a61e28335e3d3ba5299853df5dde1 | [] | no_license | cooperoelrichs/gpml | d4d1682a7074964dfa749af3bcbe2aef16aaafbb | fd62908f86d66e03668d9c58850133d0c3af80de | refs/heads/master | 2020-12-12T00:41:59.494739 | 2016-05-13T06:53:54 | 2016-05-13T06:53:54 | 53,009,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from gpml.model import configer
def from_json(config_file, project_dir):
return configer.from_json(
DistractedDriverConfiger, config_file, project_dir)
class DistractedDriverConfiger(configer.ConfigerBase):
def __init__(self, config, project_dir):
super().__init__(config, project_dir)
... | [
"c.oelrichs@gmail.com"
] | c.oelrichs@gmail.com |
c1d3a1b216b74fd355d314fbf664e2c9a2b0caaa | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_223/ch62_2020_04_27_13_36_33_208956.py | 31d6e4a06a8eed9bb438bef4c0f69df2a33d789d | [] | 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 | 160 | py | def pos_arroba(email):
i=0
while i < len(email)-1:
if email[i] == "@":
posicao = i
else:
i+=1
return posicao | [
"you@example.com"
] | you@example.com |
1f9cdefda207a3dbeecf4e0813a91032280775f0 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-3.6.2/bin/weewx/drivers/wmr200.py | 6cb1c880130abbd47e120120c8f7422c96789c2f | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 78,327 | py | #
# Copyright (c) 2013 Chris Manton <cmanton@gmail.com> www.onesockoff.org
# See the file LICENSE.txt for your full rights.
#
# Special recognition to Lars de Bruin <l...@larsdebruin.net> for contributing
# packet decoding code.
#
# pylint parameters
# suppress global variable warnings
# pylint: disable-msg=W0603
# ... | [
"tom@tom.org"
] | tom@tom.org |
3f2c5e2b102f57bd098165ff8171c55a59f18753 | 9df1da438b59a3a53b186db8999b46e92cd44168 | /src/awp_processing/check_param.py | 3b84034f08b56ce834a4158fd2470ba5b62a92da | [
"MIT"
] | permissive | hzfmer/awp_processing | a59b62ba6de5e1859ce26c4f66e64a863ce3fd2a | e0aa0040f2ddeb2356386aae9d9b4d77bd77f15f | refs/heads/master | 2021-01-03T06:05:06.785556 | 2020-12-05T04:38:05 | 2020-12-05T04:38:46 | 239,953,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,858 | py | import argparse
from collections.abc import Iterable
import numpy as np
from awp_processing import awp, read_params
from awp_processing.check import check_mesh_cont
from pathlib2 import Path
# !Check these cons in pmcl3d_cons.h in the source code
BLOCK_SIZE_X, BLOCK_SIZE_Y, BLOCK_SIZE_Z = 2, 2, 4
nbit_float = 4
parse... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
0a37c14e049a9d3fbef7d0962da711525fb62a93 | dd949f215d968f2ee69bf85571fd63e4f085a869 | /systems/css-2011-teams/yellow/subarchitectures/planner.sa/src/python/standalone/pddl/test/testdynamic.py | 05ae9a955fb9957e43361d0929f365f46fa000f2 | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,823 | py | #! /usr/bin/env python
# -*- coding: latin-1 -*-
import unittest
import common
import os
import parser, domain, state, actions, mapl, durative, dynamic_objects
from mapltypes import *
from predicates import *
from effects import *
from actions import Action
from builder import Builder
from parser import Parser, Parse... | [
"marc@hanheide.net"
] | marc@hanheide.net |
97635af1733de430d86b77509ac1a87fac4f87bf | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyTypeCheckerInspection/OverloadsAndPureStubInSamePyiScope/module.pyi | 95eb5fcb6819b9f21f9e987cf4054e29cd662c7e | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 254 | pyi | from typing import overload
if undefined:
def foo(p: str) -> str: pass
else:
@overload
def foo(p: int) -> int: pass
@overload
def foo(p: str, i: int) -> str: pass
def bar(p: str) -> str: pass
@overload
def bar(p: int) -> int: pass
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
fd05edecb92c88140588f6bbeef383ef68594d40 | 9028b6983685a3ace074049fccf2b8c503b77de8 | /PyStationB/libraries/StaticCharacterization/staticchar/datasets.py | d26f4310ed43f6fc533142473c6655b5a4829e65 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | mebristo/station-b-libraries | 7f5517e5e77e6cdc54c03355804b8c0a4fcae65b | 40bab526af6562653c42dbb32b174524c44ce2ba | refs/heads/main | 2023-09-03T03:54:53.181082 | 2021-10-01T03:21:11 | 2021-10-01T03:21:11 | 412,871,835 | 0 | 0 | MIT | 2021-10-02T17:53:07 | 2021-10-02T17:53:06 | null | UTF-8 | Python | false | false | 5,294 | py | # -------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
# ----------------------------------------------------------------------... | [
"noreply@github.com"
] | mebristo.noreply@github.com |
da39ff45a23d0fed6921618b9cd8f936042f5398 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /p6uXeD7JC7cmxeD2Z_5.py | 8144f3ce1a89da17cf533400d0f88447f632ef3e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """
Abigail and Benson are playing Rock, Paper, Scissors.
Each game is represented by an array of length 2, where the first element
represents what Abigail played and the second element represents what Benson
played.
Given a sequence of games, determine who wins the most number of matches. If
they tie, output "Tie... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f0c1d119d54e73da200cd04bdfebbe4fb2e8a65a | b3ac12dfbb8fa74500b406a0907337011d4aac72 | /tests/util/benchmark_cost.py | 2cd221f3761d43be40774d8ace02b880cdd844da | [
"Apache-2.0"
] | permissive | chia-os/goldcoin-blockchain | ab62add5396b7734c11d3c37c41776994489d5e7 | 5c294688dbbe995ae1d4422803f6fcf3e1cc6077 | refs/heads/main | 2023-08-11T23:58:53.617051 | 2021-09-12T15:33:26 | 2021-09-12T15:33:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | import time
from secrets import token_bytes
from blspy import AugSchemeMPL, PrivateKey
from clvm_tools import binutils
from goldcoin.consensus.default_constants import DEFAULT_CONSTANTS
from goldcoin.types.blockchain_format.program import Program, INFINITE_COST
from goldcoin.types.condition_opcodes import ConditionOp... | [
"faurepierre78@yahoo.com"
] | faurepierre78@yahoo.com |
14ec9f43cb1eeea48224b48dd0cbf8762a59731f | cb1ce85f80c9315d2bb0342badc0998f416839b2 | /apps/childcount/commands/LangCommand.py | 57ab33f976300e27f4c1760f7ed1a7379c8df070 | [] | no_license | katembu/move-it | eb609529d6527694aa1d1c9dbc972f70cd921e5d | 86c44f5228811bdcba6fa609bf9d8c9d8e46263a | HEAD | 2016-09-05T14:51:47.105500 | 2012-04-12T20:28:08 | 2012-04-12T20:28:08 | 4,008,730 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 coding=utf-8
# maintainer: rgaudin
from django.utils.translation import ugettext as _, activate
from childcount.commands import CCCommand
from childcount.models import Patient
from childcount.utils import authenticated
class LangCommand(CCCommand):
''' '''
... | [
"rgaudin@gmail.com"
] | rgaudin@gmail.com |
5b7863a23b2e472cbe0ecf5c16042e25ba4016f6 | f9f074c44b67a11d4630b5e1cc15e016e8d73cc8 | /factory-ai-vision/EdgeSolution/modules/ModelManagerModule/app/downloader/tools/accuracy_checker/tests/test_reid_metrics.py | 915fd137bf4441ef1b2f02defee828853bcd82fa | [
"MIT"
] | permissive | Azure-Samples/azure-intelligent-edge-patterns | 361694680c7e48d3761c5416175788355b684dcd | 1d2f42cbf9f21157c1e1abf044b26160dfed5b16 | refs/heads/master | 2023-05-26T13:15:47.085088 | 2023-02-28T17:25:53 | 2023-02-28T17:25:53 | 186,706,933 | 193 | 164 | MIT | 2023-02-28T17:25:55 | 2019-05-14T22:02:41 | JavaScript | UTF-8 | Python | false | false | 2,410 | py | """
Copyright (c) 2018-2021 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 wri... | [
"waitingkuo0527@gmail.com"
] | waitingkuo0527@gmail.com |
c1d02968598f3beb707555c296286cadd368736f | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/t_systems_mms/icinga_director/plugins/modules/icinga_hostgroup.py | 84adda4c8cdc3654cebc548d0afb7e85971573d0 | [
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 3,623 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 T-Systems Multimedia Solutions GmbH
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License... | [
"sifang@cisco.com"
] | sifang@cisco.com |
e22152a4d7fccfed5a456ac24264e156583c5444 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/Spell390 - Remove Blindness Deafness.py | 6dda7d4d7cf28406c2fe25e031c3232ca63bf139 | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | from toee import *
def OnBeginSpellCast( spell ):
print "Remove Blindness/Deafness OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-conjuration-conjure", spell.caster )
def OnSpellEffect ( spell ):
print... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
fb5f2c458afc3a821916b18dd32088f5e9db972d | 6ed48bf3c72e61fe53144a3545ab305112c93501 | /infra/services/master_manager_launcher/desired_state_parser.py | 33123b15e286d0812c1907918de2542fb517383f | [
"BSD-3-Clause"
] | permissive | eunchong/infra | ee5f7a9379977de8c814f90dbba3f6adbf06a75c | ce3728559112bfb3e8b32137eada517aec6d22f9 | refs/heads/master | 2022-11-27T06:26:57.415805 | 2016-04-08T12:34:36 | 2016-04-08T12:34:36 | 55,699,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,201 | py | #!/usr/bin/python
# Copyright 2015 Google Inc. All Rights Reserved.
# pylint: disable=F0401
"""Parse, validate and query the desired master state json."""
import bisect
import datetime
import json
import logging
import operator
import os
import re
from infra.libs.buildbot import master
from infra_libs.time_functions... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
05cebba82ea2cb7c0ea723fd2c8e258f074a2a2b | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/ios/ios_l3_interface.py | 200ffec268d94e4233bb6f52c5698ad284fd1576 | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 10,217 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
11c0ce16ec9d3be3a1ce94d97b03ab2c20e62f75 | d996edcd595c565c5725a16286ce8d338af67246 | /src/text_classification_benchmarks/bi_lstm/__init__.py | d1f2c6b6a9147402c96cf472d5bb51324ae16b49 | [] | no_license | preddy5/dltemplate | fbbfce7660c451495e255cf8d8437e4b4e207f9c | 77b04b767cbd4914e0a3d3609c645e475aabcc43 | refs/heads/master | 2020-04-28T19:37:04.893001 | 2019-03-13T13:35:04 | 2019-03-13T13:35:04 | 175,517,056 | 1 | 1 | null | 2019-03-13T23:59:40 | 2019-03-13T23:59:39 | null | UTF-8 | Python | false | false | 3,547 | py | from argparse import ArgumentParser
from common.util import load_hyperparams, merge_dict
import csv
import os
from text_classification_benchmarks.bi_lstm.util import batch_iter, load_dataset, test, train
def run(constant_overwrites):
config_path = os.path.join(os.path.dirname(__file__), 'hyperparams.yml')
con... | [
"markmo@me.com"
] | markmo@me.com |
0058be8e27a678bd5d55c56eddcdf0e87555f32f | eef6f6e1074a105a4554c79a80d18d5507d5c886 | /liir/nlp/ml/eval/ConfusionMatrix.py | 92bda9c9b36c5ecbae53b136ba97c94fbc75a722 | [] | no_license | quynhdtn/DL | 0dc09359fd0bb1280cd005f28c454126dc101dc4 | 017ea76a1f926e989581cd6c41f984c8651a5e0d | refs/heads/master | 2021-01-10T04:51:06.354273 | 2015-11-12T12:48:57 | 2015-11-12T12:48:57 | 46,052,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | __author__ = 'quynhdo'
import numpy as np
class ConfusionMatrix:
def __init__(self, n_classes, class_names = None):
self.n_classes = n_classes
self.class_names = class_names
self.mat = np.zeros((n_classes, n_classes), dtype='int')
def addBatch(self, y_true, y_predicted):
assert ... | [
"quynhdtn.hut@gmail.com"
] | quynhdtn.hut@gmail.com |
3c4a8df0cddd9fb678ac426f9645c2dd41ee0171 | d7e642d34530db686f76e835c7594543adebfedc | /例子-1122-04.函数的参数传递.py | 58bef1ce8a72d0c07e42a9c879d7e34f482b366c | [] | no_license | blackplusy/python1119 | 929c61f0b896737d58b77eef50428002ec2f254f | 546ef52f29a084fd6b1d3d8df78ff0a74a3dfd71 | refs/heads/master | 2020-04-07T06:42:56.901263 | 2019-02-26T02:17:54 | 2019-02-26T02:17:54 | 158,148,121 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | def animal(pet1,pet2):
print(pet1+' wang!'+pet2+' miao')
#调用函数传入两个参数
animal('dog','cat')
def animal(pet1,pet2):
print(pet1+' wang!'+pet2+' miao')
animal(pet2='cat',pet1='dog')
def animal(pet2,pet1='2ha'):
print(pet1+' wang!'+pet2+' miao')
animal('bosi')
animal('pig','out man')
print('**************************... | [
"noreply@github.com"
] | blackplusy.noreply@github.com |
0d983221abcf4857628f47481dd34d54c9271ec3 | 2bc21de1b3204c677d2912f24a82ba473d90bcf1 | /Comprehensions/09. Bunker.py | 2748268e79e762e41f5d8ba64de754b3cb2beea7 | [
"MIT"
] | permissive | milenpenev/Python_Advanced | 24260bbdf5b6682157acb2d73f6f77d1cdba97b1 | 2f32012dd682fa9541bbf5fa155f6bdbcfa946de | refs/heads/main | 2023-05-30T16:45:09.599304 | 2021-06-27T16:00:35 | 2021-06-27T16:00:35 | 351,788,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | categories = input().split(", ")
n = int(input())
inventory = {category: [] for category in categories}
for _ in range(n):
category, item_name, quantity_quality = input().split(" - ")
quantity, quality = quantity_quality.split(";")
quantity, quality = quantity.split(":")[1], quality.split(":")[1]
quan... | [
"milennpenev@gmail.com"
] | milennpenev@gmail.com |
969af7a8a9fb663b6055d1582ce6329f8b2e111a | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/messenger/gui/scaleform/data/contacts_data_provider.py | 60f6130d71aaf2ce5f7e3e1233986d5067020433 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 29,957 | py | # 2016.08.04 19:54:02 Střední Evropa (letní čas)
# Embedded file name: scripts/client/messenger/gui/Scaleform/data/contacts_data_provider.py
import re
import Event
from gui.Scaleform.framework.entities.DAAPIDataProvider import DAAPIDataProvider
from gui.Scaleform.genConsts.CONTACTS_ALIASES import CONTACTS_ALIASES
from ... | [
"info@webium.sk"
] | info@webium.sk |
3c1d61bdcad5d0817c3e678f870318b7bb51cbd1 | 13d2fe21726a2a528b6eb165e6a5ebe13f08b9f2 | /sqltext/lianxi17.py | 2676fe262b34e540e075a06562a572641944c69e | [] | no_license | 123456thomas/python_learn | aa49e898b9ede549a3e1c376eae10f0f1c09ca7d | 9891d2e988ebf8896360f60a24d61430e538bf3e | refs/heads/master | 2020-04-16T10:01:55.245420 | 2019-01-13T10:30:13 | 2019-01-13T10:35:11 | 165,487,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import pymysql
con=pymysql.connect(host="localhost", user="root", password="361365",
database="mytest", port=3306)
cur=con.cursor()
# cur.execute("create table test1(Id int primary key,Name varchar(20) not null)")
cur.execute("create table test2(id int primary key,name varchar(20) not null,userid ... | [
"17625809083@sina.cn"
] | 17625809083@sina.cn |
a1d7d3f60a17d5091571fd8669f336b136cab517 | f6d7c30a7ed343e5fe4859ceaae1cc1965d904b7 | /htdocs/submissions/a1d7d3f60a17d5091571fd8669f336b136cab517.py | aea45ae8c7ebf0de25e7c0894f3e9f43a33fa3e3 | [] | no_license | pycontest/pycontest.github.io | ed365ebafc5be5d610ff9d97001240289de697ad | 606015cad16170014c41e335b1f69dc86250fb24 | refs/heads/master | 2021-01-10T04:47:46.713713 | 2016-02-01T11:03:46 | 2016-02-01T11:03:46 | 50,828,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | d={'0':' ','1':' _ ','2':' |','3':' _|','4':'|_ ','5':'|_|','6':'| |'};k='101101111162335442555243235253'
def f(x,y):
i=int(y);x[0]+=d[k[i]];x[1]+=d[k[i+10]];x[2]+=d[k[i+20]];return x
def seven_seg(x):
return reduce(lambda x,y:x+y+'\n',reduce(f,x,['','','']),'')
| [
"info@pycontest.net"
] | info@pycontest.net |
d370b6da42bc60d3d21c9bdde90a9441a4a77354 | c33496682b760deac61fedecba3e82ce4e41dfde | /scripts/e259.py | d66c4c06b2e02569f32f6d438c8330a5424b6a19 | [
"MIT"
] | permissive | ferasalsaab/neuralnilm_prototype | c5e9cde02d475ac499b15fea62143e76adff07d0 | 2119292e7d5c8a137797ad3c9abf9f37e7f749af | refs/heads/master | 2020-04-16T14:38:03.615279 | 2018-01-29T15:30:43 | 2018-01-29T15:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,253 | py | from __future__ import print_function, division
import matplotlib
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import Net, RealApplianceSource, BLSTMLayer, DimshuffleLayer
from lasagne.nonlinearities import sigmoid, rectify, tanh
from lasagne.objectives import crossentrop... | [
"jack-list@xlk.org.uk"
] | jack-list@xlk.org.uk |
31bc673f6d080c081b787817a51e382be8d91600 | 8e69eee9b474587925e22413717eb82e4b024360 | /v2.5.7/otp/chat/TalkHandle.py | d5919401c995d3c50e5367a9d6249955c0aa44df | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | from otp.avatar.AvatarHandle import AvatarHandle
class TalkHandle(AvatarHandle):
def __init__(self, doId, message):
self.avatarId = doId
self.avatarName = None
self.accountId = None
self.accountName = None
self.addMessageInfo(message)
return
def getName(self):
... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
f4a0ac7b71c7b755a827b97478b5f834db35f4d6 | 39e647e9ec8524a1cee90ef15f37a3d3bbf8ac43 | /poet/trunk/pythonLibs/Django-1.3/tests/regressiontests/file_uploads/views.py | f1cd8a65ea56a2d24fc625d24925f4d5b6483f61 | [
"BSD-3-Clause"
] | permissive | AgileAdaptiveTools/POETTools | 85158f043e73b430c1d19a172b75e028a15c2018 | 60244865dd850a3e7346f9c6c3daf74ea1b02448 | refs/heads/master | 2021-01-18T14:46:08.025574 | 2013-01-28T19:18:11 | 2013-01-28T19:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | import os
from django.core.files.uploadedfile import UploadedFile
from django.http import HttpResponse, HttpResponseServerError
from django.utils import simplejson
from models import FileModel, UPLOAD_TO
from uploadhandler import QuotaUploadHandler, ErroringUploadHandler
from django.utils.hashcompat import sha_co... | [
"ssaltzman@mitre.org"
] | ssaltzman@mitre.org |
747d2fc906faba84e61634e63935bb43a63df5db | b769c29a49f73b22ed1998de893aacad516025f6 | /moziobackend/moziobackend/urls.py | d47184e7f4da2ab5011bd1290f8bdea09a7ebbdf | [] | no_license | humitos/mozio-backend | 6925dffcedd301faab5375f649673cf2bfec1ddc | 6990282694e0081fd6606c1781906499f946758a | refs/heads/master | 2021-01-10T10:06:50.984884 | 2016-02-06T21:04:29 | 2016-02-06T21:04:29 | 51,188,225 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | """moziobackend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"humitos@gmail.com"
] | humitos@gmail.com |
fdf3461a668928331ac2e97d93cf0b12b6516007 | 11f29fef10e684553a452eb40d4b3daa696b87fc | /Exercicios/III/questao02.py | 2b93b4be707623021e68aa37a4e2bff58a932a4a | [] | no_license | asferreir/PythonParaZumbis | 49032f999e054513409d649c9ac0b45a05af5c5d | fc59061dd5c64c2c7f95adf2b0d76b5af329fbb2 | refs/heads/master | 2020-07-18T05:18:38.253478 | 2019-09-04T14:03:51 | 2019-09-04T14:03:51 | 206,184,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
Faça um programa que leia um nome de usuário e a sua senha e não aceite a senha igual ao nome do usuário,
mostrando uma mensagem de erro e voltando a pedir as informações.
"""
usuario = input("Informe o usuario: ")
senha = input("Informe a senha: ")
while usuario == senha:
print("Usuario e senha devem ser dife... | [
"havour@gmail.com"
] | havour@gmail.com |
bcd138a01994e88753339605bd120c6d93ee7a7a | 71e11e641824e84722c73be5e081853948a6a27d | /users/manage.py | 2f5b5d3380c9c5583dc8d8c08b4d7a90d1cb5f0d | [] | no_license | HackTzi/hacktzi-store-microservices | 578208c86e5a80a1d3bfee23fc230e682711cae7 | e98c05f46752b146160e49e391b4eb2bfa34ff3e | refs/heads/main | 2023-04-01T14:48:36.701073 | 2021-04-15T19:44:35 | 2021-04-15T19:44:35 | 330,806,999 | 1 | 1 | null | 2021-04-15T19:44:36 | 2021-01-18T23:00:36 | TypeScript | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'platzi_store_users.settings')
try:
from django.core.management import execute_from_command_line
... | [
"royjuni3431@gmail.com"
] | royjuni3431@gmail.com |
639dea54803f71834f720dc313e91386be35dbff | ef66e4d2f0ff31298c9ab93aa2c268ecf89311a6 | /src/regex/accounts/models.py | 9f14078df236f84e15839098be9357b07969aecc | [] | no_license | Clarity-89/regex-it | dd8da6fe39374e1722d32943e4545d0ab95f31b6 | 94485198430bffc6aa14e4ed75dbfddb1c9efef9 | refs/heads/master | 2020-11-25T01:45:14.365413 | 2019-11-17T14:43:15 | 2019-11-17T14:43:15 | 228,435,557 | 0 | 0 | null | 2019-12-16T17:06:37 | 2019-12-16T17:06:36 | null | UTF-8 | Python | false | false | 2,399 | py | from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, email, password... | [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
da40c898f3633e1f5c71c0b5368a096825cc4766 | dc980bbd2bd6078f1e49004afcc710a89ed12565 | /test/functional/rpc_createmultisig.py | 673cce4ed55b3bc456e58c27cfee063395103752 | [
"MIT"
] | permissive | frankjardel/isocoin | c21408225399b33f941c303d0e66e0db264a03c2 | 36e3ce6d64839a37c45b6e17aedfb2238c3a5257 | refs/heads/master | 2020-03-28T10:11:59.484529 | 2019-07-17T17:06:11 | 2019-07-17T17:06:11 | 148,090,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test transaction signing using the signrawtransaction* RPCs."""
from test_framework.test_framework imp... | [
"jardelfrank42@gmail.com"
] | jardelfrank42@gmail.com |
4c85376e7b44cc8dd485f66e1eeb81f4d0bc174a | 3831421b5f4f294bf8f4089b1f617cfc82c2351a | /MyInte/SCRIPTS/assit/chwich.py | c90f41f1e1228d8bc2129ef4c70da712a840b91d | [] | no_license | jesuel51/MyInte | 6ce31b813c51e30780115f1a5efcafd8d264ae43 | 817a6df61cb77dedf0e4a586bd09906a4b175e96 | refs/heads/master | 2020-05-31T01:46:35.983688 | 2019-06-03T18:17:34 | 2019-06-03T18:17:34 | 190,056,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # as we know, the Te in the core region is not well calculated , so we main use the profile shape of ion channel to replace the electron channel .
nj=root['SETTINGS']['PHYSICS']['nj']
if root['SETTINGS']['PHYSICS']['chwich'][0]==1:
pvt_i=root['SETTINGS']['PHYSICS']['chwich'][1]
# num=int(pvt_i/0.02)+1
num=in... | [
"1018910084@qq.com"
] | 1018910084@qq.com |
46d1baf103a1f1cb70c11ac06a2cb4d0b721acf4 | 7fa64ea3a31ea5c4ed2fc734cd45e4733e782673 | /tensorflow/python/data/kernel_tests/interleave_dataset_op_test.py | f0b16591f73478f8402668e5e9286799d981ea7b | [
"Apache-2.0"
] | permissive | TimoFu/tensorflow | cf9718167d6c1dfa6ac2f5ad97cae144e4bb5cc3 | 6b378af9422c203b2d99cd21031ccf50a30958a0 | refs/heads/master | 2020-04-08T09:46:37.399762 | 2018-11-26T22:04:34 | 2018-11-26T22:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,711 | py | # Copyright 2017 The TensorFlow Authors. 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b91f6777384247c7814df308b1d06a367277abd7 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6evpnvpws_7e7a3dec141df7b1c974f723df7f4814.py | f90d4c9a9f9ab563e60b864c92a4472907752c7d | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 74,316 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
7df6658e806cae939fedc20b87c13b405766e5f2 | ae76a9296e91c50f7394c22281aa20e82315d9fa | /transformer/translate.py | 33020e7efbc6ec514288094d034f6f892742adae | [] | no_license | PeterDing/mxnet-learning | 3cdd56162417027e07d0a3e56001018038b3fafe | b3cab40e650d20ee183ede63fc8c6c4ea0d8d582 | refs/heads/master | 2022-10-31T18:27:05.035498 | 2018-06-20T02:59:21 | 2018-06-20T02:59:21 | 129,977,891 | 1 | 1 | null | 2022-10-27T16:49:44 | 2018-04-17T23:49:33 | Python | UTF-8 | Python | false | false | 593 | py | from mxnet import nd
from data import make_src_mask, make_trg_mask
MAX_LEN = 20
def translate(net, src, trg_vocab, s_pad, t_bos, t_eos, t_pad):
src_mask = make_src_mask(src, s_pad)
trg_list = [t_bos]
for _ in range(MAX_LEN):
trg = nd.array([trg_vocab.to_indices(trg_list)])
trg_mask = mak... | [
"dfhayst@gmail.com"
] | dfhayst@gmail.com |
da95f538ecc178c10e81d9ef871468fc6b733155 | 3700c716293b010b68f05f01099fa426449ddc42 | /xirl/xirl/trainers/tcc.py | c18e3ab5171a9a099de96252834100a76ceb8337 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | riven314/google-research | 31f3ed2635e092bc0f8c89b535e123ea731946d3 | dd971143b85879fcac7c983b8d2b30d145e4cbdc | refs/heads/master | 2023-06-14T02:03:12.475884 | 2021-07-10T18:47:33 | 2021-07-10T18:47:33 | 384,185,293 | 0 | 0 | Apache-2.0 | 2021-07-15T03:16:47 | 2021-07-08T16:25:21 | Jupyter Notebook | UTF-8 | Python | false | false | 2,653 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
305e474130d764368ac102f25f9dd530a1cb4a02 | 717558d6a075163294054bd5aea4ef3234df23ad | /models_nonconvex_simple/fuel.py | ca85bfc10f4aa8dbb9960f7e1dbcefd48cd8cb23 | [
"MIT"
] | permissive | RomeoV/pyomo-MINLP-benchmarking | 1270766397fbc4e57ea1bd0c2285fb7edf64062d | 996d2c8ee1cb9b03fe00c6246f52294337d8b92c | refs/heads/master | 2021-07-11T17:54:25.284712 | 2020-08-13T23:43:14 | 2020-08-13T23:43:14 | 185,664,992 | 8 | 1 | MIT | 2019-05-10T19:07:05 | 2019-05-08T19:09:05 | Python | UTF-8 | Python | false | false | 2,580 | py | # MINLP written by GAMS Convert at 08/13/20 17:37:43
#
# Equation counts
# Total E G L N X C B
# 16 7 6 3 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"peng_zedong@126.com"
] | peng_zedong@126.com |
1f026430b482740e673cdd71c0097e75438afb07 | 51353dc8d2dce1c392d3a39da16a1644692de8d5 | /dictionaryAndSets/join_2.py | 220edaa509e1e2b38d09d0d40a595016bf99f57f | [] | no_license | aiqingr/python-lesson | 64cf21b9f945e92a79414069f64f84d47aa7ee66 | 21aff567f6340ae74a923a82648e25bdaac554a7 | refs/heads/master | 2020-05-23T04:16:06.557785 | 2019-11-12T02:50:51 | 2019-11-12T02:50:51 | 58,403,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | # Modify the program so that the exits is a dictionary rather than a list,
# with the keys being the numbers of he locations and the values being
# dictionaries holding the exits (as they do at present). No change should
# be needed to the actual code.
#
# Once that is working, create another dictionary that contains w... | [
"ntyaiqingr@gmail.com"
] | ntyaiqingr@gmail.com |
8491e029f5851120fca824478d2bb40ddbbd74a3 | b2e5677ecd4c2c0bb2d091d3371d2815dd36ffd5 | /examples/topicmod_lda.py | 5213c25548fa03bacd15e40f7869f26a2697836a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WZBSocialScienceCenter/tmtoolkit | f573e3b4db7975106b63a108ed146e43b443c6d6 | 02990865ee896625d5cf540bf2b0dbc159bedf38 | refs/heads/master | 2023-05-10T23:26:37.265300 | 2023-05-03T09:35:04 | 2023-05-03T09:35:04 | 109,812,180 | 202 | 33 | Apache-2.0 | 2022-01-10T12:17:43 | 2017-11-07T09:11:54 | Python | UTF-8 | Python | false | false | 5,671 | py | """
An example for topic modeling with LDA with focus on the new plotting functions in `tmtoolkit.corpus.visualize` and
in `tmtoolkit.topicmod.visualize`.
This examples requires that you have installed tmtoolkit with the recommended set of packages plus "lda" and have
installed an English language model for spaCy:
... | [
"markus.konrad@wzb.eu"
] | markus.konrad@wzb.eu |
5954ef4325137dc49b30e115d82e1d71e116ab1b | 353f4a3ff46a3c6fbbb866598b8561edf6e71562 | /server/dvaapp/migrations/0021_remove_video_query.py | 7ff21bcf1a3f150060313affe1eddd34c09f0f06 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | MrGoogol/DeepVideoAnalytics | ab0f72179c62fd1b0a5bddea4a9b3970678790bd | e25e4bf6670fabd62fe86ad68ad03a854e22aed6 | refs/heads/master | 2021-05-14T12:25:48.355995 | 2018-01-05T08:59:24 | 2018-01-05T08:59:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-01 17:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dvaapp', '0020_retriever_last_built'),
]
operations = [
migrations.RemoveField(
... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
458d28e1f991f3dc25217deaa2b0ce53104ef827 | b0e738d074574af920e63f453d3628f69ce1321f | /watch/migrations/0006_auto_20180318_0104.py | 7f7ea38bf96d90f7be5917e405eec50cd11b4a33 | [] | no_license | vincentmuya/neighborhood-watch | b23d56a9c92cefc6b4da124f337b776a9cc0ada7 | 3744d6bd5f5e63bb6b47f2c34f728e05d7bc2362 | refs/heads/master | 2021-04-09T14:20:25.588959 | 2018-03-20T12:04:45 | 2018-03-20T12:04:45 | 125,489,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-17 22:04
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('watch', '0005_post_title'),
... | [
"vincentmuya13@gmail.com"
] | vincentmuya13@gmail.com |
b1f778f8944c11ea9d756134cee1e718c3326499 | f08bee97371d28256f5f669979ea5e8e88192be0 | /mcm_scripts/get_requests.py | e14e9bba40485f312f214a85ce45d67e82c273d4 | [] | no_license | CMSSNU/GenGen | c6cd08aad9f6929860351f8bdde19250480d59e0 | 6cec337a19748468cc920412d9cfbfc56ce61b55 | refs/heads/master | 2020-04-09T17:13:09.850706 | 2019-09-20T06:57:06 | 2019-09-20T06:57:06 | 160,474,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import sys
sys.path.append('/afs/cern.ch/cms/PPD/PdmV/tools/McM/')
from rest import McM
from json import dumps
mcm = McM(dev=False)
#mcm = McM(dev=True)
# Example to get ALL requesst which are member of a given campaign and are submitted
# It uses a generic search for specified columns: query='status=submitted'
# Qu... | [
"d4space@gmail.com"
] | d4space@gmail.com |
6c63500bf53bf58a8c653ea3488de0da13613156 | 5a01497e7c29e2488b6a4cb0478405239375eb66 | /apetools/pipes/pipeenums.py | 7c0eb61e95b8a049b278cef0d146e8154fd7cb22 | [
"Apache-2.0"
] | permissive | russell-n/oldape | 8b4d9e996181dc1c7175f72d75c6193443da591b | b4d1c77e1d611fe2b30768b42bdc7493afb0ea95 | refs/heads/master | 2021-05-30T20:02:18.895922 | 2016-03-27T04:38:18 | 2016-03-27T04:38:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py |
class PipeEnum(object):
"""
A holder of constants for the StoragePipe
"""
__slots__ = ()
start = "start"
pipe = "pipe"
sink = "sink"
# end class StoragePipeEnum
| [
"necromuralist@google.com"
] | necromuralist@google.com |
27b9463ca0f70caf4d98d28f2dfba0b380af9223 | dcee93ce4b9fcf0a7ffa6ea658c403ed1fc84043 | /Meteor/src/thirdManage/migrations/0003_auto_20170807_1623.py | e0d6ee7dab4b082d10e23368f50d65c656128424 | [] | no_license | henryliuom/drv-study | 3eed96eef58138003371011034562a15ebc16b79 | dcab011bce0f34bcf50f8ab5601eb859a5a07cb7 | refs/heads/master | 2021-06-06T23:49:20.869907 | 2020-07-30T09:06:48 | 2020-07-30T09:06:48 | 95,858,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-07 08:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('thirdManage', '0002_auto_20170807_1622'),
]
operations = [
migrations.AlterModelTab... | [
"henry@techdog.com"
] | henry@techdog.com |
5de5f713afc9e6239000c77a67d43371491966bf | 839f9c64c0c2c4178f2a8a0166fa4a0a3f649aac | /tilepack/check_toi.py | 46b3abf0ccdabc0f276edefb5d094268a0122071 | [
"MIT"
] | permissive | anilkunchalaece/tilepacks | 1ab70a0f8ba7886e5b29fbcb761072b9d4e61b0e | 86008e85826e5b1f97ef22ba92152b40353557a7 | refs/heads/master | 2020-06-04T07:44:09.179732 | 2019-06-14T12:30:03 | 2019-06-14T12:30:03 | 191,929,548 | 0 | 0 | MIT | 2019-06-14T11:09:34 | 2019-06-14T11:09:34 | null | UTF-8 | Python | false | false | 1,512 | py | import mercantile
import argparse
def main():
parser = argparse.ArgumentParser()
parser.add_argument('min_lon',
type=float,
help='Bounding box minimum longitude/left')
parser.add_argument('min_lat',
type=float,
help='Bounding box minimum latitude/bottom')
parser.add_argu... | [
"ian.dees@gmail.com"
] | ian.dees@gmail.com |
24449c28191a51d1f60c35022f2c37ed430095fa | 468e75c8b64b137621bcfb523f741b2cb791bf36 | /GUI/component/navigation_bar.py | 74855fdcd51b5dc1b3431d4efab8e5744b713ade | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-fall-2017-guilgrahl | dd0055b68c6c56041be2b33e56b13bd3a6a9cdc1 | c1b6a8abf779db9e5242e84c176bb5e8fb1d97a6 | refs/heads/master | 2021-08-28T19:03:37.364375 | 2017-12-06T03:25:24 | 2017-12-06T03:25:24 | 103,597,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from tkinter import LEFT
from tkinter.ttk import Frame, Button
class NavigationBar:
def __init__(self, parent, data_source):
Frame.__init__(self, parent)
self.data_source = data_source
self.init_form()
def init_form(self):
nextButton = Button(self, text="Next ... | [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
9dc398861c6fc13e1e5d99fcf69fce298f153848 | 2670452749c6299386a33391f9fb5014db0203ec | /meraki/aio/api/mg_uplink_settings.py | 313b63a05262ac239c8965b44326f42618827427 | [
"MIT"
] | permissive | npappin-wsu/dashboard-api-python | f9d3fc682b517e6bac437cd54101afd09b653274 | 5aedfc740f676fbf34e5f79269e8ece73421e3da | refs/heads/master | 2020-06-28T17:49:44.911294 | 2020-04-14T04:27:38 | 2020-04-14T04:27:38 | 255,509,439 | 0 | 0 | MIT | 2020-04-14T04:24:55 | 2020-04-14T04:24:54 | null | UTF-8 | Python | false | false | 1,524 | py | class AsyncMGUplinkSettings:
def __init__(self, session):
super().__init__()
self._session = session
async def getNetworkCellularGatewaySettingsUplink(self, networkId: str):
"""
**Returns the uplink settings for your MG network.**
https://api.meraki.com/api_docs#retu... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
90cd41d7f119122d566e22cb587ce4a3c2472432 | 3cd4902b67de144d8e6f36335e125d0548d8cf97 | /src/data/Places365Data.py | 7f17280172b9488ad0942cad3e68ec562241adf9 | [
"MIT"
] | permissive | stefantaubert/imageclef-lifelog-2019 | 5d201c2a28f15f608b9b58b94ab2ecddb5201205 | ad49dc79db98a163c5bc282fb179c0f7730546b3 | refs/heads/master | 2022-10-06T12:42:30.011610 | 2022-08-29T13:35:09 | 2022-08-29T13:35:09 | 196,553,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from src.io.ReadingContext import ReadingContext
from src.data.DataBase import DataBase
from src.globals import vc_cat_cols
from src.globals import vc_cat_score_cols
name_places = "places365"
class Places365Data(DataBase):
def __init__(self, ctx: ReadingContext):
return super().__init__(ctx)
def get_... | [
"stefan.taubert@posteo.de"
] | stefan.taubert@posteo.de |
d147631fbb07f6f190098326828eba033083da6b | 7c12b6487874b3db564e5c900be55fd9e050f765 | /hilder_deal_price/start_youda.py | 6f3fcbd388bcabfa3c0c14dbf6a235f36f6dbcff | [] | no_license | pjkui/githubproject | 9f1ea63bb12903d8a72e0ecb4aa6c8c02a7a45f8 | 808cb78fc3887f35bf838d77d62308fce9e6aa5d | refs/heads/master | 2022-10-06T00:11:34.493886 | 2019-10-07T13:09:18 | 2019-10-07T13:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from youda_res.youda import Record
from dbfread import DBF
from youda_res.youda_match_insert import YouData
if __name__ == '__main__':
# """
# 需要把cjxx_3.DBF文件放到相同路径下
# """
# table = DBF('cjxx_3.DBF', recfactory=Record, ignore_missing_memofile=True)
# for record in table:
# record.insert()
... | [
"1735429225@qq.com"
] | 1735429225@qq.com |
1b94706b73f45a94cc41deb5aa795a074bcafd09 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/172/35097/submittedfiles/ex11.py | ecaecb512a8ce7a4951ad5382e645ab5e88c079d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
d1=int(input('Digite o dia da data 1'))
m1=int(input('Digite o mês da data 1'))
a1=int(input('Digite o ano da data 1'))
d2=int(input('Digite o dia da data 2'))
m2=int(input('Digite o mês da data 2'))
a2=int(input('Digite o ano da data 2')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
80aae07c6ab4e34782a351c4c412129086bfe652 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/environment_setting_fragment_py3.py | c7d3c076bda1a16b402b7d682886230622ce5461 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 3,465 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c15dbfada0d946792fde27d9be3ce0e0f63b7e15 | 365913bcc02bfdf6b6f6c246855144663f7e052b | /rdkit/ML/Descriptors/UnitTestDescriptors.py | 017f4b2d6f0f9e8f9534429c526d03e0308d7d58 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | UnixJunkie/rdkit | d8458eadca78ba1714be5c55ba75c8e164fc1479 | 3ddb54aeef0666aeaa2200d2137884ec05cb6451 | refs/heads/master | 2021-06-01T22:26:53.201525 | 2017-08-15T17:00:30 | 2017-08-15T17:00:30 | 100,572,461 | 2 | 0 | NOASSERTION | 2019-05-29T00:58:25 | 2017-08-17T07:03:53 | C++ | UTF-8 | Python | false | false | 1,659 | py | #
# Copyright (C) 2001,2002 greg Landrum and Rational Discovery LLC
#
""" unit testing code for descriptors
"""
import unittest
from rdkit.ML.Descriptors import CompoundDescriptors
from rdkit.TestRunner import redirect_stdout
from rdkit.six import StringIO
class TestCase(unittest.TestCase):
def setUp(self):
... | [
"greg.landrum@gmail.com"
] | greg.landrum@gmail.com |
02870c37ceb356dfab187936f715d4a9e2a2bda0 | 75259be56c9b895970448a9e275405518cadf324 | /src/cargos/sugar_beet.py | 2b448e34f99c70c848987ffd39a9de6b2b283727 | [] | no_license | Azusa257/firs | 5df946dea785515ef5303fd5ae7219bb222b9bb1 | e824040c168c2863420d558bac64f8f01efc3e17 | refs/heads/master | 2023-06-10T09:36:48.358213 | 2021-06-06T20:34:16 | 2021-06-06T20:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from cargo import Cargo
cargo = Cargo(
id="sugar_beet",
type_name="string(STR_CARGO_NAME_SUGAR_BEET)",
unit_name="string(STR_CARGO_NAME_SUGAR_BEET)",
type_abbreviation="string(STR_CID_SUGAR_BEET)",
sprite="NEW_CARGO_SPRITE",
weight="1.0",
is_freight="1",
cargo_classes="bitmask(CC_BULK)"... | [
"andy@teamrubber.com"
] | andy@teamrubber.com |
9c026afa2692b1cfc3164dd2babc3391c3cf8218 | 4c0e871eb19d6ca5b8c550b60c4e3aa628ec729e | /Python记录/LeetCode/2连续字符串.py | 264a62db73f8021d2504a5ac8693311de18f56c3 | [] | no_license | west789/Document | d4e7df6ff79046bf2c66ea082582feb2e7b8c29c | 9b4de781bd2a7ecc15342098366f0123e83f6191 | refs/heads/master | 2021-05-26T07:31:52.444264 | 2019-05-20T07:20:07 | 2019-05-20T07:20:07 | 127,928,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import copy
def doMain(s):
"""
:type s: str
:rtype: int
"""
# 解法1
# strDict = {}
# currentMax = 0
# maxLength = 0
# for i in range(len(s)):
# if s[i] in strDict and i-strDict[s[i]]-1<=currentMax:
# if maxLength < currentMax:
# maxLength = current... | [
"738758058@qq.com"
] | 738758058@qq.com |
f6d813cfeac9e1006402839f02d6ac002649ebc2 | 195b8d12796872c05d539aa9283fc3f407b8d8b5 | /tempest/tempest/common/ssh.py | be6fe273f439ff41d0279ecd115bd590412c5f0a | [
"Apache-2.0"
] | permissive | rvbelapure/openstack-nova-sched | afaa5928da3a8430b64bc23aedb251bae0e7d3ef | 325da0e08979d79b7470d7506ced1b4210e2b696 | refs/heads/master | 2021-01-17T05:28:44.474242 | 2013-04-20T21:18:35 | 2013-04-20T21:18:35 | 9,082,500 | 0 | 1 | null | 2021-09-07T08:33:18 | 2013-03-28T17:30:46 | Python | UTF-8 | Python | false | false | 5,444 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack, LLC
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | [
"owlpostarun@gmail.com"
] | owlpostarun@gmail.com |
af19c6f060d2ce1e3cf00d13a0513654d72a815a | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/io/formats/format.py | e33c6cd29b92e132375d5db2762e0caef339d541 | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 67,942 | py | """
Internal module for formatting output data in csv, html,
and latex files. This module also applies to display formatting.
"""
from contextlib import contextmanager
from csv import QUOTE_NONE, QUOTE_NONNUMERIC
import decimal
from functools import partial
from io import StringIO
import math
import re
fro... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
7f1dedeaf91d770dd0311fae73c3bbe5539079c9 | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /Template/Graph2tex.py | 451adf31f5883e688507bbbf8b1b66755fe1027d | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: --<>
Purpose:
Created: 2017/5/9
"""
import re,os
from optparse import OptionParser
if __name__ == "__main__":
usage = '''usage: python2.7 %prog [options]
'''
parser = OptionParser(usage =usage )
parser.add_option("-i", "--Input", action="store",
... | [
"409511038@qq.com"
] | 409511038@qq.com |
187eea89a649f18b50a7c8997ccffecd3bbf6cdd | 684329a9a5d49a444f6f9e0a832db4aca4baef2c | /mvp/newsletter/admin.py | 6b21e204de9a31de2c3c5dae9903408d27980f8e | [] | no_license | theparadoxer02/Shipping-Monk | f12735c809fadac5a5e462fd762559fca7d45986 | 0f0548cf85ff05ee4bfe65ccf0b739e0ad340bc9 | refs/heads/master | 2021-01-19T21:32:31.696389 | 2017-02-20T03:42:14 | 2017-02-20T03:42:14 | 82,513,484 | 0 | 1 | null | 2017-02-20T03:37:52 | 2017-02-20T03:37:52 | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
# Register your models here.
from .forms import SignUpForm
from .models import SignUp
class SignUpAdmin(admin.ModelAdmin):
list_display = ["__str__", "timestamp", "updated"]
form = SignUpForm
#class Meta:
#model = SignUp
admin.site.register(SignUp, SignUpAdmin)
| [
"rohit.yadav848@yahoo.com"
] | rohit.yadav848@yahoo.com |
7e33503d2dada68f3026bb0368169aee76d50f17 | 8b9b46bef13f2a562ce976f791ef30472b0e4652 | /2020-04/4-08/19删除链表的倒数第N个节点/19.py | 640fb5a14b7ef56a4a8f025b6677d86925d5dd60 | [] | no_license | Annihilation7/Leetcode-Love | 0d1db2776b79f4c65fd2781b2d0031d1efd1ef14 | 3fa96c81f92595cf076ad675ba332e2b0eb0e071 | refs/heads/master | 2021-03-21T17:06:35.260644 | 2020-05-07T14:12:44 | 2020-05-07T14:12:44 | 247,314,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
# Editor : Pycharm
# File : 19.py
# Author : ZhenyuMa
# Created : 2020/4/9 9:33 下午
# Description : 双指针的题
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def removeNth... | [
"763366463@qq.com"
] | 763366463@qq.com |
71292a94bbd048605f8de67ed6a624d57f94b230 | 5167d0792b35d2214329d8e692734a1e058efba5 | /Linked List/rearrange.py | 2e07e6237d60229d2228eb9eaee46ced54102d30 | [] | no_license | mmenghnani/CS_learn | 6dac86ede403fedad6ecfb69b05472b98e605e50 | 482f97ae5f2cb696ea82dd695d5b68b2aaf12742 | refs/heads/master | 2020-05-04T15:03:02.422491 | 2018-02-12T16:33:53 | 2018-02-12T16:33:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | def rearrange(head):
slow = head
fast = slow.next
while fast and fast.next:
slow = slow.next
fast = fast.next.next
head1 = head
head2 = slow.next
slow.next = None
reverselist(head2)
head = None
curr = head
while head1 or head2:
if h... | [
"sahilgaucho@gmail.com"
] | sahilgaucho@gmail.com |
29d0f5a4b0dcb2ba354cf97f7bcac67f166558ac | 2a318f4c8372c75224b2d79106ef52d8f4375e71 | /python/get_mailfolder.py | 654694c9ec1369366db52a5e282ebd09ee8cedf9 | [] | no_license | keyur32/graph-snippets | 0d4bacc66b5fb0bbfddb73695fa61a5538eaf038 | e416d3ad86abdb30449325c06758e8cc6d73c137 | refs/heads/master | 2021-01-23T05:29:59.155567 | 2017-06-01T02:11:23 | 2017-06-01T02:11:23 | 92,971,791 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import http.client
conn = http.client.HTTPSConnection("graph.microsoft.com")
conn.request("GET", "/v1.0/me/mailFolders/%7Bid%7D")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
| [
"keyur32@hotmail.com"
] | keyur32@hotmail.com |
6871bc58de9ec6556a53a23b30a28172dd055fad | 9edd6cd0aac07bc3a433ec1a99b7922c4e8256ba | /marketing/migrations/0005_emailmarketing.py | 6f6bc7c5c5efcc52d525a68e64f3975d02fb56e0 | [] | no_license | NahidAkhtar84/NShopping | 87935f3119c918baed8d1ea3348c48028b686dfe | e466414853348a30bcb5e3096b847cc89a6c0976 | refs/heads/master | 2023-03-14T15:18:20.560228 | 2021-03-02T20:59:39 | 2021-03-02T20:59:39 | 343,904,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Generated by Django 3.1.5 on 2021-02-24 21:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('marketing', '0004_auto_20210223_0718'),
]
operations = [
migrations.CreateModel(
name='emailMarketing',
fields=[
... | [
"nahid.ibne.akhtar@gmail.com"
] | nahid.ibne.akhtar@gmail.com |
aea490cd24449091a1368b875ec5fe09f42dc668 | a1eb0bb73680bc42af97eea6b4d7811453dc6758 | /SVM/venv/Scripts/easy_install-script.py | b246adbc41772d1275dc0105e83226f24307b6aa | [] | no_license | PotatoPig/machine-learning | 23c2ba5e7cf9d66c92309437d47d139bbf4e866f | eb7ae7b8bc03d765e508b1a1c222ea15d25b1c21 | refs/heads/master | 2020-07-22T15:00:03.607116 | 2019-09-09T06:47:33 | 2019-09-09T06:47:33 | 207,239,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!D:\CS_Project\MachineLearning\SVM\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"Binhan Xu"
] | Binhan Xu |
d16cfbe7414805ba8bbe1c033534772a2c15925c | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArMonTools/share/LArMonTools_jobOptions_withOddCells.py | fdeb466c1e4d98dc42670897d1a9cecf12eb5aea | [] | 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 | 1,208 | py |
# most of them should be initialized already in RecExCommission
ToolSvc = Service( "ToolSvc" )
if not 'CheckEveryNoEvents' in dir():
CheckEveryNoEvents=100
#----------------------------------------------------------
theApp.Dlls += [ "AthenaMonitoring"]
theApp.Dlls += [ "LArMonTools"]
theApp.TopAlg += ["AthenaMon... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b38c4139c0650c0fe99411a7886d9897a6e474ed | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/124/24764/submittedfiles/testes.py | cb319ab269e7c22443456c6988769cf5a8eb8080 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
def vabsol(x):
if x < 0:
x = -1*x
return x
def calculopi(y):
c = 3
d = 2
for i in range (0, y, 1):
if i%2 != 0:
c = c - (4/(d*(d+1)*(d+2)))
elif i%2 == 0:
c = c + (4/(d*(d+1)*(d+... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
78485c52167656823797fb21bb81f97525dfa5fa | d94f758b2a5120fab69f48c7888b232599a05602 | /app/user/serializers.py | 2b2c06b1279b9ee6248e204ffe9d87b5bf248944 | [
"MIT"
] | permissive | zdravkob98/recipe-app-api | 51b74d961b13a0dec7ca31320d148bc804ae41a1 | 1aa236f69ee3960833219cabd6c9293d6d0f2ba4 | refs/heads/main | 2023-02-16T00:29:15.110453 | 2021-01-13T17:33:14 | 2021-01-13T17:33:14 | 328,614,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""serializer for the users object"""
class Meta:
model = get_user_model()
fields = (... | [
"zdravkobonev@abv.bg"
] | zdravkobonev@abv.bg |
96f9490be55b387dd0ae99a0ba8576011052572e | 8db94de54b604475fa874c9f2c22c07aeb73e57a | /singular-value-decomposition/data/cleaner.py | 0bc381051da4a28aa45e54677873ad705130e737 | [] | no_license | silky/programmers-introduction-to-mathematics | 5a13d533f2efc24eb55d37d2a908cf7095d27858 | 41e432012f5a6163db5bb2d77b8cd094877927b6 | refs/heads/master | 2020-04-03T04:31:33.992744 | 2018-10-27T22:27:07 | 2018-10-27T22:27:07 | 155,016,472 | 1 | 0 | null | 2018-10-27T22:47:38 | 2018-10-27T22:47:38 | null | UTF-8 | Python | false | false | 2,161 | py | import json
import os
from nltk.corpus import stopwords, wordnet
from nltk.stem.wordnet import WordNetLemmatizer
from nltk import pos_tag, word_tokenize
def loadRaw(directory):
documents = dict()
for filename in os.listdir(directory):
if filename[-3:] == 'txt':
with open(os.path.join(dir... | [
"j2kun@users.noreply.github.com"
] | j2kun@users.noreply.github.com |
666718bff6602e071ff4eec4558e2b234c5ebacb | 28d971fe35e5cf9d5446b712c1100dbd1f5236aa | /boxx/tool/toolIo.py | f6e1f25e364856fa657792da3c4b9d16d166250c | [] | no_license | snoworld888/boxx | d396833167c0d020a2066296490ae17c718ae2ea | f494e265cc85790b3dc15aaa693055b7c783a932 | refs/heads/master | 2021-03-26T00:47:44.553795 | 2020-03-13T09:36:20 | 2020-03-13T09:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os, sys
import warnings
from functools import wraps
from ..ylsys import py2, sysi
class BoxxException(Exception):
'''
root Exception for boxx
'''
pass
class BoxxWarning(Warning):
'''
root warninng for boxx
'''
pa... | [
"ylxx@live.com"
] | ylxx@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.