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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
490db4e8d1d756d73832a1634cf6a28177fd6c25 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/optimized_2040.py | 8a363172a1b50d5cfa0a341f9e7897d38cb2722f | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,580 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
1377caae35112646cf15378fcb1642bc351c221b | d82b879f41e906589a0a6ad5a6a09e0a0032aa3f | /ObservationScripts/observe_source_rtcor.py | bf3940f7e3082d056e6821d91546c3ffa169c64c | [] | no_license | SETIatHCRO/ATA-Utils | 66718eed669882792148fe0b7a2f977cd0f6ac2e | 59f4d21b086effaf41d5e11e338ce602c803cfd0 | refs/heads/master | 2023-08-16T20:41:44.233507 | 2023-08-10T20:39:13 | 2023-08-10T20:39:13 | 137,617,987 | 5 | 5 | null | 2023-08-10T20:39:14 | 2018-06-17T00:07:05 | Jupyter Notebook | UTF-8 | Python | false | false | 1,840 | py | #!/home/obsuser/miniconda3/envs/ATAobs/bin/python
import atexit
from ATATools import ata_control, logger_defaults
from SNAPobs import snap_dada, snap_if
import numpy as np
import os,sys
import time
import argparse
import logging
import os
def main():
logger = logger_defaults.getProgramLogger("observe",
... | [
"wael.a.farah@gmail.com"
] | wael.a.farah@gmail.com |
68503476a63039e16c0973604a668ad6bdf2eec2 | 8d6f9a3d65a189d99eff10e30cfabb0b761b635f | /scripts/support_hypercube_measures.py | d9bcd6c5528f1e6e38aab8773754772429a2826d | [
"BSD-3-Clause"
] | permissive | arita37/mystic | db2ebbed139b163e3e5df49c2325b3de35dd8cd0 | 3dcdd4627eb759672091859e8334be075bfd25a5 | refs/heads/master | 2021-01-22T20:19:22.569893 | 2016-08-20T15:52:46 | 2016-08-20T15:52:46 | 66,545,670 | 1 | 0 | null | 2016-08-25T09:42:31 | 2016-08-25T09:42:31 | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/mystic/LICENSE
from mystic.support import h... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
8e645a2eefb43001aacb88d512c374af92c2427d | df690ac0484ff04cb63f71f528a9d0a0e557d6a3 | /.history/ws_20210608101643.py | 7b6d31a7d4f3a30447282a1e853cf3f05e3824be | [] | no_license | khanhdk0000/Mqtt-Web-Socket | 437777c740c68d4197353e334f6fe6a629094afd | 4f9e49a3817baa9ebc4e4f8dcffc21b6ea9d0134 | refs/heads/master | 2023-06-20T17:08:09.447381 | 2021-06-08T17:42:37 | 2021-06-08T17:42:37 | 375,090,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | from flask import Flask
from flask_sock import Sock
import time
app = Flask(__name__)
sock = Sock(app)
import threading
BROKER = 'io.adafruit.com'
USER = 'khanhdk0000'
PASSWORD = 'aio_FfID10QWNVSKUC2j15nLtOSeckin'
TOPIC = 'khanhdk0000/feeds/'
LIGHT = 'light'
SOUND = 'sound'
TEMP = 'temp'
LCD = 'iot_led'
BUZZER = ... | [
"khanhtran28092000@gmail.com"
] | khanhtran28092000@gmail.com |
58020d50d29701fd850fcf8ccf83bbf252227aba | 4ee2ed5479e34c11e78b98ec2428c623c0075772 | /bots/lrs/posedziai.py | 96ffa01f3441c06324d71503b6e240f289883fec | [] | no_license | sirex/databot-bots | 7c46ed7a7e5a4b7b5d7d7ab9cc7f17b1301e3e0b | c2bc4d4d5a3cfffe35eabf0660790f5e9b81ce41 | refs/heads/master | 2020-04-07T02:48:37.782069 | 2018-06-02T12:56:40 | 2018-06-02T12:56:40 | 44,805,410 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | #!/usr/bin/env python3
import yaml
import botlib
from databot import define, task
def append_last_session(task):
last = max(task.source.rows(), default=None, key=lambda x: x.value['pradžia'])
if last:
task.target.append(last.key, last.value)
with open('settings.yml') as f:
settings = yaml.load... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
6be72f888e1a08d62fc7d499a22b2a5afc8712d0 | 958c4e0cc47caf325bc0dfb54ad37d5e90ceb28b | /src/s17/taskmanager/interfaces.py | d2127491be017cbfa88368380140c538b55f26e2 | [] | no_license | simplesconsultoria/s17.taskmanager | 75cf0acfa9b1525f6b2849270edf0b780cbb1483 | 9ff31d4bf7cce4708956397f616900ca4d83d3ed | refs/heads/master | 2021-01-25T07:28:28.857133 | 2015-07-29T18:09:55 | 2015-07-29T18:09:55 | 5,602,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | # -*- coding: utf-8 -*-
from plone.app.textfield import RichText
from plone.directives import form
from s17.taskmanager import MessageFactory as _
from zope import schema
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary
priorities = SimpleVocabulary([
SimpleTerm(val... | [
"hector.velarde@gmail.com"
] | hector.velarde@gmail.com |
f4a15652109abf926330829d5155be89a22ea2db | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/purview/azure-purview-scanning/tests/test_smoke.py | cccf9d71ecc17eda6ab343d13d4a1c3bbbe34273 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 830 | 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.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
9d7ea0b3a6493a8f7d5db68f4107169567274d8f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03463/s773991951.py | 929d4cbd0719590df2e6984427d7f287fe852c8f | [] | 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 | 306 | py | N,A,B = map(int,input().split())
#print(A,B)
for i in range(N):
if A+1<B:
A +=1
else:
A += -1
if A <1:
ans="Borys"
break
#print(i,A,B)
if A<B-1:
B += -1
else:
B += 1
if B >N:
ans="Alice"
break
#print(i,A,B)
else:
ans="Draw"
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
842ca3cbd506420ec21602475bff1e1984496e9f | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part010511.py | 937406fd5f610cca55b5bb4a2d6afec74f258fa1 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
fa17fafd30775f5c3d2aa23f4002d6aa9268cf9b | e06c7fd594c52425ab7fc5498c07ae14daf9578b | /api/common/encryption_service.py | af34eb1615955ea54f079a26447530fecaa2fb9d | [] | no_license | rwheeler-7864/simplenight-api | bc35560eca1e1c25092a1bcdc4af1633367413b8 | 602646911a0155df5b70991d1445c10cee18cd33 | refs/heads/master | 2023-03-12T03:10:51.516499 | 2021-02-25T20:40:44 | 2021-02-25T20:40:44 | 342,370,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | import os
import secrets
from base64 import b64encode, b64decode
from typing import Optional
# noinspection PyPackageRequirements
from Crypto.Cipher import AES
# noinspection PyPackageRequirements
from Crypto.Util import Padding
from django.core.exceptions import ImproperlyConfigured
try:
from api.models.models i... | [
"randmwheeler@gmail.com"
] | randmwheeler@gmail.com |
40b67939e03b48cfcbe364e11cb77e642e791485 | 747135fab93554fac11d6c2184470d4bf2701d31 | /style_guide/source/conf.py | cc3774d7c44179c0bf106e4354b8ccf3ad181cc7 | [
"CC-BY-3.0"
] | permissive | dhutty/chef-docs | 5985249fce8a8b0fbaaf256830fbdf43a5ec9d6e | 661c72f0e0405b4cec223bc0def67cd598035070 | refs/heads/master | 2021-01-18T00:11:51.224491 | 2014-05-16T21:36:35 | 2014-05-16T21:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | # -*- coding: utf-8 -*-
#
# Chef documentation build configuration file, created by
# sphinx-quickstart on Wed Feb 22 13:50:49 2012.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show th... | [
"jamescott@opscode.com"
] | jamescott@opscode.com |
8a7bac217e3dfa9c44fa5647150501862b97aa9b | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_sp_outer/Jobs/TIPS_Pc/TIPS_Pc_anion_neut_inner2_outer1/TIPS_Pc_anion_neut_inner2_outer1.py | 6fd3f3b888a68c5738ebb4a4af6dfc566150231f | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 6,691 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
c4903fe6cc73ed9888fa791de56a6e121c6445d0 | 37fa222d2ce4b227dfeeae0053b5110c24f0c595 | /17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM4000_R_0-3.py | bce53377e69348a7eb6d837b7dc54ee875322bfe | [] | no_license | colizz/fullRunII_ntuple | 8fffe7893ad80804c25444534b80edf3f1a09f97 | ec8c014e9502f12d060bf8198894f915adcee267 | refs/heads/master | 2020-08-04T07:02:35.210954 | 2019-09-30T00:47:37 | 2019-09-30T00:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M4000_R0-3_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Fall17... | [
"XXX@cern.ch"
] | XXX@cern.ch |
c29e43cc150ebaddaacdafbc5af0227a5f1666e4 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/cloudkms/cryptokeyversions.py | fb554167e913c732d12bab736a12c9d70072871b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,597 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
3c5e0cf2977035d9ba3c53d6d0a367c274d8c0f1 | 9320f83e6006a7879df2fe9f3a16620b66becf65 | /src/n8scripts/n8pushover.py | 956a3a822de251e2166d398117b5f925639a112a | [
"MIT"
] | permissive | n8henrie/n8scripts | e34a8d06252e30044815af401560322278ef23b2 | 7b79b2c4b7c5e6ef23aad4c2181f3b3886cdd7a8 | refs/heads/master | 2021-01-25T11:02:55.251973 | 2019-03-12T20:51:10 | 2019-03-12T20:51:10 | 93,908,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,325 | py | """n8pushover.py
A quick implementation of the Pushover API in Python, using an envvar or the
keyring module (desktop) or Pythonista's keychain module (iOS) to store
credentials.
Usage:
from n8scripts.n8pushover import push
push("It's alive!")
push("This one has a title.", title="My awesome title.")
"""
i... | [
"nate@n8henrie.com"
] | nate@n8henrie.com |
9e5d840e0bcb9bf3ab4aa6ccd3172973d8c3ce34 | 902e0bcd7abd0eafb1daf820f5009e632bfe9141 | /courses/migrations/0001_initial.py | 3d65d04b748eb39bcd4d755cb7a4d05f62aacabd | [] | no_license | ihfazhillah/educa-lms | 1ba4aebcfc7b68b6b80c3cacff0eeabb3024344b | e0c4ef46a147cc187297291db5adf78cc7da617d | refs/heads/master | 2020-03-28T09:38:34.998747 | 2018-09-22T16:03:49 | 2018-09-22T16:03:49 | 148,048,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"mihfazhillah@gmail.com"
] | mihfazhillah@gmail.com |
5f9bd9bb49499a97c6bc43ca09d6cbf41a34a357 | 68c49c51d04aa8c87e673784659088c1a5e4aeea | /database_reader/physionet_databases/capslpdb.py | 736f9190ce6652beb0c6940ec11e2e8869438217 | [
"MIT"
] | permissive | wenh06/database_reader | 9b1773c824ab62213e27f9e8c4144c098a13e410 | 784ea882e78791979ab020da403b97ea50b9d075 | refs/heads/master | 2023-06-05T09:32:48.164050 | 2021-06-24T09:45:33 | 2021-06-24T09:45:33 | 370,729,791 | 0 | 0 | MIT | 2021-05-25T14:52:58 | 2021-05-25T14:52:57 | null | UTF-8 | Python | false | false | 4,410 | py | # -*- coding: utf-8 -*-
"""
"""
import os
from datetime import datetime
from typing import Union, Optional, Any, List, NoReturn
from numbers import Real
import wfdb
import numpy as np
np.set_printoptions(precision=5, suppress=True)
import pandas as pd
from ..utils.common import (
ArrayLike,
get_record_list_re... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
389460e272923131109704dd69233dfb92abaa37 | a4a01e251b194f6d3c6654a2947a33fec2c03e80 | /PythonWeb/Flask/1809Flask/Flaskday02/flaskdemo02/run.py | dbf71b23902098d9f244460512522d83331dd8f8 | [] | no_license | demo112/1809 | 033019043e2e95ebc637b40eaf11c76bfd089626 | e22972229e5e7831dce2aae0b53ce19a6e3bb106 | refs/heads/master | 2020-04-09T07:10:49.906231 | 2019-02-27T13:08:45 | 2019-02-27T13:08:45 | 160,143,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/01-selftemp")
def selftemp():
html = "<!doctype html>"
html += "<html>"
html += "<head>"
html += "<title>"
html += "我自己的模版"
html += "</title>"
html += "</head>"
html += "<body>"
html += "<... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
aa7534f4669baf9ee235e5cc5d793cae77d48129 | 4a4352800a7d9f26c4f2cd6c7e00a54e4fdc6517 | /Filters/BaseFilter.py | d5566bee291fef7664eb1e5b088c7e1c8561d69e | [] | no_license | nag92/ExoServer | 914e9b8b03a0c29211d1c1b6f22113cbf8924ad0 | d9006db8cf821fe0c552df13958797456d7ff0e2 | refs/heads/master | 2023-01-23T17:59:16.080404 | 2020-10-29T17:24:07 | 2020-10-29T17:24:07 | 261,233,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import abc
from Sensors import Sensor
class BaseFilter(object):
"""
base class for the filters
"""
def __init__(self, sensor):
"""
:param sensor: sensor
:type sensor: Sensor.Sensor
"""
self.sensor = sensor
self.values = []
@abc.abstractmethod
... | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
0cbbf3590949fb9230b951dfa529e4a582a7587d | 176839e6f94e593fb957f0af1bd5682c95e44f8f | /exoplanet/theano_ops/celerite/factor_rev.py | 552d24cd4b7691d849b6b32a0ecd977c8a84b86e | [
"MIT"
] | permissive | Junjun1guo/exoplanet | 8a0a9d4deb351744a78db54801c4a9d9834e7f7a | 5df07b16cf7f8770f02fa53598ae3961021cfd0f | refs/heads/master | 2020-05-17T17:51:14.836055 | 2019-04-26T20:10:28 | 2019-04-26T20:10:28 | 183,867,012 | 2 | 0 | null | 2019-04-28T06:38:30 | 2019-04-28T06:38:30 | null | UTF-8 | Python | false | false | 381 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
__all__ = ["FactorRevOp"]
from .base_op import CeleriteBaseOp
class FactorRevOp(CeleriteBaseOp):
func_file = "./factor_rev.cc"
func_name = "APPLY_SPECIFIC(factor_rev)"
num_input = 7
output_ndim = (1, 2, 2, 2)
def __init__... | [
"foreman.mackey@gmail.com"
] | foreman.mackey@gmail.com |
c00a910073398520cb97fc2609c3d5f4d8934baa | 3af8dfb5bc0a759f7237f10504dd28dfc2489d7e | /api/allennlp_demo/roberta_sentiment_analysis/test_api.py | 680638c082a6da1b492e39d0f2cf0f1dd9e3e925 | [
"Apache-2.0"
] | permissive | allenai/allennlp-demo | a710fca880b8de9d829790b7161fe8465deb15cc | afa862f1b473331f1157c1ee158ea202425fb10d | refs/heads/main | 2023-08-31T22:20:03.464642 | 2023-01-20T20:01:13 | 2023-01-20T20:01:13 | 136,056,285 | 200 | 93 | Apache-2.0 | 2023-01-16T17:14:38 | 2018-06-04T16:53:08 | TypeScript | UTF-8 | Python | false | false | 373 | py | from allennlp_demo.common.testing import ModelEndpointTestCase
from allennlp_demo.roberta_sentiment_analysis.api import RobertaSentimentAnalysisModelEndpoint
class TestRobertaSentimentAnalysisModelEndpoint(ModelEndpointTestCase):
endpoint = RobertaSentimentAnalysisModelEndpoint()
predict_input = {"sentence": ... | [
"noreply@github.com"
] | allenai.noreply@github.com |
b8d5dad94992b55574b60c2e52fc6f49923f7f1c | a458e773d46ad88725f07bdf9ac07d9608ddfb47 | /pages/views.py | a9240ed5511ee80c9ad873e5611146db5a21ccaa | [] | no_license | SonerArslan2019/egitim_sitesi | 82fd8dbe2bad593094a9caf85f06c7f86c96b064 | 8f5cabd5190334f47ef5beda10f8513be6ff9672 | refs/heads/master | 2023-03-15T09:18:38.771211 | 2021-03-15T18:13:46 | 2021-03-15T18:13:46 | 346,806,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from django.shortcuts import render
from django.views.generic import TemplateView
from django.views.generic.edit import FormView
from courses.models import Course
from . forms import ContactForm
from django.urls import reverse_lazy
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib.auth.m... | [
"soner@arslanyapi.com.tr"
] | soner@arslanyapi.com.tr |
1198b591a26c7bda00f1a072d5be35b687aba6e0 | 5a3547772b61f7d1b3a81f76dd1397eb92c68e7b | /slbo/envs/mujoco/ant_task_env.py | e819bb593f60567ec02d372d834e8d5847400f92 | [
"MIT"
] | permissive | suen049/AdMRL | 483440f0ded14e471d879b300da9afbab68fbe66 | 50a22d4d480e99125cc91cc65dfcc0df4a883ac6 | refs/heads/master | 2023-03-12T23:15:05.154003 | 2021-03-06T15:31:21 | 2021-03-06T15:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | import math
import numpy as np
from rllab.envs.mujoco import ant_task_env
from rllab.envs.base import Step
from slbo.envs import BaseModelBasedEnv
AntTaskConfig = ant_task_env.AntTaskConfig
class AntTaskEnv(ant_task_env.AntTaskEnv, BaseModelBasedEnv):
def get_current_obs(self):
return np.concatenate([
... | [
"linzichuan12@163.com"
] | linzichuan12@163.com |
96ed4243504b965ffe7bb44a77193977ffd463fd | 96cb01cdbef51a9da25e1de68c7318572b69510f | /test/test_coupling.py | 2e2904e528f87e46a22a7a510cc250e258921084 | [] | no_license | pobot-pybot/pybot-youpi2 | e269efffb98083fc51b6d947dc8278bf644d4092 | a93a9acf40814583ba6816d265cc18a1bb61a72f | refs/heads/master | 2021-01-18T19:45:55.018721 | 2016-10-13T21:24:30 | 2016-10-13T21:24:30 | 69,095,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | import unittest
from pybot.youpi2.model import YoupiArm
class JointToMotorTestCase(unittest.TestCase):
def test_01(self):
angles = {
YoupiArm.MOTOR_BASE: 10
}
angles_orig = angles.copy()
YoupiArm.joint_to_motor(angles)
self.assertDictEqual(angles, angles_orig... | [
"eric@pobot.org"
] | eric@pobot.org |
7fd91a257c9d2ed17a8aef21c95ccf7cf487178c | 62b2a1a9cea1662a86fa410fe91448ad6805d7b5 | /variability/plot_agn_tau_distribution.py | 5fd1d86f1494be77ada773b1f7a2dbe325fecb92 | [] | no_license | danielsf/CatSimMaintenance | f15dd74486f48c740bce2f4e3b6fdb60ab5d8c6f | 6f17f96b189aa0f860d316ffbe58483926123f4c | refs/heads/master | 2018-07-18T22:12:23.005153 | 2018-06-01T21:47:39 | 2018-06-01T21:47:39 | 105,593,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
def make_histogram(xx_in, dmag, cut_off, min_val = None, cumulative=True):
xx = xx_in[np.where(xx_in<=cut_off+dmag)]
#print xx.min(),xx.max()
if min_val is None:
min_val=xx.min()-dmag
i_xx = np.round((xx... | [
"scott.f.daniel@gmail.com"
] | scott.f.daniel@gmail.com |
554de90b84acb3be0a4506092e5f1e2af577bec8 | c13261f07803218ff29238b3a455650316506e05 | /light8/configconvert.py | d5b0f0a32452f3cf3ccb555ca4ae4e08d33d842f | [] | no_license | shakaran/light9 | 3456427f718f43b829d34794bafc22d74305d30a | 91c86b030475e65f92c90adb0a0920f1fb9996eb | refs/heads/master | 2021-01-20T23:37:04.881942 | 2012-06-13T05:35:04 | 2012-06-13T05:35:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py |
from Config import subs
import Patch
Patch.reload_data(0)
def print_tsv(filename,allchans,subs):
f=open(filename,"w")
print >>f,"\t"+"\t".join(allchans)
for name,levels in subs.items():
normd={}
# nrmalize the names in the sub
for k,v in levels.items():
normd[Patch.r... | [
"none"
] | none |
194d96f6626df79c9dd21202fcc29fe2b79e3d3b | f66e6a3bc5f6eae570afa2013325d462f530cff6 | /core/seller/migrations/0054_auto_20210514_1705.py | d8258c0702eeeea09cfae4fd507edfce45254a9f | [] | no_license | Mahe07/vyavaharback | 3cb30e227d9e0c25c86ba4e20f9cafce054c4a2a | 4e35cac3b643197a78e420d34ea3f45cce368e46 | refs/heads/main | 2023-08-10T17:21:56.538518 | 2021-09-17T03:53:44 | 2021-09-17T03:53:44 | 407,386,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # Generated by Django 3.1.4 on 2021-05-14 11:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('seller', '0053_auto_20210503_1805'),
]
operations = [
migrations.AlterField(
model_name='seller',
name='seller_statu... | [
"noreply@github.com"
] | Mahe07.noreply@github.com |
128cc0d6f08d2665af3af8ff3948a1e1ab1f15ef | 897802abf4ee5c7267de3eb5e321cc931898e2f6 | /python/python/eric/part2_project/project01_game_aliens/bullet.py | 94d931467ed36bd4cf2e943964aa9f74215ee800 | [] | no_license | aojie654/codes_store | 0527c7a7729b472e8fd2fd67af462cf857970633 | ed71b6266b2d2b5ddefadcb958f17695fb9db6cf | refs/heads/master | 2021-07-15T17:04:33.591673 | 2021-07-03T14:42:30 | 2021-07-03T14:42:30 | 132,343,733 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # coding=utf-8
# @File : bullet
# @Author: aojie654
# @Date : 18-6-10 下午4:15
# @Desc : Bullet
import pygame as pg
from pygame.sprite import Sprite
class Bullet(Sprite):
"""A class to manage bullet"""
def __init__(self, ai_settings, screen, ship):
"""Create a bullet object at position where the shi... | [
"aojie654@live.cn"
] | aojie654@live.cn |
15705a89c31afbb086c3f166ae551352f6725885 | 34652a47355a8dbe9200db229a1bbc62619de364 | /Algorithms/Recursion/tst01.py | c5a4b031f4ff2b599d55cd84ccb09657de44c1a8 | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Created by Bogdan Trif on 30-06-2018 , 3:16 PM.
import turtle
myTurtle = turtle.Turtle()
myWin = turtle.Screen()
myTurtle.speed(10)
def drawTriangle( points , color , myTurtle ):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(points[0][0],points[0][1]) # ( -100, -50 )
myTurtle.down... | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
81707d27a4d72edd3e5bcd7db29b753d65389996 | 36bc2f2b52201ccc7ca11035fd0c66a8fe64d3f5 | /lint_domain_packages/interfaces.py | 1467db18f4b330fd2f46f364a420ddc7e4cea1d9 | [
"MIT"
] | permissive | imankulov/lint-domain-packages | fc46ba36ca739e31e152be79d3f609abd0af074a | cc6b7a33bdb0a5e022feee9d22d7f93c9f069680 | refs/heads/main | 2023-05-14T18:42:11.530567 | 2021-05-27T08:55:01 | 2021-05-27T08:55:55 | 370,928,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,796 | py | import abc
from dataclasses import dataclass
from grimp.application.ports.graph import AbstractImportGraph
@dataclass
class LinterSettings:
# Root package that we analyzes
root: str
# List of public domain packages.
#
# All modules of public domain packages are open to import. Usually, those a... | [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
7d9ceb951227980f54371141d23133314a006bc8 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Zoho/CRM/GenerateAuthToken.py | 6564e3744ec9a54d1fc5d48c38797f2b50e0244d | [
"Apache-2.0",
"MIT"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# GenerateAuthToken
# Generates an authentication token.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
abb34c25cbdcc7ced69a926540585e6977ff820e | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /000880DataCampPython01Intro/dataCamp000880ch01p02ex01.py | effc6ed2c8aeb882398c095f23b7b7584daaeca4 | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | '''
# Example, do not modify!
print(5 / 8)
# Print the sum of 7 and 10
'''
# Example, do not modify!
print(5 / 8)
# Print the sum of 7 and 10
print(7 + 10)
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
47ce9e9f24be7f2de7cb55d7edf10d2ce08b6d6f | 7a77bade054683f7c36c59c6e0640958960efeea | /Komodo-Edit-8/lib/mozilla/python/komodo/Crypto/SelfTest/Random/Fortuna/__init__.py | e7e3adef44e6dd6018da853dc806e39887326fd2 | [] | no_license | amaurial/mininet | 4e8fd62ec1f0547d21fcbb60a3fde64d8855920b | d2761c075130c0f447a69bbb40b0e3fddc052eb6 | refs/heads/master | 2016-09-06T12:03:47.808851 | 2013-07-16T10:55:01 | 2013-07-16T10:55:01 | 11,447,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | # -*- coding: utf-8 -*-
#
# SelfTest/Random/Fortuna/__init__.py: Self-test for Fortuna modules
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that de... | [
"amaurial@uol.com.br"
] | amaurial@uol.com.br |
b320db840727aa5ecd16ba22b569f203a7c222e4 | 4201bc1c12ef6edaaf8a201ef3a1cc279889b768 | /tests/recogners/visual/test_plot.py | cc6dd289324cc59a8f6299c1de6d953fb7899611 | [
"MIT"
] | permissive | BachiLi/recogners | 30358df0d9b866ef8c298ff804689709a9e16638 | 945eb6119182d3b3f2d77c189b5b1c4f5306a9e3 | refs/heads/master | 2020-09-29T01:29:37.914280 | 2019-09-19T18:40:21 | 2019-09-19T18:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import pytest
import torch
from recogners.visual import plot
def test_show_tensor():
t = torch.zeros(28, 28)
plot.show_tensor(t)
| [
"gth.rosa@uol.com.br"
] | gth.rosa@uol.com.br |
e1a924aec30e81ab56964e1ad7f9bb4247ddb7ab | 4522fc52bc43654aadd30421a75bae00a09044f0 | /share/haley/validations.py | 44287c17e5198ac05fa0bbd79a2cdfc4130a1a00 | [] | no_license | qesoalpe/anelys | 1edb8201aa80fedf0316db973da3a58b67070fca | cfccaa1bf5175827794da451a9408a26cd97599d | refs/heads/master | 2020-04-07T22:39:35.344954 | 2018-11-25T05:23:21 | 2018-11-25T05:23:21 | 158,779,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,789 | py | from neo4j.v1 import GraphDatabase, basic_auth
from pprint import pprint
from decimal import Decimal
d8757_5 = GraphDatabase.driver('bolt://comercialpicazo.com', auth=basic_auth('alejandro', '47exI4'))
d5_session = d8757_5.session()
cfdis = list()
tps = list()
txs = list()
def get_txs(_month):
rr = d5_session... | [
"qesoalpe@gmail.com"
] | qesoalpe@gmail.com |
64de11311bc599c3c5bed8ace84665103a3e169d | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/13164070.py | 860a9755b3d757aebdb485b23f443e9c6f4283dc | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/13164070.py generated: Wed, 25 Jan 2017 15:25:33
#
# Event Type: 13164070
#
# ASCII decay Descriptor: {[[B_s0]nos => K+ K- (D~0 -> K+ pi-)]cc, [[B_s0]os => K- K+ (D0 -> K- pi+)]cc}
#
from Configurables import Generation
Generation().EventType = 1316407... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
ad9fadfe929fbd742d5d3194a338c36c0e766e06 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /leetcode/t001629_2.py | fbcfa1dde1361cd3e1d9c422cfd37ca1ee62acc6 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | from typing import List
class Solution:
def slowestKey(self, releaseTimes: List[int], keysPressed: str) -> str:
max_k = ""
max_v = 0
releaseTimes.insert(0, 0)
for i in range(1, len(releaseTimes)):
s = releaseTimes[i] - releaseTimes[i - 1]
if s > ma... | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
c75429e425489c4fb78a4bfc6a4c93b281d9a415 | 0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b | /solved/17070.py | e14c99fcb45eac54e24f1a06821ec0c612691411 | [] | no_license | developyoun/AlgorithmSolve | 8c7479082528f67be9de33f0a337ac6cc3bfc093 | 5926924c7c44ffab2eb8fd43290dc6aa029f818d | refs/heads/master | 2023-03-28T12:02:37.260233 | 2021-03-24T05:05:48 | 2021-03-24T05:05:48 | 323,359,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | N = int(input())
board = [list(map(int, input().split())) for _ in range(N)]
dp = [[[0, 0, 0] for _ in range(N)] for _ in range(N)]
dp[0][1][0] = 1
for i in range(2, N):
if board[0][i]: break
dp[0][i][0] = 1
for i in range(1, N):
for j in range(1, N):
if not board[i][j]:
dp[i][j][0] = ... | [
"pyoun820@naver.com"
] | pyoun820@naver.com |
8b4f63c6a55804ce7d84505027839b601afd61d2 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/formula_fragment_py3.py | 0f212fb85237d011fc8a711d59206b6152c43a00 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,131 | 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 |
f12dbc29ef6f39cbd86252c9fb94858a00f35d61 | 377e3a552fb807febc18ce036af77edbce93ca19 | /binary trees/deepest_node_binary_tree.py | 891638b927afd3d373b32ddde50d44b356bce55f | [] | no_license | souravs17031999/100dayscodingchallenge | 940eb9b6d6037be4fc0dd5605f9f808614085bd9 | d05966f3e6875a5ec5a8870b9d2627be570d18d9 | refs/heads/master | 2022-10-29T11:05:46.762554 | 2022-09-28T13:04:32 | 2022-09-28T13:04:32 | 215,993,823 | 44 | 12 | null | 2022-08-18T14:58:50 | 2019-10-18T09:55:03 | Python | UTF-8 | Python | false | false | 1,656 | py | # Program for finding the deepest node in the tree.
# Input : Root of below tree
# 1
# / \
# 2 3
# / \ / \
# 4 5 6 7
# \
# 8
# Output : 8
#
# Input : Root of below tree
# 1
# / \
# 2 ... | [
"souravs_1999@rediffmail.com"
] | souravs_1999@rediffmail.com |
42ff61b7b1532947d2f6707b192005c61325f2de | 644b019a4792b6c7d9e5352e6330069850cc07e7 | /dentexchange/apps/libs/tests/test_login_required_for.py | 88b4f1aa0075a77293dc5f58dee1d6c6a608927f | [
"BSD-3-Clause"
] | permissive | jpchauvel/dentexchange | db0611c8c45365db30bdc15e3005c6eeac104c73 | 58ae303e842404fc9e1860f294ec8044a332bef3 | refs/heads/master | 2021-10-10T12:19:00.985034 | 2014-09-24T03:42:20 | 2014-09-24T03:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,072 | py | # -*- coding:utf-8 -*-
import unittest
import mock
from ..decorators import login_required_for, EMPLOYER, EMPLOYEE
class LoginRequiredForTestCase(unittest.TestCase):
@mock.patch('libs.decorators.user_passes_test')
def test_login_required_for_employer_return_user_passes_test_with_check_returning_true(
... | [
"jchauvel@gmail.com"
] | jchauvel@gmail.com |
ad2fd5634726e6272446d55a182d613f898857a5 | 2d0a0a1b6dad8657eaf844edbffe198bb1ff5c3e | /uvoyeur/daemon/mcast_proto.py | 2ecd3e5698e24d8324e5f20bda4e388e3bc41267 | [
"Apache-2.0"
] | permissive | egustafson/uvoyeur | 93ed7a4d795c74de477da39162285fdc7959f873 | ed7a9c60933a898964a111c0e5311bab3172b21a | refs/heads/master | 2021-01-19T22:33:43.403293 | 2015-08-29T19:06:56 | 2015-08-29T19:06:56 | 33,937,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | """PROTOTYPE - Multicast Listener
REPLACE with full Mcast Listener in time
"""
import socket
import struct
import threading
MCAST_GRP = '224.1.1.1'
MCAST_PORT = 5007
class McastListener(threading.Thread):
def __init__(self, bus):
super(McastListener, self).__init__()
self.setDaemon(True)
... | [
"eg-git@elfwerks.org"
] | eg-git@elfwerks.org |
170439db6c8bc3f75bb70bbcfd21eb6a6a194663 | 6d967da5fd95aa5e66ddbb211da40041006ca5ec | /myvenv/Lib/site-packages/pip/_vendor/pep517/build.py | 1c6ecbe79e7f8c4778ecb5872ddf1b4a9c1f59cd | [] | no_license | gevorkyannaira/my-first-blog | 96e4458045a1dd0aa9c1f3ec69f4c829428200e0 | 42ab12a8c2b0e402b5fa1b8e5a7cdd2629d06c16 | refs/heads/master | 2022-09-03T21:14:18.946448 | 2020-05-18T18:15:39 | 2020-05-18T18:15:39 | 264,909,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,645 | py | """Build a project using PEP 517 hooks.
"""
import argparse
import logging
import os
<<<<<<< HEAD
import contextlib
from pip._vendor import pytoml
import shutil
import errno
import tempfile
from .envbuild import BuildEnvironment
from .wrappers import Pep517HookCaller
=======
from pip._vendor import toml
import shutil
... | [
"gevorkyannaira5@gmail.com"
] | gevorkyannaira5@gmail.com |
e1f4ff4fde1cb02d80fa4d2b94bbc9519caf75d7 | aa9f8d7b48dbe3cbecca5eaa2ad3bbea262dbf24 | /qualite/commentaire.py | e75f0efb9eee8d63fab5ff076e2945b6b187921a | [] | no_license | ssinayoko/Pyhton_Cours | 5381a98c42cba021f34b482776933accd3442a6c | 56b391aeb673b40b564c59053295ac68e2576a1c | refs/heads/master | 2020-08-30T13:32:59.662715 | 2019-10-25T12:50:25 | 2019-10-25T12:50:25 | 218,395,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # -*- coding: utf-8 -*-
def addition(a:int, b:int) -> int:
"""
Fonction qui effectue une addition
:param a: Operande 1
:param b: Operande 2
:type a: int
:type b: int
:Example:
addition(2,2)
>>> 4
"""
return a + b
help(addition)
prin... | [
"mickael.bolnet@gmail.com"
] | mickael.bolnet@gmail.com |
0713d0f46f779f0a3d49497f7ce75e67e8204e77 | 67553d46a257631810f394908013b82c337e0fbd | /goat/temp/test.py | 44fa0a89196104b700f5eda1a88be7e07ae37d41 | [] | no_license | bopopescu/goat-python | 3f9d79eb1a9c2733345d699c98d82f91968ca5fa | c139488e2b5286033954df50ae1ca834144446f5 | refs/heads/master | 2022-11-21T11:25:27.921210 | 2020-03-06T01:02:57 | 2020-03-06T01:02:57 | 281,066,748 | 0 | 0 | null | 2020-07-20T09:00:08 | 2020-07-20T09:00:08 | null | UTF-8 | Python | false | false | 1,067 | py |
import requests
from lxml import etree
#获取用来打开url的session
sessions = requests.session()
'''
给sssion设置代理,
因为一般的网站没有这个的话,
会拒绝我们的爬虫访问,
因此我们在这模拟谷歌浏览器访问
'''
sessions.headers['User-Agent'] = 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36'
#进行访问获取源码
r = sessio... | [
"34465021+jwfl724168@users.noreply.github.com"
] | 34465021+jwfl724168@users.noreply.github.com |
23d890921b1774bbc78f6653f655c81c69604fe4 | 20d8a89124008c96fa59225926ce39f113522daa | /UL_NanoAODv8/2017/step1_cfg.py | 122f3ba6db11246c43b88205c06a08dbd288cabb | [] | no_license | MiT-HEP/MCProduction | 113a132a2ff440e13225be518ff8d52b0136e1eb | df019d7a15717a9eafd9502f2a310023dcd584f5 | refs/heads/master | 2022-05-06T20:25:34.372363 | 2022-04-12T11:55:15 | 2022-04-12T11:55:15 | 37,586,559 | 5 | 7 | null | 2015-08-24T11:13:58 | 2015-06-17T09:45:12 | Python | UTF-8 | Python | false | false | 5,862 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/PPD-RunIISummer20UL17wmLHEGEN-00001-fragment.py --python_filename step1_cfg.py --eventcontent RAWSIM,LHE... | [
"andrea.marini@cern.ch"
] | andrea.marini@cern.ch |
4383b6408419e66072835b37d23d97ba2d7e7aae | 84a19fe0b89bb19caa1641aeadc9623c1a181767 | /abc/117/d.py | a815ba914748d87fb00aa584570fd4079a6fb59d | [
"MIT"
] | permissive | wotsushi/competitive-programming | 75abae653cff744189c53ad7e6dbd2ca1a62e3a8 | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | refs/heads/master | 2021-06-10T06:42:40.846666 | 2021-05-31T10:32:51 | 2021-05-31T10:32:51 | 175,002,279 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | # 入力
N, K = map(int, input().split())
A = list(map(int, input().split()))
# MSBから順に0or1を決めていく
# 0にする場合、下位ビットの最適値は貪欲に求まる
def s(i):
return sum((a >> (i - 1)) & 1 for a in A)
def g(L, b):
m = 2**(b - 1)
return (
0 if b == 0 else
g(L, b - 1) + m * s(b) if L < m else
g(L >> 1, b - 1) ... | [
"wotsushi@gmail.com"
] | wotsushi@gmail.com |
204e9db02dcad09209555ab4e5630f11266c831d | a7b66311c2ce113789933ec3162f1128b2862f13 | /app/waterQual/model/basinRef_box.py | fda72761a329cd4eb4e8dc8d10146234f9f760a6 | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | from hydroDL.master import basins
from hydroDL.app import waterQuality
from hydroDL import kPath
from hydroDL.model import trainTS
from hydroDL.data import gageII, usgs
from hydroDL.post import axplot, figplot
import torch
import os
import json
import numpy as np
import matplotlib.pyplot as plt
wqData = waterQuality.... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
778767f7a0d4a6de15f577542a87425d58a718a4 | f9e6fd01ba0c8b5eff3680fd4c38237a540be1d0 | /config.py | f1f1dd0925475e74bad86fa3cfadbc91d9d865f9 | [] | no_license | kupacariibumu/NovelDownloader | 757e2a339e946e26bdf30debc5a84c0d54672e3d | ded5a2a4243b5f171c8d9daa448931321de2ea81 | refs/heads/master | 2023-06-02T05:16:39.140316 | 2019-12-16T15:45:09 | 2019-12-16T15:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | from typing import Any, Dict, Union
import yaml
import utils
import websites
class Config:
def __init__(self, book: str, values: Dict[str, str]):
self.book = book
self.website = websites.from_config(values["website"])
self.values = values
def __getattr__(self, name):
return ... | [
"1benediktwerner@gmail.com"
] | 1benediktwerner@gmail.com |
795ad238a3cee773a6c8a30b3dcfe36fc367688e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02696/s652919986.py | d04309a3129fc7b8360255b5cdba0b3e126b0677 | [] | 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 | 131 | py | a,b,n = map(int, input().split())
if n >= b-1:
print( (a*(b-1)) // b - a * ((b-1)//b))
else:
print( (a*n) // b - a * (n//b)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c2be790281c74b3a097b6e5fcd55262d0ffe0919 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/interactions/picker/situation_picker_interaction.py | 5a6cfed4b77d651b4dc7af8cf2245a263c9e698e | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\picker\situation_picker_interaction.py
# Compiled at: 2017-08-29 22:16:16
# Size of sou... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
3903880ef11dddcfb52a460e340e38f17acd4533 | 2aff23f7efc101969df2d13c5de91208f1153ff7 | /pyexcel_matplotlib/__init__.py | 63181b955335972638426181671ca5d3dffa487d | [
"BSD-3-Clause"
] | permissive | mobanbot/pyexcel-matplotlib | 7a8c12cb897173647377b2656cbac246f58793fe | 8771fcf3cc82164b50dc7ec0314838bf3de63e3b | refs/heads/master | 2021-06-19T16:17:29.541971 | 2017-07-13T07:17:31 | 2017-07-13T07:18:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
pyexcel_matplotlib
~~~~~~~~~~~~~~~~~~~
chart drawing plugin for pyexcel
:copyright: (c) 2016-2017 by Onni Software Ltd.
:license: New BSD License, see LICENSE for further details
"""
from pyexcel.plugins import PyexcelPluginChain
PyexcelPluginChain(__name__).add_a_renderer(
relative_plug... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
e01067024fe471232edab834f0a4d5da7c238f63 | 8906e04870524f190a11f3eb3caf8fe377ab3a24 | /Chapter13/Chapter_13/obs_tower2/labeler/main.py | 3e5a85559d1fdfeeedd004fdb99b45064e24782f | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Reinforcement-Learning-for-Games | 8719c086c8410a2da2b4fb9852b029a4c8f67f60 | 609d63ee5389b80b760a17f7f43abe632d99a9bb | refs/heads/master | 2023-02-08T19:35:30.005167 | 2023-01-30T09:09:07 | 2023-01-30T09:09:07 | 231,567,217 | 54 | 32 | MIT | 2022-04-21T06:47:24 | 2020-01-03T10:43:21 | Python | UTF-8 | Python | false | false | 2,940 | py | """
Web server for the data labeling tool.
This web server looks for a trained classifier in the
scripts/ directory.
If such a classifier is found, its outputs are shown as
part of the web interface.
"""
import io
import json
import os
import random
from PIL import Image
from flask import Flask, send_file, send_from... | [
"josephs@packt.com"
] | josephs@packt.com |
9e96120750f7833d375a3b5ddf802df2de37e27f | 9cf179388a901089cd547d36eedf0fd7a42eb9bd | /config/settings/base.py | 9dbbf59ed9571d4f50ab378bb3a98edc393489b7 | [] | no_license | birkoss/stocks | 94015013bfef9d19beabfea854891eac95fa1f8d | 58d8f030add64962aea386ef72c50665381c6258 | refs/heads/master | 2023-02-16T02:29:55.500638 | 2020-12-22T19:30:01 | 2020-12-22T19:30:01 | 323,704,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import json
import os
from django.core.exceptions import ImproperlyConfigured
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
try:
with open('secrets.json') as f:
secrets = json.load(f)
except FileNotFoundError:
raise ImproperlyConfigured('Fill the secrets.json file')
def g... | [
"admin@birkoss.com"
] | admin@birkoss.com |
fb19cc288cacbf45c79fb602182a6a2014c7a09a | 4f2cdd9a34fce873ff5995436edf403b38fb2ea5 | /Data-Structures/List/Part2/P007.py | efd86d663d29f875ee66ef39f98c36aa37486be6 | [] | no_license | sanjeevseera/Python-Practice | 001068e9cd144c52f403a026e26e9942b56848b0 | 5ad502c0117582d5e3abd434a169d23c22ef8419 | refs/heads/master | 2021-12-11T17:24:21.136652 | 2021-08-17T10:25:01 | 2021-08-17T10:25:01 | 153,397,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | """
Write a Python program to find the index of an item in a specified list.
"""
num =[10, '30', 4, -6]
try:
print(num.index('30'))
except:
print("Value not in List") | [
"seerasanjeev@gmail.com"
] | seerasanjeev@gmail.com |
61e8f3382590d817b94e5a1f6bb2299f795c7962 | 271886f348c3b72cd4b2a34ca456491d39bde520 | /component-clustering/model-variance-exploration_2.py | 143358c7e11e9548b3894d7d19ecc99fa6922c63 | [
"MIT"
] | permissive | tingard/Galaxy-builder-aggregation | 4ca99c7473d31d9a0b6909e3ccc9b08559dc04b1 | 78fec76eeb2ab4b38e241b66fa5643e0002ba3a7 | refs/heads/master | 2021-06-28T06:46:00.676450 | 2019-07-17T16:45:56 | 2019-07-17T16:45:56 | 126,490,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | import numpy as np
import pandas as pd
import lib.galaxy_utilities as gu
import gzbuilderaggregation
from progress.bar import Bar
from multiprocessing import Pool
import argparse
import warnings
from astropy.utils.exceptions import AstropyWarning
warnings.simplefilter('ignore', category=AstropyWarning)
N_SPLITS = 5
... | [
"tklingard@gmail.com"
] | tklingard@gmail.com |
9a2a46b9e35529dc5ec63c6c719c5b2d2bb9dffc | c1c3dc2d8a3bbe12eb60f49f277f605793fa7758 | /lesson06_multi_nasled/death_romb.py | 4cfa169b0949ef6301c53b7097827fb658c970e2 | [] | no_license | Bulgakoff/UdemyNew | 838e073b3ab61ae227fcc497f9ded5d6048f3077 | 97a27d0de164fcbd06def5e0edf1464ad46b5668 | refs/heads/master | 2020-09-23T03:29:20.789215 | 2019-12-09T11:04:28 | 2019-12-09T11:04:28 | 225,391,089 | 0 | 0 | null | 2019-12-09T11:04:29 | 2019-12-02T14:15:39 | Python | UTF-8 | Python | false | false | 994 | py | class Animal:
def set_health(self, health):
print('set in Animal')
class Carnivour(Animal):
def set_health(self, health):
super().set_health(health)# что бы не было двоцной инициализации базовых классов super().
print('set in Carnivour')
class Mammal(Animal):
def set_health(self,... | [
"hlbu@yandex.ru"
] | hlbu@yandex.ru |
fe4f9588384f0ada08e023ffb6a95d0de228157c | 8703982937001523f125cb65a80002e5ebb95477 | /config.py | 4a511a489406af5835497a3304fce1fb98252df1 | [
"MIT"
] | permissive | meddulla/GNN-Tutorial-Recsys2015 | 12638d2510859b08fc3249be638e756704b69cf4 | 82918c5ec824c1580c8c61a2bb76f3cbab08f19c | refs/heads/master | 2020-09-25T18:28:10.408024 | 2019-12-05T09:23:47 | 2019-12-05T09:23:47 | 226,063,496 | 0 | 0 | MIT | 2019-12-05T09:22:34 | 2019-12-05T09:22:34 | null | UTF-8 | Python | false | false | 740 | py | import torch
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # sets device for model and PyTorch tensors
embed_dim = 128
batch_size = 1024
num_embeds = 52739
image_folder = 'data'
c_file = 'data/yoochoose-data/yoochoose-clicks.dat'
b_file = 'data/yoochoose-data/yoochoose-buys.dat'
c_index =... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
15b5a61186ff47009a360de4e660aa87ece8da91 | cbbdbdfa3d69a11de5dbd80f860986c97ec10b67 | /marrow/schema/transform/complex.py | 391f78fc1519129ad02552bb1b941af914cf6966 | [
"MIT"
] | permissive | lokeshmeher/schema | 757cbc837c91f124774d3a1562ceccc255f17026 | 3c7478d27f87a2f1a7f2c2da67beced4a76704cc | refs/heads/master | 2021-06-04T18:50:42.461646 | 2016-02-24T04:15:04 | 2016-02-24T04:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,730 | py | # encoding: utf-8
from __future__ import unicode_literals
import re
from inspect import isroutine
from ..compat import unicode
from .base import Concern, Transform, DataAttribute, Attribute
class TokenPatternAttribute(DataAttribute):
"""Lazy construction of the regular expression needed for token processing."""
... | [
"alice@gothcandy.com"
] | alice@gothcandy.com |
3d056240ccc91d11d0fa994fade9566d83649476 | 0ebf38d311d11f2473db301d08d906cf1a5d8825 | /testinfra/modules/blockdevice.py | 88e152d3b10bfe7658b43e1fe2782fb65fd3de93 | [
"Apache-2.0",
"CC-BY-ND-4.0"
] | permissive | disser/testinfra | 5b8baf35e36192f98ca879464e858eb06029df63 | 14af900fb305991cdf2b31b8825884955e0d8f2c | refs/heads/master | 2022-11-13T17:45:19.118394 | 2020-07-02T15:25:24 | 2020-07-02T15:25:24 | 276,672,242 | 0 | 0 | Apache-2.0 | 2020-07-02T14:46:20 | 2020-07-02T14:46:20 | null | UTF-8 | Python | false | false | 4,144 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"phil@philpep.org"
] | phil@philpep.org |
c5adb35910a3801181d1a6c8535732b8f9d6cf51 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVAR10_Full_SBI/MassPoints/structure_M140_mu.py | 72b4463434ca67ffe33f216b0179abf363733d62 | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 1,031 | py | structure["DY"]={
"isSignal" : 0,
"isData" : 0 ,
}
structure["MultiV"]={
"isSignal" : 0,
"isData" : 0 ,
}
structure["WpWmJJ_EWK_QCD_noHiggs"]={
"isSignal" : 0,
"isData" : 0 ,
}
structure["top"]={
... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
4c21f061d0e7cd7fcb64320a3d50b43a7c06d22e | bba2bd15307d94707825057fe2790a72c707a363 | /awesome_glue/bert_classifier.py | 3a6808b7dfbf4131497a2415fec14b8310982d9e | [] | no_license | Xalp/dne | c78e8ef2f730b129623ed3eaa27f93d2cf85d6f6 | afa519eea9ccd29332c477d89b4691fc2520813b | refs/heads/master | 2023-02-16T14:27:48.089160 | 2021-01-15T12:30:44 | 2021-01-15T12:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | import torch
import torch.nn.functional as F
from allennlp.models import Model
from allennlp.training.metrics import CategoricalAccuracy
from transformers import AdamW
from allennlp.modules.token_embedders import PretrainedTransformerEmbedder
from allennlp.modules.seq2vec_encoders import ClsPooler
from luna import ram... | [
"dugu9sword@163.com"
] | dugu9sword@163.com |
20c28a30e5a7a54696e106c9cce4973e2678a8dc | b921f8ffb559e90c2711f77dc8ceba960b721714 | /rocket_engine/__init__.py | 4cfbaab90c1017b1491be694e9f409501465594e | [
"BSD-2-Clause-Views"
] | permissive | xando/django-rocket-engine | 7b8af49d2665cd213b75b9bcc4a9ba405d63f339 | 3ef942cd0ddd2f88832725990bd0fe9bb07bbe84 | refs/heads/master | 2020-12-24T16:23:36.789339 | 2012-06-29T19:49:43 | 2012-06-29T19:49:43 | 3,860,429 | 1 | 0 | null | 2012-07-03T08:30:44 | 2012-03-28T22:46:21 | Python | UTF-8 | Python | false | false | 2,838 | py | import os
import sys
from django.core.handlers.wsgi import WSGIHandler
from django.core import signals
on_appengine_remote = os.getenv('SERVER_SOFTWARE','')\
.startswith('Google App Engine')
on_appengine = on_appengine_remote
os.path.abspath(os.curdir)
PROJECT_DIR = os.path.abspath(os.getcw... | [
"sebastian.pawlus@gmail.com"
] | sebastian.pawlus@gmail.com |
71dab8b1dc580f2d08efed954c2be67f8bdb700e | 72b1d8b44520d1757d379d8013eb3912b005bef3 | /ml/visualizations/word_cloud/demo_cloud.py | 85787dfd91e13e926b6a51745f2ce8dd67c2ce84 | [] | no_license | joshuaNewman10/ml | 14d8d5821bd952e77272b740cf05cef69ebee383 | 3ec43868004d421814f8e056205e77a2b8cb92dc | refs/heads/master | 2021-04-03T06:29:33.655495 | 2018-09-17T19:03:40 | 2018-09-17T19:03:40 | 124,795,304 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import matplotlib.pyplot as plt
from argparse import ArgumentParser
from wordcloud import WordCloud, STOPWORDS
def main(text_file_path):
print('hey')
text = open(text_file_path).read()
# Generate a word cloud image
wordcloud = WordCloud(stopwords=STOPWORDS).generate(text)
plt.imshow(wordcloud, ... | [
"josh@teambanjo.com"
] | josh@teambanjo.com |
b9682dd26ca433882646316da95ace105a4ee492 | c6382b3f6778edd5a64bfb2a4d22ff6e5e5c0f7d | /ipyparallel/client/_joblib.py | 7098a73b1bfb54d9cd43aa248681c69d35e554a3 | [
"BSD-3-Clause"
] | permissive | 195610087/ipyparallel | 17f382498bad28b339a3ca1f0b479151e9c0c955 | 6cd55b00a520b3f299e7db88a08b78dcbe713af8 | refs/heads/main | 2023-09-06T07:29:36.302391 | 2021-11-15T10:01:57 | 2021-11-15T10:01:57 | 429,255,340 | 0 | 0 | NOASSERTION | 2021-11-18T01:24:20 | 2021-11-18T01:24:20 | null | UTF-8 | Python | false | false | 2,308 | py | """joblib parallel backend for IPython Parallel"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from joblib.parallel import AutoBatchingMixin
from joblib.parallel import ParallelBackendBase
import ipyparallel as ipp
class IPythonParallelBackend(AutoBatchingMixi... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
24a9abcd14ccf38aa4edade81d64a646ca06c078 | 282ec49f8ce8aa176c24e4f13a8852c9b0752e4a | /jumble/gtkmm/SConstruct | bdf8811058ae5ba72e9070f2535846020b8fdf25 | [] | no_license | montreal91/workshop | b118b9358094f91defdae1d11ff8a1553d67cee6 | 8c05e15417e99d7236744fe9f960f4d6b09e4e31 | refs/heads/master | 2023-05-22T00:26:09.170584 | 2023-01-28T12:41:08 | 2023-01-28T12:41:08 | 40,283,198 | 3 | 1 | null | 2023-05-01T20:19:11 | 2015-08-06T03:53:44 | C++ | UTF-8 | Python | false | false | 238 |
env = Environment()
env.ParseConfig("pkg-config --cflags --libs gtkmm-3.0")
sources = [
"main.cc",
"helloworld.cc"
]
flags = [
"-std=c++11",
"-Wall",
]
env.Program(target="gtk-hello-1", CXXFLAGS=flags, source=sources)
| [
"nefedov.alexander91@yandex.ru"
] | nefedov.alexander91@yandex.ru | |
1f4d2eb377e64e487faba3cdf2c21c6ecabc8bbe | 775f887ab0933c8bb9263febceb702974966bb48 | /packages/pyright-internal/src/tests/samples/genericTypes46.py | 1395effc3f8c0f8d6f844f6afd1e87a98e644aac | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | isabella232/pyright | 160a4d9ce366cb61946949f9d5aebe7457539c67 | a192486099503353413e02078c41d0d82bd696e8 | refs/heads/master | 2023-03-13T05:04:51.852745 | 2021-03-03T07:51:18 | 2021-03-03T07:51:18 | 344,101,663 | 0 | 0 | NOASSERTION | 2021-03-03T11:24:10 | 2021-03-03T11:21:38 | null | UTF-8 | Python | false | false | 413 | py | # This sample tests the assignment of constrained TypeVars to a union
# that allows for all of the types in the constraint.
from typing import TypeVar, Union
def func(a: Union[int, float]):
...
_T1 = TypeVar("_T1", int, float)
def func1(a: _T1, b: _T1):
return func(a)
_T2 = TypeVar("_T2", int, float, c... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
29e734cef324fc14d43b25079376467dbf6b876d | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day16/zuoye.py | 3a03ad98b7fd77f925c21ebaa2e63183f5f27041 | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Wayne
'''
使用while循环遍历list,tuple,dict,set
使用try……except……
'''
from typing import Iterable
# 传入的参数若是一个可迭代类型的对象,则将其遍历打印
def printIterByWhile(obj):
# 判断所传参数是否为可迭代对象
if isinstance(obj, Iterable):
# 进一步判断该可迭代对象是否为字典,因为字典需要同时遍历Key和Value
if isins... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
06be33f39bb529376eefc5bb5e39140cf58c3760 | 0503295fd59e32bfda7f8fdf4f73a89217ad00bb | /non_geometry_features.py | 8b117dc1282a361a9ad94a1ea4973b8525367bad | [] | no_license | xinyu1905/Nomad2018 | f00e884c8f14bf1fcc4cf675a757b59a7f0dd3e8 | 864a2571f29e74821dbe6220a0143cdf97fac27c | refs/heads/master | 2020-03-19T01:22:23.514215 | 2018-02-01T19:00:37 | 2018-02-01T19:00:37 | 135,540,432 | 0 | 1 | null | 2018-05-31T06:18:26 | 2018-05-31T06:18:26 | null | UTF-8 | Python | false | false | 1,541 | py | import logging
import numpy as np
import global_flags_constanst as gfc
logger = logging.getLogger(__name__)
handler = logging.StreamHandler()
formatter = logging.Formatter("%(asctime)s %(name)-12s %(levelname)-8s %(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(gfc.LOGGING_LEVEL... | [
"dawid.dul@gmail.com"
] | dawid.dul@gmail.com |
ab002aea2d27eadf5bcf53b4f0a3367f06297f7f | b977a59c246230cfccf40a4b57283ab5bc278770 | /pyBN/learning/structure/constraint/fast_iamb.py | c3d930b055105dcd1195e8b083920c3948e5b649 | [] | no_license | baturayo/edbn | 6f5c92b413121ededa461afd537a88f965f2af1d | 4b3d3e2e97c1a35908c0237e5aac60e85d75a001 | refs/heads/master | 2020-04-29T17:13:36.986454 | 2019-03-25T16:58:32 | 2019-03-25T16:58:32 | 176,291,155 | 0 | 0 | null | 2019-03-18T13:23:44 | 2019-03-18T13:23:43 | null | UTF-8 | Python | false | false | 4,324 | py | """
*********
Fast-IAMB
Algorithm
*********
For Feature Selection (from [1]):
"A principled solution to the feature selection problem is
to determine a subset of attributes that can "shield" (render
independent) the attribute of interest from the effect of
the remaining attributes in the domain. Koller and Sahami... | [
"stephen.pauwels@uantwerpen.be"
] | stephen.pauwels@uantwerpen.be |
3eecd1395fded62f776353bc6b65ee0e4ea3aadd | d0530d181fac2d5a1d04afaee1976ab8d74ed7dd | /argparse_demo.py | ea4313e8b581ccc365568dd6fc6d44333ed3bf61 | [] | no_license | guanguanboy/testPython | b587712c12f9a769872bebfe9eabcd4fca486690 | 4dbab2057a2b0264c3e38374283188d4fffc804f | refs/heads/master | 2023-05-16T00:18:52.795866 | 2023-05-09T06:56:27 | 2023-05-09T06:56:27 | 337,029,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | """
https://www.youtube.com/watch?v=q94B9n_2nf0
"""
import argparse
def fib(n):
a, b = 0, 1
for i in range(n):
a, b = b, a + b
return a
def Main():
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group()
group.add_argument("-v", "--verbose", act... | [
"517445163@qq.com"
] | 517445163@qq.com |
b5cdd6986c2acbfb06b88e72bf32735d0a8eb004 | 2eb386991d9975f0f8440d90de26e950304ac42f | /HackTM2020/count_on_me/aes.py | 1e77d5ba471ace032b7e2f0397b4b6c18787dae7 | [] | no_license | Quintec/CTFs2020 | 2816a66e8a486537c31e5ac25253840bc3a8ffe9 | bdaa327c9f0b0ee16ff95bafcaf65f0df8acd8b9 | refs/heads/master | 2022-12-19T21:39:14.129702 | 2020-10-01T16:49:06 | 2020-10-01T16:49:06 | 281,812,929 | 1 | 0 | null | 2020-10-01T16:49:08 | 2020-07-23T00:37:44 | null | UTF-8 | Python | false | false | 422 | py | from Crypto.Cipher import AES
# this is a demo of the encyption / decryption proceess.
a = 'flagflagflagflag'
key = '1111111111111111111111111111111111111111111111111111111111111111'.decode('hex')
iv = '42042042042042042042042042042042'.decode('hex')
#encrypt
aes = AES.new(key,AES.MODE_CBC, iv)
c = aes.encrypt(a).en... | [
"zhongbrothers@gmail.com"
] | zhongbrothers@gmail.com |
052adf70d0033e9a2f09e7ada0b84bae66757da5 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/routing_system/interface/ve/ipv6/ipv6_nd_ra/ipv6_intf_cmds/nd/nud/__init__.py | 80a5b33532ac15c901e09a6277bcecb1a0451e96 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,074 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
cb1cfa2061ba0203e359d8a494bb3e4129ab3d99 | e3178ef1fcc2f11b2608881b11a2545e1b830804 | /pyfurby/restless.py | c9ce40bb815cf5cc596269aa2d9055b8a3a6678d | [
"MIT"
] | permissive | matteoferla/pyfurby | 2dd5b59b88e90777e693b3fd121981c4629a6e54 | 1383b93b432f09ac4fdd07562dedf66509b5809d | refs/heads/main | 2023-03-08T16:54:19.393819 | 2021-02-20T19:36:13 | 2021-02-20T19:36:13 | 330,163,453 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | from typing import get_type_hints
import pydoc
class RestlessFurby: # restful...
def _resolve_request(self, cmd):
"""
Restful API Mode.
This action is trigged when any route that is not home is requested
:param cmd:
:return:
"""
try:
from flask... | [
"matteo.ferla@gmail.com"
] | matteo.ferla@gmail.com |
f731a090e91a2638b256e73ffab2478b8bd0d195 | b6472217400cfce4d12e50a06cd5cfc9e4deee1f | /sites/top/api/rest/FenxiaoProductImageDeleteRequest.py | b41002248a940d2d3ed32f64a24e4503466cfdc4 | [] | no_license | topwinner/topwinner | 2d76cab853b481a4963826b6253f3fb0e578a51b | 83c996b898cf5cfe6c862c9adb76a3d6a581f164 | refs/heads/master | 2021-01-22T22:50:09.653079 | 2012-08-26T19:11:16 | 2012-08-26T19:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | '''
Created by auto_sdk on 2012-08-26 16:43:44
'''
from top.api.base import RestApi
class FenxiaoProductImageDeleteRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.position = None
self.product_id = None
self.properties = None
def getapiname(self):
return 'taobao.fe... | [
"timo.jiang@qq.com"
] | timo.jiang@qq.com |
6c67af0b7b41e76d5d8eb85986cbe08b3eb3aaac | 7233ff4c7cbb5d0f5e43a44800d0edddc2793b84 | /Players/Combine2.py | 682b4aa0bfe9b56f303869c63e5474dad35b2629 | [] | no_license | SoumitraAgarwal/Webscraping-Tennis-Grand | b3d97be13e67b285aa1303815ee58e5c693fa5df | 45d0023e7c20ebcb230827f4a89c2669fcaee6fd | refs/heads/master | 2021-01-02T08:23:28.373915 | 2017-09-30T23:02:44 | 2017-09-30T23:02:44 | 98,999,991 | 5 | 2 | null | 2017-09-11T21:32:45 | 2017-08-01T12:40:51 | HTML | UTF-8 | Python | false | false | 506 | py | import numpy as np
import cv2
import os
base = 'Pictures2/'
images = os.listdir(base)
for j in range(0,len(images), 50):
output = cv2.imread(base+images[j])
image1 = cv2.imread(base+images[j + 1])
cv2.addWeighted(image1, 1.0/100, output, 1.0/100, 0, output)
for i in range(j + 2,min(j + 100, len(images))):
# l... | [
"agarwalsoumitra1504@gmail.com"
] | agarwalsoumitra1504@gmail.com |
b4633535520e64b12b41f1fcd1ab0e4c8e4330b6 | 41581af29553c967f1c3bfcce4cbb45128093b22 | /problems/mrna/mrna.py | e9fb08aa812a183bbac2f027437a528d3b708673 | [] | no_license | pratishhegde/rosalind | 818105992dd6169a09b737e5ec171a52cb58ccd8 | bd06ae574d08f1a8a34c79d7da3ae8b10cb63dbe | refs/heads/master | 2021-01-16T18:23:12.557850 | 2014-05-27T21:49:56 | 2014-05-27T21:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # -*- coding: utf-8 -*-
"""
Problem
For positive integers a and n, a modulo n (written amodn in shorthand) is the
remainder when a is divided by n. For example, 29mod11=7 because 29=11×2+7.
Modular arithmetic is the study of addition, subtraction, multiplication, and
division with respect to the modulo operation. We... | [
"sefakilic@gmail.com"
] | sefakilic@gmail.com |
da8ecc7359ae6638d5fb2798338f29b32ef9b009 | 34c2d81e0887d0381096717eebc28e4e1a2a2234 | /setup.py | ef33f011bb234d9a151986128bfdd8c2597b838d | [] | no_license | digital4rensics/canari | 06634d9f5154f08b1d5407bd3972d9bd8d52c166 | ec0c9edb74958a388e8bea279289995dbc9cf5e7 | refs/heads/master | 2021-01-18T15:35:52.236835 | 2012-12-25T05:58:29 | 2012-12-25T05:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
from os import name
scripts = [
'src/scripts/canari',
'src/scripts/pysudo',
'src/scripts/dispatcher',
]
extras = [
'readline'
]
if name == 'nt':
scripts += ['%s.bat' % s for s in scripts]
setup(
name='canari',
author='N... | [
"ndouba@gmail.com"
] | ndouba@gmail.com |
0c2c82cd75939f224f4cb1936d9f3623cadbb4c0 | 4130bc72387f78ded674db06f04e759658dfbda4 | /setup.py | 1a331e0435675d937c4743cd37719b272f0d5192 | [
"BSD-2-Clause"
] | permissive | soukicz/nginx-amplify-agent | 231d9f2371627ab836adf3baea37a6e2b9c0716c | 484f20a902ed07dc4b50107c0ad6c5d7f14e4681 | refs/heads/master | 2021-01-12T11:12:22.770574 | 2016-11-02T17:25:22 | 2016-11-02T17:25:22 | 72,869,483 | 0 | 0 | null | 2016-11-04T17:18:48 | 2016-11-04T17:18:47 | null | UTF-8 | Python | false | false | 1,464 | py | # -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, '%s/amplify' % os.getcwd())
from setuptools import setup, find_packages
from amplify.agent.common.util.host import is_deb, is_rpm, is_amazon
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__credits__ = ["Mike... | [
"dedm@nginx.com"
] | dedm@nginx.com |
4c6cbdca46382716a0c157a4ee44adfc026d21b9 | 4908b1d34d69c1cb652f25049552562574e1075f | /2020/Day-24/Lobby_Layout/example.py | b97fbca0cf8b5178a0781e9cb2a4930254914c64 | [
"MIT"
] | permissive | sreekesari-vangeepuram/adventofcode | 3d4ad98a25a30640182d928538b421e00ad8259d | 645531be0208affe042ac0328105b9ef3cfc9dbf | refs/heads/main | 2023-07-26T13:36:03.036721 | 2021-08-11T08:27:25 | 2021-08-11T08:27:25 | 317,850,039 | 1 | 0 | MIT | 2021-08-11T08:27:26 | 2020-12-02T12:08:13 | Go | UTF-8 | Python | false | false | 882 | py | #!/usr/bin/env python
from collections import defaultdict
# nw, se in YZ plane
# ne, sw in XZ plane
# w , e in XY plane
position = {
"nw": (0, +1, -1), "ne": (+1, 0, -1),
"w" : (-1, +1, 0), "e" : (+1, -1, 0),
"sw": (-1, 0, +1), "se": (0, -1, +1),
}
# `position` source: https://www.redblobgames.com/grids/... | [
"kesari.vangeepuram@gmail.com"
] | kesari.vangeepuram@gmail.com |
04479afbaa7d4c54e40051a2426054b6ca0c0aad | 169d809f45dedcaa3c7b1b49912d8b025abe18d9 | /date_connvert.py | 7f68a922ad5d38c34dcb486b4b74a0557a63f1f1 | [] | no_license | bermec/challenges | 8a82d1d38d1ed1a0fc3f258443bc0054efc977a6 | 9fb092f20f12b4eaa808e758f00f482a49346c88 | refs/heads/master | 2021-10-08T05:05:56.803332 | 2018-12-08T00:20:20 | 2018-12-08T00:20:20 | 109,448,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py |
import datetime
from datetime import date
def str2int(strng):
out_lst = []
for x in strng:
if x.isdigit():
x = int(x)
out_lst.append(x)
out_tup = tuple(out_lst)
return out_tup
a = '2015-07-01 2019-04-06'
a = a.split()
print('a ', a)
b = a[0].split('-')
print('b', b... | [
"rog@pynguins.com"
] | rog@pynguins.com |
43b23642d653c51031076e53d722728e53160630 | 09ce9635b0e74ba178e98efd0d5229a25995713e | /submissions/arc034/b.py | 67f01974b68e9681ad402eff11836072f3cd9ee8 | [
"Unlicense"
] | permissive | m-star18/atcoder | 7575f1e1f3ee1dfa4a765493eb17b4ef0ad5f1f0 | 08e475810516602fa088f87daf1eba590b4e07cc | refs/heads/main | 2023-07-14T09:16:42.807150 | 2021-08-22T15:59:48 | 2021-08-22T15:59:48 | 364,458,316 | 1 | 0 | Unlicense | 2021-08-22T15:59:49 | 2021-05-05T04:13:03 | Python | UTF-8 | Python | false | false | 408 | py | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
n = int(readline())
ans = [0]
for check in range(max(0, n - 153), n):
cnt = check
check = str(check)
for i in range(len(check)):
cnt += int(check[i])
... | [
"31807@toyota.kosen-ac.jp"
] | 31807@toyota.kosen-ac.jp |
278dd8023b33a8ac37253da6d123844c226c6d0b | 38372fcc2ca58798176267360ff07f886400bc7b | /core_arrears/filters.py | f5f875ecce205bf8110cb12b1ecce51054584da2 | [] | no_license | portman-asset-finance/_GO_PAF | 4eb22c980aae01e0ad45095eb5e55e4cb4eb5189 | ee93c49d55bb5717ff1ce73b5d2df6c8daf7678f | refs/heads/master | 2020-09-21T05:22:10.555710 | 2019-11-28T16:44:17 | 2019-11-28T16:44:17 | 224,691,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | import datetime
from django.contrib.auth.models import User
from .models import arrears_summary_agreement_level, arrears_summary_arrear_level
from core.models import ncf_dd_schedule
import django_filters
class arrears_summary_agreement_level_Filter(django_filters.FilterSet):
arr_agreement_id = django_filters.Cha... | [
"portman-asset-finance@outlook.com"
] | portman-asset-finance@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.