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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
644993c30d01750b96afcd8456a3ce92f353321f | adc8ea22c1715a8e116edc81c7d009325ed239b1 | /0x02-python-import_modules/0-add.py | a939369a26ac98e8c624f4f998b00e8b466a8735 | [] | no_license | AlejoCasti/holbertonschool-higher_level_programming | 0e2ffc0450d0662a65ed6f8bc0dfb2ab9e9ffb1c | d25633ec8f22b00d8ea61773993f10ff3fdf080b | refs/heads/master | 2022-12-20T15:36:57.058491 | 2020-09-25T03:32:29 | 2020-09-25T03:32:29 | 259,301,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | #!/usr/bin/python3
from add_0 import add
if __name__ == "__main__":
a = 1
b = 2
print("{0} + {1} = {2}".format(a, b, add(a, b)))
| [
"acastiblanco8@gmail.com"
] | acastiblanco8@gmail.com |
9e992fb839fdc71d385dcd544c541c64b0fb62a0 | 2b271945c91f312e3d8bcb2f55d8a8d3adb10ecb | /code/UI/OpenAPI/python-flask-server/KG2/openapi_server/models/__init__.py | 1545ef09df82a5b713fa8ca8279e0b74aa2629f5 | [
"MIT",
"Apache-2.0"
] | permissive | rtxci/LocalRTX | 37bc94e7abdd1a7f3726cc029578066312820726 | d811b521ddae39f9ed32bd30086a51de893e822e | refs/heads/master | 2023-03-31T01:20:20.687202 | 2021-04-05T07:33:23 | 2021-04-05T07:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # coding: utf-8
# flake8: noqa
from __future__ import absolute_import
# import models into model package
from openapi_server.models.attribute import Attribute
from openapi_server.models.edge import Edge
from openapi_server.models.edge_binding import EdgeBinding
from openapi_server.models.knowledge_graph import Knowled... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
8141a7e6ba3ee8d29998c9fd310e4a3e94177af5 | 691a248157342775eee7864af31d54bc87bf06e6 | /03. tensorflow-keras/06. wine/ex04.py | 786a9f908d22932d0eb2634bb9594887ed6b204c | [] | no_license | chu83/DeepLearning | 7429135ff095778c91bb877371e22fb933dbddf4 | f0b838504c02f4d6f1bd923c550ff6ab825d4f46 | refs/heads/master | 2023-01-28T00:05:35.305559 | 2020-12-04T05:49:16 | 2020-12-04T05:49:16 | 315,176,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | # Wine Binary Classification Model(와인 종류 분류 모델)
# Model fitting
import os
import shutil
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from tensorflow.python.keras import Sequential
from tensorflow.python.keras.callbacks import ModelCheckpoint
from tensorflow.python.keras.layers import De... | [
"59534807+chu83@users.noreply.github.com"
] | 59534807+chu83@users.noreply.github.com |
e106889ce01ddce09fc37657de59affe7565478d | fe06311a7de13a02ca0be37d84c542c3cece3f33 | /Chapter25/file_25_1_5.py | ffde77c528b775853bf95af641e2b8cf99f12d05 | [] | no_license | mooksys/Python_Algorithms | a4a84ddabc34ec4b7cc0ac01d55019880af38514 | 375817e3dfdec94411cf245fe3f685a69d92b948 | refs/heads/master | 2020-08-24T06:35:05.791979 | 2018-07-30T01:22:24 | 2018-07-30T01:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import math
n = int(input("정수를 입력하여라: "))
for i in range(n + 1):
print(math.sqrt(i))
| [
"jeipubmanager@gmail.com"
] | jeipubmanager@gmail.com |
840a36e9c4b8cc18a82a329e4455ddce1116806d | f21172791f9a47978907ddfd55a9f1afc10304f7 | /451.根据字符出现频率排序.py | 01cd882d8a429d2003e91b744f82d150fb6cafb9 | [] | no_license | RainFZY/LeetCode-Practice | 3854b559b3d940ef459870abe318ab1462eefc32 | 5cd5881baa2155f7f7f75cee05c8bc9e1454583c | refs/heads/master | 2022-10-14T19:27:41.456366 | 2022-09-05T20:37:07 | 2022-09-05T20:37:07 | 247,435,867 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | #
# @lc app=leetcode.cn id=451 lang=python3
#
# [451] 根据字符出现频率排序
#
# @lc code=start
# HashMap
# key: value = char: freq
class Solution:
def frequencySort(self, s: str) -> str:
frequencyMap = {}
for char in s:
frequencyMap[char] = frequencyMap.get(char, 0) + 1
f_oder = sorted(fre... | [
"201700121022@mail.sdu.edu.cn"
] | 201700121022@mail.sdu.edu.cn |
45238a3c09d95984e0bcf157105af8582afe0e81 | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/abc.py | fe8ac92c8b8deee6098059cde405714c8feec3ad | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 8,329 | py | from __future__ import unicode_literals
import hashlib
import hmac
import re
import time
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
ExtractorError,
js_to_json,
int_or_none,
parse_iso8601,
try_get,
unescapeHTML,
update_url_query,
)
class ABCIE(... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
d1bf095200c4265e5493e8e5f5eda7b7f43f9ee6 | b89f8e1b546cbd3b9cc41b6a1cb7abcc6f2d97e7 | /NESCODE/settings.py | 22c49b652fd2d7cfc488db0a007805414ffa6dd2 | [] | no_license | Dilipsa/my-nfirst-home | e7e3fef92709ce37c36dc35d69ceac24a4f6dbfa | 011ff501fb3bc533b3d428ba23ffbd00f33a5deb | refs/heads/master | 2022-12-01T17:08:45.560565 | 2019-04-16T14:53:58 | 2019-04-16T14:53:58 | 181,711,448 | 0 | 1 | null | 2022-11-16T10:04:32 | 2019-04-16T14:56:22 | Python | UTF-8 | Python | false | false | 3,101 | py | """
Django settings for NESCODE project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# B... | [
"dilipsapkota.d@gmail.com"
] | dilipsapkota.d@gmail.com |
17a20fb03bd37233d825f93535758109ea96576d | 077e2802cc4dfb1e9cff720c35803b0e95bef9aa | /venv/lib/python3.8/site-packages/pyrogram/raw/functions/account/get_contact_sign_up_notification.py | 77c3325b892150a1b5ee342209bb025bc38ecaa3 | [] | no_license | Anveena/WOWScript | ff6b897e542e460a00bbf79c98c4b5d2c962fab5 | 2ab5b79a2add2c2291d9c06bf654a7a560358d60 | refs/heads/main | 2023-02-09T13:27:56.617457 | 2021-01-11T16:52:12 | 2021-01-11T16:52:12 | 324,855,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram 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... | [
"panys@panyushideMac-mini.local"
] | panys@panyushideMac-mini.local |
2866ccbd21b3e7325ae90c3f1ba9b98db1331d65 | 932a6797f1e97c7f8c96af83647fc27d2324765e | /python/1472. Design Browser History.py | 87a1f0625889673b5a7f69bb661c2abdec006307 | [] | no_license | rhzx3519/leetcode | 1245e0a19dbcb4b853eb0ac369601f31171b55c5 | 2fe336e0de336f6d5f67b058ddb5cf50c9f00d4e | refs/heads/master | 2023-08-17T01:27:49.674440 | 2023-08-16T23:08:59 | 2023-08-16T23:08:59 | 85,682,362 | 3 | 1 | null | 2021-05-08T12:10:56 | 2017-03-21T09:23:02 | Python | UTF-8 | Python | false | false | 895 | py | class BrowserHistory(object):
def __init__(self, homepage):
"""
:type homepage: str
"""
self.st = [homepage]
self.cur = 0
def visit(self, url):
"""
:type url: str
:rtype: None
"""
self.st = self.st[:self.cur+1] + [url]
se... | [
"louzhenghao@itiger.com"
] | louzhenghao@itiger.com |
bf2e56486e464cd522bfc0dc6c12263146aab182 | db4bf1696a2f5624618ccb6936718d470b48c5db | /reverseList.py | 6c65256ff31927a7c98c12515572e88b62da5cdd | [] | no_license | HuipengXu/leetcode | 2a1657aad8d00452bc4e858d76d45db0146d3fbe | e2fecd266bfced6208694b19a2d81182b13dacd6 | refs/heads/master | 2022-01-24T11:59:55.315146 | 2019-07-21T04:12:30 | 2019-07-21T04:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # @Time : 2019/4/10 10:02
# @Author : Xu Huipeng
# @Blog : https://brycexxx.github.io/
from typing import Optional
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reverseList0(self, head: ListNode) -> ListN... | [
"2531094755@qq.com"
] | 2531094755@qq.com |
3045086f11b342adcf2b74ac4e8a2ff3d4285b58 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/ctypes/test/test_sizes.py | 92e055c377a6ff77d316c0dc7376d4f9d5418516 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,127 | py | # 2017.08.29 21:55:49 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/ctypes/test/test_sizes.py
from ctypes import *
import sys
import unittest
class SizesTestCase(unittest.TestCase):
def test_8(self):
self.assertEqual(1, sizeof(c_int8))
self.assertEqual(1, sizeof(c_uint8))
... | [
"info@webium.sk"
] | info@webium.sk |
c60ed966c25b694319c33a4e53f046d593100983 | 084c3246c44c2e5ae5a0dd38522cb19ac993fe35 | /spells/spl_know_alignment.py | 7898954d60e927e40697b4f9495d2d4305867bb2 | [] | no_license | archivest/PythonWars-1996 | 5bafaca65764ca0d0999b063a5411c53cdbbb0eb | b2b301233d72334cfd9b4404b32a45ac22f0b248 | refs/heads/master | 2023-02-06T09:53:32.464771 | 2020-12-30T07:37:03 | 2020-12-30T07:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # PythonWars copyright © 2020 by Paul Penner. All rights reserved. In order to
# use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyright © 1... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
792c6eb198b705fcbb984712ba811c4118a1add0 | 79789e6814d3351a5fe3546612af13cf97da7aaa | /scripts/addons_extern/ctools-master/_wm_custom_keymap.py | fd253417bce01f63bbf0d72dd231949d53272a66 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Nikos-Prinios/blenderpython | 777644bc3d29c2c40573f69e227145712924be79 | 99645294278ebe1c7efeb522ad1fb0ec03292214 | refs/heads/master | 2021-01-11T18:51:12.693848 | 2016-12-28T23:56:04 | 2016-12-28T23:56:04 | 79,640,103 | 1 | 0 | null | 2017-01-21T10:51:00 | 2017-01-21T10:51:00 | null | UTF-8 | Python | false | false | 18,130 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"meta.androcto1@gmail.com"
] | meta.androcto1@gmail.com |
5c3b26899c25d78e54d809f7193bdfdb3d6708d5 | e3de4381382001fe85b397ffd536b17ac617a6dc | /import.py | 0be29fe05e7c3ed8d3ffdf1bcbff55bc5de301cb | [] | no_license | joshmarshall/oscar | 3945fffce5f173efda963182feacf8714aa82900 | 5e73029d0d6c6d28a3e110cd02e5eba2bc809da6 | refs/heads/master | 2023-09-04T09:58:46.744061 | 2011-02-28T03:44:44 | 2011-02-28T03:44:44 | 1,417,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import json
import pymongo
import string
import hashlib
import re
from oscar.libraries.database import Database
def main():
db = Database.instance()
data = json.loads(open('oscars.json', 'r').read())
db.categories.remove()
db.nominees.remove()
db.users.remove()
for category in data:
... | [
"catchjosh@gmail.com"
] | catchjosh@gmail.com |
cbe878e10ad3025a2dde940ff7f8bb4118fec796 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/coursewarehistoryextended/apps.py | 56592bae491f4519bc90c7040b74d9b12de8eaf0 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 197 | py | # lint-amnesty, pylint: disable=missing-module-docstring
from django.apps import AppConfig
class CoursewareHistoryExtendedConfig(AppConfig):
name = 'lms.djangoapps.coursewarehistoryextended'
| [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
7442cf8fd9f49636d2036057caef281c9fbf54d7 | f1dc351b5e493bb4480f21b3a7704b9a56bb7e47 | /lego/apps/meetings/authentication.py | d921f1c4cf4b5ceb8d3351dc31c9fea6352896bf | [
"MIT"
] | permissive | andrinelo/lego | 8437d830f2b534687687d302e78ab5d34172a81b | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | refs/heads/master | 2020-03-10T01:56:41.997044 | 2018-04-11T16:09:41 | 2018-04-11T16:09:41 | 129,123,416 | 0 | 0 | MIT | 2018-04-11T16:34:22 | 2018-04-11T16:34:22 | null | UTF-8 | Python | false | false | 508 | py | from rest_framework import authentication
from lego.apps.meetings.models import MeetingInvitation
class MeetingInvitationTokenAuthentication(authentication.BaseAuthentication):
def authenticate(self, request):
raw_token = request.GET.get('token')
if not raw_token:
return
invi... | [
"eirik@sylliaas.no"
] | eirik@sylliaas.no |
d5f1c55f77effdee35071247617c37acf0598968 | 6484235860ac1d824aaeb39ecc5d5e70dfcd4c34 | /djangos_pr/shop_app/migrations/0006_auto_20180113_1106.py | 43693b214a90bdb8558616ab27cf09b79b6cee7c | [] | no_license | NickVazovsky/old_project | 35472b7cb4a795ecb743027200364b9cf585bfc2 | 6e33578d40c3d158cea792e8a89c624d8d8fc4e5 | refs/heads/master | 2022-12-09T17:44:31.658829 | 2018-02-08T07:34:02 | 2018-02-08T07:34:02 | 120,650,958 | 0 | 0 | null | 2022-11-22T02:17:55 | 2018-02-07T17:59:05 | Python | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-13 11:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop_app', '0005_auto_20180112_1256'),
]
operations = [
migrations.AlterFie... | [
"nvazovsky@gmail.com"
] | nvazovsky@gmail.com |
08e234e8009d1a06447442fcbd5b7d052d1c27a8 | 07b37ca45d38edea112895049acf76d96ff07eff | /3.Processing&UnderstadingText/correcting_spellings.py | 4db32922d983ab85bd78183ddcd35e52643a6983 | [] | no_license | KRBhavaniSankar/NLTK | e335944de346be72a01c92221b0bf58d85475fb9 | 4b228338566996fbccee72cb6afaa199a6496787 | refs/heads/master | 2020-03-12T23:03:59.981112 | 2018-05-11T01:15:28 | 2018-05-11T01:15:28 | 130,858,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | # -*- coding: utf-8 -*-
"""
Created on Fri APR 27 15:54
@author: Bhavani
"""
import re,collections
import io
def tokens(text):
"""
Get all words from the corpus
:param text:
:return:
"""
return re.findall('[a-z]+',text.lower())
#text = 'Hi this is bhavani'
#print(text.lower())
#print(text.up... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
e35b428e71a36779b14b7c31812c16fb3f752061 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5784.py | 93ee75e73177430941f1d86c75f8e52fecd5d95c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # Pylint recursively for a given filename
find project_name -name urls.py | xargs pylint
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4fc630897e1f726ffe2760c700162ddebe4855a2 | 93d43b915b3853eac80975b6692ffed3b146c89f | /django_site/django_site/urls.py | 109c42df19b98e0f8565b95a6aab0aaac1756ab0 | [] | no_license | Killsan/python | 32ca8b4f1fa4a8a5d70ce6949d764938c37ff14d | 0c79a482ade3396309cbd055e996438b82dcd3b1 | refs/heads/master | 2023-06-14T21:44:29.933776 | 2021-07-13T18:28:39 | 2021-07-13T18:28:39 | 220,499,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """django_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-b... | [
"reversflash47@gmail.com"
] | reversflash47@gmail.com |
50ca4059e0511a37f444fb62d4f752919eb3605d | 5625fbdff9e02a6056a333d16bcef190a08af88a | /photutils/isophote/harmonics.py | e59f780f29c357e5242ea995568946a4d6439bc9 | [
"BSD-3-Clause"
] | permissive | astrojuanlu/photutils | 9a14654232c9d06e2b6f197177c60698bd913c83 | 1948ff053f1975f13e692196a2e771a536fd7f32 | refs/heads/main | 2023-07-19T03:16:51.465816 | 2021-09-03T18:51:26 | 2021-09-03T18:51:26 | 370,367,097 | 0 | 0 | BSD-3-Clause | 2021-05-24T13:45:22 | 2021-05-24T13:45:21 | null | UTF-8 | Python | false | false | 4,248 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module provides tools for computing and fitting harmonic functions.
"""
import numpy as np
__all__ = ['first_and_second_harmonic_function',
'fit_first_and_second_harmonics', 'fit_upper_harmonic']
def _least_squares_fit(optimize_func... | [
"larry.bradley@gmail.com"
] | larry.bradley@gmail.com |
a4a8e347b1a48f2da4f25dacbb249860a6444103 | 25efc87a81d969ccae84f13b02cbc645f022e0d0 | /Fermenter/wsgi.py | 3bcd395cfe0a01a75de958e3b02db9d3becaceb9 | [] | no_license | mfwarren/Fermenter | 1014142d07146c69e34597ba5cb72b3fe86f24f5 | 9c52049df93a0316e86bc52d20cefa2adc5fa258 | refs/heads/master | 2020-04-15T01:46:07.527647 | 2013-09-17T04:29:14 | 2013-09-17T04:29:14 | 9,942,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | """
WSGI config for Fermenter project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`... | [
"matt.warren@gmail.com"
] | matt.warren@gmail.com |
9b5917858573f24b4121e447d0d74ead2ff4a923 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02265/s859798714.py | c49bd3ab8312dfeafd1f992dcb346b5e73e32f4e | [] | 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 | 1,977 | py | class Cell:
def __init__(self, x):
self.x = x
self.next = None
self.prev = None
class DoublyLinkedList:
def __init__(self):
self.start = Cell(None)
self.start.next = None
self.start.prev = None
def InsCell(self, x):
new = Cell(x)
if self.star... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
04e797904f959725fb02ca8e7cf357a93d160fb7 | e238db1ae3e641d84af17e9cf6a881eb43b20039 | /hunt21.py | d5f1752173eaa13772212c6487e3bb6f5e90eac8 | [] | no_license | RevathiRathi/Revat | 1aa478f51b147e7b044d7519f54938eda0149619 | 792757fb56243846e3049889bf502014c62d658e | refs/heads/master | 2020-04-15T05:01:36.873956 | 2019-07-18T13:40:34 | 2019-07-18T13:40:34 | 164,406,245 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #r
n,k=map(int,input().split())
x=[]
l1=[]
for i in range(n):
l=[int(x) for x in input().split()]
x.append(l)
if 0 in l:
m=l.index(0)
l1.append(m)
for i in range(len(x)):
if 0 in x[i]:
for j in range(k):
x[i][j]=0
for i in l1:
for j in range(n):
x[j][i]=0
... | [
"noreply@github.com"
] | RevathiRathi.noreply@github.com |
aa52e99d80f76712830d9c2914fbf083730678bd | 61aa319732d3fa7912e28f5ff7768498f8dda005 | /components_library/processors/simple_switchable_processor.py | 8dee0131e93b38093ccd1779f5e71e92a1883e5c | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | TeCSAR-UNCC/gem5-SALAM | 37f2f7198c93b4c18452550df48c1a2ab14b14fb | c14c39235f4e376e64dc68b81bd2447e8a47ff65 | refs/heads/main | 2023-06-08T22:16:25.260792 | 2023-05-31T16:43:46 | 2023-05-31T16:43:46 | 154,335,724 | 62 | 22 | BSD-3-Clause | 2023-05-31T16:43:48 | 2018-10-23T13:45:44 | C++ | UTF-8 | Python | false | false | 4,153 | py | # Copyright (c) 2021 The Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this lis... | [
"sroger48@uncc.edu"
] | sroger48@uncc.edu |
256862ebbed3b6d64c19412b506db646d05b6e08 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nibabel/cifti2/tests/test_cifti2io.py | 521e112847f4e0a1d62ca37a27fd7f8e56fb19c5 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 23,517 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the NiBabel package for the
# copyright and license terms.
#
### ### ### #... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
7b7c3e440fe7bfae426f05252c7e11a6e08ac4db | 1d69ab8bc1ae1cb7f576f11eafbd72f9b6032d76 | /hazards/utils.py | 2b79103bf1ab9f0a08422ef52923343deca7f27b | [] | no_license | FDI-IT/fd | d40271a8ba51908914bfefc7574d86e6dbdb0d90 | 862ec4bdf8da94a29856c11f35b5202af73017b7 | refs/heads/python2 | 2022-12-03T17:27:05.767487 | 2020-07-15T19:01:41 | 2020-07-15T19:01:41 | 221,480,272 | 0 | 0 | null | 2022-11-22T02:11:00 | 2019-11-13T14:39:10 | Python | UTF-8 | Python | false | false | 1,470 | py | import re
"""
Path to hazard document
"""
#path_to_labels = '/home/matta/label.xls'
path_to_labels = '/home/matta/label_changed.xls'
"""
Hazard information
"""
acute_toxicity_list = [('acute_hazard_oral', 'oral_ld50', 'oral_unknown', 2000),
('acute_hazard_dermal', 'dermal_ld50', 'dermal_u... | [
"doofus1102@gmail.com"
] | doofus1102@gmail.com |
eb26158e26cdbddb95d263e892a66032a8379db4 | 5faa3f139f30c0d290e327e04e3fd96d61e2aabb | /mininet-wifi/SBRC-2016/sbrc.py | 93287b7e61481b22ccb3ab666d04e369e7075937 | [] | no_license | hongyunnchen/reproducible-research | c6dfc3cd3c186b27ab4cf25949470b48d769325a | ed3a7a01b84ebc9bea96c5b02e0c97705cc2f7c6 | refs/heads/master | 2021-05-07T08:24:09.586976 | 2017-10-31T13:08:05 | 2017-10-31T13:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | #!/usr/bin/python
"""Code created to be presented with the paper titled:
"Rich Experimentation through Hybrid Physical-Virtual Software-Defined Wireless Networking Emulation"
authors: Ramon dos Reis Fontes and Christian Esteve Rothenberg"""
from mininet.net import Mininet
from mininet.node import RemoteControl... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
30e3ef00113cc3ec52e663ed0401dca76536d284 | 2cb507ecd6629b9ff457a36e462f987913d94c1a | /webspider/8.scrapy框架/itcast/itcast/spiders/github3.py | 059272850eb8de11405f5e09c1e46a360b57bd91 | [
"Apache-2.0"
] | permissive | youaresherlock/PythonPractice | 6869e0a5949675198826e5a07552237a636d6f5b | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | refs/heads/master | 2021-08-16T03:09:44.203035 | 2021-08-02T07:40:00 | 2021-08-02T07:40:00 | 146,625,560 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
import scrapy
class Github3Spider(scrapy.Spider):
name = 'github3'
allowed_domains = ['github.com']
start_urls = ['https://github.com/login']
def parse(self, response):
yield scrapy.FormRequest.from_response(
# 1. response响应对象
response,
... | [
"2263194561@qq.com"
] | 2263194561@qq.com |
3f8d3188995dcd7a5221bfee8a04f57c892497ff | c35120fba80c70a1f5928696b2677ff35bbd154a | /python_dictionary_hash.py | d2123553d7e0b873a5612d290326eb5582ed0cfe | [] | no_license | vinodekbote/Cracking-the-Coding-Interview | 41a944f7a763fc32d989e841c1cdf30418741c35 | 67fef9d05944ad0a8f4abaf111f9c17d951a19e3 | refs/heads/master | 2021-12-04T17:32:45.209613 | 2015-04-14T19:33:39 | 2015-04-14T19:33:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | __author__ = 'rakesh'
# Python dictionaries are implemented using hash tables. It is an array whose indexes are obtained using a
# hash function on the keys. The goal of a hash function is to distribute the keys evenly in the array.
# A good hash function minimizes the number of collisions e.g. different keys having ... | [
"rakesh.sukla53@gmail.com"
] | rakesh.sukla53@gmail.com |
e5aeef3f6532b40a972bccce026a0dfc3fdf1c39 | beea74a2a1f2445b107af411197e8b6300e715e6 | /unsupervised_learning/0x01-clustering/5-pdf.py | 7dcc093d157f42318fed674366f5aadf31edc62f | [] | no_license | 95ktsmith/holbertonschool-machine_learning | 0240d8fa8523b06d3353c2bffa74205b84253be8 | 2757c8526290197d45a4de33cda71e686ddcbf1c | refs/heads/master | 2023-07-26T16:02:26.399758 | 2021-09-09T15:57:57 | 2021-09-09T15:57:57 | 310,087,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #!/usr/bin/env python3
""" PDF """
import numpy as np
def pdf(X, m, S):
"""
Calculates the probability density function of a Gaussian distribution
X is a numpy.ndarray of shape (n, d) containing the data points whose PDF
should be evaluated
m is a numpy.ndarray of shape (d,) containing the mea... | [
"95ktsmith@gmail.com"
] | 95ktsmith@gmail.com |
3235df6ae1e48b28c72f2e05ea327cc6f9f46a74 | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/django-stubs/django-stubs/middleware/locale.pyi | ed24767936f9fb1ac6b8ec1089b8d553edffad74 | [
"MIT"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 423 | pyi | from typing import Any
from django.http.request import HttpRequest
from django.http.response import HttpResponseBase
from django.utils.deprecation import MiddlewareMixin
class LocaleMiddleware(MiddlewareMixin):
response_redirect_class: Any = ...
def process_request(self, request: HttpRequest) -> None: ...
... | [
"xigmatron@gmail.com"
] | xigmatron@gmail.com |
edc97a555ecc30d25bf841dff5c3e7b7a8a6a799 | 79d61df24dd668d4bd9b72ae05ccf6f1d601f930 | /tests/test_data_handlers.py | cf62d29312e47c08c8a9faf3bd4225e8ba20bf84 | [] | no_license | kafitz/alchemy-analysis | 1cba284e27981c0fc21ea550171fdc3c2333605a | c47ed0517f4c136bb1ebc9f1de57ea00b9fec332 | refs/heads/master | 2023-09-03T10:12:33.832289 | 2021-11-04T04:32:38 | 2021-11-04T04:32:38 | 423,988,575 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | #!/usr/bin/env python
from helpers import data_handlers
def test_get_next_block_num():
test_data = [
{'blockNum': '0xce4513', 'hash': '0x72b0bdd33b5503e7bdd841aa6b79a93b86def53d5226391390f7f1067c1d8585', 'from': '0x64d65e3d70ba0f8812a9d1d7b8b5c51dab78cd15', 'to': '0xe9669516e09f5710023566458f329cce6437aaac... | [
"kafitz22@gmail.com"
] | kafitz22@gmail.com |
e17a689ac371abda425811eedf007902e2e555d1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_214/ch9_2019_04_01_13_53_00_464929.py | 8e2651d13da61c0d57200831b37770a63935e786 | [] | 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 | 131 | py | def lista_sufixos(sufixos):
lista=[]
for i in lista:
if i in sufixos:
lista.append(i)
return(lista) | [
"you@example.com"
] | you@example.com |
836775c318558dd3beecfa8ccc8f6221733a34e3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02747/s586609533.py | 9ed91363c94233bd9022f9d6378e76ecfe41fcf0 | [] | 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 | 393 | py | # A = [list(map(int, input().split())) for _ in range(3)]
# k = int(input())
# B = [int(input()) for _ in range(n)]
# X = list(map(int, input().split()))
# a, b, c = map(int, input().split())
S = input()
n = len(S)
judge = True
if n % 2 != 0:
print("No")
exit()
for i in range(0, n, 2):
if S[i] != "h" or S[i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b3b0220bd455c33c9c7486bea480f1aedb4774bc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/623.py | d2fdaa0462ac33357231bec180814bc8ec0b636b | [] | 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 | 2,684 | py | fd = file('A-small-attempt0.in')
totalTestCase = int(fd.readline())
def replace_symbol(s):
return s.replace('.', '1').replace('X', '2') \
.replace('O', '3').replace('T', '4')
def genTestCase(fd):
global totalTestCase
while totalTestCase > 0:
tbl = []
#row
r1 = f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e7849327eebf7ade439e5fc79eece105f5ec4780 | 0dcf4f140a2e1434ca448679380f335dfd8a2fbd | /tests/workspace/views.py | d26aa3ea146adb1360ebd0161c3dd2709120421e | [
"BSD-3-Clause"
] | permissive | dmatthes/django-bmf | d97f36d4f5225c8fcadeb8211c5fab16e43c119b | 3a97167de7841b13f1ddd23b33ae65e98dc49dfd | refs/heads/develop | 2020-05-29T11:00:50.829417 | 2014-10-09T13:41:52 | 2014-10-09T13:41:52 | 23,787,808 | 1 | 0 | null | 2014-10-09T13:41:52 | 2014-09-08T11:07:29 | Python | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/python
# ex:set fileencoding=utf-8:
from __future__ import unicode_literals
from djangobmf.views import ModuleGenericBaseView
class WorkspaceTestView(ModuleGenericBaseView):
slug = "test"
name = "test"
| [
"sebastian@elmnt.de"
] | sebastian@elmnt.de |
ed0f069e67bd0f4b180ffc38ea71f2acdc306db0 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-videoseg/aliyunsdkvideoseg/request/v20200320/SegmentHalfBodyRequest.py | 52549b24fd6b0ff7308a942fcf9d7f1bc7c64d26 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,454 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
619061cd852774d75c954f279ce21d746f98cdda | cc3ded8dc35ec9f52e7cee6a840fb6d3c92b3185 | /transformers_repo/src/transformers/modeling_openai.py | ad861ddc98ed5a8efba0de5a2560eb8d37ff0adb | [
"MIT",
"Apache-2.0"
] | permissive | see--/natural-question-answering | 04e3a38022dcb78a20f1632749cb82bb40a3d8aa | 9d31c8dee0ff799d190a2a351f4857224788a5ca | refs/heads/master | 2023-08-17T00:10:17.594705 | 2020-03-12T21:38:56 | 2020-03-12T21:38:56 | 234,064,034 | 90 | 24 | MIT | 2023-09-06T17:32:48 | 2020-01-15T11:19:50 | Python | UTF-8 | Python | false | false | 31,161 | py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License... | [
"steffenebe@gmail.com"
] | steffenebe@gmail.com |
be76faca559698e12bfc6cbc99e2f3e7e1d1c72b | 8520c991dc543f5f4e1efe59ab401824173bb985 | /397-integer-replacement/solution.py | 4e1a957fdbbe78f6fe22b9622c9f41ca013a32b0 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | class Solution:
def integerReplacement(self, n):
"""
:type n: int
:rtype: int
"""
ans = 0
while n != 1:
if n % 2 == 0:
n >>= 1
elif n == 3 or ((n >> 1) & 1 == 0):
n -= 1
else:
n += 1
... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
6114a269f7b4f0f8f9094fd25861d500385555a9 | 4e8a1750e6a9e7368c91bc9296fb1c1ff6b8f3ea | /unit06/exercise0603.py | f760785e8cef3b4f8c9a106da5236f4c161e3222 | [] | no_license | kevin510610/Book_AGuideToPython_Kaiching-Chang | 961dbd24aa1094664b9a9754f2882d4d7f964289 | 7db7cf8186e02f4210a01fbd4c454f0030b57022 | refs/heads/master | 2023-04-16T04:59:51.598236 | 2021-04-13T03:08:32 | 2021-04-13T03:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | g = int(input("g: "))
if g < 60:
print("Bad!")
elif 60 <= g < 70:
print("Not Bad")
elif 70 <= g < 80:
print("Good!")
elif 80 <= g < 90:
print("Great!")
elif 90 <= g < 100:
print("Excellent!")
elif g == 100:
print("Perfect!")
else:
print("Pardon?")
# 檔名: exercise0603.py
# 作者: Kaiching Chang
# 時間... | [
"kevin510610@gmail.com"
] | kevin510610@gmail.com |
68ea177592e75cbdbd4aa5741842a8cdaefdaabc | 84688ba401bb0d82f5345d7b2c1c91c1b82b8c41 | /activity/views.py | a0b3b7a8c2668912b2126c66642b5345726d5ffe | [] | no_license | AbrahamMayowa/edupam | 14878df433f356b60c0bda700457123c6db8c734 | 97908dc56913d0a06fa0340c5985496935b9a097 | refs/heads/master | 2023-05-10T23:42:37.043219 | 2022-10-11T09:19:58 | 2022-10-11T09:19:58 | 167,404,444 | 0 | 0 | null | 2023-04-30T07:46:03 | 2019-01-24T17:02:44 | JavaScript | UTF-8 | Python | false | false | 695 | py | from django.shortcuts import render, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from . models import Activities
from user.models import UserInfo
@login_required
def user_activities(request, user_id):
get_user = get_object_or_404(... | [
"root@ubuntu.ubuntu-domain"
] | root@ubuntu.ubuntu-domain |
1acd42f00bc4f46699d435ea4fbcbfc21380ec57 | 177338a720f904f63926da055364cc0e2c0a850c | /spark/pyspark(by Leaderman git)/1.2.0/examples/app/spark_app_cogroup.py | a4f9793d8b453bc72fe5f925e0ec805cbf8d0138 | [
"Apache-2.0"
] | permissive | xuefenga616/mygit | 60ef7bf7201603e13d4621cf7a39dea8ec92e0b7 | be3b8003fcc900ce7ca6616a9ddebb0edcbc1407 | refs/heads/master | 2020-09-13T11:50:55.448041 | 2017-08-27T10:59:00 | 2017-08-27T10:59:00 | 67,042,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setAppName("spark_app_cogroup")
sc = SparkContext(conf=conf)
rdd1 = sc.parallelize([("a", 1), ("a", 2), ("b", 1)])
rdd2 = sc.parallelize([("a", 2), ("b", 2), ("b", 3), ("c", 2)])
datas = rdd1.cogroup(rdd2).collect()
sc.stop()
"""
a ([1, 2], [2])
c (... | [
"xuefeng_11@qq.com"
] | xuefeng_11@qq.com |
64e8c37e89a5e92f2c998a738c566ce0f339d713 | d5e787f85b37f966ccdf0cd5f7a7061eae1c70a8 | /src/schedules/models.py | 18dc6fe4c53a9024526bebe620e098fc46e8705a | [
"MIT"
] | permissive | iBuilder-Tech/phase | 5ee6cd1fb410de0d067e7b5b8adfea3c4411b62c | cc8f9b9f3e2c31b139d5cce433667c8d5ba2c6f2 | refs/heads/main | 2023-07-10T18:24:20.291136 | 2021-08-31T13:22:17 | 2021-08-31T13:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | class ScheduleMixin(object):
"""Add behavior of a document with a "Schedule" section.
This is use to filter document classes in signal handling.
"""
pass
| [
"thibault@miximum.fr"
] | thibault@miximum.fr |
4a91f318c7164af574b2a02d3c1e54cf6b6b5ac7 | 07996004825f8974c56b5558ebb9fb7bf349b28c | /exercises_011_to_020/015/m2.py | 8242f6ab85f85e276a7f6e13c6315a47e115350c | [] | no_license | panyanyany/Python_100_Exercises | 03733e6a2dd8ebc7b8688a19864ddc06cd62a608 | dc7a674b0ebe6f516b3ce25c7918ba1e80e054d6 | refs/heads/main | 2023-09-03T17:41:01.473086 | 2021-10-26T13:42:24 | 2021-10-26T13:42:24 | 385,248,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | words = input('输入文本:').split()
freq = {}
for word in words:
freq[word] = words.count(word)
words = list(freq.items())
words.sort(key=lambda e: e[1])
for w in words:
print("%10s: %d" % w)
| [
"568397440@qq.com"
] | 568397440@qq.com |
5734d654d519b9156ea6775431a93485ceb7e16c | 0c6b4e9c5ecc5a7595717f9699953b227486ef3e | /tests/unit/modules/network/slxos/test_slxos_command.py | 63fd2b4cf65de38fcee6ed2b6c0da86626bba03d | [] | no_license | ansible-collection-migration/ansible.misc | d9c92e8bb0c17b3e2a92976215f523c2afaa5a46 | 3c02be2a8c03b2e375a1e1f37b0c119145ea358c | refs/heads/master | 2020-12-26T23:11:36.544511 | 2020-02-03T22:18:53 | 2020-02-03T22:18:53 | 237,681,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | #
# (c) 2018 Extreme Networks Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ans... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
73c25dd1d58c7e88a32d978502dbea10da461788 | 755094a71bda9a6817ab7eddc1e06c924df782e3 | /supervised_learning/linear_regression.py | e6f9687bf82a55b39aa36ed953bcace7a4b008b0 | [] | no_license | Delejnr/ML-From-Scratch | d8e7238f5f5571cc2f9dc2d3435af91504d46eab | f4da39d0a8787aee5bb9e2dda58d549b9e27409f | refs/heads/master | 2021-01-21T05:13:47.054932 | 2017-02-25T17:31:05 | 2017-02-25T17:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets
import sys, os
# Import helper functions
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, dir_path + "/../utils")
from data_operation import mean_squared_error
class LinearRegression():
def __init__(self):
self.... | [
"eriklindernoren@live.se"
] | eriklindernoren@live.se |
67bc5d244ac6a6840062edeb844d950c13ccded2 | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/alembic/testing/warnings.py | 6bbe0d761c57f9e6f379ac7239999f5f15f4fc00 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 1,417 | py | # testing/warnings.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""NOTE: copied/adapted from SQLAlchemy master for backwards compatibility;
t... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
dcce3db825c4f198ae09874e59f6d20f9dc6ce25 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ENTERASYS-ENCR-8021X-CONFIG-MIB.py | c636c09765bfc4e62d4e7657d60e65ae79908d01 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,451 | py | #
# PySNMP MIB module ENTERASYS-ENCR-8021X-CONFIG-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-ENCR-8021X-CONFIG-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:48:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Pytho... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
c3281898b9d0f45d27e33af7111f1860d243c915 | 1ada3010856e39c93e2483c960aa8fc25e2b3332 | /TopInterviewQuestions/ConvertArrayToZigzag.py | 7d796cdaade1fc797f9f62bc76ac3d765dd25983 | [] | no_license | Taoge123/LeetCode | 4f9e26be05f39b37bdbb9c1e75db70afdfa1b456 | 4877e35a712f59bc7b8fffa3d8af2ffa56adb08c | refs/heads/master | 2022-02-24T20:09:21.149818 | 2020-07-31T03:18:05 | 2020-07-31T03:18:05 | 142,700,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | def zigZag(arr, n):
flag = True
for i in range(n-1):
if flag is True:
#If we have a situation like A > B > C, then we got A > B < C
if arr[i] > arr[i+1]:
arr[i], arr[i+1] = arr[i+1], arr[i]
else:
#If we have a situation like A < B < C, th... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
1a479335b1d4b4c1f8a9ddbb331102633c52fca9 | b4c9d274440f0b4d651dbd844c49f221b1071674 | /jieba分词/cut_data/tranfer_sogou.py | e200444d82f21a6a00a37b82bb9b93e4e06d9773 | [] | no_license | yylong711/shixun | db0bf72ea123f326b268ad79cc3e00ccad3c2e16 | 467eebad402598d3a359aeccd8e7541cd02d2981 | refs/heads/master | 2020-04-07T04:16:06.608894 | 2018-07-27T05:01:12 | 2018-07-27T05:01:12 | 158,047,888 | 2 | 0 | null | 2018-11-18T03:55:21 | 2018-11-18T03:55:21 | null | UTF-8 | Python | false | false | 5,882 | py | import struct
import sys
import binascii
import pdb
# 搜狗的scel词库就是保存的文本的unicode编码,每两个字节一个字符(中文汉字或者英文字母)
# 找出其每部分的偏移位置即可
# 主要两部分
# 1.全局拼音表,貌似是所有的拼音组合,字典序
# 格式为(index,len,pinyin)的列表
# index: 两个字节的整数 代表这个拼音的索引
# len: 两个字节的整数 拼音的字节长度
# pinyin: 当前的拼音,每个字符两个字节,总长len
#
# 2.汉语词组表
# 格式为(same,py_tab... | [
"fjl2401@163.com"
] | fjl2401@163.com |
16b7c4980868291bdd1d29c4088c8448b268ffa0 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_22/models/array_factory_reset_token.py | 4921c9b222982fca0e6b06c755e668e13b0aaf9c | [
"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 | 4,354 | 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.22
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 |
4511cf802dbac3c2ad134f37d1e7d06d64834f37 | 2d9a706cb899dfc355fe49dc6a37a0dc257b22fd | /test/qwcumu_PbPb15_ppReco_eff_sysStd_v1.py | 2bad64893e4afd55425450f0c6ccad9986ed17ae | [] | no_license | BetterWang/QWCumuGap | b1f4d3169d2019d3d465ea985fed2094279b62b6 | 61beb88799fd3c18398061b64b849ad5a849871d | refs/heads/master | 2020-04-04T22:25:33.686266 | 2018-03-16T19:27:01 | 2018-03-16T19:27:01 | 82,000,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("CumuGap")
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.StandardSequences.GeometryDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_... | [
"BetterWang@gmail.com"
] | BetterWang@gmail.com |
cc9557ec93cf9c8ee1e1b293e4248bc64433a739 | 56a7dd75f2a3f45d599ca89aaa9ca45390fbd546 | /ejercicios_preparcialito/parcialito_4/recursion/ej_189.py | 507886d0acd5b154fb0648acf5cfde636846eaf3 | [] | no_license | facundoPri/algoritmo-programacion-i-essaya | e030d74de832b7642ff84a77212f8ea429d560d8 | 5ff7a8fc66f6683d47bc9faf80a35f9902b1e1a3 | refs/heads/master | 2023-04-07T01:04:10.221473 | 2021-04-10T13:05:59 | 2021-04-10T13:05:59 | 299,450,415 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Implementar la función merge en forma recursiva.
# La función recibe dos listas ordenadas y devuelve una lista con los elementos intercalados ordenadamente.
def merge(lista1, lista2, final=[], index=0):
lista1_cond = index > len(lista1) - 1
lista2_cond = index > len(lista2) - 1
if lista1_cond and lista... | [
"facundo.prieto321@gmail.com"
] | facundo.prieto321@gmail.com |
d086579a7ecd17bc2aed2d41c455b56740cddf14 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jjp.py | 83ac9c4f417f7e8588b17dabe0d25b10b353a16c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
06e8464ac4b9b909fa3630be3a03791b0558c28d | d960ea4efb34f9c5a1a5b114e3f9216580a0f7b1 | /accounts/forms.py | 4e64470a7f496bab057dadd46d74ee643d7f2514 | [
"MIT"
] | permissive | genonfire/bbgo | 166afb069a0b9753078d093060075046edeba10e | 4911f23753944ba6a48f21acbeb5f5e48868eb6f | refs/heads/master | 2022-06-27T07:34:11.166045 | 2022-05-17T01:39:30 | 2022-05-17T01:43:09 | 79,623,117 | 24 | 15 | MIT | 2022-05-17T01:43:52 | 2017-01-21T04:17:38 | Python | UTF-8 | Python | false | false | 3,484 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from accounts.models import Profile
from django import forms
from django.conf import settings
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.contrib.auth.models import User
from django.utils import formats, timezon... | [
"gencode.me@gmail.com"
] | gencode.me@gmail.com |
57474ce9da5f3ea5be7033c3b08c77ee3c25fee7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2983.py | 2de262434063a2e659514763bf3e1edf4cf8cf58 | [] | 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,156 | py | import sys
def place_next(s):
j = 0
ls = 0
rs = 0
ms = 0
for i in range(1, len(s)):
if s[i]:
continue
# calc left
k = i
while k > 0 and not s[k]:
k -= 1
a = i - k - 1
# calc right
k = i
while k < len(s) and n... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
70a44cf20a1829d434f4e26294c7accc3538208a | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/monitors/CreateMonitor_3824294658.py | e28fed98e862fd6d673c3ca16eda6bcafd0c6d44 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 3,041 | py | """
Create a ci-pipelines formula and functions monitor returns "OK" response
"""
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.monitors_api import MonitorsApi
from datadog_api_client.v1.model.monitor import Monitor
from datadog_api_client.v1.model.monitor_formula_and_function_... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
90f2f1ff237c74ebb6cc7e484e659e9085e25f38 | 2e335f7db34b0b80e114d02a3ae02ee485aa2560 | /tests/acceleration.py | 5e11e050a4c7e743312356790dabd3c8b4e6e3f8 | [
"Apache-2.0"
] | permissive | MostAwesomeDude/cozy | 6a3d60d4a7da9bc95bcc4f5f20645ac3e0a8d725 | e7b0ace2915c54b1176fc4d3eed289ede109a058 | refs/heads/master | 2020-03-24T11:17:51.860989 | 2018-07-26T22:33:37 | 2018-07-26T22:33:37 | 142,681,384 | 0 | 0 | Apache-2.0 | 2018-07-28T13:56:19 | 2018-07-28T13:56:19 | null | UTF-8 | Python | false | false | 594,894 | py | from collections import OrderedDict
import unittest
import sys
from cozy.common import OrderedSet
from cozy.target_syntax import *
from cozy.syntax_tools import pprint, pprint_unpacked
from cozy.contexts import RootCtx
from cozy.pools import Pool, RUNTIME_POOL
from cozy.synthesis.acceleration import try_optimize
from ... | [
"loncaric@cs.washington.edu"
] | loncaric@cs.washington.edu |
c92a9c863101df40d013f575b67ecf9c79756e2e | cdf78a397a5409bef71cdbee63685f6f77e39a0d | /measurement_stats/test/test_angle.py | 0c2d53f3d2a55a16e5bbe82f04bd3b1ba7ca335c | [
"MIT"
] | permissive | sernst/Measurement_Statistics | e129669967ef4670649cfd25a0b173d8e5b4e207 | 3e310d265f17125b239f78cc35e42a3c3545d89b | refs/heads/master | 2020-04-10T20:13:51.000722 | 2019-07-23T01:09:04 | 2019-07-23T01:09:04 | 41,500,251 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import unittest
import random
from measurement_stats import angle
class TestAngle(unittest.TestCase):
def test_degrees(self):
""" doc... """
for i... | [
"swernst@gmail.com"
] | swernst@gmail.com |
6500d1f8b9c52ae1a628722a1023d7b6fec70f77 | 815e0d60a672bd257be3d0c61b0b4afcde042319 | /run_eelpond | e163c0063f4a30238236c9459c5c4172aa7ec8a3 | [] | no_license | bluegenes/2018-snakemake-eel-pond | 64a323afbaa5504d6f2be52034eafdfe278caf17 | ed49b67ef520485890f1c47cf6c23bd998b14ea6 | refs/heads/master | 2020-03-19T02:41:01.862524 | 2018-07-09T23:23:07 | 2018-07-09T23:23:07 | 135,650,892 | 0 | 1 | null | 2018-07-09T23:23:08 | 2018-06-01T01:06:31 | Python | UTF-8 | Python | false | false | 3,697 | #! /usr/bin/env python
"""
Execution script for snakemake eelpond.
"""
# ref: https://github.com/ctb/2018-snakemake-cli/blob/master/run
import argparse
import os.path
import sys
import pprint
import yaml
import glob
import snakemake
def find_Snakefile(workdir):
snakefile = os.path.join(workdir, 'Snakefile')
as... | [
"ntpierce@gmail.com"
] | ntpierce@gmail.com | |
a1d76b34c58947753b6267966433613a1f255fd6 | 022228249a7892e1efeaa11f0d445ba7cb115891 | /yandex_market/views.py | 4069c758cabb973eb3cbfa38a4d854f9d4f6666e | [] | no_license | angaradev/django-vue-interface | bacef985b9f9cbd4379992133168c9278b4f707b | 2e55d217b12bcda3c54acbb90cd3466bca955c5a | refs/heads/master | 2022-12-01T09:24:29.788368 | 2022-11-22T07:09:44 | 2022-11-22T07:09:44 | 241,351,571 | 0 | 2 | null | 2022-11-22T07:09:45 | 2020-02-18T12:08:14 | JavaScript | UTF-8 | Python | false | false | 1,537 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status, permissions
from .serializers import GetStockSerializer
from product.models import Stock
from datetime import timedelta, datetime
from django.conf import settings
def createResponse(stock, warehous... | [
"angara99@gmail.com"
] | angara99@gmail.com |
38656f2022e7fe5174e807d1d3dd0a8633821130 | 3ebd632bbd0c04ecfe7a484a213a84dedf404856 | /helloworld/venv_2017/bin/django-admin | 76c37a582662ed0de12b74a1f401384fdd9f5c16 | [] | no_license | Piyushh1/belzabar | 668b304caf0796cf2f0c52a3d3425c4ec162c94c | ffacc7c8114608c1dd88e672dc79890b99663e2d | refs/heads/master | 2021-01-21T18:58:01.531613 | 2017-05-31T10:59:08 | 2017-05-31T10:59:08 | 92,096,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | #!/home/piyush/helloworld/venv_2017/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"you@example.com"
] | you@example.com | |
6330d173b9da1af3f61b680c9ab85ec8863db702 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /ACL_PyTorch/contrib/cv/image_process/Cross-Scale-Non-Local-Attention/CSNLN_postprocess.py | 3738c2259fdacab35e2e40f153a20207115097e5 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 5,680 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
000cfdd1839b581df8449c8f44f2a83f0ccc8e3f | 0bb007de7a7b749e71bd4c5a63c9cb754660977d | /results/QPROP/Hopper-v2_Default/2018-04-10_21_42_30/QProp.py | dd5835ee16a4eb90a55fb73e01493707fa3d5864 | [] | no_license | HarveyYan/RL-Robotic-Control | 000e41032e94d465fddeba9b4094db607f8faa91 | 8c0aa98352fc3ce653de0c6ed7254928c08e67f8 | refs/heads/master | 2020-03-07T12:14:49.860443 | 2018-04-27T04:44:36 | 2018-04-27T04:44:36 | 127,473,793 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,604 | py | """
Proximal Policy Optimization without eligibility trace;
batch update method.
Special thanks to Patrick Coady (pat-coady.github.io).
His implementation on PPO really helped me a lot.
"""
import numpy as np
import gym
import matplotlib.pyplot as plt
import os
import datetime
import argparse
import signal
import cs... | [
"zichao.yan@mail.mcgill.ca"
] | zichao.yan@mail.mcgill.ca |
0149dbdeda48971091c6c9de2da13a269cc6dce6 | 2480c39f3cd0ccac6c556a751f99b6098b10677d | /environment/flappy_old.py | 6a637542112fd5058a0368b3387109faffdb1c07 | [] | no_license | persistforever/ReinforcementLearning | 4c0852217d5d8e89406c5cb0e8c09aba89e916a2 | f5e02893bc11d3d1f453208fbaba820da78236a8 | refs/heads/master | 2022-03-19T09:09:18.530012 | 2021-07-27T09:24:11 | 2021-07-27T09:24:11 | 90,939,519 | 20 | 10 | null | null | null | null | UTF-8 | Python | false | false | 25,375 | py | # -*- coding: utf-8 -*-
# author: ronniecao
# time: 2017/12/09
# description: environment of flappy bird
from itertools import cycle
import random
import time
import os
import cv2
import numpy
import matplotlib.pyplot as plt
from matplotlib import animation
import pygame
class Environment:
def __init__(self,... | [
"caocao7066@outlook.com"
] | caocao7066@outlook.com |
bd17b23424c6b72656e3ee1ff0b492f96f441f62 | e2c5c3ebd5057918b9f7e35c1aab3661d9a89191 | /3_render_html.py | 1c8feaeb45a894c2f5ac72cecf50965ca9f836e9 | [] | no_license | LintangWisesa/Python_Flask_Basic | f76192d81dd64441f211e01db575781d73823276 | 496dc661f968072eee0fdba3b9d08082f253d2f8 | refs/heads/master | 2020-04-13T11:08:56.251451 | 2019-08-14T04:36:24 | 2019-08-14T04:36:24 | 163,165,169 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('home.html')
# render html file from templates dir
@app.route('/about')
def about():
return render_template('about.html')
# render html file from templates dir
if __name__ == '__main__'... | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
3d21b663201cfbf98b29072478126511704ec76f | c436f41374cb474f19062b3c9e2a4c8439b4851b | /analyse.py | 93974b1b26d66e1c4d70e13ef17eca21e0fe6e20 | [] | no_license | JohannesBuchner/intrinsicdist1d | dcc4d5458cc8c0a143c05bd64f7ae811c22ed574 | 927bd6d11dc98876748c398834775b115da2126a | refs/heads/master | 2023-08-14T05:45:56.699321 | 2020-01-22T10:09:22 | 2020-01-22T10:09:22 | 235,545,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | import numpy as np
import sys
import matplotlib.pyplot as plt
filename = sys.argv[1]
data = np.loadtxt(filename)
prefix = filename.replace('.txt', '').replace('.gz', '')
# plot data
lo, hi = data.min(), data.max()
lo, hi = 0, 100
bins = np.linspace(lo, hi, 40)
means = np.mean(data, axis=0)
total = 0
for j, i in enu... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
5c1ccca039e1b71ec408340ef0fdfead52bf4341 | d855649c037ddd3214e7ce122470d268a3983627 | /tests/apps/perovskite_tilting/set_path.py | 6004b3889aa29442392cb03284223ff5ffdbe0fe | [
"MIT"
] | permissive | tilde-lab/tilde | a57b58a27c1cbfb54c753196067ad9463bebd912 | a959526885e827115e4000f1b9789869cf51cb19 | refs/heads/master | 2022-08-29T19:16:14.692145 | 2021-11-17T19:58:06 | 2021-11-17T19:58:06 | 10,036,653 | 22 | 4 | MIT | 2022-08-16T12:09:50 | 2013-05-13T17:04:50 | Python | UTF-8 | Python | false | false | 208 | py | import os, sys
base_path = os.path.realpath(os.path.normpath(os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"../../../")))
if not base_path in sys.path:
sys.path.insert(0, base_path)
| [
"eb@tilde.pro"
] | eb@tilde.pro |
c9fe816f1a5b28de4c385c0fb5ed422bb401f9a9 | 58b100fa21763728c8d9c92e03b28828a1b6ac45 | /python基础/26_class01.py | dfef6706eb0ad7a03019edbf686e713a90da7818 | [] | no_license | wererLinC/Python-Learning | 6ae107f300d7c670a156e8c38dff35dd5ed6c481 | f5c34cd703c1a321a69525065ceb1fba5481cee2 | refs/heads/master | 2021-02-06T14:12:16.494228 | 2020-02-29T06:58:43 | 2020-02-29T06:58:43 | 243,920,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | class Student:
name = ''
age = 18
def print_info(self):
print("name : " + self.name)
print("age : " +str(self.age))
student = Student()
student.print_info()
| [
"="
] | = |
3e90bf4734a3004d0b134942067a16e62082d7c4 | 42e8c0992fd845237fa7b1baef494bfb6abc9dba | /nodes/kd_tree/construct.py | 8dbb48672d01170584b70de265e0bf05a0838049 | [] | no_license | mx1001/animation_nodes | b5ae336512bb43f40e6ca5276a4e05acb5fdc81b | b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f | refs/heads/master | 2020-02-26T17:46:05.676451 | 2016-03-09T15:22:01 | 2016-03-09T15:22:01 | 54,067,761 | 5 | 0 | null | 2016-03-16T21:27:54 | 2016-03-16T21:27:54 | null | UTF-8 | Python | false | false | 627 | py | import bpy
from ... base_types.node import AnimationNode
class ConstructKDTreeNode(bpy.types.Node, AnimationNode):
bl_idname = "an_ConstructKDTreeNode"
bl_label = "Construct KDTree"
def create(self):
self.inputs.new("an_VectorListSocket", "Vector List", "vectorList")
self.outputs.new("an_K... | [
"mail@jlucke.com"
] | mail@jlucke.com |
0a5a2b4b98ad3db16003f11222d148ad7208750e | 309d17b81cea038713ba67bee72a41d2df4d6869 | /codeNewPython/Exam13/13-2/server.py | 689cf8660cfb161f41a5ba0b4fcf26ac2944ebf6 | [] | no_license | Bongkot-Kladklaen/Programming_tutorial_code | ac07e39da2bce396e670611884436b360536cdc5 | cda7508c15c3e3d179c64b9aac163b6173ef3519 | refs/heads/master | 2023-06-20T13:14:17.077809 | 2021-07-18T04:41:04 | 2021-07-18T04:41:04 | 387,081,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = '192.168.1.33'
port = 5000
try:
s.bind((host, port))
print ("Socket binded to %s" %port)
except socket.error as msg:
print('Bind failed. Error Code : ' + str(msg[0]) + ' Message ' + msg[1])
s.listen(5)
conn, address = s.acc... | [
"bongkot.klad@gmail.com"
] | bongkot.klad@gmail.com |
b65d26c518568ec8c216459c572e21018f1ef569 | 7d3bb039bd1bf72675b930b2e06e3115c5150a19 | /PAT_B/1018.锤子剪刀布.py | 0f3b5460aa472a6a559d39ecc94a665874577a2e | [] | no_license | myf-algorithm/Leetcode | b86e2eedfcf634a200be11d5a2baa22be4dd7395 | 3f4284330f9771037ca59e2e6a94122e51e58540 | refs/heads/master | 2023-04-01T21:48:05.080826 | 2023-03-27T03:42:02 | 2023-03-27T03:42:02 | 239,461,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | n = input()
vc1, vb1, vj1, e, vc2, vb2, vj2 = 0, 0, 0, 0, 0, 0, 0
for i in range(int(n)):
a = input().split()
if a[0] == 'C' and a[1] == 'J':
vc1 += 1
elif a[0] == 'B' and a[1] == 'C':
vb1 += 1
elif a[0] == 'J' and a[1] == 'B':
vj1 += 1
elif a[0] == 'C' and a[1] == 'B':
... | [
"1332046108@qq.com"
] | 1332046108@qq.com |
b7f72a05ead18e4e77fd82807eae8d7e6bf83aca | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_0/Python/step/a.py | 68aabb3f1230dc55b70c4bc7fcf46254e49c18b2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | import os
import sys
# print "OK"
T = int(sys.stdin.readline())
def match(a,b):
if a==b:
return True
if a == 'T' or b =='T':
return True
return False
for t in range(T):
m = []
result = "Draw"
for i in range(5):
line = sys.stdin.readline()
if "." in line:
result = "Game has not complet... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
57f195135c60416fbcbd7bc8b9e52f5e1f9908f8 | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/601-800/000684/000684.py | f8a2459b554382fa966789ee50c0b6d972e2f787 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | class Solution(object):
def findRedundantConnection(self, edges):
"""
:type edges: List[List[int]]
:rtype: List[int]
"""
def find_with_set(x):
if not fa.has_key(x):
fa[x] = set([x])
return fa[x]
def union_with_set(x, y... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
db8398ae6b58c1a1e614db541ed5078c15a9f271 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/ieee_20210208185921.py | ea358da9addfa00867bdb98ee732f6f66e861f5a | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,701 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest, request
from article.items import ArticleItem
import json
class IeeeSpider(scrapy.Spider):
name = 'ieee'
allowed_domains = ['ieee.org']
lua_script = """
function main(splash, args)
assert(splash:go{
splash.a... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
a5db55c005af4d4dca01f9fbaab4c22a87ce74b0 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /chrome/chrome_repack_chrome_300_percent.gypi | 5ac082cc538f3ade52bba8abe52a76f636a12f79 | [
"BSD-3-Clause"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 936 | gypi | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
# GN version: //chrome:repack_chrome_300_percent
'action_name': 'repack_chrome_resources_300_percent',
'variables': {
'pak_inputs': [
# ... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
fdf2bfad06bbdaf575c34c25e3d84db3d4e06e88 | e941c47fb160ce59bb869459892c2ff783eafd30 | /Week2/Список квадратов.py | b4daf39e3e9d1bdaf6faff21f61005a8ae36dc0c | [] | no_license | s1td1kov/Basics-in-Python | 839877e2e8486a7c6b9f2efc41d7ec1c771de2e5 | 4f12f27c3ed04ebc70751d339ec046040376c01d | refs/heads/master | 2022-01-06T21:19:47.331279 | 2019-05-28T21:14:16 | 2019-05-28T21:14:16 | 178,682,057 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | n = int(input())
i = 1
while i * i <= n:
print(i * i, end=' ')
i = i + 1
| [
"noreply@github.com"
] | s1td1kov.noreply@github.com |
4e0ab1a421d52b382961c4a551792b772332b2f0 | 3be2e871a2a61d8cfcef4634e5e31ec72e596536 | /a3_csdn_ssd/a5_generator.py | f97b7753d5d331671d33e67b4df33be56e5038f1 | [] | no_license | Freshield/LEARN_detection | d3f1673c180016ae07dede9e5180b46cfaeaf860 | 03873331f917b7e16a3fd840df78c56a61225a54 | refs/heads/master | 2020-08-29T06:22:16.998124 | 2020-07-23T08:07:38 | 2020-07-23T08:07:38 | 217,953,306 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,654 | py | #coding=utf-8
"""
@Author: Freshield
@License: (C) Copyright 2018, BEIJING LINKING MEDICAL TECHNOLOGY CO., LTD.
@Contact: yangyufresh@163.com
@File: a5_generator.py
@Time: 2019-11-01 16:49
@Last_update: 2019-11-01 16:49
@Desc: None
@==============================================@
@ _____ _ _ _ ... | [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
74010a69f021897ef8daeaea7a48ed899c932378 | 745e2421cd2d110c37ec91315567678f50a7647f | /Module_Custom_module.py | e3b491cb21c85ffc2adf3dd798f2d6bb99ec7d3d | [] | no_license | TetianaSob/Python-Projects | 3a5760b21029db2de1123d4aa23a614c3ba41c33 | c37528db7e8d65e903357e2cdb7fa64e46537f15 | refs/heads/main | 2023-03-19T15:30:58.800231 | 2021-03-02T16:51:56 | 2021-03-02T16:51:56 | 310,383,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # Module_Custom_module.py
def peel():
return "Here's a delicious banana!"
print(peel()) # Here's a delicious banana!
print("\n")
def dip_in_chocolate():
return "Here's a delicious banana, dipped in chocolate!"
print(dip_in_chocolate())
# Here's a delicious banana, dipped in chocolate! | [
"noreply@github.com"
] | TetianaSob.noreply@github.com |
c38345e01044739d5f92ffa41d855c7a4666cdac | a406a0d9f8d0654e78b98399d0a4a99469abe6e0 | /tests/tuple/swap.py | 3d9376fe30cc710c018ac9a5a6289333f7a001a0 | [] | no_license | bethewind/pylite | ad4719151490e972beca555426b69da74cd76174 | 6d4ba6a894ab7d858bb3a15cedbfb956cfbb15db | refs/heads/master | 2023-03-31T05:06:13.885429 | 2021-04-03T07:39:10 | 2021-04-03T07:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | a = 1
b = 2
print "%d %d" % (a, b)
(a, b) = (b, a)
print "%d %d" % (a, b)
| [
"zhu_guang_wei@qq.com"
] | zhu_guang_wei@qq.com |
1e92bc0927ee81ef4febd08848a5963976c7af34 | 8d1c7fba7cd15f8a1e33fd27d11eefd1c67d579f | /src/test/py/bazel/options_test.py | 932931ec39c4ca868fb52848232bfcfd00b283f1 | [
"Apache-2.0"
] | permissive | bazelbuild/bazel | 5896162455f032efc899b8de60aa39b9d2cad4a6 | 171aae3f9c57b41089e25ec61fc84c35baa3079d | refs/heads/master | 2023-08-22T22:52:48.714735 | 2023-08-22T18:01:53 | 2023-08-22T18:01:53 | 20,773,773 | 20,294 | 4,383 | Apache-2.0 | 2023-09-14T18:38:44 | 2014-06-12T16:00:38 | Java | UTF-8 | Python | false | false | 7,008 | py | # Copyright 2022 The Bazel 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 applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
61fa3f3ebfb3e3ecadb242b53a321d51f3cd9699 | c7cce6315bf8439faedbe44e2f35e06087f8dfb3 | /prime.py | 41e7e4999e3b5ae471e148821965ff169fa344d6 | [] | no_license | sipakhti/code-with-mosh-python | d051ab7ed1153675b7c44a96815c38ed6b458d0f | d4baa9d7493a0aaefefa145bc14d8783ecb20f1b | refs/heads/master | 2020-12-26T13:05:06.783431 | 2020-07-08T07:00:59 | 2020-07-08T07:00:59 | 237,517,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from math import pow
prime = 510509
test = prime
test2 = True
for num in range(1000000000000):
test = test / 2
if test < 2:
test2 = True
break
if prime % int(test) == 0 or prime % (int(test)+1) == 0 or prime % (int(test)-1) == 0:
test2 = False
print("not prime",tes... | [
"476061@gmail.com"
] | 476061@gmail.com |
346326ecc1cf30a6e23a2ea5ff58853b543130d9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04033/s022774253.py | 8237ee626d91839f3e30a94e702b0e67a2d8a2c0 | [] | 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 | 261 | py | a, b = [int(i) for i in input().split()]
if a > 0:
print("Positive")
elif a == 0:
print("Zero")
else:
if b >= 0:
print("Zero")
else:
if (b - a) % 2 == 0:
print("Negative")
else:
print("Positive")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3013911bbbd3338850fa95fd8de60d05cd231733 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/d472fc2deea75a226e0c0def1a25b677f63827f8repository-test.py | d472fc2deea75a226e0c0def1a25b677f63827f8 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 1,045 | py | #!/usr/bin/env python
import unittest
import mis
from mis.repository import MemRepository,FileRepository
class RepositoryTest(unittest.TestCase):
def setUp(self):
self.repository = MemRepository()
self.repository.addXML("debian-1.xml")
self.repository.addXML("debian-1.1.xml")
de... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
214e20938990a793b515dc89377e24bca079d822 | 653c2045183022aed0ca8c1dbd63c34734f490db | /packages/slycat/darray.py | 9908d441e683c92bf85d59527b9d8a3c40b2d80a | [
"BSD-3-Clause",
"MIT"
] | permissive | svauban/slycat | ac96b2312c5e69d27e1d6c78c51d33b2baddbb2a | 662ddcc13dcffa5cc9c4e3c0fc0a269918270599 | refs/heads/master | 2021-01-18T18:59:31.465721 | 2015-04-29T04:12:05 | 2015-04-29T04:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | # Copyright 2013, Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain
# rights in this software.
"""Slycat makes extensive use of `darray` objects - dense, multi-dimension,
multi-attribute arrays - as its fundamental unit of storage and organ... | [
"tshead@sandia.gov"
] | tshead@sandia.gov |
8f14e5756f22642e6e7bfcb97beed39caf6df0f7 | bb55405dd5da77a25e8ed4acceea995f5f6da94d | /pypykatz/lsadecryptor/packages/wdigest/wdigest_decryptor.py | a50256282af835c1c8bd399ef6555a2b0755e073 | [
"MIT"
] | permissive | cclauss/pypykatz | 2d1cafb4e0a33d6208a23e7a48c217d36143b4df | 88d31ba73e6c5936ee8647c2a3f2ec820a9e9747 | refs/heads/master | 2020-03-18T18:14:41.603799 | 2018-05-27T11:35:11 | 2018-05-27T11:35:11 | 135,079,986 | 0 | 0 | null | 2018-05-27T20:39:16 | 2018-05-27T20:39:16 | null | UTF-8 | Python | false | false | 4,081 | py | #!/usr/bin/env python3
#
# Author:
# Tamas Jos (@skelsec)
#
import io
import logging
from pypykatz.lsadecryptor.packages.wdigest.wdigest_templates import *
class WdigestCredential:
def __init__(self):
self.credtype = 'wdigest'
self.username = None
self.domainname = None
self.encrypted_password = None
self.... | [
"info@skelsec.com"
] | info@skelsec.com |
230b423859949f1a3e9124f5fdb2d24824838cf1 | 3b90c82e964308d51ad84a189ab74809b08b054c | /source/06_Using_third_party_libraries/04_Plotting_with_matplotlib/matplotlib.py | e9abb820f72888f9f2c1a24b4fd9d682ffefdd9f | [
"BSD-3-Clause"
] | permissive | gauravkalyan/web2py-recipes-source | 2f0cad22bd0be9d33d108499c46f5a39d7c12703 | 6c80b674015f23caa99f64d851f8711d02a562e7 | refs/heads/master | 2020-07-09T22:54:01.695410 | 2012-02-29T14:28:31 | 2012-02-29T14:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # coding: utf8
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
import cStringIO
def myplot(title='title',xlab='x',ylab='y',mode='plot',
data={'xxx':[(0,0),(1,1),(1,2),(3,3)],
'yyy':[(0,0,.2,.2),(2,1,0.2,0.2),(2,2,0.2,0.2),(3,3,0.... | [
"massimo.dipierro@gmail.com"
] | massimo.dipierro@gmail.com |
2c01f1a7c5bc8d8498864226b3bd7a8d17177127 | 6e13f7fdae0144dd0397031c59397b0372f0872a | /horch/_create.py | 03be1a65bcf808ec4aaa909b5834c60080ecaac0 | [] | no_license | sbl1996/horch | 02e9996f764748c62648464d58318ceff92c87ed | 50d4f4da241a5727e3924a36fbc730dc61284904 | refs/heads/master | 2020-03-20T05:00:43.444092 | 2018-07-27T00:14:45 | 2018-07-27T00:14:45 | 137,201,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | import numpy as _np
import horch as _H
def uniform(low=0.0, high=1.0, size=(), requires_grad=False):
data = _np.random.uniform(low, high, size)
return _H.tensor(data, requires_grad=requires_grad)
def rand(*shapes, requires_grad=False):
return uniform(size=shapes, requires_grad=requires_grad)
def norm... | [
"sbl1996@126.com"
] | sbl1996@126.com |
0f57bfdabe6ebc023c1e45c8e23f633be6342929 | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day04/homework/周末作业1.py | c512bc9e69689de67278d55114762f796e5f0843 | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | ''''''
# 1,打印100以内7的倍数
# 2,打印100以内的奇数
# 3,打印100以内所有偶数的和
# 4,判断一个数是不是合数。(指自然数中除了能被1和本身整除外,还能被其他的数整除(不包括0)的数。)
# 5,判断一个数是不是素数。(除了1和它本身以外不再有其他的除数整除。)
# 6,求整数1~100的累加值,但要求跳过所有个位为3的数。
# 7, 一个新入职,月工资为2000元的员工,每年涨当年工资5%,20年后的月工资是多少?
# 8, 山上有一口缸可以装50升水,现在有15升水。老和尚叫小和尚下山挑水,每次可以挑5升。
# 问:小和尚要挑几... | [
"1748636236@qq.com"
] | 1748636236@qq.com |
e9911e090be8a486419710894e34151d9b36105c | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc068/A/4118109.py | 2231c1feee373e6f9298e021d0c5aabcda5976f4 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | x = int(input())
r = x % 11
if r == 0:
ans = x//11*2
elif r > 6:
ans = x//11*2+2
else:
ans = x//11*2+1
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
75efed1b9277d85d413627c3bdad4395c1908220 | 6c5a2649bd7dce505e108d5ceb862d9a3912ca8b | /categorical_variables.py | 52c32c8a3fdec9f3665e18ee67367d403e169f72 | [] | no_license | maidao/machine_learning_Intermediate | 680295ba8b9282312cd499151e57ef03e1a55283 | 7cb5a05b4bdd30f0555faa3705d7ab20793d61b5 | refs/heads/master | 2020-06-18T07:33:47.152520 | 2019-07-17T10:03:00 | 2019-07-17T10:03:00 | 196,215,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,862 | py | from train_test_split import *
from score_of_data import *
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import OneHotEncoder
s = (X_train.dtypes == 'object')
object_cols = list(s[s].index)
print("Categorical variables:")
print(object_cols)
def cate_1_drop():
drop_X_train = X_train.se... | [
"md.maidao@gmail.com"
] | md.maidao@gmail.com |
c28393447a4e10b679a5e96cbd82afa32852dc99 | 888121f127ece35ccbbaea182de7f490b55ffe37 | /20200217/두 수의 덧셈.py | 62116978b42a419f1727c7c1efe84d1befd90773 | [] | no_license | WallGGom/MoonPool | 20823c66447f8bd0de56a1ec572b2e2460cb63f6 | 69df40731f05f09ff1fc0d74728a512f6faa369b | refs/heads/master | 2020-12-15T04:15:23.267485 | 2020-04-09T09:05:01 | 2020-04-09T09:05:01 | 234,990,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | T = int(input())
bank = []
for tc in range(T):
A, B = map(int, input().split())
ans = A + B
bank.append(ans)
for i in range(T):
print('#{} {}'.format(i+1, bank[i])) | [
"noreply@github.com"
] | WallGGom.noreply@github.com |
f3fb9254fbb63482c5d28fdc3da25592499df98b | 647b640007f3fc76dd78fc582e71da7e7ab3ab27 | /oncoprint.py | 9f6fbf6ebfc5cad91d59536e866a3ccedee90e99 | [] | no_license | OmnesRes/dashapp | b59dc6bc3fe8e64328c6f74d6718e7d43ed47056 | abcc5eaaae1a2965e0c5fd507c4d546085b530c3 | refs/heads/master | 2022-06-30T10:08:38.330932 | 2019-06-04T19:39:26 | 2019-06-04T19:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import plotly
import plotly.graph_objs as go
import numpy as np
##read some data from OncoLnc
f=open('KIRC_29980_100_0.csv')
f.readline()
patients,days,status,expression=zip(*[i.split(',')[:-1] for i in f])
##This trace is needed for the patient names to show up on hover, but I made the markers invisible
data = [go... | [
"jordananaya@gmail.com"
] | jordananaya@gmail.com |
5b506f7202b97515d06f2e31a5bdbdd3d7688fea | 75dff087b6bec301193b2c145579d38b28249d22 | /Python/sorting/selectionsort.py | a1ed9ead5966f295f3213b22e74e50d3b1b18014 | [] | no_license | ChihYunPai/Data-Structure-and-Algorithms | 2d3d930d8374b62287f7cc8c3741a1d7b3d227b6 | 27a85e20605393a5eca3f8bd7d42c389612493d5 | refs/heads/master | 2023-06-07T04:04:57.186920 | 2021-07-03T03:28:29 | 2021-07-03T03:28:29 | 119,465,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
Selection Sort
================================
Time:
Average Case: O(n^2)
Worst Case: O(n^2)
Best Case: O(n^2)
Space:
Worst Case: O(1)
================================
"""
def selectionSort(array):
for i in range(0, len(array)-1):
min = i
for j in range(i+1, len(array)):
if array[j] < array[m... | [
"tonypaiwhite@gmail.com"
] | tonypaiwhite@gmail.com |
5bc1297a74a29ef2b068c865707de8f79ed3742c | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /check-if-number-is-a-sum-of-powers-of-three/check-if-number-is-a-sum-of-powers-of-three.py | df1e2f4f2301aead0c5c8e3f2991dca5be7d15a1 | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Solution:
def checkPowersOfThree(self, n: int) -> bool:
def helper(n, power):
if n == 0:
return True
if power < 0 and n != 0:
return False
if n >= pow(3, power):
return helper(n - pow(3, power... | [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
3956f74aeb67a6acdcef7d2f84d92e353528388a | 63255cf9da84b5dd6aa4454dd50385d50c43aac9 | /tencent/minimumLengthEncoding.py | d43417ac9da9d5767e2768109ed1d8d38132978f | [
"MIT"
] | permissive | summer-vacation/AlgoExec | d37054e937b7e3cc4c0f76019cf996acb0fb5a34 | 55c6c3e7890b596b709b50cafa415b9594c03edd | refs/heads/master | 2021-07-09T12:18:51.532581 | 2020-12-20T13:46:43 | 2020-12-20T13:46:43 | 223,929,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # -*- coding: utf-8 -*-
"""
File Name: minimumLengthEncoding
Author : jing
Date: 2020/3/28
"""
class Solution:
def minimumLengthEncoding(self, words) -> int:
if words is None or len(words) == 0:
return 0
result = 0
word_map = {}
for word in... | [
"280806137@qq.com"
] | 280806137@qq.com |
8b957229a6ffaf33315a6769c36566492e75a95d | a86ed7d780589d0704d2592701649cd0361476a3 | /flow-parser/parsetab.py | 1feb9fce5f83e5312e56376b7da08099a06d71e2 | [
"MIT"
] | permissive | vollov/java-tools | b617b09737967bf056f29808e4963df5c336c8f5 | 3e6fbce1ab463bbadfa7208b8eb562f88f43b03b | refs/heads/master | 2021-01-19T03:02:31.949714 | 2016-06-23T14:35:45 | 2016-06-23T14:35:45 | 55,705,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,144 | py |
# parsetab.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'SLR'
_lr_signature = '\xf1#\x1a\x19:\n\xda&\x9d\x0b\x05\x94\xa5>\x1e\xba'
_lr_action_items = {'ATTRVALUE1STRING':([29,],[32,]),'TAGATTRNAME':([1,7,16,21,28,34,35,],[7,15,15,27,-12,-13,-14,]),'TAGCLOSE':([6,7,12,... | [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
ef2d6910c2ddc5c99485785e8d50b23ceac293d0 | 4465d42c7aff17db98d92d512711aa34ed587af9 | /T4. Asynchronous programming/Asyncio/concurency_explanation/main_async.py | 70e692d683e92d3cb910c55e96e3bb78925cea1b | [] | no_license | hostjbm/py_gl | 85e4873fff02268154c4e6e82528120a7a87b8f5 | 90e80daef48fc6ab2a7996be02d4201030389311 | refs/heads/master | 2022-12-30T14:16:29.740328 | 2020-10-16T13:42:42 | 2020-10-16T13:42:42 | 303,307,814 | 0 | 0 | null | 2020-10-16T08:30:04 | 2020-10-12T07:11:14 | Python | UTF-8 | Python | false | false | 981 | py | import asyncio
import time
from math import sqrt
from main import *
def fibonacci():
yield 2
a = 2
b = 1
while True:
yield b
a, b = b, a + b
async def is_prime(x):
if x < 2:
return False
for i in range(2, int(sqrt(x)+1)):
if x % i == 0:
return False
await asy... | [
"sytishchenko@gmail.com"
] | sytishchenko@gmail.com |
ec70215ce6f0837b1134dc6775e9aea9ed24d8b4 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/nano_moment_team_line_money/art_home_database/law/test/family/others/office.py | 19dd7066e954bd18201279379a5570cf9cecfbec | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,348 | py | using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Collections.Generic;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Linq;
/* in this repo */
using dfbStartup;
namespace cog_console
{
... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.