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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a89353fe1bf9bc2c3a18a54b8aa626d89c3dc77 | 15978aacf0e44a890e36ff94c305aca5a056e5e8 | /13day/10-有返回的装饰器和通用的装饰器.py | 49f8d4065d8cba8ccf18b0da1614f1193e0a14d8 | [] | no_license | ittoyou/1805_python_2 | ffbe613d893208b2454ef4f25cc2b8a9951ff047 | 1d6331a83598863042912bb26205d34417abed73 | refs/heads/master | 2020-03-24T13:58:12.276827 | 2018-07-27T07:58:57 | 2018-07-27T07:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | def w1(fun):
def inner(*args,**kwargs):
print("验证登录")
return fun(*args,**kwargs)
return inner
@w1
def play(a,b):
print("------------%s-----%s----------"%(a,b))
return "hehe"
ret = play("1","2")
print(ret)
@w1
def play1():
print("哈哈哈")
play1()
@w1
def play2(a):
print("哈哈哈2%s... | [
"qingyuan@geekniu.com"
] | qingyuan@geekniu.com |
249d0fc847698e8656f69bffdac9648ab002c339 | 45614a944ffbdb75a0bef955582a722da5ce7492 | /python/selenium/delta_time.py | f3a2a4edc43929e36dcdc6408809e7ed0457801f | [] | no_license | wccgoog/pass | 1c8ab5393547634a27c7543556a75dec771a9e3d | 0ec01536ae10b3d99707002c0e726072acb50231 | refs/heads/2 | 2023-01-15T13:27:26.312648 | 2019-10-23T09:30:45 | 2019-10-23T09:30:45 | 122,595,075 | 0 | 2 | null | 2023-01-07T10:42:38 | 2018-02-23T08:38:36 | JavaScript | UTF-8 | Python | false | false | 1,938 | py | # -*- coding: utf-8 -*-
import datetime,time
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def write_del... | [
"wcc3@sina.com"
] | wcc3@sina.com |
775cd1d52f3be2c7466a0a059e18e4b512147420 | 82daa207e1f70369f77f5f9ddd9978c39a0c1b79 | /kirimsms.py | c57d4fda275c6319a57ccad1573fd26171184395 | [] | no_license | tenizbr/bacasms | 11b3b1baee22c5fd5ec27d486a69fef7c4a1aebc | 0f7e36bc323a6bdc355c951ef9be4e254f70707b | refs/heads/master | 2021-01-01T18:49:19.287454 | 2015-06-24T14:33:57 | 2015-06-24T14:33:57 | 37,904,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/env python
"""
sms.py - Used to send txt messages.
"""
import serial
import time
class TextMessage:
def __init__(self, recipient="0123456789", message="TextMessage.content not set."):
self.recipient = recipient
self.content = message
def setRecipient(self, number):
self.re... | [
"teni.tresnawati@gmail.com"
] | teni.tresnawati@gmail.com |
3679dbbc8bc44685045edec9a6d71a1e00d53833 | 45ee96b582d7b3e045819db510088d2cb640dfde | /BOJ/Previous/Implementation/완전제곱수.py | e78f92dafcc73f0e1bfc49baa5f3d15bd4298468 | [] | no_license | tom9744/Algorithms | e54b649014f3b478bfbc7a0f9e8e56ad5dbc1304 | 4496b1c992ab4322289e5a200567f3df00478917 | refs/heads/master | 2023-05-06T00:59:12.767655 | 2021-05-26T16:26:50 | 2021-05-26T16:26:50 | 330,401,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # 1977 : 완전제곱수
import math
M = int(input())
N = int(input())
perfect_square_numbers = []
for number in range(M, N + 1):
if math.sqrt(number).is_integer():
perfect_square_numbers.append(number)
if len(perfect_square_numbers) == 0:
print(-1)
else:
print(sum(perfect_square_numbers))
print(perf... | [
"tom9744@gmail.com"
] | tom9744@gmail.com |
121f9c22056af85d16160adacd12d9b6a5a75f8b | 1d7d47afeee3f8a53c778ef18544a91bcfe119ad | /demo/lp_demo.py | 505d391d6508f532c9a6cc64d85b257ab5e616f9 | [] | no_license | matanost/ARAS-Final-Project | d4b181df597dd5638b9033c8de5727e7b19feb25 | 624f9881974bfacda165fccf1633bc2d45a45575 | refs/heads/master | 2020-09-28T18:26:07.836332 | 2020-03-16T18:20:52 | 2020-03-16T18:20:52 | 226,835,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py |
from LP.linear_programing import simplex_result
import numpy as np
TOLERANCE = 0.001
def class_example():
A = np.array([[3, 2, 1, 2],
[1, 1, 1, 1],
[4, 3, 3, 4]])
b = np.array([225, 117, 420])
c = np.array([19, 13, 12, 17])
c = c.transpose()
s = simplex_result(... | [
"shiran.aziz@gmail.com"
] | shiran.aziz@gmail.com |
0cfbe10181f10df8829276d0b38f0d45af306190 | 3155cd6616fa6431648d0358369f01410e5f1d3c | /src/testpkg/__main__.py | ea77996f52eb4cc37c25bc255a18d416a845944c | [
"Apache-2.0"
] | permissive | subbyte/python-config-install-test | 3067e0d7db65d5274cea524c43ceeae116c4ab9b | 802a32ca5e953cad67b9ed06c7105ba128d66728 | refs/heads/main | 2023-05-07T22:42:37.936625 | 2021-06-03T01:43:27 | 2021-06-03T01:43:27 | 372,955,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import os
import pathlib
if __name__ == "__main__":
pp = pathlib.Path(os.path.join(os.getenv("pythonLocation", "/")))
print(pp)
ppcfg = pp / "etc" / "testpkg" / "testpkg.conf"
print(ppcfg)
with open(ppcfg) as h:
print(h.read())
| [
"subbyte@gmail.com"
] | subbyte@gmail.com |
df36af9c597acf1c47522428b4ce793ef2d0c96a | 1f11fb9c91d06249388838a991a3c5e2d7c5922e | /innovation_dreams/settings.py | 7bc4cadf4aa4cfda367c488a9101fb7bf03c4a61 | [] | no_license | alexolirib/inovation_dreams_backend | ee80f9da35bb7f7af5e6a44c2e17f02406339ba5 | 67bfda33e30038307459e41ba6c86ab66facd1dd | refs/heads/master | 2023-05-01T09:59:35.288115 | 2020-05-30T23:11:46 | 2020-05-30T23:11:46 | 205,766,843 | 1 | 1 | null | 2023-04-21T20:37:09 | 2019-09-02T03:01:52 | Python | UTF-8 | Python | false | false | 4,066 | py | """
Django settings for innovation_dreams project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"alexolirib@gmail.com"
] | alexolirib@gmail.com |
38882048329053e5b49a2b61b7b397243de6c0e8 | aec3410491c7f572a08fd11d050e34629629cf5a | /Blodsukker/blodsukker.py | 73f3c77f19bac3b153158db232d7326a9e3b2050 | [
"MIT"
] | permissive | RaStrand/progNaturfag | ef7858ef305b4b981e7ab3d224944c0da114335a | bb3709762fe17436a53f83bc85b4695b73be303d | refs/heads/master | 2021-10-12T02:46:30.000518 | 2019-01-31T20:39:07 | 2019-01-31T20:39:07 | 268,751,528 | 1 | 0 | MIT | 2020-06-02T08:59:14 | 2020-06-02T08:59:13 | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 29 18:11:17 2019
@author: emithun
"""
from pylab import*
tid = [0, 10, 20, 45, 60, 90]
kontroll = [4.5, 4.8, 4.3, 4.5, 4.9, 5]
cola = [4.0, 8.0, 9.3, 6.5, 5.4, 4.5]
zero = [4.3, 5.6, 5.4, 4.9, 4.0, 4.2]
nyTid = array(tid)*2
plot(tid,kontroll,tid,cola,t... | [
"noreply@github.com"
] | noreply@github.com |
dbb9d90b565890213e8b68e863b19b836cbdd4c3 | 17dc68eb7153673aef566aab3c8f1af05d28c721 | /Extension.py | 076d49abfc60580f5d88b9c00566ea0b4f6c9d31 | [] | no_license | gurudarshans1910/project- | 06012f39bfe2dfac2ea5571857b92cda58a016f5 | 1ad4382a5f58a19f7f52daa82a0a86b592cffeac | refs/heads/master | 2022-11-27T17:54:08.300517 | 2020-07-26T11:45:33 | 2020-07-26T11:45:33 | 279,602,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | file_name = input("Enter the file name \n")
file_extn = a.split(".")
print(" The extension is" + repr(file_extn[-1]))
| [
"noreply@github.com"
] | noreply@github.com |
11d91f7682d807291ec8c6d20fa64f3166ad3a77 | f682c74fb65f0d951821b77bf96cee28d00ae3dd | /博物馆网数据采集子系统/展览爬取/广东省博物馆展览爬取.py | a267ae318e81038908bb00ebc4349ddfeb6944bd | [] | no_license | 1806-1/Software-engineering | 7e5add7b40d123dca0daa39d83a8fc4c16f8cb0d | 0a75ed857410bb8e1f882bd8e49504c43590ffd8 | refs/heads/main | 2023-05-13T00:07:58.579811 | 2021-06-06T08:09:41 | 2021-06-06T08:09:41 | 354,178,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 16 09:21:11 2021
@author: lenovo
"""
import requests
import pandas as pd
import csv
from bs4 import BeautifulSoup
hdrs = {'User-Agent':'Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)'}
# 博物馆活动列表页网址
url = "http://www.gd... | [
"noreply@github.com"
] | noreply@github.com |
113710c73f25346364b05539416c76394df2f58f | 115163545626f29825f09c7968320a492110c2a5 | /firebase/firebase/settings.py | 5c82483dd00707ce3ea6ad54c20c86089546b8b4 | [] | no_license | Rushiahire/Django_firebase | 9848143716c6d3fca28ed9d1810edf4120e8bae1 | 72fcd69e15da27800623afa74c2159be6950305e | refs/heads/main | 2023-09-02T11:54:38.879866 | 2021-11-20T17:04:04 | 2021-11-20T17:04:04 | 430,160,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | """
Django settings for firebase project.
Generated by 'django-admin startproject' using Django 3.2.8.
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/
"""
from pathli... | [
"rushiahire9567@gmail.com"
] | rushiahire9567@gmail.com |
8dcc5b1858c1ac40df3890d2861e9eaf22442438 | f9c98f9c127fa1cd9fba17abe17199fb5440b36b | /andy_li/django/django_intro/disappearing_ninjas/disappearing_ninjas/apps.py | 4075e272dbd1935f798f0a5e98afdbdc40b07924 | [] | no_license | RibRibble/python_april_2017 | 162e543f97afc77d44fcc858106e4730d3f7f760 | 3cc4240d371a8bad8da2ea085e3675272cca2de3 | refs/heads/master | 2021-01-19T01:12:34.667828 | 2017-04-27T22:11:53 | 2017-04-27T22:11:53 | 87,233,010 | 1 | 0 | null | 2017-04-04T20:41:44 | 2017-04-04T20:41:44 | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class DisappearingNinjasConfig(AppConfig):
name = 'disappearing_ninjas'
| [
"iandyli@gmail.com"
] | iandyli@gmail.com |
c457b7447520af9b8cde005c50bbaf62e7dae776 | 08d5e67db673a0e4c46f4c6967e49c20479b254e | /airexpress2.py | 5a50df81cd5c566baad52588d1b43cac7b6ae96f | [] | no_license | Willenbupt/Python | f49235c7cb6e8f0b7c08f0ac106ec68fef9423ec | d5cf8c41ac4fbf563389b91478b8b271f6c2986e | refs/heads/master | 2022-06-05T08:33:34.421782 | 2020-05-02T06:08:13 | 2020-05-02T06:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,267 | py | import sys
import re
class Data:
exchange_rate = 7
discount = 0.65
product_title = None
final_price = None
product_name = None
china_price = None
product_price = None
weight = None
freight_charges = None
china_product_url = None
profit = None
shippment_charge = None
... | [
"noreply@github.com"
] | noreply@github.com |
a4fc15a9e217a1380aa452ca9495d4b79182a1b4 | 303be1b0357a01faa6f748ac4fb6c4b1c45ac725 | /06_is_palindrome.py | 4b47e7cc461a25ad6600210ce7f869160ca83be8 | [] | no_license | ghufransyed/udacity_cs101 | 17747083de3991ac256b7cac1ccff0f71acc7d80 | 30084c3ee8f32d9b6edcaf007b08a99da90efc79 | refs/heads/master | 2016-09-06T14:29:26.055550 | 2014-02-19T12:52:14 | 2014-02-19T12:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # 06_is_palindrome
def is_palindrome(s):
if s == '':
return True
else:
if s[0] == s[-1]:
return True and is_palindrome(s[1:-1])
else:
return False
print is_palindrome('abba')
| [
"ghufran.syed@gmail.com"
] | ghufran.syed@gmail.com |
b7ee65bfd9352b7f35dcd621f0d341848a5f8836 | 1f4e01585bf3fd07fede636c482c88914d3caa61 | /tools.py | c9ae09a9d8e55180ef487fda941fc02110fca465 | [
"MIT"
] | permissive | afcarl/genetic_ptsne | 99b5ce3bd6118ffd85b2af0838c3537f0d63ef2a | 4edbc228b0bc77f7263b6285e13a954f7020669e | refs/heads/master | 2020-04-23T18:11:20.132166 | 2018-12-21T01:07:30 | 2018-12-21T01:07:30 | 171,357,927 | 1 | 0 | null | 2019-02-18T21:21:36 | 2019-02-18T21:21:36 | null | UTF-8 | Python | false | false | 820 | py | import pandas as pd
from pathlib import Path
# need a function to write out the transformed data to a csv
# NOTE this function should be altered to write datafile into a specific directory
def write_csv(input_data, specified_filename):
# turn input_data into a pandas dataframe
df = pd.DataFrame(input_data)
# write... | [
"tylerharrold@gmail.com"
] | tylerharrold@gmail.com |
ba056f23c31bedff0a62a7a936c8f4d65f3efb17 | f86eede4f262d8fa17ff870b1fbab87eae31bafa | /azureml_wrapper.py | d5432191b5be596cbb7a568461f63687b024b37a | [] | no_license | nasadigital/diplomska-instagram | 84a356883404e9ebad3d28395177e69ecd48122e | 7c65a53f6046c26e0ec7ff50de0e89773a32e657 | refs/heads/master | 2020-03-30T17:21:34.799690 | 2020-02-03T06:48:53 | 2020-02-03T06:48:53 | 151,452,063 | 0 | 0 | null | 2020-01-28T23:16:21 | 2018-10-03T17:23:56 | Python | UTF-8 | Python | false | false | 1,101 | py | from azureml.core import Dataset, Run
from load_data import train_test_bert, prep_train_test_bert
import random
random.seed(4)
run = Run.get_context()
workspace = run.experiment.workspace
dataset = Dataset.get_by_name(workspace=workspace, name='dataset')
dataset.download(target_path='.', overwrite=False)
dist = Dat... | [
"12337821+nasadigital@users.noreply.github.com"
] | 12337821+nasadigital@users.noreply.github.com |
f29c2824cc885dac4691b3a988b7b70954d4d8f4 | 21dc20848ecd3bb471668890d90d7a71e6a5e200 | /VulcanoFileFormat/vulcano_file_format/exporter.py | 12b28919f968a77f6b92473f2b3e5b1ed7e44dfb | [] | no_license | Zingam/VulcanoFileFormat | 0165ef33f49174c3421db4d1f39bcf2ad50ac2a8 | 578f2387f4c0e5168d6cbf9ea904cad51cf160c4 | refs/heads/master | 2021-06-08T19:39:28.382926 | 2021-04-10T08:18:01 | 2021-04-10T08:18:01 | 131,746,439 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,764 | py | FFM_MESSAGE = "Vulcano File Format Exporter:\n "
# This is required to support reloading of modules in Blender with F8
if "bpy" in locals():
import importlib
importlib.reload(utils)
else:
from .blender import utils
import os # noqa
import bpy # noqa
import bmesh # noqa
def print_bl_collection_obje... | [
"zingam@outlook.com"
] | zingam@outlook.com |
8a713a117dc1862bde8e05096dccf16502dfd405 | 20cb93e6271bf2bac3bb66421a44f81219a4d256 | /p010-p019/p013/p13-01.py | 09293a91d9328e71ba1036e9cf7f277f2ffd2d24 | [] | no_license | rojasreinold/Project-Euler | 0d43f04836458d1e77985da6e807e11fecb57b60 | 8e3f9ab4ff125d32d5f8f6e8bd0f2fc297da0469 | refs/heads/master | 2021-01-15T09:38:41.142886 | 2016-09-20T14:49:16 | 2016-09-20T14:49:16 | 35,523,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def findSum():
with open('input.txt') as f:
nums = f.read()
nums = map(int,nums)
numSum = sum(nums)
return numSum
data = findSum()
print data
| [
"rojasreinold@gmail.com"
] | rojasreinold@gmail.com |
408ba4fead11ceafb960751bf256d4555bc84bae | 03f9339d6eb2437abae55676b2003fe87d7c0891 | /abides/agent/ExchangeAgent.py | 821c9e198adbd89fc286f689ccc43fb3c4b5f24a | [
"BSD-3-Clause"
] | permissive | rom42pla/ai4t_project | e94a336ebc16f8006f4c7c0ecdc0aac6f011e8ac | 6c51b57e54cd824594ff2bfa73c289e2b4898954 | refs/heads/main | 2023-02-03T21:58:37.155751 | 2020-12-22T10:21:53 | 2020-12-22T10:21:53 | 311,788,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,003 | py | # The ExchangeAgent expects a numeric agent id, printable name, agent type, timestamp to open and close trading,
# a list of equity symbols for which it should create order books, a frequency at which to archive snapshots
# of its order books, a pipeline delay (in ns) for order activity, the exchange computation delay ... | [
"romeo.lanzino@gmail.com"
] | romeo.lanzino@gmail.com |
4b5efebc4389a93d8965252d6fc514aa5bf9f279 | 636f71a073d3daccbd48901dbb0107178001d157 | /polls/migrations/0004_auto_20180529_1821.py | 8eb2b22b4b3cb066f4d05fa0f0ea0b449cb0c553 | [] | no_license | sakten/DjangoPlay | 414a5a7d9830296488c5d2f2fab2f269f122ea57 | 84d1f8107cefd7ddb9bcda4750cdaa9adee07e1e | refs/heads/master | 2020-03-18T21:37:22.014156 | 2018-05-29T14:57:19 | 2018-05-29T14:57:19 | 135,290,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 2.0.5 on 2018-05-29 13:21
from django.db import migrations, models
import polls.models
class Migration(migrations.Migration):
dependencies = [
('polls', '0003_auto_20180529_1649'),
]
operations = [
migrations.AlterField(
model_name='player',
... | [
"viktor@duhin.ru"
] | viktor@duhin.ru |
072d03ff2ba39018825c54d08383c435c59fd1c1 | a3f075cf0a563f5db4ee7d7523c8d73c33387f31 | /dev/arcadiy/users/admin.py | 889c7dd4084dfb6c2b5268f5da94685d75fac441 | [] | no_license | Siragle/arcadiy | bd110d264e50e80021c3b8b009e9cf65859bd50b | f12d5c9fce5f23ff244fb69a8dc48afec0927178 | refs/heads/master | 2020-06-19T11:58:54.385351 | 2016-12-10T09:58:48 | 2016-12-10T09:58:48 | 74,906,455 | 1 | 2 | null | 2016-11-28T01:50:49 | 2016-11-27T18:33:19 | null | UTF-8 | Python | false | false | 87 | py | from django.contrib import admin
from .models import Users
admin.site.register(Users) | [
"kurasixo@gmail.com"
] | kurasixo@gmail.com |
48ad6ffb2dfecc64d85b489070c222650a5850db | d0fea7640a52077780689eda4e4b8ffde957bfc9 | /common/models/food/WxShareHistory.py | 4b50ecb9f01abd7dae250faa969e03b8c517b63a | [] | no_license | AClearZhang/orderself | 0367c7fee8d09885b6b0ec2fb0f07018d761c7b8 | 0ea57aa83ca99261af400c2fb500047763f4b80d | refs/heads/master | 2020-05-24T15:44:24.465007 | 2019-06-16T16:58:29 | 2019-06-16T16:58:29 | 187,338,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from application import db
class WxShareHistory(db.Model):
__tablename__ = 'wx_share_history'
id = db.Column(db.Integer, primary_key=True)
member_id = db.Column(db.Integer, nullable=False, s... | [
"aclearzhang@qq.com"
] | aclearzhang@qq.com |
992516ce3652fb5fdf7cfa11f3646e3c6acdf4b7 | e1541afdd52726925f17e65ff72b6299524b2f46 | /android/make_qr_code.py | 847cc3075fa94856e8cbee747ebd0782e382fa29 | [
"Apache-2.0"
] | permissive | thedod/loplop | c4bcc9074d40ac6c909b5985a168f5af7481d12a | f73e7409531bcb4b27dfd1f2f97080b4703fdb59 | refs/heads/master | 2022-10-01T21:00:59.482434 | 2022-09-11T06:09:16 | 2022-09-11T06:09:16 | 6,298,872 | 0 | 0 | null | 2012-11-13T19:30:46 | 2012-10-19T17:32:56 | Python | UTF-8 | Python | false | false | 965 | py | # Based on the SConscript of oplop's SL4A implementation
# https://code.google.com/p/oplop/source/browse/SL4A/SConscript
from __future__ import with_statement
import urllib
import urllib2
def qr_code(target, source):
"""Generate the QR code for the SL4A script using the Google Chart API.
The docs on the cha... | [
"unclezzzen@gmail.com"
] | unclezzzen@gmail.com |
effd970a9c63169de112e9a092fee62ef99c0409 | 10a9b06ae623c2ea6ecfc1b62d9e3ea60ed85cad | /route.py | 702bab237bdec3c8d6ebc751c48e9b31a85028d0 | [] | no_license | giselezrossi/python_flask_crud | f9138a7001b2ba4b790d0e07fd335358fc77482a | 84acd5b4e7931bec2a5cd7cff00680f8a2563014 | refs/heads/master | 2020-08-19T09:47:43.155317 | 2019-10-18T00:01:47 | 2019-10-18T00:01:47 | 215,906,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route("/")
def index():
return "Hello!"
@app.route("/minhaaplicacao", methods=['GET'])
def get():
return "teste"
@app.route("/minhaaplicacao", methods=['POST'])
def post():
data = request.json
return jsonify(data)
@app.route("/mi... | [
"giselezrossi@gmail.com"
] | giselezrossi@gmail.com |
199693aef1523a92dec280c913acd26fa75b684e | e21e7623d99312dc8a4c0eedc0febb22d24c7918 | /venv/bin/futurize | fa21932432d4e2703fbdc5920b7e4f2b8d2c7dd4 | [] | no_license | axelonet/E-voting-system-on-blockchain | 49aa9b2b45f75e85ed9de4d113849c1f3d95dd1d | 2651bab50f29a2b68ad17b2d2240279af2f24419 | refs/heads/master | 2023-01-04T04:03:44.817356 | 2020-04-15T06:06:36 | 2020-04-15T06:06:36 | 255,822,230 | 1 | 0 | null | 2020-10-25T11:52:19 | 2020-04-15T06:12:39 | null | UTF-8 | Python | false | false | 446 | #!"/Users/anmolpanwar/Documents/PycharmProjects/python practice/venv/bin/python"
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"anmolpanwar8@gmail.com"
] | anmolpanwar8@gmail.com | |
8c2adeb23592943fc36a72d83ef45349225a505f | e8a9ae801883cb9e3801ce27cf108897f3ff51f0 | /demo1.py | f2c3de5723ca0769be38d960e4179513dfde0ae9 | [] | no_license | vinay4goud/python_list | c12e6be861f704ee25bde7bf96e9706b4d1ae883 | 2f1cda1937d745c56679ea78cd6c3d31caff9f00 | refs/heads/master | 2020-04-19T11:38:15.573863 | 2019-04-02T11:25:02 | 2019-04-02T11:25:02 | 168,172,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | """
reading a file , extracting datetime , name and content from the file
"""
# importing regular expression to execute the string as per requirment
import re
import datetime
# Classes provide a means of bundling data and functionality together
class expresions:
# function to assign values
def __init__(self... | [
"noreply@github.com"
] | noreply@github.com |
2d4093ec9864e6829b7393915632ac707442a1c5 | c53677b8a1c0827954dc9cc3143ea4cd6812d3d8 | /avito_russia/phonenumbers.py | 9b1ed8b7ac3005eb5dd056f32288c66c35d0c0b4 | [
"Apache-2.0"
] | permissive | kubikrubikvkube/python_avito_buddy | c69ca897fdd075901de85f1370ca176a04addc8f | 3bae8dbc30820f2afd00abbb559d70c0e55e8dfd | refs/heads/master | 2022-04-11T18:11:52.527030 | 2020-03-21T15:17:52 | 2020-03-21T15:17:52 | 189,567,037 | 4 | 1 | Apache-2.0 | 2019-07-17T14:21:31 | 2019-05-31T09:27:11 | Python | UTF-8 | Python | false | false | 237 | py | class PhoneNumberValidator:
@staticmethod
def is_valid(phonenumber: str) -> bool:
if phonenumber and phonenumber.startswith("7") and len(phonenumber) == 11:
return True
else:
return False
| [
"Vyacheslav.Raskulin@nordigy.ru"
] | Vyacheslav.Raskulin@nordigy.ru |
d86ed4f17212a8f42d127913036943b12e29ab0c | e3cce830548e9f1f88df5cbf347df610b842fbca | /ass23.py | 9d4d86dc12d88ef2de5c12353441411cb1060da2 | [] | no_license | TapaniAlastalo/python_practices | d666de675ffd1e524b436f8cc790557505d2c47b | 54dc3eb7a1bd2a6e3ccf9d5b901d8d48c16b8eb9 | refs/heads/master | 2020-12-12T12:15:54.775583 | 2020-01-15T16:36:22 | 2020-01-15T16:36:22 | 234,125,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | def calculator(command, first, second):
if command == "add":
return first + second
elif command == "sub":
return first - second
elif command == "multiply":
return first * second
else:
return 0
print(calculator("add", 1, 2)) #should print 3
print(calculator("sub", 1, 2)) ... | [
"tapani.alastalo@gmail.com"
] | tapani.alastalo@gmail.com |
14e8824bedd651f4e64c978ea76622167087b5e4 | 7c9dfab9ee71de58544190fcdb8c145fcc73be20 | /keras_style_transfer/library/style_transfer.py | 412031162ead989af4fe10510b4a7548f6218b10 | [
"MIT"
] | permissive | javad-sajady/keras-style-transfer | 1b7b2258729d90fa9716b20aafa3a759ec64fb87 | 2cb755498bc64d26bedc2e660604eee48fa15aa3 | refs/heads/master | 2021-09-07T00:17:00.014549 | 2018-02-14T02:32:06 | 2018-02-14T02:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,004 | py | from keras_style_transfer.library.nst_utils import *
from keras_style_transfer.library.download_utils import download_vgg19
import numpy as np
import tensorflow as tf
def compute_content_cost(a_C, a_G):
"""
Computes the content cost
Arguments:
a_C -- tensor of dimension (1, n_C, n_H, n_W), hidden lay... | [
"xs0040@gmail.com"
] | xs0040@gmail.com |
151fd4393177bc88c5958eb560822b38b133d9cb | 815ebbc235d2daf2f69e922998abcfd4a2cb5ae0 | /omexml_write.py | 8b2fad9b2cd2bf97aaa2031aa76ff8246570751d | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sebi06/BioFormatsRead | f573638d58fefa73f78a495da85c44eb39aafc29 | d8297fba2f76152ef9d2056c03fef226c8d35420 | refs/heads/master | 2021-06-10T00:17:30.083911 | 2021-05-21T14:58:28 | 2021-05-21T14:58:28 | 36,077,548 | 13 | 7 | null | 2017-10-04T14:42:35 | 2015-05-22T14:48:21 | Python | UTF-8 | Python | false | false | 602 | py | import numpy as np
import bioformats
import bioformats.omexml as ome
import javabridge as jv
import bioformats.omexml as ome
filename = r'testdata\T=30_Z=23_C=2_x=217_Y=94.czi'
urlnamespace = 'http://www.openmicroscopy.org/Schemas/OME/2016-06'
# Start JVM for bioformats
bfpackage = r'c:\Users\m1srh\Documents\Software... | [
"3833249+sebi06@users.noreply.github.com"
] | 3833249+sebi06@users.noreply.github.com |
f7b624c2386cf18bed60fd718766707f607adf30 | 8de952cde09fd46fb117b5337ce41fff3a2476bf | /Priyanka and Toys | 8275cb3af0edba6eab4811a179c1b6de5587dbf4 | [] | no_license | saikiran-007/Hackerrank-coding-solutions | bdbeb23c0fe3fa90091e75a05859742a5aee511c | 15496c96a9b9e2e198d73289adc68d03f14afa46 | refs/heads/master | 2023-06-27T03:56:27.831496 | 2021-07-28T09:56:12 | 2021-07-28T09:56:12 | 256,973,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the toys function below.
def toys(w):
w=list(set(w))
w.sort()
c=0
i=0
while i<len(w):
t=w[i]
j=i+1
if j<len(w):
while w[j]<=t+4:
j+=1
if j==len(w):... | [
"noreply@github.com"
] | noreply@github.com | |
0ba59acfa8f0211a664bd88acd4882ccb1be8081 | 97def1949bca845f40a2fb99fe7496e698f51764 | /pyomo/contrib/parmest/examples/semibatch/parmest_parallel_example.py | ddaa0d303c9eb40f0da17dcab009aebdbfd6c9f5 | [
"BSD-3-Clause"
] | permissive | flexciton/pyomo | e009e5d300d27d943408a1ee5e0e1770d772a7fe | 817bebc9c10f527263b2b8402fb1c038f1b37cf1 | refs/heads/master | 2023-03-03T08:56:22.922613 | 2022-01-18T15:22:57 | 2022-01-18T15:22:57 | 241,679,253 | 1 | 1 | NOASSERTION | 2022-04-11T16:48:48 | 2020-02-19T17:24:37 | Python | UTF-8 | Python | false | false | 1,845 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC,... | [
"kaklise@sandia.gov"
] | kaklise@sandia.gov |
e8f681e5343e00949fc0e08ea2a9238f224f882a | e8d927d593e2d8d08004e12ec11988062b9df8b3 | /typeidea/comment/forms.py | 91ba5d861325db5bce891dcee5d8f3d7fa0a14ba | [] | no_license | choupihuan/typeidea | 9c4f6a90dfb53f94dcaeb15e5e6e915f9f9e0ee6 | f8e13b1e4afd0f67bf365bdbb04e35cc4f56a0da | refs/heads/master | 2020-06-05T19:51:29.757681 | 2019-06-29T11:32:46 | 2019-06-29T11:32:46 | 192,530,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import mistune
from django import forms
from .models import Comment
class CommentForm(forms.ModelForm):
def clean_content(self):
content = self.cleaned_data.get('content')
if len(content) <10:
raise forms.ValidationError('内容必须超过10')
return content
class Meta:
mod... | [
"1193496683@qq.com"
] | 1193496683@qq.com |
7ffa82f194c3ea745e4353afbfb80085484f5606 | dd256415176fc8ab4b63ce06d616c153dffb729f | /aditya-works-feature-python_programming (1)/aditya-works-feature-python_programming/23-Jul-2019/method_examples/class_methods_2.py | 05e1064eb9949454b9956604a1def6df3fba359e | [] | no_license | adityapatel329/python_works | 6d9c6b4a64cccbe2717231a7cfd07cb350553df3 | 6cb8b2e7f691401b1d2b980f6d1def848b0a71eb | refs/heads/master | 2020-07-24T17:15:39.839826 | 2019-09-12T07:53:28 | 2019-09-12T07:53:28 | 207,993,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class DecoratorExample:
def __init__(self):
print('Hello, world')
@classmethod
def example_function(cls):
print("In a class method ")
cls.some_other_function()
@staticmethod
def some_other_function():
print('Hello')
de = DecoratorExample()
de.example_function()
| [
"aditya.patel@1rivet.local"
] | aditya.patel@1rivet.local |
867a5f1f4eba9c7ccf06f57e34093b307e85c1bb | 2b98ce9f3ae726824b88244790f00fc04e821b35 | /odd.py | 0ed512d0754d969d8ed18b9949a8734cf6642a7f | [] | no_license | surajmalhotra/PythonTraining | 4a055baab623a30fb4c410cb5426b8f1a2425611 | 47ab708e2f2023dbbf7e7637420994ff192f5932 | refs/heads/master | 2020-11-28T14:19:13.577724 | 2019-12-25T03:22:48 | 2019-12-25T03:22:48 | 229,845,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from datetime import datetime
import time
import random
odds = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19,
21, 23, 25, 27, 29, 31, 33, 35, 37, 39,
41, 43, 45, 47, 49, 51, 53, 55, 57, 59}
for i in range(5):
right_this_minute = datetime.today().minute
if right_this_minute in odds:
print("This m... | [
"suraj.malhotra@gmail.com"
] | suraj.malhotra@gmail.com |
68931bdd3d8a5e5a40b0dcd263dddf62e75e7643 | b90851dbf7eb42a74307b80dae00d4922bd3a739 | /learn.py | 57521041beecb91257640cd6e0159e1f66a0952b | [] | no_license | divpypandey/Smart-Handy-Device | 84b3c72ecaeb14f3a8c3b2e520c1b23b0bbf9e97 | 2bb1c2da79df78a0e22f3e8c99415643fea701cb | refs/heads/master | 2022-09-19T08:49:58.589985 | 2020-06-05T13:59:29 | 2020-06-05T13:59:29 | 269,656,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | from sklearn import datasets
from sklearn import svm
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix
import scipy as sp
import os, signals
from sklearn.externals import joblib
from sklearn.model_selection import GridSearchCV
'''
This module trains the machine learning... | [
"diviyanshupandey100@gmail.com"
] | diviyanshupandey100@gmail.com |
8ca6365e72b0a16ebf03a9b59d69b49ddbce9120 | cbb970c5adce5e3e13021aeab902382001455eff | /Calculator-D10.py | 711f14b0a8b40e8a5bd46a0ef6d375c452775409 | [] | no_license | ezenielrios/Python-Calculator | e72aec9038f0ac32615703758d49e1cad97155da | 6f4c051ab56e17f80ab9bc280c90b96e74659876 | refs/heads/main | 2023-06-13T23:38:33.054144 | 2021-07-08T02:39:51 | 2021-07-08T02:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | from replit import clear
from art import logo
#mathematical operation functions
def add(n1, n2):
return n1 + n2
def subtract(n1, n2):
return n1 - n2
def multiply(n1, n2):
return n1 * n2
def divide(n1, n2):
return n1 / n2
#Dictionary in order to call functions
operations = {
"+": add,
... | [
"noreply@github.com"
] | noreply@github.com |
8b18de84b5f869c57b8f7c04bc955792fa178d4a | 5926e6f9fa41ad986be4a3f9e7de5abbca868a54 | /ITFClusterLib.py | 6a3bda28f3b5f9099bf9ac54ff536e2a0dc53cd3 | [] | no_license | slowbrain/IsotopeFitPython | 0c0beefacf93bf9025bd85c79d5969b77013ff43 | 6314a170237fdcb3269738c077107c83e8404616 | refs/heads/master | 2021-01-17T05:34:35.073261 | 2016-02-01T13:17:48 | 2016-02-01T13:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,828 | py | # Copyright Stefan Ralser, Johannes Postler, Arntraud Bacher
# Institut für Ionenphysik und Angewandte Physik
# Universitaet Innsbruck
# Lib for Cluster calculations
import string
import numpy as np
import os
def parseFormula(mol):
#parses the molecule string (mol) and returns
#a dictionary with each element... | [
"arntraud.bacher@uibk.ac.at"
] | arntraud.bacher@uibk.ac.at |
213c49a939d8dc410a406a59c6a7a01b58c87a56 | a96c8060736be392bed0d4c7524a3964c88d2010 | /python/renrenlogin/renrenlogin/spiders/renren.py | 1a3b8b31e059b719c7e47c5941a8b13f07c6f023 | [] | no_license | yinjun123/practice | 2f830907e8a103136585ad20bdd6eab0e8c5f149 | ca086d4abaf8b2cba1ae0ccd456b7a7382dd6404 | refs/heads/master | 2021-01-01T19:37:26.742866 | 2017-07-28T08:49:04 | 2017-07-28T08:49:04 | 98,628,903 | 0 | 1 | null | 2017-10-13T12:02:05 | 2017-07-28T08:41:48 | JavaScript | UTF-8 | Python | false | false | 1,819 | py | # -*- coding: utf-8 -*-
import scrapy
class RenrenSpider(scrapy.Spider):
name = "renren"
allowed_domains = ["renren.com"]
start_urls = (
'http://www.renren.com/xxxxx',
'http://www.renren.com/11111',
'http://www.renren.com/xx',
)
cookies = {
"anonymid" : "ixrna3fysufnwv"... | [
"yinjun453712212@163.com"
] | yinjun453712212@163.com |
6d74e9a1d2d05be56583d4e503afccee874d0f96 | 0f55ac63ce134630e76ce184111b5f3a050d0c8d | /Compilateur/Python/tp1/parser5.py | eb081def981c99bf2fc8ecdeaff84d5344a78d8a | [] | no_license | roflolilolmao/thirdYear | e8091599483530a60909b17a940c9ac93cde0622 | 9a100b13485f033e12e93b57bded9369849bb36b | refs/heads/master | 2020-05-17T13:02:25.710906 | 2016-11-24T12:03:01 | 2016-11-24T12:03:01 | 42,532,557 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | import ply.yacc as yacc
from lex5 import *
import pydot
from AST import *
__author__ = 'Quentin'
var = dict()
def p_program_statement(p):
'''program : statement
| statement SEMICOLON program'''
if len(p) > 2:
p[0] = ProgramNode([p[1]]+p[3].children)
else:
p[0] = ProgramNode(p[1])
... | [
"quentin.jeanmonod@he-arc.ch"
] | quentin.jeanmonod@he-arc.ch |
55d3f0c1f3212420bb8f4c5e024af4f7024cad1b | 1186ba1cbdcd963e8d924b111e9c8b67c819df4a | /reviews/migrations/0001_initial.py | 4ee5f0ff3201cb5758eae67812f85ac6b1f74db7 | [] | no_license | nakku4251/helloworld.com | 69e481271727d0c03eb7ce78744f0849d9bdb2d7 | 418d303680df4b87689a8c1d8d66847fbfd11675 | refs/heads/master | 2023-03-14T00:38:41.946106 | 2021-02-27T08:18:04 | 2021-02-27T08:18:04 | 335,054,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | # Generated by Django 3.0 on 2021-02-05 11:31
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Review',
fields=[
... | [
"nakku@nakkunoMacBook-Air.local"
] | nakku@nakkunoMacBook-Air.local |
d1e26da41ca066d9fb3d5b038568af586648cc20 | 84dfba4609a0fc880d34a5988b2027eda830e5d0 | /billeterie_assos/event/migrations/0008_remove_profile_user_type.py | 60ee9d2632de21e8e96e27d84748d99b71421e87 | [] | no_license | Jonathan2021/django_event_website | 7a7888bddba3bf7b32bb5e4883cf0b290e117db5 | a52936d459b82f606db83e9cbc40606e97a71fb6 | refs/heads/master | 2022-01-13T12:02:35.746387 | 2019-06-26T21:56:43 | 2019-06-26T21:56:43 | 184,823,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.1 on 2019-06-07 17:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('event', '0007_auto_20190607_1839'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='user_type',
... | [
"clement.davin@epita.fr"
] | clement.davin@epita.fr |
f487928573a79250ae6d3f83431f0d7abcf93c8e | 3f6fa5bbbaf07d56f29f0054b494b9dadcd26fc6 | /backend/core/factories.py | d6fb727f180623b7fe693ecf8561450b9a8eb61c | [
"Unlicense"
] | permissive | mashuq/academia | 9a79b801b72217ab6a5935c433a9ea5704692474 | 571b3db58de4a70210ebd9d92c0f152016aec861 | refs/heads/main | 2023-05-20T04:05:41.950061 | 2021-06-14T07:47:00 | 2021-06-14T07:47:00 | 334,670,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | import factory
from factory.django import DjangoModelFactory
from .models import *
import factory.fuzzy
from django.utils import timezone
import random
class CourseCategoryFactory(DjangoModelFactory):
class Meta:
model = CourseCategory
name = factory.Faker("bs")
class CourseFactory(DjangoModelFactor... | [
"mashuq@gmail.com"
] | mashuq@gmail.com |
2c2420f8e40458e5e260b24fd0446752e66a7576 | b4ee5a2986d7232630aadc284194b3af3c9ac504 | /hw/hw01/hw01.py | 8c0a7d1634824267c092d8502b283b0e1131968e | [] | no_license | lijian12345/cs61a-sp20 | d42c855eb06fe26f7e0d37d483d1f4fa81a0e118 | 3a9aa5e922c3f8a4d31b6f197340d4828e342530 | refs/heads/master | 2023-04-03T10:36:32.192096 | 2021-04-19T11:06:50 | 2021-04-19T11:06:50 | 254,659,566 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | """ Homework 1: Control """
from operator import add, sub
def a_plus_abs_b(a, b):
"""Return a+abs(b), but without calling abs.
>>> a_plus_abs_b(2, 3)
5
>>> a_plus_abs_b(2, -3)
5
>>> # a check that you didn't change the return statement!
>>> import inspect, re
>>> re.findall(r'^\s*(re... | [
"1053294286@qq.com"
] | 1053294286@qq.com |
722e532abb9d183c9faeb239a798949f7cbb32e0 | a75b7fd002a9f8b4823dcc9cd6c2c5291ea31fe8 | /ir_datasets/datasets/wikir.py | cfa056b832e3aa089533038d543bd5ee028d47f4 | [
"Apache-2.0"
] | permissive | FRD898/ir_datasets | 3edadc3859eb3c3c7a3f7c33c14aebe709aad2f2 | e4bfec64d41cc09c84315f675f2af768ea26f5b4 | refs/heads/master | 2023-06-16T10:32:12.367257 | 2021-07-18T10:41:20 | 2021-07-18T10:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | import contextlib
from pathlib import Path
from typing import NamedTuple
import ir_datasets
from ir_datasets.util import ZipExtractCache, DownloadConfig
from ir_datasets.datasets.base import Dataset, YamlDocumentation
from ir_datasets.formats import CsvQueries, CsvDocs, TrecQrels, TrecScoredDocs
NAME = 'wikir'
_logge... | [
"sean.macavaney@gmail.com"
] | sean.macavaney@gmail.com |
902454374f52acc89deee8bf40eafa743714ac5b | 918bbb286cacba8f3b595e4a5281d6dff8d24d32 | /collections/twitter_downloader/run_twitter_task_followers.py | a44739ad98a1d2d4fd5162adc1c602e80e17fc10 | [
"MIT"
] | permissive | dgonzo/bmdc_skullcandy | a4e653a37b9167ee38c99a5f3f3d7374cf1add49 | 03a38065196b603d9e6cce64fe45bfc1bcce3717 | refs/heads/master | 2021-01-25T07:35:16.716086 | 2014-04-08T14:48:38 | 2014-04-08T14:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py |
import sys
script,screen_name,OAUTH_TOKEN,OAUTH_TOKEN_SECRET = sys.argv
import twitter
# XXX: Go to http://dev.twitter.com/apps/new to create an app and get values
# for these credentials, which you'll need to provide in place of these
# empty string values that are defined as placeholders.
# See https://dev.t... | [
"alexanderalton@gmail.com"
] | alexanderalton@gmail.com |
93d973806b72476402c087079c684e78920c1e44 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/letters.py | 4d6a222a879f80298b4d6ad5f5d5743deb44e15d | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('letters', __name__, url_prefix='/letters')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('repub... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
c6ba53fe8fcf40b99acb006e8455679710417ccd | 0fc2b7fc3220a6c5fec1aa2999847fa4442afb95 | /accounts/forms.py | 0c1d87781ba3efbda29e3d9d075c38508458238e | [] | no_license | vinaykornapalli/wecan-hackathon | 41a33455343a14262cc701650c4eeea5203bb547 | d021ba4f932a79ae7d49b529ba7ed32b52318e93 | refs/heads/master | 2021-04-09T11:28:46.851316 | 2018-03-18T05:09:54 | 2018-03-18T05:09:54 | 125,592,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
class CreateSignupForm(UserCreationForm):
class Meta:
fields=('username','email','password1','password2')
model = get_user_model()
| [
"vinaykornapalli@gmail.com"
] | vinaykornapalli@gmail.com |
137982ad4fabf053ac21d39abd872101e3ece56c | b124d99a5d7a139d31405aefdbfed09f6eb3d55b | /beebcn/spiders/beebcn.py | 0ee6535f8b6015585dac04bef036e47860cb503b | [] | no_license | daniel-kanchev/beebcn | 26efaab276e525b919b4fbeb06251a2850573de4 | d7e8142b41501b2586e0f8e01f8a690355701268 | refs/heads/main | 2023-04-04T05:08:37.732275 | 2021-04-15T11:13:28 | 2021-04-15T11:13:28 | 358,230,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from beebcn.items import Article
import requests
import json
import re
class beebcnSpider(scrapy.Spider):
name = 'beebcn'
start_urls = ['http://www.beeb.com.cn/#/home/banknews']
d... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
08f43da276892e31c65ef74713f038e2737d7377 | ad3e92102c252323c822714cb81bf1e1181d7270 | /sd_files/.Trashes/501/reset.py | 3ee76e7a35222810f1d0a591a561260c9cc9ff68 | [] | no_license | kevinwgrove/digital-foosball-revolution | 8979824c24c7d59be4f569b5fb29e29546f0b376 | ca6bb7dd27311da6deb9734641c19bead8628366 | refs/heads/main | 2023-06-05T03:47:45.626579 | 2021-06-17T01:49:52 | 2021-06-17T01:49:52 | 366,117,112 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import time
import board
from digitalio import DigitalInOut, Direction, Pull
reset_button = DigitalInOut(board.D8)
reset_button.direction = Direction.INPUT
reset_button.pull = Pull.UP
while not reset_button.value:
time.sleep(0.1)
if reset_button.value:
away_score = 0
home_sco... | [
"kevinwilsongrove@gmail.com"
] | kevinwilsongrove@gmail.com |
71a1d35afe3081aaa5e44192447c7494b4a5050e | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py | 8ca5cfea37c17dd1bd1b22ec0ca9d9f1a79ba8bd | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 2,910 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.4.1, generator: @autorest/python@5.6.4)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# -------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
10ef368d70d34858acddeed28d2af22b7d118230 | 9aa4faa97020ee989506b2131f3f0e6e455d62c1 | /predict_cancer.py | 0d914c36bf34fbcb8917e73d666038507e4ca018 | [] | no_license | dalugoSU/machine_learning_breast_cancer | f6fdc78b7ccbd68346a31eed8b527970f85d051e | 66eb6607991b0f2adce95b235ef6da93a91a765f | refs/heads/main | 2023-03-06T00:37:09.337796 | 2021-02-20T23:16:18 | 2021-02-20T23:16:18 | 340,506,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,917 | py | class BreastCancerPrediction:
def tumor_data(self):
import numpy as np
"""
Takes input data to predict if tumor is malignant or benign
"""
mean_radius = float(input("Enter mean radius: "))
mean_radius = "{:.3e}".format(mean_radius)
mean_texture = float(input... | [
"dalugo@syr.edu"
] | dalugo@syr.edu |
43d78dbe15d595afb8899abbcba35e810910cb14 | b1aa0e99bb6aac1f94223a827dd4640699796992 | /Virtuoso/asgi.py | ffd921b1ea915518f68def40b453e756addd0d84 | [] | no_license | PabonSC/virtuosoIT | 8bc10c3006896c6e78c310da0f674a6bafd50929 | af078e733bea692f6ba390eaa3df461ec39cd6aa | refs/heads/master | 2023-04-27T13:46:29.440583 | 2021-05-17T14:51:43 | 2021-05-17T14:51:43 | 365,081,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for Virtuoso project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"pabonshahacse15@gmail.com"
] | pabonshahacse15@gmail.com |
da63f9d704b0a7fff5ca176497ea1f7a922ada1e | 8fbb31e965b137d68cd7cdb6adc7b03002e48fc1 | /chatRoomPage/serializer.py | eec1400a4367dbfa73101a83072450b982a108da | [] | no_license | jainilparikh/django-Chat-app | a2342f02bc1318c18d2cb79ec2f3a94082d260db | b0b20098cac2e7809bd16b1c3bce31aab224b95b | refs/heads/main | 2023-04-21T17:43:48.191642 | 2021-04-18T17:51:27 | 2021-04-18T17:51:27 | 359,038,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from rest_framework import serializers
from .models import Language, Message
class LanguageSerializer(serializers.ModelSerializer):
class Meta:
model = Language
fields = ('id', 'lan1', 'name')
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fi... | [
"jainil_parikh@hotmail.com"
] | jainil_parikh@hotmail.com |
43bc88646bf35d940099c4319656feaba747bd11 | 5cf9c23f2dd042af96afc8748af4cea391b99521 | /2DMinecraft.py | 23acc9bfc6ac66625470e011d1435a7142f14dfd | [] | no_license | wilsoncyap/pythonCoding | 548ede11d0ddbdd85c07094b2ecd6de12ce053a2 | 0f916e421362ed213d46300f6e08087c18574ba7 | refs/heads/master | 2021-04-18T19:17:18.627650 | 2018-04-04T21:19:05 | 2018-04-04T21:19:05 | 126,550,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,442 | py | import pygame, sys
from pygame.locals import *
import random
from cloud import Cloud
#constants representing colors
BLACK = (0,0,0)
BROWN = (153,76,0)
GREEN = (0,255,0)
BLUE = (0,0,255)
WHITE = (255,255,255)
#number of clouds in the game
numcloud = 20
fpsClock = pygame.time.Clock()
#constants representing the differ... | [
"noreply@github.com"
] | noreply@github.com |
bce9236ba47161386e6d78fb6ab91d9f22cd2864 | 8cff9687a2833a370b9d9dee9176e1fbc6d01357 | /Python3/uri 1080.py | 6789e7256d8e37391ec919f4f6e85b99f0d20371 | [] | no_license | asadugalib/URI-Solution | aec9619c70347f331b62bcb569e4dcc426ed9cb6 | 2713ff5bd4c0bb55455d14baf05104b8b22d8e21 | refs/heads/master | 2023-03-26T21:12:24.649479 | 2021-03-30T14:43:27 | 2021-03-30T14:43:27 | 255,056,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | #1080
number = []
for i in range(100):
number.append(int(input()))
print(max(number))
print(number.index(max(number))+1)
| [
"asadugalib@github.com"
] | asadugalib@github.com |
0d8ecad2d93709388b54de364493ba3f9fbd140c | b30945eb14483621d0f198523bb268c0f4d4d080 | /eventnodes/image/resize.py | aa512b0ba9ffe93eb9b3ae714956d8c298ff4d2d | [
"BSD-3-Clause"
] | permissive | cgboffin/Subotai | bf38493dbdafb741918a596fa34857d226693910 | 607381ce41ea450bca094a5dc8990649dbaa0390 | refs/heads/master | 2023-08-14T08:58:40.609003 | 2021-10-03T17:40:28 | 2021-10-03T17:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from PySide2 import QtCore
from PySide2.QtCore import Slot
from .baseimage import BaseImageNode
from eventnodes.base import ComputeNode
from eventnodes.params import StringParam, IntParam, PARAM
from eventnodes.signal import Signal, INPUT_PLUG, OUTPUT_PLUG
from .imageparam import ImageParam
from PIL import Image
cl... | [
"vicken.mavlian@gmail.com"
] | vicken.mavlian@gmail.com |
623583644c0d02dc968de94f521369aee4a8764d | 9ad099b2aa9dff96e1ce66b0726a580b039d285e | /auth/api/v1/models/users.py | 9a2c84af6d4d879ed5979eb22415ad7d86892594 | [] | no_license | Ivan-Terex91/ugc_sprint_2 | 26528b6b4e9fcab82f44db6e9b33121bad6b388b | 2fee2350a4cae4ac3b06f0b4ebb0d5cb0dda7e33 | refs/heads/main | 2023-06-20T16:25:12.154781 | 2021-07-26T13:28:56 | 2021-07-26T13:28:56 | 385,500,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from api import api
from flask_restx import fields
UserModel = api.model(
"UserModel",
{
"id": fields.String(readonly=True, as_uuid=True),
"first_name": fields.String(),
"last_name": fields.String(),
"birthdate": fields.Date(),
"country": fields.String(),
"email"... | [
"ivs@digift.ru"
] | ivs@digift.ru |
c9a499e0b0d202e5ea52f5ef6a9c4580d811345f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_45/72.py | 8cf783ea15df40bf45a0fc4e0429b4f48fca706b | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | #!/usr/bin/env python
#
# jam.py
#
# Copyright 2009 Denis <denis@denis-desktop>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, o... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1faf49c702992a2c1a658d1ecaa560137a81edcd | d7f226a00a95b6dae842d4f8ab83ec892781a0e9 | /src_xml/model/transformer.py | bc41cd5464ac83e6bfce455e4ceed11b969ef734 | [] | no_license | archfool/polysemy | 7d2afddfae4e4f81cf84262c1f2465c86937d3fb | e4e7c6a22b506bc5b5cf424c15a7c5e75453e9c0 | refs/heads/main | 2023-05-05T21:33:06.146040 | 2021-05-22T10:11:12 | 2021-05-22T10:11:12 | 329,535,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,239 | py | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
from logging import getLogger
import math
import itertools
import numpy as np
import torch
import torch.nn as nn
import torch.n... | [
"archfool@163.com"
] | archfool@163.com |
b00b909f46a01c1c9e3b70851c629b87b7869153 | d69b84ee135aa772512f3adabe916dc790db6b68 | /leaders/data/cjw_mysql.py | 96ac832c227c2f6ef211d64d39061faed595bc8e | [] | no_license | choi97201/DartFss | 9605b617dc52c3ee5921b171f1325e4621b1f4b7 | 0d68b1dad23fb8fda9a4ed52c93a816e8433b151 | refs/heads/master | 2023-06-12T20:43:34.537026 | 2021-06-24T23:26:08 | 2021-06-24T23:26:08 | 340,304,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import pymysql
import pandas as pd
class Maria:
def __init__(self):
self.is_chrome = False
self.path = None
self.connect = None
self.cur = None
def setMaria(self, host='localhost', user='root', password='sa1234', db='jaemoo', charset='utf8', port=3306):
self.... | [
"choi97201@naver.com"
] | choi97201@naver.com |
53a9e7b485281b9e04dc2f024cb312a1c0bfe6fa | cd21d80241deeb96f4acf16e865cef439b3158d1 | /manage.py | bba21b475398de4476bf5a91b9cbc71c682bea8d | [] | no_license | sankha555/DBPortal | 72cac7118334337fc653ce2c0c133598c4f783d1 | 6e8354df09f34e0a6708630524e10f6949301de7 | refs/heads/master | 2020-12-02T07:26:42.624213 | 2019-12-30T15:00:42 | 2019-12-30T15:00:42 | 230,722,294 | 0 | 0 | null | 2019-12-29T08:14:33 | 2019-12-29T08:14:33 | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dbportal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"f20190029@pilani.bits-pilani.ac.in"
] | f20190029@pilani.bits-pilani.ac.in |
b2279b3d38a8ce42700aa7f9de69200a0892029a | e76220466b05fb441fee39e2b37cfb2e38a3ba05 | /mysql/mysql.py | 3c9b8664f6a77a559ceb2da689e79baad4c5b7d9 | [] | no_license | slmao-oamls/pythonmode | c8a5c3b7d272ee0991d450b81bfcf3dbff4ca16b | c17c8270967a2ca45e9e2c14839a488671afef92 | refs/heads/master | 2021-09-10T09:12:52.778194 | 2018-03-23T10:17:30 | 2018-03-23T10:17:30 | 126,019,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | # # 导入MySQL驱动:
# import pymysql
# # 注意把password设为你的root口令:
# conn=pymysql.connect(user='root',password='', host='localhost',database='test')
# cursor=conn.cursor()
# #cursor.execute('create table user (id varchar(20) primary key,name varchar(20))')
# cursor.execute('insert into users(id,name) values (%s,%s)',['no2','... | [
"273494899@qq.com"
] | 273494899@qq.com |
da1d15bc3e9266e82839cc5424e5467de8846c18 | 3841c7003128899f8afb6686c09adff408e07703 | /answer_for_eval | 00656cf04dba4e5a5a0b65744dc64dcaaa92ec67 | [] | no_license | WenyanH/Question-Answer-System | 552bdd479ceaf0f8c4cda92fb5023252e6379a33 | ebdcd2e1211601c73ce0e6b8906e8749e433c1d7 | refs/heads/master | 2021-01-11T04:55:01.466486 | 2016-04-18T20:36:06 | 2016-04-18T20:36:06 | 71,286,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | #!/usr/bin/python
import main, sys
from lib import question_evaluation
wiki_article = sys.argv[1]
question_text = sys.argv[2]
main.main()
docs = main.read_sentences_from_file(wiki_article)
docs_q = main.read_sentences_from_file(question_text, False, True)
sorted_question = question_evaluation.question_evalution(doc... | [
"tq5124.web@gmail.com"
] | tq5124.web@gmail.com | |
86a3651026e5979337761c147682c2c2c955d1a1 | 74ff2b631f1dd8c8a39246500174ee0317b04ac9 | /P1HW2_BasicMath_DewsClarence.py | e8be084f49bec423e11dc3cc3b2eee039a5ddb00 | [] | no_license | dewsclarence/CTI110 | dfd242cf26019bc583e54b5a189a73eb66050a7e | 2e833710448e02b204fc09a833a2102939ec6671 | refs/heads/master | 2023-01-03T01:44:40.026678 | 2020-10-28T00:45:54 | 2020-10-28T00:45:54 | 295,258,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # Using IDLE Math
# 9/13/2020
# CTI-110 P1HW2 - Basic Math
# Clarence Dews
print("Enter number 1-10:", end=' ')
var1 = int(input()) # User input number 1-10
print("Enter number 11-20:", end=' ')
var2 = int(input()) # User input number 11-20
print("First number entered: "... | [
"noreply@github.com"
] | noreply@github.com |
047d839364b362aa6a76bfe9643bcb4b78963590 | ab1c920583995f372748ff69d38a823edd9a06af | /shultais_courses/dictionaries/intro_to_dictionaries/digits_rus_eng.py | 8c5217d96a9dfe04a252496ac2455eacff1ddcc8 | [] | no_license | adyadyat/pyprojects | 5e15f4e33892f9581b8ebe518b82806f0cd019dc | c8f79c4249c22eb9e3e19998d5b504153faae31f | refs/heads/master | 2022-11-12T16:59:17.482303 | 2020-07-04T09:08:18 | 2020-07-04T09:08:18 | 265,461,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | py | import sys
key = int(sys.argv[1])
value = sys.argv[2]
digits = {
1: {"ru": "один", "en": "one"},
2: {"ru": "два", "en": "two"},
3: {"ru": "три", "en": "three"},
4: {"ru": "четыре", "en": "four"},
5: {"ru": "пять", "en": "five"},
6: {"ru": "шесть", "en": "six"},
7: {"ru": "семь", "en": "sev... | [
"omorbekov.a@gmail.com"
] | omorbekov.a@gmail.com |
aa2b95f7faa2fc42bef989a9baf53826273ef7e8 | 05504059ec84709a8b1cf3988cf71b0613fe9f5a | /parser.py | 293d43240a7d41e2cbd56d908ce3a41ad6df24d9 | [] | no_license | Bsq-collab/8g | 2511b0b76be908ceb3fae713ce91f66938f0602a | 81d318837303ee7bd8aeb2dbcfc3ee6a2305255a | refs/heads/master | 2022-03-20T04:40:57.966967 | 2018-04-18T00:06:37 | 2018-04-18T00:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,554 | py | from display import *
from matrix import *
from draw import *
from copy import deepcopy
"""
Goes through the file named filename and performs all of the actions listed in that file.
The file follows the following format:
Every command is a single character that takes up a line
Any command that requires argum... | [
"bberri@stuy.edu"
] | bberri@stuy.edu |
dffc5a467855e49541f65ecbcb8177809bcd6184 | 1363dfe1aad7643d0faddc3d60d357267ffb7121 | /src/segnet/loadbatches.py | fcf95a7d055688905ae424e74a70febb7319b1aa | [] | no_license | cjlcarvalho/ulcer-image-segmentation | 38eadcbe83badc7afb80556c97fb28068a1e54f1 | 23d95c69009e911822ca982941856c6e73dfc704 | refs/heads/master | 2020-03-27T16:55:33.283827 | 2018-09-05T16:03:07 | 2018-09-05T16:03:07 | 146,816,323 | 1 | 2 | null | 2018-08-31T19:47:08 | 2018-08-30T23:14:14 | Python | UTF-8 | Python | false | false | 2,005 | py | import cv2
import itertools
import numpy as np
import os
def imageArray(path, width, height, imgNorm="sub_mean", ordering='channels_first'):
try:
img = cv2.imread(path, 1)
if imgNorm == "sub_and_divide":
img = cv2.resize(img, (width, height)).astype(np.float32) / 127.5 - 1
e... | [
"caiojcarvalho@gmail.com"
] | caiojcarvalho@gmail.com |
cf53ef5ed08b07917f1bafebfd98837aa6df5e39 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/contrib/auth/migrations/0004_alter_user_username_opts.py | 8f8441f88f5e0f3b2074e39c01c7ef863cb3c28a | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:68dd281e8039ab66caa4937c4a723c4fd18db5304accb445a332fceed361f3f2
size 785
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
505b1782957e7bfa8c32e71fd63adbfa93d801cc | eab5cc398d562d7d26e08e92e9ef4a6a6f38990e | /blhnet.py | 8a32b036096674f494202692319a709cd63b40e2 | [] | no_license | rmehrad/BLHNet | e582ba41f60b2ec532b3848d1ff2dd8193055bb1 | 04fa6b89b60538808b3c2031b913ac5dde254ca9 | refs/heads/master | 2022-09-23T06:30:16.898044 | 2020-05-25T21:07:10 | 2020-05-25T21:07:10 | 266,263,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,349 | py | #!/usr/bin/python3.8
import sys
import socket
import getopt
import threading
import subprocess
# define some global variables
listen = False
command = False
upload = False
execute = ""
target = ""
upload_destination = ""
port = 0
# this runs a ... | [
"rrezamehrad@gmail.com"
] | rrezamehrad@gmail.com |
0d17fa63c3a9a2d0bf33421eedf521554eb962c1 | 6d383860086918f9f5d2dc9b8eec9f4e98295b3c | /bes.ekleme.py | d25691e4c12ce6eb06ae7323a08eefe7ec73944a | [] | no_license | unalfaruk/Python-Temel-Ornekler | 055f1e37fcd90371dfc719e5a621c012beb7cb13 | 86c10671c810c458f79f58c8b0094140cbccdb09 | refs/heads/master | 2021-06-14T11:08:42.221908 | 2017-01-08T21:54:48 | 2017-01-08T21:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | def f(x):
'''girdiye 5 ekler'''
return x+5
s=f(3)
print(s)
| [
"faruk.c@windowslive.com"
] | faruk.c@windowslive.com |
661213532518f79f4fbd1621693e6a80ee48a239 | 86206b05a6e0a425ba5401de50b8645bddf77780 | /Oper Python/Oper Cobra/Sandbox/SFDCLib.py | 774e5e469ac749c3fe50e5a661a4ac709b6b7eff | [] | no_license | QuestTestAutomation/PersistentDesktop1python | 2e626ea16ce0fd4c697b156fdc2f9b3ca85bbd7b | ece25957edb6f87b2777b261b31914d22ebd99ad | refs/heads/master | 2021-03-10T21:55:25.450872 | 2020-03-27T09:45:14 | 2020-03-27T09:45:14 | 246,488,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,048 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from robot.libraries.BuiltIn import BuiltIn
from selenium.webdriver.support.ui import Select
import time
import r... | [
"45171766+QuestTestAutomation@users.noreply.github.com"
] | 45171766+QuestTestAutomation@users.noreply.github.com |
a3c44ac3caef1772825491221d0e233ff15558dd | e009ea0876ad1c2d0c68a3740a6dff3aa51a4736 | /movielist/models.py | d4872b7212bd43f822e5180c85e9e9b9c96154c8 | [] | no_license | janstawowy/rest | ec8c2d25fff496c5007d2c0b81996a1bf22875f1 | 3ad1f607e72d31cc53cfe2be7dca84fd5ff53ec7 | refs/heads/master | 2022-12-14T13:35:40.431669 | 2018-11-22T12:05:17 | 2018-11-22T12:05:17 | 153,265,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.db import models
class Person(models.Model):
name = models.CharField(max_length=255)
def __str__(self):
return self.name
class Movie(models.Model):
title = models.CharField(max_length=255)
description = models.TextField()
director = models.ForeignKey(Person, related_name="mo... | [
"stawa29@interia.pl"
] | stawa29@interia.pl |
658522164516cb94f977d82b579d0358b953ca20 | d0a0ae44942c31d2fd5221ee0b6391f9053e2deb | /network/socket/tcp_socket.py | 7dff8480ba3c5f9559905217489972ab33e9efca | [] | no_license | sfirmery/python-sandbox | 216bc3e4470f10cf97477a5c733f2db45714ebb0 | bfc501f423374a0fdffc26df237a5246f1c8b5a6 | refs/heads/master | 2016-09-05T16:23:30.838477 | 2014-02-25T22:10:21 | 2014-02-25T22:10:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import socket
import time
TCP_PORT = 9000
# create udp socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# bind
sock.bind(('', TCP_PORT))
sock.listen(1)
while 1:
pair = sock.accept()
if pair is not None:
conn, addr = pair
... | [
"sfirmery@gmail.com"
] | sfirmery@gmail.com |
b3bcab9ef44391663e01b7141bd760910fec2d0c | 0cf19ef1804be284fa086f6db29f3e694306edfa | /src/products/models.py | ed015d8ce6c9c531cfe593010258bf1b08b0a4c9 | [] | no_license | GiperScriper/Market | b6b8a177d90babffc39c39f9e2e3b8f48223181c | ac594328324c127e1237e6fcc5c24a050cb680a6 | refs/heads/master | 2016-09-10T19:50:19.161389 | 2014-03-17T20:24:22 | 2014-03-17T20:24:22 | 17,602,478 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | from django.db import models
from django.contrib.auth.models import User
class Product(models.Model):
user = models.ForeignKey(User, null=True, blank=True)
title = models.CharField(max_length=200)
description = models.CharField(max_length=700)
price = models.DecimalField(max_digits=15, decimal_places=2)
sale_pr... | [
"tty0sh@gmail.com"
] | tty0sh@gmail.com |
9a55b7e079bf414689a764ae85de4867eb8c3763 | 739cb489d188acb7cc2aab8d2e5853901e113715 | /10-setdiccionarios/diccionarios.py | 33c29320a1958c6ac4b93f8bdee949ff94a9e90b | [] | no_license | juancafernandez18/curso-udemy | 2c83453b7dbcecb31ebb7b2897f02673306614bc | d1cc1b34f8caf113ca81bdba86089342992c08db | refs/heads/master | 2022-09-11T03:39:19.659934 | 2020-06-01T01:47:47 | 2020-06-01T01:47:47 | 268,403,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | """
un diccionario es un tipo de dato que almacena un conjunto de datos
en formato clave > valor
parecido a un array asociativo
"""
persona = {
"nombre":"victor",
"apellido": "robles",
}
print(persona)
contactos = [
{
'nombre': 'juan',
'apellido': 'fernandez',
'numero': '3794744... | [
"juanca.fernandez18@gmail.com"
] | juanca.fernandez18@gmail.com |
4f840b089e1c72661a5d31db332f0f88712ba8a2 | a3dff48bb6460d9130cffdef3ca8cefb6ca01f2e | /adrians_calculations/lib.py | 1e7a04d70ebe8c7629278b978019a33f6ed8ad77 | [] | no_license | adrhish/adrians_calculations | e6887acf8af52734f1e785e719370327442ac590 | 0f277fe9a51cf3b0cc8fce6f4bbc96ea3fa1e2c5 | refs/heads/master | 2022-12-04T20:23:19.237367 | 2020-08-17T13:48:17 | 2020-08-17T13:48:17 | 288,146,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | # -*- coding: UTF-8 -*-
# Copyright (C) 2018 Jean Bizot <jean@styckr.io>
""" Main lib for adrians_calculations Project
"""
from os.path import split
import pandas as pd
import datetime
pd.set_option('display.width', 200)
def try_me(name):
print('your name is', str(name))
def clean_data(data):
""" clean dat... | [
"ad.hishow@gmail.com"
] | ad.hishow@gmail.com |
f8a701143ff317c117978afa224950eae849bdb4 | 9ff2cf4aa1075b1254269d95e0d0f4538f3c54c9 | /testarduino3.py | bc409a252e1cadf37005c3771426368a2dc3da09 | [] | no_license | brew-it/dev01 | d92b469892da1c4ec01ca4378064c29898461e3d | 170d60efbab2f73fe36b00ef01b46fcb396fafe5 | refs/heads/master | 2021-01-12T11:55:15.020789 | 2016-11-04T00:25:12 | 2016-11-04T00:25:12 | 69,316,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from nanpy import (ArduinoApi, SerialManager, Servo)
from time import sleep
import robot.device_info
try:
connection = SerialManager()
a = ArduinoApi(connection = connection)
except:
print("Failed to connect to arduino")
for j in range(30,54, 1):
a.digitalWrite(j, a.HIGH)
for i in range(30,54):
... | [
"dave@brew-it.co"
] | dave@brew-it.co |
4dafd2675375326d00071f92b91080bea9677ef3 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t001481.py | 4bca6b1596cd106695153b484bdcabd65c9b8121 | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | for T in range(int(input())):
b = list(bin(int(input())).replace("0b", ""))
if b[-1] == "1":
for i in range(len(b) - 1, -1, -1):
if b[i] == "1":
b[i] = "0"
else:
break
print("".join(b)) | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
ad65848ff0c8b91968e53caab17971ad3c7ee9ac | 8bf1ce907800da0c22f646ffb4272d62accc7253 | /DRFdemo/wsgi.py | a78626f81d9ef59f80f2cada719e1a835300cef6 | [] | no_license | lx0089/DRF_DEMO | c4654d3561fe8f4cd95eaf67a26fdaa097a6a0ef | 00a8a33a998b1e8daeaec376614afa018cd3704c | refs/heads/master | 2022-04-29T13:46:39.437462 | 2019-08-28T07:25:05 | 2019-08-28T07:25:05 | 204,871,604 | 0 | 0 | null | 2022-04-22T22:15:37 | 2019-08-28T07:17:39 | Python | UTF-8 | Python | false | false | 392 | py | """
WSGI config for DRFdemo 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("DJANGO_SETT... | [
"lx0089@hotmail.com"
] | lx0089@hotmail.com |
6f3f18539c8923851681793d40f4dcb3f50d3d64 | 60d2212eb2e287a0795d58c7f16165fd5315c441 | /app01/migrations/0001_initial.py | 3a9dc3818912587831f59c416cdcc28191857ff6 | [] | no_license | zhouf1234/mysite2 | 29145ceb470273f39fc11dd91945203db7fe0238 | 63747c789d39cf752f2b80509d8e3db9145b3492 | refs/heads/master | 2020-05-05T03:11:31.696639 | 2019-04-05T10:41:42 | 2019-04-05T10:41:42 | 179,663,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # Generated by Django 2.1.2 on 2018-11-01 09:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(pri... | [
"="
] | = |
bfd676d773802be6dd45564ee4e0ce7c4f60f0f2 | 963e0002a4324978c2fadc49e056e12151cf882e | /2019/11/11.py | 10b1d7c8994c086553a71b26cfdf0ae62a56c330 | [] | no_license | dionyziz/advent-of-code | 5d7706f5e0c7d53569a97a80a2aaff14fca32ae7 | 1752201ae1c57d73c32dea2702ade595d6b1552c | refs/heads/master | 2022-12-26T16:41:23.167521 | 2022-12-13T05:17:12 | 2022-12-13T05:17:12 | 225,867,904 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from computer import Computer
from collections import defaultdict
computer = Computer()
computer.load_file("11.txt")
color_at = defaultdict(lambda: 0)
def paint(computer, color_at):
modified = set()
direction = 1j
location = 0
execution = computer.execute()
while True:
try:
co... | [
"dionyziz@gmail.com"
] | dionyziz@gmail.com |
544d404ba3f8a75a5b1fcc8d563c0853c8c6ea7c | 3bd40415aabba9ba705e8e20387d3521a48004eb | /Problem Solving/Data structures/2D Array - DS.py | 39b1b724e0d98a4c39d2e96089f49ff8e622a409 | [] | no_license | Narendran36/HackerRank | 7da6f4ffc8a21031d3776c82e8969ca79eca0b06 | f58ce1cfaa383ed8aec8ec10467048f6f8465624 | refs/heads/master | 2022-12-04T04:25:19.062493 | 2020-08-19T19:13:24 | 2020-08-19T19:13:24 | 256,822,744 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the hourglassSum function below.
def hourglassSum(arr):
h_glass = []
for i in range(0,4):
for j in range(0,4):
h_glass.append([arr[i][j], arr[i][j+1], arr[i][j+2], arr[i+1][j+1], arr[i+2][j], arr[i+2][j+1], ... | [
"noreply@github.com"
] | noreply@github.com |
1ca80286d0440f54504ffaea5212be6a2a8f9e32 | 5c83a49479d614c9604d09da4aa66ddb4f1ba4af | /productoLogic.py | adda98d6891e7ddcd5df54c30ce9182ecf7a4766 | [] | no_license | VanessaFlores26/PopUp_AYUDA | 397e4a861c01283b9817c283a2e8b37d7727f03d | 0b3d410f08d9fa594cdce8d79f6063ed6dfd3f9b | refs/heads/master | 2022-12-02T10:33:44.842199 | 2020-08-15T05:54:05 | 2020-08-15T05:54:05 | 287,675,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,239 | py | from logic import Logic
from productoObj import productoObj
import os
class productoLogic(Logic):
def __init__(self):
super().__init__()
self.keys = [
"id",
"nombre",
"nombre_foto",
"foto",
"descripcion",
"costo_unitario",
... | [
"vanessaflowers02@gmail.com"
] | vanessaflowers02@gmail.com |
6409ffff6a083b3c48d050cf0b0da4cd4e24c754 | 98811c0c149c1873c12322f20345dab1488a1870 | /nnet/hue/split_data.py | 421bc33d6fd8d8aa179440fa714ee4c730371b24 | [] | no_license | mverleg/kaggle_otto | 682d5f83a070b7e88054401e6fba221d8e1b6227 | b23beb58a1a0652e9eb98f5db31eae52303b6f85 | refs/heads/main | 2021-01-17T08:54:39.096781 | 2016-04-12T09:25:26 | 2016-04-12T09:25:26 | 37,781,556 | 0 | 1 | null | 2016-04-12T09:25:27 | 2015-06-20T18:47:45 | Python | UTF-8 | Python | false | false | 226 | py |
def split_data(data, labels, test_frac = 0.1):
N = int(len(labels) * test_frac)
train = data[N:, :]
test = data[:N, :]
train_labels = labels[N:]
test_labels = labels[:N]
return train, train_labels, test, test_labels
| [
"mark@rafiki"
] | mark@rafiki |
3e305636020fb1fbb5ebe8d62c8f592a38e0586e | f980929e94530c8276e24fb5be1b3d5fe2e4bc5a | /pages/hovers_page.py | 7719a3c2464a5b50025ae11a55957af1ea0ebbcc | [] | no_license | arokiaanburaj/python_UI_automation | ae9a55019b5f00339dce773d2cd95f3efc0ddb85 | cb57c61aa90c2fcf3651531a3ff298aec08d514d | refs/heads/master | 2020-08-01T12:36:14.254048 | 2019-09-26T06:12:06 | 2019-09-26T06:12:06 | 210,998,779 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | """
@author: Prerna Pal
@email: prerna.chanchal13@gmail.com
@date: 20-May-2015
"""
import logging
from selenium.webdriver.common.action_chains import ActionChains
from utility.services import Services
logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p',
... | [
"arokiaanburaj@gmail.com"
] | arokiaanburaj@gmail.com |
9c79484cbe1d4d5ce3ebb7823945e0a4fe6718b5 | 30d1c90057d9406d5741ea33390dd0058563bb32 | /Testing/Testing.py | 5b4d00c0ecc837209c69addec20f6a811a6c48e2 | [] | no_license | PolodeBliek/OTR---LaTeX | da3a2d8c532dda33d95b6b16b5a01c07ff6b870b | b6b21ba6cf84abafa3153237feb0df62acf69489 | refs/heads/master | 2020-06-08T09:48:47.190402 | 2019-06-22T20:30:05 | 2019-06-22T20:30:05 | 193,208,496 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,280 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches
import random
import copy
import itertools
from scipy.ndimage import gaussian_filter
from scipy import signal
from skimage import data, io
from skimage import img_as_float, img_as_ubyte
from skimage.morphology import reconstruction
from skima... | [
"polodebliek@gmail.com"
] | polodebliek@gmail.com |
5422d855e15010c82c1da5f453b099c5cbb404c1 | 310841013efe61f54347d834d6cecb10f297ec8a | /data-science-not/weeks/m05_structdata/p1/time_series_currency.py | 7d012063a8c33d772ba961fee10678f45f4c1861 | [
"MIT"
] | permissive | nurseiit/comm-unist | ad3e158d41575c2a9b6ffbc9d2e52bc964de0026 | e7a122c910bf12eddf5c0ffc2c666995b4989408 | refs/heads/master | 2021-08-20T04:43:49.939173 | 2020-06-14T12:51:59 | 2020-06-14T12:51:59 | 194,407,107 | 6 | 1 | MIT | 2019-10-19T17:42:43 | 2019-06-29T13:10:35 | C++ | UTF-8 | Python | false | false | 6,950 | py | """
Today's objective is to manipulate data in a time series and practice with the basics of matplotlib,
while working with data about currency values.
The files GBP2USD.txt and JPY2USD.txt contain historical daily values of GBP (pounds) and JPY (yen) against the US dollar.
For instance, the entry "2017-09-28 112.74"... | [
"nurs@unist.ac.kr"
] | nurs@unist.ac.kr |
b229faa371f95361509e086d0d3d6efdad889824 | 5045a0886fead7262f3e6ca81765e245c181e8fd | /reg_lin_hubble.py | abb25aa6e899a69f98d5c8a6c5534513a656d610 | [] | no_license | flo-collab/Reglin-hubble | dfaab9d26a9773c5c4b6940908a61bbada9d731b | afcf1eff1e3fd1f0a5745d1959808a90ec3d2f84 | refs/heads/master | 2023-05-07T22:56:33.393646 | 2021-05-22T21:31:37 | 2021-05-22T21:31:37 | 369,907,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn.metrics import r2_score
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
# import seaborn as sns
plt.style.use('seaborn-darkgrid')
# ... | [
"f.u.etudes@laposte.net"
] | f.u.etudes@laposte.net |
0897156b39c9be968a8fa19db785e50da3ab0175 | a7de0dc33924b1e66c89a1669dca6dbb0c1195a3 | /examples/str.startswith/ex2.py | 2d2077dac1757d10002c02fa3b5664ea018ca6cc | [
"MIT"
] | permissive | mcorne/python-by-example | b6fba25c91d764a600c35bfd53965d9c2d7de014 | 15339c0909c84b51075587a6a66391100971c033 | refs/heads/master | 2020-04-23T20:53:58.805326 | 2019-10-16T12:18:20 | 2019-10-16T12:18:20 | 171,453,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | print('uk.domain.net'.startswith(('fr', 'uk')))
| [
"mcorne@akliagroupe.lan"
] | mcorne@akliagroupe.lan |
3aac65dcd3e5246a678308d832621e51ec5e48fb | 6faf3668a1d5f2bd7a5ef14b005554f43ec84da7 | /assignment_1/code/modules.py | 6ff44194318f5e5d43106ab47f7fe8e75d023ddd | [] | no_license | maxbos/deep-learning-uva | 0d1bce7dc9783c25c598070938c5ab3c659a1f83 | 6a0fdfe45c0055282bab794237ed8b51892e4764 | refs/heads/master | 2022-01-13T20:26:30.974495 | 2019-05-30T21:51:04 | 2019-05-30T21:51:04 | 182,390,100 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,345 | py | """
This module implements various modules of the network.
You should fill in code into indicated sections.
"""
import numpy as np
class LinearModule(object):
"""
Linear module. Applies a linear transformation to the input data.
"""
def __init__(self, in_features, out_features):
"""
Initializes the pa... | [
"maxn.bos@gmail.com"
] | maxn.bos@gmail.com |
fafcbf5da3006c2152cea7f3063f90fb21b14d37 | 31a96d3a1bc7ec1608d17e5f4038f0ffa86a4e68 | /db.py | a8567fea55fef2dc93e2a670804fd4a7e51eb7b9 | [] | no_license | ammevissen/Udemy_Python_Primer_Heroku_One | b01e39e91592db472e786aea3650f1daea1aca20 | b943ab4b02ef6e743bbb1d6052c29715154be94c | refs/heads/main | 2023-05-03T14:02:07.893514 | 2021-05-21T19:02:54 | 2021-05-21T19:02:54 | 369,330,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from flask_sqlalchemy import SQLAlchemy
db=SQLAlchemy() #our ORM
| [
"mevissenjobs@gmail.com"
] | mevissenjobs@gmail.com |
daaa788ee7e30201727b6f6d4cc3ae438c5fca62 | 42337cdb839982d762667c38727a12b0de82423c | /bin/jamf_pro_addon_for_splunk/aob_py2/cloudconnectlib/core/ext.py | 9773b94a410c8baa1d606f5767410a92c391b689 | [
"MIT"
] | permissive | jamf/SplunkBase | 166722f764ca666b0421dd6c895c82d6123be022 | 5c0edaac0bc8b040fda638845f24e39b6c324888 | refs/heads/master | 2022-06-25T22:39:04.668321 | 2022-06-09T15:24:40 | 2022-06-09T15:24:40 | 232,366,538 | 5 | 4 | MIT | 2022-06-14T14:32:22 | 2020-01-07T16:25:51 | Python | UTF-8 | Python | false | false | 12,529 | py | from builtins import str
from builtins import range
import calendar
import json
import re
import traceback
from collections import Iterable
from datetime import datetime
import six
from jsonpath_rw import parse
from .exceptions import FuncException, StopCCEIteration, QuitJobError
from .pipemgr import PipeManager
from ... | [
"kyle.pazandak@gmail.com"
] | kyle.pazandak@gmail.com |
b2818ea2a586e30984accd3b80dcb0ae4df1e15b | 13b535a8b0a482c7451a3bd318fee414adbbf706 | /Student/migrations/0007_auto_20201023_0005.py | 3a0298f826d8cda08365a643508d8df4aa3a5731 | [] | no_license | sharathcng/Placement_Assistant | 512856183a4cd0b1a697bcee7cd10187aa60661c | 635fb2d8dd189f0147c4353cf83ab5794ebd202f | refs/heads/master | 2023-01-31T00:01:26.789835 | 2020-12-10T08:32:21 | 2020-12-10T08:32:21 | 304,419,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # Generated by Django 3.0.5 on 2020-10-22 18:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('Student', '0006_auto_202... | [
"cngsharath@gmail.com"
] | cngsharath@gmail.com |
4aa37c206926ab0fb5ae01fe412c1b992fcad8eb | 8fd5d776531023705cd19388657506bf9447647b | /flask/bin/migrate-repository | 0603fdd30e27343597f68c4b06d8b23f53a1a25b | [] | no_license | Nevyn2345/flask_tutorial | 4f89441f4a0c23334b8bb05dcc4ac50223f77889 | f256327c2242f8958c535b3e333884ca050b2796 | refs/heads/master | 2021-01-20T04:36:05.972933 | 2015-05-04T08:40:12 | 2015-05-04T08:40:12 | 32,762,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | #!/Users/sam/Documents/flask/bin/python
# PBR Generated from u'console_scripts'
import sys
from migrate.versioning.migrate_repository import main
if __name__ == "__main__":
sys.exit(main())
| [
"sbarnett1@sheffield.ac.uk"
] | sbarnett1@sheffield.ac.uk | |
133c284bffa840c787391f0ed653b5e7111d752b | 3a44d57e63d31317329a857ca2d22221f996f560 | /public_html/pruebaformularios/urls.py | f715b0b907c6e68a4fcc0ad032a5434977a8c959 | [] | no_license | charlierosario/iappweb | fdfd8374ea7b249ad72f0a058383233e83f70180 | b8142afea46aa4049a22370044debea939b224b5 | refs/heads/master | 2023-02-28T00:22:25.402091 | 2021-01-25T23:50:04 | 2021-01-25T23:50:04 | 331,477,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.contrib.auth.decorators import login_required
from django.urls import path
from .views import PersonaList, add_persona
prueba_patterns = ([
path('', add_persona, name='plist'),
path('listar/', login_required(PersonaList.as_view()), name='padd'),
], "inscripcion")
| [
"webmaster@iapprosariotest.tk"
] | webmaster@iapprosariotest.tk |
4b8f8854febf79bf31d89cf22f09b88e462d80be | 6467e1fbd1c25841d127aa72dddfa51391d7f15b | /mydjangoproject/settings.py | b3972d903682ea4585589e839f7d48795c381281 | [] | no_license | mcteach21/Django-Start | f64edd0b133d3c95e1e8894f3b5456bc9c6aa77c | c65e9d5b45bfaa8e3587028718cbc96db0d28444 | refs/heads/main | 2023-06-23T19:31:45.001956 | 2021-07-21T16:26:02 | 2021-07-21T16:26:02 | 388,179,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | """
Django settings for mydjangoproject project.
Generated by 'django-admin startproject' using Django 3.2.5.
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/
"""
from... | [
"60265380+mc-source@users.noreply.github.com"
] | 60265380+mc-source@users.noreply.github.com |
af9b1e7baf542d634560f2491bfec00ceb007998 | a3d8e72f87136ee3298629827f00cd8729ce53ed | /tests/fs_test.py | 4c40b77de3381518033956897e9efa8205585a1d | [
"MIT"
] | permissive | ecotricity/databricks_test | b6f132bd0a46a056e5b4c62aaf91590d0e4c4e01 | f0560c84bdd0dd3eefa976a1af901927a4f299be | refs/heads/master | 2023-02-10T04:23:47.325585 | 2020-12-08T14:55:11 | 2020-12-08T14:55:11 | 315,333,628 | 0 | 1 | MIT | 2021-01-06T13:14:58 | 2020-11-23T14:03:10 | Python | UTF-8 | Python | false | false | 167 | py | import databricks_test
def test_fs():
with databricks_test.session() as dbrickstest:
# Run notebook
dbrickstest.run_notebook(".", "fs_notebook")
| [
"algattik@users.noreply.github.com"
] | algattik@users.noreply.github.com |
76d05e8822d5cec18723335e7abde30589e814c0 | d4a5824ea46412ad37ed2ce08ccf35be4452afd9 | /virtual/bin/django-admin.py | c71413e86455e5e73d48218ea9b17792bf820c9b | [] | no_license | somoire/gram | b6c452b61628e4aee93c458a29dc54ba906676a5 | b02d88470d98c1b9486a238ee63d4f699b237431 | refs/heads/master | 2021-09-09T06:21:23.912307 | 2019-05-23T07:49:20 | 2019-05-23T07:49:20 | 187,171,533 | 0 | 0 | null | 2021-09-08T01:00:38 | 2019-05-17T07:49:16 | Python | UTF-8 | Python | false | false | 167 | py | #!/home/rodney/Desktop/moringa-core/insta/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"rayr30667@gmail.com"
] | rayr30667@gmail.com |
dd01953c26c84e1f5fe62d164e4fe6e71c35e4a2 | d4d3160eb066e9eacacad530669b5750b82358ee | /reactivemqtt/object_receiver.py | e9f5ef31a6597eda2434d8a027890f37c72f8c04 | [
"MIT"
] | permissive | jbarbadillo/reactivemqtt | bbffbf3371a9c8131edca41e36925395d3ca9ddf | f4f1d09b8d65d7ce9cc62de62f0908c4b4476a3f | refs/heads/master | 2020-04-03T06:45:23.724831 | 2019-02-28T20:55:15 | 2019-02-28T20:55:15 | 155,083,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | import paho.mqtt.client as mqtt
class ObjectReceiver():
"""
Receives object identifications and position
"""
def __init__(self, observer):
self.observer = observer
client = mqtt.Client()
client.on_connect = self.on_connect
client.message_callback_add("data/position"... | [
"javier.barbadillo@gmail.com"
] | javier.barbadillo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.