blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fb572a3e446aa09655b1e5770b4fb5b166afd177 | 9044b1cb3c9a85094cdf02aae1c788e6d39252df | /day16/run.py | da22f278d816038bc490d2355c33cc109571b8f1 | [
"MIT"
] | permissive | 1923851861/Python_Base | 5aea29dabf9531b5f5e945989f2f567042b0bff3 | c9d8224cf41c58235fc67783d73a48f82fee61a1 | refs/heads/master | 2020-03-23T12:11:38.704227 | 2018-08-10T11:01:21 | 2018-08-10T11:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | # 当前的执行文件
# x=1
# y=2
# 首次导入模块发生了3件事:
#1、以模块为准创造一个模块的名称空间
#2、执行模块对应的文件,将执行过程中产生的名字都丢到模块的名称空间
#3、在当前执行文件中拿到一个模块名
# import spam
# 之后的重复导入会直接引用之前创造好的结果,不会重复执行模块的文件
# import spam #spam=spam=模块名称空间的内存地址
# spam.名字
# print(x)
# spam.x
# print(spam.money)
# print(spam.read1)
# print(spam.read2)
# print(spam.change)
# money=... | [
"1923851861@qq.com"
] | 1923851861@qq.com |
96a38c411c7fb0314bce1ce412e3ee359440beb4 | a3ab76ec61f01e6bfea0925806bba57ae37ca505 | /blog/migrations/0013_auto_20200501_2232.py | 3b69304dc1c57ddb1a59105552ede3c0d1414800 | [] | no_license | kevinzhao07/django_posts | 343c92223046ffafa7673ceee053b8623c9fbca7 | baf48403bc9f6ff36d5f70a2c7359d4658747134 | refs/heads/master | 2022-12-10T00:08:47.789394 | 2020-08-24T16:35:14 | 2020-08-24T16:35:14 | 242,276,050 | 1 | 0 | null | 2022-12-08T04:04:44 | 2020-02-22T03:57:40 | HTML | UTF-8 | Python | false | false | 983 | py | # Generated by Django 2.2.12 on 2020-05-02 02:32
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0012_auto_20200428_1719'),
]
operations = [
migrations.AlterField(
model_name='comment',
... | [
"kevinmz@umich.edu"
] | kevinmz@umich.edu |
cb2f886ed26850bfebfaf4e3a00a9e730652e300 | cc086a96967761f520c24ce3b22bacecb673cbf2 | /chec_operator/threads/observation.py | 877c8afa6dcb8e097cf23a53a3504277d6791849 | [] | no_license | watsonjj/chec_operator | 39524405b3c6a55fe7fa3e8353da5f456f76a27d | c537a1737a53fe996652c793c09f5a33cd03e208 | refs/heads/master | 2020-04-18T02:27:52.730614 | 2019-01-23T10:41:13 | 2019-01-23T10:41:13 | 167,163,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | import threading
from time import sleep, ctime, time
from datetime import datetime
from chec_operator.utils.enums import CameraState
class ObservingThread(threading.Thread):
def __init__(self, parent_handler, timedelta, triggerdelta):
print("Creating observation thread")
self.parent_handler = par... | [
"jason.jw@live.co.uk"
] | jason.jw@live.co.uk |
57cc2f13b93c6dddb86a3a96dc0caa25754781c5 | 0c13fd0ae32c77a01a2527190d81e303d48d6fc9 | /src/snk_quiver3.0.py | ec8e47311a46d966e45d66b72ede7c3a58a9a8f3 | [] | no_license | migrau/hinosima | aa040a14381bf645158f57b5dfe738b5d47469a8 | 45a83c7c90bc8e20497c6b59179cc4fa4f21a879 | refs/heads/master | 2021-01-23T02:59:26.276261 | 2017-03-28T01:30:54 | 2017-03-28T01:30:54 | 86,038,967 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,800 | py | ##########################################################################################################
# snk.quiver3.0.py #
# #... | [
"migrau@uji.es"
] | migrau@uji.es |
34b5e8044cc30321ccc9752daf6dcba32df3f719 | 00a6541d639d073e819f2c080e6c65610eff1982 | /coordinates.py | beab54eac858b13725db676f5022b7b6e5a8878f | [] | no_license | Wajahat0/Annotation-Transfer-Across-the-Microscope | 16fd0eb339363505449297981c8b4817e93dc594 | 911a79b3307b890bb7ec7a2822d91f4f6fa9a6d6 | refs/heads/main | 2023-07-13T12:45:14.350687 | 2021-08-27T05:15:39 | 2021-08-27T05:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py |
import sys
import cv2
import argparse
import numpy as np
import pandas as pd
from yattag import Doc, indent
from homography_cal import homography_cal
def tranfer_annoation(data_path,t_data_path,slide_num,r_res,t_res,surf):
load_csv_path = data_path +'/'+ slide_num+'/'+ r_res+ '/' +r_res + '_labels.csv'
save_c... | [
"noreply@github.com"
] | Wajahat0.noreply@github.com |
b93b498f4935633bf8a5990243e2de8805264276 | ad48d4a4107dd02eb8b155cfcfcae86e40bf5001 | /venv/Scripts/easy_install-3.6-script.py | 6a207e087202fdcfc3044244e7cf026f5af2913f | [] | no_license | Chloe1997/VGGnet_classification | 2515f69d7c0ccf09e7161e367cf8600988c880e4 | e01a1ac42aec74cb914a17a776db9ec28f641b96 | refs/heads/master | 2020-06-30T16:03:44.485820 | 2019-08-07T14:24:52 | 2019-08-07T14:24:52 | 200,879,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | #!C:\Users\student1\Desktop\VGG_classification\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"dellawen1997@gmail.com"
] | dellawen1997@gmail.com |
911880abd59978863d7a68579ace6207eaea3235 | 0b6f3f46b61e23792bf3cebe068c987a517f88c6 | /chapter_09/动手试一试/9-11 导入Admin类/admin.py | d6f661f4c0b34faa87b1364d8aa7bf6c66eb2ad2 | [] | no_license | honkly/pcc | 0884522c348706a9bfde401df03084f256bf4f04 | 0789b41b0558e847e35eccbd8ecd096a8a1a34e3 | refs/heads/master | 2020-04-29T18:25:48.355921 | 2019-07-25T13:12:57 | 2019-07-25T13:12:57 | 176,323,830 | 0 | 0 | null | 2019-03-18T16:13:13 | 2019-03-18T16:13:12 | null | UTF-8 | Python | false | false | 1,006 | py | class User():
"""docstring for User"""
def __init__(self, first_name, last_name):
self.first_name = first_name
self.last_name = last_name
self.login_attempts = 0
def describe_user(self):
print(self.first_name.title() + ' ' + self.last_name.title())
def greet_user(self):... | [
"honkly@163.com"
] | honkly@163.com |
f3d5dcd2e5f655280d986d7d5e685dfb3b524cc2 | 06604399c457d6ec05fa5d5ae458632e2606ec98 | /torch/utils/_sympy/functions.py | 3c78e1bebb50e8e34e979cab147e57e371f418bb | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yncxcw/pytorch | 6f262f7613caef4c2ce18c85662db9adc6a2a81a | a3b72ee354031004edd9b951d0efcdd4508fd578 | refs/heads/master | 2023-07-20T21:38:00.718093 | 2023-07-13T03:54:17 | 2023-07-13T03:54:17 | 234,432,318 | 0 | 0 | NOASSERTION | 2020-01-16T23:34:42 | 2020-01-16T23:34:41 | null | UTF-8 | Python | false | false | 5,787 | py | import sympy
from sympy.core.logic import fuzzy_and, fuzzy_or
__all__ = ["FloorDiv", "ModularIndexing", "CleanDiv", "CeilDiv", "LShift", "RShift"]
class FloorDiv(sympy.Function):
"""
We maintain this so that:
1. We can use divisibility guards to simplify FloorDiv(a, b) to a / b.
2. Printing out the e... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
8b59ab52b831746af65b2e33c02a38521a75fd82 | 40c86e0b1cda09b4beba5a74099e35578fce0dd5 | /ascii.py | 50a1e4e3711773a9a73763f4367e00da7f81ff26 | [] | no_license | nikitiwari/Learning_Python | ec9b479e6cd47423d6754aa37eb1032444cd186d | 6a76dc9fbc0934d0d655e296a7777a09bcc26afb | refs/heads/master | 2020-04-05T13:05:19.686745 | 2017-07-15T19:17:26 | 2017-07-15T19:17:26 | 95,075,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | c = raw_input("Enter a character:");
try :
print ord(c)
except :
print "Only characters allowed"
| [
"tiwarinikita96@gmail.com"
] | tiwarinikita96@gmail.com |
0e6201ff8130bc459133a9f810db8ce61eaaf2b8 | 502a801b6ac886b25e915bc70d97f258acd9db56 | /src/data/srdata.py | e23ed16185415db9df0f0005e85ef56752bedfcf | [] | no_license | Dearbreeze/SPDNet | 31e79bff29678572372c0a99ac343932759f0291 | ff805b8a008e241ed7f8bb80242cbf2abca94f10 | refs/heads/main | 2023-08-20T10:11:14.386825 | 2021-10-13T10:45:11 | 2021-10-13T10:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,334 | py | import os
import glob
from data import common
import pickle
import numpy as np
import imageio
import torch
import torch.utils.data as data
class SRData(data.Dataset):
def __init__(self, args, name='', train=True, benchmark=False):
self.args = args
self.name = name
self.train = train
... | [
"noreply@github.com"
] | Dearbreeze.noreply@github.com |
af2729e0f3c3c35ad20460334df67ddb78436aec | 6635686859b272d291d0ba3520ccd03cdc80a349 | /DT/threadingtext.py | 5b21c27fdb9a81a7ecb35c0e0d9c9ebe52c19d32 | [] | no_license | yangrencong/web_spiders | ac15c491f60e489000e5312c999f02e6c4fdafdf | 69fdc6eeb5ad19283690c056064f8853e0256445 | refs/heads/master | 2020-03-28T18:45:50.800667 | 2018-10-26T02:50:16 | 2018-10-26T02:50:16 | 148,908,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #!/usr/bin/env python
# -*- coding=utf8 -*-
"""
# Author: Mr.yang
# Created Time : 2018/10/10 星期三 12:26:07
# File Name: threadingtext.py
# Description:
# Editortool: vim8.0
"""
import threading
import time
class myThread(threading.Thread):
def __init__(self ,name ,delay):
threading.Thread.__init__(self)
... | [
"1452581359@qq.com"
] | 1452581359@qq.com |
3245d99ff8b76871f71f66e0d14bf4ef52546a21 | 1e06402f2196da5270060d2dbe8c1aafafd3b387 | /venv/bin/chardetect | 75070d1851ae937bbe1b728865f55c1df3944359 | [] | no_license | billyggroves/myBlog | c26be905861d4a9f3b32ba8fce24103866311e7d | adc759d4a1a5389ab64cbfeb400898cad086c840 | refs/heads/master | 2022-12-15T10:40:20.626606 | 2019-02-26T01:11:20 | 2019-02-26T01:11:20 | 121,530,285 | 0 | 0 | null | 2022-12-08T00:55:40 | 2018-02-14T16:01:44 | Python | UTF-8 | Python | false | false | 257 | #!/Users/newuser/Desktop/myBlog/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"billyggroves@gmail.com"
] | billyggroves@gmail.com | |
e8012164e3c46fc9c9870c0102c227d7f0d59508 | f09b27136435cb298a55514adc5b1ccbe8badb28 | /lab 13/zad 1.py | 0ebf9023e993c963ae08d5d854e8ba1bdc8c1439 | [] | no_license | Roman43407/Sem-2- | 890db6446254266d9866992bb804af906bdd87df | de3a3eb9de1477cca29fa118264729cbe90f93ff | refs/heads/main | 2023-04-26T19:58:39.122440 | 2021-05-31T12:10:50 | 2021-05-31T12:10:50 | 372,455,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | class Car:
def __init__(self, brand, age, color, capacity, fuelType):
self.brand = brand
self.age = age
self.color = color
self.capacity = capacity
self.fuelType = fuelType
def Refueling(self):
print("Zatankowano: {} {} litrów ".format(self.fuelType, self.capacit... | [
"ya.ignis@gmail.com"
] | ya.ignis@gmail.com |
e52bdadb66f4c2ef03e7ec524da43f8558e1ba9d | df7fbefd727c081fb5d2d0e93356042f20b908fd | /index.py | 627ee82c34fddaf2605fe13cd24a7b6a08516d29 | [] | no_license | Germey/SDUCourse | 1a1c189054dea2082bcacc58f5900434c58689a5 | bea33811eca988d1eb295ada460d677a50187230 | refs/heads/master | 2020-04-06T06:53:51.280673 | 2016-09-13T07:48:42 | 2016-09-13T07:48:42 | 62,208,347 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # -*- coding: utf-8 -*-
from lib.main import main
if __name__ == '__main__':
main() | [
"1016903103@qq.com"
] | 1016903103@qq.com |
b531a49ad9aebf02cb211cb8fd9267c0546770c9 | 8cfeb8b488987da3d955cdbded7e00fb4a63345e | /ula/views.py | 0225cc55dfd7da7a66938b4ac1490eafa887816b | [] | no_license | Vedaad-Shakib/oola | 77be7798b258898dde72b8efbe4dc4d35203af3e | 003b865a39e71d1a76c592cfe47bcc4fccc3305f | refs/heads/master | 2021-03-12T19:38:12.213770 | 2014-09-17T04:16:48 | 2014-09-17T04:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,730 | py | ###############################################################################
## Copyright (c) 2013-2014 Bogt, Inc.
## All rights reserved.
## This source code is confidential and may not be disclosed.
###############################################################################
###################################... | [
"vedaad799@gmail.com"
] | vedaad799@gmail.com |
b512faa24699a6fe7dd43a3e59774c974454b97b | 2f79b7d886eb05ccdab5cad10fc85540e72384f2 | /HW2/Q2/Q2(b).py | 1cd2fe5200d96a8bc4179440dcb5c4a119bb6ac5 | [] | no_license | nrgdoublex/DataMiningHomework | 0276f537f2a5c6c2e9458aa56d782f358e74f84f | add7fd8d785e3f5d80724b7c7a1bb651d3705ea3 | refs/heads/master | 2021-01-01T20:50:09.368008 | 2017-08-01T01:06:11 | 2017-08-01T01:06:11 | 98,943,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import numpy as np
import scipy.stats as stats
import pandas as pd
from Stat_function import t_test
file_name = 'Q2.csv'
df = pd.read_csv(file_name
,skiprows = 1
,encoding = 'Latin-1'
,na_values = 'No Data')
pd.set_option('display.expand_frame_repr', False)
df['number... | [
"nrgdoublex@gmail.com"
] | nrgdoublex@gmail.com |
a8b8d378ab3f6f1387d52577aa1bf5431858cd0c | c41471781f65d38d9010450b6c9e17f2346a551b | /openstack-dashboard/templates/icehouse/local_settings.py | f45295ea2a3762091554852d5a4f73c472022cc5 | [
"Apache-2.0"
] | permissive | juanarturovargas/openstack-juju | b6854e2feea615404c053e9c754e4d7997c8a6a5 | 21b1aef8aa51c3c32cb1efd1b8cad7865c4d40a0 | refs/heads/master | 2022-12-13T15:31:53.383963 | 2017-05-05T19:18:55 | 2017-05-05T19:18:55 | 90,163,436 | 0 | 1 | NOASSERTION | 2022-11-20T08:41:15 | 2017-05-03T15:17:34 | Python | UTF-8 | Python | false | false | 17,009 | py | import os
from django.utils.translation import ugettext_lazy as _
{% if use_syslog %}
from logging.handlers import SysLogHandler
{% endif %}
from openstack_dashboard import exceptions
DEBUG = {{ debug }}
TEMPLATE_DEBUG = DEBUG
# Required for Django 1.5.
# If horizon is running in production (DEBUG is False), set th... | [
"kataguruma1"
] | kataguruma1 |
4bfbe0f48777b895dcde27aa0a5fff0fa22a8110 | 20f8e01f6c574e2cc0af8a9fffadc54e5ae938cd | /util/io.py | 8c77b6067c60d3f0872960b48d75f062ee326cb2 | [
"MIT"
] | permissive | samjbaugh/CoopNets | 3c5334b5e0b2071bf0423318306ae8d2abaa47eb | 0e3ef7060cbc37c6b4e32b93d7b4613f9ace42fe | refs/heads/master | 2020-03-10T03:41:43.358144 | 2018-03-27T21:37:41 | 2018-03-27T21:37:41 | 129,171,842 | 0 | 0 | MIT | 2018-04-12T00:51:12 | 2018-04-12T00:51:11 | null | UTF-8 | Python | false | false | 733 | py | import sys
import logging
import tensorflow as tf
def init_log(path):
log = logging.getLogger()
log.setLevel(logging.INFO)
formatter_cs = logging.Formatter('%(message)s')
cs = logging.StreamHandler(sys.stdout)
cs.setLevel(logging.INFO)
cs.setFormatter(formatter_cs)
log.addHandler(cs)
... | [
"erik.nijkamp@gmail.com"
] | erik.nijkamp@gmail.com |
65dd6e05846806bcfc8c999115ef687d45c97af7 | 3160c1b057319c66e3fe30af52ddabc5555b347a | /venv/Scripts/rst2pseudoxml.py | 67178034fb66411b820e6bc1291d00d95015ebc9 | [] | no_license | bopopescu/TLDR_AI | acfb35f0a0677e03f48b03805ff44fd78303f126 | d468e599fc13828f6e754e2d1d99b6a3e3c1be21 | refs/heads/master | 2022-11-25T17:40:08.513723 | 2019-04-09T06:52:06 | 2019-04-09T06:52:06 | 282,555,526 | 0 | 0 | null | 2020-07-26T01:41:57 | 2020-07-26T01:41:56 | null | UTF-8 | Python | false | false | 647 | py | #!C:\Users\aaron\PycharmProjects\TLDR_AI\venv\Scripts\python.exe
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try:
... | [
"aaron157@bellsouth.net"
] | aaron157@bellsouth.net |
7e323ca57a44b81a67fc770dd4181fb866231c6b | 0c7ffe86e5060cf7cfbc6dfc3ec5eb4367c20962 | /TMB_files/learn-to-program-the-fundamentals/Week 6/a3.py | f1a1dbdaa6b4b419ea18f8d629ddac3f99395824 | [] | no_license | BreslauerTodd/telework_data_and_code | 049e2d4fb1a4479078f6edf14434034824dc6f40 | 38c39fbab481b48b6e2a15f2a130329725d2e07e | refs/heads/master | 2022-11-20T12:21:44.952847 | 2020-07-20T18:20:21 | 2020-07-20T18:20:21 | 279,941,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,920 | py | def is_valid_word(wordlist, word):
""" (list of str, str) -> bool
Return True if and only if word is an element of wordlist.
>>> is_valid_word(['ANT', 'BOX', 'SOB', 'TO'], 'TO')
True
"""
if word in wordlist:
inList = True
else:
inList = False
return inList
def ma... | [
"noreply@github.com"
] | BreslauerTodd.noreply@github.com |
7fc024f18bdc5289a4cad605dbc8a2f6fa792e74 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/eager/python/tfe.py | c441ab87be7e0aebadefe92023f89bfd67ff471e | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:9b7bd976495c4645582fde2d7fcf488a311648b43813cff249462fccfa19224a
size 5928
| [
"github@cuba12345"
] | github@cuba12345 |
4353deb50a51a18cfc392b8d5fada6467c849fe1 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /worklink_write_3/domain_associate.py | 622afc66bafaf4062a1575d617c77e954bc7ee2e | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/worklink/associate-domain.html
if __name__ == ... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
9adc81d26ca9708c7ee07b95c8795d117a6c05e9 | 987a82368d3a15b618ff999f28dc16b89e50f675 | /plaso/parsers/winreg_plugins/shutdown.py | f14cb1abcb7795e44c6e63f3728e75b94987c6ff | [
"Apache-2.0"
] | permissive | arunthirukkonda/plaso | 185b30ab4ec90fcc2d280b3c89c521c9eef7b7ab | 846fc2fce715e1f78b11f375f6fe4e11b5c284ba | refs/heads/master | 2021-08-30T15:21:12.267584 | 2017-12-18T12:33:08 | 2017-12-18T12:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,893 | py | # -*- coding: utf-8 -*-
"""Windows Registry plugin for parsing the last shutdown time of a system."""
from __future__ import unicode_literals
import construct
from dfdatetime import filetime as dfdatetime_filetime
from dfdatetime import semantic_time as dfdatetime_semantic_time
from plaso.containers import events
f... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
125483cf11de2cfc713c9a895380f931f1ec938b | f9b45fd409384de3c69d68c62c0f21d9196e6927 | /python_tools/FelixUtilities.py | da0b1769ef7a4288b8afdbea8bf0248b0f87b580 | [
"MIT"
] | permissive | ultimatezen/felix | 04799eb666b54e2eeea961dc983cf3721f5182de | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | refs/heads/master | 2020-04-08T14:21:02.872525 | 2016-02-16T01:18:11 | 2016-02-16T01:18:11 | 159,433,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py | # coding: UTF8
"""
COM sever for utilities for Felix
"""
import os
import shutil
from datetime import date
import subprocess
# COM stuff
import win32com.server.register
import loc
from loc import get_local_app_data_folder, module_path
from loc import get_prefs, set_prefs
import utils
from utils impo... | [
"software@ginstrom.com"
] | software@ginstrom.com |
d5aa6095ffe361c6c24f7e7ace9e878dcd34a356 | 8a452b71e3942d762fc2e86e49e72eac951b7eba | /leetcode/editor/en/[1065]Index Pairs of a String.py | 9596550ca2c48f4cb14e3df379385e19b37fe19c | [] | no_license | tainenko/Leetcode2019 | 7bea3a6545f97c678a176b93d6622f1f87e0f0df | 8595b04cf5a024c2cd8a97f750d890a818568401 | refs/heads/master | 2023-08-02T18:10:59.542292 | 2023-08-02T17:25:49 | 2023-08-02T17:25:49 | 178,761,023 | 5 | 0 | null | 2019-08-27T10:59:12 | 2019-04-01T01:04:21 | JavaScript | UTF-8 | Python | false | false | 1,478 | py | # Given a string text and an array of strings words, return an array of all
# index pairs [i, j] so that the substring text[i...j] is in words.
#
# Return the pairs [i, j] in sorted order (i.e., sort them by their first
# coordinate, and in case of ties sort them by their second coordinate).
#
#
# Example 1: ... | [
"31752048+tainenko@users.noreply.github.com"
] | 31752048+tainenko@users.noreply.github.com |
717fdc2d540f242841bacdd7c2381591a288cc15 | 464f40c696af1028aee439c31938137f43f482f1 | /api/serializers.py | 9fda532152aa3dd7233279f1ccf9660a67302a36 | [] | no_license | MarkWengSTR/drf_todo_practice | d0062bbbc56fd9833a24b9439cd2e9bcb31b4a80 | 431c3173178683f50e5dd9df6eab038dc35452c6 | refs/heads/master | 2023-04-07T05:14:02.815232 | 2021-04-21T03:49:56 | 2021-04-21T03:49:56 | 360,025,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from rest_framework import serializers
from .models import Task
class TaskSerializerser(serializers.ModelSerializer):
class Meta:
model = Task
fields = '__all__'
| [
"bskin0330@gmail.com"
] | bskin0330@gmail.com |
c3a805e35fb8e1e5293462c79a7b65bffc9c28a6 | 87f7d232723117ad4c72574898bda957d7adfe4d | /Unfinished Loop - Bug Fixing.py | 0a796fecfa5fa1b4dc2bd9f430211a66291eff95 | [] | no_license | Taras198700/Home_Work_S_S | 876f53c615fef440ef58b7d39cf896e1e778d5de | 081a7b17a67f803556027162b0058eccc1a27788 | refs/heads/master | 2022-12-16T20:30:11.888892 | 2020-09-09T18:13:16 | 2020-09-09T18:13:16 | 278,019,575 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def create_array(n):
res = []
i = 1
while i <= n:
res.append(i)
i += 1
return res | [
"homitsky_taras@ukr.net"
] | homitsky_taras@ukr.net |
d4d00147e745d9e951765b3fc1fd6c50c016f113 | 3c9011b549dd06b6344c6235ed22b9dd483365d1 | /Agenda/contatos/migrations/0003_contato_foto.py | 097090b85a3f8c6636e29e52edc33d1acc2ee0e7 | [] | no_license | joaoo-vittor/estudo-python | 1411f4c3620bbc5f6b7c674a096cae8f90f0db8d | 5562d823dd574d7df49fddca87a1fbd319356969 | refs/heads/master | 2023-05-31T17:59:16.752835 | 2021-06-25T04:54:56 | 2021-06-25T04:54:56 | 292,372,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.2 on 2021-05-16 01:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contatos', '0002_contato_mostrar'),
]
operations = [
migrations.AddField(
model_name='contato',
name='foto',
... | [
"joaoo.vittor007@gmail.com"
] | joaoo.vittor007@gmail.com |
5a2126d0acf87e3690274f9ba267477d89a89241 | c46b327faa127e0803fbd40521a769ac54d8e2f9 | /code/word2vec.py | 03c0bffc124e52ab7b754b802ecc48b44382e853 | [] | no_license | lizy10/Modified-and-Annotated-Code-of--An--Unsupervised-Neural-Attention-Model-for-Aspect-Extraction-- | f74abd8cc6fd90322dc3876ab8eb250d55f60467 | 0b40ec8897398e214d6a6c7a8936cf34686ea233 | refs/heads/master | 2021-09-15T01:03:07.254804 | 2018-05-23T10:44:37 | 2018-05-23T10:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | import gensim
import codecs
# 利用生成器读取数据可以避免等待数据读取的过程,速度更快.
class MySentences(object):
def __init__(self, filename):
self.filename = filename
def __iter__(self):
for line in codecs.open(self.filename, 'r', 'utf-8'):
yield line.split()
# 将数据转换为向量形式,基于word2vec算法.
def main(domain):
... | [
"woshihaodayikeshu@163.com"
] | woshihaodayikeshu@163.com |
73ddcb45b10df0f0c85f275e7a8190f7bd549bc2 | 677df89f5395f19b87b9f868da8c96f2c5ffbc5e | /code/pycs/client.py | 6afd66ec16bd58036a0f37d4f94cf7133e878ada | [] | no_license | vinnyzhaowenyu/mdnote | eefdffd8c526f2aa1893de3ec3891cc7452ea395 | d1f0835e31f46a6eeb9fe274778fdbac84f27570 | refs/heads/master | 2021-01-15T13:25:07.011643 | 2017-11-04T07:48:57 | 2017-11-04T07:48:57 | 92,654,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
import socket
import os
ss=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
ss.connect(('127.0.0.1',8123))
#f=open('aa','wb')
ss.sendall('hello serverdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd... | [
"admin@zhaowenyu.com"
] | admin@zhaowenyu.com |
24415f583157830a26bbdd97d7d14286cd332701 | 8b198614532b0fd6bc9861f4427299bcc2764c1e | /wsgi.py | 0b182b5796ca105033ef509ec1809d1c622e9bd6 | [] | no_license | summerandwinter/wxapppython | e9b0321b7b7c844eee39baf588b94c6a88f96351 | b345447260fcad01903771a38fbc66b7494c3389 | refs/heads/master | 2021-01-20T01:51:19.589571 | 2018-01-29T10:01:36 | 2018-01-29T10:01:36 | 89,334,998 | 27 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # coding: utf-8
from gevent import monkey
monkey.patch_all()
import os
import configparser
# 设置 Django 项目配置文件
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
import leancloud
from gevent.pywsgi import WSGIServer
from cloud import engine
cf = configparser.ConfigParser()
cf.read("config.conf")
os.envir... | [
"xiaopihailaotou@gmail.com"
] | xiaopihailaotou@gmail.com |
02922e6762aefcb1ca578359e971f39a28df7916 | d0eb582894eff3c44e3de4bd50f571f9d9ab3a02 | /venv/lib/python3.7/site-packages/tox/config.py | 4d5e02be935189dbd4ec6eaf1666cc27c16ee562 | [
"MIT"
] | permissive | tdle94/app-store-scrapper | 159187ef3825213d40425215dd9c9806b415769e | ed75880bac0c9ef685b2c1bf57a6997901abface | refs/heads/master | 2022-12-20T21:10:59.621305 | 2020-10-28T00:32:21 | 2020-10-28T00:32:21 | 247,291,364 | 1 | 2 | MIT | 2022-12-08T03:53:08 | 2020-03-14T14:25:44 | Python | UTF-8 | Python | false | false | 57,366 | py | from __future__ import print_function
import argparse
import itertools
import os
import random
import re
import shlex
import string
import sys
import warnings
from collections import OrderedDict
from fnmatch import fnmatchcase
from subprocess import list2cmdline
import pkg_resources
import pluggy
import py
import tom... | [
"tuyenle@Admins-MacBook-Pro.local"
] | tuyenle@Admins-MacBook-Pro.local |
1cf5fc50d95b24370dad7de31e70a0868c09d967 | 0af9ff3662729cf1f949e91b8d8862ff739e7b5f | /números primos.py | 24d5729c603ea4e67a9383127801a93e2941912d | [] | no_license | lucasjukr94/JavaProjects | e979726564e6ed47974931c3e5e04bbd06901e17 | 9c7315402c74458de054be21e6986c710ddfd5ef | refs/heads/master | 2021-09-15T20:27:42.619406 | 2018-06-10T14:54:44 | 2018-06-10T14:54:44 | 125,927,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | '''
╔══════════════════════════════════════════════════════════════════════════════╗
║ Instituição : Faculdade de Tecnologia de São Paulo ║
║ Departamento : Tecnologia da Informação ║
║ Curso : Análise e Desenvolvimento de Sistemas ... | [
"noreply@github.com"
] | lucasjukr94.noreply@github.com |
a112cf2bb050b37acf7da7c8c2b2bbaca571d4d0 | 1a3333fda7f53f6feff0c00e6b623e02211d5b27 | /tests/buildPythonApplication/channels/root/pkgs/testPackage/src/hello/__main__.py | d1691dbc5968d2404c607e812794e10d293e8bac | [] | no_license | jD91mZM2/flox-nixexprs | 6a1b7ca40c6dc8e99ae01941d3cbf77c8c896fc3 | be50d9f2374719cdf0ac762e4442e4fdd77758c9 | refs/heads/master | 2023-03-01T17:43:18.550198 | 2020-11-27T14:24:22 | 2020-11-27T14:24:22 | 328,352,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from . import hello
if __name__ == '__main__':
hello()
| [
"contact@infinisil.com"
] | contact@infinisil.com |
3c693e431934b383adf4d7f0be6aacd476f5da73 | 9a78d88daeef20341da3b3ed326f7be633cb2b46 | /instagram/instagramScraper.py | db788f63dd38fd3becb00f541e0c67850be53b54 | [] | no_license | muhammedfatih/SocialScraper | 6f410e3f44495ec65f63d8c50734aa24f0278bc7 | a83f53b272fae7da33e400d8409d44578f22ccd9 | refs/heads/master | 2022-11-17T21:30:12.966814 | 2020-07-18T17:59:17 | 2020-07-18T17:59:17 | 280,710,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from urllib2 import urlopen
import re
import json
import sys
sys.path.append("models")
from instagramUser import instagramUser
class instagramScraper:
INSTAGRAM_URL="https://www.instagram.com/"
userData=instagramUser("", "", "", 0, 0)
def fetch(self, username):
link = self.INSTAGRAM_URL ... | [
"mfatihinanc@gmail.com"
] | mfatihinanc@gmail.com |
44a7c1943eb7b978a98e5947ac8a6925fbb719a5 | 5f27bc1a0460a078f6fe33a544f494a5dff7f452 | /script/puzzle_test_backup_D_20_1026/D_20_1020_vrepMoveit_jaco1.py | 9c282275c0404bbd785b9da6c406c8b27613031f | [] | no_license | A-Why-not-fork-repositories-Good-Luck/arm_move | 3e381f0310265f47da14beaac136c358fb318f92 | e2e6182cfd93df1935bd3b8e9158134964dc44fa | refs/heads/master | 2023-03-15T18:37:17.337770 | 2020-11-18T06:46:06 | 2020-11-18T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,748 | py | #!/usr/bin/env python
GRID_SIZE = 0.01
G2P_SIZE = 100
import rospy
import numpy as np
import tf
import matplotlib.pyplot as plt
import copy
import time
import D_20_1020_custom_function as CUF
import D_20_1020_client_function as CLF
from D_20_1020_VFHplus_change_radius import influence
from D_20_1020_envClass4altest ... | [
"welovehun91@gmail.com"
] | welovehun91@gmail.com |
df90f052aa06361c8bda15da8154b401621d1aed | 50eb70ca3154f9a84f89a883718a87df63f78e80 | /mpServerProcess.py | aa49a8172d4fc14116a7062f5109b6281c5f3414 | [] | no_license | Rocia/Learning-multiprocessing | b0e5bd8b70afa7c3dce19feb9b188ede9869323f | 0b4dd7d1d7bf4831069b53adb1e8d970a24261d9 | refs/heads/master | 2020-06-28T01:22:44.012701 | 2017-07-14T07:32:01 | 2017-07-14T07:32:01 | 97,080,749 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from multiprocessing import Process, Manager
def A(d, l):
d[1] = '2'
d['2'] = 3
d[3.14] = None
d['alpha'] = None
d['beta'] = 'gamma'
l.reverse()
if __name__ == '__main__':
manager = Manager()
DICTIONARY = manager.dict()
LIST = manager.list(range(15))
process = Process(target=... | [
"rocia.fernandes@gmail.com"
] | rocia.fernandes@gmail.com |
26e63b09b2482b2c6ad1c3618519251ceac2ed9a | 4dc5f671d6f8e1d22a90b8244c58473aa440236b | /definitions.py | dc126bb2175829caf0262328d5499902f8a6223e | [] | no_license | nithinmk26/PythonStuff | 00f6c5094ee09aedde0691c05ba6c8ca5c5640a5 | d54927147bebb94e14529c77f414fb77148ca3ba | refs/heads/master | 2023-01-09T07:30:51.416535 | 2020-11-04T10:23:53 | 2020-11-04T10:23:53 | 309,967,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | def print_name(name):
print(name)
print_name("nanda")
#print_twice("nithin")
def print_twice(name):
print_name(name)
print_name(name)
print_twice("nithin")
| [
"nithinmk26@gmail.com"
] | nithinmk26@gmail.com |
d53a6445ee0ad5ff6856c3aa7fb0d32ba99044a2 | 301912f90f6fbc0ebdfe0726a4900a74789a0707 | /tele-bot.py | a54604ea84c8c1853977a5a3f90d0c187cc90ce8 | [] | no_license | denyskrysko/python-bots | 51037374da09d08b6027fb855d951a86ace7215b | 8eebf065f0a98667de620ba1b99eb4407091fd5e | refs/heads/master | 2020-06-04T11:06:50.156392 | 2019-07-04T13:33:54 | 2019-07-04T13:33:54 | 191,995,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | import time
import requests
from lxml import html
from bs4 import BeautifulSoup
import schedule
import datetime
import urllib.request
def parse(url):
try:
page = requests.get(url)
tree = html.fromstring(page.content)
name = tree.xpath('//div[@class="quote-ticker tickerLarge"]/text()')
... | [
"denyskrysko@gmail.com"
] | denyskrysko@gmail.com |
44cea545571a791e10617e28cfcb824365481f53 | c5d4fe5f7d01edf095541171fe2610ff62da5104 | /Mission_to_Mars/app.py | 5875d052c0755302a450c5da2bd7dba8ff3fd363 | [] | no_license | thierzon/web-scraping-challenge | 37c24477584415a53a59dd6d59026e432409feaa | cc961977e618b535464e394adf4edc2f569dfbc1 | refs/heads/main | 2023-04-16T03:31:57.133064 | 2021-04-16T13:11:26 | 2021-04-16T13:11:26 | 347,530,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from flask import Flask, render_template, redirect
import pymongo
import scrape_mars
# Create an instance of Flask
app = Flask(__name__)
# Use PyMongo to establish Mongo connection
mongo = pymongo.MongoClient("mongodb://localhost:27017/mars_app")
# Route to render index.html template using data from Mongo
@app.route... | [
"thierryzonneveld@gmail.com"
] | thierryzonneveld@gmail.com |
dc3187b27ca89c6c79e0c886c4bcc3dea7baa847 | 6f707329e5ef1bb56e74126a1ded82252013807b | /donation_site/urls.py | 51acd5a85b2f6bfe73b9b6b75c2d48992267333d | [] | no_license | DPBefumo/donation-site | dbe612745953805c521596bbd9c7ec7310dd4f5b | 5ae49a6d1d992b1c2b9f9b0ebb149382a70d1711 | refs/heads/main | 2022-12-25T12:06:29.106759 | 2020-10-07T20:18:23 | 2020-10-07T20:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from django.contrib import admin
from django.conf import settings
from django.urls import include, path
from core import views as core_views
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', core_views.index, name='index'),
path('donate/', core_views.donat... | [
"DPBefumo@gmail.com"
] | DPBefumo@gmail.com |
fab2b30ed6fb8e6b0e82f7b5754c46de062f13c1 | 6cffd0ad5a0e15dc7bc5c0ec78b6eaece0ef9371 | /bstest.py | 83525ffd175a259b0ca1875d622be75c475e938f | [] | no_license | asura123456/untitled1 | 79979edd7f51307e00b10e3a474031fe70f709d5 | 08382bef16ef603955c86cc55aafaecf1282117f | refs/heads/master | 2021-03-03T14:12:00.514373 | 2020-03-19T09:34:03 | 2020-03-19T09:34:03 | 203,749,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | __author__ = 'Administrator'
from bs4 import BeautifulSoup
import urllib.request
#reponse=urllib.request.urlopen('BeautifulSoup.html')
soup=BeautifulSoup(open('BeautifulSoup.html'),'lxml')
#for i in soup.find_all('a',id="link2"):
# print(i)
print(soup.select('p .sister'))
print(soup.select('head>title'))
prin... | [
"maya0026@tom.com"
] | maya0026@tom.com |
00afe15515e8406d7267839d7d8a4be3bccea3fa | 1dbbb05b30d27c6419b9f34eea3b9a47f92582a0 | /parlai/zoo/sea/bart_base.py | 44e3581dd73c1b7ad168a64f76a5a09e3c7c18f6 | [
"MIT"
] | permissive | facebookresearch/ParlAI | 815334323d0ebef51bf9837336fe3eef6fe1655d | e1d899edfb92471552bae153f59ad30aa7fca468 | refs/heads/main | 2023-08-31T22:20:45.918129 | 2023-08-14T19:39:56 | 2023-08-14T19:39:56 | 89,266,735 | 10,943 | 2,395 | MIT | 2023-09-13T23:07:40 | 2017-04-24T17:10:44 | Python | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Vanila BART-Large 400m parameter model with no retrieval.
"""
from parlai.core.build_data import built, download_mode... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
363f924942de71b7d00a8c1074ffc45f369e5ddd | d257d98b6f0116797d882191a85fbfc407b44a07 | /new submission/Core.py | 7e6cac5e3c020057298b1cb743c21e258730278b | [
"MIT"
] | permissive | AmrAshmawy2099/DL_Framework | dbe56d67dce78b5e679a10620f74a7ccc0b9e2d8 | a46e76936646e349f6e50852e1630362ae3d6d49 | refs/heads/main | 2023-02-20T00:14:29.866234 | 2021-01-25T11:17:13 | 2021-01-25T11:17:13 | 332,546,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,546 | py |
import numpy as np
import pandas as pd
#import matplotlib.pyplot as plt
from statistics import mean
import warnings
warnings.filterwarnings("error")
# foundation classes
###################################################
class SGD:
def __init__(self, parameters, alpha=0.1):
self.parameters = parameter... | [
"noreply@github.com"
] | AmrAshmawy2099.noreply@github.com |
cde91956a9edb08f6b4f838f37d9d754e7956ca6 | d78c504f800a7fc305db5a1e84fe303f97a5f3f4 | /14-0 Weather.py | 98d1f1ca145a59c9c8ac73455b9184447d63b248 | [] | no_license | InnaKr/Exercises | e2c44dc06e1e561cd00e31d3715e503901c58e1f | d9d4531d3c7f8aebf1e1f9c0645843569e6f07c4 | refs/heads/master | 2020-05-18T19:52:10.336057 | 2019-06-30T15:59:05 | 2019-06-30T15:59:05 | 184,618,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | import requests
# city = "Macerata"
city = input('Введіть місто(En): ')
appid = "47212252e5b0293b1e53348aa194bdb3"
while True:
try:
res = requests.get("http://api.openweathermap.org/data/2.5/weather",
params={'q': city, 'units': 'metric', 'lang': 'ua', 'APPID': appid})
data = r... | [
"49992989+InnaKr@users.noreply.github.com"
] | 49992989+InnaKr@users.noreply.github.com |
1e6a1bb4cbd846a1560ef7c7610b9ebcc4805c88 | 0e8b844a713bdb29e47ab445e55e0470194f3fda | /venv/bin/isort | c01f421efccde16d7e0aa853783f244265ba6e87 | [] | no_license | Linazzi83/aplicacao4 | 77666efd124192298cf3db06704a164a33dc451b | 2a1d20b3c3bb2da618b533b6bdb79f72802cdc80 | refs/heads/master | 2020-07-20T15:14:02.049933 | 2019-09-05T19:11:46 | 2019-09-05T19:11:46 | 206,665,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/home/san/Dev/app4/venv/bin/python3.7
# -*- 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())
| [
"gedegoliu@gmail.com"
] | gedegoliu@gmail.com | |
e038243caf03d7f65252cbc3b38256816376cb27 | db6f7200e7d62f499b500d7e26678835df2e5771 | /app/__init__.py | 8723ea03b093e4553a46f087b4720fff63cc3d5e | [] | no_license | melaniesarah/flask-microblog2 | 0583d820152e5493456346554597146c8236cf9e | 98b6ebf206624a5189a16617b427c2b51779d2cb | refs/heads/master | 2023-03-10T01:42:05.322797 | 2021-02-24T21:45:58 | 2021-02-24T21:45:58 | 296,149,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
from flask import Flask, request, current_app
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_mail import Mail
from flask_bootstrap import Bootstrap
from flask... | [
"melaniesarah@gmail.com"
] | melaniesarah@gmail.com |
1bcf9326d84b2e3d2430d6b53b5c8bd59809b755 | 6a861335fc5d659abdbc8bd9163d924106271f8c | /addNewGTPRevScore.py | 09d4b50b18163530ac6a83b9fe21174683de55af | [] | no_license | krtin/ContrastiveSummaries | 2585b8c84f4d8aa5ffdbeffac65d91b226bf8c95 | fc6fad3ca6ba6b85074ebfa4cfb605eddbd68479 | refs/heads/master | 2020-03-28T06:46:06.244548 | 2018-09-07T21:10:10 | 2018-09-07T21:10:10 | 147,858,579 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | import config
import pandas as pd
import pickle as pkl
import numpy as np
import os
import unicodedata
def is_number(s):
try:
float(s)
return True
except ValueError:
pass
try:
import unicodedata
unicodedata.numeric(s)
return True
except (TypeError, Value... | [
"kkumar15@CS.McGill.CA"
] | kkumar15@CS.McGill.CA |
d870a37c961f3bdf556b4c8622bb56f0ade0454a | 400aa1b481650fee1d9e55ea0003384f5355808f | /main.py | b5e263a8f28c3550702e810f95b271958db28806 | [] | no_license | brunomarvss/moodmemoir | 13f34ff41002f10ae186ec5ae30a5cd905c7edad | a040b797ec0d56d81039f85515c1a49a2043591e | refs/heads/master | 2021-01-12T16:56:59.424680 | 2017-06-25T07:05:48 | 2017-06-25T07:05:48 | 71,473,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188,216 | py | #kivy.require("1.8.1")
#Bruno
#Iringan
from kivy.app import App #create app
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout #import float layout/ frame
from kivy.uix.gridlayout import GridLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.core.window import Window
from kivy.uix... | [
"noreply@github.com"
] | brunomarvss.noreply@github.com |
417a08e70bb7a9d9dd71117edfc2d81b6f20d424 | 0686243fad8eb4e17959d8819c62d183d71adf57 | /tasks/views.py | e18347d900ef9a8032594d1c89c71cbcefe9fb5c | [] | no_license | package-coder/REPO-CS50Django | c241034d1e164d8d79a2ebf5601dce0517b7db66 | 0b1acb77800cbc55f8a7ef608a498aa813253851 | refs/heads/main | 2023-07-25T08:18:35.750988 | 2021-08-29T11:10:28 | 2021-08-29T11:10:28 | 401,021,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from django.shortcuts import render
from django import forms
from django.http import HttpResponseRedirect
from django.urls import reverse
tasks = []
class TaskDAOForm(forms.Form):
task = forms.CharField(label="Task")
priority = forms.IntegerField(label="Priority", min_value=1, max_value=10)
# Create your vi... | [
"79316343+package-coder@users.noreply.github.com"
] | 79316343+package-coder@users.noreply.github.com |
7240d4ecab15682787443877a38f85b61f1f032b | 46a09c35dda8f75d9df6af8db52f6e826e1fc1e1 | /main.py | 773769696b9b9bc14d292f4fe478bf0fabe7fe80 | [] | no_license | stevebottos/stocktwits-scraper | c4c675da029859e578b609fc8f452f346b404285 | 04609b9a33a94a989f3476fcaa7e742fcb179efb | refs/heads/master | 2023-03-13T06:50:19.636431 | 2021-03-04T07:20:42 | 2021-03-04T07:20:42 | 291,401,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,788 | py | """
* Needed to enable gmails "less secure apps" to allow the email portion to work
"""
import smtplib
import ssl
from email.mime.text import MIMEText
import os
import secrets
import requests
import json
from datetime import datetime
import pickle
import re
import pandas as pd
import pathlib
PATH = pathlib.Path(__fil... | [
"steve.bottos@hotmail.ca"
] | steve.bottos@hotmail.ca |
f3a8746b07f7a4ed5bae29cf9753647930f33964 | 2f99edadfdea111b06000e01a4d15d7a5ec3264f | /15_python包.py | 6ea8368d1eb2295cc9df8b4e779e34431a0bb50b | [] | no_license | chenweilong1022/python- | 00dd1ffe0f612d8c573e93a5fe1e43eb7715f115 | e7251ab791af65589cf42cf2570286212f4636b3 | refs/heads/master | 2020-05-07T17:33:44.648974 | 2019-04-17T10:18:50 | 2019-04-17T10:18:50 | 180,731,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py |
from test01.package01 import package01
from test01.package02 import package02
package01()
package02() | [
"陈伟龙"
] | 陈伟龙 |
1e28c69475afb7c2f2e67c3a0a62edb27df50580 | 179f33dc6856f32db8aceffdd1cf2278000fb321 | /blog/models.py | 48d317ba3d060c202d24ea634059d8fb6d1d60b7 | [] | no_license | alejandrapiedrasanta/progracomercial | 8c9826012f9a48a132276f275152a7fdbf065163 | 68c2c68379e178e54fa827d8c84d2f695b6a01aa | refs/heads/master | 2023-08-14T09:19:14.836187 | 2021-10-14T09:32:20 | 2021-10-14T09:32:20 | 411,798,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.db import models
# Createfrom django.db import models
from django.utils import timezone
class Publicacion(models.Model):
autor = models.ForeignKey('auth.User', on_delete=models.CASCADE)
titulo = models.CharField(max_length=200,help_text="Ingrese el titulo")
texto = models.TextField()
fech... | [
"alesarti@mesoamericana.edu.gt"
] | alesarti@mesoamericana.edu.gt |
d9d33fe8b116cb7dc30454d84a7a1097e2401020 | ad1e55b9a67c798cf4b4ce41c76b26977f8b4e8d | /vendor-local/celery/tests/test_utils/test_datastructures.py | c06e4d732e8b0cdfa46db88f55237d3206f51bd9 | [
"BSD-3-Clause"
] | permissive | kumar303/rockit | 7a6ac84bb8c37e5f3b65d7dcecf9b9c549902cf5 | fc347b5b143835ddd77fd0c1ea4e6f2007a21972 | refs/heads/master | 2021-01-10T19:51:30.638073 | 2020-07-26T19:00:37 | 2020-07-26T19:00:37 | 4,219,328 | 0 | 2 | BSD-3-Clause | 2020-07-26T19:00:38 | 2012-05-03T22:03:24 | Python | UTF-8 | Python | false | false | 8,435 | py | from __future__ import absolute_import
from __future__ import with_statement
import sys
from celery.datastructures import (ExceptionInfo, LRUCache, LimitedSet,
AttributeDict, DictAttribute,
ConfigurationView, DependencyGraph)
from celery.tests.util... | [
"kumar.mcmillan@gmail.com"
] | kumar.mcmillan@gmail.com |
626ad41b7c2f45201c36c890134ff3c5e306ba4b | 2e7656524d3bc32a5f256973afcb3dd35fc6b764 | /matrice.py | e8f55835f226cee96bdf2a3211155629cc12b883 | [] | no_license | bondac-ion/Matrice | fa047adf91e23c3691b98f05bda79e8971f7d482 | 891e0325a8c8e605ae18129272e3cc80aabee421 | refs/heads/main | 2023-08-15T04:00:37.106089 | 2021-10-06T19:03:29 | 2021-10-06T19:03:29 | 414,337,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | a=[[2,11,54,3,1],
[34,6,55,9,22],
[1,2,3,4,5],
[9,7,6,45,0],
[12,23,34,45,56]]
for i in a:
print("suma randului",i+1,"este",sum(i))
for i in range(len(a)):
col=[]
for rind in a:
col.append(rind[i])
print("suma coloanei",i+1,"este",sum(col))
d_principala=[]
d_secundara=[]
for i ... | [
"noreply@github.com"
] | bondac-ion.noreply@github.com |
7ce855509a02fabb32794d93a57361f957f8535c | 67bde32c6aeb71880a10cc67d5c2266fceb9deb8 | /Python3-Patterns_Recipes_Idioms/saved_script/Ch 28 Fronting for an implementation.py | fe941f29091702deca207bc093ec11c1a0da3102 | [] | no_license | Sprinterzzj/Effective-Python | 981ea71eb028d5c782ab85de2e66c30f724a4ddc | 0af0e1d20741c6bce0951ea17c23534c4ccb2d9a | refs/heads/master | 2021-07-01T16:22:46.682452 | 2020-10-08T10:11:39 | 2020-10-08T10:11:39 | 180,560,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | #!/usr/bin/env python
# coding: utf-8
# 代理
#
# 代理模式 用来**控制 implementation 的访问**.
# In[ ]:
# Simple demonstration of the Proxy pattern
class Implementation(object):
def f(self):
print('***f***')
return
def g(self):
print('***g***')
return
def h(self):
print('*... | [
"zhangzijie.dlut@gmail.com"
] | zhangzijie.dlut@gmail.com |
f7c258330381012d574538f806f44342ee8b2f48 | 3d6f870af1af2bb608bfd404c80c3f8ed58d31b2 | /main.py | d7d437390c61e2d1294ee1a6c701de9cf33b46cb | [] | no_license | saness/tictactoe | 1cbd0b9fa8230f259c587b9194b7eefbdc029ab7 | 4f3ac33d8f0743d0887aa4f602dea311a69cc780 | refs/heads/master | 2022-04-25T16:50:30.106869 | 2020-04-10T06:53:32 | 2020-04-10T06:53:32 | 254,531,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | board = [' ' for x in range(10)]
def insertLetter(letter, pos):
board[pos] = letter
def spaceIsFree(pos):
return board[pos] == ' '
def printBoard(board):
print(' | | ')
print(' ' + board[1] + '| ' + board[2] + '| ' + board[3])
print(' | | ')
print('----------- ')
print(' | ... | [
"sanishsuwal3@gmail.com"
] | sanishsuwal3@gmail.com |
2fe4cec6defc2e66ddc4db17511c536f84514dd1 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/special-resource-operator/python/pulumi_pulumi_kubernetes_crds_operators_special_resource_operator/sro/v1alpha1/__init__.py | 7e6f12156a258138619de35e038acddf3d969e0c | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from .SpecialResource import *
from ._inputs import *
from . import outputs
| [
"albertzhong0@gmail.com"
] | albertzhong0@gmail.com |
da2e6602833e17793bb83c4b4c77acb468f4abe2 | 850435d1ba6bd7c7a22f1a866af7ab75c49471b3 | /and-the-award-goes-to-master/extract/util.py | 90359e96560404c14899ca93231e3a018f995033 | [
"MIT"
] | permissive | csaund/formal-models | fcc93c7f6df0e4bf2a1f988cd9a6785122b92ae0 | 85d5f217fbbc05f373d4822093373665c256a3ee | refs/heads/master | 2020-04-17T09:14:37.197142 | 2019-04-17T14:28:37 | 2019-04-17T14:28:37 | 166,450,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | import re
import os
import csv
import requests
from bs4 import BeautifulSoup
def only_ascii(string):
""" Returns only ASCII encoded characters """
return "".join([c for c in string if ord(c) < 127])
def check_headers(filename, fieldnames):
""" Validates input fields to file fields. """
with open(file... | [
"tmartinovska117@gmail.com"
] | tmartinovska117@gmail.com |
5a1a215fc88b1c2d5c7a9729d348862c15461931 | b64687833bbbd206d871e5b20c73e5bf363c4995 | /crocs.py | 2ea505fc464101c7b928b4bbcbb3e5e9cd5a0f07 | [
"Apache-2.0"
] | permissive | barkinet/crocs | 462225eee0975c9240ec25ca1275e0f9dc991e00 | 7ab44d1eb45aac7b24ab64601255d9fb38049040 | refs/heads/master | 2020-12-02T09:12:18.988446 | 2017-07-09T20:09:52 | 2017-07-09T20:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,547 | py | from random import choice, randint
from string import printable
import re
class RegexStr(object):
def __init__(self, value):
self.value = value
def invalid_data(self):
pass
def valid_data(self):
return self.value
def __str__(self):
return re.escape(self.value)
class ... | [
"ioliveira.id.uff.br"
] | ioliveira.id.uff.br |
b92efc48c054ab584bde5eced15bde64256a245a | 3951ae64b6b7ada4f035a3dd835b23cf7e624ee0 | /advert/models.py | b7ee5f7904cd6c568b07570302a340d84dec2ef5 | [] | no_license | ichinda/Tenders | bc4123be28929f827d773c267d2fac2d93662ff5 | f13111b7aeccf90bf5e4104966f76936e83ef41e | refs/heads/master | 2022-03-06T17:26:31.351951 | 2019-09-20T03:45:48 | 2019-09-20T03:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from phonenumber_field.modelfields import PhoneNumberField
# Create your models here.
class Advert(models.Model):
image = models.ImageField(default= 'default_business.jpg', uploa... | [
"agrawal.arpit14@gmail.com"
] | agrawal.arpit14@gmail.com |
e1918394a57db35a46a6856e38ebedd667af34e4 | d21112887ed1ec675b7b519cc991fc47bfa11735 | /SaleML_PreDjango/Predicting/urls.py | fc440ad929f7717a684452088ecfe3d8b3a0a1bb | [] | no_license | SydNS/DjangoML-model | 8c9ab65075b896ff129a872b087cdcd9dfc87e83 | c15474b136d592e182e707f6a73269685c3e62ad | refs/heads/master | 2023-03-02T13:27:33.809869 | 2021-02-06T09:57:34 | 2021-02-06T09:57:34 | 336,550,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('products', views.product_describe_view, name='product_add'),
]
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a97d0b7b5c266a837d5caf3fefb00339c7d845dc | 8fcae139173f216eba1eaa01fd055e647d13fd4e | /.history/scraper_20191220144406.py | d08dde54a93939a73cdb07eb8e08d72519375f5e | [] | no_license | EnriqueGalindo/backend-web-scraper | 68fdea5430a0ffb69cc7fb0e0d9bcce525147e53 | 895d032f4528d88d68719838a45dae4078ebcc82 | refs/heads/master | 2020-11-27T14:02:59.989697 | 2019-12-21T19:47:34 | 2019-12-21T19:47:34 | 229,475,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module docstring: One line description of what your program does.
There should be a blank line in between description above, and this
more detailed description. In this section you should put any caveats,
environment variable expectations, gotchas, and other notes abo... | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
1c0a243fae087ba9520b940a1940a5458e5d1a61 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2103.py | a414f3ccb3b1e3142cf256e7d173e37982b1e31b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | #! /usr/bin/env python
import operator
from sys import stdin
in1 = "ejp mysljylc kd kxveddknmc re jsicpdrysirbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcdde kr kd eoya kw aej tysr re ujdr lkgc jvzq"
out1 = "our language is impossible to understandthere are twenty six factorial possibilitiesso it is okay if you want to ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6d6f0f9613d182bbd152627313f49791fd6e358f | 4fa6036d6f924105554ae02ffbd1cec23de80354 | /2020-09-09-blusa-camiseta-criterios-minimo-stock/code_low_demand_aux.py | 541fe5ff613f616a291e409bba74790936b4ff6c | [] | no_license | daryachyzhyk/Reports | a9ac7f4850a26c51dae5198a940ed786636f7acd | 93eb92dc04beb6b02ce97fb74496195d5647c77d | refs/heads/master | 2023-05-14T20:22:41.992352 | 2021-06-09T07:06:42 | 2021-06-09T07:06:42 | 277,542,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,516 | py | '''Two families: BLUSA and CAMISETA do not follow the rule of the minimum of stock that we establish on the level family-size. They have a good level of stock but the PS feedback is bad.
Investigate these families using another variables such as: color, print, basic, style, fabric, etc.
Use particular dates.
Compare... | [
"d.chyzhyk@lookiero.com"
] | d.chyzhyk@lookiero.com |
5e1e1a8a01e9a4132bd94ac4745a7070a47d4718 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/22114002.py | 7953c9feeb8c8d3d7f7c9d855b04a94363e3a510 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/22114002.py generated: Fri, 27 Mar 2015 15:48:15
#
# Event Type: 22114002
#
# ASCII decay Descriptor: [D0 -> pi+ pi- mu+ mu-]cc
#
from Configurables import Generation
Generation().EventType = 22114002
Generation().SampleGenerationTool = "SignalPlain"
from... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
07009bf78c01bc832ea59222c306f561654e552d | ba2efb956f472e508cac8a41921d67083136e1c8 | /test.py | d54d89821dc811294a6f2b518dd498f232324426 | [] | no_license | AHBruns/Syrio | 1599c9f97b8022dd63c297e7ea6a4e88abd5cf86 | 881512ee5e2ee52ad70de5326f80c9e100736adb | refs/heads/master | 2020-05-09T15:55:12.831283 | 2019-04-14T03:45:44 | 2019-04-14T03:45:44 | 181,250,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import sqlite3
def t(s, c):
try:
c.execute(s)
except sqlite3.OperationalError as ex:
print(ex) | [
"alex.h.bruns@gmail.com"
] | alex.h.bruns@gmail.com |
992131d644d1a04bd07ae41cf367774e1e0adef0 | fb7cb229a8f68f9ba3cc23ce51238008841516e8 | /Sensorslab2/Task2/first_pkg/first_pkg/publish_gps_messge.py | b99bf288a6eb3c6f23f35d8631db0fca8795ff89 | [] | no_license | RozanMagdy/ITI-Labs | 24852442c8cae3f9d0fe44e55e5995853f18a9b5 | 3e3a4b85a415492c6eb539c79be128504fefaf96 | refs/heads/master | 2023-06-04T18:07:58.256689 | 2021-06-17T11:43:30 | 2021-06-17T11:43:30 | 359,421,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,978 | py | #!/usr/bin/env python3
import rclpy
import csv
from rclpy.node import Node
from sensor_msgs.msg import NavSatFix
#TODO Import needed messages
class my_node (Node):
def __init__(self):
super().__init__("Node_name")
self.csv_file_path = "GGA_GST.csv"
self.lines = []
with open(self.... | [
"rozanabdelmawla@gmail.com"
] | rozanabdelmawla@gmail.com |
1565de3abac24dee338faefa2cd4b094f35f2ecd | 7963f09b4002249e73496c6cbf271fd6921b3d22 | /emulator_6502/instructions/sbc.py | 31e549a6575d30d766fd1bf37990f233dd92938b | [] | no_license | thales-angelino/py6502emulator | 6df908fc02f29b41fad550c8b773723a7b63c414 | 1cea28489d51d77d2dec731ab98a6fe8a515a2a8 | refs/heads/master | 2023-03-19T14:46:17.393466 | 2021-03-08T04:10:45 | 2021-03-08T04:10:45 | 345,754,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | SBC_IMMEDIATE_OPCODE = 0xe9
SBC_ZEROPAGE_OPCODE = 0xe5
SBC_ZEROPAGEX_OPCODE = 0xf5
SBC_ABSOLUTE_OPCODE = 0xed
SBC_ABSOLUTEX_OPCODE = 0xfd
SBC_ABSOLUTEY_OPCODE = 0xf9
SBC_INDIRECTX_OPCODE = 0xe1
SBC_INDIRECTY_OPCODE = 0xf1
class SBCImmediate(object):
def __init__(self):
super(SBCImmediate, self).__init__()... | [
"thales.angelino@gmail.com"
] | thales.angelino@gmail.com |
5fdaeecaf64cdc22e25b4913a33d91d5c7b28577 | 714306f0587cbe874a8663d80255799e91e3bff8 | /scripts/scrape.py | 4fecb8389f2a88602b52ad694bf9f8ef3d3d10ca | [] | no_license | carbonXIII/research_scraper | 65225e536512a43746f50bc38d0b007ee14ebb86 | 658b1ee616298366631a0bebe06d5b3ef3342310 | refs/heads/master | 2022-05-17T13:44:04.167376 | 2019-10-22T19:17:51 | 2019-10-22T19:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,404 | py | # Scraper to scrape some information from a Github repository (website and cloned repo)
# From Github:
# Description
# Issues
# Pull requests
# From Cloned Repo:
# .markdown files
# in-line comments
from shutil import rmtree
import os, sys
import bs4 as soup
import requests
from myutils import onerror, choose_subse... | [
"r1ch4rds.j0rdan@gmail.com"
] | r1ch4rds.j0rdan@gmail.com |
4795a56db26abe40c2a74585633599bdd4dbe46f | 87658453efcdbed898c9dd7fae77cd6c1c9dae79 | /scripts/run_multiple_tail_at_scale.py | 860b49357df4b2486ab955ce0f908ebec6f4a722 | [
"Apache-2.0"
] | permissive | matthelb/gryff | ada0fed962988bbcc32daff040de1029eb0d17f2 | faea8bf494c472d66f98c3701cd88b7c472c374f | refs/heads/master | 2021-02-05T23:52:38.728832 | 2020-04-01T20:01:30 | 2020-04-01T20:01:30 | 243,851,022 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import utils
import sys
from utils.experiment_util import *
def main():
if len(sys.argv) != 2:
sys.stderr.write('Usage: python3 %s <config_file>\n' % sys.argv[0])
sys.exit(1)
run_multiple_tail_at_scale(sys.argv[1])
if __name__ == "__main__":
main()
| [
"mlb452@cornell.edu"
] | mlb452@cornell.edu |
5ee11a1a3c24fe548935f32270ff881fa53eb1a8 | 8460f7bdc6dd01c2a4f095a9af5b3766474afb4d | /util/Vis.py | 00ae504b8892e6a281301b4bdf9bb0e87591f7b0 | [] | no_license | ggqshr/ClassificationPic | 36b38890f821549cb22dffd3e99e9fa8ebe16719 | ddcd877184e368a823b08801d67c88645541ee3a | refs/heads/master | 2020-05-03T20:44:05.650053 | 2019-04-07T06:43:46 | 2019-04-07T06:43:46 | 178,809,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,464 | py | import visdom
import numpy as np
import time
import torchvision as tv
class Visualizer():
"""
封装了visdom的基本操作,但是你仍然可以通过`self.vis.function`
调用原生的visdom接口
"""
def __init__(self, env='default', **kwargs):
import visdom
self.vis = visdom.Visdom(env=env, use_incoming_socket=False, **kwar... | [
"ggq18663278150@sian.com"
] | ggq18663278150@sian.com |
224ec89ac931e042e1944042b2a3f733ec7c52c3 | 5894844ffd7edfe04047a1310535679904f23b31 | /app/api/serializers/lesson.py | c2e9d0608a6e2745d2a10a7d73fac58208370d86 | [] | no_license | kevbrygil/dacodes-API | 778108017584be01f88a7b74f4a5fbdd258ca886 | ec51c4e8103236e9302db419ab1bce1b14526ac1 | refs/heads/master | 2022-07-25T16:30:11.831860 | 2019-10-23T14:38:33 | 2019-10-23T14:38:33 | 216,649,135 | 0 | 0 | null | 2022-07-05T21:47:09 | 2019-10-21T19:29:20 | Python | UTF-8 | Python | false | false | 507 | py | from marshmallow import Schema, fields
from .validations.validators import validate_mandatory_courses, validate_mandatory_courses_code
class LessonSchema(Schema):
id = fields.Str()
name = fields.Str(required=True)
course_id = fields.Str()
description = fields.Str()
question_details = fields.Str()
... | [
"tamayo_144@hotmail.com"
] | tamayo_144@hotmail.com |
cf3e00e18c62ceff4ee2e392754a7ae771574aa9 | 5b0a71b1b9ff85ea107406f804936035af2352a3 | /question_ask/question_temp.py | bd7a0b8148e41585de7496596c82fa2e41183678 | [] | no_license | FantasticCode2019/kg--demo-Computer-network-course | 58d7c8763d3dc530dc0d833dad734db78b6ffc9b | e8024153c4473e67cd95695bf55071faa1e6d221 | refs/heads/master | 2023-04-12T05:09:59.828476 | 2021-05-10T01:19:46 | 2021-05-10T01:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,339 | py | # encoding=utf-8
"""
@author: xuzelin
@file: question_temp.py
@time: 2020/12/20
@desc:
设置问题模板,为每个模板设置对应的SPARQL语句。demo提供如下模板:
1. 某实体的兄弟关系有哪些
2. 某阶段之后是哪个阶段
3. 某实体包含了哪些实体
4. 与某实体内涵相同的是
5. 与某实体内涵相反的是
6. 某实体继承自哪个实体
7. 某实体参考自哪里/那本教程
8. 与某实体可以相互变换的实体有哪些
9. 与某实体有因果的实体有哪些?
10.某实体的某属性是什么
11.某实体是正确的吗?
"""
from refo import ... | [
"1127485560@qq.com"
] | 1127485560@qq.com |
e9da2dde9e797e1e181779543be225efdc001fb3 | 0fe003ace0c47ff027de3c5497ef9bd04925939a | /day23.py | 0d5fffbeb3b042325ecfb43ede3588fa80f58148 | [] | no_license | russford/advent2016 | 132dde45adadf2c78e1ab9544af66a72541700ac | 1e92cf36a5870e05297ddba3d5d254213e4f0aaf | refs/heads/master | 2020-06-15T14:49:43.566431 | 2017-01-02T12:26:27 | 2017-01-02T12:26:27 | 75,284,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | test_code = """cpy 2 a
tgl a
tgl a
tgl a
cpy 1 a
dec a
dec a"""
# cpy x y copies x (either an integer or the value of a register) into register y.
# inc x increases the value of register x by one.
# dec x decreases the value of register x by one.
# jnz x y jumps to an instruction y away (positive means forward; negat... | [
"russford@gmail.com"
] | russford@gmail.com |
a0adbf0801f319434a3785fe01f994198732a1a1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2864/60618/317011.py | a6f56f689fbf65afed239fae41b9105f1e30fc28 | [] | 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 | 1,548 | py | class Solution:
def find(self, n, data):
if n == 1:
return data[0]
re = 0
d = dict()
for i in range(n):
d[data[i]] = data.count(data[i])
# 这两行可以好好学习一下!!!
sorted_key_list = sorted(d, reverse=True) # key从大到小
sorted_dict = sorted(d.items... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2018328ca867ccc87ff04f9b378c17cac512df31 | 747f759311d404af31c0f80029e88098193f6269 | /addons/sale_payment/sale_payment.py | 807c9c55bec7e7ec51aae95ef58e50ca79e28d7c | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | /home/openerp/production/extra-addons/sale_payment/sale_payment.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
ad3ee97e6a9f4657ce8b2dda99cafee6dda6323b | 2f7f6dda2a7fc1c949450e03cbd567ac7f9a46d9 | /tools/batch/submit-job.py | 9bbbc6fe81ee4b2045ef15802d86cbf469148ea1 | [
"Apache-2.0"
] | permissive | cuulee/gluon-nlp | fe31952925a483b14df4a9faaf1e5259805f9856 | 46c9d014ac0a022b208ce335cb6ee8a54771bae4 | refs/heads/master | 2022-12-19T16:00:32.269318 | 2020-10-22T03:33:47 | 2020-10-22T03:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py | import argparse
import random
import re
import sys
import time
from datetime import datetime
import boto3
from botocore.compat import total_seconds
instance_type_info = {
'g4dn.4x': {
'job_definition': 'gluon-nlp-g4dn_4xlarge:5',
'job_queue': 'g4dn'
},
'g4dn.8x': {
'job_definition'... | [
"noreply@github.com"
] | cuulee.noreply@github.com |
07d35f66b6c9afb14eb49238a555cec69a67ef2c | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /contrib/great_expectations_geospatial_expectations/great_expectations_geospatial_expectations/expectations/expect_column_values_geometry_to_be_within_shape.py | 4fb1ffed1fe1ffab5fafb06d1d68eb5f5526a0d0 | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 12,685 | py | from typing import Optional
import pandas as pd
import pygeos as geos
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from g... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
fb100ad85682045d4052339d1143167421753289 | 3cfaa57f120c53694bdeb71c3785e95a6152f8e7 | /pi_libs/macros.py | 83e7f48ea48cf340b143c79a982f8e8ae9ff69f6 | [] | no_license | QUT-Motorsport/QUTMS_CANSimulation | 810593d82963717dd82e0c8ee549c06bdb4d851d | 6f3f7acaebceae90702a9cada113f1265dc51e1b | refs/heads/master | 2022-04-08T09:23:55.848072 | 2020-03-12T01:41:27 | 2020-03-12T01:41:27 | 246,234,740 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | """
CAB202 Teensy Library (cab202_teensy)
macros.h rewritten to Python code
B.Talbot, September 2015
L.Buckingham, September 2017
M.Sadykov, November 2019
Queensland University of Technology
"""
"""
Setting data directions in a data direction register (DDR)
"""
def SET_INPUT(... | [
"mattsadov@gmail.com"
] | mattsadov@gmail.com |
34b242e509f466f320688594ae1b456377f19fc0 | 3cd5de408139f0be09bf58ba406043819aca1d2c | /program1.py | 8500ead54844d796387e618284300bc569f77521 | [] | no_license | nadgabriel/first_repo | 79417e8ae9c73a00a7cd4ef0da836c109149761b | 500ea88fbd6da9c7cb60e363a9e733b9d5a6cb35 | refs/heads/master | 2023-04-01T14:08:43.941135 | 2020-12-23T22:30:25 | 2020-12-23T22:30:25 | 271,045,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # Do premennej mozme ulozit hocijaky datovy typ
pocet_jablk=2
pocet_hrusiek=3.4
number_of_windows=10
print("pocet_jabl = ", pocet_jablk)
# Premenna je case sensitive cize tieto dve premenne su rozdielne
cars=1
Cars=2
# Premennu mozme definovat aj niekolko krat
jablka=4
jablka=3
# Nazvy premennych mozu pozostavat ... | [
"nadgabriell@gmail.com"
] | nadgabriell@gmail.com |
b248f7b6e4a7f92757f0a8c13236f489a28b112f | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/oslo_privsep/tests/test_comm.py | 72f7aefceab898b5a143045d7aa771a0fc759a9f | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 2,698 | py | # Copyright 2015 Rackspace Inc.
#
# 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 agr... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
b17cc3de2699bc9c2e6d1909d80eeecd1bc07a76 | 62e27febb6c9891d02c792620ca2a8b3e4e8fd09 | /ai.py | e2ef16676cd84e6ca95beaf9071498d8365f2f5c | [] | no_license | ffidni/tictactoe | cc08cb736cc6eb277bee6c211c09aed0a7c6e006 | 125e9497ffa38abd72b9488b66945c5797c7790c | refs/heads/master | 2023-06-10T14:23:08.861220 | 2021-07-06T04:08:09 | 2021-07-06T04:08:09 | 375,467,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | py | from random import choice
#Credit to divyesh072019 for this code
def isMovesLeft(board) :
for i in range(3) :
for j in range(3) :
if (not board[i][j]) :
return True
return False
def evaluate(b, bot, opponent) :
# Checking for Rows for X or O victory.
for row ... | [
"realityinaship@gmail.com"
] | realityinaship@gmail.com |
950ec69546022992c15201e1068609a18c452f15 | 835566e5f9ab26bf459c47678728719775d96c33 | /venv/lib/python2.7/codecs.py | a708b1569ffa72266e1aebcd14af601581eff916 | [] | no_license | BrandonWalk/bacon | a0e15898bcd8ba0ab2871a7021a0c0e92e58cf98 | 22e674da1bc94e7f608675a022b51c99e47e58e2 | refs/heads/master | 2020-04-18T20:20:59.896319 | 2019-01-26T20:32:33 | 2019-01-26T20:32:33 | 167,735,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | /Users/brandonwalker/anaconda2/lib/python2.7/codecs.py | [
"branwalker19@gmail.com"
] | branwalker19@gmail.com |
a7f52a070ab9786932134e6185e25c4294abacda | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/113677/KaggleBillionWordImputation-master/scripts/test_to_train.py | d6a8b8242d2e01d61592d440427057247ee7db57 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python
'''Convert test file format to train file format'''
import sys
if __name__ == '__main__':
header = sys.stdin.readline()
for line in sys.stdin:
i, sentence = line.rstrip().split(',', 1)
print(sentence[1:-1].replace('""', '"')) | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
06e27836ec9ad1be7688bc3689db92957c6d74ec | 7f2aae79774d166173b2e003bf63c88369159d6f | /game_types/Board.py | fc76f18aafb07cf33d67913ed478c918b6a7d68d | [] | no_license | enisnazif/battleships | 6605df2c8581491b302daed26f0e697fcfb47cab | d99ecb60defb69996ac32cb3fe9661e263aec56a | refs/heads/master | 2021-06-11T13:59:25.088685 | 2019-05-19T10:53:12 | 2019-05-19T10:53:12 | 180,877,603 | 0 | 0 | null | 2021-05-06T19:33:56 | 2019-04-11T21:03:35 | Python | UTF-8 | Python | false | false | 5,196 | py | from typing import Tuple, List
from config import BOARD_SIZE
from exceptions import (
InvalidShotException,
InvalidShipPlacementException,
)
from game_types.Orientation import Orientation
from game_types.Point import Point
from game_types.Ship import Ship
from game_types.ShipType import ShipType
class Board:... | [
"e.nazif@warwick.ac.uk"
] | e.nazif@warwick.ac.uk |
996df91cc5baeba8d648a84074940c67fb599b8c | 9a811b17415c7a19731c42cffd18177f15adf56e | /list_all_pixels.py | efb3ef048aebe8777b914caa5513c8d0e8e93616 | [] | no_license | sanjitk7/ImageSpacialIntensityTransformations | 2e8fcd16e896374ecf05688e425b772b6d14bffc | 337c3661fdb631afe096b697c5ae064f49db8d46 | refs/heads/master | 2022-12-24T19:52:03.391437 | 2020-09-29T11:56:14 | 2020-09-29T11:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | # Listing All The pixel Values of the Image
def list_all_pixels(im):
for i in range (im.size[0]):
for j in range(im.size[1]):
print("f(" + str(i) + "," + str(j)+") = " + str(pixelMap[i,j][0])) | [
"sanjitk2018@gmail.com"
] | sanjitk2018@gmail.com |
24c369e604c97d4f7e16c18d93c67302fca9be3b | 47789957e8dd6ba944bd4c04341cf8add431d64f | /shoppingcart/home/migrations/0005_address.py | 0b765715896903f72bb9986d4f645cf9f59811fb | [] | no_license | binnib/EshopApp | 8c93c518d09b5dbe9e3e9f357e9a68fa2d2d4585 | 4846b7f48e4224f2a0aee8942e9c758a9f890081 | refs/heads/main | 2023-03-28T17:04:48.063283 | 2021-04-12T05:52:37 | 2021-04-12T05:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | # Generated by Django 3.0.6 on 2021-03-31 07:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0004_delete_address'),
]
operations = [
migrations.CreateModel(
name='Address',
... | [
"maheshsharma171226@gmail.com"
] | maheshsharma171226@gmail.com |
7914eab270311d6a94213bb0d0fa5edfa4c36fb0 | 863d32f9adc6890600a7a114574be66e80dc4ec7 | /models/seg_model.py | 0e3d6fddf9a0d4b5e475694ffe2eb863038fda1d | [] | no_license | dsl2009/dsl_instance | 9e60dc36a3106a9500a9486208533c2eb23578ae | ca299c16feaf58eadfd21f282bf681194b6c118f | refs/heads/master | 2020-04-24T15:18:08.246023 | 2019-07-26T08:38:19 | 2019-07-26T08:38:19 | 172,060,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | from models import resnet
import torch
from torch import nn
from torch.nn import functional as F
from layer import renet
class SegModel(nn.Module):
def __init__(self):
super(SegModel, self).__init__()
self.cnn = resnet.resnet50(pretrained=False)
self.cov1 = nn.Sequential(
nn.Conv... | [
"dsl"
] | dsl |
af1029b1cb2a722afefefe70be3427a8519bf118 | 10f3e91eb6b7d155f0421f836a2fd9696bd4f184 | /getWeather.py | 466b96ed80f369d7e097565df13eafab22a31e8e | [] | no_license | Claire0223/Python_demo | b61fdcd9448bc7c57a4f13241f48a732406f4ec3 | 9c266503defeca8fae717797482303e126c66ebf | refs/heads/master | 2022-11-15T04:06:19.964521 | 2020-07-10T06:09:58 | 2020-07-10T06:09:58 | 276,874,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | #coding=utf-8
# 微信聊天+天气预报机器人
# 和风天气https://dev.heweather.com/docs/legacy/api/s6
#
import requests
import json
def weather_forecast():
city=input('请输入想要查询的城市名称,如‘江门’:')
api='https://free-api.heweather.com/s6/weather/'
weather_type='forecast'
value={
'location':city,
'ke... | [
"1327686271@qq.com"
] | 1327686271@qq.com |
98d57a8478c682b8842dbf0da010110c3fcd6a8c | 90e10e5fe73272557b01bc600d3b0f1121b0ce0e | /worldbuildr/schema.py | 6a6350b487e09c3ac9177321e61102c1d591cc2a | [] | no_license | nanderv/worldbuildr | e18809599bfdc573e398cb35b65caca528f4a552 | 3c69ef51408350c9b215996d16ac4f63837785c2 | refs/heads/master | 2020-03-30T02:01:44.498920 | 2018-09-29T10:13:01 | 2018-09-29T10:13:01 | 150,608,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import when.schema
import graphene
from graphene_django.debug import DjangoDebug
import who.schema
class Query(when.schema.Query, who.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query)
| [
"nander@nander.net"
] | nander@nander.net |
34c4d58dbc00a029cccf06bca3604352c7a3dc0b | 833e9e3b34b271aa2522471bd0b281b892adff78 | /backend/forms.py | 9f1014a729fa0d32ce2cc205096f506180fa41c4 | [] | no_license | emilte/case | b3fcd869468e093ec754980824c6b155f283caa7 | 35eadb05bdd224f845353a952c9aa18b03d95591 | refs/heads/master | 2021-06-27T13:19:32.550253 | 2019-11-24T23:21:36 | 2019-11-24T23:21:36 | 223,599,299 | 0 | 0 | null | 2021-03-19T08:42:52 | 2019-11-23T14:10:19 | JavaScript | UTF-8 | Python | false | false | 2,377 | py | from django import forms
from urllib import request
from captcha.fields import ReCaptchaField
from django.conf import settings
def between(x, a, b):
return x >= a and x <= b
class Info(forms.Form):
applicant = forms.CharField(initial="emil", required=True, widget=forms.HiddenInput)
name = forms.CharField(... | [
"emil.telstad@gmail.com"
] | emil.telstad@gmail.com |
c9aa9c599cdb6264bd9acab064e97e527515437f | 0a4d3723384ef0a6a858f01d79292ce73a46cd8b | /frontend/urls.py | 286bf72ee53476aac3e84eb4719abbef526f6fec | [] | no_license | albus12138/NKTC-Website-Django | f32594e7de7397b1e70ccaa6e0dafbd2ff2caaf6 | 3c96ae272f226b33927bbdd0b05057127824a6ef | refs/heads/master | 2021-01-23T16:26:51.251044 | 2015-08-06T08:28:37 | 2015-08-06T08:28:37 | 39,332,441 | 0 | 1 | null | 2015-08-06T08:28:37 | 2015-07-19T12:07:38 | JavaScript | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf.urls import patterns, url
from frontend.views import index, main_menu, secondary_menu, secondary_menu_all, search, content
urlpatterns = patterns('',
url(r'^$', index, name='index'),
url(r'^s/(?P<main>\w+)/$', main_menu, name="ma... | [
"albus.zly@gmail.com"
] | albus.zly@gmail.com |
87cb6e36d3ce8f25552e58055a81a96c81d016d0 | 9994911f0ff388c92c21ca8178eec2d3af57082d | /teamup/cli.py | 8379e8bc873e2b905aca6bd2f170758de61ca15c | [
"MIT"
] | permissive | BruceEckel/TeamUp | 2809b36b8946b51bf96fcc113ef24ef02508f3c9 | 23e29301b462c329ad17253b4d4fb7f56fb7881b | refs/heads/master | 2023-01-05T19:06:21.010258 | 2022-12-26T23:30:44 | 2022-12-26T23:30:44 | 127,565,232 | 7 | 1 | MIT | 2022-12-26T23:30:45 | 2018-03-31T19:42:07 | Python | UTF-8 | Python | false | false | 1,527 | py | # -*- coding: utf-8 -*-
"""
Combine people for group activities
"""
from pathlib import Path
import os, sys
import click
import webbrowser
from teamup.pairings import Pairings
from teamup.PersistentLoopCounter import PersistentLoopCounter
attendees = Path("Attendees.txt")
html = Path() / "html"
@click.group()
@c... | [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
6e99c540a9920a214daca8c0db37c178bf0617b8 | 6a2a0ba0b3bb304fe8c844474f874619dd5b7df4 | /week1/ex8.py | 247891629a29d1b0bf731d0d4d7d07e8d5f97038 | [] | no_license | pbenipal61/iot-data-analysis | 583e1491c0819fd10c7e07b31d93c5ef11f37d57 | 7e2f3ed4b85f83cf6bc9e3ccf1d8b250ead0e995 | refs/heads/master | 2022-12-15T07:00:25.305896 | 2020-09-17T21:18:04 | 2020-09-17T21:18:04 | 291,765,540 | 0 | 0 | null | 2020-09-17T21:18:05 | 2020-08-31T16:20:14 | Python | UTF-8 | Python | false | false | 88 | py | import numpy as np
matrix = np.reshape(np.arange(100, 200, 10), (5, 2) )
print(matrix) | [
"t8sipr00@students.oamk.fi"
] | t8sipr00@students.oamk.fi |
0bb8dade96e13574b8b889e8b669455156c204b5 | e3d756f8723dc133fc8ed8339ade09ed3fde4bfe | /src/0_CD/src/interpolate.py | 2e85244f686e5dbaed290eef016eaee049f4ab78 | [] | no_license | chomamat/fit-bp | 6efb89711a4070d6d6b0cbf0f9d4560af2b64a69 | ba8261ba07cd5c36683a30526126ccc0808caf03 | refs/heads/master | 2020-04-24T02:53:48.026649 | 2019-05-19T19:44:49 | 2019-05-19T19:44:49 | 171,653,155 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import getopt
import cv2 as cv
import numpy as np
import sys
import torch
import torch.nn as nn
from models.interpolation import Model
# Device for running computations
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
# Not computing gradients for better computationl performance
torch.set_grad... | [
"chomamat@fit.cvut.cz"
] | chomamat@fit.cvut.cz |
44f3dee156facd70866135a80c736611e2656831 | ce88c0222e5c770ecfc4e05bf61c55371e8d9a92 | /termext/abs_kw_pair.py | fdbe8a9e205b722f7db84f8d23657b3267f917af | [] | no_license | melsk125/ner | 31683f83fc6343a49421ae3879f5aae80c601267 | 77d9ccad029f1d5d9c916f5d3d73a7132a6e411a | refs/heads/master | 2021-01-10T21:59:30.940959 | 2012-04-01T08:44:33 | 2012-04-01T08:44:33 | 2,889,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import lib
import sys
import re
from optparse import OptionParser
from nltk import word_tokenize
optionParser = OptionParser()
options, args = optionParser.parse_args()
if len(args) == 0:
raw = sys.stdin.read()
else:
f = open(args[0])
raw = f.read()
lines = lib.get_dat_sgml(raw)
"""
Assume the inpu... | [
"mel.sk125@gmail.com"
] | mel.sk125@gmail.com |
d49733bfac92a4f491e624790358f0aa6cb9d05f | a65cdc270f7c900c8f0dce75c88f4eb23bfcd856 | /tryzero.py | 77cf02d8b20fd5a1942b87b1b5e7e16c09235699 | [] | no_license | noufila/python-programs | a31ff0916d987f8307f809c12c44d11989245a0a | 8ddfeeb0aae757bdf4e269cb28b55271f3888726 | refs/heads/master | 2020-03-28T01:25:00.730879 | 2018-09-11T10:37:19 | 2018-09-11T10:37:19 | 147,503,389 | 0 | 0 | null | 2018-09-11T10:37:20 | 2018-09-05T10:51:57 | Python | UTF-8 | Python | false | false | 187 | py | try:
n=int(input("enter a number"))
n1=int(input("enter a number"))
print(n/n1)
except ZeroDivisionError as err:
print("second number cannot be zero")
print(err) | [
"noreply@github.com"
] | noufila.noreply@github.com |
482dcaf3edc7af83efcf3fa4d13ebaf71dfa5d7b | e9e6ce520a2abae5e13363b47fbd6e9ebfc6c73f | /descriptions/three_pi_description_copy/scripts/move.py | ab89d306bb17e85d91a935f83254f8d8ee76dcd8 | [] | no_license | Lizzylizard/ReinforcementLearningByElisabeth | 755b5fff13f06f3f452e12a7eb6b48722e3bf3c2 | 10d612d454864028462e85d5349d4440833a3797 | refs/heads/main | 2022-12-29T07:52:47.828097 | 2020-10-16T13:04:07 | 2020-10-16T13:04:07 | 304,057,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | #!/usr/bin/env python
import rospy
#from /home/elisabeth/catkin_ws/src/ROS_Packages/my_msgs.msg import VelJoint
from my_msgs.msg import VelJoint
def move():
# Starts a new node
rospy.init_node('move_three_pi', anonymous=True)
velocity_publisher = rospy.Publisher('/cmd_vel', VelJoint, queue_size=10)
ve... | [
"elisabeth.milde@informatik.hs-fulda.de"
] | elisabeth.milde@informatik.hs-fulda.de |
da6a4ecd79cdde4a64fed17365c2700d3e0e3243 | b801f7f8258660ab5e186aa64108f9a1e481c785 | /eithne.py | ac1437d6922c8f5dfbb3580b43d10ed6519d4137 | [] | no_license | aureoares/eithne | 8ab9c094c6bf49861e86fda9f6a23b2a4e5bf844 | 4d8020753a272d283b7e14c6ae9b5129853dd17f | refs/heads/master | 2021-01-22T06:58:46.730744 | 2010-04-06T18:07:29 | 2010-04-06T18:07:29 | 37,327,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,772 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ConfigParser
#import optparse
import pickle
#import BeautifulSoup
import MySQLdb
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
import ansley
def loadConf(conf_file):
"""Carga la configuración de un fichero y la guarda en un diccionario."""
c... | [
"?ureo Ares@localhost"
] | ?ureo Ares@localhost |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.