blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f2c2740bf34812d6361ee4b4a9a39f9f1a9d983b | 86318359cde2629f68113f7fe097757ef8e4923a | /mep/books/migrations/0023_merge_20200406_1206.py | 507c1ce7a10f2e1cdb1c549e0585c76c6e7fc95f | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | Princeton-CDH/mep-django | 214f68a9c99b5025722c7301c976004edd277d9b | 6103855f07c2c0123ab21b93b794ea5d5ca39aa2 | refs/heads/main | 2023-08-03T10:15:02.287018 | 2022-09-06T21:16:01 | 2022-09-06T21:16:01 | 94,891,547 | 6 | 0 | Apache-2.0 | 2023-07-20T22:07:34 | 2017-06-20T13:00:00 | Python | UTF-8 | Python | false | false | 271 | py | # Generated by Django 2.2.11 on 2020-04-06 16:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0021_creator_type_order'),
('books', '0022_generate_work_slugs'),
]
operations = [
]
| [
"rebecca.s.koeser@princeton.edu"
] | rebecca.s.koeser@princeton.edu |
4ef7a3225a9867cb4fd1b8dea1bcacd676e5a4f1 | 3ca33805ab72db091c27372d7e6e7f0d982d43cd | /argux_server/models/User.py | 637d2618258ff3f98735432c22bb97d74e553d7d | [
"Apache-2.0"
] | permissive | gitter-badger/server-4 | f239abf489c0d4d716b269104abaf0af2f07a130 | 07b6d4d4c5f58f8259179426feac6bf8b40dea52 | refs/heads/master | 2021-01-21T03:22:26.550105 | 2016-05-25T10:32:38 | 2016-05-25T10:32:38 | 59,810,905 | 0 | 0 | null | 2016-05-27T06:47:33 | 2016-05-27T06:47:33 | null | UTF-8 | Python | false | false | 1,430 | py | """User Module, containing User model."""
from sqlalchemy import (
Column,
Index,
Integer,
Text,
ForeignKey,
Boolean,
Binary
)
from sqlalchemy.orm import (
relationship
)
from . import BASE
# pylint: disable=too-few-public-methods
class HashMethod(BASE):
"""Hashmethod object.
... | [
"stephan@xfce.org"
] | stephan@xfce.org |
71e5b116c7199a396e79609615af866b605be856 | 742f70358bb654649d8aaf3b9ace3f5ce328b673 | /source/keys.py | 24a7a987e8e61fe683fea1a016db8bcd495515ee | [
"MIT"
] | permissive | eneskalkanx/keyLogger | 5382d3c88747afa3d9588ca533b657f628d5674b | ca7a4505d225b3b152d13b4afd1c4bcc8057c05d | refs/heads/master | 2023-03-16T01:49:48.686017 | 2017-04-15T13:01:24 | 2017-04-15T13:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,271 | py | '''
Python 2.7 implementation with some additional functionality:
-systeminfo data is uploaded when the file is executed
-all the data uploaded to FTP server is encrypted (keys_retriever.py is used to collect/decrypt the data)
-ability to take screenshot with simple kl.UploadScreenShot()
-auto-downloader so you ca... | [
"noreply@github.com"
] | noreply@github.com |
397243dd9250d0356dc9e27a00dfd091286e41c7 | 7233716fbf9fff94240d14770b3fc3f3ada10d9b | /devel/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py | 2d13505c04971b0a5fc8394f5ba3c1a9f34572c3 | [] | no_license | shashankseth01/E-yantra | 58d42dce90667ca37f31f2cf111ee98c39468617 | 23432e058fce7733bd1a8399fd6edc20967fa6a3 | refs/heads/main | 2023-02-04T00:36:57.230996 | 2020-12-21T09:55:23 | 2020-12-21T09:55:23 | 316,716,460 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | /home/shashank/ws_task3/devel/.private/gazebo_logical_camera/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py | [
"shashankseth3@gmail.com"
] | shashankseth3@gmail.com |
9c3d7fe4724d88ac9299d34dd431d80c0ae20f38 | 140d54bb9a1e62dda2ed2183a22558be6472ea8e | /config.py | beaf12f13d740bddaeb6788ed47db6902c87a87d | [] | no_license | grantjensen/Reversi | e71c050397efa2686d96ebd6b523c36345fcab30 | 87cec8233eae5ac467422a99b0478ed1486e84ed | refs/heads/main | 2023-07-13T20:54:41.685759 | 2021-08-22T09:20:00 | 2021-08-22T09:20:00 | 396,534,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | """
Stores config info for training
"""
class TrainingConfig():
def __init__(self):
self.nnetIters=60 # number of iterations of self play for nnet (default=60)
self.episodes=100 # number of games to train on per iteration (default=100)
self.pitgames=20 # half the number of self play game... | [
"gjensen6@wisc.edu"
] | gjensen6@wisc.edu |
9c99e9c602c04babded94612e54aa4147608301e | 265403cd620f1729176343626db909ccecc67243 | /runserver.py | c80b199e83158ccb7fb8c091ddaef40bbfda8d39 | [
"MIT"
] | permissive | djpnewton/beerme | a5486efe8f3a632ff479f75fde825264f8c45d42 | b06564f897c5e63a6af6229aa5234ef5de4820a7 | refs/heads/master | 2020-04-05T23:21:15.375723 | 2015-07-01T07:37:02 | 2015-07-01T07:37:02 | 37,122,757 | 1 | 1 | null | 2015-07-05T12:26:55 | 2015-06-09T09:25:34 | Python | UTF-8 | Python | false | false | 2,544 | py | #!/usr/bin/python
from beerme import app
import os
host = os.getenv('HOST', '127.0.0.1')
port = int(os.getenv('PORT', 5000))
# get filenames before daemonizing
app_log_filename = os.path.realpath('log/beerme.log')
access_log_filename = os.path.realpath('log/access.log')
def log_app():
import cherrypy
from p... | [
"djpnewton@gmail.com"
] | djpnewton@gmail.com |
363bb59452b238df8f7c6f83d707770f217574b8 | f6b67b8c41128ed1844d2bc2d7056d1c563df20a | /빅데이터 수집/0422/save_sqlite3.py | a3fbdf26572b7805a90bfa24eb4b3edaf974e929 | [] | no_license | jes9401/bigdata_study | 2606a23eaefe7e3c87ddf3b61252ed6ec858c930 | cc5e2b8aa1ac0c304c7d46c285d350f6d3cab27e | refs/heads/master | 2023-04-12T15:45:19.641098 | 2021-05-17T05:01:45 | 2021-05-17T05:01:45 | 361,152,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import sqlite3
# top_cities.db 파일을 열고 연결을 변수에 저장합니다.
conn = sqlite3.connect('top_cities.db')
# 커서를 추출합니다.
c = conn.cursor()
# execute() 메서드로 SQL 구문을 실행합니다.
# 스크립트를 여러 번 사용해도 같은 결과를 출력할 수 있게 cities 테이블이 존재하는 경우 제거합니다.
c.execute('DROP TABLE IF EXISTS cities')
# cities 테이블을 생성합니다.
c.execute('''
CREATE TABLE cities ... | [
"jes9401@nate.com"
] | jes9401@nate.com |
030cef8d516b00c1e83848d76f38cbc0757c517c | b3e416191a13bae3bbb60c0dede334025df6c0c0 | /predict_on_images.py | 96c7e7767697d55c0bc4e4278f6fac91a4aef26a | [
"MIT"
] | permissive | Santara/neuraltalkTheano | 3e85e3caa0e957414365514ba46580f678e34ee0 | 19ca262f324a628cc50eebea19ce394cc976f890 | refs/heads/master | 2021-01-22T01:33:48.873360 | 2016-04-25T13:59:46 | 2016-04-25T13:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,793 | py | import argparse
import json
import time
import datetime
import numpy as np
import code
import os
import cPickle as pickle
import math
import scipy.io
from imagernn.solver import Solver
from imagernn.imagernn_utils import decodeGenerator, eval_split
from imagernn.data_provider import prepare_data, loadArbitraryFeatures... | [
"rakshith.rs@gmail.com"
] | rakshith.rs@gmail.com |
1f3bb0f792d476eaf347fe7437a98076b074341b | 4add04cc4dad612a4014e59036d4265f71cd63de | /TF-Exam/Modeling/5)_Custom_Layers.py | df6ffbe6076c24fe01d613b4e409dbb1190a7d14 | [] | no_license | blue-park/ai | 58b37c9375374e33f8a02701c39a826b43bef6e8 | 37d633c97dd233a3e94213b82937b14fc905327d | refs/heads/main | 2023-06-18T23:29:41.039596 | 2021-07-05T00:35:10 | 2021-07-05T00:35:10 | 370,681,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | import tensorflow as tf
"""
이번 시간에는 간단한 커스텀 레이어를 만들어 보겠습니다. 해당 내용은 Upsampling2D와 비슷합니다.
ToBe
[1, 2, 3, 4] -> 각 채널별로 해당 값들이 가득차있는 3차원 텐서 (width, height, 4)
"""
class Custom_Layer(tf.keras.layers.Layer):
def __init__(self, w, h):
super(Custom_Layer, self).__init__()
self.width = w
self.he... | [
"parkdh72@naver.com"
] | parkdh72@naver.com |
794ba203af35d5b03534a7e0b017a0c01276ccd3 | 1fe6886057999844dda7fbb73c0937d28f1cf706 | /users/migrations/0003_events.py | 8233ac0be49888c392c356cea68e501ce6c2292a | [] | no_license | AkshathRaghav/timelapse.github.io | 8ba7eb3baa07b2b588877ad70a05cdab5baf5f69 | 876f635537123c80b8aab953787cbd67ed4e1f88 | refs/heads/main | 2023-06-21T09:31:39.465023 | 2021-07-31T18:59:36 | 2021-07-31T18:59:36 | 391,381,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # Generated by Django 3.1.7 on 2021-03-11 17:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0002_delete_test'),
]
operations = [
migrations.CreateModel(
name='events',
... | [
"noreply@github.com"
] | noreply@github.com |
13d90ce2bd04f98e4c393f9da13e0f9847f09158 | e27660afda2a5740882b73b0be6e7a5d9bcc0cbd | /receiverRPI.py | 88f98c273be9807c8dc3ca53b8a9f4949b67d090 | [] | no_license | martinosecchi/pyLIFI | c58897f3ee2b6393381092da49c0291fb02069a9 | 519491be42eeef3075180f5048cd4023cfcacd2b | refs/heads/master | 2021-01-17T04:58:40.012261 | 2017-05-31T20:29:41 | 2017-05-31T20:29:41 | 83,050,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,537 | py | #!/usr/bin/python
from lifiRx import lifiRx
from classify import LiFiClassifierLight, manchester
import sys
import os
from time import sleep
def setpath():
exe = sys.argv[0]
p = os.path.split(exe)[0]
modulepath = os.path.join(p, 'alignment')
sys.path.insert(0,modulepath)
sys.path.insert(0,p)
sys.path.insert(0,ex... | [
"smart91k@gmail.com"
] | smart91k@gmail.com |
5ccacaefd6625bfbe0cf2f265be54691ba3a59a4 | 6f115b2db5c821864a5100f414d8903ed732f2fa | /functional_tests/test_can_create_tasks.py | 2ef6c80890a1c8625de78e8fa92795540f3d66ea | [] | no_license | wisecrow/XPTracker | 34a67b5b5ede5b5cd47772d21e80cf4f21e26650 | 69fa843a7d0f417578d2c70b58ee190fef353874 | refs/heads/master | 2020-09-16T13:35:20.830150 | 2016-08-17T10:23:59 | 2016-08-17T10:23:59 | 65,898,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | from .base import BaseTest
class TaskCreateTest(BaseTest):
def test_cannot_see_task_link_before_us_created(self):
project = self.create_new_project()
self.go_to_project_home(project)
try:
alink = self.browser.find_element_by_link_text('Tasks')
except:
alink =... | [
"dariusui@yahoo.com"
] | dariusui@yahoo.com |
7998c8ea28730a710f82149eabb3c3fbd9777cf4 | 0ea1d55b431df5b001fa8c7485ada4e993ed3593 | /crawler-not working/run.py | 3db08ad4ec7eb0726280510bb6a75704449f6fb6 | [
"BSD-3-Clause"
] | permissive | abhinashjain/proxyfuzzer | 5dc2feacf879b5d20617d4696f66269ae83c4376 | 9c372390afe4cd3d277bcaaeb289e4c8ef398e5e | refs/heads/master | 2021-01-01T18:36:39.749125 | 2017-07-26T09:20:44 | 2017-07-26T09:20:44 | 98,383,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | #!/usr/bin/python
import re
import sys
from crawler import Crawler, CrawlerCache
file = open(sys.argv[1], "r")
for line in file:
line='https://olamoney.com'
crawler = Crawler()
try:
crawler.crawl(line)
except:
pass
else:
(scheme,domain)=map(str,line.split('://'))
# d... | [
"labor.omnia.vincit18@gmail.com"
] | labor.omnia.vincit18@gmail.com |
1a7a6d6691359a38be4991eefc4ff9dd19b73511 | 4edb067c8c748e503e154bb2b9190843f6f1684a | /tests/test_utils/test_decorators.py | 99e6a477f5b2abc16262433e3225e0fbb78a035e | [
"Apache-2.0"
] | permissive | DistrictDataLabs/yellowbrick-docs-zh | 5ecbdccfaff4a6822d60250719b37af9b8d37f61 | 3118e67f2bed561a00885e6edb2cabb3520ad66b | refs/heads/master | 2021-04-09T11:00:29.709555 | 2019-04-06T15:23:55 | 2019-04-06T15:23:55 | 125,447,764 | 22 | 5 | Apache-2.0 | 2019-04-06T14:52:40 | 2018-03-16T01:37:09 | Python | UTF-8 | Python | false | false | 2,788 | py | # tests.test_utils.test_decorators
# Tests for the decorators module in Yellowbrick utils.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Thu May 18 15:14:34 2017 -0400
#
# Copyright (C) 2017 District Data Labs
# For license information, see LICENSE.txt
#
# ID: test_decorators.py [79cd8cf]... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
467e17aa7e06dd81c942b746245c068437f6ae0f | 587cd5c24b67fa4de78f2ccdecd56c79c8ac042d | /you_shell_not_pass/uwsgi.py | b97f9c671a2edd321e93e1e08ac7faaacea6ac62 | [] | no_license | danikdanik2013/Sanic_project | 52dc46523d4273a295423103af140199c39556cb | 8021478385e032ad4fdf03d5bd317dda1f6110a3 | refs/heads/master | 2022-12-13T06:55:32.069689 | 2019-02-08T14:57:09 | 2019-02-08T14:57:09 | 165,872,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # from you_shell_not_pass.service_api.app import app
#
# if __name__ == "__main__":
# app.run()
| [
"dpyly@softserveinc.com"
] | dpyly@softserveinc.com |
74ac1fefd73605545a59bd97aec3f487416767ec | d99864c2675333b22181b90d047fdde894523cbb | /lamia/core/filesystem.py | 06b3947f5fe227e016d2a0333e46252f06d005af | [] | no_license | Clint09/lamia | 829fe4d75a223ca2eea87ab7b358b12f4968fe9e | ee4fa140812ea18ed26da593fcb592cb45302cdc | refs/heads/master | 2020-04-01T18:05:14.508829 | 2018-10-16T15:31:06 | 2018-10-16T15:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,118 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Renat R. Dusaev <crank@qcrypt.org>
# Author: Renat R. Dusaev <crank@qcrypt.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restric... | [
"crank@qcrypt.org"
] | crank@qcrypt.org |
1808985b4ac9d43d43c5b8cc0ebbc2b85b51a3ec | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/interface/hundredgigabitethernet/storm_control/__init__.py | 129d9c09e4a7d15c7a89324f305901c6ecfdcf8a | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,095 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
68588cf0414fffb99cd81a0a2b52a12a52ddf85d | fdf8908c9cbee325ef9f4d7ee89d85d418fb74c0 | /BDPy/Py27Lab/demo13.py | b6befe280d9d634de0432e2a1891316f834b1412 | [] | no_license | icq6679166/Python | 8449083f50361cf04c5ee2d27f9a0112954ec58f | 2e909d433e0322dc253df725c0a9f43e3bccc898 | refs/heads/master | 2020-05-01T15:35:24.364810 | 2019-03-31T22:51:50 | 2019-03-31T22:51:50 | 177,550,554 | 2 | 0 | null | 2019-04-03T23:55:08 | 2019-03-25T09:02:38 | Jupyter Notebook | UTF-8 | Python | false | false | 351 | py | str1 = 'abcdefg1234567890'
print str1[len(str1) - 1]
# print str1[len(str1)]
print str1[-len(str1)], str1[0]
print str1[2:10]
str2 = "www.uuu.com.tw"
return1 = str2.split(".")
print type(return1)
print return1
print "@".join(return1)
print "".join(return1)
print str1+str2
print str2*5
print 5*str2
print '... | [
"noreply@github.com"
] | noreply@github.com |
455c9b48356ac380c5a8992c02e626d7fa3f969d | 59813f5050594a1fe1f958f601a8288170d59400 | /kvu.py | 177bdd9c9a7d8f1c9a3e800a689590bfde7ac4b6 | [] | no_license | Jon1ke/script | c2c84b4bf4f13736a240b831c96e297c2f1d78b9 | 5ad1ff94d2ef2dc3838f6c6a79c623b327e6c457 | refs/heads/master | 2020-05-17T09:01:11.085202 | 2019-04-26T12:12:02 | 2019-04-26T12:12:02 | 183,622,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,773 | py | # -*- coding: utf-8 -*-
import sys
import getopt
import os
from openpyxl import Workbook
from openpyxl import load_workbook
from openpyxl.styles import Font, Color, Fill
from openpyxl.styles import colors
verbose = 0
sheet_name = u"Таблица_ЗЛ"
# color for mark different records
rft = Font(color=colors.RED)
# color f... | [
"bogdanlinke@gmail.com"
] | bogdanlinke@gmail.com |
8360bdbce02337b5b0d8dcc33a34b850594a7837 | edb918bd0df4e3d7c3220cc681a7d56043e062a1 | /Main/main.py | db982e614d701081162797a26e91d7baf89a6a2b | [] | no_license | Akasen/AkasenRPGTest | 035993de761b0dcbc41d21b153827532c228d081 | 30884201564868dcc5bcad7dd43e255ca5617d30 | refs/heads/master | 2020-05-18T21:03:08.860496 | 2013-11-21T04:12:48 | 2013-11-21T04:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,456 | py | #randint to be used in the future for random variables
from random import randint
###Dice Roller###
def DiceRoll(x):
roll = randint(1, x)
return roll
##Dice End###
##Character and NPC classes##
class Character(object):
def __init__(self, name, MaxHP, health, strength, dexterity, stamina, armor):
... | [
"Akasen1226@yahoo.com"
] | Akasen1226@yahoo.com |
c4e1778126ccc1c4d6bd383b4dfd5d9fa5605236 | cc0e964d635b6d48db9424ad1f5d8985e5332c45 | /aboutTheSystem.py | 109e60ba34b7df2d06a67ae166d9ff081957382a | [] | no_license | Anshika-Sharma-as/TeamTask01 | efb4e31d488ab7e887fb4f188d04439f66661743 | 0da3b1ffd44478f2a145a3807c4757548bb3ba0c | refs/heads/main | 2023-01-07T15:30:38.293806 | 2020-11-09T08:49:46 | 2020-11-09T08:49:46 | 311,275,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,747 | py | import os
TGREEN = '\033[32m'
TWHITE = '\033[37m'
TYELLOW = '\033[33m'
TBLUE = '\033[34m'
TRED = '\033[31m'
status = 1
def aboutSystem():
print(TGREEN, '\t \t Welcome to the System Info ')
while (True):
if status == 1:
print(''' \t List of option to get information about the... | [
"noreply@github.com"
] | noreply@github.com |
d0fc9dd9fa76e4247d55fc5c7dd97bb1f29d6ac3 | 9d2cadf96f11ed1031bd7d3425f6cac52f8b4907 | /main.py | 4232e0d1218d5f349def06a03ab68034f921a28e | [] | no_license | homeiraazari/GoogleCloudPlatformSample | 0bf4fb51f5431e8c53f696a5b24bf5c88d1dfe56 | 57e39cdf360a667f965598a78e041b4ce24683ab | refs/heads/master | 2023-05-11T19:26:45.929169 | 2021-03-01T17:01:34 | 2021-03-01T17:01:34 | 236,600,997 | 0 | 0 | null | 2023-05-01T21:20:50 | 2020-01-27T21:39:14 | Python | UTF-8 | Python | false | false | 841 | py | from flask import Flask
from flask import jsonify
import pandas as pd
import wikipedia
app = Flask(__name__)
@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
return 'Hello I am Homeira and I like to make AI Apps'
@app.route('/name/<value>')
def name(value):
val = {"value": value}
r... | [
"homeiraazari@gmail.com"
] | homeiraazari@gmail.com |
c9229487103db2f12ee73bf4d62f5c88ac2dc13e | c3a9cc3e16567d4f2b3771c6780c8cf36921582b | /Lib/site-packages/pip/_internal/pep425tags.py | bc1cdb6e5c39280f6d5b3b7c4642b2da431bccf8 | [] | no_license | ugoodumegwu/imdb | 19e355bda180b3ea65e62199175c84b437a1678d | 3cab0542e293b89db8b9510348063e8ce3819773 | refs/heads/master | 2022-12-15T06:27:43.162018 | 2019-08-08T12:02:27 | 2019-08-08T12:02:27 | 201,245,235 | 0 | 0 | null | 2022-11-22T04:10:55 | 2019-08-08T11:35:43 | Python | UTF-8 | Python | false | false | 13,132 | py | """Generate and work with PEP 425 Compatibility Tags."""
from __future__ import absolute_import
import distutils.util
import logging
import platform
import re
import sys
import sysconfig
import warnings
from collections import OrderedDict
import pip._internal.utils.glibc
from pip._internal.utils.compat import get_ext... | [
"ugoodumegwu@gmail.com"
] | ugoodumegwu@gmail.com |
dc3e3ba7ee02dbd5d9a8dd8c61a2713c0f51d234 | e25e0e8ce5ec28f52ed1829fd53bc160bebba9c0 | /venv/bin/mailmail | aefcc326c45cd1820248e9904fc4033d124dc9d7 | [] | no_license | Souravsumanpal/houzz | 9a09b12058cf048d1a392894ce9bd6790a98f6f4 | a6ebe82d3b9d4433cfe3d122e53d9479d2b1de30 | refs/heads/master | 2023-07-05T14:15:35.939841 | 2021-08-08T09:35:03 | 2021-08-08T09:35:03 | 393,916,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/shorya/workspace/Bizhues/scrapy/houzz/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from twisted.mail.scripts.mailmail import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"souravsumanpal@gmail.com"
] | souravsumanpal@gmail.com | |
f9d27805e02862676500e8314faf558221747bc4 | cbd57ae9ec6beb2de489d960bbabef6a588da98e | /contact/urls.py | 8b5578165fbc80581a3625af419983c3ac65d72e | [] | no_license | Sean-Hilton/ContactList | aa8cde62474ea32e49839aec2524dbc144a8ad05 | 896ecd604e4741feb38e8f671ed1470e96f40b49 | refs/heads/main | 2023-07-08T01:48:59.548057 | 2021-08-17T17:27:51 | 2021-08-17T17:27:51 | 393,488,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('login/', views.registerPage, name='login'),
path('logout/', views.logout, name='logout'),
path('add-contact/', views.addContact, name='add-contact'),
path('profile/<str:pk>',... | [
"noreply@github.com"
] | noreply@github.com |
0388593f65eabe2944078f31592e027dc709b1dd | 58abc7d895dfb07818670511278e3ad43efe9d33 | /数据分析练习3.py | 3dc40dff836579eb57404299d2faab47b7e5f13d | [] | no_license | hzhhzh456/daima | 1276da596fda5b929d94616887cc4c09c33ce468 | ed0848b2241dc129fc05f3734ee1e8bd1134a745 | refs/heads/master | 2020-09-17T00:55:47.827604 | 2020-08-18T14:28:44 | 2020-08-18T14:28:44 | 223,938,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from math import exp,log,sqrt
import re
from datetime import date,time,datetime,timedelta
today=date.today()
print("Output #41:today:{0!s}".format(today))
print("Output #42:{0!s}".format(today.year))
print("Output #43:{0!s}".format(today.month))
print("Output #44:{0!s}".format(today.day))
current_datetime=datetime.toda... | [
"1277430572@qq.com"
] | 1277430572@qq.com |
63546a63ea14ce3fc5fadc04ebc9988761286182 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/instance_groups/unmanaged/delete.py | 955dc6c5dfd2b844563c81ffbc6b0310d1d95757 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 2,378 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
1cf19a8be8279c1e8c732b802848866e66883085 | bae3294e75330cc5d1adb376b2556dc078485293 | /ex19_1.py | 787c7fe2620124e6768d45c8db97a51842ad1072 | [] | no_license | yiyinghsieh/learn-python-the-hard-way | 2187b5c39f06facb44509d427b6ca7927879dd9c | 271f43d35b19ce24f9be4ad41684546ef7322e81 | refs/heads/master | 2020-04-07T04:54:49.920840 | 2019-03-07T21:04:51 | 2019-03-07T21:04:51 | 158,076,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # ex19_1.py
def dog_and_cat(cute_dog, cute_black_cat):
print "I have %d dog!" % cute_dog
print "I have %d cat!" % cute_black_cat
print "There are so funny!"
print "That play a game.\n"
print "I cant just give the function numbers directly:"
dog_and_cat(5, 6)
print "Or, we can use variables from our ... | [
"yiying.hsieh6@gmail.com"
] | yiying.hsieh6@gmail.com |
112465e55170d17e2968ce195267c88997ea8a78 | f01f40e1aec3462881b69149ea975ef7a7315685 | /mysite/blog/admin.py | 749c53536eb700ae68a0219ac9d18de83fce7687 | [
"MIT"
] | permissive | sariyanidi/academics-webpage | 7c380750a3694d28b5fbbd4ba1c01200c6222027 | 5b1ca24167a32ec30df375ebd1e47bfff1644c36 | refs/heads/master | 2021-01-10T22:01:45.444062 | 2014-10-21T18:17:02 | 2014-10-21T18:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from django.contrib import admin
from models import Category,CodeSnippet,Project,Publication,Conference,ProjectAdmin,Code,Article,ArticleAdmin
class CategoryAdmin(admin.ModelAdmin):
fields = ('title',)
# Register your models here.
admin.site.register(Category,CategoryAdmin)
admin.site.register(CodeSnippet)
admi... | [
"legnav@v410.(none)"
] | legnav@v410.(none) |
66ca154f4d303f6e00de7f4b9762ba5f217a7a26 | b452928168d9610fedf1e8c11230639fc599c88d | /Par_coordinates_Andrews_curve.py | 8e3e43ff71c5f2f7ec173cafcc4e3937b93374aa | [] | no_license | anestis-tziam/Data_Visualisation | ba182e4627465962876e969b61674254d636d3b2 | bd7ad2e60feaa157fe2a2ab24e213bd4b19d225b | refs/heads/master | 2020-03-21T20:15:08.694460 | 2018-06-28T11:11:26 | 2018-06-28T11:11:26 | 138,996,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##################################################################################################################################################
#################################################################################################################################################
###########################... | [
"noreply@github.com"
] | noreply@github.com |
6b652cb533300dbd6aaa32f92afb4f505dcd3a34 | 649e5ff8c84bfb882851f2f57de9d7dbb37b62df | /hw2/RandomForrests.py | 25e53feb58e8437f9261abe9f0e29a89b8dc3f2d | [] | no_license | johansent/ML_Fall2017 | 2ba9a20497944ab2b184f6adffc019803ca23854 | 31947c7aa9649e2f4d17c94aaa7accfb1362c1ef | refs/heads/master | 2021-01-20T22:02:14.915716 | 2017-11-06T19:51:01 | 2017-11-06T19:51:01 | 101,795,108 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 15 10:02:36 2017
@author: Kyle
"""
from import_data import import_data
from sklearn.ensemble import RandomForestClassifier as RFC
import matplotlib.pyplot as plt
import sklearn
import numpy as np
def GrowForrest(x,y,xtest,ytest,K):
errorsTrain = []
errorsTest =... | [
"sha11005@byui.edu"
] | sha11005@byui.edu |
5ab0d3b94426ed0ab35f14ea5e6b12b8d4f31966 | ca6a197fa667d589223639d5b1e1fbda44ecd456 | /due.py | e8160830ddd4debeab8af5ca6a7cee50f8e028a1 | [] | no_license | fceek/Discord-Ghost-Bot | 51a96d05019328508be7ad1b55d7b19d39193b55 | 06c536a353f4b97c6de2f8da578a14f1b5d3fd1e | refs/heads/master | 2022-09-04T01:34:28.008705 | 2020-05-23T15:14:29 | 2020-05-23T15:14:29 | 260,094,303 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | import datetime
class Due:
# exp: Due('date':)
def __init__(self, **kwargs):
self.date = kwargs.get('date')
self.text = kwargs.get('text')
| [
"fceek96@gmail.com"
] | fceek96@gmail.com |
ad26a52185caabccd3dfc136962d56741d22ba01 | 80bce6328c5f0c951987904af11b148c0440a83e | /rotor.py | a62f4d33f09d67b128d04a1e83fa214a434769b4 | [] | no_license | disha00991/Information-Security | 37dd3c515d1e2759d978b8d4f5e8663b3b0df29a | 33c4361847582726395bb581c0d19f604e772b92 | refs/heads/master | 2021-01-17T08:06:35.914757 | 2016-08-26T14:26:57 | 2016-08-26T14:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # Implement yourself
#Encryption
def rotor(plaintext,shift):
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"]
#Create our substitution dictionary
dic={}
for i in range(0,len(alphabet)):
dic[alphabet[i]]=alphabet[(i+shift)%len(alphabet)]
... | [
"as01hu@gmail.com"
] | as01hu@gmail.com |
0054fe9d348ce2cdcd1627b633ac14e6c97d5d87 | 1c2c9db35ee7849cd298a8bd9c4d744dfcd912f4 | /button.py | a0a61a722eee3f6e16bb0513ce410cc87f6ac16f | [] | no_license | AliceGreek/Python-pygame-shoot_balloon | 2fd96224ed07facf2958cb22a807a9c462c024de | 47434b577c4e374031208ec803700ec811f544e1 | refs/heads/master | 2021-05-04T17:31:09.658202 | 2018-02-05T08:16:14 | 2018-02-05T08:16:14 | 120,273,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import pygame
from pygame import font
class Button():
"""开始按钮类"""
def __init__(self, screen, msg):
"""初始化按钮属性"""
self.screen = screen
self.screen_rect = self.screen.get_rect()
self.msg = msg
# 设置按钮的尺寸和属性
self.width, self.height = 200, 50
self.button_color = (0, 255, 0)
self.text_color = (255, 255,... | [
"1158636487@qq.com"
] | 1158636487@qq.com |
705620183edb59df9e17a79213dab8d28e9b028a | bb54fca36822db794a86dc0d617ffe7f58c23c93 | /Abby progress update.py | 12d91712d9e02f6f422f5680db6c63cfebc624eb | [] | no_license | derektoms/opentrons | c82ee95645b03a9288cc4fa0ea71a02291d3495a | 6635f13034713c2dedc4f629422cb78dfedcbce9 | refs/heads/master | 2021-04-04T08:18:07.765977 | 2018-09-14T23:14:50 | 2018-09-14T23:14:50 | 124,447,150 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | # imports
from opentrons import robot, containers, load, insturments
from intertools import chains
# robot settings
robot.head_speed(z=1000)
# container set up
# set tip racks
tiprack = containers.load('tiprack-200ul', 'A1')
# waste
waste = containers.load('point', 'C2', 'waste')
liquid_waste =... | [
"noreply@github.com"
] | noreply@github.com |
3546062645fad2976a9bb0f1e593e78e68733821 | 3b35eecc937dce2872c27f5aabb9b34b5ec93f82 | /src/HardwareObjects/MaxLabSession.py | 57e1874e92940cf317f29b0dc7971d071eccc9cc | [] | no_license | meguiraun/mxcube-v3 | 1bc0f14d4b8538f125c629c33ca60d5c1ec7b01c | af0a6af5024c037fa09814c8b2d33482b29fe887 | refs/heads/master | 2021-01-22T17:14:17.145284 | 2015-08-19T12:20:29 | 2015-08-19T12:20:29 | 39,188,792 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,500 | py | """
MaxLab Session hardware object.
Adapting from original Session.py to adapt the names of data directories
"""
import os, time
from Session import Session
class MaxLabSession(Session):
def __init__(self, name):
Session.__init__(self, name)
self.default_precision = "03"
def get_base_data_d... | [
"mikel.eguiraun@maxlab.lu.se"
] | mikel.eguiraun@maxlab.lu.se |
169e9831bcc3567be42765c6f6d3db237d70ede8 | 49e3663fea29ae7fabec581ebae1fda5361effcd | /events/migrations/0003_auto__add_field_event_short_body.py | ff8f2567acac4b37f3f29ef89ba73caeb15a2d8f | [] | no_license | ikonitas/old_causenaffect | 8fdabdc3108efa16046f6bdfa542f71d58a4e6eb | 145f7ae82d02e39bda17aad380dac0f190f1882c | refs/heads/master | 2021-05-28T08:46:49.663299 | 2014-02-17T21:42:36 | 2014-02-17T21:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,212 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Event.short_body'
db.add_column('events_event', 'short_body', self.gf('django.db.models.fi... | [
"ikonitas@gmail.com"
] | ikonitas@gmail.com |
a2015b7aa43ae1a0feefdaf35568e012477cc3fa | f6473593e6adfe6c53c8526901fa342d200596be | /multiplication-table.py | 0a75c98327ab6ca27698d7b614d4f876d304b026 | [] | no_license | aabhasgaur/Python-Basic-Programs | 01fcd082bdece0b8e28c375e573488b2f2de5959 | fdb8fd05bea89f742e3376447136d788f9941be6 | refs/heads/main | 2023-07-04T23:20:00.453387 | 2021-08-19T09:25:51 | 2021-08-19T09:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | num=int(input("Enter a number:"))
print("Multiplication table of",num,":")
for i in range(1,11):
print(num,"X",i,"=",num*i)
| [
"noreply@github.com"
] | noreply@github.com |
313abfe75d910fb1a8aef9d86992c76f7f76c267 | e4ea569a79f2b905c4ffc316c3e547dc74901edc | /clipper/course_save.py | 73bc00da9a1f3f804909c27d26e27e8980cb331c | [] | no_license | TILPJ/data_donhwi | e95800445c5100aa77e19a8a2d88f73126a00716 | eced9679f51a4b5fbc60a2d2e7cead1e97d91291 | refs/heads/main | 2023-06-27T14:01:33.161346 | 2021-07-29T11:46:02 | 2021-07-29T11:46:02 | 375,333,780 | 0 | 1 | null | 2021-07-22T08:15:33 | 2021-06-09T11:38:25 | Python | UTF-8 | Python | false | false | 2,028 | py | from clipper.models import Site, Course, Chapter, Section
# 섹션 정보 저장
def section_info_save(chapter, section_list):
for section in section_list:
data = Section(id=None,
name=section,
chapter=chapter
)
data.save()
# 챕터 정보 저장
def cha... | [
"howsitgoing@naver.com"
] | howsitgoing@naver.com |
fe610589e16a8318efe13fefe19c225a9f4b3618 | 1d00e3796a495cb5f2218e0e864544f482209b08 | /3.1.2.11.py | 244c285c2eb9e5900fc2867c9df11435dac23ab6 | [] | no_license | cf19carlosreina/Python-ReinaCarlos | b2b5fd53ba243e6d39d2040c71e9c80e55fb7a04 | e3bbb2246c21593ba72b499f23ad6a0f875fc42b | refs/heads/main | 2023-03-12T14:56:23.683649 | 2021-02-28T22:01:52 | 2021-02-28T22:01:52 | 308,089,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | palabraSinVocal = ""
# Indicar al usuario que ingrese una palabra
# y asignarlo a la variable userWord
userWord = str(input("Ingresa una palabra: "))
userWord = userWord.upper()
for letra in userWord:
# Completa el cuerpo del ciclo.
if letra == "A":
continue
elif letra == "E":
continue
elif... | [
"noreply@github.com"
] | noreply@github.com |
8b37cfa66542bbb293a615730337867c31ead081 | bb932a93d3face2458dc00329e3811664baa6b52 | /unittest/asyncio_queue.py | f02aba922836f18e965d7c7bc443e2e333a97c6c | [
"MIT"
] | permissive | Emptyset110/Morphe | 5dfc5d836b13d8edd074a231faa923add6b98bbe | 762a031298addf9a34425dbecaa793727aeed4c2 | refs/heads/master | 2021-01-19T09:21:11.323822 | 2017-04-15T05:16:05 | 2017-04-15T05:16:05 | 87,750,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # coding: utf-8
"""
决定将queue.Queue换成asyncio.Queue前试写的demo
"""
import asyncio
from asyncio import Queue
import queue
import random
import threading
import functools
@asyncio.coroutine
def queue_feeder(q):
for i in range(0, 100):
print("Put: ", i)
yield from q.put(i)
yield from asyncio.sleep... | [
"21324784@qq.com"
] | 21324784@qq.com |
14976d0852d273752f1d344b928169a91b16397d | 8ea2bc53a4d6e7ad64390dd96cd361486cd74ce9 | /pybulletgym/envs/roboschool/robots/pendula/interted_pendulum.py | 6549b3994a557603d6ad2bd482e594a6c14e0acf | [
"MIT"
] | permissive | AmrMKayid/pybullet-gym | 1f8889b8cb07bb50037343315a37210d815a6b97 | b052a376580d142d1870f38c4f5ccdc75c64f4b7 | refs/heads/master | 2020-11-26T10:31:45.865650 | 2019-11-06T10:03:03 | 2019-11-06T10:03:03 | 229,044,002 | 1 | 0 | NOASSERTION | 2019-12-19T11:50:39 | 2019-12-19T11:50:38 | null | UTF-8 | Python | false | false | 1,607 | py | from pybulletgym.envs.roboschool.robots.robot_bases import MJCFBasedRobot
import numpy as np
class InvertedPendulum(MJCFBasedRobot):
swingup = False
def __init__(self):
MJCFBasedRobot.__init__(self, 'inverted_pendulum.xml', 'cart', action_dim=1, obs_dim=5)
def robot_specific_reset(self, bullet_c... | [
"benjamin.ellenberger@insel.ch"
] | benjamin.ellenberger@insel.ch |
c84f2457c0b99ce8dfe2585ade854997310072ec | 2b7e9f36ec05a67cb85ea474b08d508335f1e936 | /idle11.py | e8ffa83f07be7414edf1227b0c933a803d36bcbe | [] | no_license | samordoch/Idle-Eleven-AutoSwipe | 58d5068412149a08482c0a50bd90550c8151b7bc | 988c51acceb5b9992d215c6487efa0f9a0bed005 | refs/heads/main | 2023-06-10T16:12:49.921270 | 2021-07-07T10:51:42 | 2021-07-07T10:51:42 | 383,760,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | import os
import keyboard
def swipeDefence():
# swipe cb row
os.system("adb shell input swipe 60 1620 958 1621 130")
# swipe gk
os.system("adb R58N92V6KCH shell input swipe 330 2024 770 2024 130")
def swipeSt():
# swipe over st cf
os.system("adb R58N92V6KCH shell input swipe 220 728... | [
"noreply@github.com"
] | noreply@github.com |
85649f26f271d7dde68054cfc16329bd9ab2ba35 | cccb7c6c3af061b6703d01697714d3edff366cf7 | /winrates.py | e83364d3ac62d73bea5d118e7f5c197a6f70d07c | [] | no_license | maddy302/dota2teamsuggestion | 23cac8bf1c6980d0ca52977f4e53af7a707e9a97 | 63a2c4e215f7f85760f7a74cbae21dc168c889f0 | refs/heads/master | 2020-03-26T13:25:58.824573 | 2018-08-16T05:03:04 | 2018-08-16T05:03:04 | 144,938,778 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import sqlite3
import simple_heroes
import random
class Winrates:
def load_winrates(self, database="data/matches.sqlite"):
connection = sqlite3.connect(database)
self.radiant_winrates = dict()
self.dire_winrates = dict()
for hero in simple_heroes.dota_hero_ids:
matches_on_radiant = connection.execute('SELE... | [
"bsm4u2722#gmail.com"
] | bsm4u2722#gmail.com |
62b4cfd34c72b28ab04105996da379e186d68817 | 656d1c23becebe3897a10ab1e7c11223aacea7d4 | /python/pcasig/core/exceptions.py | bac3d9f14bb7bccf49a32cb9d15c03a3e7c0a61a | [
"BSD-3-Clause"
] | permissive | zpace/pcasig | ead2041d10eebd029518e918149ca060f49e5d1a | f659d956192125f89a17ecaf59825ce301d95455 | refs/heads/master | 2020-08-27T10:12:12.601803 | 2019-10-30T03:21:27 | 2019-10-30T03:21:27 | 217,329,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-12-05 12:01:21
# @Last modified by: Brian Cherinka
# @Last Modified time: 2017-12-05 12:19:32
from __future__ import print_function, division, absolute_import
class PcasigError(Excep... | [
"zpace21@gmail.com"
] | zpace21@gmail.com |
9c70343fb4ede60d25a4826018132491b6ce3728 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_/trend_constant/cycle_12/ar_/test_artificial_128__constant_12__20.py | 53da275217edee4022050200a1f5d3f55f20f941 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "", sigma = 0.0, exog_count = 20, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
1e4797753fd3e0fcebccf3be0b971ddb534b7452 | 9129a791f45cd3b25d8a5da57ee6936bfe4e73a2 | /learn-django/db_ORM2/one/migrations/0002_article_username.py | 36eb6412db4e75d303331bc845e1d0aeff1d4ef2 | [] | no_license | Sunsetjue/Django2.0 | 94be49ed9d65dab6398ab8f0ddd02bb1871afb6b | 102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8 | refs/heads/master | 2020-04-22T03:25:24.014196 | 2019-02-15T16:18:23 | 2019-02-15T16:18:23 | 170,086,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Generated by Django 2.0 on 2018-12-10 08:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('two', '0001_initial'),
('one', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | [
"10073631822qq.com"
] | 10073631822qq.com |
5e70ad84a6cda2ce2c916562e762ea79f62edafc | 1c0e889b5f216549160eba5fa6960078926b6f27 | /flaskServer.py | a9e1fe60fe430ae1ecbd3b75de3e2629082eb37f | [
"Artistic-2.0"
] | permissive | ttm/aars | 477d42f7f4627d0178ca5fabf1445d7c1819d2ef | 481ea568321255ddc60b167325c545f84f3284ff | refs/heads/master | 2021-01-01T17:32:55.940835 | 2014-12-16T06:09:05 | 2014-12-16T06:09:05 | 21,177,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #-*- coding: utf-8 -*-
from flask import Flask, render_template, make_response, session, redirect, url_for, escape, request,jsonify,Response
import pymongo, __builtin__, datetime, string
from dateutil import parser
import time as T, networkx as x, json # json.dumps
#import MySQLdb, cPickle, numpy as n
from maccess ... | [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
9b73f5e1369ba4650b9c1b6d9387e009efebd53c | 4011707f288cb532486458b5b6dc12cbde43b72b | /scripts/preprocessing_test.py | a8a968822b13fb693e7eda2c0c8b6a81e30940e3 | [] | no_license | ZXChadD/Model-Re-training | 98dead737c31bdf12e47efdf32b3897082c13645 | b3edb70bc0cc2cca3740ae0c16ccb469afcc4d87 | refs/heads/master | 2022-12-05T07:18:11.792462 | 2020-09-04T02:16:01 | 2020-09-04T02:16:01 | 284,948,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,620 | py | import pickle
import random
from matplotlib import pyplot
from PIL import Image
from PIL import ImageDraw
from pascal_voc_writer import Writer
cifar10_path = 'cifar-10-batches-py'
width_of_original_image = 32
height_of_original_image = 32
max_img_on_bg = 20
max_images = 10000
def main():
create_training_data()
... | [
"zhexianchadd@gmail.com"
] | zhexianchadd@gmail.com |
2295a63eb9635f01641c4c2f4c1e106e694694c6 | 99d809e963ce1977e697a36c74932ea740688707 | /2017 Senior CCC/s1.py | f383ed28a0cca50e910d4278fb076753de2537aa | [] | no_license | Noor-Nasri/Contest-Solutions | 76d4d03534b9a7ae001bce49194d1ce9c39085d5 | 1380b2ebc5f381f7d2f833a4fb224f4fef551f3c | refs/heads/master | 2021-06-21T23:57:49.645311 | 2020-11-22T16:14:48 | 2020-11-22T16:14:48 | 141,163,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | input()
games1 = [0] + [int(e) for e in input().split()]
games2 = [0] + [int(e) for e in input().split()]
for a in range(1, len(games1)):
games1[a] += games1[a-1]
games2[a] += games2[a-1]
for b in range(len(games1) - 1, -1, -1):
if games1[b] == games2[b]:
print(b)
break
| [
"noor.nasri@hotmail.com"
] | noor.nasri@hotmail.com |
a3f4a3a3b0f4c6329302ee714e03465366a5a8b0 | 7749912be6fa3811975867c1e2dc8c303eac6d55 | /website/DeOldify/deoldify/dataset.py | 29a329360636db9f21c908e9d18c44dddf47ef61 | [
"MIT"
] | permissive | ravinitheshreddy/terzani_online_museum | 0ae9b6cd6c65418483bfbf2e38502c239f6f65e7 | 6538e0053c9119b1bf67da930f309b22cbdece30 | refs/heads/master | 2023-08-22T00:44:38.141864 | 2021-10-12T19:34:56 | 2021-10-12T19:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import fastai
from fastai import *
from fastai.core import *
from fastai.vision.transform import get_transforms
from fastai.vision.data import ImageImageList, ImageDataBunch, imagenet_stats
import os
from .augs import noisify
def get_colorize_data(
sz: int,
bs: int,
crappy_path: Path,
good_path: Path,... | [
"ravinitheshreddy@gmail.com"
] | ravinitheshreddy@gmail.com |
a5724c267a90d9ff426a1eec81a2e71f7e31c138 | 2d23f5d96dcd65ef9461bcfbf6eaf8f7ec5ee86c | /examples/202_coalescence/vis/rt.py | 1b196263472ac957d3866f0e2e65c3afa76fa544 | [
"MIT"
] | permissive | fksato/aphros | cc7a47e9be58d8c7f9c130703e2b330105445562 | 5c0fb6a1e0d4db3653df5fff6f1d83fe1913f461 | refs/heads/master | 2023-03-22T19:08:27.524359 | 2021-03-20T13:43:06 | 2021-03-20T13:43:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,112 | py | #!/usr/bin/env pvbatch
# state file generated using paraview version 5.8.0
from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
import argparse
import os
import re
def Log(s):
sys.stderr.write(str(s) + '\n')
parser = argparse.ArgumentParser(
description="Renders interface shapes ... | [
"kpetr@ethz.ch"
] | kpetr@ethz.ch |
ea41284abeaed9935fe87782c57638229ca46372 | 73832d62f4e982517f36265617c17bea3b715719 | /04cem/Programming_Software_Tools/PYTHON/untitled/untitled/urls.py | 675eecba0135ea31bb1e5a83c85b278aeb2fd7a1 | [] | no_license | keipa/bsuir-labs | fa9018a121ec1b040bae27326607cd82ac7652a4 | a7a3eca34d095568c7f8cbbe976cc91e515dc756 | refs/heads/master | 2021-06-15T23:37:27.249024 | 2020-06-09T09:33:32 | 2020-06-09T09:33:32 | 34,018,391 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """untitled URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"nichogaus@gmail.com"
] | nichogaus@gmail.com |
9bb5532146cbe633e0698132eb5cff30192b23fb | 6c5e2f64f9cba02c19fea9662db782974d87b4f5 | /golden/apps/categorias/urls.py | b59563bf253721bdb14bd1294f33272b912998c1 | [
"MIT"
] | permissive | FilipeSGomes/Questions | 3039df39f6a68b3a269da688f99750cb8b087d3d | 95bab0e911a367f81d92bb65eb24bd8741412c63 | refs/heads/master | 2023-01-24T12:07:41.504629 | 2020-11-20T23:58:18 | 2020-11-20T23:58:18 | 314,670,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from django.urls import path
from django.urls import path, include
from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
from django.views.static import serve
from django.conf.urls.static import static
from . import views
urlpatterns =... | [
"filipesg@primeit.com.br"
] | filipesg@primeit.com.br |
eb8b390796f9460b2e89e0224726870807321dab | 08f11407616232a63d07cbc7a347eac1dc11aa4d | /Data/euler_chain.py | be0c6cfa63c70ac59a6907d81e13f4aec46ad2f5 | [] | no_license | cwgreene/project_euler | f1daf951661285f693159e02f9ac035a25b7fea8 | 53499f6400fa1995bd8a9c803f30f5ccc38ccafd | refs/heads/master | 2021-03-12T21:23:42.169902 | 2015-01-05T02:26:05 | 2015-01-05T02:26:05 | 1,182,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import euler
import time
chains = {89:89,1:1}
sum_time = 0
def next_chain(x):
square_digits = [d*d for d in euler.digits(x)]
return sum(square_digits)
def next_chain_fast(x): #not that much faster
global sum_time
start = time.time()
sum =0
prev_power = 1
power = 10
while x/(prev_power) != 0:
product=(x % p... | [
"archgoon@gmail.com"
] | archgoon@gmail.com |
302f65518292a696e7f129cd6da7782047494676 | d7e41fee3b404cc30d93da72eb92ac466c4fe3ae | /aplpy/colorbar.py | c8a2d6c107a27ccf8a8f1624d08df868e8ed978c | [
"MIT"
] | permissive | lpsinger/aplpy | ca257d0da48aac9e29e0e71470e90147c710cecf | a59ec76d1f0b04ece7a78accd9d6672d5def5a0a | refs/heads/master | 2020-04-08T22:43:37.778800 | 2012-12-21T14:27:56 | 2012-12-21T14:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,469 | py | import warnings
import matplotlib.axes as maxes
from mpl_toolkits.axes_grid import make_axes_locatable
from matplotlib.font_manager import FontProperties
from .decorators import auto_refresh, fixdocstring
# As of matplotlib 0.99.1.1, any time a colorbar property is updated, the axes
# need to be removed and re-creat... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
e7f67e86dc59350d2e03716109cfd53bf3497274 | 9ee5e51e96fe8baff2ccc7a03981e453b60e3bed | /test/technical_analysis/stock_analysis.py | 2b69e76bf748ca07296f428bfbecce36e24c8a7e | [] | no_license | marciopocebon/myInvestor | 0b97a065e9f5dd9beaefca99955d4fb31a619c03 | f4861b462b1161fb49534ec85ce259026fa20fd3 | refs/heads/master | 2021-12-24T03:21:05.829680 | 2017-12-05T15:45:04 | 2017-12-05T15:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # must run using ipython console
# or jupyter-console
import pandas as pd
import pandas_datareader as web # Package and modules for importing data; this code may change depending on pandas version
import datetime
import matplotlib
import numpy as np
import matplotlib.pyplot as plt # Import matplotlib
# We will l... | [
"mengwangk@gmail.com"
] | mengwangk@gmail.com |
1d3868991d12658e3d6a62b13ffb329463afa9ad | 6848fafa876927b375e187bba57b0a1f934c6716 | /python/graph.py | 50feae45224290a1663889c3a7133b7321d4c570 | [
"MIT"
] | permissive | QimingZheng/AHP | b48c9b7dfdb86bb189688e46dd4669f5e9a0009f | 3a8f66f10ef87f55ea92ef568a25a3e78e4392f3 | refs/heads/master | 2020-03-22T15:58:17.735544 | 2018-07-12T07:25:18 | 2018-07-12T07:25:18 | 140,293,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import pandas
import math
import time
import random
from IO import *
class Graph(object):
def __init__(self):
self.graph = {} # vertex : neighbor_list
self.master_vertex = {} # vertex : whether thie vertex is a master mirror copy (True/False)
self.duplicate_vertex = {} # duplicate vertex in... | [
"qimingzheng96@gmail.com"
] | qimingzheng96@gmail.com |
0a9ba42a1fa7d578b0eac801eafbc4a7820f92f3 | 1a8dbd07363239c79c6d217f675203dedfa93b68 | /random_agent.py | faddd8f6cb58012b4723da7bb6956b3458d08280 | [] | no_license | unlut/gameai_hw_final | c715ee1b313a877e140b3fa2bc73025062c2bc33 | 48d1639b9b5eededfaf32af2dab2cc4c9058e677 | refs/heads/master | 2020-05-24T16:38:19.009468 | 2019-05-20T07:17:49 | 2019-05-20T07:17:49 | 187,364,963 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import random
class RandomAgent:
def __init__(self):
pass
def decide_move(self, grid):
# RandomAgent plays randomly
rand_number = random.randint(0, 4)
# convert number to direction string
decided_move = ""
if (rand_number == 0):
decided_m... | [
"turkerunlu@hotmail.com"
] | turkerunlu@hotmail.com |
e2ef2536a85188c91efb424bfaf0d4bdd3c5f407 | 4cb5e7d4eb12af3970fbe1e1532f54dd2a3f5606 | /python/practice.py | 1d1459c70216ded391ebe169a33631d983b98ac7 | [] | no_license | sreeteja06/vscode | d2fb81cc65ab7b62000f2aac86d7f2dd0680f61d | e4f815f3ce1cd2da884a2fe4493bd88ca1631863 | refs/heads/master | 2020-12-30T09:14:38.490788 | 2018-09-14T15:00:57 | 2018-09-14T15:00:57 | 100,395,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | '''class hello:
def __init__(self, first, second="hello"):
self.first = first
self.second = second
print(self.first+" "+self.second)
def main():
name_first="sree"
name_last="teja"
hello(name_first, name_last)
hello("test", "name")
if __name__ == '__main__':
main()
... | [
"sreeteja.muthyala@gmail.com"
] | sreeteja.muthyala@gmail.com |
34483c2ca07b40eaabcb779de868fcf8094cdac5 | ebf3e0fdb7ca2c19e04f893b49120cd4fdf10649 | /django/models_and_database/manage.py | b86d7b4ab80a51e710716e63299291a21b5f82f7 | [] | no_license | Sem31/Django-Basics | 19f8528f683c1bbc67a4d5d01988fa8d64d251c2 | 3219143d135a1d918e0994b61128375b01b35a5d | refs/heads/master | 2022-12-12T00:01:04.518559 | 2019-09-29T18:16:57 | 2019-09-29T18:16:57 | 190,061,340 | 0 | 0 | null | 2022-12-08T05:22:25 | 2019-06-03T18:37:25 | Python | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'models_and_database.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"31kamleshprajapat@gmail.com"
] | 31kamleshprajapat@gmail.com |
cbe8aff3d8002af75c4697557ef1744bc3204f6d | ab825ee0326e98d115b6dc02bbda02b302787d46 | /基礎編/パスの結合・連結/モジュール/パスの結合・連結.py | dacca7b719dece6f3e5051edcf80d20667fd444b | [] | no_license | holothuria/python_study | 295dd7c30a566b5a9688b9196e25bf6e065401a0 | 7e98090e64d646d23a4189e0efd68c2905b78d04 | refs/heads/master | 2020-03-23T20:04:38.900368 | 2019-03-05T12:47:53 | 2019-03-05T12:47:53 | 142,019,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py |
import os
PROJECT_DIR = 'C:\python-izm'
SETTINGS_FILE = 'settings.ini'
print(os.path.join(PROJECT_DIR, SETTINGS_FILE))
print(os.path.join(PROJECT_DIR, 'settings_dir', SETTINGS_FILE))
PROJECT_DIR = 'python-izm'
print(os.path.join('C:', PROJECT_DIR, 'settings_dir', SETTINGS_FILE))
# ↑「(アルファベット一文字):」のみだと、区切... | [
"umehara.daichi@withone.co.jp"
] | umehara.daichi@withone.co.jp |
afcc5884a35e634a0798f89d16ea927e21c63653 | 67c81e9ee30b807030cebd40e9bbb23c4f107a9e | /clipper_admin/auto_pilot.py | f8cac422aeb46c79ff24c1cfd1d19d50c87f77b3 | [
"Apache-2.0"
] | permissive | SimonZsx/clipper | d3989526f6bb1659bce43f4ea50ed9684341f568 | 457088be2ebe68c68b94d90389d1308e35b4c844 | refs/heads/develop | 2020-04-17T21:29:41.551500 | 2019-08-04T11:22:15 | 2019-08-04T11:22:15 | 166,952,203 | 2 | 4 | Apache-2.0 | 2019-07-27T03:31:12 | 2019-01-22T07:57:50 | Jupyter Notebook | UTF-8 | Python | false | false | 1,390 | py | from __future__ import print_function
from clipper_admin import ClipperConnection, DockerContainerManager
from clipper_admin.deployers import python as python_deployer
import json
import requests
from datetime import datetime
import time
import numpy as np
import signal
import sys
# Stop Clipper on Ctrl-C
def signal_h... | [
"yy0125@connect.hku.hk"
] | yy0125@connect.hku.hk |
3c81638c40a68d5156eab8b2b16bbb160c873e16 | f034a2a618f72156eed9fdf6715a73a43ef09c0a | /blog/admin.py | e25f30b1f8e1652645595401101da65ae40358da | [] | no_license | MEdaHad/compro_Django | 30101c04d2662c315076e1aa1ae2b2b496567715 | a86af85fbd9ccb1df81092959a451e4fa5a6e7cf | refs/heads/master | 2021-05-21T01:26:46.644606 | 2021-02-09T09:37:24 | 2021-02-09T09:37:24 | 256,106,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.contrib import admin
from .models import Post
class PostAdmin(admin.ModelAdmin):
list_display = ('title', 'image', 'slug', 'created_on')
list_filter = ("created_on",)
search_fields = ['title', 'created_on']
prepopulated_fields = {'slug': ('title',)}
admin.site.register(Post, PostAdmin) | [
"medahad16@gmail.com"
] | medahad16@gmail.com |
dc18ff32e73c9f01fe8020b3f326969004db6e0b | 1d182c457a977211b2d58f346c4f39c3d5000f8f | /test_case/test02.py | 4ba4a4d67df906db92e4047b071e8183f0e047aa | [] | no_license | fcc-haru/automation-test-demo | 94a04fbb2370982549d69a9821a72d8e50fc27db | 603963aa5c586929bdffea20b7f6e534eb1abc59 | refs/heads/master | 2020-04-07T15:36:27.949427 | 2018-11-22T07:45:03 | 2018-11-22T07:45:03 | 158,492,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py |
import unittest,time
from time import sleep
import sys
sys.path.append(r'C:\Users\min.zhang\Desktop\rms-autotest')
from common.browser import Browser
from utils.config import Config
from pageObject.login_page import LoginPage
from pageObject.position_list_page import PositionListPage
from pageObject.switch_page import... | [
"min.zhang@ad.sbibits.com"
] | min.zhang@ad.sbibits.com |
f9aa272b0392c2b3feb3859fb54d6ff207929ce8 | 40fe554a4ad97da41210b9de40d90cd16c7c84a1 | /crawler/utils/__init__.py | efb37fef958754fbb9e78bce41f886fe6738704f | [
"MIT"
] | permissive | Librechain/subcrawl | 96ee0a6b263a4afcfcedaf22311142f7b3c9e39b | 37a50118a4d2e1003fdcacca339ca45d59d0c673 | refs/heads/main | 2023-06-22T09:58:43.093237 | 2021-08-04T21:02:08 | 2021-08-04T21:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # © Copyright 2021 HP Development Company, L.P.
from utils.logger import SubCrawlLogger, SubCrawlLoggerLevels
from utils.banner import SubCrawlBanner
from utils.sqlite_model import *
from utils.setup_redpanda_topic import check_topic
from utils.ansi_colors import SubCrawlColors
from utils.helpers import SubCrawlHelpers | [
"9351883+stoerchl@users.noreply.github.com"
] | 9351883+stoerchl@users.noreply.github.com |
bd26cb019f8f5cc53f4b49f77aa28bb017625955 | 917c6f92cdc362b32ec52ac6b894a892d034b30d | /spellTest.py | 847599f9b71b19510116cfefdb2e489f11ddc470 | [] | no_license | ThapaMahesh/text-analysis | 31a0851ac78ebf92fc8ba36964900922c192fc89 | f9951fa7c48d3a19d59bf515ebc57a9f5c03be3d | refs/heads/master | 2020-04-28T23:12:29.682067 | 2019-03-25T15:55:33 | 2019-03-25T15:55:33 | 175,646,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,467 | py | import nltk
import os
from nltk.corpus import words, brown
from preprocess import PreProcess
import spacy
import json
import time
from spellchecker import SpellChecker
import multiprocessing
def suggestions(word):
spell = SpellChecker()
errorList = {}
if not word.isupper() and not any(char.isdigit() for ch... | [
"mahesh.gru03@gmail.com"
] | mahesh.gru03@gmail.com |
feaf6ed7e4d0ac877ba1c0bdf4a9b09fdc82a40a | 8f8fbc396cd173c572fc66e260dfd58087c92735 | /Codeforces/A. Straight «A».py | 381deb20f2fb0f060f4e3db2cf44b042053f00eb | [] | no_license | rezwanh001/python-programming-with-data-structures-and-algorithms | 399ea7ba7a00f8f0223b9a155ead9aa73a88f9d7 | caaee310d0d8af0cfb82694222632c69595aa6c4 | refs/heads/master | 2021-07-23T19:48:24.733218 | 2017-11-03T13:54:39 | 2017-11-03T13:54:39 | 108,736,843 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def Main():
n, k = map(int, input().split())
sm = 0
arr = list(map(int, input().split()))
sm = sum(arr)
N = n
cnt = 0
while (sm + N // 2) // N < k:
sm += k
N += 1
cnt += 1
print(cnt)
if __name__ == '__main__':
Main() | [
"rezwan@Rezwans-iMac.local"
] | rezwan@Rezwans-iMac.local |
4ae02d2e3e2f153377bafaacdc640e31ea590fa5 | d3ff882b34ce3db6b2968249a152be073aa7698c | /hw3.py | c3286efbc239ec61cc8afdc855430a98281f1359 | [] | no_license | 0xmonkey/EECS660 | 8fea69832e19ff30c08c195cfb1059b8c2a695b8 | c1436d1bb1de1565f5f80645e00597be64ac4496 | refs/heads/master | 2020-04-15T22:41:44.524668 | 2019-01-10T15:24:39 | 2019-01-10T15:24:39 | 165,082,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,682 | py | # imports {{{1
from __future__ import division
from collections import deque
from copy import deepcopy
from random import randrange
#---------------------------------------------------------------------------}}}1
class AdjList: # {{{1
# A class for the adjacency list representation of a graph.
# Undirecte... | [
"noreply@github.com"
] | noreply@github.com |
e1bd37107b121629b0f932118c3520d9abd9215d | f8dde4d48baa93492651621083b18b6f163f49ff | /torchocr/networks/architectures/RecModels.py | 1479e62314899e801fa39edd328cbbbc1e1023a1 | [] | no_license | csaimd/PytorchOCR | 8a0f985d61c8128ba45696c332f71ad8a9567d39 | 3ef5d8f624755cdcf4ea0677ee8251b4471a82a5 | refs/heads/master | 2022-07-30T01:14:51.440650 | 2020-05-18T06:44:31 | 2020-05-18T06:44:31 | 264,957,765 | 1 | 0 | null | 2020-05-18T14:04:39 | 2020-05-18T14:04:38 | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
# @Time : 2020/5/16 11:18
# @Author : zhoujun
from torch import nn
from torchocr.networks.backbones.RecMobileNetV3 import MobileNetV3
from torchocr.networks.heads.RecCTCHead import CTC
from torchocr.networks.necks.RecSequenceDecoder import SequenceDecoder
class CRNNMBV3(nn.Module):
de... | [
"744351893@qq.com"
] | 744351893@qq.com |
9abd00731a155fe58ee5d36fa1e58cf5541fdafa | 438b7f178947f7981ecf1656c97cf9622ef6400f | /src/custom_plot.py | 5d728faee0dad4eabd0dd2c8886052e9ddca8b1a | [
"MIT"
] | permissive | ManishSahu53/streamlit-covid-dashboard | a2f8093c01081492648bdf7e7a57d82435c13cca | c9824feee369c978c88211a65e89c9ded39d0fc4 | refs/heads/main | 2023-07-07T07:37:46.299598 | 2021-08-13T18:59:53 | 2021-08-13T18:59:53 | 365,351,378 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,197 | py | import itertools
import copy
import streamlit as st
import plotly
import plotly.graph_objects as go
import plotly.express as px
from plotly.subplots import make_subplots
import logging
import config
@st.cache(show_spinner=False)
def normalisation(data, population, rule):
if config.RULE_MAP[rule] == 'percentage'... | [
"manish.sahu@tokopedia.com"
] | manish.sahu@tokopedia.com |
f472bebf8fd8f21a87e1b9ff1e7bf3e60577b9b8 | 1c58aef845d5dc1398249d784450c3825a1a75a5 | /Dynamic_Programming/speed_and_spikes.py | a9cbecd5027d6f47406253b683546dacd977f77a | [] | no_license | AmitKulkarni23/Leet_HackerRank | b1c1d7e5915397fd971d777baf75bb0f6fd27c78 | 047b167311d2fb93a53998a20d73533a4cae2ab8 | refs/heads/master | 2021-06-01T20:24:40.659530 | 2020-02-06T22:10:14 | 2020-02-06T22:10:14 | 123,007,444 | 0 | 0 | null | 2018-07-12T18:42:40 | 2018-02-26T17:58:28 | Python | UTF-8 | Python | false | false | 2,069 | py | # Speed and spikes problem
# Source -> http://blog.refdash.com/dynamic-programming-tutorial-example/
def canStopOnRunway(init_speed, runway, init_position):
"""
Function that returns true if a person on a jumping ball with init
speed can stop on a runway
type: runway - List
type: init_speed - int
... | [
"amitrkulkarni232@gmail.com"
] | amitrkulkarni232@gmail.com |
180645eb15e4d6eb4f32a0930b991ad1b0f8d559 | 200d2833ffcbc5838361278f19ee1436b819de7f | /classes/film.py | 47f8ce0596ea75b4733b9ab191111b4096368b4b | [
"MIT"
] | permissive | rjkerrison/ranking | f7503f494c785a476a66c3e2ae93eccd54ea670d | efcb3939b377ab3eb407ad2cab49a95784e41e81 | refs/heads/main | 2023-01-20T15:33:03.153827 | 2021-05-22T09:20:31 | 2021-05-22T09:20:31 | 100,423,063 | 0 | 0 | MIT | 2023-01-07T10:39:28 | 2017-08-15T22:05:14 | Python | UTF-8 | Python | false | false | 1,039 | py | import json
class Film():
def __init__(self, film_dict):
self.name = film_dict['name']
self.director = film_dict['director']
self.release_date = film_dict['release_date']
def __getitem__(self, key):
return self.__dict__[key]
def __str__(self):
return '{0}, directed... | [
"rjk1994@gmail.com"
] | rjk1994@gmail.com |
9c4c6adaab2653c87efba4f9e32323052ec9309e | aa0270b351402e421631ebc8b51e528448302fab | /sdk/servicebus/azure-servicebus/tests/async_tests/test_sb_client_async.py | d42e1dfd218fd8cc898361b417cdf68817ff1533 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 29,537 | py | #--------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import lo... | [
"noreply@github.com"
] | noreply@github.com |
de418aff0bc52fcbf8908fd1a80dbc4dc19e5d14 | 6d0e4aa21cba6332a31820fc6002ed118e9175df | /registration/views.py | 86a6cdf60a1be76b80527052dc394f73ba4c1e61 | [] | no_license | ArbindChaudhary/MinorProject | 6c4e28017a5a0ac0033b2f0f34ecb35712e58de9 | 294450d9938b7ff7d7263561a54b5fc11404d541 | refs/heads/master | 2022-11-12T16:14:53.962486 | 2020-07-01T07:35:53 | 2020-07-01T07:35:53 | 276,307,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from django.shortcuts import render
import requests
import json
# Create your views here.
def register(request):
return render(request, "signup/signuppage.html")
def registerUser(request):
email = request.GET['emailid']
password = request.GET['pass']
name = request.GET['name']
print(email, passwo... | [
"mearbind9a@gmail.com"
] | mearbind9a@gmail.com |
57791e12aecfb2440e48964dc6d5a0c4e3c27d94 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6589.py | aad7ca56d310f77854a1ba7b3ae9903b4a5cb6d7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,741 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
ed938b119081443e2340ed8f35cf806752049149 | 472f164b68ca8e4afa1f74da27d70d124b3add74 | /workstudysite/wsgi.py | 48794f4b951954df5708b94c97d07219d27f81de | [] | no_license | AnosovaEkaterina/workstudysite | 1df93b9a7c8b4c325734f7b043394d3258093bf6 | 5c366be08167623f0eb17fddc346450f7cd59a49 | refs/heads/master | 2023-04-26T07:22:10.830074 | 2021-05-31T13:21:07 | 2021-05-31T13:21:07 | 372,506,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for workstudysite 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"fox9816@mail.ru"
] | fox9816@mail.ru |
9b3fca7294d02e626e30244cf99d1aa5bed08592 | 8e40fe17721bf0c075cd00492cc106c68b9755fd | /plot_graph.py | 9a46ada9c307a8cb1bc010b80d86fa07848f350a | [] | no_license | kingyau991319/IERG3280_Project | 73e4376e8c768f611d6950d9549d0ce511f2e24d | 302b63ca1b921f76491640e6003626e3566d1709 | refs/heads/master | 2022-07-17T00:25:00.458048 | 2020-05-18T02:51:03 | 2020-05-18T02:51:03 | 258,788,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | import fd_recommandation as fr
import json
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
if __name__ == "__main__":
# source of data
test = fr.fd_rd("friend_test.json")
output_data = []
person = []
with open(test.profile) as json_file:
data = json.load(json_file... | [
"noreply@github.com"
] | noreply@github.com |
f0002acb5507cad1be812360cbda655027b4a4ee | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03836/s741210941.py | 115e3d1b0023264fc7ddea4090c60e0bdb2df46d | [] | 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 | 234 | py | sx, sy, tx, ty = map(int, input().split())
X, Y = tx - sx, ty - sy
for d, n in zip("RULD", [X, Y, X, Y]):
print(d * n, end="")
for d, n in zip("DRULULDR", [1, X + 1, Y + 1, 1, 1, X + 1, Y + 1, 1]):
print(d * n, end="")
print() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0fa6b5aa0e4943aa0fdace2140aaa7ec22ffa8f8 | cc364792768f0ad5a8b6b36995c4382d759e992d | /TP 1.2 - Estudio economico ruleta/Codigo/estrategy_martingale.py | b29519aeaed90fca70b1aa5be3ced49ca5bbb603 | [] | no_license | FernandezNatalia/Simulacion | 09129adb6697ea3d7a2270608fc92965246d4996 | e169ad06f22687cbf7fc74340ce8f5d455f6c94a | refs/heads/master | 2023-06-10T19:10:02.403246 | 2020-07-30T17:12:42 | 2020-07-30T17:12:42 | 279,116,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import random
import numpy as np
import math
from matplotlib import pyplot as p
import scipy.stats as ss
from roullete import *
def estrategia_martingala(apuesta,capital,favs,nofavs, apuesta_inicial, pleno):
if(tirar_ruleta(pleno)):
capital = capital + apuesta * 2
apuesta = apuesta_inici... | [
"noreply@github.com"
] | noreply@github.com |
dadfa1f5672332a46407587dcf52adc862b5f08f | 0109dab6738e8bd615c1ae7c3d368aedb3efa157 | /2_dars.py | d3e6278dd2861b44b0b624704ec92c1f7792e008 | [] | no_license | Gulboy1990/Python_dars | fbab6917acf815b632cb76beb91a76d63f0f4242 | 083f8066bea63ed29d35841e47b5fb0f767ec42c | refs/heads/main | 2023-02-16T18:25:14.838575 | 2021-01-12T12:38:52 | 2021-01-12T12:38:52 | 328,965,661 | 0 | 0 | null | 2021-01-12T11:36:50 | 2021-01-12T11:29:47 | null | UTF-8 | Python | false | false | 430 | py |
# Ikkita qayiq turg'un suvda bir-biriga tomon 4 km/soat va
# 2km/soat tezlik bilan suzmoqda. Ular orasidagi masofa 24km bo'lsa:
# ular qancha vaqtdan keyin uchrashadi?
# qancha vaqtdan keyin ular orasidagi masofa 24km ni tashkil etadi?
v1 = 4 #km/soat
v2 = 2 #km/soat
s = 24 #km
v = v1 + v2
t = s / v
s = v... | [
"noreply@github.com"
] | noreply@github.com |
2df8b170c2e69db0ef937e0f736d0c7f99e10784 | 3d962145fe6f6b118e059af8728ec4d302593101 | /dbaas/dbaas/middleware.py | 2e93c087ba2aca960ed1b7a8b12a213aa456d2de | [
"BSD-3-Clause"
] | permissive | perry-contribs/database-as-a-service | f015008a29600ce128c15686c2ff00fa360600f9 | db8fbee3982bbc32abf32aa86f7387de01a243be | refs/heads/master | 2022-12-18T12:17:40.496898 | 2020-10-01T09:12:54 | 2020-10-01T09:12:54 | 300,216,997 | 0 | 0 | BSD-3-Clause | 2020-10-01T09:11:19 | 2020-10-01T09:11:18 | null | UTF-8 | Python | false | false | 1,390 | py | from datetime import datetime, timedelta
from threading import current_thread
from django.conf import settings
from django.contrib import auth
class AutoLogout:
def process_request(self, request):
if not request.user.is_authenticated():
return
if 'last_touch' in request.session:
... | [
"mauro_murari@hotmail.com"
] | mauro_murari@hotmail.com |
7325dcc029209e10b76f417754456c26de5f846e | 30099a17539959fd445a412c09cf5d5369971dc4 | /test/test.py | 2ed51d8a5db2198d4f3c88cd8b31e78cc63c9a7e | [] | no_license | Kmmanki/bit_seoul | 7e16d6d51c21c449dd5150a64da3233bc562dcb7 | 8d1e86a84e218c7d96d6c6f9b2b5cd69765ebb9c | refs/heads/main | 2023-04-08T02:16:10.372497 | 2021-04-15T01:35:09 | 2021-04-15T01:35:09 | 311,284,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import numpy as np
from tensorflow.keras.models import Sequential,Model
from tensorflow.keras.layers import Dense, LSTM, Concatenate, Input
from tensorflow.keras.callbacks import EarlyStopping
#1.data
x1 = np.array([[1,2,3],[2,3,4],[3,4,5],[4,5,6]
,[5,6,7],[6,7,8],[7,8,9,],[8,9,10]
,[9,10,11],[... | [
"aksrl25@gmail.com"
] | aksrl25@gmail.com |
d2d0f0e9540ff72210ef46f197d0fd14ea054dae | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03546/s313305577.py | d170aacbf34a2d5379c9166b8773528b739fcec0 | [] | 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,352 | py | # G[i][j]: 頂点v_iから頂点v_jへ到達するための辺コストの和
# クラスにしてしまったけど、これ遅いのでクラスじゃ無い方が良い
class Warshall_Floyd:
def __init__(self, V):
self.V = V
self.G = [[float('inf')] * self.V for i in range(self.V)]
def add_edge(self, fr, to, cost):
self.G[fr][to] = cost
def add_multi_edge(self, v1, v2, cost):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6a241958cca84a65345168b655a8f3f526a7869c | 9657a18cc272dfbf349932d422002803f820cd66 | /First/Library.py | 2a03347381b52dce15971b2a38c4b4d193254139 | [] | no_license | zhangxuetonghub/Data-structure-with-python | 94a7165f867662cd552acbd3da9e654c4fd7d1d0 | dc8059e9841c5380d2df43980970901eb241f27c | refs/heads/master | 2021-04-15T04:55:58.262320 | 2018-04-09T08:34:27 | 2018-04-09T08:34:27 | 126,753,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | class Book:
"""图书类"""
def __init__(self, title, author):
"""构造一本书"""
self._title = title
self._author = author
self._onread = ''
self._waitreaders = []
def setreader(self, readername):
"""设置正在借阅的读者名字"""
self._onread = readername
def gettitle(sel... | [
"noreply@github.com"
] | noreply@github.com |
9753c022074d3fc63489a4c28d1996ab1f5fda97 | 650a65942fc3a7000f498e1932d4229b3a224524 | /python/ray/autoscaler/_private/cli_logger.py | 3bdf73d288daa6f30efa997c40479bf582b31860 | [
"Apache-2.0",
"MIT"
] | permissive | verystrongjoe/ray | 52bd9ef627c736d325aee22148012183997d58b6 | 9f598230ebd9b84af8dce6a1b144d60f384e9266 | refs/heads/master | 2023-01-27T23:37:13.205094 | 2020-11-25T17:26:53 | 2020-11-25T17:26:53 | 288,704,026 | 0 | 0 | Apache-2.0 | 2020-08-19T10:39:06 | 2020-08-19T10:39:05 | null | UTF-8 | Python | false | false | 27,412 | py | """Logger implementing the Command Line Interface.
A replacement for the standard Python `logging` API
designed for implementing a better CLI UX for the cluster launcher.
Supports color, bold text, italics, underlines, etc.
(depending on TTY features)
as well as indentation and other structured output.
"""
import sy... | [
"noreply@github.com"
] | noreply@github.com |
97e56eae4424e7ca3970be5160a8ee21de9e839c | 6ebd30e2718e0c63935827794292c3e78ef18e84 | /src/bot/commands/cmd_ccc.py | f87e4207587a81408e5b974863f9be6ad54f8b75 | [] | no_license | Getaji/GetajiBot | ba36db4148daa47fa85beb8ca74e5da2aee9eb81 | 48e811e0dcfa6be99bd55a3210860019e9d9b913 | refs/heads/master | 2020-03-29T21:47:00.709875 | 2015-04-19T09:14:15 | 2015-04-19T09:14:15 | 34,165,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from bot.commands.commands import CommandExecutor
from bot.models import Command
class CommandCCC(CommandExecutor):
from random import shuffle
ccc_chars = shuffle(["カ", "ク", "ケ", "コ"])
ccc_format = "{0}ニ{1}リーム{2}ロッ{3}"
def get_names(self):
return ["ccc"]
def get_help(self):
retu... | [
"t.tanaka.onion@gmail.com"
] | t.tanaka.onion@gmail.com |
e970cb1bdca48152b77d4ceb0097a31a46d47227 | c7be50ef7b154f292ad1fd0f04e90b89f558af31 | /WSU_SEAL/data_cleaner.py | 1bcb344123fd57c18d6e945155b900cbd72a0429 | [
"MIT"
] | permissive | CMUSTRUDEL/toxicity-detector | df6d6f4b5030dd29aac0ddae50f3f5f0e23a9ffc | 53237db0afd088c488c8ef0fc5b88c8ac29cedbe | refs/heads/master | 2023-07-20T02:16:44.474420 | 2022-06-29T18:13:06 | 2022-06-29T18:13:06 | 238,368,176 | 13 | 12 | MIT | 2023-07-06T23:18:44 | 2020-02-05T04:32:31 | Python | UTF-8 | Python | false | false | 2,492 | py | import math
import pickle
import re
from wordfreq import word_frequency
from nltk import RegexpTokenizer
from collections import defaultdict
def log_odds(counts1,counts2):
prior = counts2
sigmasquared = defaultdict(float)
sigma = defaultdict(float)
delta = defaultdict(float)
for word in prior.ke... | [
"abosu@csebuet.org"
] | abosu@csebuet.org |
b18d5bf4e654575686c48ccc123b626e53e31e1c | 756074f44eadf924f1f1daf6cc3943c03dc8880b | /platform/Sh3rl0ck_H0lm3s_master_6_3_20/game/migrations/0005_clue_groupclue.py | a84016906c1dcf98fddb1c520e352ebb55a4e079 | [] | no_license | CiberGID/ciberscratch | 98140b9a4f41493421a9955526bc8c89898d2848 | 31095d0fe6bdd95c54bc9649dc25a04e7dc0f714 | refs/heads/master | 2022-12-02T21:18:41.354235 | 2020-08-25T16:09:45 | 2020-08-25T16:09:45 | 287,000,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | # Generated by Django 3.0.3 on 2020-03-05 15:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('game', '0004_remove_learnactivity_group'),
]
operations = [
migrations.CreateModel(
name='Clue'... | [
"LlanosTobarra@users.noreply.github.com"
] | LlanosTobarra@users.noreply.github.com |
544d5169292104d9cf0cb8ed3fc6fb1fe6a174a4 | cd8e980b9598040cea3a1a8473f5c8f44a28d760 | /toolkit/scripts/webapp/sublist3r.py | dcdcbfe2614342d53f8438cfbad97ed5cf8e0dfc | [] | no_license | whizsail/RedTeam_toolkit | c275f6d2f8878bf5b9eb24e3cf3ec1302929b33b | bb0eb8e5daee46715b0f5bcde8fe74ea41c00774 | refs/heads/master | 2023-08-15T11:45:07.498961 | 2021-10-11T12:26:51 | 2021-10-11T12:26:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,472 | py | #!/usr/bin/env python
# coding: utf-8
# Sublist3r v1.0
# By Ahmed Aboul-Ela - twitter.com/aboul3la
import argparse
import hashlib
import json
import multiprocessing
import os
import random
# modules in standard library
import re
import socket
import sys
import threading
import time
from collections import Counter
im... | [
"signor.rayan@gmail.com"
] | signor.rayan@gmail.com |
a3a897f1f2504d5873c33059d82aa822abf96ef2 | c0c2cdfbc7e20969a1b56291c17404d72917e4f6 | /EncryptedTraining/main.py | 4956586d04ff00904ca1ec6bc9e447d48476f052 | [] | no_license | Hither1/FHE-FL | 4bfea82621a406b4cbc2a6a267cd92fcac5fb583 | 04af1bfe0cea169b692e9ae56f682e2e76ecb02a | refs/heads/master | 2023-02-04T14:25:58.679117 | 2020-12-12T09:37:46 | 2020-12-12T09:37:46 | 320,621,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # This is a sample Python script.
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print('PyCharm')
# See PyCharm help at h... | [
"suhither@gmail.com"
] | suhither@gmail.com |
b7a3098d8ad8cb4650c16ad94782f92f74766612 | bd622cb8135ea1cfcba6b216fff89d6da6eb9c25 | /administration/yealink/autoprovisioning/scripts/change-number.py | 2618613d021a45a8df9b544faf1d76870e0957cb | [] | no_license | fernarium/Notes | da6a92ae0d71838549871a688ff37b6d29d7a1fa | 4edc513cf94b62bbb004eefbe89f2f3cb875a792 | refs/heads/master | 2023-01-05T01:38:48.465734 | 2020-11-06T21:57:16 | 2020-11-06T21:57:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,997 | py | #! /usr/bin/env python3
import csv
import json
import re
import subprocess
import sys
import lm_auth
import argparse
import paramiko
import logging
import time
from ldap3 import SUBTREE, MODIFY_REPLACE
_user_objects = None
class Extension:
def __init__(self, name, old_number):
self.name = name
... | [
"petewindows2011@yandex.ru"
] | petewindows2011@yandex.ru |
c2e93b3c36a8107ad3846ca721114a10d9e8b761 | 0ebf7d3884953c8570bad6ca1e9e981f498a06b9 | /candidate_mining/test/test.py | d667a38616faf1a7816c741add6e33e83fd777b9 | [
"MIT"
] | permissive | xurenlu/CustomerServiceAI | dd0b7d948fd821d284a7be07326d24d00625b481 | 9c67c77f470383db19833463f6476dd27a0c76f7 | refs/heads/master | 2022-03-13T06:31:54.474403 | 2019-06-25T07:31:59 | 2019-06-25T07:31:59 | 193,917,406 | 0 | 0 | MIT | 2022-02-17T15:45:26 | 2019-06-26T14:09:25 | Jupyter Notebook | UTF-8 | Python | false | false | 241 | py | from test_pb2 import *
node = ChatNode()
keys = PathKeys()
keys.keys.append('是')
keys.keys.append('对')
node.keys['是'].CopyFrom(keys)
node.keys['不是'].keys.append('不是')
node.children['是'].CopyFrom()
print('hello world!') | [
"higgs@weidong.local"
] | higgs@weidong.local |
0f8e38c0a2f1ee16f600bf711b04253540799ebb | c6292c1dd68f0c4dd3389628de0d2b786fa0ee64 | /0x11-python-network_1/5-hbtn_header.py | b8d01504078e77816dad1f5eb961ca606bc0bf7a | [] | no_license | mj31508/holbertonschool-higher_level_programming2 | 835be695b568cd189c1448c54218a0201830005f | 3fa47001c041cd0c74f88c3a19677e126bee37b4 | refs/heads/master | 2021-07-06T22:31:05.040354 | 2017-09-29T05:28:45 | 2017-09-29T05:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/python3
# Taking in a URL and sends a request
import requests
import sys
if __name__ == "__main__":
url_arg = sys.argv[1]
req_arg = requests.get(url_arg)
try:
store = req_arg.headers["X-Request-Id"]
print(store)
except:
pass
| [
"mj31508@gmail.com"
] | mj31508@gmail.com |
66721974027c3e9f2a41ac5c3a4f149ba6e7b781 | 7b1acba7670d6264c0fc3d2280576d7360e6d3f1 | /Lesson04.py | 77f1540986eec776c9376c5ceb2833addec68418 | [] | no_license | DandyCV/LITS | c649a498590995fbb51d3293c66e8c599132e62d | f873e8cb3941e4ddf3338e0ad5a7fe9d78e9c72b | refs/heads/master | 2020-05-18T00:35:36.593367 | 2019-08-27T20:05:39 | 2019-08-27T20:05:39 | 184,065,480 | 0 | 0 | null | 2019-04-29T12:38:02 | 2019-04-29T12:17:55 | null | UTF-8 | Python | false | false | 838 | py | def mul2(func):
def inner(*arg):
r = func(*arg)
return 2*r
return inner
@mul2
def f(a, b): # mul2(f)(3,3)
return a + b
print(f(3, 3))
def mul(a):
def inner(b):
return a + b
return inner
mul2 = mul(2)
print(mul2(2))
def counter(f):
count = 0
def inner(*arg, **kw... | [
"dandycvc@gmail.com"
] | dandycvc@gmail.com |
ff0bc8e563418f52c188920b6d7c290630091b55 | 4742f8b06c0e2d537cd76d0b05664be09f2a08fb | /Python Scripts/_Mono_Framework/MonoButtonElement.py | de9bbe6e71029607e51f7408b3c822e234ac1ebe | [] | no_license | robjac/m4m7 | bf6414bd0dd3ebfd7da72adecb761a85bfa79ce6 | 0dc6043594effd7375e7fb893321109f85288b46 | refs/heads/master | 2021-01-17T23:35:34.276099 | 2015-12-06T08:17:06 | 2015-12-06T08:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,989 | py | # by amounra 0413 : http://www.aumhaa.com
import Live
from _Framework.ButtonElement import ButtonElement, ON_VALUE, OFF_VALUE
from _Framework.Skin import Skin, SkinColorMissingError
from MonoBridgeElement import MonoBridgeProxy
from Debug import *
MIDI_NOTE_TYPE = 0
MIDI_CC_TYPE = 1
MIDI_PB_TYPE = 2
MIDI... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
456ce05684106390c0e4b30e8c1333d3bfad0d31 | 01dc8240b3c5d7af6232535f28a3cd4290796d09 | /accounts/migrations/0004_remove_user_last_login.py | 2ee449bb19b11a9ce9c0d173b397b430185ac2c9 | [] | no_license | jburke1203/superlists | 68f1713372ab655f4fd6460f84acd20f2ecff106 | 7f12c225d0d0a3d172e57425b0787ff489c17cec | refs/heads/master | 2021-01-16T23:19:17.256007 | 2016-07-31T15:49:36 | 2016-07-31T15:49:36 | 64,208,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_user_last_login'),
]
operations = [
migrations.RemoveField(
model_name='user',
name... | [
"james.burke1203@gmail.com"
] | james.burke1203@gmail.com |
ec8f1f0244c97e09ca218ea9d71d4a57ad698723 | 34178492c2e1fb21088f84f46deaef3bd0d1d910 | /EXP/solver.py | 11bb83794bc36ae9c0b760d64bd07a061628dc6d | [] | no_license | gururajraop/StarGANMask | 090f8f9716dc8d530d1263acaa340d91a8a17099 | f72f5558eb09397db78b26596f2f00af3f10cf42 | refs/heads/master | 2021-10-25T04:48:22.204771 | 2019-04-01T09:17:23 | 2019-04-01T09:17:23 | 176,917,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,659 | py | from model import Generator
from model import Discriminator
from torch.autograd import Variable
from torchvision.utils import save_image
import torch
import torch.nn.functional as F
import numpy as np
import os
import time
import datetime
class Solver(object):
"""Solver for training and testing StarGAN."""
d... | [
"gururajraop@gmail.com"
] | gururajraop@gmail.com |
c6964aa92927f457cc94f4426cf7e343417f259a | c0abb8cfa2e39ff6dce4a00027029f711c0d7944 | /main.py | b025edc70b37363bf2c9baf3698f03157c82a810 | [
"MIT"
] | permissive | Glebuska/dns-resolver | ba8d95f26f525dd66704ac835136eb91c5c513db | 16ee4b1880764957a0e99ac6cb6fa6b2e6de26b4 | refs/heads/main | 2023-05-28T18:10:27.018415 | 2021-06-01T20:27:37 | 2021-06-01T20:27:37 | 372,847,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,991 | py | import argparse
from time import sleep
import dns.message
import dns.name
import dns.query
import dns.rdata
import dns.rdataclass
import dns.rdatatype
from dnslib import RR, QTYPE, A, AAAA
from dnslib.server import DNSServer, BaseResolver, DNSLogger
FORMATS = [("A", "{name} has address {address}"),
("AAAA... | [
"gleb.mirzazyanov@gmail.com"
] | gleb.mirzazyanov@gmail.com |
61ae0245162c53ffe1c3275cc52abbe3d4387f8f | a61bf859ceeb1ba98de3863225e07b29e1d7ce8a | /misc/debukatse.py | 06b04c9719887ddd09a616a60c127a431fba5cce | [
"MIT"
] | permissive | thonny/thonny | 3974b1860703e8450b837863682117f525a886c6 | 8fc9f5c7cbbe1d1c82aa5503ec4b684e28aa608c | refs/heads/master | 2023-08-31T03:04:34.685140 | 2023-08-24T11:38:36 | 2023-08-24T11:38:36 | 163,728,962 | 2,788 | 1,048 | MIT | 2023-08-10T18:59:37 | 2019-01-01T10:29:50 | Python | UTF-8 | Python | false | false | 129 | py | def kala(x, y, z):
print("tere", x)
for x in range(3):
print(x)
x = 32 / 0
kala(x, x, 1)
kala(4, 2, 1)
print("valma")
| [
"aivar.annamaa@cyber.ee"
] | aivar.annamaa@cyber.ee |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.