blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dad32eae32751df732af523771da18a910812cc1 | dba1c22426113d32bda17a3d1f1282686649e34d | /week 2/ex_4.py | 0783b1cd9993665035e5cf68fbabb657f0fdb9bb | [] | no_license | gerritvanos/ALDS | 67ab1617c5a6ffceb6e2f682fa87fe5e318fe2cd | 2c4d0d46fc12ab615e347ebc1259e669f86794a4 | refs/heads/master | 2020-04-06T09:46:18.094848 | 2018-12-14T15:04:00 | 2018-12-14T15:04:00 | 157,355,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def my_bin(n):
assert n>=0
if n==1:
return "1"
elif n%2 ==1:
return my_bin((n-1) / 2) + "1"
elif n%2 ==0:
return my_bin(n/2)+"0"
def test_my_bin():
print("100 in binary with my_bin: 0b",my_bin(100))
print("100 in binary with python function ",bin(100))
print("220 i... | [
"gerrit.vanos@student.hu.nl"
] | gerrit.vanos@student.hu.nl |
d52e595dc32e6ffdf0abd0ec6fc0f348ce9ada5e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s662353627.py | 14c606722f6e0774d8c3d2625e893ec714620f0c | [] | 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 | 365 | py | n = int(input())
b = list(map(int , input().split()))
def f(c):
for i in reversed(range(len(c))):
if c[i] == i+1:
return (c[i], c[:i] + c[i+1:])
return (-1, c)
ans = []
for i in range(n):
(a, b) = f(b)
if a == -1:
print(-1)
exit()
ans.append(a)
#print(ans, b... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
164c530575bcfc51130c5427d7b4d93caa3a5a7a | 3d48586ad6c28755933ab1da478bf003ad56fdde | /template.py | a551620cc8fc15c742128426747f0f92c78c85c9 | [] | no_license | hareshkm999/DVC_Project | 4db3941e67e443e7bc461515611a883f6a1b3182 | b6e18a24f7a5f33ab378f549d6dcf71938954660 | refs/heads/main | 2023-07-25T04:23:08.673414 | 2021-09-07T08:52:08 | 2021-09-07T08:52:08 | 403,842,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import os
dirs = [
os.path.join("data", "raw"),
os.path.join("data","processed"),
"notebooks",
"saved_models",
"src"
]
for dir_ in dirs:
os.makedirs(dir_, exist_ok=True)
with open(os.path.join(dir_, ".gitkeep"), "w") as f:
pass
files = [
"dvc.yaml",
"params.yaml",
".... | [
"hareshkm999@gmail.com"
] | hareshkm999@gmail.com |
863d4753ef33244930f18c68a24c117304b45e7f | b07b4bc0e95bf1595b9b9507e2a6389535afe7b9 | /system.py | 1be287d4bbdfd167b4ede7ced04339184aba49c6 | [] | no_license | SuryanshAgarwal/Python_learning | 2661aa9a05284242d98d47c24c020a54b485c7e0 | 840da13d4e1ac5157c77db26eee5e23f2383273c | refs/heads/master | 2020-04-23T02:12:31.295554 | 2019-02-15T09:33:43 | 2019-02-15T09:33:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import sys
print(sys.argv[0])
print(sys.byteorder)
print(sys.float_info.epsilon)
class ABC:
x = 89
t = True
def __init__():
pass
# p1 = ABC()
print(sys.maxsize)
print(sys.getrecursionlimit()) | [
"noreply@github.com"
] | SuryanshAgarwal.noreply@github.com |
86a219a27e1a59ef89f8e50e08819b7ebb8dbc45 | 47c8165b725636298e001a1d6c2fc3c0c2136952 | /2048/cli.py | 4a19f68cec4c682338b36348de47dfdbba452920 | [
"MIT"
] | permissive | S8A/2048 | 3eaf4a577ab05653dcb39bccfbafef910c6248fa | f0ed44e717369c1e3b89e989075d0d15b7928dc3 | refs/heads/master | 2022-09-28T18:26:41.284679 | 2020-05-26T22:31:03 | 2020-05-26T22:31:03 | 266,127,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | import sys
from .board import GameBoard
def main(size, win):
game = GameBoard(size, win)
actions = {'l': game.shift_left,
'r': game.shift_right,
'u': game.shift_up,
'd': game.shift_down,
'undo': game.undo,
'exit': None}
stop = Fals... | [
"samuelochoap@gmail.com"
] | samuelochoap@gmail.com |
957f02d9987f5e849254ef1bc6109b145e5abde9 | 56345c289644498f96d79dcdbee0476ea4342daa | /lc206.py | bde40f1320931e30c967fe1f94f68470d155c0e8 | [] | no_license | boyima/Leetcode | 8023dd39d06bcb3ebb4c35c45daa193c78ce2bfe | 0802822e1cbf2ab45931d31017dbd8167f3466cc | refs/heads/master | 2020-12-13T06:35:00.834628 | 2019-11-05T22:27:50 | 2019-11-05T22:27:50 | 47,539,183 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | #Reverse a singly linked list.
#
# Example:
#
#
#Input: 1->2->3->4->5->NULL
#Output: 5->4->3->2->1->NULL
#
#
# Follow up:
#
# A linked list can be reversed either iteratively or recursively. Could you implement both?
# Related Topics Linked List
#leetcode submit region begin(Prohibit modification and deletion)... | [
"noreply@github.com"
] | boyima.noreply@github.com |
1882eeadfefbc7df490631970ee7297b02479cbf | 89ebbee6dc64570312e1b5957f6ab0c70d5671ef | /surplus_transaction/apps/goods/migrations/0015_auto_20200121_1823.py | e9939ee2baa8e01a1b7393e6c155174053b52b30 | [] | no_license | mengli1/django-secondhand-shop | 2439b35741522f7117fde279d68b6242e0848f89 | 6832b95b78d9adf359a28ee0a9c23d7aba1d9705 | refs/heads/master | 2020-12-21T14:59:29.775433 | 2020-05-06T11:59:06 | 2020-05-06T11:59:06 | 236,467,154 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Generated by Django 2.2.5 on 2020-01-21 10:23
import ckeditor_uploader.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0014_auto_20200121_1428'),
]
operations = [
migrations.AlterField(
model_name='goods',
... | [
"2761006009@qq.com"
] | 2761006009@qq.com |
ae118bfafb32884ac2572c4ed92fbffe0567ffd2 | 33f8305e37cb5ed1790cfb92ff22d2ad434b1f3e | /GergoPay/settings.py | dc4e38be3cc4788bf9fad7d0466f13bcf274c6e3 | [] | no_license | Shrey1307/GergpPay | 2d95efa6d23ced6dad8f9670c390fe7aed6a9cdd | d3b4a2706d5a5e0771fc85ccb151b5a1d6b0a100 | refs/heads/master | 2023-01-31T13:11:22.846111 | 2018-10-04T07:21:08 | 2018-10-04T07:21:08 | 151,533,250 | 0 | 0 | null | 2023-01-11T18:56:39 | 2018-10-04T07:18:03 | HTML | UTF-8 | Python | false | false | 3,716 | py | """
Django settings for GergoPay project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"shrey.saxena@thinqmagic.com"
] | shrey.saxena@thinqmagic.com |
7249037b709c0aa0c8542843b0645547e32df6f8 | a08492c20c6bda0282170fee569f3cd199876ec7 | /scr/return_directories.py | 6e090bc090e123ede17864f4f68be58e20f41193 | [] | no_license | GregoryREvans/evans | a7744011ccd2395e15d325092e85a31379717e6d | 7b0f7caa55e1c4b2a733b9b6fc42230a43313fb6 | refs/heads/master | 2023-08-31T04:29:31.296222 | 2023-08-21T02:32:12 | 2023-08-21T02:32:12 | 143,075,881 | 4 | 1 | null | 2021-06-06T07:27:38 | 2018-07-31T22:22:06 | Python | UTF-8 | Python | false | false | 425 | py | import pathlib
def return_directories(
p="/Users/gregoryevans/Scores",
ignores=("_archive", ".mypy_cache", "_squonk", "akasha", "stirrings_still"),
):
build_path = pathlib.Path(p)
returns = []
for score in sorted(build_path.iterdir()):
if not score.is_dir():
continue
if... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
77a5c19e356acc87f9ba6849f393fe5f21034d79 | 4dfb30e4c2790243ee3970e3642b5b453ff10d3d | /30daysofcode/15_linkedlist.py | 8ac5706331d2fc9f92969a52ba65d6f8fea48e34 | [] | no_license | dappledore/hackerrank | b2237ca0031d6687f8ba18d378967f235e8a91ae | f9ef0777afc8347b121b39326c1a7e4c209c394b | refs/heads/master | 2022-12-17T01:47:14.499012 | 2020-09-25T00:19:09 | 2020-09-25T00:19:09 | 286,184,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | # https://www.hackerrank.com/challenges/30-linked-list/problem
class Node:
def __init__(self, data):
self.data = data
self.next = None
class Solution:
def display(self, head):
current = head
while current:
print(current.data, end=' ')
current = current.n... | [
"dappledore@gmail.com"
] | dappledore@gmail.com |
bcdec480012510b7512902706b6a8705642cd22e | ca13c0a7f9a8f1d49fd1014c3b186fe24a31baf9 | /20-Course selection I.py | f24ac0e8cba59f81f813bd35623956d42e6e3142 | [] | no_license | ruinanzhang/Leetcode_Solution | 43a5835a96e31e8282a9a2dc23eec360ba3368c9 | d490af6874476d32c9a6c0270c596b2e415f9808 | refs/heads/master | 2023-07-31T04:44:10.717525 | 2021-09-18T01:26:47 | 2021-09-18T01:26:47 | 256,404,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | # Tag: Graph
# 207. Course Schedule (LeetCode)
# -----------------------------------------------------------------------------------
# Description:
# There are a total of numCourses courses you have to take, labeled from 0 to numCourses-1.
# Some courses may have prerequisites, for example to take course 0 you have to... | [
"rz2363@columbia.edu"
] | rz2363@columbia.edu |
c37631b47a0b6af83326403ee829649b804d3d58 | f9697acaab8a8ee05ccbd5368f6c72ad8c5dd485 | /backend/test_23115/wsgi.py | d1ce4e85722e439b0c888cf764cf31d84dc3e907 | [] | no_license | crowdbotics-apps/test-23115 | f6fd5b199d5586aed78f0a9844062c83ee0ab574 | c6e7f7cf32130aa45fb31bba3fa67ad8e0346e82 | refs/heads/master | 2023-01-24T22:13:58.393735 | 2020-12-01T16:37:00 | 2020-12-01T16:37:00 | 317,603,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for test_23115 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
16e7a75e20aad03573da75c844a7329f52d68fe5 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/container/node_pools/__init__.py | 245eda35f54a0e9605d06f2abed352e8ec9f670c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 1,982 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
ecced9539d46bf6fbd7b966823f1c2751c384a84 | b2e3d6ac8b551cefcd0708ddadd1674fc717f1c3 | /behave.py | 5d55bb8b36726ea28197e6b0f78bbdb2928ca610 | [] | no_license | adsmaicon/teste_simples_pytest | 749cef0ab35e52bdd84fb704a3a297fa58f50e94 | 4c9ef0ee4e815822deeed78a2df0681633b7b0eb | refs/heads/master | 2022-12-07T08:21:31.945846 | 2020-09-03T23:30:18 | 2020-09-03T23:30:18 | 292,157,572 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/env python3.8
import sys
from behave.__main__ import main as behave_main
if __name__ == "__main__":
sys.exit(behave_main())
| [
"m.carvalho@vhsys.com.br"
] | m.carvalho@vhsys.com.br |
6992636345088c5ff23b300d65f558ff32af6e1c | 3f92f2106587a44bb1d8a756246e942931138526 | /ENV/bin/trial | ed0290921f9e1129abac1ff5f11585f624ef2c1f | [
"Apache-2.0"
] | permissive | jacobKKK/IMnight2018_Backend | 36f2c2c86f202a9410d632fca9e374939f338e1e | b5673b1addb2124b79dd653814b7f5773a2921b2 | refs/heads/master | 2021-04-27T18:04:45.362862 | 2018-02-21T12:21:38 | 2018-02-21T12:21:38 | 119,137,846 | 0 | 0 | null | 2018-01-27T06:01:41 | 2018-01-27T06:01:40 | null | UTF-8 | Python | false | false | 265 | #!/Users/YuChih/Project/IMnight2018_Backend/ENV/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.trial import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"secret104278@gmail.com"
] | secret104278@gmail.com | |
9105b9a44be0ecd8628f5443fb4af77f70ea6030 | 1958bfbd56a0540d9e56a8a8e017817ce2009571 | /test.py | 290615a778a192a8b174396a98d2f0baad3aab2b | [] | no_license | Heddy147/ias | d020c234519652df1ace410f90b8a87f63a3daf2 | d371a0ce4c9a71243a1eeab93bc57dfaf23b5f91 | refs/heads/master | 2020-12-24T19:28:42.233008 | 2016-05-30T14:12:01 | 2016-05-30T14:12:01 | 59,740,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import json
def sort_erg(item):
return item["zeit"]
ergebnisse = [
{
"id": 1,
"zeit": "561087"
}, {
"id": 2,
"zeit": "531874"
}, {
"id": 3,
"zeit": "561187"
}, {
"id": 4,
"zeit": "547954"
}
]
sorted_erg = sorted(ergebnisse, key=sort_erg)
print(sorted_erg) | [
"dominik.hendrix@hotmail.de"
] | dominik.hendrix@hotmail.de |
9db2da75b2e59f9d5cadb2023d453c5130274276 | 6d77d68f53e1fa0535154c6e43d19d393d06e14b | /face detect.py | 1dbe8fb1073c295a3959714a38663ea84596399e | [] | no_license | spragad/face_detection_yolo | 7728129608925b9e16457832f6484dd4d18129c4 | 6d34a0e8eacf65e0d0ec647671f2255fe6cde057 | refs/heads/main | 2023-02-02T08:09:15.880450 | 2020-12-17T00:41:12 | 2020-12-17T00:41:12 | 322,130,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py |
import os
print(os.getcwd())
os.chdir(".../faced-master/")
import cv2
from faced import FaceDetector
from faced.utils import annotate_image
from time import process_time
#___________________________________________________For Image______________________________________________________
face_detector = Face... | [
"noreply@github.com"
] | spragad.noreply@github.com |
0c8caba54a6f839b8090f86a54ad68d69011443c | b77d5904a03a6f87649042d46e58be36f7caf645 | /flaskblogg/routes.py | fa0510ee88bc92ea48f9d39e12f90d24b63d7827 | [] | no_license | ezquantum/Flask_Blog_V1 | 64099241a7ec14758db7cc062423769bebe5ff9a | ab45ee275b8e57d9d4b4b600f10a63c2bb75e11b | refs/heads/main | 2022-12-29T08:49:00.489137 | 2020-10-13T03:44:54 | 2020-10-13T03:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | import os
from urllib.request import urlopen
from flask import request, _request_ctx_stack, abort, Flask, jsonify, render_template, url_for, flash, session, redirect, g
from six.moves.urllib.parse import urlencode
from authlib.integrations.flask_client import OAuth
from dotenv import load_dotenv, find_dotenv
from werkz... | [
"Amajimoda@bob-2.local"
] | Amajimoda@bob-2.local |
9e95bff67fee864bd8a59334a7809bc25385125f | 0032cbd2d47227620083d3b963fc76e9045e733e | /ENV/bin/easy_install | 192569c2a025cd6b5a1a529e7dc59f8e4f1031a4 | [] | no_license | xiangzhuyuan/python-getting-started | 38397a0b3339c3e184251c110c8da2abe035be66 | 30456abaa7bcbec0dd84e1037fae7de520c7e54e | refs/heads/master | 2020-04-08T16:19:42.006471 | 2015-03-13T10:28:22 | 2015-03-13T10:28:22 | 32,149,683 | 0 | 0 | null | 2015-03-13T10:25:15 | 2015-03-13T10:25:15 | Python | UTF-8 | Python | false | false | 288 | #!/Users/zhuyuan.xiang/workspace/python-getting-started/ENV/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"xiangzhuyuan@gmail.com"
] | xiangzhuyuan@gmail.com | |
93af07926b81a28d66ba3b60bbd5a801aaf3a4f8 | f572f48682e4efebac8d5102e51cb62da5caa7c9 | /geekshop/urls.py | d1799be21a399ea0cfd29e1cb128918a101a7363 | [] | no_license | cheef78/Django_basic | 4ac9c6fdcd9dc8775e16fe01c7c8799e207a22dc | 1e6771265769ce4a6295953d97c5c78ed2a3737b | refs/heads/master | 2023-04-11T12:54:45.085481 | 2021-03-13T11:04:04 | 2021-03-13T11:04:04 | 342,874,905 | 0 | 0 | null | 2021-04-25T21:37:13 | 2021-02-27T14:24:24 | CSS | UTF-8 | Python | false | false | 1,329 | py | """geekshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-base... | [
"suslovoleg@mail.ru"
] | suslovoleg@mail.ru |
b2617614628599bfb4b9f00487c546159e392f55 | e663909cec3c4eda12bb705fce9a6dc901bb7d88 | /爬虫/day12 celery/案例/定时任务的使用/tasks.py | 4c40c0aff2ac3b0e98d732cc5040744ae7ff06b3 | [] | no_license | 1284753334/learning2 | a03f293965a652883503cae420d8b1ad11ae6661 | f2fcb3c856656cc8427768b41add3ee083487592 | refs/heads/master | 2023-01-30T23:18:26.951210 | 2020-12-20T15:57:18 | 2020-12-20T15:57:18 | 315,065,804 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from celery import Celery
from celery import Task
app = Celery('tasks', backend='redis://:123456@127.0.0.1:6379/2',
broker='redis://:123456@127.0.0.1:6379/2')
app.config_from_object('celery_config')
@app.task(bind=True)
def period_task(self):
print('period task done: {0}'.format(self.request.id))
# 运行work
# cel... | [
"huapenghui@git.com"
] | huapenghui@git.com |
19ba8b35b07bdc9012a35b15b743cab393e138f8 | aff5b9799f52925318ab47dd8b35db57d8c0a5b6 | /untitled.txt | 08261242a88b5cdb918ff12d858a1ab555e014ae | [] | no_license | Fiaz420/Kalahacker | a2c416b29e0f347fce19548dd98edb3219e7000d | 6feaf27b8a55fa464c6ab7093c254082f3bbcb61 | refs/heads/main | 2023-05-14T02:01:56.760616 | 2021-05-25T06:49:05 | 2021-05-25T06:49:05 | 370,476,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,942 | txt | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = ... | [
"noreply@github.com"
] | Fiaz420.noreply@github.com |
d38154eb5737c5199a7f395ef72609068dab38b3 | 90bec950082b4c12c5ef96ff3aec07ac1c89e3be | /1.py | 544bf46e803586117686d6ba615f9ab4299d5945 | [] | no_license | kzhgun/coursera_py_hse | 2a3cbdddbe8f8d43cae5e4ce1ad553be212f1747 | 0884e446a419ed026d80532250870fd4d16f13c1 | refs/heads/master | 2022-11-15T10:13:19.478572 | 2020-07-08T18:55:41 | 2020-07-08T18:55:41 | 261,000,252 | 0 | 0 | null | 2020-05-03T19:14:37 | 2020-05-03T19:00:23 | Python | UTF-8 | Python | false | false | 273 | py | input()
a = list(map(float, input().split()))
n = int(input())
def func(a1):
summ = 0
for i in range(n):
q, p = map(int, input().split())
for el in a1[q:p + 1]:
summ += 1 / el
print("{0:.6f}".format((p - q + 1) / summ))
func(a)
| [
"zhgunksenia@gmail.com"
] | zhgunksenia@gmail.com |
e13655cec855a0e54a334077cef0693f13d2836a | 75485f3371f5f3c786e021b2657c6750120a5d09 | /PoseBallRelationDataset.py | 8bffe4a45869e1bfec02eccfbc4f179b7e605858 | [] | no_license | icicle4/PoseObjRelation | af0b138072e04d8d71d913ae1751b7dbe32bbbbe | 4f55f8bed99663181ec03e9a27575e33a5459418 | refs/heads/master | 2020-11-28T01:21:47.133144 | 2019-12-23T03:15:53 | 2019-12-23T03:15:53 | 229,667,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,415 | py | import json
from itertools import groupby
import cv2
import os
import numpy as np
import torch
from torch_geometric.data import Data, DataLoader
from util_tools.util import center_bbox, draw_skeleton_in_frame, draw_box_in_frame, area
import random
def relation_mask_visualization(image, related_mask, kp, human_box):
... | [
"icicle4@icloud.com"
] | icicle4@icloud.com |
f5dbebfd08d2bedf77c3816adce2bd252fdfde3b | 629efe629347d3b3ee3857ff29f6c615a9e51115 | /transport/migrations/0017_auto_20200508_0418.py | ae35b7b9b8fae2ffefd615e9d40463ee3587c4e0 | [] | no_license | abdulhanan/wsite | 8a56bd873241c5c13295da33eddf930f10a0ad6c | f6dbb69139f5ce3b53a598086fe2fcd79483467e | refs/heads/master | 2022-06-21T11:45:04.684861 | 2020-05-12T00:55:56 | 2020-05-12T00:55:56 | 263,194,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.0.5 on 2020-05-07 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transport', '0016_auto_20200508_0414'),
]
operations = [
migrations.AlterField(
model_name='transportbooking',
name=... | [
"11beseahanan@seecs.edu.pk"
] | 11beseahanan@seecs.edu.pk |
0a1469a82f87c708f4fe024503284be3397f152d | 3d669e500ba485fc4520a2aca3ff6bd94bd9a87e | /LAB2/converter.py | 758071a22ff3b144454cc6afe972bc6814abbdbc | [] | no_license | LuisAlvelaMendes/CMO | 7b7d78f1e0b373990a39a6da237987c5ab512248 | 85e8fca7dae27674ca08e3f8ac1cb8903b4e1ed6 | refs/heads/master | 2021-03-16T11:32:12.498058 | 2020-04-12T20:51:19 | 2020-04-12T20:51:19 | 246,901,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | """
Range 60,0dB -120,0dBm
Mobile unit 1 Mobile Terminal 00,00000 000,00000 0,0
Fixed unit 2 Monte da Virgem 41,11313 -008,59838 200,1
Fixed unit 3 Sardoura 41,04918 -008,31171 316,6
Fixed unit 4 Resende 41,13410 -007,98018 552,6
Fixed unit 7 Exercise3Celorico 41,33887 -007,84056 1301,0
Fixed unit 8 Exerci... | [
"noreply@github.com"
] | LuisAlvelaMendes.noreply@github.com |
a170f3cdb43383b1106e3eac04e7a20a7ae1edc5 | b3136ce22bf1a2025864463b08e1bf2b404e810c | /uuthenguyento.py | 5b141670540eb3df25082642530e905ed0504660 | [] | no_license | Keybinhoainam/Python | 21c02664b24fbaad881f54a6ded31546af05ea6f | 1d3555934cfe668618bf7fb8dfdfb8017867c320 | refs/heads/master | 2023-08-28T15:32:55.829094 | 2021-11-05T15:10:17 | 2021-11-05T15:10:17 | 401,331,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import math
def kt(vtnt):
n=10000
check=[0]*(n+5)
for i in range(2,n+1):
if(check[i]==0):
vtnt.append(i)
j=i*i
while(j<=n):
check[j]=1
j+=i
test=int(input())
for t in range(test):
s=input()
vtnt=[]
snt=['2','3','5','7']
... | [
"keybinhoainam@gmail.com"
] | keybinhoainam@gmail.com |
e50c5b58cede70ff4ee4e99a6462a2a0bfa66ebb | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/number-of-ways-to-reorder-array-to-get-same-bst.py | 20d18c287b19a6543b31a2e3550bee7c771d1829 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class Solution:
def numOfWays(self, a: List[int]) -> int:
z = factorial(len(a))
def F(a):
nonlocal z
if a:
z //= len(a)
F([i for i in a if i < a[0]])
F([i for i in a if i > a[0]])
F(a)
return (z - 1) % 1000000007 | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
b5ddde85e380c31b0774555e01f85bf4d5760467 | 5cfd0d94d25e617c8a39bac4e73fa37125ed2c2d | /DGM/models/modifiedgooglenet.py | 0f76dc1a5e4211650f04e9323227d067da3c1d80 | [] | no_license | boyuanmike/Adversarial-Metric-Learning | f6c37e641f93ae971ee11024f27ae1c5d5c1dff3 | 59be862f3f113d45d1edf39b5d88eb9168adc6f0 | refs/heads/master | 2020-04-30T12:28:37.263588 | 2019-04-30T04:27:35 | 2019-04-30T04:27:35 | 176,827,443 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # This file is the pytorch implementation of https://github.com/duanyq14/DAML/blob/master/lib/models/modified_googlenet.py
import torch
import torch.nn as nn
from models.google_net import googlenet
class ModifiedGoogLeNet(nn.Module):
def __init__(self, out_dims=64, normalize_output=False):
sup... | [
"noreply@github.com"
] | boyuanmike.noreply@github.com |
9dbbb0c7a4050d651f17d49dbb915c95b9882ed3 | d3e1472a78922f221721fad914fdf3278ce5d10f | /ServiciosParlamentarios/environments/prod/settings.py | d4a4071bdc34fba298e9b3dc91e89fdc84bda60a | [] | no_license | gdebenedetti/spd-back-end | 76b9ec2cb7b630855e8729b8ac5d199ba8abfcc0 | 4163d615876316945912a5f9cbbd5005d334678c | refs/heads/master | 2021-01-24T02:38:40.925036 | 2016-01-08T19:01:41 | 2016-01-08T19:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,443 | py | """
Django settings for ServiciosParlamentarios project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(B... | [
"giopromolla@gmail.com"
] | giopromolla@gmail.com |
4d39a6fff8aa5c95aaf2abec67e4ef353428512e | 0e78b0dd8a27820500ab94308fbf7f45da451d47 | /Python/100 challenges/day 9 -301- 37/c35 - print last five square list.py | 802bad34c82eff4b2b0db1718d5c336d03403954 | [] | no_license | RLeary/projects | afc1d567fbddcc29ff1b0f65938b42d59b145636 | c55cf6d4ee60d2d2f5b647e870c07b5a88d58f7d | refs/heads/master | 2020-12-05T12:03:46.546716 | 2020-03-11T14:32:30 | 2020-03-11T14:32:30 | 232,103,586 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Define a function which can generate a list where the values are square of
# numbers between 1 and 20 (both included). Then the function needs to print
# the last 5 elements in the list.
#
# Hints:
# Use ** operator to get power of a number.Use range() for loops.Use
# list.append() to add values into a list.Use [n1:n... | [
"ruaraidh@live.com"
] | ruaraidh@live.com |
d84008737b9bd1f9dcb63e284d0f2f7a674116bc | d880b55d45726a9b9b12d24b059769350eeb6fb6 | /app/tests/test_eventactions.py | 0d49b3c282c0d5aaafc4cee1e7dc907315c8b1b1 | [
"Apache-2.0"
] | permissive | twatchy/cito_engine | 261a0bbf0dbdf1fe8cca19f598972307bc7df1c7 | a62dce3c76567dd36b7efcaa70e03728b335f44e | refs/heads/master | 2020-04-21T11:36:25.187256 | 2016-11-01T03:37:13 | 2016-11-01T03:37:13 | 169,531,529 | 0 | 0 | Apache-2.0 | 2019-02-07T06:57:48 | 2019-02-07T06:57:43 | Python | UTF-8 | Python | false | false | 4,329 | py | """Copyright 2014 Cyrus Dasadia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | [
"cyrus@extremeunix.com"
] | cyrus@extremeunix.com |
4394513dce3447ce23c63b1b1c2f1cb7e8496e66 | f2224bac9f28ec73b9f12719983af42524ad2b28 | /filehandeling.py | 573b70d92e37f8543ec233b8f0b97e67b1563da9 | [] | no_license | WeerakoonOS/Python-Codes-1st-sem | fd5b8c87fe8ed2828f88af2ead00cf5826120822 | 8251a7bbb837a4699c00dff511836142bbc6b1c4 | refs/heads/master | 2020-04-06T04:43:06.891945 | 2017-02-23T05:33:09 | 2017-02-23T05:33:09 | 82,888,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | file=open('f.txt','w')
file.write('My favorite subject is ICT\n')
file.write('My school is located in the western province\n')
file.write('My parents are providing expenses for my education\n')
file.close()
file1=open('f.txt','a')
file1.write('Sri Lanka is one of the beautiful country in the world\n')
file1.close()
f... | [
"oswucsc@gmail.com"
] | oswucsc@gmail.com |
97881fac8f0fc31d32cb2dcfab394222d5961334 | 9bd6caf9c42ac67dfcb120af272d8e65d8f6a9f6 | /venv/bin/python-config | 473844071904928c2233c7ec06d5e3c88290dd42 | [] | no_license | haedal-with-knu/KNUstudents | f6da8e8c112af317addeb1cccaca9f3bfa6bcacc | 6fc88e5699cc27fbf9f7b6437d84b249e450232e | refs/heads/master | 2020-06-30T13:25:20.994394 | 2019-10-13T14:58:36 | 2019-10-13T14:58:36 | 200,837,311 | 1 | 6 | null | 2019-10-13T14:06:47 | 2019-08-06T11:24:16 | CSS | UTF-8 | Python | false | false | 2,360 | #!/Users/kangminchoi/haedal/KNUstudents/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys... | [
"choikm3847@gmail.com"
] | choikm3847@gmail.com | |
61748d1f6e05bcad0eb600b0cbe6235327af080e | 3fbdf1a2672cc75607370ddc181cc67f145d1b65 | /actionScripts/toggleDemoMode.py | 957710b841713230f61c2e2b9e016e92b995994d | [] | no_license | aaronr22/HawKoin | f5706da59610437931346aed32b28cf80e315fd2 | d9174560dee9fbc211b3de1370fa515441e4ce32 | refs/heads/master | 2020-03-12T17:45:35.563987 | 2018-11-25T19:03:33 | 2018-11-25T19:03:33 | 130,744,026 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import json
import requests
import sys, getopt
def main(argv):
url = 'http://localhost:3000/api/org.hawkoin.network.DemoMode'
json_payload = {
'$class': 'org.hawkoin.network.DemoMode',
'id': 'activated'
}
try:... | [
"mattaddessi@Matts-MacBook-Pro.local"
] | mattaddessi@Matts-MacBook-Pro.local |
b8b9956a5434afb4a9eb0572f601bb541e5995a5 | c13c732b767d4c71751b26aa89d6a17cb1c4bf51 | /adaboost.py | 4090e523f37ca05e1b247d7efb96556aceffd0ee | [] | no_license | gm19900510/Adaptive-Boosting-Classifier-for-Pedestrian-Attributes-Identification-with-Color-and-Texture-Feature | 092d9d61665e1cc5d2fc4227ff4fc1ce4a988836 | 6ad86870ed12fcc5ee4caf024914ca8990d18235 | refs/heads/master | 2020-04-18T16:43:22.410897 | 2018-09-06T09:39:28 | 2018-09-06T09:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | import graphviz
import pydot
import time
import numpy as np
from sklearn.ensemble import AdaBoostClassifier
from sklearn.tree import DecisionTreeClassifier
from imblearn.under_sampling import RandomUnderSampler
from imblearn.combine import SMOTEENN
from sklearn.externals import joblib
from sklearn import tree
def tra... | [
"helmiagilachmani098@gmail.com"
] | helmiagilachmani098@gmail.com |
0cc996327080cef74cacd4ca115b5b1872936fa0 | 0e78b2df0fb93afc62684dece8ac05b700570248 | /BOJ/10833.py | 06f397ce5fd59451cdaa7e04768b716105b35bc1 | [] | no_license | ajy720/Algorithm | f1e2301327db09667ba011bc317c8f380707c25c | b141538802e9056f154ab91c816ad29500505f34 | refs/heads/master | 2022-05-06T21:37:05.780170 | 2022-04-23T09:25:52 | 2022-04-23T09:25:52 | 200,335,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | ans = 0
for _ in ' '*int(input()):
a, b = map(int, input().split())
ans += b % a
print(ans)
| [
"ajy720@gmail.com"
] | ajy720@gmail.com |
f6f725cc17fc1faf7eac0a28e5e4359dcb58b5a7 | 3c94e55a1f2a41bdebd7a174c84c560283754b92 | /coffeecoin_admin/wsgi.py | 86e4bf45b6775b5ca4142c8a61f54a6eb322d346 | [] | no_license | coinmenace/coffeecoin_admin | 2542bca5f186b117a4d2b90cdde7cdbfa7ad6f3b | 65ceaa4ffba319fac3286388b572d19cde646bb0 | refs/heads/master | 2020-03-27T04:15:57.482384 | 2018-08-24T01:22:39 | 2018-08-24T01:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
WSGI config for coffeecoin_admin project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"webframes@gmail.com"
] | webframes@gmail.com |
7323b2c18d384da31b9dfd21065b9cdad6f87a6d | 38b720fe7a6d42a16703cdf262b4898c2cc43a7b | /main.py | 105de1e70caf6d9fdddf22959cdf2c46a188ac16 | [
"CC-BY-4.0",
"MIT"
] | permissive | learnleapfly/minesweeper | aa2492b9f560593d49e887753e7f2475df390b19 | a9a951137da68a37ac4db2129ce4679f741d8fea | refs/heads/master | 2021-01-20T22:34:21.408485 | 2016-06-03T05:39:43 | 2016-06-03T05:39:43 | 60,320,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.properties import NumericProperty, ObjectProperty, StringProperty
from kivy.clock import Clock
from kivy.core.window import Window
from kivy.logger import Logger
from r... | [
"sastels@gmail.com"
] | sastels@gmail.com |
32cb38a310c700108f11efe46c3216dddabc43fd | 0649e55322c5efa514294754151cedda66ea28be | /build-template/cotton_settings.py | 0598181e80025bf2d14645be1e71bedbd9ebb1e2 | [
"MIT"
] | permissive | evilchili/cotton | c803eabe9fb27dd45b3a545c4f0407c7f6303427 | 92d72a372e2afed91b6c5928ba096ed1d74f5c9a | refs/heads/master | 2021-01-13T02:08:54.495162 | 2015-02-13T16:06:10 | 2015-02-13T16:06:10 | 30,030,865 | 1 | 2 | null | 2015-02-03T23:29:16 | 2015-01-29T16:59:01 | Python | UTF-8 | Python | false | false | 2,844 | py | # cotton_settings.py
# -- Tell cotton how to deploy your application
#
# Import the default settings directly into the current namespace, so that you can combine,
# extend, and override the defaults with settings unique to your application deployment.
from cotton.settings import *
import os
# Name your project here.... | [
"greg@automagick.us"
] | greg@automagick.us |
20691830fbf91a5caae39677d6ec0024590b522a | 72b00923d4aa11891f4a3038324c8952572cc4b2 | /python/datastruct/dd_oob/pgm07_28.txt | c1f7f8084c1a8e16b2bdb107bdc35ca04776988a | [] | no_license | taowuwen/codec | 3698110a09a770407e8fb631e21d86ba5a885cd5 | d92933b07f21dae950160a91bb361fa187e26cd2 | refs/heads/master | 2022-03-17T07:43:55.574505 | 2022-03-10T05:20:44 | 2022-03-10T05:20:44 | 87,379,261 | 0 | 0 | null | 2019-03-25T15:40:27 | 2017-04-06T02:50:54 | C | UTF-8 | Python | false | false | 722 | txt | #
# This file contains the Python code from Program 7.28 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm07_28.txt
#
class SortedListAs... | [
"taowuwen@126.com"
] | taowuwen@126.com |
8dcec558df4f4a3598ab780b750a6e0064bd8ade | cf5bc71196814c875fe7f63d441d6ca016155737 | /caesar-cipher.py | 33a227678064870e30fae361b1860d0ad6c915f2 | [] | no_license | pkrrs/caeser_cipher | 2aa15426531ce7dd5c23a61620d2a6b37b9b19da | 20ad1835fab7325156be0b430969c063db061dd7 | refs/heads/main | 2023-06-22T21:37:25.377007 | 2021-07-06T19:07:07 | 2021-07-06T19:07:07 | 383,572,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c',
'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',
't', 'u', 'v', 'w', 'x', 'y', 'z']
logo = """
,adPPYba, ,adP... | [
"noreply@github.com"
] | pkrrs.noreply@github.com |
69431a884b8cbce9273d4e7c5a8c5fa2e91d8e23 | 88bae1c9e754704daaab7d2dc2d331588bf0198f | /stringSpacePL.py | ded3921f8716ae01148f47cf99fe71fb24f895b1 | [] | no_license | AdamBialachowski/DODziennyBonus | b494227b5d72ff2c02d9c761e605d5b6ba7e9008 | 50a54d706db043780a6b25a7d76d6b10cbd52dd5 | refs/heads/master | 2022-11-06T10:36:36.843255 | 2020-06-16T14:19:21 | 2020-06-16T14:19:21 | 271,051,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | dailyBonus = "Dzienny bonus"
howManyAccount = "Podaj ile kont chcesz zalogować"
next = "Dalej"
add = "Dodaj"
login = "Login:"
password = "Hasło:" | [
"pitoab@wp.pl"
] | pitoab@wp.pl |
16e518af1ef8faffdd952926725af111f5dc1064 | 35dbe24cd5bd9abc5e5f2963affbb53ab47af9c7 | /self_parameter.py | cb0164a403517af8e796944d0bdc53bc65c3cad5 | [] | no_license | geethayedida/codeacademy_python | 4f4baf67c179fa423c86242ceb37a0494e458ec3 | 1705af3ffa4b0e767d5b4db98a515aeb5b814da8 | refs/heads/master | 2021-01-10T11:14:36.134173 | 2016-02-05T16:35:16 | 2016-02-05T16:35:16 | 51,018,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 03 19:38:52 2016
@author: Geetha Yedida
"""
class Animal(object):
def __init__(self, name):
self.name = name | [
"yedida.geetha@gmail.com"
] | yedida.geetha@gmail.com |
c4811b51bbacc8bb1c631898f0908eeb72d312dc | 6cdbc1f314d12ed5bff21cd6ca5b2e7b71f09c91 | /lists/migrations/0004_item_list.py | 731a08eb05a32c707ff665942814a314ab9e053b | [] | no_license | nanjsun/TDD-Django | 11940a715f5f312ff2c297e146cbaa65f95ba151 | 1c80127339efd3587977e9193adee01fc04f03fa | refs/heads/master | 2021-01-19T10:00:33.128559 | 2017-04-07T00:16:43 | 2017-04-07T00:16:43 | 87,811,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-01 21:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('lists', '0003_list'),
]
operations = [
mig... | [
"279956327@qq.com"
] | 279956327@qq.com |
2ceb33c6d79c386bdc5e5ec6a9245488beada078 | 9ef59114b6be16df404a1041ecc7f5f885f4ee1d | /qqbot.py | 86b91d8c1721f9656e3e82873bd54a63703b791a | [
"Apache-2.0"
] | permissive | limu520/qqbot_checkbot | 7ff0dace0ac6f90a6f44aed53bdd7490638738d1 | 205e077dcd0e6096f26056e7936da11ae93786d4 | refs/heads/main | 2023-07-09T12:58:09.251477 | 2021-08-06T05:59:37 | 2021-08-06T05:59:37 | 393,256,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | from flask import *
import requests
import sqlite3
import random
import json
##配置文件
api_url1 = 'http://127.0.0.1:5700/send_msg'
api_url2 = "http://127.0.0.1:5700/delete_msg"
qq_group=["723174283"]
##初始化
for a in qq_group:
db = sqlite3.connect("qq.db")
cur=db.cursor()
cur.execute("CREATE TABLE IF NOT EXIST... | [
"noreply@github.com"
] | limu520.noreply@github.com |
89526b724a8f8978c3bf6a388199944ae3c8c518 | 94a418db07710410479a1b54d7ddca163ec5b5a1 | /7-25/高阶函数之sorted函数.py | f15b2c90d28c4505070c577818da8feb40dd5407 | [] | no_license | 1131057908/yuke | 2e09736575ae3ed9cc86141f3a24e3055577d7ea | 7985ead3b8ab0eb9d503bcb85112364a36bff800 | refs/heads/master | 2020-03-24T17:54:06.320658 | 2018-07-30T13:01:02 | 2018-07-30T13:01:02 | 142,875,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | """
座右铭:将来的你一定会感激现在拼命的自己
@project:7-25
@author:Mr.Zhang
@file:高阶函数之sorted函数.PY
@ide:PyCharm
@time:2018-07-25 10:51:28
"""
#sorted():用于对个序列进行升序排列。第一个参数:序列,第二个参数key:用于指定一个只接收一个参数的函数,这个函数用于从序列中的每个元素中提取一个用于排序的关键字,默认值为None。第三个参数reverse:有两个值,一个为True,一个为False。如果reverse=True,则列表中的元素会被倒序排列。
#sorted默认按照ASCLL排序
from functools im... | [
"1131057908@qq.com"
] | 1131057908@qq.com |
7fc7aff791a09b99186fbd863e81e975b037f8bf | af8c6011942e920703372c34b47254e4da423c55 | /aortaPy/lung-cancer-detector-master/resnet3d_101/trainval.py | ea62720b8a4861a570b8844600febbb063d13dc8 | [] | no_license | gfkd-xyu/xyu-code | 8aa1e4173a3086446d050ec2b125e4c79fd67dc6 | f4b067f236951ed43e7f801883bd1fcecb858f22 | refs/heads/master | 2021-07-07T02:32:39.153352 | 2020-07-27T07:01:19 | 2020-07-27T07:01:19 | 132,722,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | """Train script
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import datetime
import requests
import argparse
import numpy as np
from keras.callbacks import (
ReduceLROnPlateau,
CSVLogger,
EarlyStopping,
ModelCheckpoint)
from keras.opti... | [
"gfkd_yx@pku.edu.cn"
] | gfkd_yx@pku.edu.cn |
58f6541c17f821441c527340ba01b4d5c1e80583 | 51fa621d5b095ab41a338b4191e201f878a9e8db | /ss_project/settings.py | 5d1cec52a680cc264c16695897815c8deacb14e3 | [] | no_license | woshiwzy/ss_project | 5da6430530e5d3d1de524df0bf594161d31d9996 | fb7b92975f307ceaa1ba100db8fa060f53184bcc | refs/heads/master | 2020-03-19T06:41:34.891137 | 2018-07-09T14:10:18 | 2018-07-09T14:10:18 | 136,046,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | """
Django settings for ss_project project.
Generated by 'django-admin startproject' using Django 1.11.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"wzyfly@sina.com"
] | wzyfly@sina.com |
17aa41a4d34392c255c77bf534f4c854c422ba37 | 3375aa017a4db589614459e595565b6bb8f6ec41 | /modelLDA.py | c44087fc9a5aab25844e928517bb7432d80effc2 | [] | no_license | zmddzf/wandering_earth | bd1f8135852f2f1a72d2297a43a2935ed07d4246 | 1a1e29ac067b695e0fcb3b57b254825d9ee5a93d | refs/heads/master | 2020-04-22T00:10:49.144386 | 2019-02-10T11:18:47 | 2019-02-10T11:18:47 | 169,970,208 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 9 22:04:51 2019
@author: zmddzf
"""
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from sklearn.decomposition import LatentDirichletAllocation
import jieba
import pyLDAvis
import pyLDAvis.sklearn
# 读取评论数据
hComments = []
... | [
"35198228+zmddzf@users.noreply.github.com"
] | 35198228+zmddzf@users.noreply.github.com |
2a0f864a90d2c9af31adaade203406309f66c9d1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_333/ch77_2020_04_13_15_29_15_904054.py | a10778292bfbe71d82aaf9be4a6d5a915023fc82 | [] | 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 | 348 | py | import math
def calcula_tempo(dicionario):
nome_tempo={}
for nome_e_aceleracao in dicionario:
nome=nome_e_aceleracao[0]
aceleracao=nome_e_aceleracao[1]
tempo=aceleracao_tempo(int(aceleracao))
nome_tempo[nome]=tempo
return nome_tempo
def aceleracao_tempo(a):
t=ma... | [
"you@example.com"
] | you@example.com |
ae21355a947fa26186d70f23b068505b5b7e2275 | bf28104fcddede4caea403cc256a0bf695e953bd | /StreamLine/mainImports.py | 36a2412320e222659b018182a6081683902085ee | [] | no_license | edixon1/StreamLine | 76b4f4c0942faa75a70264b5e812993d9407d973 | 3e70a7cd1419e6f46cace5461f19a20b163a4fe6 | refs/heads/master | 2020-04-10T07:15:40.602406 | 2018-12-07T21:20:12 | 2018-12-07T21:20:12 | 160,876,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
from kivy.lang import Builder
from kivy.uix.textinput import TextInput
from kivy.uix.listview import ListIt... | [
"noreply@github.com"
] | edixon1.noreply@github.com |
b19ead64eff4d47859f7a5e4e195d851e5aa0f2a | 76248f61de4008133e0f57e61be09fc6acc6bcbe | /relativipy/classes/01/Christoffel.py | b86bec96dcc9d7d9140c8cadcc7a289100f9fd4f | [] | no_license | gausstein/relativipy | dd4a5cae0aef28b6f8da8b7705ff644361890242 | 536b78c4d0efee94af1df4672e5376bffdde4c10 | refs/heads/master | 2016-09-16T14:18:03.240265 | 2011-03-11T20:51:28 | 2011-03-11T20:51:28 | 1,469,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
from sympy import *
class Christoffel(object):
def __init__(self,g,x):
self.g = g
self.x = x
def udd(self,i,k,l):
g=self.g
x=self.x
r=0
for m in [0,1,2,3]:
r+=g.uu(i,m)/2 * (g.dd(m,k).diff(x[l])+g.dd(m,l).diff(x[k]) \
... | [
"gausstein@gmail.com"
] | gausstein@gmail.com |
b0c7bff8cf1dad9863c32e34911316e8fa4be6c9 | 407818310342185f5cad9168f6f527599c01ef00 | /experiments/train.py | 8fbeabef7dbd029b89c95bf4992672f5effa1a10 | [] | no_license | liujiaming19910220/mobilenet_v2_ssdlite_keras | e1009c1bf16698b33ba5a323269defe2f8e93e86 | 778b73dfe85dc88dc436000f9e190b4925106514 | refs/heads/master | 2020-06-22T18:15:21.691949 | 2019-04-06T01:10:32 | 2019-04-06T01:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,969 | py | import os
import re
from keras.optimizers import Adam
from keras import backend as K
from models.keras_mobilenet_v2_ssdlite import mobilenet_v2_ssd
from losses.keras_ssd_loss import SSDLoss
from utils.object_detection_2d_data_generator import DataGenerator
from utils.object_detection_2d_geometric_ops import Resize
from... | [
"markshih91@gmail.com"
] | markshih91@gmail.com |
c25c569f0bf38ad85fb73361adee32bed0d3ee29 | a44834bf5c18a5c11ec701b6856b567e95b67ed6 | /tehscript.py | 7d044144accded60bf930ba16e1e67651a6e0638 | [] | no_license | teh-squadcyber/tehscript | 05fa2bc629250d1b6107add04ec1b4c1efd02087 | f62d52848fb5cad795c9b079c6f53f317338712e | refs/heads/master | 2020-06-17T08:47:59.805228 | 2020-03-16T06:20:59 | 2020-03-16T06:20:59 | 195,867,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,709 | py | #! usr/bin/python
#TEH SQUAD CYBER {CoDay#XploiT}
import os
import sys
def teh():
os.system ('clear')
teh = """\033[1;31;40m
/`\
/ : |
_.._ | '/ ... | [
"noreply@github.com"
] | teh-squadcyber.noreply@github.com |
99f2636f5ce820d99460c24b1d27351373900644 | f8716b6bff13bea3782480f3d2e5281d9931f970 | /wildfire/utils/functions.py | d941084b306f7da538557a350bab8c13baa9d260 | [
"BSD-3-Clause"
] | permissive | dsanmartin/ngen-kutral | 9e5af287a3a2f9a7dcb401397d3b8c98a2dc3c48 | 1024ec6a687dd673e7b38ed4f11588fa3a2eedf5 | refs/heads/master | 2022-12-06T01:53:33.824525 | 2022-11-29T05:21:13 | 2022-11-29T05:21:13 | 133,684,659 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | """Functions utilities.
Some functions for implementation.
"""
import numpy as np
# Generic #
def G(x, y, s):
"""Gaussian kernel.
.. math::
G(x, y) = \exp(-(x^2 + y^2) / s)
Parameters
----------
x : float or array_like
x value.
y : float or array_like
y value.
... | [
"dsanmartinreyes@gmail.com"
] | dsanmartinreyes@gmail.com |
4cd128ca4c03ead4828afa4e0f796bf8d364ac49 | a1ee56f6c6dd23f4f9504300369b8f1824a51d40 | /1rdStep_getInfoNeighours.py | 7b53953e0840f87d1c793f88814825673b14b17b | [] | no_license | PENG-Tao-1985/test_git- | 10d35061cc3a78a1903495b7d496cf493daa839a | 53331fd0b4fc08b47966b7e1582004e4c4a8b90a | refs/heads/master | 2023-02-02T05:01:11.169006 | 2020-12-21T11:35:10 | 2020-12-21T11:35:10 | 323,331,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,310 | py | # -*- coding: utf-8 -*-
"""
本程序流程
1 读取 'trafficMetaData.csv' 文件
2 Traite函数负责将取得起始点,结束点之间均值
3 distance 计算两地之间距离
4 PointDeControleVille 根据所选城市,提取出此城市的观测点
5 TousLesVoisin 按照规则(距离,最小小邻居数目)获取本观测点和其邻居的信息
6 将5中结果存储在 'tousLesVoisinsDeTouslesPionts.npy'
"""
'''
本次关键参数:
'''
#fileDetrafficMetaData = 'trafficMetaData_simple.csv' ... | [
"jy02407380@gmail.com"
] | jy02407380@gmail.com |
f7134ab899e5626e209759210f286d569054a216 | a910ad156f76b5de7061f63da12e19de43be406d | /systran_resources_api/models/dictionaries_list_response.py | 2c1cc63989b18587501f760b7a6b16fabf2b941e | [
"Apache-2.0"
] | permissive | yingfei0913/resources-api-python-client | efdf1b05831fc78d266ee09412bf8256ebcfd218 | c1640a6ff81f7774d3c0cf02ddb28a412f7a027b | refs/heads/master | 2021-05-31T20:34:20.904274 | 2016-08-09T09:19:59 | 2016-08-09T09:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | #!/usr/bin/env python
# coding: utf-8
"""
Copyright 2015 SYSTRAN Software, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | [
"nguyendc@systran.fr"
] | nguyendc@systran.fr |
1c2c9c2b5cd114cf7f5b45215070474a1c0c009c | 8c9acb401907ab97a24e85290459db209f56b2e9 | /Task.py | 36b0db8abd1b01151fa42e22e70022677d0aacb6 | [
"Apache-2.0"
] | permissive | Daudxu/taskScheduler | 141570d4427091d7dcb9cba886ef4eee59a57f26 | cd3f6f97b8f94ce42372f65a8557f83468be2395 | refs/heads/master | 2020-09-30T20:47:06.192713 | 2020-07-18T07:13:23 | 2020-07-18T07:13:23 | 227,370,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import time
from taskModel import taskJobModel
from apscheduler.schedulers.blocking import BlockingScheduler
def func():
ts = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
taskObj = taskJobModel('husike')
taskObj.bark()
# res = taskObj.autoCancelOrder()
# print('do func time :',ts)
# pri... | [
"875126243@qq.com"
] | 875126243@qq.com |
8ea08f6a84070e59475e3de8786df6296cbdddd9 | a989ff888d86eaad7d3572993d89af17bb29c7ec | /kartverket_stormsurge/helper/datetimes.py | 981e44efed210c6a738f00d83a0f60092b15ec65 | [
"MIT"
] | permissive | jerabaul29/kartverket_storm_surge_data | 8f873232a3aff92f07a73220e51f8385278a029a | 9a35492550ec8b3f4c0b7f1d17bf3bb4776f2c49 | refs/heads/master | 2023-01-31T02:17:34.834755 | 2020-12-15T10:30:54 | 2020-12-15T10:30:54 | 287,529,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | import datetime
import pytz
from kartverket_stormsurge.helper.raise_assert import ras
def assert_is_utc_datetime(date_in):
"""Assert that date_in is an UTC datetime."""
ras(isinstance(date_in, datetime.datetime))
if not (date_in.tzinfo == pytz.utc or
date_in.tzinfo == datetime.timezone.utc):... | [
"jean.rblt@gmail.com"
] | jean.rblt@gmail.com |
c13a2b0d141bee4a20c7232dee4588ebe627c68d | d45721f15b0e62acbab0a293c7dd464c4651804f | /app.py | 9baa0218d72e9172b292e53edb56536c740b05dc | [] | no_license | zhenqiu/iotea | 40875776e39760937c458660fb4bf8e2b412eae5 | af25d535f8c7d470c532ded597323c433a878cbf | refs/heads/master | 2020-03-22T19:30:35.013820 | 2018-07-11T06:31:50 | 2018-07-11T06:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,047 | py | from flask import Flask,request,url_for,render_template,redirect,jsonify
import json,db,threading,time,datetime
#loriot
app=Flask(__name__)
@app.route('/')#iotea
def index():
return render_template('index1.html')
@app.route("/sendjson", methods=['GET','POST'])
def sendjson():
data = db.readMax()
t = {
'Data': ... | [
"yu.bill@hotmail.com"
] | yu.bill@hotmail.com |
efb758695b1633497870906b498201d9ad1152c0 | a42682a84c6cc943f68139f7daeba0d4991d5ec8 | /game/THREE/renderers/shaders/schunk/aomap_pars_fragment.py | 421270daf1eb4ed1fbf89caa258f7e402a3b24ca | [] | no_license | alijaya/Test-OpenGL-Renpy | cf213e8bd6a63a49811f44fd7581666b284ac561 | 502be62712d2d90eca28fc36d0679e94896a88ba | refs/heads/master | 2021-06-21T12:49:34.709115 | 2017-08-15T01:23:02 | 2017-08-15T01:23:02 | 100,321,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | """
#ifdef USE_AOMAP
uniform sampler2D aoMap;
uniform float aoMapIntensity;
#endif
"""
| [
"alijayameilio@gmail.com"
] | alijayameilio@gmail.com |
b9102cfe6e9b3b6d3b6fdd86abffeabd7cb7b1fe | ad27b8cd9b60831fe39ef78a614f220821a589fb | /violin_plotter.py | bc69f67a0a257707f19af0dc64fa51d717845751 | [] | no_license | mhk29/QCLabDB | 2ed7ea80ed5a2360d04eb7aa976fb0a466c41b44 | d64fe30a97014016430a8c350bf1797251839193 | refs/heads/master | 2022-12-27T08:11:33.050713 | 2020-10-07T14:18:33 | 2020-10-07T14:18:33 | 294,422,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import numpy as np
import matplotlib.pyplot as plt
import sys, argparse, csv
import collections
# from settings import *
np.random.seed(19680206)
fs = 10 # fontsize
# data_path = 'testcsv.csv'
data_path = argv[1]
with open(data_path, 'r') as f:
reader = csv.reader(f, delimiter=',')
headers = next(reader)
... | [
"noreply@github.com"
] | mhk29.noreply@github.com |
fb6a09341d539337059741848aeb866dc91ef36d | f2ceab80e38a6113b59858e7f574cd9b74d1bdd7 | /gmatching.py | b6a1d7456e5d6c63da2005ab3e53a3ed17f11893 | [] | no_license | ldlongo/Percolacion | eaf50cd1fe1ff13a33554c4b0a843ff0b147bb1b | 929d858844de4eefe65f78e62f937a76d2dbb6c4 | refs/heads/master | 2021-01-19T21:32:05.784666 | 2017-05-02T16:56:25 | 2017-05-02T16:56:25 | 88,660,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py | import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
#funcion para el ajuste
def func(x, a, b):
return (a*x)+b
data={} #diccionario de datos
#probas
archivo=['6.txt','128.txt']
key=['6','128']
for i in range(0,len(key)):
f=open(archivo[i],'r')
lines=f.readlines()[2:]
x=[]
y... | [
"lucaslongo52@gmail.com"
] | lucaslongo52@gmail.com |
c24849a1b8b3642186311b61a2fa807278dc9787 | 0fac5c9888fd8efc01b06357a5c069cd65750c7f | /qiushaoyi/programs/scrapy-master/scrapy/middleware.py | be36f977e41187012d0885d228dcc6ec46600443 | [
"MIT",
"BSD-3-Clause"
] | permissive | qsyPython/Python_play_now | 291f6fe19f847b852f322da280d6d0c4e71f67d4 | 278b6d5d30082f8f93b26902c854737c4919405a | refs/heads/master | 2022-04-29T09:58:45.530870 | 2019-06-17T11:31:39 | 2019-06-17T11:31:39 | 125,870,084 | 2 | 1 | MIT | 2022-03-22T20:26:09 | 2018-03-19T14:23:31 | HTML | UTF-8 | Python | false | false | 2,920 | py | from collections import defaultdict
import logging
import pprint
from scrapy.exceptions import NotConfigured
from scrapy.utils.misc import load_object
from scrapy.utils.defer import process_parallel, process_chain, process_chain_both
logger = logging.getLogger(__name__)
class MiddlewareManager(object):
"""Base ... | [
"qsy118614@163.com"
] | qsy118614@163.com |
f3729c568c035df49c22db835fab9c9363146475 | 9c3e0c3ea5fe2d8f48eeefdc3a9ec06a0672065d | /hackerrank/python_challenge/string_validator.py | c7a65df0ca211dee8b7cef73d3d646e743bd63a6 | [] | no_license | vaishwadeanurag/hackspace | 3e3e934367c57c566636d18a1f07a84f2d6a289c | 24c28ca2b17524c0aa2f4f67577bbc9b5c989c8d | refs/heads/master | 2021-08-31T17:38:26.541016 | 2017-12-22T08:19:52 | 2017-12-22T08:19:52 | 111,996,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # https://www.hackerrank.com/challenges/string-validators/problem
import string
if __name__ == '__main__':
s = input()
alpha = False
num = False
lower = False
upper = False
for i in s:
if not lower and i in string.ascii_lowercase:
lower = True
alpha = True
... | [
"anuragvaishwade@gmail.com"
] | anuragvaishwade@gmail.com |
e38453257b5ffe4bf78b33679e66f545f003e960 | 5cb8c3d774391f0a04a4ca84cb3f038c5046057b | /config.py | 410e46c3b466b4cf80f06bfbab7e88f684b0e59f | [
"MIT"
] | permissive | zhhiyuan/wide_attack | e0eb90d48cf157621ad698336fd787fe198843e4 | 448df3dd3aad2ca9a514960e8403bf7e8d8eed3a | refs/heads/master | 2022-07-22T14:39:29.814189 | 2020-05-20T04:19:40 | 2020-05-20T04:19:40 | 263,548,854 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import torch as t
class Config:
model_path = None# 预训练模型,None表示重新训练
model = 'SqueezeNet1_1'#加载的模型,模型名必须与models/__init__.py中的名字一致
epsilon = 0.3 #PGD攻击中的干扰参数
'''
ShuffleNetV2, ShuffleNetV2_x2,
ShuffleNetV2_x4, MobileNetV2,
MobileNetV2_x2,MobileNetV2_x4,
'''
lr = 0.0005 #学习率
use... | [
"31727698+zhhiyuan@users.noreply.github.com"
] | 31727698+zhhiyuan@users.noreply.github.com |
3f1602c001f4b70e038794a08ba4c725871c4198 | 040bd1995190e858299fcdd716bd986aa0664d13 | /Trees and Graphs/MaxiumumDepthOfBinaryTree.py | 04b51d71defc1958be86b73fc93dbac3a0196e5e | [] | no_license | PravinSelva5/LeetCode_Grind | 7c568d68231ff34332d756237e79ca8d19cebfec | aa5fb8eb12b1e1903cb0cb688dc41f959e4caf6a | refs/heads/master | 2023-02-08T13:05:10.355867 | 2021-01-05T02:55:29 | 2021-01-05T02:55:29 | 271,690,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | '''
Given the root of a binary tree, return its maximum depth.
A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node
--------------------
RESULTS
--------------------
Time Complexity: O(N)
Space Complexity: O(H), H represents the height of t... | [
"pravin.selvarajah.eng@gmail.com"
] | pravin.selvarajah.eng@gmail.com |
354fffe151be632ac75a7098700de106c6375a54 | dba200fca6011e754b7dd6cb1caa392ca3136b43 | /Player.py | 9bd879a0dd70311f27a24bee91f12efede91644a | [] | no_license | XueweiYan/Tic_Tac_Toe_Modified | 9b5cceea3a3e9dce599c9c39d37e3b84337f43b0 | d220f98c82b9800ca7fdf88a90d8203e8671b8bd | refs/heads/master | 2022-12-17T08:47:07.204357 | 2020-09-26T05:04:40 | 2020-09-26T05:04:40 | 297,521,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,361 | py | import os
import numpy as np
import pandas as pd
from random import random
from sympy.utilities.iterables import multiset_permutations as perm
class Player:
def __init__(self, database=None):
self._valid_lines = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6],
[1, 4, 7], [2, 5, 8]... | [
"x1yan@ucsd.edu"
] | x1yan@ucsd.edu |
e4556c6f2d87cb3083924103d43c50bea57347a9 | ac2b5bfae8b755a85af1f969c575270c7f2a93ef | /EE-Book_tx/src/lib/wechat_parser/base.py | e21b61467d5598fb1a0b49d2a39865ff62ef94a4 | [
"MIT"
] | permissive | Crazyfit/taoguba_xueqiu_book | cae83a2ebcafb34b74d966f98078328066d8840b | 2603b992242a81981ef405cc4af20c63ce1d0b43 | refs/heads/master | 2022-02-11T03:23:08.449365 | 2019-07-04T11:13:05 | 2019-07-04T11:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
from src.lib.zhihu_parser.content.simple_answer import SimpleAnswer
from src.lib.zhihu_parser.content.simple_question import SimpleQuestion
from src.lib.wechat_parser.tools.parser_tools import ParserTools
class BaseParser(ParserTools):
def __init__(self, conte... | [
"macbookpro2100@qq.com"
] | macbookpro2100@qq.com |
6a5694ba9c9b4dbdd98396004240fcd5e7c8d65a | 45e7043b4285681782836461adf01673d018899a | /logger.py | 600c7be7acef5e95cf8089d973daac90b27df8f0 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | lanacioncom/books16 | 529ff825406bb6df16c1ef1889b1974313c0440f | a1f7b4759f267e1703b375b3a9e46fda398018f9 | refs/heads/master | 2020-05-23T10:22:49.746721 | 2019-04-25T18:05:47 | 2019-04-25T18:05:47 | 80,429,013 | 0 | 0 | MIT | 2019-01-07T20:57:40 | 2017-01-30T14:34:14 | JavaScript | UTF-8 | Python | false | false | 921 | py | import os
import app_config
import logging
from logging.handlers import RotatingFileHandler
LOG_FORMAT = '%(levelname)s:%(name)s:%(funcName)s(L%(lineno)d):%(asctime)s: %(message)s'
def get_logger(name=__name__, log_file_name=app_config.LOG_FILE_NAME):
folder_logs = 'logs'
file_path = os.path.join(folder_logs,... | [
"cristianbertelegni@gmail.com"
] | cristianbertelegni@gmail.com |
dba8ea53204e8b7fbcb0c3a367a17b3598e058e5 | 212202cdb2e034ff066fdafc7bd5eba1c44046e0 | /tools/convert.py | 9e46e3a7510fe1cc2f95e90e165e766d6b0eb5a8 | [] | no_license | vikiQiu/Distort-and-recover-tensorflow-py3 | 01d5cd67ac34de7584f2821e497d17ad6b7ee4e1 | 7b559fadf885aa8e26bac0714e157112ba3f6e4c | refs/heads/master | 2020-03-28T05:11:02.216045 | 2018-09-28T07:41:03 | 2018-09-28T07:41:03 | 147,761,036 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | import numpy as np
from scipy.misc import imread
import os,glob
def rgb2cmyk(rgb):
max_rgb = np.clip(np.amax(rgb,axis=2), 0.000001,1)
K = 1 - max_rgb
C = np.divide((max_rgb-rgb[:,:,0]), max_rgb)
M = np.divide((max_rgb-rgb[:,:,1]), max_rgb)
Y = np.divide((max_rgb-rgb[:,:,2]), max_rgb)
CMYK = np.stack([C,M,Y,K], a... | [
"vikiqiu@hotmail.com"
] | vikiqiu@hotmail.com |
afec691f540c742d23f04dddec8bf6a673ca7277 | 0c890e921cebb24aa4ffe68d15f5bdb7d937931d | /lesson03/task_03_05.py | cb58a469bb52cb51ca7a410ba85558bfb711ef72 | [] | no_license | ishmatov/GeekBrains-PythonBasics | c8cb81fbacbbed7a1668728c9049160dad305c7d | 367ece0f99bfe9bce84961bee7e2cf7826285af7 | refs/heads/master | 2022-11-16T15:50:09.824945 | 2020-06-02T06:01:18 | 2020-06-02T06:01:18 | 267,243,344 | 0 | 0 | null | 2020-06-05T10:51:44 | 2020-05-27T06:51:51 | Python | UTF-8 | Python | false | false | 1,502 | py | """
5. Программа запрашивает у пользователя строку чисел, разделенных пробелом. При нажатии Enter должна выводиться сумма
чисел. Пользователь может продолжить ввод чисел, разделенных пробелом и снова нажать Enter. Сумма вновь введенных чисел
будет добавляться к уже подсчитанной сумме. Но если вместо числа вводится спец... | [
"ishmatov.rus@gmail.com"
] | ishmatov.rus@gmail.com |
cfe40a5dc8b0f534e15d8d6e43b436f9d632ba7e | 19fb5badd6180bb44f1c7a2fa2f1aef303a36c22 | /JSAC/FinalProject/sripts/ThreeCluster/ThreeSmall.py | 1bff2b6dc2e107af5b91b21869a9a05ad3d3b9f6 | [] | no_license | JessicaAndcode/STCNet | b747ed72c72a1bca300e69a56cb82956dcf58049 | c4f77fc887577cf92f0259c5ca9f2362c7cf9853 | refs/heads/master | 2022-03-23T15:07:19.914593 | 2019-12-29T11:32:46 | 2019-12-29T11:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,688 | py | # -*- coding: utf-8 -*-
"""
/*******************************************
** This is a file created by Chuanting Zhang
** Name: threecluster
** Date: 5/15/18
** Email: chuanting.zhang@gmail.com
** BSD license
********************************************/
"""
import os
import sys
import argparse
import numpy as np
from ... | [
"noreply@github.com"
] | JessicaAndcode.noreply@github.com |
e05fbbc428978050d937f54e0af1fce076af5ff7 | 93f0b1e11f73fcf6146503dc65e9056bf2a9cb12 | /dataset2/clean_data2.py | 8308be276c768bcdd46d43948acfdae0b3d94c98 | [] | no_license | alcina-sharon/Twitter-Sentiment-Analysis | e283a076ad21ed9075b8786e286dc1cfca5d8689 | d9aa15a14bbc6573af81b0acaed612e151760b49 | refs/heads/master | 2020-04-17T13:53:08.552245 | 2019-01-20T07:43:36 | 2019-01-20T07:43:36 | 166,634,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | import pandas as pd
import numpy as np
import nltk
import re
from nltk.corpus import stopwords
from nltk.corpus import wordnet
import wordninja
from autocorrect import spell
"""spelling mistake
abbreviate shortforms"""
en_stops = set(stopwords.words('english'))
data_train = pd.read_csv("hatespeech.csv")
#print (data... | [
"alcinasharon@gmail.com"
] | alcinasharon@gmail.com |
6c82c194195c99378956636d2ad0b6ad91c129e4 | 32a19c577823baa93e65547814187e8b0dd35941 | /common/noise.py | 8b55012405a45d096d717cb72c36eb8ded955129 | [
"MIT"
] | permissive | wedddy0707/noisyEGG | 77390bc69da8a36bb7ef1a165ec7b018a9806fb2 | 7032d1dae6f2c155f462f54fad541fcf44bf0b5b | refs/heads/main | 2023-05-01T07:12:27.925658 | 2021-05-27T04:18:33 | 2021-05-27T04:18:33 | 332,448,731 | 2 | 0 | MIT | 2021-01-28T02:13:43 | 2021-01-24T12:51:49 | Python | UTF-8 | Python | false | false | 936 | py | # Copyright (c) 2021 Ryo Ueda
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
class GaussNoise(nn.Module):
def __init__(self, loc, scale):
super(GaussNoise, self).__init__()
self.loc =... | [
"ryoryo.ueda@gmail.com"
] | ryoryo.ueda@gmail.com |
77473162ea64a2f5ceb805b1b8e2140bb3078d15 | 0684b94ee5adf6a268115ab7f0a106a053f40503 | /database1/data2/migrations/0001_initial.py | 185cc0796cc2cf1b2b816969f7f807cc9fde6c3a | [] | no_license | shiny-saro/django-ex | 78a6240b3db2cbcd65e04ff9bee6a8a883dad434 | 9cdd88f9459a5184b8ea20b5c132b71a8898d78b | refs/heads/master | 2021-01-01T03:49:05.149565 | 2016-05-04T07:06:38 | 2016-05-04T07:06:38 | 57,967,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-04-22 09:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Faculty',... | [
"shinysaro@gmail.com"
] | shinysaro@gmail.com |
efe8e8ebb067601b81a18bc1cf96e4a34bcf3d39 | 99d5b87018e11979dd417fcf40686f92e7ee33ef | /sample/django_wiki/mysite/wiki/models.py | 3319a30c2e9cdf001ee86786babf932f5a111444 | [
"MIT"
] | permissive | william-os4y/fapws2 | 123a0b8cbb8cbe343ee6ab7a8a33f7b5ad664238 | 5752af742b763517ce0a52d0f0c00b40b186edf8 | refs/heads/master | 2020-05-31T08:20:53.247648 | 2008-12-23T13:18:00 | 2008-12-26T14:29:35 | 70,378 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.db import models
from django.conf import settings
class Wikipage(models.Model):
"""Wiki page storage"""
title = models.CharField(maxlength=30)
content = models.TextField()
def editurl(self):
return settings.WIKI_SITEBASE + "edit/" + self.title + "/"
def __repr__(self):
... | [
"william@opensource4you.com"
] | william@opensource4you.com |
b0fc3c4330eac60491cf98e16081e9edd647a33f | 1d38a0799f8df3639df9e2f295700458abdc1dd4 | /PYTHON/Iniciante/uri-1044-multiplos.py | d037b111ebdd742cd8a992457f25fbc488a8e509 | [] | no_license | wellysonmartins/algoritmos-uri-online-judge | 76df1791b6c8ac7512aa7d2de3a885c5673c9580 | 9f826d797948cb75ec78a2bdc7e91532957620a1 | refs/heads/master | 2020-05-01T07:29:33.155118 | 2019-05-08T14:55:38 | 2019-05-08T14:55:38 | 177,353,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | a, b = map(int, input().split(" "))
if (a%b == 0) or (b%a == 0):
print("Sao Multiplos")
else:
print("Nao sao Multiplos") | [
"wellysonmartins@gmail.com"
] | wellysonmartins@gmail.com |
e3746b822298e3a57d89211a8ed2ce97b16c4ede | b83caaee74dcc633b116cbb080775a2c0f693ddf | /lib/utils/blob.py | 7369dba319ed4084c24a8ddca9e4618df3742f29 | [
"MIT"
] | permissive | Duxiaowey/PsDetection | 30efde5777b9f0ee3920bf6a0cdd2f9811c88f57 | c16204d95f48a83600f7029fcafae531d1aec1d1 | refs/heads/master | 2020-08-09T17:23:46.199666 | 2019-11-19T02:37:36 | 2019-11-19T02:37:36 | 214,132,496 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Blob helper functions."""
from __future__ import absolute_import
fro... | [
"519780052@qq.com"
] | 519780052@qq.com |
3b3687c87b7098d9ee73292c4d73c5153c10e292 | ba00b7afbb46c3f701a4d812523ae56721ae1db2 | /drf_intro/settings.py | 4edace574e91b17cf199e3add50d43fef9d4e68c | [] | no_license | al-zero/simple-restful-apis | b29e4407550b89f3b0f9895588e3e421e5bdc136 | b80c94fd940990e22e49206fd7e23556c48cff1c | refs/heads/master | 2023-06-22T11:43:11.356389 | 2021-07-25T22:33:50 | 2021-07-25T22:33:50 | 375,231,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | """
Django settings for drf_intro project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"alphasabawu@gmail.com"
] | alphasabawu@gmail.com |
8cfd790559507720fd1bde192d62cf97c8614046 | 0825ec3de05d9593f3c16a89b7c3434e91680252 | /dataLoad.py | b59d8b72464ac4bb0b724235ebfa365a643f1464 | [] | no_license | dangk89/thesis-project | 9dcd91a43a2a690acbe835749a705770762f62a4 | 97951aca4989d9950a2ad6b962ef8ee410589150 | refs/heads/master | 2020-04-23T14:51:43.019565 | 2019-07-11T08:34:34 | 2019-07-11T08:34:34 | 171,246,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import json
import os
import pprint
def commentCounter():
count = 0
trump_c = 0
hil_c = 0
ted_c = 0
bern_c = 0
for file in os.listdir('data/'):
with open('data/'+file) as f:
data = json.load(f)
if file[:2] == 'cl':
hil_c += len(data)
elif file[:2] == 'cr':
ted_c += len(data)
eli... | [
"dgk89@hotmail.dk"
] | dgk89@hotmail.dk |
23d317072883fe6153f73e21cce080af5f1a7fda | 4f4ac8bb1a3db70bf6582f0320ba4993d23efb99 | /lab-5/solutions/traveler.py | 4b8cf8e35744934f741c55510917b0b9ec199b9a | [] | no_license | letsbrewcode/python-coding-lab | 479f3e5ee76bd33803bb1778347105efc6d19645 | eb90e1ac5f1560fd6170a120ac983e6900bbb183 | refs/heads/master | 2021-05-18T06:31:27.511832 | 2020-09-28T03:16:55 | 2020-09-28T03:16:55 | 251,159,756 | 0 | 1 | null | 2020-06-09T22:38:32 | 2020-03-29T23:58:58 | Python | UTF-8 | Python | false | false | 1,560 | py | # Find end destination of travel route
# Imagine a 2D coordinate system centered at (0,0), You are given the
# route of a traveling point in the form of array. Each item of the array
# contains a direction and distace moved in that direction. Complete the
# function, destination to compute the route and return the fina... | [
"noreply@github.com"
] | letsbrewcode.noreply@github.com |
cd529db81056cddb2b28783f58bc70f955089bd0 | 4e9ea48452c1a07ae50fadb2c3b4453ef63eb603 | /runs/run23/train.py | 45b42aaf1cffa2ddfa529a2516492385f6be9a15 | [] | no_license | ShinyCode/gan-stronomy | a2b4f087134cc1f4ae187100959793b543f8d751 | 8b100d8416714795374d8788f517fc02e591c66a | refs/heads/master | 2020-04-02T16:08:09.138022 | 2018-12-20T01:50:12 | 2018-12-20T01:50:12 | 154,599,736 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,730 | py | # Based loosely off https://github.com/eriklindernoren/PyTorch-GAN/blob/master/implementations/cgan/cgan.py
import util
import torch
from torch.autograd import Variable
import torch.optim
import torch.nn
import torch.utils.data
from dataset import GANstronomyDataset
import os
from model import Generator, Discr... | [
"ShinyCode@users.noreply.github.com"
] | ShinyCode@users.noreply.github.com |
bc9e39931d2e0d04546e4d80bc1791a00f18341f | 4374b53176e1ba21034cea9d4723f3464cbf48a6 | /HW_2/Task_C.py | 4934525334765b4c4e52be6017862675be040e24 | [] | no_license | IVyazmin/MADE_algoritms | 8bbf479ee973806e4c9ab6b77f7ecbaa897a657d | a508411f9b7bd0799b3229d52dd7ae19773f312b | refs/heads/master | 2023-01-20T10:44:18.330420 | 2020-11-25T10:22:16 | 2020-11-25T10:22:16 | 295,223,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | MAX_VALUE = ord('z') - ord('a') + 1
FIRST_VALUE = ord('a')
row = input()
array = row.split(' ')
array = list(map(int, array))
n = array[0]
m = array[1]
k = array[2]
array = []
for i in range(n):
array.append(input())
for i in range(k):
position = m - i - 1
counters = [0] * MAX_VALUE
new_array = [0] * n
for j in ... | [
"ilja.vyazmin@mail.ru"
] | ilja.vyazmin@mail.ru |
b31d5ea47acb58030e554489eff1c84477515319 | 8d3af0e16bd34b30d87347eacc3defb553dd48d7 | /polls/models.py | a674a3057a1c1e583aa91e63368a7a7311e80013 | [] | no_license | Julie-the-Dragon/mysite | 6adb5ef055c5232c121f3c95bebbb05612c19342 | 8c639070ae9f8b021294817c1bbbb5f6e7192914 | refs/heads/master | 2021-05-10T14:30:47.792748 | 2018-01-22T21:52:25 | 2018-01-22T21:52:25 | 118,519,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_published_recently(self):
... | [
"MSpiridonov94@gmail.com"
] | MSpiridonov94@gmail.com |
ea803f5e3f823ec4e9212f1b9076cd4878c291a9 | 9f54779437e9852d6f83dd46cde17a7ef99922b8 | /python/akg/ops/poly_gpu/add.py | fe9f67a421be41f2cd4fdf7e3035e6631c16cf0c | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | googol-lab/akg | e5424edbdae29aa2841c518edf9a62678581c499 | 4ad0f6a9c44742b54505bdedcd7e64d0ccf79e15 | refs/heads/master | 2023-02-09T20:48:58.770091 | 2021-01-05T09:31:38 | 2021-01-05T09:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Copyright 2020 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 or agreed to... | [
"zhangrenwei1@huawei.com"
] | zhangrenwei1@huawei.com |
633981c5580abc6b32852ac0098516780d0c8861 | d9563f113fa4dcbf6dadb5ea186d69839f372119 | /pedidos/migrations/0004_auto_20191129_1821.py | 08c3d750eba80e0bc31f5b96aa8c4b9131fc203e | [] | no_license | CarlosSanz81/serv | 717eefea1ead9325472cef165f2326a14dd355cd | dd3cb5b022b8b939ff6ea502b8335c257d057abb | refs/heads/master | 2020-09-16T03:41:16.306550 | 2019-12-05T12:41:01 | 2019-12-05T12:41:01 | 223,640,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.2.7 on 2019-11-29 17:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pedidos', '0003_archivo'),
]
operations = [
migrations.AlterField(
model_name='archivo',
name='nombre',
... | [
"carlossanzgarcia81@gmail.com"
] | carlossanzgarcia81@gmail.com |
8a58c1f2b7cf7a7cc75e08c82d835d6ec656f348 | 58391be66d975a196a273cdfd3a7e315b5dcef41 | /train_and_test_svm.py | e6a2231e314567f6debc2bf682d9f79f17579f20 | [] | no_license | szbernat/train_svm | 7ffe3be1a20bd619ce243932637f73075f33a203 | b6325090f73b3d20443e3423c6f2f7e686676177 | refs/heads/main | 2023-01-31T20:28:48.207935 | 2020-12-02T14:49:36 | 2020-12-02T14:49:36 | 317,893,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | #!/usr/bin/env python3
import csv
import random
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from itertools import combinations
def make_meshgrid(x, y, h=.02):
x_min, x_max = min(x) - ... | [
"szabobrnt@gmail.com"
] | szabobrnt@gmail.com |
ff7a93b1a6f90c184fbd023f55f0710ae8f08727 | e35ad4af5d578e152c6720e0bf41c12305b0dfdf | /code/project/utils/services.py | fd05543f8ba1363e002f596624bd150e99ffcb1f | [] | no_license | mcgill-a/dissertation | f860eb7d24df3239695d00e8b59cec685cc142df | 89eb1b12643133d32eb17c22537a13f7bbb764c7 | refs/heads/master | 2022-12-12T11:11:32.765319 | 2020-04-26T14:12:32 | 2020-04-26T14:12:32 | 215,106,639 | 0 | 0 | null | 2022-12-08T03:53:32 | 2019-10-14T17:35:20 | TeX | UTF-8 | Python | false | false | 104 | py | from datetime import datetime as dt
def timestamp():
return dt.now().strftime("%Y-%m-%d %H:%M:%S") | [
"40276245@live.napier.ac.uk"
] | 40276245@live.napier.ac.uk |
c92c8e96486ba05e3cf7c3d52836a06125a9a899 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /nlp/3rdParty/orange/orange/OrangeWidgets/Prototypes/OWPreprocessing.py | 168864c2174450afb47cb0f7ac89fb6b1324b927 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | """
<name>Preprocessing</name>
<description>Constructs data preprocessors.</description>
<icon>icons/FeatureConstructor.png</icon>
<priority>11</priority>
<contact>Janez Demsar (janez.demsar(@at@)fri.uni-lj.si)</contact>
"""
from OWWidget import *
import OWGUI, math, re
from orngWrap import Preprocessor
c... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
63fc33ebf5a416adf5ad443484da0991e3e0de86 | 5373d5c41d6850492c294fc5bb52eede898d0181 | /find_length_of_loop.py | 0b70db472a9dd42a1430404bc3ed612f27c70728 | [] | no_license | agvaibhav/linked-list | 4dc2e79e9f84b955ec7e519c13679f1f802e7c25 | c561d671c6257c41fad9a38e38143ac4280948ad | refs/heads/master | 2020-03-26T10:31:07.540276 | 2019-08-09T09:39:26 | 2019-08-09T09:39:26 | 144,801,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | def countNodesinLoop(head):
#Your code here
temp = head
slow = temp.next
fast = temp.next.next
for i in range(500):
if temp.next is None:
break
temp = temp.next
if temp.next is None:
return 0
while slow != fast:
slow = slow.next
... | [
"noreply@github.com"
] | agvaibhav.noreply@github.com |
53e5f61af1f380bd9bd675436d443b5109b3d873 | 67b8ff4f52b4f09982e46516961240942370bb37 | /tests/garage/tf/misc/test_tensor_utils.py | 5a4e5b511fe6db0c9da2b31623fef61ddf3e7a4a | [
"MIT"
] | permissive | lywong92/garage | daee8f373301c43c3e4530b7642a22900ef80cd1 | 96cb8887fcae90531a645d540653010e7fe10fcc | refs/heads/master | 2020-06-12T02:33:23.871320 | 2019-06-27T20:09:53 | 2019-06-27T20:58:59 | 194,169,356 | 1 | 0 | MIT | 2019-06-27T22:09:46 | 2019-06-27T22:09:46 | null | UTF-8 | Python | false | false | 2,227 | py | """
This script creates a test that tests functions in garage.tf.misc.tensor_utils.
"""
import numpy as np
import tensorflow as tf
from garage.tf.misc.tensor_utils import compute_advantages
from garage.tf.misc.tensor_utils import get_target_ops
from tests.fixtures import TfGraphTestCase
class TestTensorUtil(TfGraphT... | [
"noreply@github.com"
] | lywong92.noreply@github.com |
7e170929558b7027c5f971790f56a2df4f97320e | 8e6c4def374ba21c934f6856c0333a1e8bff69db | /190520/Quiz02.py | 12854d9e9a693c1f970e9157d15f2d9c6002d74a | [] | no_license | inuse918/Python_Practice_2 | d5a930a95b51181330abc6601d80f71b67780740 | de4dd6ec8d96e9d259566916b9e7f08402e7917d | refs/heads/master | 2020-05-06T13:20:08.153295 | 2019-12-25T23:07:47 | 2019-12-25T23:07:47 | 180,128,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def sum(x,y):
return x+y
user1=int(input("첫 번째 정수: "))
user2=int(input("두 번째 정수: "))
print("합은",sum(user1,user2)) | [
"s2018s34@e-mirim.hs.kr"
] | s2018s34@e-mirim.hs.kr |
b7f17fe614504cdf44e7f4deb2041839a257fb40 | 2021a5988ef3d2d050b3614ccd5864872045cadb | /kube.py | b8b8a488c69afeb045bee69aa7b06129ce46d417 | [] | no_license | khushbooagrawal245/DevOps-Integeration-Portal | ac48221aae16f68611362d877828eb01e5f101dd | d9a7e19548a40481ffadd61ff62975741868818a | refs/heads/main | 2023-06-10T16:52:42.564801 | 2021-07-03T09:37:09 | 2021-07-03T09:37:09 | 382,575,832 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | #!/usr/bin/python3
print("content-type:text/html")
print()
import cgi
import subprocess as sp
f = cgi.FieldStorage()
cmd = f.getvalue("x")
val = cmd.split()
#Creating deployment
if val[0]=="1":
dname = val[2]
iname = val[1]
o=sp.getoutput("sudo kubectl create deployment {} --image={} --kubeconfig /roo... | [
"noreply@github.com"
] | khushbooagrawal245.noreply@github.com |
c51081a1c6b74ebb8d098b6d0ea54463cde817ce | 80bb15e7ce4c7726003ade301cb311b57b75be9c | /src/text_avg_tfidf_main.py | 461bcfe2148bc4c5039bca7b4bc65135303a2504 | [] | no_license | shiyunchen/DeepTextClassifier | ba4f55a0eed321491e91cfe2d56bf78fd1333852 | 210b055d4dca2c7bc731bd3bd4bea12f85ebf576 | refs/heads/master | 2020-05-20T15:07:45.321826 | 2019-05-08T15:52:18 | 2019-05-08T15:52:18 | 185,636,183 | 0 | 0 | null | 2019-05-08T15:45:32 | 2019-05-08T15:45:32 | null | UTF-8 | Python | false | false | 1,234 | py | # coding: utf-8
from __future__ import print_function
from __future__ import division
import tensorflow as tf
import numpy as np
from text_avg_tfidf import Model
from dataset import DataSetIDF as DataSet
from config import ConfigAvgTFIDF as Config
import tools
my_config = Config()
my_data = DataSet(my_config, True)
... | [
"myqway@outlook.com"
] | myqway@outlook.com |
1f88d1a8bf3f6b3695ad54b42360ae9375e218c6 | 0bcc028259d40a6a33f41072ab9e7076603519e8 | /Learning_Languages/Learning_Python/area.py | a48d8f6b95e03437c89cbea28704e43aaf925e5b | [] | no_license | ravzac14/Skill_Buildin | f0700b8c6203e5806bdba2892a318a025ea5828a | e473116969df126bcae8c347b26e829513cb83f0 | refs/heads/master | 2021-01-22T03:25:52.400521 | 2015-07-06T20:25:32 | 2015-07-06T20:25:32 | 25,415,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import math
print "Radius is 6"
r = 6
A = 0
A = math.pi*(r**2)
print "Area is " A
| [
"raver_zack@yahoo.com"
] | raver_zack@yahoo.com |
75f070a45d6c3ae4c2844bb87300d5d1bf8efc9e | 3925e9e9fdd9f65c0095cd9db2ad7c1298fa1e36 | /src/ecs/ecs.py | 81e57e6776a7101ae5906d7fe0ce295c860ce21f | [] | no_license | dtact/ecs | 343f156f518c28b5e171e13febfe3b995dd8274a | 56f1e327a6380ab7f48baae9005bf1503466ff5e | refs/heads/master | 2023-06-12T03:07:01.319105 | 2021-06-23T20:42:17 | 2021-06-23T20:42:17 | 367,652,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,812 | py | # noqa: D101,D100,D102
import json
import dateutil.parser
from datetime import datetime
class Int(int): # noqa D101
def __new__(cls, val): # noqa D102
if val is None:
return
return super().__new__(cls, val)
class String(str):
def __new__(cls, val):
if val is None:
... | [
"remco@dutchcoders.io"
] | remco@dutchcoders.io |
990151a9287e7e16c6474fe1ce97cd40525b54d2 | 28af5c332d684c4b0133a1d4a84e091578543918 | /COM220/Trabalho_Final/disciplina.py | d7165921badc8b8a9490962f88bcad1129b2661e | [] | no_license | carloshssouza/UniversityStudies | dac36e3970191358cbaf6cb3db7fb7b82785bbfe | 3142d797cb298da81622cc19ac98fadb3e123af9 | refs/heads/master | 2023-07-25T17:18:40.775832 | 2023-02-02T14:03:19 | 2023-02-02T14:03:19 | 254,239,916 | 7 | 0 | null | 2023-08-30T23:43:47 | 2020-04-09T01:21:27 | C | UTF-8 | Python | false | false | 7,996 | py | import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
import os.path
import pickle
import sys
class OpcaoVazia(Exception):
pass
class CodigoIgual(Exception):
pass
class NomeIgual(Exception):
pass
class HorasNegativa(Exception):
pass
class AnoSemestreIncorreto(Exception):
p... | [
"carlossouza_94@hotmail.com"
] | carlossouza_94@hotmail.com |
8f94a6f2dfd570da54c01803c2536171634418e5 | 4b5a19fab3304aeb617f24f6bc4f7ffb9ccbbd93 | /ml/textGen.py | 531b9ed5aabe6e12a97038bd980b550529edaaae | [] | no_license | Harvard-Jahseh/Impressionator | a0878d022c615334d05d2106479a98ca57e8b9e0 | a1069e76c83df7a1da5ef4a7baf8a0216e00e1cb | refs/heads/master | 2022-12-14T19:30:41.453482 | 2019-09-14T20:35:28 | 2019-09-14T20:35:28 | 208,361,583 | 1 | 0 | null | 2022-12-11T05:47:36 | 2019-09-13T23:20:28 | Python | UTF-8 | Python | false | false | 4,243 | py |
from keras.models import Sequential
from keras.layers import LSTM, Embedding, Dense, Dropout
from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing.text import Tokenizer
from keras.callbacks import ModelCheckpoint
import keras.utils as ku
#https://github.com/shivsondhi/Text-Generator/blob/mast... | [
"zheng.harvey5@gmail.com"
] | zheng.harvey5@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.