blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
776c25f2a2210e3e5bd84eecde7bbb77bf9085b8 | e48f110e638df31129963ff2a6b4dbba44354d33 | /script/get_lineage.py | c496628a3c55e96f5736c650e9cc8a6fc6d611fd | [] | no_license | didw/kra | dfa6e0f4d305e56fb11255c8af0554767f981d44 | 2d5ac2bcab5a2b452381c433f4c3c10b8b95e94f | refs/heads/master | 2021-01-11T05:50:49.239175 | 2019-01-06T14:22:36 | 2019-01-06T14:22:36 | 72,058,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py | # -*- coding:utf-8 -*-
from __future__ import print_function
from urllib2 import urlopen
import os
from bs4 import BeautifulSoup
import datetime
import re
import numpy as np
from mean_data import mean_data
import time
import glob
import sys
from sklearn.externals import joblib
from etaprogress.progress import ProgressB... | [
"yangjy0113@gmail.com"
] | yangjy0113@gmail.com |
a5259844bbdf1b3ef9268cd045527527df8ccf61 | f995860ad78fc266d04b03c3478c74e989d8b568 | /PE/pe0092.py | 967a129c9821f9b6aeaaec742f93503a05c1255d | [] | no_license | 196884/Python | edd0234fd72a40d7a0b3310776edcaa8bda74478 | 8dc2e7a32dd350227cde748600e713dc3eea3f4a | refs/heads/master | 2016-09-06T19:26:19.860746 | 2015-11-09T00:09:23 | 2015-11-09T00:09:23 | 28,167,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | cache = dict()
def foo(n):
if n == 89:
return True
if n == 1:
return False
r = cache.get(n, None)
if r != None:
return r
a = 0
na = n
while na > 0:
d = na % 10
a += d * d
na /= 10
r = foo(a)
cache[n] = r
return r
def solve():
... | [
"regis.dupont+git@m4x.org"
] | regis.dupont+git@m4x.org |
5cc77de880f1cb82426e1c2ac9101b967ea69fc4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_203/306.py | e52e63673c09e1543e4a3cb9720e45151c44266f | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import numpy as np
def mainFunc(R, C):
ret = ""
M = np.chararray((R))
M = np.chararray(M.shape, itemsize=C)
M[:]=''
init = -1
for i in range(R):
P = raw_input()
lc = '?'
for j in range(C):
if(P[j]!='?'):
if(lc=='?'): M[i]=M[i].replace('?',P[j])
lc = P[j]
M[i]+=lc
if (lc == '?'): M[i] = M[... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
93d8c39180250615a2451444846c840f95f8f0b8 | a4653fb6c5a7a9e6db0457480e9e860c5304b2b8 | /file_system/exercise/exercise2_better_sol.py | 795e2b16efa4fde7e2b86d2dcdb34491d6825949 | [] | no_license | pratik-iiitkalyani/Python | c315ca1f3a2446ccb871b74026edae97daec3773 | 082ae6d833f151054567d737de543898ebfe1d87 | refs/heads/master | 2020-08-07T05:59:21.930089 | 2020-01-04T17:05:27 | 2020-01-04T17:05:27 | 213,324,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # if multiple a tag in single line
with open('index.html', 'r') as webpage:
with open('file4.html', 'w') as wf:
page = webpage.read()
link_exist = True
while link_exist:
pos = page.find('<a href=')
if pos == -1:
link_exist = False
else:
... | [
"ts-pratik.kumar@rakuten.com"
] | ts-pratik.kumar@rakuten.com |
0bfe7b180d325402be96b545db34beb211cca8f9 | 099d7c012efc098a4b306aa8e77a3be53d8a53aa | /doc/examples/scripts/sequence/residue_coevolution.py | b401e48950bf96c7c12f2775d734b87a07cae6a0 | [
"BSD-3-Clause"
] | permissive | clementleong/biotite | 0404f1b4a07922de0f7d7359a9f5333638d3b9ab | 084da91b0a0671e65e9f9533b85f87ada65ad4da | refs/heads/master | 2021-05-23T17:44:25.839470 | 2020-04-01T06:52:48 | 2020-04-01T06:52:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,425 | py | r"""
Mutual information as measure for coevolution of residues
=========================================================
Mutual information (MI) is a broadly used measure for the coevolution
between two residues of a sequence (citation needed) originated in
information theory.
Basically, the mutual information is a st... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
3b26104afcca412a0ff2214dcb20abb6e703f1a3 | db86dad38a12f45b0d1c45e4f1f40a9f230bd2b7 | /main.py | 22d798fec941f59872759694f74d15b5468744f3 | [
"MIT"
] | permissive | ImKingSP/05-Space-Shooter | 56c16bf1dcb91b581d335d9ee83d0182bf639152 | f561bd7214fdc9ed033ea974074b0be2af7e5490 | refs/heads/master | 2020-08-21T21:43:05.645163 | 2019-10-05T16:35:54 | 2019-10-05T16:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | import sys, logging, os, random, math, arcade
#check to make sure we are running the right version of Python
version = (3,7)
assert sys.version_info >= version, "This script requires at least Python {0}.{1}".format(version[0],version[1])
#turn on logging, in case we have to leave ourselves debugging messages
logging.... | [
"you@example.com"
] | you@example.com |
d2b42931fae207fd90181297e6324128191063d8 | a8a26198b18339bf7841516ed98b01af85f67352 | /tests/lldb_api_tests.py | bdb783ebbc7013c2c68456ac89b31797fd3e43b9 | [] | no_license | jhavstad/voltron | 8711228b9fd03f8748e1d14ec7614a06a1f6a5c2 | ad52eabfab5828336dac9b344adc2de8c413ec82 | refs/heads/master | 2021-01-17T10:26:04.561510 | 2015-02-01T15:30:45 | 2015-02-01T15:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,270 | py | """
Tests that exercise the LLDB backend directly by loading an inferior and then
poking at it with the LLDBAdaptor class.
Tests:
LLDBAdaptor
"""
import tempfile
import sys
import json
import time
import logging
import subprocess
import threading
from mock import Mock
from nose.tools import *
import voltron
from vo... | [
"snare@ho.ax"
] | snare@ho.ax |
016475a88451d3f24ce9f59049663fc49c4b1380 | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v5_0/nucosremarkingpolicy.py | 00b6c466c5e9f3e449e72f9e090e332dcce67f83 | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 7,892 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
9b1caa633638c2d35da4adc8596dd540a99c7276 | 6d70d4a361099cc354f720338de490c0a81bbec8 | /test/test_odict.py | a682d7ebe016bc6f03cc1008bfe5c4aa95e57e2a | [
"MIT"
] | permissive | yoavfrancis/netlib | e21f539064a22ca9187db307354a4dcfaf4b92fb | 2a2402dfffc9f1a51869170793673eaf49207d0f | refs/heads/master | 2020-12-25T02:30:43.733718 | 2015-02-16T23:10:10 | 2015-02-16T23:10:10 | 31,251,005 | 1 | 0 | null | 2015-02-24T08:31:08 | 2015-02-24T08:31:08 | null | UTF-8 | Python | false | false | 4,102 | py | from netlib import odict
import tutils
class TestODict:
def setUp(self):
self.od = odict.ODict()
def test_str_err(self):
h = odict.ODict()
tutils.raises(ValueError, h.__setitem__, "key", "foo")
def test_dictToHeader1(self):
self.od.add("one", "uno")
self.od.add("t... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
f176846dffc747deeac17c7614092d844a981882 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /google/machineLearningRecipesWithJoshGordon/4_letsWriteAPipeline/pipeline.py | 4fdabb854df8929f44f96dae64fb5ce066b717b6 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,067 | py | # pipeline.py
# import dataset
from sklearn import datasets
iris = datasets.load_iris()
x = iris.data
y = iris.target
# splitting datasets
from sklearn.cross_validation import train_test_split
x_train, x_test, y_train, y_test = train_test_split(x,y, test_size = .5)
# using Decision Tree
from sklearn import tree
dec... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
ca861735693a7e81e59f4c5fc6d5812eea8381e9 | d04eeab9d686bd99893c07058261ca5fd2cb8732 | /test/integration_test/tools/lib/ofp/utils.py | 564acc8982158ffad85a1f1f13528ddd52f15c65 | [
"Apache-2.0"
] | permissive | lagopus/lagopus-next-virtio | 8c3153f3248372be367179cd68209eca324fdae2 | 068df5d98330861ceb377c2610f89d01ff654718 | refs/heads/master | 2021-01-21T14:48:52.873650 | 2016-10-06T02:42:20 | 2016-10-06T02:50:02 | 58,738,736 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | import os
import sys
import re
import base64
def create_section_name(name, del_str):
name = name.replace(del_str, "")
name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
name = re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
return name
def get_attrs_without_len(obj):
return [k for k, v in ob... | [
"hibi.tomoya@lab.ntt.co.jp"
] | hibi.tomoya@lab.ntt.co.jp |
5ef17dd39b578a01defa67a4be97fcbd0feedc02 | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/leetcode/0090. Subsets II.py | 64351b413c7bc38ae1ef7e8cbf56ccbe3f642a8d | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | '''
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: [1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]
'''
class Solution:
def subsetsWithDup(self, nums):
... | [
"yangzong5@gmail.com"
] | yangzong5@gmail.com |
38c3efee0bdc193d1baf8f5ca7d687eba8be7fc5 | 483a7c7ceacea9cff9c2712ea742270e9aa2acb9 | /aws-bigdata-dm/rule/dict_page/dict_weixin_pagenum.py | 04279454a846c3e227439e85598036eda64dcfcc | [] | no_license | beckett1124/cleardata | 514dd07d787bd20b3a9dafab5205e9c5c8899aea | ad1a05eaaaa79c1f3e34b21ab0741634b72aae0e | refs/heads/master | 2021-01-20T01:35:55.501736 | 2017-07-24T02:08:09 | 2017-07-24T02:08:09 | 89,304,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # encoding: utf-8
dict_weixin_page_num = {
"0": "首页",
"1": "热挡页",
"2": "我的页",
"3": "点播页面",
"4": "观看历史页",
"5": "我的收藏页",
"99": "其他页面"
}
| [
"qibin@mgtv.com"
] | qibin@mgtv.com |
d8fa5480491fc03b50ab644924315385b726dc31 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/migrations/0228_update_auditlog_index_with_entry.py | 3e4a20c8c18c49a467341d20dce351580f3c0662 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 2,351 | py | # Generated by Django 2.1.15 on 2021-08-31 01:53
from django.db import migrations, models
class Migration(migrations.Migration):
# This flag is used to mark that a migration shouldn't be automatically run in
# production. We set this to True for operations that we think are risky and want
# someone from ... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
d830556e278d9196233a44301b429cb53209d2c1 | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/webhooks/uptimerobot/tests.py | 30962b19bd10510404283f66f0f842168b2a77b5 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 1,972 | py | from zerver.lib.send_email import FromAddress
from zerver.lib.test_classes import WebhookTestCase
from zerver.models import Recipient
from zerver.webhooks.uptimerobot.view import MISCONFIGURED_PAYLOAD_ERROR_MESSAGE
class UptimeRobotHookTests(WebhookTestCase):
STREAM_NAME = "uptimerobot"
URL_TEMPLATE = "/api/v... | [
"tabbott@zulip.com"
] | tabbott@zulip.com |
7e6ccd84cdce8ab1454969bc0a06226bf6b39ff4 | ecd75802d500f0d514ad35b284798f8c0929ed03 | /feedly/tests/storage/redis/activity_storage.py | 11bb6a7cc9d6e7efe288be05112f4b4ffcc4079c | [
"BSD-3-Clause"
] | permissive | viirak/Stream-Framework | 3ca07f256523dc528727f23a6081ef6201f03d04 | 5586c8c055a760230f3da292b8dcc9a36ca35160 | refs/heads/master | 2021-01-18T09:36:42.065035 | 2015-02-05T21:55:28 | 2015-02-05T21:55:28 | 31,207,349 | 1 | 0 | null | 2015-02-23T12:34:29 | 2015-02-23T12:34:28 | null | UTF-8 | Python | false | false | 245 | py | from feedly.tests.storage.base import TestBaseActivityStorageStorage
from feedly.storage.redis.activity_storage import RedisActivityStorage
class RedisActivityStorageTest(TestBaseActivityStorageStorage):
storage_cls = RedisActivityStorage
| [
"tbarbugli@gmail.com"
] | tbarbugli@gmail.com |
bad729df75c91059093605f3d572173e60ece3be | b3b7f07a07a169a590e95d70e772b26477c3ace0 | /backend/system_service/server/modules/security/serializers.py | b5b89816a174a96627c4cd8c397d201143944173 | [] | no_license | roomanidzee/transportik-lite | 984fff1af9a55273004d4fe2eec75ef956239d66 | 50e873d604eb4c931dfc99ce5f10db16886e99bd | refs/heads/master | 2020-08-21T16:55:32.272729 | 2020-01-22T19:29:38 | 2020-01-22T19:29:38 | 216,203,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from rest_framework import serializers as srlz
class AuthSerializer(srlz.Serializer):
"""Serializer for user authorize"""
email = srlz.CharField(max_length=100, required=True)
password = srlz.CharField(max_length=100, required=True)
| [
"romanov_andrey_vl@protonmail.com"
] | romanov_andrey_vl@protonmail.com |
ba855307bdff24c468e4a8b47a2b9981db73b447 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /ml/m21_FI_test4_boston.py | f0c00e39e7739a8d6c0c735aa4fa88add49dfcc4 | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # feature_importances
# 중요도가 낮은 컬럼 제거한 후 실행 >> 제거하기 전이랑 결과 유사하다
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
import pandas as pd
import numpy as np
#1. DATA
dataset = load_boston()
x = dataset.data ... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
210cb2d81df56b182fbc0e4cc0f85093c3fc6176 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/gallery_image_version.py | 46be6cfe6266f4b2f7f1b0c1182a534728b85893 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 3,205 | 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 |
2b9641ce62d2a1b48ec94cacdf79f44d687fc01b | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/user_interfaces/embedding_in_wx2_sgskip.py | 895627733f437fd84a120bb3b043e54e64de6729 | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 1,761 | py | """
================
Embedding In Wx2
================
An example of how to use wxagg in an application with the new
toolbar - comment out the add_toolbar line for no toolbar
"""
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolba... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
513502edeb9c0a6e0453ff859b796700cacd04cd | 201919ea970f0dd249c7f88bc4ffc8515d7a0c78 | /client/verta/verta/endpoint/__init__.py | 2ef0297b9af2fcfe7c1423d99c51cedc3746ff23 | [
"Apache-2.0"
] | permissive | vishalbelsare/modeldb | a473dcd2524750d3bbfff1c46111d5806b090867 | 0c135828dae668c769a4c4a5e933d38a934a9d10 | refs/heads/master | 2022-02-03T04:26:07.441559 | 2021-12-30T18:59:10 | 2021-12-30T18:59:10 | 211,615,963 | 0 | 0 | Apache-2.0 | 2021-12-30T22:55:05 | 2019-09-29T06:38:32 | Java | UTF-8 | Python | false | false | 397 | py | # -*- coding: utf-8 -*-
"""Model deployment and management."""
from verta._internal_utils import documentation
from ._build import Build
from ._kafka_settings import KafkaSettings
from ._endpoint import Endpoint
from ._endpoints import Endpoints
documentation.reassign_module(
[
Build,
KafkaSetti... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
71d2b2487e1d81099723f9f7f04ac3b82e8225b8 | 01062df369907a6ff4367ad006d9be75f3b0886f | /zvt/factors/ma/domain/stock_1d_ma_stats_factor.py | bd7548159a9fb8a109e1ab2aee170b5f4d1220b6 | [
"MIT"
] | permissive | scanfyu/zvt | 917d8dd6df63fd3d55183896710573700f615a0e | 2ff38155bd85fb0945a7b45cad8dbdf2f175a3d5 | refs/heads/master | 2021-12-01T13:40:00.241766 | 2021-11-26T16:04:04 | 2021-11-26T16:04:04 | 186,553,012 | 0 | 0 | MIT | 2020-03-01T02:33:08 | 2019-05-14T05:46:40 | Python | UTF-8 | Python | false | false | 535 | py | # -*- coding: utf-8 -*-
from sqlalchemy.ext.declarative import declarative_base
from zvt.contract.register import register_schema
from zvt.factors.ma.domain.common import MaStatsFactorCommon
Stock1dMaStatsFactorBase = declarative_base()
class Stock1dMaStatsFactor(Stock1dMaStatsFactorBase, MaStatsFactorCommon):
... | [
"5533061@qq.com"
] | 5533061@qq.com |
4c6bc048d8113a709c45c7cd699a7ff7637a5d56 | 1df8d24373d05074a0a1bb70f73bd8f313e65465 | /tests/util.py | e4507239553537f271ecf8cf09538393b450ad1a | [] | no_license | andy-mcn/rpi-can-logger | 3f5c0b491899932e902d975363919a27ddc2b20e | 4c16a880717740848cd89fcd0af9d3832dc32276 | refs/heads/master | 2023-04-11T05:11:57.273424 | 2021-03-14T01:05:24 | 2021-03-14T01:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import sys
def get_args():
print(sys.argv)
if len(sys.argv) > 1:
arg = sys.argv[1].lower()
if arg == 'pcan':
# PCAN
interface = 'pcan'
channel = 'PCAN_USBBUS1'
elif arg in ['can1', 'can0']:
# pican
channel = arg
in... | [
"jonmac1@gmail.com"
] | jonmac1@gmail.com |
9bf80412e8a757f46f7124870d363133e8b79d80 | cf8be80fe9d7acfae03d86430d1c8ff8d22a8655 | /unit/dispatch_spec.py | d0dc6a9b0cf8418415cc52b0f103ac570a18c31b | [
"MIT"
] | permissive | tek/ribosome-py | 4da2faf3f7c2d646c5a90bf73e81ec12bd360d38 | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | refs/heads/master | 2022-12-21T22:46:49.075358 | 2020-08-31T16:22:51 | 2020-08-31T16:22:51 | 66,086,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from typing import Any
from kallikrein import Expectation, k, pending
from amino.test.spec import SpecBase
from amino import Lists, List, _, IO, __, do, Do
from amino.boolean import true
from amino.dat import Dat
from ribosome.compute.api import prog
from ribosome.data.plugin_state import PluginState, PS
from riboso... | [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
7f857334e26e13ecc75c3262b9d7905df2ad481a | 27317b3adb1ccd99afa86cb931d2d14e23b9b175 | /bcs-app/backend/bcs_k8s/authtoken/providers/app_provider.py | 61388135edf519c3986ef6fb327776bd57aa3f98 | [
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT"
] | permissive | freyzheng/bk-bcs-saas | cf5a6c4ab1c20959bda1362bc31de7884451acd7 | 96373cda9d87038aceb0b4858ce89e7873c8e149 | refs/heads/master | 2021-07-05T04:11:08.555930 | 2020-09-22T12:26:37 | 2020-09-22T12:26:37 | 201,279,048 | 0 | 1 | NOASSERTION | 2020-09-16T03:07:16 | 2019-08-08T14:48:27 | Python | UTF-8 | Python | false | false | 3,478 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
7e47e54e7ed44a58053935a515d22b5e795cb2e7 | 3903b5f316cc11ff8970d29deb07d0fa74166166 | /cloudmesh/launcher/Launcher.py | 2eed73501a64bfab2cd3852334eba7db3a8a526a | [
"Apache-2.0",
"Python-2.0"
] | permissive | cloudmesh/cloudmesh-launcher | 7890f94ae8b07b651b0f28240b68bdd8b1433d42 | 80cf9ade82f45a42e55c03de51d9a6e3ade8cf42 | refs/heads/main | 2021-04-04T21:43:33.530932 | 2020-04-11T22:27:24 | 2020-04-11T22:27:24 | 248,490,985 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | from cloudmesh.common.util import banner
from cloudmesh.common.console import Console
from cloudmesh.launcher.Config import Config
import sys
from pprint import pprint
import textwrap
import os as _os
# noinspection PyUnusedLocal
class Launcher(Config):
spec = textwrap.dedent("""
info:
name: sample
... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
d2400aafef9a69be9a9808ae3d96884e1b9777e1 | f0ee987789f5a6fe8f104890e95ee56e53f5b9b2 | /pythia-0.8/examples/opaldemo/content/pages/sample.odb | 1e80cff2f8b14f73f7da93716a75ef4b931b36da | [] | no_license | echoi/Coupling_SNAC_CHILD | 457c01adc439e6beb257ac8a33915d5db9a5591b | b888c668084a3172ffccdcc5c4b8e7fff7c503f2 | refs/heads/master | 2021-01-01T18:34:00.403660 | 2015-10-26T13:48:18 | 2015-10-26T13:48:18 | 19,891,618 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | odb | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2005 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~... | [
"echoi2@memphis.edu"
] | echoi2@memphis.edu |
654ff8c1778ac83daf22080b2ef8317d165aa128 | f023692f73992354a0b7823d9c49ae730c95ab52 | /other/2012/tenka1-2012-qualB/B.py | d7a8659bded549d18f61a0304d1d0de5885d2368 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 2,922 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
# import string
from math import ceil, floor
import re
# inf = float('inf')
# mod = 10 ** 9 + 7
# mod2 = 998244353
def is_word(s):
if s == '': return False
for i, c in enumerate(s):
if i == 0:
i... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
eaee37925f58f69bd0e8cac9e5505c0731c0257c | 1213bcf770a94a89b39be8dc7b99a3f7e35fd369 | /src/xenia/debug/protocols/ws/sources.gypi | f3313acf274506e8e083be1fdc1110f7fc551e03 | [] | no_license | wtfaremyinitials/xenia | c86e4625a1dd084d97d44c3242e2faf208bca2b8 | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | refs/heads/master | 2020-12-31T02:43:53.168712 | 2014-01-14T22:06:05 | 2014-01-14T22:06:05 | 15,918,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | gypi | # Copyright 2013 Ben Vanik. All Rights Reserved.
{
'sources': [
'simple_sha1.cc',
'simple_sha1.h',
'ws_client.cc',
'ws_client.h',
'ws_protocol.cc',
'ws_protocol.h',
],
}
| [
"ben.vanik@gmail.com"
] | ben.vanik@gmail.com |
161fcc4e9d18391b8e4a0a8c5ce6467e482bed76 | dbd6275aacc6a8812fc0d9c3dc0a4846a61bdb82 | /qa/reject_direct_offline.py | 3acc2d1e79e9406f9929fb3d1072c7c61416b0ab | [
"MIT"
] | permissive | cpacia/openbazaar-go | 9e52a6c789c38a2759cafb69b57b709a1a43ba5d | 8eaf68a4ca45e54c44125123551e14d5f97a9b95 | refs/heads/master | 2020-12-28T07:45:48.152210 | 2017-03-20T22:07:44 | 2017-03-20T22:07:44 | 63,965,163 | 1 | 0 | null | 2017-01-04T00:28:43 | 2016-07-22T15:49:15 | Go | UTF-8 | Python | false | false | 7,709 | py | import requests
import json
import time
from collections import OrderedDict
from test_framework.test_framework import OpenBazaarTestFramework, TestFailure
class RejectDirectOfflineTest(OpenBazaarTestFramework):
def __init__(self):
super().__init__()
self.num_nodes = 3
def run_test(self):
... | [
"chris@ob1.io"
] | chris@ob1.io |
8fea4394f9dfc0ee8d8d8ca5e82b96250660c553 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav152.py | 4e35a0a629e468b58fd096f8f015f395004c2f9f | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/python
import sys
def compute(prey):
if prey[1] > prey[1]:
temp0 = -1 * prey[0]
else:
if prey[1] != 0:
temp0 = prey[1] / prey[1]
else:
temp0 = prey[1]
if prey[0] != 0:
temp1 = prey[0] / prey[0]
else:
temp1 = prey[0]
temp2 = prey[1] - prey[1]
temp2 = prey[1] - temp2
if temp0 != 0:
te... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
553bf61bcb3ac48eb5547d32726a07f83a76abb5 | cc0036f24cebf196f410fffe3d98cdb3f87f50ef | /unet/utils.py | 3a018a3807ff53e4735efc27c07be1154e6811e5 | [] | no_license | UdonDa/gijutusyoten | 95917ff1f85f2f549a8f9bd6c5f2e12ef025c495 | 390011557f801157e26cab1f070557d816760fac | refs/heads/master | 2020-03-29T13:13:17.504093 | 2018-10-08T11:02:12 | 2018-10-08T11:02:12 | 149,946,665 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import os
import numpy as np
from PIL import Image
import torch
def make_dir(path):
if os.path.exists(path):
return True
else:
if not os.path.isdir(path):
os.makedirs(path)
print("Making {}".format(path))
def tensor2im(input_image, imtype=np.uint8):
if isinstance(input_image, torch.Tensor):
... | [
"udoooon0727@gmail.com"
] | udoooon0727@gmail.com |
4e27544df59ed42611b71fbe0911b28afad21d9a | 06ffdca2ad7c3437eacaa551dca61504893767c9 | /VariableKUserAndItem.py | f20ce6908f611f153f240f6254257f01cfdb6b67 | [] | no_license | wilben/Recommendation-System | 24320f37b2bc8f714d7a5ed824ced11f17069472 | c96dd90691371f7efc32fa9c334e01046aece7fb | refs/heads/master | 2021-05-09T13:28:35.946499 | 2017-04-11T03:23:24 | 2017-04-11T03:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | ### Scripted by Mohammed Jasam
### mnqnd@mst.edu
import matplotlib.pyplot as plt
import numpy as np
import subprocess
import csv
import os
import matplotlib.pylab as plt
import seaborn as sns
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
l=[]
# ###############################################... | [
"mnqnd@mst.edu"
] | mnqnd@mst.edu |
954e11d00f4c67168be60e7c7cb0f8586b05a3c2 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_day_cq_wcm_designimporter_parser_taghandlers_factory_image_componen_properties.py | 63fec33f02de89780dd8099e4562e39bff37592e | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,407 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.config_node_property_integer import ConfigNodePropertyInteger # noqa: F401,E501
from ope... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
4ef4e6a27ea20d2407a60ec5cfabd2b061b88943 | 192dbe9fa2b9fe1a08dc8b15e4073ca76013e437 | /Django_TODO_app/todo/tests.py | 21c354f9f787d6faf56b1d187b8a155a6a93c582 | [] | no_license | Oebele/Django-TODO-app | 96935bcc5ca50c1d065ba1201ffc2369656f406e | 309906d1350078bc1ffa57f07c72d595999197f3 | refs/heads/master | 2022-12-04T11:26:56.325328 | 2020-08-23T10:02:29 | 2020-08-23T10:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.test import TestCase
# Create your tests here.
class MyTests(TestCase):
async def test_index(self):
response = await self.async_client.get('')
self.assertEqual(response.status_code, 200)
| [
"you@example.com"
] | you@example.com |
343f9ef62e9064f3394fc356129932d6d77cc6a4 | ddcddd9de55c81bf8e8a6195503a9368b8a4ad9c | /The Core/Spring of Integration/092 - stringsCrossover.py | bdaea0968f0bc87f5f66a61fefc316446f6f1da2 | [] | no_license | Zahidsqldba07/CodeSignal-26 | 3224a4127dcc5c36a162a20b7204b65feaa53c8b | 2229026da7eb0141aa78e22df84996183cab7aa4 | refs/heads/master | 2023-06-28T21:02:53.998919 | 2021-08-01T18:48:17 | 2021-08-01T18:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def stringsCrossover(a, r):
return sum( all( r[k]==a[i][k] or r[k]==j[k] for k in range(len(r)) ) for i in range(len(a)) for j in a[i+1:] )
| [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
5966d617bb469c5979828e532fa7fa4194287154 | 59cd62b97f65d7f695f75e3ae6e827206d9310d8 | /linter.py | 8fae8861241c85beccc87827b2ba8b366e272441 | [
"MIT"
] | permissive | CudaText-addons/cuda_lint_gotype | 54b8ac8268c1f1ecf4b2e4ea2f7b155680f930f1 | 36c405551bde44c093dd6437598282afdbdbf78b | refs/heads/master | 2021-01-12T14:09:10.943924 | 2016-10-03T23:43:55 | 2016-10-03T23:43:55 | 69,920,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # Original by Jon Surrell
# Copyright (c) 2014 Jon Surrell
# License: MIT
# Change for CudaLint by Alexey T.
import os
from cuda_lint import Linter, util
if os.name=='nt':
_exe = os.path.join(os.path.dirname(__file__), 'gotype', 'gotype.exe')
else:
_exe = 'gotype'
class Gotype(Linter):
"""Provides an int... | [
"support@uvviewsoft.com"
] | support@uvviewsoft.com |
85e2856cda4f7531703ff1ea32337db208b4501b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_flowed.py | b95a5ea1679c51e024e2cf36e4e86a0a6b58fdb2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._flow import _FLOW
#calss header
class _FLOWED(_FLOW, ):
def __init__(self,):
_FLOW.__init__(self)
self.name = "FLOWED"
self.specie = 'nouns'
self.basic = "flow"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4a5d851ef815fb2122afd92249559159567c6b2c | 6ee99be75ddff2b4c78434595d568d3cccfcf530 | /printscrambledtext.py | 6e8d26979897de449f84aebe70ae053f2a13e2ba | [] | no_license | swordwielder/python3 | e66f3de18c25fb861b4b697a5349099825f1983d | 105ff3a499ce7f3459591107becd8847f30b5f7c | refs/heads/master | 2023-01-19T10:39:51.570407 | 2020-11-30T17:33:27 | 2020-11-30T17:33:27 | 192,809,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | s = input()
out = s[::2]
if not len(s) % 2:
out += s[::-1][::2]
else:
out += s[::-1][1::2]
print(''.join(out))
s = input()
r=''
for i in range(0,len(s),2):
r+=s[i]
x=1
if len(s)%2==0:
x=0
for i in range(x,len(s),2):
r+=s[len(s)-1-i]
print(r)
| [
"qchen125@gmail.com"
] | qchen125@gmail.com |
ef56b8e1c8dc4d97fd9e88cbf700a60ae2fb9964 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s696106581.py | a11dce54b5cf582a0f4cd77f3fc6d284aef2ca75 | [] | 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 | 975 | py | import sys
input = lambda: sys.stdin.readline().rstrip()
from heapq import heappop, heappush, heapify
X,Y,Z,K = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
A.sort(reverse=True)
B.sort(reverse=True)
C.sort(reverse=True)
sum_list... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d3cbe6dfc2c5631a4e8d9f101a435d2bf7e95683 | cfc3fa658f826d02308453e557d82758895399c2 | /datasets/opus_gnome/opus_gnome.py | d7f26a749917f182bd477c751b2320ac7d9c3028 | [
"Apache-2.0"
] | permissive | meehawk/datasets | cac530ec0e17514c01cdff30302521d6303ed93b | b70141e3c5149430951773aaa0155555c5fb3e76 | refs/heads/master | 2023-03-29T12:51:54.700891 | 2021-04-08T17:22:53 | 2021-04-08T17:22:53 | 355,996,122 | 9 | 0 | Apache-2.0 | 2021-04-08T17:31:03 | 2021-04-08T17:31:02 | null | UTF-8 | Python | false | false | 4,384 | py | # coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"noreply@github.com"
] | meehawk.noreply@github.com |
d9546d1b7e3937a1d90aa7e7e16feb84a59fa970 | a02789088ef6f7134d70b7235fa92ddcab9a667b | /eventsourcing/tests/test_snapshotting.py | ba025687fd615c250e24db723d9ad37952676061 | [
"BSD-3-Clause"
] | permissive | bernardotorres/eventsourcing | 89f4f6aaf62f321ce28f5ec9ddbb60712495aa8b | 002077d185c261920f8ea8a397e292ab73a25319 | refs/heads/main | 2023-08-07T17:38:59.665618 | 2021-09-18T07:04:19 | 2021-09-18T07:04:19 | 407,116,568 | 0 | 0 | BSD-3-Clause | 2021-09-16T10:13:36 | 2021-09-16T10:13:35 | null | UTF-8 | Python | false | false | 2,061 | py | from decimal import Decimal
from unittest import TestCase
from eventsourcing.domain import Snapshot
from eventsourcing.persistence import (
DatetimeAsISO,
DecimalAsStr,
EventStore,
JSONTranscoder,
Mapper,
UUIDAsHex,
)
from eventsourcing.sqlite import SQLiteAggregateRecorder, SQLiteDatastore
fro... | [
"john.bywater@appropriatesoftware.net"
] | john.bywater@appropriatesoftware.net |
891a0675682d547a14e4c805d462c13996d3b607 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/460006040.py | b57604d1c75e5447ecda865d7621d36ee173903d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,329 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'TP',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'REN', MIN: 1, MAX: 1},
{ID: 'DK', MIN: 1, MAX: 1},
{ID: 'PI', MIN: 0, MAX: 8},
{ID: 'PR', MIN: 0, MAX: 200},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
2d98d2574f08d36b569d7460b842ddcfab29f4b4 | 54f0c6fc05f4e8122e1ce5580fc27e8a0f0bc3ce | /lesson_4/places_exercise.py | 20ec8ee271b2683b00d37c16244ceee9ec7d39cf | [] | no_license | mpaolini/python-course-IAL | 530028b51d34ca008728640e738d0fcd0fb9796e | 78ab38f7c3b7fcac7e8b36325ae99c6553914f01 | refs/heads/master | 2021-01-10T22:23:05.288845 | 2015-06-04T07:29:46 | 2015-06-04T07:29:46 | 31,285,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | '''
Build a function that given a string, returns all places that contain the string:
>>> places = find_places('IAL')
>>> places[0]
('IAL ROMA E LAZIO', 41.954964, 12.523495)
HOMEWORK: Build a function that given a place, returns a list of places nearby
Hint: use nearby search API https://developers.google.com/place... | [
"marco@credra.com"
] | marco@credra.com |
0b0aaa55715d067d0d7c2a08e4692d53a0329eb1 | 13b1ece281a1eaa0cac2706c14f1d4c190f73c2b | /Assignment 5/cursed_family_solutions/BMC201938/BMC201938.py | 5ae9eb808f01146e3c46074519c4de290fb942fe | [] | no_license | bhi5hmaraj/APRG-2020 | 0c995f79cc50108956d1bd0ceed8d7cb6d96f34e | 7e11c14a02d48d52b547696fc930f38c586ce0da | refs/heads/master | 2022-07-17T09:41:58.947321 | 2020-05-21T12:34:46 | 2020-05-21T12:34:46 | 236,176,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from collections import defaultdict
class Graph:
def __init__(self,vertices):
self.V= vertices
self.graph = defaultdict(list)
def addEdge(self,u,v):
self.graph[u].append(v)
def lar_gat(self, u):
if self.graph[u] == []:
A[u-1] = 1
return 1
... | [
"srinidhin@outlook.com"
] | srinidhin@outlook.com |
e532a4194bedb9af541a105caaa2d2abf83e0550 | f65e757d3e69c520fd121a8ee9fae61916165db8 | /tensorflow_Application/tensorflow_NeuralStyle/main.py | 869a229a545a8e72024d41d232156a1bc14a8579 | [] | no_license | yfkwon/Tensorflow_Advanced_Tutorials | 4138113665f9b1a4733a2284e24ce61e9b030694 | ec79838afab8728fd3e1f5b52ac1c083ab484126 | refs/heads/master | 2020-03-24T19:38:32.983089 | 2018-07-30T15:43:39 | 2018-07-30T15:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import os
import model
# download URL : http://www.vlfeat.org/matconvnet/models/imagenet-vgg-verydeep-19.mat
if not os.path.exists("weights"):
os.makedirs("weights")
model_file_path = 'weights/imagenet-vgg-verydeep-19.mat'
# content_a / style_b = 1/1000
content_image = "content/person.jpg"
style_image = "style/... | [
"medical18@naver.com"
] | medical18@naver.com |
3f2aa728b86b303b34b665b5f8d87ca74106cc95 | 9397b7cd45e728af4fb1fc589e35b24969989ebb | /doc/source/_local_ext.py | 4d461166094636fbc59db44e84556697ff38a068 | [
"MIT"
] | permissive | anntzer/mplcursors | 79c9b8b09360988653a2ac6cc870d538338585fc | 834703a85102dd16edfc484fc07641c36a24dbd4 | refs/heads/main | 2023-07-07T07:30:16.856331 | 2023-06-29T23:20:42 | 2023-06-30T19:37:06 | 63,763,767 | 100 | 18 | MIT | 2023-06-30T19:37:08 | 2016-07-20T08:20:36 | Python | UTF-8 | Python | false | false | 241 | py | from sphinx_gallery.sorting import ExampleTitleSortKey
class CustomSortKey(ExampleTitleSortKey):
def __call__(self, filename):
return ("" if filename == "basic.py" # goes first
else super().__call__(filename))
| [
"anntzer.lee@gmail.com"
] | anntzer.lee@gmail.com |
a63815dd1b61222ea459f30ac4a302bf8c8ce1c9 | 16479bc37b1ccd1acaa1b03858ff415a451c436e | /cairis/cairis/InternalDocumentPanel.py | fe51249e591b051b2aa4dc63a9e98f3d12aed36c | [
"Apache-2.0"
] | permissive | nix4/CAIRIS | 437add1829304961d485a6fe064141115a5d5473 | 1ebffa8178a2703e9d9e860cb4e0b13bd16a0b22 | refs/heads/master | 2021-01-20T23:31:25.473237 | 2012-07-08T12:27:39 | 2012-07-08T12:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
53466192b6b1b9653246b371a61acd9be0f6cdcf | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /tests/test_csv_dataset.py | d187f4e64da3b3eb313da7d1ca2041a9fbad9003 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 7,771 | py | # Copyright 2020 - 2021 MONAI Consortium
# 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... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
dd8a4a249aba930eb0c3fddc6418d033ed608468 | ba9afe27c3e379143560e5488eead0752049f387 | /app/blueprints/user/validators.py | a9f293189a8c35a4bdbe3fe8603ce865c8d8ea66 | [] | no_license | sbansa1/SnakeEyes | f1c1d1696c11544e7eacbfbe1ead471b26c54bf9 | 874eb569d2498de5c3ff8f4c4283434cd6d53143 | refs/heads/master | 2022-12-09T23:45:47.637717 | 2019-06-27T11:03:53 | 2019-06-27T11:03:53 | 194,081,493 | 0 | 0 | null | 2022-12-08T05:49:11 | 2019-06-27T11:17:57 | HTML | UTF-8 | Python | false | false | 775 | py | from wtforms.validators import ValidationError
from app.blueprints.user.model import User
def ensure_identity_exists(form,field):
"""Ensure an identity exists.
:param form: wtforms Instance
:param field: Field being passed in
:return: None
"""
user = User.find_by_identity(field.data)
if... | [
"saurabh.bnss0123@gmail.com"
] | saurabh.bnss0123@gmail.com |
6983669dd9e7d041287e7d852e3c7e15144ed40d | 485a6d06c0e3aa33ab44f2ecfc26a863484e71ed | /course3/principles/polymorphism.py | 1d36caf9e5cb4107d270614d5710ffa1129ea172 | [] | no_license | karennina/tceh-python | b59a8a04a1fce575084003a0d66c912acb09d123 | 15064699ef8d7c116471444f08856e0f61a02f67 | refs/heads/master | 2021-01-21T05:53:31.583613 | 2016-09-16T16:08:38 | 2016-09-16T16:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
__author__ = 'sobolevn'
def func():
pass
class Parent(object):
def call(self):
print('Parent')
class Child(Parent):
def call(self):
print('Child')
def call_obj(obj):
obj.call()
if __name__ == '__main__':
Parent... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
c6298f059135b6337fc0af9ed50f6db99eba593b | 74cf82a86bb853df07bfda7843e7f96c4db12004 | /lora_rfm9x/gps_setup_main.py | e5ac8af4a2597ab76832efe38e1873ea46b95700 | [] | no_license | Kanaderu/CircuitPython | bd1933fc25ef75536d986a8f8a171e73a97dfdba | e3119539c49c04433368df9e6a961888642b060b | refs/heads/master | 2020-12-27T11:34:01.473890 | 2020-03-22T19:27:28 | 2020-03-22T19:27:28 | 237,885,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # CircuitPython Demo - USB/Serial echo
import time
import board
import busio
import digitalio
import struct
import adafruit_gps
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
uart = busio.UART(board.TX, board.RX, baudrate=9600)
gps = adafruit_gps.GPS(uart, debug=False) # Use U... | [
"fand.kanade@gmail.com"
] | fand.kanade@gmail.com |
94087276d310a1fd1bffde5fa01bdab11841d6c9 | 92af0d7e1d0c6b17e80ee249bb133d8e1f1c7852 | /ABC057/D.py | 9fa65c52d6fee0e6504ff163c14be75487e399ac | [] | no_license | ohshige15/AtCoder | 6157089f4672d8497789db02db3bfce334ec0152 | c0d1e979631d9df62e70a2b1066bc670fccae1ec | refs/heads/master | 2020-04-23T03:25:43.325538 | 2019-09-19T11:18:57 | 2019-09-19T11:18:57 | 170,878,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | import math
from collections import Counter
N, A, B = map(int, input().split())
V = sorted(Counter(list(map(int, input().split()))).items(), key=lambda x: x[0], reverse=True)
if A <= V[0][1]:
print(V[0][0])
x = min(V[0][1], B)
num = 0
for i in range(A, x + 1):
num += math.factorial(V[0][1]) // (... | [
"satoshi.o.xxx@gmail.com"
] | satoshi.o.xxx@gmail.com |
f37c1f42287336cba4097d1ae12bc4d349eaba68 | c5744c2fda48ae6a79c155c641fe98021a0cb7f3 | /PP4E/GUI/Tour/demo-check-auto.py | b0d49353c98a7192e19964a469f32a50ed551e0d | [] | no_license | skinkie/Scripts | e0fd3d3f767612ade111f28bc7af3e1b25fc2947 | 80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1 | refs/heads/master | 2021-05-31T16:57:21.100919 | 2016-05-23T09:58:59 | 2016-05-23T09:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # e.g. 8-24
from tkinter import *
root = Tk()
states = []
for i in range(10):
var = IntVar()
chk = Checkbutton(root, text=str(i), variable=var)
chk.pack(side=LEFT)
states.append(var)
root.mainloop()
print([var.get() for var in states])
| [
"death_finger@sina.com"
] | death_finger@sina.com |
45d30389dbccefe8f64ea47198856c0c6e849e86 | d3b3a3e8c3a053c74479d588a26dd0343e015663 | /快捷办公/设置桌面壁纸.py | e629e6894547c960da64574097ced695c3ac7298 | [] | no_license | Mr-big-c/github | b6978ad920bc8f4d2cee1fca1cac72cce5767e12 | d301aa4516a00007980f34b94de3c7b5fb4198fa | refs/heads/master | 2021-10-01T18:57:51.133095 | 2018-11-28T15:00:40 | 2018-11-28T15:00:40 | 300,145,501 | 1 | 0 | null | 2020-10-01T04:42:30 | 2020-10-01T04:42:29 | null | UTF-8 | Python | false | false | 445 | py | """
设置桌面壁纸
"""
import win32api
import win32con
import win32gui
def setwallpaper(path):
# 打开注册表
win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, "Control Panel\\Desktop", 0, win32con.KEY_SET_VALUE)
# 设置壁纸路径
win32gui.SystemParametersInfo(win32con.SPI_SETDESKWALLPAPER, path, win32con.SPIF_SENDWININICHA... | [
"2551628690@qq.com"
] | 2551628690@qq.com |
36ca7ed7575d374ea904d0594d769b9f575139d8 | 27331020ff20d00f4e875f6a20ce0ca1c906da43 | /Portpolio/autocomplete/Model_lstm/main.py | a3ceab53b6415150f0a8f0b53f1a8be6d796acbe | [] | no_license | MOOSUNGPARK/source | 2ac7f24766c953cfafc632eb2812f713aa708944 | 50b2d169d5c64778d818decd564045d7f8e6c304 | refs/heads/master | 2021-01-20T14:29:02.015764 | 2019-01-09T06:37:35 | 2019-01-09T06:37:35 | 90,616,630 | 1 | 7 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | import tensorflow as tf
import numpy as np
import time
import sys
import Portpolio.autocomplete.Model_lstm.util as Util
from Portpolio.autocomplete.Model_lstm.lstm1 import Model
# validation / 중간 test / saver
ckpt_file = ""
TEST_PREFIX = "내 랩은 " # Prefix to prompt the network in test mode
print("Usage:")
print('\t\... | [
"0911godqhr!"
] | 0911godqhr! |
a6be68413ad796001d202c86c51ed147f53323c9 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/optics-config/xsd/scripts/scannables/polarimeterTemperatureMonitor.py | 8f46a81b4e390b2b0b4cf62340edb54a63a119f8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | '''
create 2 scannables that monitor Retardation motor temperature and Analyser motor temperature in a polarimeter.
Created on 18 Dec 2009
@author: fy65
'''
from epics.pvmonitor.threadedMonitor import EpicsPVWithMonitorListener
rettemp = EpicsPVWithMonitorListener('rettemp', 'ME02P-MO-RET-01:ROT:TEMP', 'degree', '%.... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
592747bf3c3b6bf6c0e9ad2e03be2c3741ed3d9b | 44c5f9840ed5c5e098e8ecf96990a2f8ad6d50eb | /url_lib.py | 93116cd4184e0d8dd5c894d3c37f3473ca7084ac | [] | no_license | chinmairam/Python | 619562718197cfdbc804b06559c58ed54114c935 | cafcde1788aff801d4cc160090f674537a26f648 | refs/heads/master | 2023-03-02T17:47:21.903132 | 2021-01-31T14:46:03 | 2021-01-31T14:46:03 | 284,530,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # urllib
import urllib.request as url
# dir(urllib)
page = url.urlopen('http://www.textfiles.com/etext/AUTHORS/POE/poe-raven-702.txt')
# print(page)
text = page.read() # Prints in bytes format of text
text = text.decode() # Text
page.close()
file = open('raven.txt','w')
# print(file)
file.write(text)
file.close()
f... | [
"chinmairammuppa@gmail.com"
] | chinmairammuppa@gmail.com |
661dda26996da560941d727f853249e2ee7f47e8 | 37c35a4ab79d204b6142fdd45d3ee4faa06f27f4 | /python/knock065.py | 3a0cbd4f16ce18c0f2618fc8f60eebf9b47d10bf | [] | no_license | ryosukee/NLP100Knock2015 | 3e10a0e9ebb5f7b7b450ba375949d31c38184d32 | a784a6bb8e14ea2e912def6818bf1868a5d4927f | refs/heads/master | 2020-04-14T19:27:55.016225 | 2015-08-04T12:26:07 | 2015-08-04T12:26:07 | 33,662,035 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # coding:utf-8
"""
python knock065.py
"""
from pymongo import Connection
# connection
connect = Connection('localhost', 37017)
db = connect['100knock']
collect = db['064']
for data in collect.find({'name': 'Queen'}):
print data
| [
"tmcit.miyazaki@gmail.com"
] | tmcit.miyazaki@gmail.com |
29fa51a681c96b19bf17d34c61e7021556bde4b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02777/s602814759.py | b12c434e41fb33a28008a200df933c0684e2d8f3 | [] | 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 | 146 | py | s,t=input().split()
a,b=map(int,input().split())
u=input()
if u==s:
print("{} {}".format(a-1,b))
elif u==t:
print("{} {}".format(a,b-1)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2215b4bdd94dbfc514f17f21d9f6658ec091625 | b7e6cdf094baaee9d6e5034c2355641fbf9138d7 | /476. 数字的补数.py | 7a782e047478e786237957077a0000c557fb2d82 | [] | no_license | heshibo1994/leetcode-python-2 | 04296c66cd6d1fe58880062aeafdbe9d474b7d2e | 3ea32f03bd453743b9b81de9871fad7ac67ced90 | refs/heads/master | 2020-05-23T21:49:01.367969 | 2019-09-30T03:31:27 | 2019-09-30T03:31:27 | 186,961,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # 给定一个正整数,输出它的补数。补数是对该数的二进制表示取反。
#
# 注意:
#
# 给定的整数保证在32位带符号整数的范围内。
# 你可以假定二进制数不包含前导零位。
#
# 示例 1:
#
# 输入: 5
# 输出: 2
# 解释: 5的二进制表示为101(没有前导零位),其补数为010。所以你需要输出2。
class Solution:
def findComplement(self, num):
x = bin(num)[2:]
ans = ""
for i in x:
ans = ans+str(1-int(i))
... | [
"csuheshibo@163.com"
] | csuheshibo@163.com |
59f574ad715966e7a5a86428500b9390beab9a5a | d9b6de55af0b6e1493fc77abd28a9cab21ed5c36 | /unit_tests/test_scripts/extras/flow123d_mock.py | 3ff98912dcd73d78c162424b451701aace78fd4d | [] | no_license | flow123d/flow123d | 016af7cd55b5a8ed9426d843aace62f12b01cbb1 | 1f02b2c851f0e6ec2f93321b623000381b558a0b | refs/heads/master | 2023-09-05T01:38:06.288200 | 2023-09-04T13:24:38 | 2023-09-04T13:24:38 | 13,628,170 | 17 | 16 | null | 2023-09-12T11:27:36 | 2013-10-16T18:56:28 | C++ | UTF-8 | Python | false | false | 2,248 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: Jan Hybs
# Flow123d mock file
# ----------------------------------------------
import os
import random
import shutil
from optparse import OptionParser
# ----------------------------------------------
import time
import sys
# -----------------------------------------... | [
"jan.hybs@tul.cz"
] | jan.hybs@tul.cz |
a52e1e0f2dd18b807db1f008a8b70c0d81ac4c0c | 36c5770217c104bea5cc1e5e43a9faa803daccec | /2021/Day_04/aoc_2021_day04.py | 9a0f748d67b377b70e5e714341785f44a0619586 | [] | no_license | sco1/adventofcode | 3a2ac0905c04e5a42d409d27e71dc7c5b3cf33a4 | cb029bb825f35944f505f8c88346bd2504695821 | refs/heads/main | 2023-04-30T10:25:02.770042 | 2023-04-17T01:07:46 | 2023-04-17T18:11:35 | 160,292,002 | 0 | 1 | null | 2023-04-06T13:17:54 | 2018-12-04T03:37:54 | Python | UTF-8 | Python | false | false | 3,157 | py | import typing as t
from pathlib import Path
import numpy as np
def parse_bingo(puzzle_input: list[str]) -> tuple[list[int], np.ndarray]:
"""
Parse the provided puzzle input into the list of numbers to draw & the bingo boards to play.
The first line of the input is assumed to be a comma separated list of... | [
"sco1.git@gmail.com"
] | sco1.git@gmail.com |
858931f7dd318b3e2297a84218b535fda1b2e7b9 | 9cc8b489018dc25781b0aaa407a9ddc2a5caa72b | /examples/reservoir/mnist_lsm_izsnn.py | b90bfffa0e0a8aeb076c5bb9a6b69dcdf79757bd | [
"Apache-2.0"
] | permissive | SocratesNFR/EvoDynamic | 2921fba58fec60ff8c3d239be4f84dced2f41d01 | ddd93c999d0120349ab022e47fd370ca58ec5ce7 | refs/heads/master | 2023-03-30T21:31:55.031043 | 2023-03-29T12:15:15 | 2023-03-29T12:15:15 | 183,439,783 | 17 | 5 | Apache-2.0 | 2020-09-07T13:08:13 | 2019-04-25T13:26:45 | Python | UTF-8 | Python | false | false | 7,532 | py | """
Testing features and method for
Liquid State Machine with Izhikevic - Reservoir for MNIST digit classification
Adapted from:
Schaetti, Nils, Michel Salomon, and Raphaël Couturier.
"Echo state networks-based reservoir computing for mnist handwritten digits
recognition." 2016 IEEE Intl conference on computational sc... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
8c240f19b53d28b04446ed328da1afec15d50516 | 54b8fa244ff0dae2018efedcb81e1bb03376e5e2 | /test/functional/wallet_dump.py | 1cf42872e8838d7b47a3288888524359f2ae03d6 | [
"MIT"
] | permissive | afghany/castletmp | e15677a88f9a1878486b6becf93d26c0ee9dbeaf | 9d0daed2a6abaf7d93f9308f5c602db6eeb42c8b | refs/heads/master | 2022-11-27T14:58:47.802781 | 2020-08-08T21:26:12 | 2020-08-08T21:26:12 | 284,464,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,404 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 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 the dumpwallet RPC."""
import os
from test_framework.test_framework import CastleTestFramework
f... | [
"shagolo@gmail.com"
] | shagolo@gmail.com |
72611b8c0ae93f52b1409233086111df91283b96 | 5bce1118b13289308d23510f323c79aa972ddc27 | /tests/irisv2/message/validations/test_getMessage_negative_ValidationMessage.py | a9a6258f5f5fd89e620b824b60ec5c3a36343ad4 | [] | no_license | anupsl/pyApps | 62b64b90723de32684bbabee402220317a4fe817 | 2651d502c366b87449a0c977a9876cc32521c57c | refs/heads/master | 2022-07-03T05:49:12.828630 | 2020-05-10T17:25:26 | 2020-05-10T17:25:26 | 255,157,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,994 | py | import pytest
from src.modules.irisv2.helper.irisHelper import IrisHelper
from src.modules.irisv2.message.createMessage import CreateMessage
from src.modules.irisv2.message.getMessage import GetMessage
from src.utilities.assertion import Assertion
from src.utilities.logger import Logger
from src.modules.irisv2.campaig... | [
"anup@CAP-LAP-450.local"
] | anup@CAP-LAP-450.local |
b191e4dc70e830ee7c8d0b2a454ff89c5940074e | 1b19103c7781c31b4042e5404eea46fa90014a70 | /cenit_simplyrets_1_0_0/models/config.py | ec9640667bb0cb9bcb31a33cb62e09fa15c294f7 | [] | no_license | andhit-r/odoo-integrations | c209797d57320f9e49271967297d3a199bc82ff5 | dee7edc4e9cdcc92e2a8a3e9c34fac94921d32c0 | refs/heads/8.0 | 2021-01-12T05:52:26.101701 | 2016-12-22T03:06:52 | 2016-12-22T03:06:52 | 77,223,257 | 0 | 1 | null | 2016-12-23T12:11:08 | 2016-12-23T12:11:08 | null | UTF-8 | Python | false | false | 2,508 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sanchocuba@gmail.com"
] | sanchocuba@gmail.com |
211707591e766d9f1db1ef08ddd8612d995548dd | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/duplicate_20200619200024.py | 519b8582020f9a0ff3643750c39834aebb11a3db | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | def duplicate(str):
# brute force approach
# is storing the substring and checking how many times they
# occur
# dictionary key is the substring and occurrences is how many
# times its occurred
words ={}
# pointers
left = 0
right = 0
new = []
while right <= len(str) and l... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
7af1efd628fd6a935e3dbd34e17cb28ec58bd38e | a7f420d9d7804d1c3fdda8edda37e095f100ea5f | /smartpms/smartpms/doctype/sub_equipment/test_sub_equipment.py | b416e5e02ecbfe1ca7418456f7ec43a9fb8249fc | [
"MIT"
] | permissive | vignesharumainayagam/smartpms-latest | 84550f5cda0ccf5f2e48e755ce58dd13d26c93e7 | 9a106bdfb9dc039a57e4616e1b0981ba5fcf3ebf | refs/heads/master | 2020-03-18T13:49:54.934629 | 2018-05-25T06:22:11 | 2018-05-25T06:22:11 | 134,812,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Valiant Systems and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestSubEquipment(unittest.TestCase):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
6b167ac214738686ead79fc4dd41b4ecb2dec496 | bf9e8cb06abf554dfbc47f64d3e681e775164ade | /Sistema/Sistema/wsgi.py | 018e374a1b617735fdd543cdaad746693c0b273e | [] | no_license | cicera/Prova_V3 | 27078b84b1bc67ab78d6f4e3e6976066b15a249e | 7c794acc5725537a4f799ebcb1d5ca025ea4870e | refs/heads/master | 2021-01-20T00:41:18.953178 | 2014-11-25T21:58:58 | 2014-11-25T21:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Sistema project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Sistema.settings")
from django.core.w... | [
"you@example.com"
] | you@example.com |
297a04f0dd67143e065e9ab9ecd998bb1f6b35d1 | 5a9182a57ec217c1fb73c7bf24eea704608c9855 | /Section 3/facade.py | d6d7a6fcb900eb6e473b9c341a54a93bb26f2add | [
"MIT"
] | permissive | PacktPublishing/Python-Design-Patterns | e1323624d38b7caeeedd7b08c5825820b065be55 | 3d4e45e27b6cb03d14a44c835b5fa5dd104d1d37 | refs/heads/master | 2023-02-08T13:49:57.767809 | 2023-01-30T08:09:16 | 2023-01-30T08:09:16 | 118,449,393 | 20 | 11 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | class Engine:
def __init__(self):
# how much the motor is spinning in revs per minute
self.spin = 0
def start(self, spin):
self.spin = min(spin, 3000)
class StarterMotor:
def __init__(self):
# how much the starter motor is spinning in revs per minute
... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
24ed9b8e1aa20a19e89f3cc895db2bae4a8b62e6 | 0e753849f239cb5209dd5d166805e318b99caca9 | /test_django/server_inventory/migrations/0006_auto_20200414_1535.py | 8033d9e47ed3bed740f0889edf4820dafb9839b8 | [] | no_license | pengfwan0317/dashboard | 285106423f5b55f427220f1536a0dc60bd119327 | baa83fce82d6b34ee201e01410d5f8ba93360be4 | refs/heads/master | 2022-05-26T01:11:07.796486 | 2020-04-30T09:23:30 | 2020-04-30T09:23:30 | 260,146,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.1.8 on 2020-04-14 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('server_inventory', '0005_auto_20200328_1225'),
]
operations = [
migrations.AlterField(
model_name='blade',
name='bla... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c6bff4391f835579a863ce5c513ac6ca35c3baf2 | 2f9eddc071b87698e27a3fd5c6066a0db99f6f92 | /string/_group_anagrams.py | 292a0f2b1fb654d8d68fd52a291ff781b3095a08 | [] | no_license | Lancher/coding-challenge | d8c5ec528ef802fef9817e64be94fc246d95e84f | 4c8f833a6e3375c6cbb31ff487ad766c53a74755 | refs/heads/master | 2022-01-20T03:19:11.452412 | 2022-01-10T05:23:47 | 2022-01-10T05:23:47 | 137,972,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # LEETCODE@ 49. Group Anagrams
#
# --END--
def group_anagrams(strs):
d = {}
for s in strs:
k = ''.join(sorted(s))
if k not in d:
d[k] = []
d[k].append(s)
return d.values()
| [
"steve.liushihao@gmail.com"
] | steve.liushihao@gmail.com |
6fd4d12dbe7fe71affd22997f08996bd8b525450 | 0f36b98f5d9ba5464162db7a27aaa21e485f0395 | /MPSI/TP3_C5/3_Plateforme/annexes/a_mettre_sur_le_ réseau/Simulation/script_transfert_plateforme.py | 83d98dc893780cae78fc0df6351d65611cf9b007 | [] | no_license | emiliendurif/TP_sujets | b0fb0cd6fa9257b62c6ca557797cbd51427e49dc | 911b8fc7eaed7b71738d7b1bd267280560767bbc | refs/heads/master | 2018-11-16T23:37:44.781993 | 2018-09-13T14:13:08 | 2018-09-13T14:13:08 | 104,331,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | from os import chdir
import time
#---------------------------------------------------------------------
#A RENSEIGNER
chemin= "G:/CPGE PTSI/TP2014/TP11 ameliorer les perf cin"
#entrer ci-dessus le chemin vers le répertoire où sont stockés vos fichiers : attention aux / ou \
# exemple : chemin= "G:/travail/SII... | [
"emilien.durif@gmail.com"
] | emilien.durif@gmail.com |
b983931f02d3a9c85267619e06edcb986882fdcb | 7e2529fec680006e01d3688bb33115e9a97ee1ac | /epicCode2015/perfectHiring/main.py | 3d054a2d3c6b75189bdfcf342da70010803cc287 | [] | no_license | JamesWo/Algorithms | d3c6155e655e40704d42084b7d2236eb01ccb91c | e4a13f06b3902f23389e89f00832886a495ced42 | refs/heads/master | 2021-01-17T06:09:35.968583 | 2016-08-03T17:05:54 | 2016-08-03T17:05:54 | 36,084,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #https://www.hackerrank.com/contests/epiccode/challenges/perfect-hiring
# Enter your code here. Read input from STDIN. Print output to STDOUT
n, p, x = map(int, raw_input().split(" "))
scores = map(int, raw_input().split(" "))
for i in range(len(scores)):
scores[i] = scores[i]*p
p -= x
print scores.index(max(s... | [
"jameswo@berkeley.edu"
] | jameswo@berkeley.edu |
e1ca3ce2fb7da1874222579e42a7777b2f2ef4d0 | 2596850b947399ac368d2ef5c71130129236e9d1 | /instancehistory/models.py | 631ba33b1f829506905f055893492d7c2af26bc7 | [] | no_license | asifpy/django-instancehistory | 9db70edaab33bca83b2050b4c85cd98ffbf0f72d | 17c33924f567a32bb8a677b0432856d324763c2e | refs/heads/master | 2021-01-10T13:58:37.107296 | 2015-11-04T09:15:38 | 2015-11-04T09:15:38 | 45,375,675 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
class InstanceStateHistory(models.Model):
state = models.TextField(blank=True, null=True)
changed_at = models.Dat... | [
"saluasif@gmail.com"
] | saluasif@gmail.com |
e459e64d90d025b2c77a394a1b66e68fadd200c9 | 700f9f9e319ebd26d2557d64ea3827808dfad2f5 | /tests/fixtures/test_footnotes_json/content_01_expected.py | c033bef6a60c02ce98c20d54222a442cf8f80d94 | [
"MIT"
] | permissive | elifesciences/elife-tools | 1b44e660e916a82ef8ff64dd5a6ee5506e517359 | bc16e7dd5d6245077e39f8561b99c9acd510ddf7 | refs/heads/develop | 2023-03-06T08:37:47.424282 | 2023-02-20T20:40:49 | 2023-02-20T20:40:49 | 30,274,058 | 13 | 11 | MIT | 2023-02-20T20:40:50 | 2015-02-04T01:14:41 | Python | UTF-8 | Python | false | false | 659 | py | from collections import OrderedDict
expected = [
{
"id": "fn1-1",
"title": "1.",
"type": "section",
"content": [OrderedDict([("type", "paragraph"), ("text", "First footnote.")])],
},
{
"id": "fn1-2",
"title": "2.",
"type": "section",
"content"... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
c2e92366db2aaa8dd7963fcbca41f8fe775f905f | afa2a8427c87a5db4958b81b81b5d316e6180a95 | /run_docker/app.py | 10d80359fe20e9d32d62a906203624a69374eb20 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | PyThaiNLP/tts-thai | 11bd5e3986e83456267ac1d515f3277523a064b7 | b87e2534f274e78b3ff966ab02526e5cacee7a80 | refs/heads/master | 2023-09-04T05:19:15.617049 | 2023-08-25T14:56:24 | 2023-08-25T14:56:24 | 154,198,281 | 34 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from flask import Flask, request,send_file
from subprocess import Popen, PIPE
from subprocess import check_output
import time
import subprocess
app = Flask(__name__)
@app.route('/tts', methods=["GET"])
def get_tts():
text= request.args.get("text")
print(text)
seconds =... | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
990afe861b44a7b974e04f5e26c6764256fe80c3 | fc678a0a5ede80f593a29ea8f43911236ed1b862 | /406-QueueReconstructionbyHeight.py | c6c43577b13328a028ae1b56e88d2b5f4cefe71a | [] | no_license | dq-code/leetcode | 4be0b1b154f8467aa0c07e08b5e0b6bd93863e62 | 14dcf9029486283b5e4685d95ebfe9979ade03c3 | refs/heads/master | 2020-12-13T15:57:30.171516 | 2017-11-07T17:43:19 | 2017-11-07T17:43:19 | 35,846,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | class Solution(object):
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
if not people: return []
people = sorted(people, key=lambda (h, k): (-h, k))
print people
res = []
for p in people:
... | [
"dengqianwork@gmail.com"
] | dengqianwork@gmail.com |
81a21151c91ae8f0f82c4adf1b522b422ed84b3b | 47d75780751f820ccf6a350caa94a5605be5ac80 | /pySDC/playgrounds/parallel/rma.py | add5845d0c3510d065b1a97c9ec0f1895a43daca | [
"BSD-2-Clause"
] | permissive | ruthschoebel/pySDC | 1e8484efc89eaaf9bb71f350790a4bc08b0f2127 | de2cd523411276083355389d7e7993106cedf93d | refs/heads/master | 2022-06-07T19:50:57.181584 | 2022-05-11T12:50:29 | 2022-05-11T12:50:29 | 146,288,756 | 0 | 1 | BSD-2-Clause | 2021-08-11T12:54:48 | 2018-08-27T11:34:15 | Python | UTF-8 | Python | false | false | 737 | py | from mpi4py import MPI
import numpy as np
import time
def sleep(n):
tmp = np.random.rand(n)
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
t0 = time.perf_counter()
if rank == 0:
sbuf = np.empty(40000000)
win = MPI.Win.Create(sbuf, comm=comm)
win.Lock(0, MPI.LOCK_EXCLUSIVE)
sbuf[0] = 0
sbuf[1... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
8c0ce095298581efbd5c295f98c2de31fa2850cd | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q00__/85_Maximal_Rectangle/Solution.py | 36b30e62246808d62efd03a15fc775ec877dbf65 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | from typing import List
class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
yLen = len(matrix)
if yLen == 0:
return 0
xLen = len(matrix[0])
if xLen == 0:
return 0
mediumX = [ [0] * xLen for _ in range(yLen) ]
mediumY =... | [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
721aaf313f13a951738bdeb76b9729f4506b9566 | de1aa69f6527ff7694cb2a0e5b26835c8ce9f811 | /AutoEncoder.py | 2d1deb00ccc66bb493ba09e403f2ee7ba79c5263 | [] | no_license | MitsuruFujiwara/Multi-Class | d35ea56986a79586286a98cd3737ad1627fae4a3 | 90d1419cf6420cd1c0c736470a15ac607a5f07b2 | refs/heads/master | 2021-01-11T01:28:05.286280 | 2016-11-05T00:59:08 | 2016-11-05T00:59:08 | 70,702,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
from keras.layers import Input, Dense
from keras.models import Model
class AutoEncoderBase(object):
"""
Base class of AutoEncoder
input:
datapath: datapath (csv)
ylabel: label for data Y (string)
input_dim: input dime... | [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
bfb355f4a9f7d39b9c7d88edce961bc3dbc1586e | e61c0cf21739fad3a42d4a7c555744e59d59bb36 | /SWE_Ploblems/D2_1984_중간평균값.py | c4e69180585baac3ec6ac9e13731e5500f4f28ae | [] | no_license | emplam27/Python-Algorithm | 0b6f222baf4d7d13438d71631f9476ec29cb1087 | 8cc9359dd9131629edac28a9ab9cb3a1f5d9c476 | refs/heads/master | 2023-05-04T21:11:10.087666 | 2021-05-23T13:45:38 | 2021-05-24T19:21:22 | 273,455,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | T = int(input())
for t in range(1, T + 1):
arr = list(map(int, input().split()))
arr.sort()
sum_num = 0
for i in arr[1:9]:
sum_num += i
print('#%d' % t, round(sum_num / 8)) | [
"emplam27@gmail.com"
] | emplam27@gmail.com |
a1f3412ca8f20c86562d4b92da145ca6290c1066 | 0dcd87fb8092476013348709067a1984a8220380 | /xitorch/_impls/optimize/linesearch.py | c9abdc551498f188332024f1bf37bf1fd8f25f67 | [
"BSD-3-Clause"
] | permissive | AdityaJ7/xitorch | b036b41cef6a98e3c3f7dc5ae5c2567e126eb65f | fec02e225df17f47854646bc57e607f5df659e1d | refs/heads/master | 2022-12-16T00:37:07.599487 | 2020-09-17T10:24:02 | 2020-09-17T10:24:02 | 296,283,435 | 0 | 0 | BSD-3-Clause | 2020-09-17T09:41:33 | 2020-09-17T09:41:32 | null | UTF-8 | Python | false | false | 2,819 | py | import torch
import numpy as np
"""
This file is from https://github.com/locuslab/deq/blob/master/DEQModel/modules/broyden.py
MIT license: https://github.com/locuslab/deq/blob/master/LICENSE
"""
def _safe_norm(v):
if not torch.isfinite(v).all():
return np.inf
return torch.norm(v)
def scalar_search_ar... | [
"firman.kasim@gmail.com"
] | firman.kasim@gmail.com |
aab73afe0259dd8e3fb29d8dcd1f7053b7ee6e7e | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=91/sched.py | 2cf60bd9e88e872829aa699d97cc327a16eeb519 | [] | 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 | 351 | py | -X FMLP -Q 0 -L 3 134 400
-X FMLP -Q 0 -L 3 91 300
-X FMLP -Q 0 -L 3 84 400
-X FMLP -Q 1 -L 1 64 200
-X FMLP -Q 1 -L 1 53 200
-X FMLP -Q 1 -L 1 48 400
-X FMLP -Q 2 -L 1 44 175
-X FMLP -Q 2 -L 1 43 175
-X FMLP -Q 2 -L 1 42 200
-X FMLP -Q 3 -L 1 41 125
-X FMLP -Q 3 -L 1 30 200
28 150
27 3... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
8b176dca4b03a890fb9c581f63180959b30ba5a0 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/restore-ip-addresses.py | 8540a76a89189799e7701db6a35524a7c3763fac | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 1,018 | py | # Time: O(n^m) = O(3^4)
# Space: O(n * m) = O(3 * 4)
class Solution(object):
# @param s, a string
# @return a list of strings
def restoreIpAddresses(self, s):
result = []
self.restoreIpAddressesRecur(result, s, 0, "", 0)
return result
def restoreIpAddressesRecur(self, result, ... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
136c4b71ccb74ca437707134ed7b3b05f41b639c | b958551bde844d2bfaa4dd7cb670c4ebab4ff17b | /week2/lab/calculate_two_sequence.py | ce7336f0d52f08c6e0ea9e1c0254351f508b0c67 | [] | no_license | aslupin/cpe31-task | d97d3e495634826d6752c1ee82192cc58045a883 | c15ec9be94b899120db39b076a4d1c644f0af24b | refs/heads/master | 2021-01-15T09:18:54.615578 | 2017-11-17T12:53:23 | 2017-11-17T12:53:23 | 99,573,358 | 0 | 2 | null | 2017-09-20T06:25:31 | 2017-08-07T12:00:05 | Python | UTF-8 | Python | false | false | 543 | py | import sys
def seqii(a,n,d):
if n==1 :
print("Your answer is "+str(a))
else:
seqii(a+d,n-1,d*2)
a = input("First order: ")
b = input("Second order: ")
c = input("Third order: ")
ans = input("What order you want to find: ")
# basic task
if(ans == 1):print("First order: %d"%a)
elif(ans ==2):print("Second or... | [
"poon_arsene_lupin@hotmail.com"
] | poon_arsene_lupin@hotmail.com |
a871432d6dc4080d266e195e13caca403165cd87 | 19ddab74600f71700a6b693281d0180d5271f295 | /leetcode_hot/hot160_相交链表.py | 8710377d60fff52082913334365783dfde777098 | [] | no_license | zhulf0804/Coding.Python | 4d55a430da1a8077c81feba65c13ac654aaf094a | 46ab03e23d15ebd5434ef4dd5ae99130000b00a5 | refs/heads/master | 2022-09-14T18:40:59.880941 | 2022-08-20T08:25:51 | 2022-08-20T08:25:51 | 213,113,482 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# class Solution:
# def getIntersectionNode(self, headA: ListNode, headB: ListNode) -> ListNode:
# l1, l2 = 0, 0
# p = headA
# while p:
# l1 += 1
# ... | [
"zhulf0804@gmail.com"
] | zhulf0804@gmail.com |
3dc6ef578b34212116631d81a3ae6b09ed918fb8 | 8a4933df480d0d834fef74d4e980d31c16a0d05c | /ex009.py | fc0d740adb0d8c788ba8372978f73b5178baf5cc | [] | no_license | code-repeat/primeiromundo | e107ae551bf59f53da360ca9d3a1cb756e59756f | 1aaa93c721ad994360ba78a706b00c379b05ec08 | refs/heads/master | 2022-11-23T07:43:12.497109 | 2020-07-28T18:55:30 | 2020-07-28T18:55:30 | 283,300,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | num = int(input('Digite um número: '))
print('='*14)
for i in range(1, 11):
resu = num * i
print("{} X {:2} = {}".format(num, i, resu))
print('='*14)
| [
"coderepeat44@gmail.com"
] | coderepeat44@gmail.com |
41a09ad5131b5e1ebd4eb1c75fad99c6563576b3 | 2f8e9d1449689dce1a08b354b00aad81045e1385 | /models/resnet_v1net.py | ce65555c59b6c336964d5f363bc55a86ca0c5323 | [] | no_license | vijayvee/pytorch-boundaries | 2135aa68c49ce1f0dbc0b53dbf99b3eec0214841 | 0581b290bb3f67aec0b65ecf270d9cdf3928100e | refs/heads/master | 2023-04-22T17:48:35.261772 | 2021-05-06T14:36:11 | 2021-05-06T14:36:11 | 322,734,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | """ResNet models with V1Net frontend."""
import numpy as np
import torch # pylint: disable=import-error
import torch.backends.cudnn as cudnn # pylint: disable=import-error
import torch.nn as nn # pylint: disable=import-error
import torch.nn.functional as F # pylint: disable=import-error
import torchvision.models as... | [
"vijayvee@gmail.com"
] | vijayvee@gmail.com |
01a159a4adbc6126e4d1bb65fe342842341b1a7d | 1925c535d439d2d47e27ace779f08be0b2a75750 | /google/expand_nested_intervals.py | 09f52993d065ce06d94a877715a7ff704dbf6706 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | '''
Given a root interval node with children nodes, expand those nodes in order with non-overlapping intervals
Node:
id: 1
start: 0
end: 100
children: [2]
Node:
id: 2
start: 25
end: 70
children: []
(1, 0, 25)
(2, 25, 70)
(1, 70, 100)
---------
Node 1: (1, 0, 100, [2, 3])
Node 2: (2,... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
00a32e188555888949e2740545753e6c7f052ba0 | 9846b8c5d22650cc2cf82c1f1659a5f81f019e35 | /Automation/dictionary-comprehension.py | 5a5fbd56c013dbaa82d269c66bdfc22448fe2d60 | [] | no_license | deesaw/PythonD-01 | 8f30f8301551b75fd79e70cff072b1a977913ffa | a98bcea95942a1ed259c1567a9056fbd199c0336 | refs/heads/master | 2023-03-10T14:50:33.226135 | 2021-03-02T13:47:23 | 2021-03-02T13:47:23 | 343,787,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #dictionary comprehension
j={x:x*x for x in range(1,100,3)}
#how to read a config file into a dictionary
k=dict([line.rstrip().split('#') for line in open('c:/users/tring/desktop/words.txt')]) | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
7c4f87ad00237e9f20cd65101601c94bd2a26196 | 8b9b46bef13f2a562ce976f791ef30472b0e4652 | /2020-04/4-17/55跳跃游戏/55.py | 12425febf7b29a884139dccea3a92f65b0776ec5 | [] | 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 | 487 | py | # -*- coding: utf-8 -*-
# Editor : Pycharm
# File : 55.py
# Author : ZhenyuMa
# Created : 2020/4/17 11:46 下午
# Description : 遍历 看最大长度会不会比遍历的索引小
from typing import List
class Solution:
def canJump(self, nums: List[int]) -> bool:
max_step = 0
for i in range(len(nums)):... | [
"763366463@qq.com"
] | 763366463@qq.com |
b908d53b3c6b4e999f3d3686998e13f59bd34033 | dc1535cc07bba047e88532e40d28f4e3edda8e2e | /Week 12/Catalan.py | de7110c507cb6d9229a27dc02f05b27f49c6048f | [] | no_license | ongsuwannoo/PSIT-61 | e875c78fadb27f7ec06eaca88c1607510d11ad90 | 9f7f0b34f61615650b656db7a05a422bed422cac | refs/heads/master | 2022-01-08T04:21:26.079326 | 2019-01-25T12:22:48 | 2019-01-25T12:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | """Catalan"""
def catalan(num):
"""Find Value"""
if num == 1:
return 1
else:
return (4*(num-1)+2)/(num+1)*catalan(num-1)
print(int(catalan(int(input()))))
| [
"61070020@kmitl.ac.th"
] | 61070020@kmitl.ac.th |
f8c77799bde875a1f504590e859f03385824e7f4 | 4b29b5b5d3fb953b49c114a9f2617be47f567fac | /src/router/tests/models.py | fd6b3e397323ea2f1138f1f3d500a0ef8e65cb11 | [
"BSD-3-Clause"
] | permissive | nicpottier/ugandasms | cbd4dc442189b67b1f94f6dba230fc0d2a266f80 | 2370187bedabf172bc210efe1bef4de3e69b1c86 | refs/heads/master | 2021-01-18T11:01:52.240336 | 2010-05-23T16:14:01 | 2010-05-23T16:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | from picoparse import any_token
from picoparse import fail
from picoparse import one_of
from picoparse import optional
from picoparse import remaining
from picoparse.text import whitespace
from picoparse.text import caseless_string
from ..models import Incoming
from ..parser import FormatError
class Echo(Incoming):
... | [
"mborch@gmail.com"
] | mborch@gmail.com |
d31bf290b022baaff3f62febd8e0c96fb76fa23a | 88247eac44f89bffe0d0f9a57ce74d9dd3c7ce68 | /nsot/migrations/0025_value_site.py | 913eb0ab5f33ccce82f588700f64f9cae634b6b1 | [
"Apache-2.0"
] | permissive | fooelisa/nsot | e77f2de9715fcfeda3a4a6cc55bcc80c663b3d14 | e6a7ce5794a131075fb7c2a32e1479073f5ab038 | refs/heads/master | 2021-01-11T03:59:11.676463 | 2016-10-13T18:34:02 | 2016-10-13T18:34:02 | 71,264,019 | 2 | 0 | null | 2016-10-18T15:41:03 | 2016-10-18T15:41:02 | null | UTF-8 | Python | false | false | 539 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nsot', '0024_network_state'),
]
operations = [
migrations.AddField(
model_name=... | [
"jathan@gmail.com"
] | jathan@gmail.com |
452f929e3b5e51536ed8be05af7aa8771463a653 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/227/58295/submittedfiles/mediaLista.py | aff489cd4a3b3a71a09bdb4077e74e960ae0adc1 | [] | 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 | 335 | py | # -*- coding: utf-8 -*-
n=int(input('Digite a quantidade de elementos da lista:'))
a=[]
soma=0
for i in range (1,n+1,1):
valor=float(input('Digite os valores da lista:'))
a.append(valor)
for j in range (0,len(a),1):
soma=soma+a[j]
media=soma/len(a)
print('%.2f'%a[0])
print('%.2f'%a[len(a)-1])
print('%.2f'%m... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
30e479b4cd5f00198790b9c9d779725b204df2f8 | ec51fb214b75d7e088bbe02391e20956cd87ab14 | /tests/test_natural_join.py | 62479738f8a332927dceffa0530ee753e739e0d0 | [] | no_license | sebastianBIanalytics/data_algebra | d2e5238fe0f7cb9fb61c81ca5dd1fe517dff44bc | 148b635dfd0b0b854fd76736dd1a998b549baf72 | refs/heads/master | 2021-01-01T08:11:41.606154 | 2020-02-06T20:43:56 | 2020-02-06T20:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import numpy
import data_algebra
import data_algebra.test_util
import data_algebra.util
from data_algebra.data_ops import *
import data_algebra.SQLite
import data_algebra.yaml
import sqlite3
def test_natural_join_columns():
data_algebra.yaml.fix_ordered_dict_yaml_rep()
db_model = data_algebra.SQLite.SQLiteMo... | [
"jmount@win-vector.com"
] | jmount@win-vector.com |
97162a74456309138b1d5e037383662e8a2d7636 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/sldcar001/question3.py | 09fadcac5c5bd575bc43dd29e5d51585c7b765b4 | [] | 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 | 394 | py | def encrypter(ip,op,n):
if n<len(ip):
sw=ord(ip[n])
a=sw+1
if sw==122:
a=97
elif sw<96:
a=sw
pop=chr(a)
return encrypter(ip,op+pop,n+1)
else:
return op
def main():
ip=input("Enter a message:\n")
op=''
n=0
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
4549c5baed92e2f945e8f12a083dc7478001232b | 91fe8f479fa921fa84111d19222a5c6aa6eff030 | /basis/built-in-lib/hmac-test.py | c136c62440a70f88d7be98a8336f1dbbb47003f3 | [] | no_license | romanticair/python | 2055c9cdaa46894c9788d5797643283786ed46dd | 6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141 | refs/heads/master | 2022-11-03T17:17:17.608786 | 2019-07-05T07:07:29 | 2019-07-05T07:07:29 | 195,356,190 | 0 | 1 | null | 2022-10-14T20:51:14 | 2019-07-05T07:00:33 | Python | UTF-8 | Python | false | false | 2,298 | py | """
为了防止黑客通过彩虹表根据哈希值反推原始口令,在计算哈希的时候,不能仅针对原始输入计算,
需要增加一个 salt 来使得相同的输入也能得到不同的哈希,这样,大大增加了黑客破解的难度。
如果salt是我们自己随机生成的,通常我们计算MD5时采用md5(message + salt)。但实际上,
把salt看做一个“口令”,加salt的哈希就是:计算一段message的哈希时,根据不通口令计算
出不同的哈希。要验证哈希值,必须同时提供正确的口令。
这实际上就是Hmac算法:Keyed-Hashing for Message Authentication。它通过一个标准算法,
在计算哈希的过程中,把key混入计算过程中。和我们... | [
"1024519570@qq.com"
] | 1024519570@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.