blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9f43d1c561b4a410c8366be55dde291f4661542 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_usage_operations.py | ce8b45dc92c31a4dae09fdf96881fa1357edd348 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,392 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
86df727426d76011726712116223b2d60c2e785b | 83616d726820d90951b4dfb413ad1dd883d84eea | /TriAquae/models/Ubuntu_12/paramiko/client.py | c5a2d1ac727b36fda9f44c4ae1eee7bc604cb53a | [] | no_license | goser1158/triaquae | 9d67dc2ec4ba3aa1afc5d4ce7ab22a4ef6c3e4b1 | e7594825e73e1e116b5f15e6c3b02ec7bd98b2ef | refs/heads/master | 2021-01-19T21:16:18.914895 | 2018-12-05T08:46:10 | 2018-12-05T08:46:10 | 101,248,034 | 0 | 0 | null | 2017-08-24T03:02:55 | 2017-08-24T03:02:55 | null | UTF-8 | Python | false | false | 21,636 | py | # Copyright (C) 2006-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (a... | [
"lijie3721@126.com"
] | lijie3721@126.com |
13cbf185e243bfd91725740f6832e60a9a782369 | 148ba38e84919b7a44fa193e2899993051fdb542 | /tests/requester_session.py | e637a86122e6c2896ab3ef483741bd0d3abf7332 | [
"MIT"
] | permissive | igor-kupczynski/Requester | e8e76f8f421558638439083d4863445d3b6ad5db | 93fd2673cf69a97b0e0d49a2411abe6148326f41 | refs/heads/master | 2022-03-05T21:10:59.099429 | 2019-11-12T14:06:58 | 2019-11-12T14:06:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # flake8: noqa
###env
import requests
s = requests.Session()
s.get('http://127.0.0.1:8000/cookies/set?k0=v0', timeout=5)
s.headers.update({'X-Test': 'true'})
prepped = s.prepare_request(requests.Request('POST', 'http://127.0.0.1:8000/post', json={'a': 'b'}))
###env
s.get('http://127.0.0.1:8000/cookies/set?k1=v1', al... | [
"kylebebak@gmail.com"
] | kylebebak@gmail.com |
8024ba5b4330783ded7dd067ea1cf890af49dc58 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractNightFallTranslations.py | 594af0962bcbd229a5adb300cb23106ebecb7668 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 222 | py | def extractNightFallTranslations(item):
"""
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
return False
| [
"something@fake-url.com"
] | something@fake-url.com |
e69a89c9aca5d7a747ce35c9a3614f0749e9b9c6 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/class_of_use_ref_structure.py | acfe741dd3c81420428778d7f91ac88418740eea | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 225 | py | from dataclasses import dataclass
from .type_of_value_ref_structure import TypeOfValueRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class ClassOfUseRefStructure(TypeOfValueRefStructure):
pass
| [
"chris@komposta.net"
] | chris@komposta.net |
cce790149c0236665d2879cd5d9796223e903f6d | 32824b902ff0d97b4f7fdea03251ee8e8fd8b859 | /backend/ytb_21198/urls.py | 703d1fd95d132c870eace5738f46d9dbac582349 | [] | no_license | crowdbotics-apps/ytb-21198 | 761241bfc2fdbcb9b16c4fd21cb60b5d477c532a | c30beec282dabcfcfff09e478311b819af3eaa0e | refs/heads/master | 2022-12-28T14:49:18.847967 | 2020-10-06T22:17:47 | 2020-10-06T22:17:47 | 301,867,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | """ytb_21198 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4914f091478c59559e9a61fa777ab6870e7ab96b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4347/codes/1596_2894.py | 372d41623df33594fd6a8e6a027a5fb1410be9b1 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | valor_do_jogo1= float(input("Qual o valor unitario do jogo? "))
valor_do_frete= 45.0
total=valor_do_jogo1 * 8 + valor_do_frete
print(total) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
9c0c4fb179834a7ca36de9a9189ada09e37ceef0 | bfb35e35c2e44b55ac77c66b483d737e0a947e16 | /20210201/生成pyd文件/To_pyd.py | 959cdac1739c66aa26cbc736972887f959be7102 | [] | no_license | Aimee888/Python-20210127 | 8c68230650f4ebb9b06c0facffc2976bd653d8ab | c683d440e21821f2a9a0e52d39d82071ae0b3405 | refs/heads/main | 2023-03-17T04:32:58.714464 | 2021-02-27T01:18:29 | 2021-02-27T01:18:29 | 333,348,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""=================================================
@Project -> File : Python-20210127 -> To_pyd.py
@IDE : PyCharm
@Author : Aimee
@Date : 2021/2/1 10:51
@Desc :
================================================="""
def test():
print("Test .pyd function"... | [
"961745931@qq.com"
] | 961745931@qq.com |
2f30f57136d05751f501d186279ee37d5dc703c3 | 38edf3974ac953fc916858651ccea167470e5ec8 | /Hackfest/Hackfest-Resources/Level 7/flip.py | 2f75915a8a24f7612d0451685ad3e69d68291724 | [] | no_license | duaraghav8/Duncheon | 597d49417aec9784c7428c740a2cfc5c5469079b | 69f7a775cb7df4d7ae99a3766260c3a098c52978 | refs/heads/master | 2016-09-06T07:19:34.153274 | 2015-08-14T17:31:37 | 2015-08-14T17:31:37 | 39,578,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | password = "136ilovebunnies247"
enc = ""
for c in password:
enc += chr(255-ord(c))
f = open('password.txt', 'w')
f.write(enc)
| [
"duaraghav8@gmail.com"
] | duaraghav8@gmail.com |
d8f44e410c0a7f63d40415236b0febfddc26566e | 754da0ff4d08621511e905c088284e8680edc0df | /0x03-python-data_structures/2-replace_in_list.py | b1e91dc09721778cdf7a954c04007114b87fe111 | [] | no_license | AngieCastano1634/holbertonschool-higher_level_programming-1 | 0e77289f6761f2057bed5b2163df43dea4d6908a | 67d5ed8181c51f5ff67a905fff39dcc605fb32ce | refs/heads/master | 2022-12-22T13:20:36.889380 | 2020-09-25T03:31:25 | 2020-09-25T03:31:25 | 299,758,479 | 0 | 1 | null | 2020-09-29T23:10:59 | 2020-09-29T23:10:58 | null | UTF-8 | Python | false | false | 248 | py | #!/usr/bin/python3
def replace_in_list(my_list, idx, element):
if idx < 0 or idx > (len(my_list) - 1):
return my_list
for i in range(0, len(my_list)):
if i == idx:
my_list[i] = element
return my_list
| [
"andergcp@hotmail.com"
] | andergcp@hotmail.com |
e6f2da70126b5f9645097ed27b380bfdb7169bfe | ea43a4ca9ad544fc3107aff1e5a4dd8c9a3898b1 | /biliob_analyzer/coin.py | e8d7027b84952516743eee5660fc09d0ea323b86 | [
"MIT"
] | permissive | z464244404/biliob-spider | 9447459cb722f71b6419ecaa53f80fdcbae11b22 | dc6880ab8457e469677575d1961899bd966bc1b0 | refs/heads/master | 2020-08-10T13:58:10.332858 | 2019-10-01T01:24:43 | 2019-10-01T01:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from db import settings
from db import db
import datetime
coll = db['video'] # 获得collection的句柄
start_date = datetime.datetime(2018,11,22)
end_date = datetime.datetime(2018,12,22)
value = 'view'
d = {}
for each in coll.find():
author_name = each['author']
d[author_name] = []
each['data'].reverse()
s_val... | [
"jannchie@gmail.com"
] | jannchie@gmail.com |
c35b734f8c3c106552cfa8fe5adbf206f6d0c97d | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/DocumentTemplate-2.13.4-py2.7-linux-x86_64.egg/TreeDisplay/TreeTag.py | d1190e833a3c24e777df2a73d11e74b7d68f7f9d | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,009 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
2c8f22898642d623f2dc9b9b5efdc099726242f5 | 3122ac39f1ce0a882b48293a77195476299c2a3b | /clients/python/generated/swaggyjenkins/models/github_respository_container.py | 48dee5604c6f39d2d948716e12bb4e6c2e073ec9 | [
"MIT"
] | permissive | miao1007/swaggy-jenkins | 4e6fe28470eda2428cbc584dcd365a21caa606ef | af79438c120dd47702b50d51c42548b4db7fd109 | refs/heads/master | 2020-08-30T16:50:27.474383 | 2019-04-10T13:47:17 | 2019-04-10T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,610 | py | # coding: utf-8
"""
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification # noqa: E501
OpenAPI spec version: 1.1.1
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class GithubRespositor... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
caefdb750f7451f754136362f793e60d708369c7 | 85a27847c7bab4dd49c48ea19d16ad4c9de963f8 | /examples/2d/hubbard_honeycomb/main.py | 452ad469b3225d4987ab0a5b1cbe46ef4bc1b894 | [] | no_license | zx-sdu/pygra | edcf3a2648f8413cff5ed753120d414999e3cc76 | bd7f930ccac414892d18dc240b88ee95def1e50b | refs/heads/master | 2020-09-27T19:55:34.719955 | 2018-06-30T09:17:04 | 2018-06-30T09:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # zigzag ribbon
import sys
import os
sys.path.append("../../../pygra") # add pygra library
import numpy as np
import geometry
import scftypes
import operators
from scipy.sparse import csc_matrix
g = geometry.honeycomb_lattice()
g.write()
Us = np.linspace(0.,4.,10) # different Us
#Us = [2.,4.]
#Us = [2.]
f = ope... | [
"jose.luis.lado@gmail.com"
] | jose.luis.lado@gmail.com |
e032f064b6c222a89f88751f05f5b40f17fc697f | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/core/migrations/0060_auto_20180714_2320.py | a8550d55f1c2ad5b649d3cc9977d3d155fe3b2b4 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | # Generated by Django 2.0.5 on 2018-07-14 14:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0059_merge_20180713_2203'),
]
operations = [
migrations.AddField(
model_name='vendor',
... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
653405bc92fc15389f4fab309c31b070d3b23323 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_24/models/resource_space_get_response.py | 309ad35ae95011fe8cf2eadb3a0de09b694fed58 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,065 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.24
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
05f44b6902d671803609ac1d4c1dfd0e4525986d | 4cd35b22c2bbe3658c5582132a07a18764db47d5 | /tests/test_github.py | d53ae2bb02b2b22526738c1dbcb0d99cae28f729 | [] | no_license | crouchred/img2url | ec7e9274ba2f5b15021965b3494ce96da3b80f79 | d317d27d8927624f0fdcf73ce6c5c16d3cfd7d21 | refs/heads/master | 2020-04-10T03:06:22.931641 | 2018-12-07T03:17:41 | 2018-12-07T03:17:41 | 160,760,849 | 0 | 0 | null | 2018-12-07T02:39:22 | 2018-12-07T02:39:22 | null | UTF-8 | Python | false | false | 2,391 | py | # -*- coding: utf-8 -*-
from __future__ import (
division, absolute_import, print_function, unicode_literals,
)
from builtins import * # noqa
from future.builtins.disabled import * # noqa
from tempfile import NamedTemporaryFile
import random
import string
import base64
import pytest
from img2ur... | [
"programmer.zhx@gmail.com"
] | programmer.zhx@gmail.com |
00c18797659e9dd2846a468f4a91c204477c5b34 | 5ae3bc1920fafc33693cdfa3928a48158aa6f725 | /563/563.py | 7a36bafd4463155409d5f74749b8c25c86689ec7 | [] | no_license | sjzyjc/leetcode | 2d0764aec6681d567bffd8ff9a8cc482c44336c2 | 5e09a5d36ac55d782628a888ad57d48e234b61ac | refs/heads/master | 2021-04-03T08:26:38.232218 | 2019-08-15T21:54:59 | 2019-08-15T21:54:59 | 124,685,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def findTilt(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
retur... | [
"jcyang@MacBook-Air.local"
] | jcyang@MacBook-Air.local |
619e9c696c4a361adf9c8907d8eac77d710902ea | b41f1ea0b23e90115a3cf983508fe75f2023d6ef | /Tally/opencount/opencount/specify_voting_targets/select_targets.py | 691a830cb17796d77e93edd816aade1f964ddcea | [] | no_license | FreeAndFair/evoting-systems | 3250a653d13016e8aeacbdc8fab6d8536a3f0ea3 | 84988fa53813b2ed846930e90ae3f953d01cf030 | refs/heads/master | 2018-10-28T20:11:11.574619 | 2018-08-22T21:00:16 | 2018-08-22T21:00:16 | 8,267,026 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 141,752 | py | import sys, os, time, math, pdb, traceback, threading, Queue, copy, textwrap
import multiprocessing, csv
try:
import cPickle as pickle
except ImportError:
import pickle
from os.path import join as pathjoin
sys.path.append('..')
import wx, cv, numpy as np, Image, scipy, scipy.misc
from wx.lib.pubsub import Pu... | [
"kiniry@acm.org"
] | kiniry@acm.org |
aad780c77bd68cbe3aca2ab016bb4aedf822e810 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn5/M-228.py | 28ec14812b0decedb82bfb5e86721302c836b662 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,466 | py | # Obvezen del
def unikati(s):
xs = []
for e in s:
if e not in xs:
xs.append(e)
return xs
def avtor(tvit):
return tvit.split(":")[0]
def vsi_avtorji(tviti):
s = []
for tvit in tviti:
s.append(avtor(tvit))
return unikati(s)
def izloci_besedo(beseda):
i = j =... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
6ecca778ed6a34b13e7cd83ca131937ed98a014a | 2773bf2a53a64ab44ba47c100fbb73187d93354a | /test/test_lsb_release.py | 478380d8e8b184ae2c031d6d9fb1e5fc1968e7a7 | [] | no_license | balabit-deps/balabit-os-7-lsb | 73c0a6fda68c4d847d43d2b9d3307ad23e5c29bc | 6cda662bfdeeee0bef37b3c1e86821cbb2072bdc | refs/heads/master | 2020-04-07T09:21:58.195001 | 2017-12-05T22:54:13 | 2018-07-20T19:16:45 | 158,249,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,836 | py | #!/usr/bin/python3
# coding=utf-8
import unittest
import lsb_release as lr
import random
import string
import os
import sys
import warnings
def rnd_string(min_l,max_l):
return ''.join( [random.choice(string.ascii_letters) for i in range(random.randint(min_l,max_l))])
def get_arch_distinfo():
# Copied verbatim ... | [
"testbot@balabit.com"
] | testbot@balabit.com |
9ab4e63e98acdc0ede42cb493cab7d0abdda6f41 | 1811ef650cff1dbf0e73bb7b90d6e671ada699d9 | /speach/__version__.py | 56294e44714053b09a6fa899ed435d89799d9dd7 | [
"MIT"
] | permissive | nickduran/speach | 8da8d20e5fb4795eccc99057080c8fffc220b9ed | 05e25138b419dfecc5f96b454b61d481a95e3345 | refs/heads/main | 2023-05-26T06:00:41.532391 | 2021-06-15T05:33:24 | 2021-06-15T05:33:24 | 381,417,392 | 1 | 0 | MIT | 2021-06-29T15:42:58 | 2021-06-29T15:42:58 | null | UTF-8 | Python | false | false | 900 | py | # -*- coding: utf-8 -*-
# This code is a part of speach library: https://github.com/neocl/speach/
# :copyright: (c) 2018 Le Tuan Anh <tuananh.ke@gmail.com>
# :license: MIT, see LICENSE for more details.
__author__ = "Le Tuan Anh"
__email__ = "tuananh.ke@gmail.com"
__copyright__ = "Copyright (c) 2018, Le Tuan Anh <tua... | [
"tuananh.ke@gmail.com"
] | tuananh.ke@gmail.com |
4b2c22ea97c6081de88619a4b1a0ede4c0ca1348 | cc8010890757670cc2933a6cc2477f3bc10f53b4 | /python/geneditidtools/get_data.py | 32b73a507fe872c74d702d4f62e6df2aad768129 | [
"MIT"
] | permissive | GenEditID/GenEditID | 209153fe16610afa4fe4ed38b34f82905a808dc1 | dd4f454bab1e9d1d64170a16eb7c247799afd436 | refs/heads/master | 2022-06-11T05:40:22.404699 | 2022-04-05T22:12:27 | 2022-04-05T22:12:27 | 183,217,466 | 0 | 2 | MIT | 2022-04-05T22:12:28 | 2019-04-24T11:44:44 | HTML | UTF-8 | Python | false | false | 2,512 | py | import os
import argparse
import pandas
import subprocess
import shutil
import gzip
from pathlib import Path
import geneditid.log as logger
from geneditid.config import cfg
def run_process(log, cmd, dry_run=True):
if not dry_run:
process = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr... | [
"pajanne@gmail.com"
] | pajanne@gmail.com |
cdf1aa18f2637488b927f81e1b53c1b40d319b18 | 69096ca0d67b3d6809a2fe05af51341df62ebc60 | /tibiapy/models/event.py | 4b5f126e048074622e45f3f9bd773a3312b36e33 | [
"Apache-2.0"
] | permissive | Galarzaa90/tibia.py | 6f648aff8b6fbac7be4886435711f7ff08420402 | f8c145dd597c558398bac50e035711e34863b571 | refs/heads/main | 2023-08-17T15:50:31.354488 | 2023-08-17T14:00:07 | 2023-08-17T14:00:07 | 143,892,750 | 30 | 12 | Apache-2.0 | 2023-08-24T17:24:19 | 2018-08-07T15:25:23 | Python | UTF-8 | Python | false | false | 2,504 | py | import datetime
from typing import Optional, List
from tibiapy.models import BaseModel
from tibiapy.urls import get_event_schedule_url
class EventEntry(BaseModel):
"""Represents an event's entry in the calendar."""
title: str
"""The title of the event."""
description: str
"""The description of th... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
8b83066b58c8832fd2ed754662b8d39d9f60975b | e14d3da0a697297fbbb75079395fc824e34cde72 | /ocaml/3.11.1/tasklets/backup.py | 96ce9c40effd22563aebf57650243adfdd38fa28 | [] | no_license | racktivity/ext-qp5-unstable-qpackages5 | 5be84d377e1d389e9b5922199e545abec206a1a7 | 369b9b2a8ad05d8bd6abedd7d3af07a9b329d8ef | refs/heads/master | 2021-01-10T04:50:55.759871 | 2012-06-04T16:11:33 | 2012-06-04T16:11:33 | 54,315,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
__author__ = 'amplidata'
__tags__ = 'backup',
def main(q, i, params, tags):
qpackage = params['qpackage']
backupurl=params['backupurl'] #e.g. ftp://login:passwd@10.10.1.1/myroot/ @point to doc about cloudfilesystem
if params['action']=="backup":
pass
if params['action'... | [
"devnull@localhost"
] | devnull@localhost |
5a7154dbbe545bd1f27db62c3236e70bbb03a201 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LdXYzf5d3xJgYZur8_16.py | abe941fa827b363ae2d9c71b9a701e21e5f48742 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | """
Create a function that takes three values:
* `h` hours
* `m` minutes
* `s` seconds
Return the value that's the **longest duration**.
### Examples
longest_time(1, 59, 3598) ➞ 1
longest_time(2, 300, 15000) ➞ 300
longest_time(15, 955, 59400) ➞ 59400
### Notes
No two durations will ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
033f2a2f14af23b00c1af3155fa5681d1d181ef9 | 25978f857bcd50b425481168f30f025771a657ad | /src/test/test_tfrecords.py | 75e4d687046e8f76f9b41bcd44b23448dea34cce | [
"MIT"
] | permissive | DeepLearningInMedicine/BTClassification | 81de836c18ef15d2064a718f0d68ebd1f377781b | ec98a242d4f215505f2640a8bdf12f2015bfd5c7 | refs/heads/master | 2020-03-11T14:01:19.799529 | 2018-04-13T18:12:43 | 2018-04-13T18:12:43 | 130,041,649 | 1 | 0 | null | 2018-04-18T09:53:23 | 2018-04-18T09:53:23 | null | UTF-8 | Python | false | false | 8,910 | py | import os
import numpy as np
from tqdm import *
import pandas as pd
import tensorflow as tf
from btc_settings import *
# # Path settings
# parent_dir = os.path.dirname(os.getcwd())
# input_dir = os.path.join(parent_dir, DATA_FOLDER, AUGMENT_FOLDER)
# label_file = os.path.join(parent_dir, DATA_FOLDER, LABEL_FILE)
# ... | [
"quqixun@gmail.com"
] | quqixun@gmail.com |
53397084a66e49b842443597d6d166e71c597ece | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/courses/urls_20210412142600.py | 8b0b7efaad01dd31d2638b7887b651d48c78295f | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.urls import path
from . import views
urlpatterns = [
path('mine/', views.ManageCourseListView.as_view(), name="manage_course_list"),
path('create/', views.CourseCreateView.as_view(), name='course_create'),
path('<pk>/edit/', views.CourseUpdateView.as_view(), name="course_edit"),
path('<pk>... | [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
13e482c59e12df4a48a9b402aa0c400716050055 | 7d91170c0c6b7abb0784a8521755aefee650f7e3 | /3WMvhCe5ZiVsEu8g/ARksNiS1EYfHhgbZ.py | fee809e1cc7629067ea4ae0588a79d57b5cea73f | [] | no_license | urlib/usi35g | e577ca090fc4a60b68662d251370a7cd7cc2afe3 | 46562fa29da32e4b75d8f8fd88496e95a3937099 | refs/heads/master | 2021-04-08T04:02:59.860711 | 2020-04-15T04:22:45 | 2020-04-15T04:22:45 | 248,737,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,336 | py | 𒌼㠤𨠎愼𪙆숆縉徍鍑㰐𭈯⠁ꔥ캳耟룉𭆃𗋗𠨲喳뙩㧽𐀛𘠝𩋴𣕶䛐螪Ὦ𤒗𫁥ᐦ𡾄𣯕𪕉㈉𩧻𬧩ꏀ즍𗢨𗿮펬𠰒𗔺𑠺ᔛ̫︧𫕢🎍ᨳ𦢹䱊鮸𢸓陞屽譕𥰹𧀘𦚕𢧇ቺ𘨳ª鎦ȿ𠪈𒈿𩡞𥱸𨐽𖢷𩈅𠓤𣈘𣀊㗧𐠘㧷𤩕𮠽鵩酔𨧊ᣆ䦁갃𘧣𨘞ᐂ𗿽𬽙𮠭𫿴𦤃霩𑄆㦴𩣗𤧲뛮🦕峁𫄌𢯴𥪭𢇼𮈣𡟁🎅𤎄𫇓骺𩚶᮹𬾊𐐽븅𡄡𤃩⎥𒋩𢵻𠳞쳅𦼵𗟮𢠿Ꮦ𬋉𗻩𮈅⦅𝐧𒌬숔𭢧鞷𩠈𮃋ℊﰋ𠄗𢡃𩔱𞤓𭃒樨𩃫𡹀𭲣𪋔君𡕑앖𩑅𫔃𭜻쩺깈𤠛킏𭵤𩳷ᅹ鄙𦁴𠪴敬𤘐𭴺𭇋𬠸𬋅槩豎但ᶓ𑈀𮪽𥍧𗎦𩐘𠕭𬇧𩦵𦃟𐆋𭧠𧗯𧥿𨔿𢫏�... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
f54cb6d137abc2a044e4124bf19daf6670e25a84 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/tests/io/formats/test_format.py | 73ad2c92b4c5233c74b7395626d8d306c535f49c | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d4eb1ef8a0b36a276ec1dc69679ce541f904e786ae325f22a2db1ccff83028aa
size 111859
| [
"github@cuba12345"
] | github@cuba12345 |
6fc3fa084b0b167e0fec77e17943303e9ee31e86 | 365dafff6bd700851b31cfd885fa03c12a1ac417 | /test/functional/rpc_signmessage.py | 4890dba1e0fac529314b1369846632e15df017f1 | [
"MIT"
] | permissive | TheBurningSavage/TheBurningSavage | b0f810f803937412af5f9256ac91eb8cbea00ee8 | dfc00e6c5acc192b4d8a6e8a8ded2efb1252c861 | refs/heads/master | 2020-06-25T14:16:26.676295 | 2019-09-13T09:14:35 | 2019-09-13T09:14:35 | 199,332,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,865 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2018 The TheBurningSavage Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC commands for signing and verifying messages."""
from test_framework.test_framework i... | [
"willythecat@protonmail.com"
] | willythecat@protonmail.com |
56baf75a073f0b07a19ac7ecd2442fc9f0d746c0 | 8808e1dde1ac315302c0ee57fadb32c041bb3dd8 | /german-alignment/run.py | 22f4dd9ae673841a7b5f6157526877f3ba9254c5 | [] | no_license | mlml/kaldi-gp-alignment | 3513818809634df5f65d29e8e46eccea20fbfa09 | d7b62f6d1346459ad4336d92aa76cd40ea43e036 | refs/heads/master | 2021-01-10T06:44:14.422663 | 2015-10-14T20:44:05 | 2015-10-14T20:44:05 | 44,275,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py |
import os
import sys
from collections import defaultdict
from textgrid import TextGrid, IntervalTier
def parse_ctm(ctm_path):
file_dict = defaultdict(list)
with open(ctm_path, 'r') as f:
for line in f:
line = line.strip()
line = line.split(' ')
filename = line[0]
... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
63855c717e36995add950dfc21ba41fee42e6072 | 04f4558aa0dc904b8d7c0ab79b80ec11c34f8ccf | /swagger_client/models/inline_response_200_45.py | 34a4b15a8c11998f5918fe3f551a443b1272a999 | [
"Apache-2.0"
] | permissive | scubawhere/scubawhere-api-python-client | 0fc23ffb97446b0bb0825c93528f954e7d642cf4 | 9f8578e251492c7667f785df7b7c9d66e71f5c8e | refs/heads/master | 2020-12-24T11:10:34.880348 | 2016-11-08T12:20:45 | 2016-11-08T12:20:45 | 73,180,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,243 | py | # coding: utf-8
"""
Scubawhere API Documentation
This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API
OpenAPI spec version: 1.0.0
... | [
"bryan@iqwebcreations.com"
] | bryan@iqwebcreations.com |
b5b79d006a1526a6219d384b11259ec3921c5322 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/query_device_simplify.py | 2e304bf337fd262773cba99f3cb012bce9dd2549 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 16,987 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class QueryDeviceSimplify:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribut... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
771dc87fd67bbc87453a422c054facee3c78c43e | 861781589f3f674fdcc34dc2b5f98ea06006c648 | /orderapp/migrations/0002_auto_20201028_0032.py | e51a59cecd9e1a25017186377a1bb707eca84e28 | [] | no_license | FedorPolyakov/geekshope_on_django | 7dd5133d85ffea910113a1c51684c34d8ca56229 | 2a432e2e581f64b2208447369eaa5f58accd000b | refs/heads/master | 2023-01-19T14:09:47.810521 | 2020-11-17T20:52:14 | 2020-11-17T20:52:14 | 296,665,989 | 0 | 0 | null | 2020-11-19T15:59:23 | 2020-09-18T15:53:43 | Python | UTF-8 | Python | false | false | 1,429 | py | # Generated by Django 3.1.1 on 2020-10-27 21:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0006_product_is_active'),
('orderapp', '0001_initial'),
]
operations = [
migrations.Alte... | [
"pismo.na.pochtu@gmail.com"
] | pismo.na.pochtu@gmail.com |
9870f9f88a5746c6350951a5f6d5eadbb1a9540f | 96538cc3eee3d73d429f3476d0e895be95d695e3 | /worker/news/main.py | 168efa63f44e7fec9b1e4e3df8286974fb1da461 | [] | no_license | FashtimeDotCom/distributed-spider | d9555670216e68d4ff031e466cbf3529d080a534 | 33292f098403fa73239e0c7353e4cc5918be981b | refs/heads/master | 2020-03-22T11:43:14.796426 | 2018-07-06T10:51:48 | 2018-07-06T11:34:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # -*- coding: utf-8 -*-
'''
Created on 2018-07-04 15:45
---------
@summary: 从master中取网页首地址
---------
@author: Boris
'''
import sys
sys.path.append('../')
import init
import pid
pid.record_pid(__file__)
import utils.tools as tools
from utils.log import log
from base.spider import Spider
from utils.ex... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
4e8ea7b0208106797b97138f04f0ce6fa022bf85 | a9823180c93f973a20b492af9181c30a51e1c221 | /debug.py | c044a4f9ba3acfab6f9f4c67a0dab1b416351bea | [
"MIT"
] | permissive | thirtytwobits/uavcan.org | 48f62675f21a5f550829d68ec9f84b7f07f073e6 | 1a16a190520ab751f8e31c02aaeec951c9a3fc19 | refs/heads/master | 2022-05-06T12:26:46.012683 | 2022-04-13T18:38:02 | 2022-04-13T18:38:02 | 170,823,712 | 0 | 0 | MIT | 2019-02-15T07:52:38 | 2019-02-15T07:52:37 | null | UTF-8 | Python | false | false | 472 | py | #!/usr/bin/env python3
import sys
import logging
import os
os.environ['DEBUG'] = '1'
LOG_FORMAT = '%(asctime)s %(levelname)-8s %(name)s: %(message)s'
log_level = logging.DEBUG if 'debug' in sys.argv else logging.INFO
logging.basicConfig(stream=sys.stderr, level=log_level, format=LOG_FORMAT)
sys.path.insert(0, os.pa... | [
"pavel.kirienko@gmail.com"
] | pavel.kirienko@gmail.com |
00daed5e30b686e85e499ae151d9ecac057a9b33 | f85d4c5b7ff8d5fba36ccebf8b8eda6bfcf99019 | /arche/models/tests/test_folder.py | cf2098f9997a6de9f69f8a6e53fa0878ffcbc8ea | [] | no_license | ArcheProject/Arche | 8289ebc6de652b786ba943fafb6ea8130e42ba24 | eb9924f72c167208265ac0a2c80504422e1897c9 | refs/heads/master | 2022-06-26T15:52:17.400944 | 2022-06-14T09:35:16 | 2022-06-14T09:35:16 | 18,967,966 | 3 | 0 | null | 2015-04-22T06:34:26 | 2014-04-20T16:01:52 | Python | UTF-8 | Python | false | false | 615 | py | from unittest import TestCase
from arche.interfaces import IArcheFolder
from pyramid import testing
from zope.interface.verify import verifyClass, verifyObject
class FolderTests(TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
@proper... | [
"robin@betahaus.net"
] | robin@betahaus.net |
c3e566c25eec2714a8aa97c11da237ad0b6a143d | 9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7 | /submission - Homework4/set2/PATRICK M BARBOUN_16936_assignsubmission_file_HW4/HW4/P4.py | 6a00e1fb338230ef6a7eeea443383c80c30fcb2a | [] | no_license | sendurr/spring-grading | 90dfdced6327ddfb5c311ae8f42ae1a582768b63 | 2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54 | refs/heads/master | 2020-04-15T17:42:10.781884 | 2016-08-29T20:38:17 | 2016-08-29T20:38:17 | 50,084,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | import numpy as np
def sincos(x):
a = np.sin(np.cos(x))
return a
x = np.array([1,2,3,4,5,6])
y = sincos(x)
print y | [
"sendurr@hotmail.com"
] | sendurr@hotmail.com |
4a89cbf78e998b518f507f6dedde62e18c37b532 | eac52a8ae7c539acedaedf8744bd8e20172f0af6 | /epi_solutions/binary_tree/smallest-subtree-with-all-the-deepest-nodes.py | 56c07341774dcb82fc85175510df5d4576742701 | [] | no_license | mshekhar/random-algs | 3a0a0f6e6b21f6a59ed5e1970b7a2bc2044e191f | 7c9a8455f49027a754038b23aaa2df61fe5397ca | refs/heads/master | 2020-03-26T16:29:42.694785 | 2019-07-18T20:57:55 | 2019-07-18T20:57:55 | 145,105,593 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def helper(self, root):
if not root:
return 0, None
left_depth, left_deepeset_node = self.he... | [
"mayank@moengage.com"
] | mayank@moengage.com |
38e576ecd0947e49c2db0af3fb903f16674a7332 | dcfac04f77ee9bc36c450da0a7fd7c410344d4d1 | /Plate Recognition/UI.py | b3927509443a93492d16350701095ab8d2c82e15 | [] | no_license | Bobby981229/Computer-Vision-Based-Vehicle-Integrated-Information-Collection-System | 8f5b47dd1c38e17bb87f846dba40323e2c8f9d25 | c64c81bb5812dbe0ddb0ce6d2a87322ed6de66af | refs/heads/master | 2023-04-24T16:27:32.521210 | 2021-05-12T19:16:35 | 2021-05-12T19:16:35 | 360,210,675 | 2 | 1 | null | 2021-04-22T12:13:44 | 2021-04-21T15:01:15 | Python | UTF-8 | Python | false | false | 16,169 | py | import tkinter as tk
import tkinter.messagebox
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename
import cv2 as cv
import numpy as np
from PIL import Image, ImageTk
from tensorflow import keras
from CNN import cnn_predict
from U_Net import u_net_predict
from location_c... | [
"729461836@qq.com"
] | 729461836@qq.com |
a4ae304676ff53c7cd64bb3eb676b62629f4f8b1 | a981d8862c8bf4926952f90e6ec04dce679c9a2c | /skdata/base.py | 1546da9ebfaea0e8c85f6f816f114c8779fbbca2 | [] | no_license | yamins81/skdata | 250352523b7cc1672bf6ba76ac22151179e32705 | 551f707e4183ac46af6a89026c89c9f522f0a6a5 | refs/heads/master | 2020-04-05T23:37:22.932007 | 2015-05-01T22:29:55 | 2015-05-01T22:29:55 | 2,699,514 | 0 | 1 | null | 2013-09-18T19:40:36 | 2011-11-03T02:09:40 | Python | UTF-8 | Python | false | false | 10,416 | py | """
Base classes serving as design documentation.
"""
import numpy as np
class DatasetNotDownloadable(Exception):
pass
class DatasetNotPresent(Exception):
pass
class Task(object):
"""
A Task is the smallest unit of data packaging for training a machine
learning model. For different machine lea... | [
"james.bergstra@gmail.com"
] | james.bergstra@gmail.com |
5fd9b93930a9768df0ae870e00bdd00b8021b6b6 | 0ca7c7bdb297439554777e126ae8a2999962b7fe | /venv/Lib/site-packages/gevent/tests/test__example_udp_server.py | 07d863762540271b1e7dea0d35100f429ca1934a | [] | no_license | YazLuna/APIExpressJobs | 6c0857f63180bf5163d11fa9d1a411e44a4ba46f | cd52bc8d0d60100091637ef79f78cc79d58a1495 | refs/heads/master | 2023-06-13T02:50:57.672295 | 2021-06-18T14:57:53 | 2021-06-18T14:57:53 | 367,244,876 | 0 | 1 | null | 2021-06-18T14:57:53 | 2021-05-14T04:05:43 | Python | UTF-8 | Python | false | false | 535 | py | import socket
from gevent.testing import util
from gevent.testing import main
class Test(util.TestServer):
example = 'udp_server.py'
def _run_all_tests(self):
sock = socket.socket(type=socket.SOCK_DGRAM)
try:
sock.connect(('127.0.0.1', 9000))
sock.send(b'... | [
"ale_200200@hotmail.com"
] | ale_200200@hotmail.com |
4a77dfb840602c3a1ea69030cb783630d378a69b | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /dive_into_python/kgp.py | 577a1559521a72f52510266b2f510aebab31bb0b | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,716 | py | #!/usr/bin/python
#filename:kgp.py
from xml.dom import minidom
import random
import toolbox
import sys
import getopt
_debug=0
class NoSourceError(Exception):pass
class KantGenerator:
'''generates mock philosophy based on a context-free grammar'''
def __init__(self, grammar, source=None):
self.loadGra... | [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
0e6181bcc7f4022fa1bfb9215f66358fb1fbf947 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_snacked.py | 45d305aaad9053ae01e84d243abe6642be1e7899 | [
"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 | 220 | py |
#calss header
class _SNACKED():
def __init__(self,):
self.name = "SNACKED"
self.definitions = snack
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['snack']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f8f265699c8e44ca88151cc21f3fb5cdbfdaeea1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2631/60747/257584.py | beaeba029f2abe3d32e519c36820c90d7d1d5c23 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | s=input().split(" ")
N=int(s[0])
G=int(s[1])
milk=[G for l in range(N)]
num=[]
count=0
for i in range(N):
num.append(input().split(" "))
for j in range(N):
for k in range(3):
num[j][k]=int(num[j][k])
num.sort()
for d in range(N):
a=milk.count(max(milk))
best=milk.index(max(milk))
milk[num[d]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b44468d2b24bbe806eca686c36379f02c9a5acc2 | 800b5166148d4e3cd03825d7d20e2900fbc6c789 | /app_common/migrations/0015_feedbacks_about_object_type.py | 25814c6692de563fc266846ee0ac2cdd8381c69b | [] | no_license | JiSuPiaoYi/dawufupin | 4ffc979a93502eb576776673c98aaeb16021827e | 57756a501436fabe9b27ebca2e80e60932da30dc | refs/heads/master | 2020-04-07T11:37:35.728108 | 2018-11-20T09:09:50 | 2018-11-20T09:09:50 | 158,334,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2018-09-28 21:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app_common', '0014_feedbacks_remarks'),
]
operations = [
migrations.AddFiel... | [
"360510132@qq.com"
] | 360510132@qq.com |
a2fb3c3846eb698405c231fc6512f0f11eb7f24b | 7ba672971ac7453d9026eb2f9cf4507bac134a94 | /st01.Python기초/0301수업/py11문자열/py11_09_format.py | 97c50eff88081faca5fc5bf8eae46374b72bbe06 | [] | no_license | parky83/python0209 | 5e806bc14679085ca1d1d4c5d59461abb4c8024e | 5159beb9c80f59b2c618eed040ffb4ffb69469c8 | refs/heads/master | 2021-01-01T10:34:39.047489 | 2020-08-15T03:41:41 | 2020-08-15T03:41:41 | 239,239,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # format 함수의 사용법을 익혀보자
# format() 함수로 숫자를 문자열로 변환하기
# format() 함수로 숫자를 문자열로 변환하기
# 정수
# 특정 칸에 출력하기
# 빈 칸을 0으로 채우기
# 기호와 함께 출력하기
# 조합하기
# 15칸 만들기
# 15칸에 부호 추가하기
# 15칸에 부호 추가하고 0으로 채우기
| [
"tt@gmail.com"
] | tt@gmail.com |
b4764ec5a518554f73560466e781d39533cba196 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /152/152.maximum-product-subarray.699806514.Accepted.leetcode.python3.py | ba0d37c0ac8d63dff9f8413a9708e951d3544b1e | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | class Solution(object):
def maxProduct(self, nums):
max_so_far, min_so_far, result = nums[0], nums[0], nums[0]
for index in range(1, len(nums)):
if nums[index] > 0:
max_so_far = max(max_so_far * nums[index], nums[index])
min_so_far = min(min_so_far * nums[... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
5472dd53d9f8c1cf0e8181de52297ae189580ff9 | f83f053278a036e18466d85585bc03a28c0f140a | /xsdata/codegen/handlers/attribute_restrictions.py | cf27e1d0045aaf0e265180f2ea1987505d025f1c | [
"MIT"
] | permissive | finswimmer/xsdata | dd951124e378bf9f4d8bd6939e4ebe542c677ee2 | eed822b83f362f48561a7d116e181a5422ff52dd | refs/heads/master | 2023-05-05T21:16:20.693559 | 2021-05-31T16:11:44 | 2021-05-31T16:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | from xsdata.codegen.mixins import HandlerInterface
from xsdata.codegen.models import Attr
from xsdata.codegen.models import Class
class AttributeRestrictionsHandler(HandlerInterface):
"""Sanitize attributes restrictions."""
__slots__ = ()
def process(self, target: Class):
for index, attr in enu... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
54bb59e1aa9b8b756b91237113e05b4270ca5bfe | f57529f95a0fd10676f46063fdcd273fb5a81427 | /boj/01001-02000/1914.py | 75afdaa28e8b881d375944ecb481c5e5941ab8cb | [] | no_license | hoyasmh/PS | a9b83b0044e483586590c9b7c6bf8a77236b67e7 | 6bbaa0ce77b2726f6af782af049d73720820f761 | refs/heads/master | 2023-04-23T10:43:27.349785 | 2021-05-17T13:43:53 | 2021-05-17T13:43:53 | 311,239,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | def h(n,a,b,c):
if n>0:
h(n-1,a,c,b)
print(a,c)
h(n-1,b,a,c)
s=int(input())
print(2**s-1)
h(s,1,2,3)
# def hanoi(n, a, b, c):
# if n > 0:
# hanoi(n - 1, a, c, b)
# print("%d번 원반을 %c에서 %c로 옮김"%(n, a, b))
# hanoi(n - 1, c, b, a)
#
# if __name__ == "__main__":
# ... | [
"hoyasmh@gmail.com"
] | hoyasmh@gmail.com |
a453a5dd1988f2b7a4930f00da957cce3e57d529 | 89d9f97464fe71cba6dc9d6a3f3b1f6a91bac523 | /cooler/create/_ingest.py | e1cb6a2234b23726edaf94d606050b4fae773ac5 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | sbreiff/cooler | f7b855ce47b1f511d59fbc21dba449e727bb23d7 | 5754c9ad9fa9dfaaa23e537ca7c05d76da87bcff | refs/heads/master | 2020-04-12T04:45:26.138522 | 2019-01-02T17:53:03 | 2019-01-02T17:53:03 | 162,304,766 | 0 | 0 | NOASSERTION | 2019-01-02T17:53:04 | 2018-12-18T15:00:41 | Python | UTF-8 | Python | false | false | 38,169 | py | # -*- coding: utf-8 -*-
"""
Contact Binners
~~~~~~~~~~~~~~~
Binners are iterators that convert input data of various flavors into a
properly sorted, chunked stream of binned contacts.
"""
from __future__ import division, print_function
from collections import OrderedDict, Counter
from bisect import bisect_left, bisec... | [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
08337b0bd47f2c40824bf33ed5cfb498412f19f5 | 1c21fa248091e31c362b95afafc5021211e85e63 | /invensis_pmc/inhouseapp/utils/decorators.py | ef84ceff1a3d3226cd385ba8f8ac51b6bf89d02d | [] | no_license | anudeepnaidu95/dev5 | 3d3252a51fccbb794e78a91681708e1b3c1ce0d4 | 7351244b79be242aa2cad36dbe1adca22a744edc | refs/heads/master | 2021-01-20T12:28:07.286078 | 2017-05-05T11:08:37 | 2017-05-05T11:08:37 | 90,365,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import timeit
import jsonpickle
from django.utils import six
from django.core.exceptions import PermissionDenied
from django.contrib.auth.decorators import user_passes_test
from django.core.urlresolvers import reverse
from django.conf import settings
from ... | [
"anudeepnaidu95@gmail.com"
] | anudeepnaidu95@gmail.com |
94d08669d7d91b6bae39af0f8cd3f736aa4d581e | 4794379ca67670b65097830df76dd5440c69ddf6 | /oop_advance/slots.py | 2dcea1fb857c1f05d25824b1cb714780f170d880 | [] | no_license | kk412027247/learn-python | f7e12c1b476e47a2a18c609a81dbfe8bd1e31a41 | 25bb231e62a17303ec543e41a18d9302dac9d607 | refs/heads/master | 2020-05-26T14:31:05.096302 | 2019-10-13T07:06:29 | 2019-10-13T07:06:29 | 188,265,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from types import MethodType
class Student(object):
pass
s = Student()
s.name = 'Michael'
print(s.name)
def set_age(self, age):
self.age = age
s.set_age = MethodType(set_age, s)
s.set_age(25)
print(s.age)
def set_score(self, score):
self.score = score
Student.set_score = set_score
s.set_scor... | [
"kk412027247@gmail.com"
] | kk412027247@gmail.com |
9ccf72911d2d92e9eb8901fb65d14b172b2d10df | be55991401aef504c42625c5201c8a9f14ca7c3b | /leetcode/graph/hard/dungeon_game_174/my_answer.py | 4d7e22d5b43386c062551f7d021dd7ac567375ab | [
"Apache-2.0"
] | permissive | BillionsRichard/pycharmWorkspace | adc1f8bb15b58ded489fc8dec0df397601823d2c | 709e2681fc6d85ff52fb25717215a365f51073aa | refs/heads/master | 2021-09-14T21:12:59.839963 | 2021-08-08T09:05:37 | 2021-08-08T09:05:37 | 143,610,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | # encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:
@software: PyCharm
@time: 2019/10/20 16:28
"""
class Solution:
def calculateMinimumHP(self, dungeon: list) -> int:
m, n = len(dungeon), len(dungeon[0])
# dp[x][y] 表示... | [
"295292802@qq.com"
] | 295292802@qq.com |
3107bcf162c8b6a6c5177db6cbf6585df3817cc6 | 083f0cd2cf53384802eaf4f3cd9cbc4f0f632be4 | /env/lib/python3.5/tokenize.py | 41ba11f6602911ba2ede6c462ed8694bf56719f4 | [] | no_license | billchen99/LabsTechChallenge | 527e3ae33d31dd1e35c1b17a89cd45770be07519 | c1a4c2fc028b5bd155ec4117c818accc501a5b52 | refs/heads/master | 2021-05-11T16:04:10.433404 | 2018-01-17T08:48:55 | 2018-01-17T08:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /home/bill/psi4conda/lib/python3.5/tokenize.py | [
"billchen99@gmail.com"
] | billchen99@gmail.com |
fab1af44d31dd57e504c8b276a0b0b78dae067e2 | c8c95520fb1a17d627a0256df2c6702f4f53403a | /10.6.3_exercises.py | 70ad860142aa2c9a7972a1446f9c1829e3d0fcd1 | [] | no_license | wsargeant/httlacs | 608f1b4b34c95f18f934f10883beb56a2895c269 | 3337b369c541e18d5ed9ecbca35494c3ebcfa591 | refs/heads/master | 2023-02-21T21:10:03.228762 | 2021-01-25T08:44:46 | 2021-01-25T08:44:46 | 284,936,152 | 0 | 0 | null | 2020-08-28T10:35:17 | 2020-08-04T09:32:38 | null | UTF-8 | Python | false | false | 2,406 | py | import turtle
turtle.setup(400,600)
wn = turtle.Screen()
wn.title("Tess becomes a traffic light")
wn.bgcolor("lightgreen")
tess = turtle.Turtle()
green_light = turtle.Turtle()
amber_light = turtle.Turtle()
red_light = turtle.Turtle()
def draw_housing():
""" Draw a housing to hold the traffic lights"""
tess.pe... | [
"69194027+wsargeant@users.noreply.github.com"
] | 69194027+wsargeant@users.noreply.github.com |
f7e37c2a90c62480274603a2d723babb7e5c0bf0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02743/s644313592.py | 035aeecce49eb8a0432c5a0407dd58feff435620 | [] | 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 | 367 | py | from typing import List
def main():
nums = [int(n) for n in input().split(' ')]
if si(nums):
print('Yes')
else:
print('No')
def si(nums: List[int]) -> bool:
result = False
a, b, c = nums
if 4 * a * b < (c - a - b) ** 2 and (c - a - b) > 0:
result = True
return ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
35f014f32beeaa20fc17beb68ae7b31007579727 | 958cbae5e11bd8116c9478b1c32b7c226fa68d38 | /myvenv/bin/pilprint.py | 73975b7983f252c90abe9835754750c65f3e0faf | [] | no_license | sarkmen/onedayschool | 0f49d26fae4a359d3e16b08efef0d951bf061b9e | 2bce3adf98bd1152a9aa5b30aaeb5b5885192b88 | refs/heads/master | 2021-01-21T04:50:26.946895 | 2016-07-19T05:42:39 | 2016-07-19T05:42:39 | 55,145,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,574 | py | #!/Users/Roadwalker/dev/onedayschool/myvenv/bin/python3
#
# The Python Imaging Library.
# $Id$
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo or two.
#
from __future__ import print_fun... | [
"beomjun.gim3@gmail.com"
] | beomjun.gim3@gmail.com |
de420c5cc26a3d0a32a181673551d55cbad73dee | b44bb9a3e2d621d3311597eaf89b53e9dc4761ca | /verpy/pybin3/assigns.py | 1b1a7e59e34a0e2ecf32068515df60e01887a3cc | [
"MIT"
] | permissive | greenblat/vlsistuff | e8ea9401a79bb9e770ab7692e672d14696611be7 | ed54a68a3099c89a3bbbff498be206151e5ca98e | refs/heads/master | 2023-09-01T07:30:57.223756 | 2023-08-23T09:59:04 | 2023-08-23T09:59:04 | 110,414,867 | 43 | 11 | null | 2021-04-19T06:36:36 | 2017-11-12T07:52:54 | Python | UTF-8 | Python | false | false | 13,814 | py |
import logs
import module_class
def help_main(Env):
Mod = Env.Current
buildTranslation(Mod)
logs.log_info('translation has %d members'%(len(TRANSLATIONS.keys())))
Insts = list(Mod.insts.keys())
# gatherAssigns(Mod)
for Inst in Insts:
Obj = Mod.insts[Inst]
Type = Obj.Type
... | [
"greenblat@mac.com"
] | greenblat@mac.com |
0c0eeb57c9fdcdcb8ca39adf4dd38098bc1c6d90 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/1913. Maximum Product Difference Between Two Pairs/1913.py | 95b10944b5dc495737e66afb6181f548621313b9 | [
"MIT"
] | permissive | walkccc/LeetCode | dae85af7cc689882a84ee5011f0a13a19ad97f18 | a27be41c174565d365cbfe785f0633f634a01b2a | refs/heads/main | 2023-08-28T01:32:43.384999 | 2023-08-20T19:00:45 | 2023-08-20T19:00:45 | 172,231,974 | 692 | 302 | MIT | 2023-08-13T14:48:42 | 2019-02-23T15:46:23 | C++ | UTF-8 | Python | false | false | 420 | py | class Solution:
def maxProductDifference(self, nums: List[int]) -> int:
max1 = -math.inf
max2 = -math.inf
min1 = math.inf
min2 = math.inf
for num in nums:
if num > max1:
max2 = max1
max1 = num
elif num > max2:
max2 = num
if num < min1:
min2 = min1... | [
"me@pengyuc.com"
] | me@pengyuc.com |
a14d6b0e0748fc1cda2fb198decd0056b8b3d273 | 327c11245c022825975b5e3c5e99be01c3102cd3 | /chatterbot/stemming.py | b353587e8dc19156199faf119162233bcc327271 | [
"BSD-3-Clause"
] | permissive | KevinMaldjian/ChatterBot | 68c9f7ee5592e9fc06deea99c16b00cf6fc21fc4 | 91975d04efe7b6a63aaa379ed682a8dae64c47cf | refs/heads/master | 2020-04-10T11:47:41.920838 | 2018-12-08T15:59:28 | 2018-12-08T16:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,726 | py | import string
from nltk import pos_tag
from nltk.corpus import wordnet, stopwords
class SimpleStemmer(object):
"""
A very simple stemming algorithm that removes stopwords and punctuation.
It then removes the beginning and ending characters of each word.
This should work for any language.
"""
... | [
"gunthercx@gmail.com"
] | gunthercx@gmail.com |
cba3f9fae1a60a8fcceec19e2d36d35d7fac6b27 | 70263abbb3c7efabf4039f5861e4d417926c13af | /nova/nova/cmd/conductor.py | 94377f7045a3003d21fdfdad38e524c6b1d0a07b | [
"Apache-2.0"
] | permissive | bopopescu/keystone_hierarchical_projects | 9b272be1e3069a8ad1875103a1b7231257c90d9c | bf5cbb2e1c58dae17e77c2ec32ed171ec3104725 | refs/heads/master | 2022-11-21T04:33:35.089778 | 2014-02-24T19:23:47 | 2014-02-24T19:23:47 | 282,174,859 | 0 | 0 | null | 2020-07-24T09:12:32 | 2020-07-24T09:12:31 | null | UTF-8 | Python | false | false | 1,399 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 IBM Corp.
#
# 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
#
# ... | [
"tellesnobrega@gmail.com"
] | tellesnobrega@gmail.com |
3ca4b1890044c389fe0a23bd35ee50baa6b78a33 | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/small-scale-multiobj/pod150_milp/hybrid/runsimu7_hybrid.py | 6c259e8aadbfc3137fa5ac817b5354e031843b24 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize hybrid
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch4_decomposition import Arch4_decompose
from arch1 import ModelSDM_arch1
from a... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
0f8b912ba66a1173d67a43cd005f23f5bc24a832 | 7fcdb9f3d8dfd39bf196fdb473fba5566cd97500 | /integration/tmux/create_pane_spec.py | e171e83b4763dbcc3d38ab2830bea6ece428ed02 | [
"MIT"
] | permissive | tek/myo-py | 4ccf7892a8317d54a02ed8f3d65ea54f07d984b4 | 3772a00a021cbf4efb55786e26881767d854afe8 | refs/heads/master | 2021-10-19T20:45:24.774281 | 2019-02-23T15:16:58 | 2019-02-23T15:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from kallikrein import Expectation, k
from kallikrein.matchers.typed import have_type
from amino import do, Do
from chiasma.util.id import StrIdent
from amino.test.spec import SpecBase
from ribosome.nvim.io.compute import NvimIO
from ribosome.nvim.api.command import nvim_command
from ribosome.test.klk.matchers.prog ... | [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
b6f245ee3c5b5ad2ae95c0b7ff11b2cf6c9b9995 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_docketed.py | 47549313b856590ea1a3308650f7333c6d6d0449 | [
"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 | 224 | py |
#calss header
class _DOCKETED():
def __init__(self,):
self.name = "DOCKETED"
self.definitions = docket
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['docket']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
827a4447791588d49123ef4cf9cd00dfc7a5e4b2 | f63fdd673e5b9881a0395be83e0a6b5ccc7edbdb | /drawing_pallet_jack.py | 435be0e9d5a166434d1a3ffe524eb0c5a59ad9c8 | [] | no_license | karry3775/Motion-Planning-Python | 63ad4bf928c57b9ea6b8c19fceea16dbc2adb783 | 20ed30526bd03380ead8b29357e5bf7eb291ba9b | refs/heads/master | 2023-02-08T18:19:26.644696 | 2020-12-30T22:22:36 | 2020-12-30T22:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | import matplotlib.pyplot as plt
import numpy as np
import math
def wrapToPi(theta):
return math.atan2(math.sin(theta),math.cos(theta))
def dpj(x,y,theta,steer):
# plotting the center point
wd = 1.5
plt.plot(x,y,'co')
plt.arrow(x,y,math.cos(theta),math.sin(theta),width=0.01,color='orange')
plt... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
44ac6e76c3e0b9341d50614fe10d9fd3728459fb | 754fb49b8c3e41a9790fadb92f27571f175150fb | /text_matching/20125222/ESIM/test.py | 923f3f093fa5cb140b83a64a1ebcd815bc979fcd | [] | no_license | HuihuiChyan/BJTUNLP_Practice2020 | 8df2c956a9629c8841d7b7d70d2ea86345be0b0e | 4ba1f8f146f5d090d401c38f5536907afca4830b | refs/heads/master | 2023-02-16T17:47:55.570612 | 2021-01-13T09:40:20 | 2021-01-13T09:40:20 | 295,123,517 | 21 | 3 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import argparse
import torch
import utils
import model
import train
import test
#设置设备
def test(args,device,net,train_iter):
net.load_state_dict(torch.load(args.save_path))
print(net)
net.eval()
for feature,_ in train_iter:
f=open("result.txt")
feature = feature.transpose(1, 0)
fe... | [
"noreply@github.com"
] | HuihuiChyan.noreply@github.com |
891ab579b163f740e989fdea514ebf2c0ec2931d | 3b944f1714c458c5d6d0e84d4b1498f2b59c4ef7 | /67. Add Binary.py | 0feccbd47c3a2de8dcae01d332f475c8c2a2cfb2 | [] | no_license | shiannn/LeetCodePython | e4d66f108200d8329616b3e45b70c3f8fc4cd9ed | 6e4472d41904e60ff9d70b5f3979c5dcae98c838 | refs/heads/master | 2021-06-26T03:24:03.079077 | 2021-02-24T16:54:18 | 2021-02-24T16:54:18 | 213,206,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | class Solution:
def addBinary(self, a: str, b: str) -> str:
carry = 0
bit = 0
ret = ""
all_len = max(len(a), len(b))
for i in range(1, all_len+1):
if len(a) - i >= 0:
aa = a[len(a) - i]
else:
aa = 0
if len(b)... | [
"b05502087@ntu.edu.tw"
] | b05502087@ntu.edu.tw |
fe6302586a28e6dbbb50242710d80872542efaae | 15863dafe261decf655286de2fcc6e67cadef3d8 | /website/apps/loans/migrations/0003_loanprofilev1_assets_verification_method.py | 56d08ce867e953afb77df96d9ab32e6fa5decfae | [] | no_license | protoprojects/worksample | 5aa833570a39d5c61e0c658a968f28140694c567 | f1a8cd8268d032ea8321e1588e226da09925b7aa | refs/heads/master | 2021-06-26T17:34:10.847038 | 2017-09-14T00:14:03 | 2017-09-14T00:14:03 | 103,463,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-31 07:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loans', '0002_employmentv1_is_current_employment'),
]
operations = [
migrat... | [
"dev@divethree.com"
] | dev@divethree.com |
6e273e8d146220a1751305959dc5d98e59fc206d | 3052e12cd492f3ffc3eedadc1bec6e6bb220e16b | /0x06-python-classes/102-square.py | 67848441ec4aa157cc06583f7c91a89207b42a60 | [] | no_license | JoseAVallejo12/holbertonschool-higher_level_programming | 2e9f79d495b664299a57c723e4be2ad8507abb4f | f2d9d456c854b52c932ec617ea3c40564b78bcdb | refs/heads/master | 2022-12-17T22:36:41.416213 | 2020-09-25T20:08:41 | 2020-09-25T20:08:41 | 259,383,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | #!/usr/bin/python3
# 102-square.py
# jose vallejo <1545@holbertonschool.com
""" Define a new class """
class Square(object):
""" create Square class """
def __init__(self, size=0):
""" inicialice size var """
self.__size = size
@property
def size(self):
""" getter method for ... | [
"josealfredovallejo25@gmail.com"
] | josealfredovallejo25@gmail.com |
8941614c0c690934b59b84074e2f8ef37b10da44 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_319/ch15_2020_09_30_19_19_59_252844.py | c9f8753e8fea96067b6cc7e293c8ac16eee99427 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | Qual_o_seu_nome = input('Qual o seu nome?')
if Qual_o_seu_nome == Chris:
return 'Todo mundo odeia o Chris'
else:
return 'Olá, NOME'
print(Qual_o_seu_nome) | [
"you@example.com"
] | you@example.com |
e86f5382c89102f0d86b4c313724b8f605b98150 | 63050299cfe58aebf6dd26a5178051a839de8c39 | /game/game_data.py | 92697b75c725f4e4cf5f6c34508d70c35701a5bd | [] | no_license | stmobo/Split-Minded | df12a6a60eb086294f2a7e6f14ad137cd628228c | 0307ff4c9777f08d582147decd4dc762c40b2688 | refs/heads/master | 2020-03-12T04:25:04.820340 | 2018-04-25T01:47:17 | 2018-04-25T01:47:17 | 130,444,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import renpy.exports as renpy
# the game runs at 1280x720 by default
# use roughly half of the total screen size for the control game view
tile_size = 50 # px square
field_sz_tiles = [30, 30]
field_size = [field_sz_tiles[0]*tile_size, field_sz_tiles[1]*tile_size]
screen_total_size = [1280, 720]
gameplay_screen_size = ... | [
"stmobo@gmail.com"
] | stmobo@gmail.com |
fe1df3ac060074c2d4d8ce317c719e6378728b98 | cf62f7a7f9e13205fe83957fb7bfcf1b097bf481 | /src/hub/dataload/sources/reactome/__init__.py | ece58d7abdd9805c6dc4ca3d07d6388273c83b1b | [
"Apache-2.0"
] | permissive | biothings/mygene.info | 09bf19f481c066789a4ad02a0d2880f31dae28f6 | fe1bbdd81bc29b412ca4288d3af38e47c0602ab7 | refs/heads/master | 2023-08-22T21:34:43.540840 | 2023-08-08T23:25:15 | 2023-08-08T23:25:18 | 54,933,630 | 89 | 20 | NOASSERTION | 2023-07-18T23:53:49 | 2016-03-29T00:36:49 | Python | UTF-8 | Python | false | false | 70 | py | from .dump import ReactomeDumper
from .upload import ReactomeUploader
| [
"slelong@scripps.edu"
] | slelong@scripps.edu |
d94a5cdac376d139ebc4289f0fd4dfaee5f315e9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/664.py | 3f8b42535772cdcba828eea3e04f7364e212ad5d | [] | 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 | 1,624 | py |
__author__ = 'sergeyy'
import time
import numpy as np
def getUsedH(a):
res = set()
for l in a:
res = res | set(l)
return res
def delLine(a, l):
del a[l]
return a
def delColl(a, c):
for l in a:
del l[c]
return a
def isCuutbl(line):
if line[0] >= max(line):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
48a6fbcf96afb2fa41e94c660956111df1d9812a | 7f2fc00415c152538520df84387549def73c4320 | /p0_data_prepare/path2test_list.py | 2fb54f06df155865096f47ccd75db55e4e20728c | [
"MIT"
] | permissive | mxer/face_project | da326be7c70c07ae510c2b5b8063902b27ae3a5b | 8d70858817da4d15c7b513ae492034784f57f35f | refs/heads/main | 2023-08-06T09:24:49.842098 | 2021-09-18T08:32:18 | 2021-09-18T08:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import os
import argparse
def main(args):
# to list.txt
root_ = args.folder_dir
files = []
for root, dirs, file in os.walk(root_):
for f in file:
files.append(os.path.join(root, f))
folder_ = os.path.split(args.txt_dir)[0]
if not os.path.exists(folder_):
os.makedir... | [
"chen19940524@live.com"
] | chen19940524@live.com |
1e7178314f6883226677aa0092bc7b7f7415728c | b75237a8c9436cc31458ca20e93b4f3b46703b63 | /src/oaipmh/tests/createdata.py | 541e06ace459ffeb7572f91bfc20b62f10fa0566 | [
"BSD-3-Clause"
] | permissive | ulikoehler/pyoai | 09ebc795f707e829de1587f8cdec011201d46f75 | 461ccf81526a5ca98623dd39e210cded4fb6263d | refs/heads/master | 2022-05-10T19:36:54.980792 | 2022-03-09T16:10:36 | 2022-03-09T16:10:36 | 30,493,052 | 1 | 2 | NOASSERTION | 2022-03-09T16:10:37 | 2015-02-08T14:14:53 | Python | UTF-8 | Python | false | false | 2,109 | py | from fakeclient import FakeCreaterClient
# tied to the server at EUR..
client = FakeCreaterClient(
'http://dspace.ubib.eur.nl/oai/',
'/home/faassen/py/oai/tests/fake2')
print "GetRecord"
header, metadata, about = client.getRecord(
metadataPrefix='oai_dc', identifier='hdl:1765/315')
print "identifier:", he... | [
"none@none"
] | none@none |
33453a0ed6537cf87445691a5ccc4ad2c51ff81f | bb51bebd6ff9fccc5a639d621190d46bb66e4456 | /bill_calc.py | 5e030d865a88fbcc2b69b66232ef3045b6e47f85 | [] | no_license | annalisestevenson/bill_lab | c7cb1b42844147378d336bfcbae1f481eb14b65c | c4f6badc3d7c1a73d446f0e43bee74d3f57e2f3f | refs/heads/master | 2016-09-13T23:38:25.760794 | 2016-05-06T02:50:00 | 2016-05-06T02:50:00 | 58,176,103 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | tip_percentage= 18
bill_amount= 10
def calculate_bill():
return (tip_percentage*.01* bill_amount)+bill_amount
def calc_alone_bill():
return bill_amount
def tip_ave():
return (.18*bill_amount) + bill_amount
def main():
global bill_amount
bill_amount= float(raw_input("How much was your bill, not including tip?")... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
d8d595e7f69bb51aaf3a7bcc753fd581253604dd | 1ff265ac6bdf43f5a859f357312dd3ff788804a6 | /cards.py | ebaa6094cc4fbb22b25c24cc4dcee8020ccc2a4a | [] | no_license | sgriffith3/july_pyb | f1f493450ab4933a4443518863f772ad54865c26 | 5e06012ad436071416b95613ed46e972c46b0ff7 | refs/heads/master | 2022-11-19T04:58:41.632000 | 2020-07-17T19:46:44 | 2020-07-17T19:46:44 | 279,335,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import random
class DeckofCards:
def __init__(self):
cards = []
nums = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K', 'A']
for n in nums:
for suit in ['spades', 'diamonds', 'clubs', 'hearts']:
card = f"{n} of {suit}"
cards.append(card)
self.... | [
"sgriffith@alta3.com"
] | sgriffith@alta3.com |
dfe90b2f77adbed5cee3c8bf22fc1cadf07db007 | a281d09ed91914b134028c3a9f11f0beb69a9089 | /contrib/capitalone_dataprofiler_expectations/capitalone_dataprofiler_expectations/metrics/data_profiler_metrics/data_profiler_profile_percent_diff.py | 74cfa564650c69823f7fd47fecd0d9e533bd6e47 | [
"Apache-2.0"
] | permissive | CarstenFrommhold/great_expectations | 4e67bbf43d21bc414f56d576704259a4eca283a5 | 23d61c5ed26689d6ff9cec647cc35712ad744559 | refs/heads/develop | 2023-01-08T10:01:12.074165 | 2022-11-29T18:50:18 | 2022-11-29T18:50:18 | 311,708,429 | 0 | 0 | Apache-2.0 | 2020-11-10T15:52:05 | 2020-11-10T15:52:04 | null | UTF-8 | Python | false | false | 4,150 | py | import copy
from typing import Optional
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import ExecutionEngine, PandasExecutionEngine
from great_expectations.expectations.metrics.metric_provider import metric_value
from great_expectations.... | [
"noreply@github.com"
] | CarstenFrommhold.noreply@github.com |
2e75e8e720652926e2a683efdef81ac85dc0650e | e23512edf95ea66640eab85adb8ca0c24ae6e3f7 | /tensorflow/tools/docs/parser.py | 3db164c2b5b78dbcb3c408ce89c067d33c2a2af4 | [
"Apache-2.0"
] | permissive | snuspl/tensorflow | 755ac46c3163adb119de0755ed706b1c960991fb | 212d4e9e5f4093ecb90e5b7837d4e02da7506228 | refs/heads/r1.6 | 2021-06-25T18:03:17.625202 | 2018-12-30T09:35:50 | 2018-12-30T09:35:50 | 134,066,972 | 1 | 3 | Apache-2.0 | 2020-06-10T06:12:19 | 2018-05-19T14:02:25 | C++ | UTF-8 | Python | false | false | 53,772 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
4acd9eeaf1e4d74b16644837730b5b590e581b08 | f7dd190a665a4966db33dcc1cc461dd060ca5946 | /venv/Lib/site-packages/rx/linq/observable/fromiterable.py | d7cb23a2d561fb56e33b039fe26c8d9f34747115 | [] | no_license | Darwin939/macmeharder_back | 2cc35e2e8b39a82c8ce201e63d9f6a9954a04463 | 8fc078333a746ac7f65497e155c58415252b2d33 | refs/heads/main | 2023-02-28T12:01:23.237320 | 2021-02-02T17:37:33 | 2021-02-02T17:37:33 | 328,173,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | from rx import config
from rx.core import Observable, AnonymousObservable
from rx.concurrency import current_thread_scheduler
from rx.disposables import MultipleAssignmentDisposable
from rx.internal import extensionclassmethod
@extensionclassmethod(Observable, alias=["from_", "from_list"])
def from_iterable(cls, iter... | [
"51247000+Darwin939@users.noreply.github.com"
] | 51247000+Darwin939@users.noreply.github.com |
c263915915e3ecdd4dfe80ac85a6252e793db04b | 2d23c271ec1a226bb345c23d7b2671ec021e9502 | /N-Queens II.py | 0e810b3a5a8215fc322e50aa8bbaad18095b027a | [] | no_license | chenlanlan/leetcode | 2e6aec0846ed951466bcd2c2e4596c998faca8e4 | d02478853c32c29477f53852286c429c20f1424e | refs/heads/master | 2016-09-08T05:07:46.904441 | 2015-07-12T05:41:15 | 2015-07-12T05:41:15 | 32,845,795 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #!/usr/bin/python
class Solution:
# @param {integer} n
# @return {integer}
def __init__(self):
self.ans = 0
def queens(self, board, n, curLevel):
if curLevel == n:
self.ans += 1
return
for i in range (n):
valid = True
for ... | [
"silan0318@163.com"
] | silan0318@163.com |
d9fe9d52411101f054693c8637b85329e64ad2f7 | 6051b9afd2969b65a055255d8fcde0555c62fc44 | /shop/admin.py | 0b0c0d68b8d7a21f803996bbbc85e35658b943f1 | [] | no_license | nazmul199512/django-ecommerce-app | 33a66f8efa9d63fc1fbf09d7e34d8ea74ffab63c | 6e48bdb86e7f04d7741eb0d302ee909ce99d6b88 | refs/heads/master | 2022-05-09T06:26:02.349432 | 2020-04-25T18:54:48 | 2020-04-25T18:54:48 | 258,850,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.contrib import admin
from .models import Product, Contact
admin.site.register(Product),
admin.site.register(Contact)
| [
"nazmul199512@gmail.com"
] | nazmul199512@gmail.com |
e27814dfaf0caaa92047a775a4c6e4f33ed268a1 | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/nonparametric/tests/test_kernels.py | b113306af1f38c208b9b5187b53a94b2ceb23ab2 | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 4,996 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 14 17:23:25 2013
Author: Josef Perktold
"""
from __future__ import print_function
import os
import numpy as np
from statsmodels.sandbox.nonparametric import kernels
from numpy.testing import assert_allclose, assert_array_less
DEBUG = 0
curdir = os.path... | [
"randybrown18@me.com"
] | randybrown18@me.com |
21668d9f7981e397a1a67b0e5002313b2d9129a6 | c5ff781994b48e4699e6a4719951c22badf76716 | /conda_package_handling/utils.py | 209b3d5d941beafdf7796735fcb2187e5c6f6681 | [
"BSD-3-Clause"
] | permissive | soapy1/conda-package-handling | 1145b6762b47bc4d1dd85dd9319954b8f7b044a0 | bf21ee30a73b45d493ba0679bb51fbced4faf824 | refs/heads/master | 2020-05-19T04:12:19.773121 | 2019-02-13T16:23:53 | 2019-02-13T16:23:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,409 | py | import contextlib
import hashlib
import os
import re
import shutil
import warnings as _warnings
from six import string_types
try:
from tempfile import TemporaryDirectory
except ImportError:
from tempfile import mkdtemp
class TemporaryDirectory(object):
"""Create and return a temporary directory. ... | [
"msarahan@gmail.com"
] | msarahan@gmail.com |
93229b77609a873669a124b6ac832d479c463898 | f734b77edf3e58a80d58433244375d2a70e8471a | /pages/urls.py | fd0d178a0bec5395992d54c6ebe4bae4431601e0 | [] | no_license | akjasim/cb_dj_auth_login_logout | 6751c6cb74ec57ca391e9205d45abd15e38612ea | f6201a7a9240b05d35dd70f713a8f4dc02209e54 | refs/heads/master | 2022-07-14T08:25:12.570455 | 2020-05-12T07:08:25 | 2020-05-12T07:08:25 | 263,248,446 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.urls import path
from pages import views
urlpatterns = [
path('', views.home)
] | [
"jasimjasim786@gmail.com"
] | jasimjasim786@gmail.com |
eaed488643b5678c463000200f53b36f46b825ce | 1576481f1e922a56962fce7cdf12745ec94d29d0 | /pywemo/ouimeaux_device/insight.py | 66ea79f45fde64eb9ce078ca0e1c7643a9cc77a2 | [
"BSD-3-Clause",
"MIT"
] | permissive | tomwilkie/pywemo | c5478fe6c8b74909716e956ddd0495eae459cecc | 6e48ef0e7a5430b7f028a82f82b682b889d21829 | refs/heads/master | 2021-01-17T17:31:12.205633 | 2015-04-18T00:54:09 | 2015-04-18T00:54:09 | 28,048,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from datetime import datetime
from .switch import Switch
class Insight(Switch):
def __repr__(self):
return '<WeMo Insight "{name}">'.format(name=self.name)
@property
def insight_params(self):
params = self.insight.GetInsightParams().get('InsightParams')
(
state, # 0... | [
"Paulus@PaulusSchoutsen.nl"
] | Paulus@PaulusSchoutsen.nl |
acb012a38a19f295e6d2b0a0acab5cde51f0a9f4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2338/60763/273941.py | dfb9cb96f0d7d1e3c021894db75f11a1b60bd05f | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | T = int(input())
for i in range(T):
nx = list(map(int, ('' + input()).split(' ')))
n,x = nx[0],nx[1]
a = list(map(int, ('' + input()).split(' ')))
isContain = False
for j in range(n):
for k in range(n):
if j ==k:
continue
if a[j] + a[k] == x:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7a98a4faf482eda836808da7fca33248732e244b | b6cac88da54791fe3b1588882ad13745d7a72a31 | /visualize/migrations/0003_bookmark_description.py | aca98a7a7cd07ebcf5658f82adfb7fccaf05b921 | [] | no_license | MidAtlanticPortal/mp-visualize | d662352a344c27c1493bcde34664a89c08453e8d | 300281f461aced50fd8a57e2dfbd5b8c75d4e911 | refs/heads/main | 2022-11-10T18:28:13.699794 | 2021-05-13T16:24:23 | 2021-05-13T16:24:23 | 44,761,880 | 1 | 1 | null | 2022-10-15T00:27:09 | 2015-10-22T17:32:28 | JavaScript | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('visualize', '0002_content'),
]
operations = [
migrations.AddField(
model_name='bookmark',
name='desc... | [
"ryan.d.hodges@gmail.com"
] | ryan.d.hodges@gmail.com |
339afdf3af2d30a40f3ab955bf5ce4d621a502d1 | b16e5e9d5ec0d49f8f4e85b7f9aaa4d60c4842fa | /calculator_proj/urls.py | 392ef641536dcf2d83b1069299a52a1bc4231294 | [] | no_license | leongus1/calc_proj | db9eb9546ef54f00dcc12a9fbaa23728e8c6383c | 607b16b26037fba4bf959244f4bf4662b86fd7ad | refs/heads/master | 2023-01-22T17:54:08.384028 | 2020-11-20T05:22:53 | 2020-11-20T05:22:53 | 314,307,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """calculator_proj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"leongus1@gmail.com"
] | leongus1@gmail.com |
44050fcf2efb032490eda335ee86a27171c500a6 | 152f54367e5a9f633217f5d1c9f327158d90bc85 | /sms.py | fac199f987b086c76ffb26f677a537be08f50c36 | [] | no_license | makalaaneesh/python-scripts | cf506bc62cb01f56367a510a81132ec5568bca98 | 40750a0a24db8c022b0fe1b16992d57817b764c2 | refs/heads/master | 2021-01-18T21:35:30.682773 | 2016-04-29T19:17:05 | 2016-04-29T19:17:05 | 29,910,777 | 0 | 2 | null | 2015-11-12T16:00:48 | 2015-01-27T11:17:06 | Python | UTF-8 | Python | false | false | 397 | py | headers = {
"X-Mashape-Key": "KEY"
}
import requests
message = "Double check. i could spam you you know"
semi_colon = '%3B'
phone = 'xx;xx'
username = 'phonenumber'
password = 'password' #1450
response = requests.get("https://freesms8.p.mashape.com/index.php?msg="+message+"&phone="+phone+"&pwd="+password+"&uid="+... | [
"makalaaneesh@yahoo.com"
] | makalaaneesh@yahoo.com |
0ae02dca88b48b82467eec4cc534e533f872f722 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/terminado/uimodule.py | 584259c87499503331c62bd650f9b84fe6358e97 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 1,012 | py | """A Tornado UI module for a terminal backed by terminado.
See the Tornado docs for information on UI modules:
http://www.tornadoweb.org/en/stable/guide/templates.html#ui-modules
"""
# Copyright (c) Jupyter Development Team
# Copyright (c) 2014, Ramalingam Saravanan <sarava@sarava.net>
# Distributed under the terms of... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
8d3cdc75dc12985fae9f51ea8f9279df7717d4ba | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/learnedlspindex.py | 3c6d7aba9e95f03e6a73232b9e12d28bd68c0c92 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 2,468 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
6f403e6bceb52c0706ae8c96e1056976c974d6cc | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/scaleform/daapi/view/lobby/MinimapLobby.py | 32508605dd055d92317f7e646f0d28a40723876c | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 3,856 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/MinimapLobby.py
import ArenaType
from gui.Scaleform.daapi.view.meta.MinimapPresentationMeta import MinimapPresentationMeta
from gui.Scaleform.locale.RES_ICONS import RES_ICONS
from helpers import depen... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
90c9232164970d90d692cc1657a3835b8b64f6ad | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/93666/snippet.py | c0127e80358508837ecd626a3fa2379bf4e75d2d | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 702 | py | def format_filename(s):
"""Take a string and return a valid filename constructed from the string.
Uses a whitelist approach: any characters not present in valid_chars are
removed. Also spaces are replaced with underscores.
Note: this method may produce invalid filenames such as ``, `.` or `..`
When I use this met... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
5e4805054d945c675d646fdf4e1f6df585066afe | 30fcd4c53519cd17497106cbe963f4f28d5c4edd | /shopping_list.py | d52b1975c3a343ac0640ff59620aa3bf1aba9b94 | [] | no_license | aymeet/shopping_list | 1e0300a85cf7443662c1829f5a73ae01b739a99b | c6d2252d1211621e8e056d51d6cbb05abe0a1a40 | refs/heads/master | 2021-01-20T04:09:46.330549 | 2017-04-28T00:56:49 | 2017-04-28T00:56:49 | 89,649,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,612 | py | """
Shopping List (Hackbright Prep dictionary code challenge)
Create a dictionary of shopping lists, and be able to
* add / remove lists
* add / remove items from lists
"""
def add_new_shopping_list(lists_by_name, new_list_name):
"""Add new shopping list to dict: key is list name, value is empty list
... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
913e29f0f26471e63160c9235f604a5c3154198b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_141/ch18_2020_09_09_19_35_24_611574.py | 7b2fd62536d60fa3e0c59e54e26d481a70df8eba | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | def verifica_idade(anos):
if anos >= 18:
print("Liberado BRASIL")
elif anos >= 21:
print("Liberado EUA e BRASIL")
else:
print("Não está liberado") | [
"you@example.com"
] | you@example.com |
508d57aee0b7a1f6842f27cff28624defc925da6 | d9b679a0e49339f73334b72b07da3932611029a3 | /SSAFY/C9_TIL/django/instagram/instagram/urls.py | a5579b21f2c960053a51d1aaeecdcc347c5dc0ef | [] | no_license | ryanlee5646/TIL | 1c07f646dacb65b506bb1f848246a0dbb1c656e6 | 0a1f987beb11ca0222da8cd26c3d09dc342e17c7 | refs/heads/master | 2023-01-09T20:52:10.128853 | 2021-02-18T16:27:31 | 2021-02-18T16:27:31 | 162,209,652 | 1 | 1 | null | 2023-01-04T18:06:44 | 2018-12-18T00:57:19 | Python | UTF-8 | Python | false | false | 1,119 | py | """instagram URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"ryanlee5646@gmail.com"
] | ryanlee5646@gmail.com |
5f0c1da84c218d3c1464c3f4c1c30f0baff4e48a | 06119696c70c8e5458102f380d1842b3e3717b13 | /wassh/bin/lint | 6f621bc57a7ea6309db65fdbbd07aa1fc8691e09 | [
"BSD-2-Clause"
] | permissive | lproux/chOSapp | f166ad701857ce0f5b1bcafe97e778ff310ebdcc | 9c7e724c23bfca141a68c9a7d3639075ea908d52 | refs/heads/main | 2023-05-05T09:08:59.607603 | 2021-05-14T07:45:40 | 2021-05-14T17:31:07 | 367,856,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | #!/usr/bin/env python3
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Lint our source files."""
import os
from pathlib import Path
import sys
import wassh
import libdot
JS_DIR = wassh.DIR / 'js'... | [
"vapier@chromium.org"
] | vapier@chromium.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.