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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83fcc837918a1c5e490a8f68c5b416fe637298e8 | a90b3c7c37c9055b201722efd8a0b6b24aca2b01 | /runAutoBuild.py | d5cdd247c04e8855ae0ec4c26e12ccfdb569e114 | [] | no_license | Jessicajq/iatbackend | 18db1ac6e3941f9441073151fba756d0d96cb854 | f85f1d419f13ba98acbc6a7546350f88dd34ba81 | refs/heads/master | 2023-07-02T21:36:33.747836 | 2021-08-10T11:55:33 | 2021-08-10T11:55:33 | 379,525,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | #!venv/bin/python
#-*-coding:utf-8-*-
__author__="orion-c"
import json,importlib,sys
from flask_script import Manager
from app.tables.IAT import Tree, iatCaseInfo, iatKeyValues
from app import app,db
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
importlib.reload(sys)
sys.setdefaulten... | [
"Jingxiao23*"
] | Jingxiao23* |
127a5fc18e149eb554793751d1c9f0a9da5e41b5 | 26edf9a7a579782e72753c82082047ebe23a5080 | /catalyst/utils/parser.py | e1930e3414d149191ee9167bc1cb8c03417af134 | [
"Apache-2.0"
] | permissive | 418sec/catalyst | e8578c3561d54053bf53cb065d5ab516a2c505e9 | 8ce39fc31635eabc348b055a2df8ec8bc5700dce | refs/heads/master | 2023-02-17T22:18:57.257809 | 2021-01-21T09:27:46 | 2021-01-21T09:27:46 | 327,367,304 | 0 | 1 | Apache-2.0 | 2021-01-21T09:27:47 | 2021-01-06T16:24:31 | null | UTF-8 | Python | false | false | 3,313 | py | import copy
from pathlib import Path
from catalyst.utils.config import load_config
from catalyst.utils.misc import merge_dicts
def parse_config_args(*, config, args, unknown_args):
"""Parse config and cli args.
Args:
config: dict-based experiment config
args: cli args
unknown_args: c... | [
"noreply@github.com"
] | 418sec.noreply@github.com |
f73b622edd8e54e5f435a9293a1a8f311de30fd3 | f3c1c41ebb6179832b3fddb19c9372ae3ddfb68a | /contrib/network/web/qupzilla/actions.py | 15883c9bbaa8ebefe6c29d85da7f09efb90ab43b | [] | no_license | milisarge/pisi2 | a3a4637ee9438b213d770ba2f7427d1102ae8427 | bc869576d60f97d97cff03db2c320d64c64fc40e | refs/heads/master | 2021-01-10T06:39:34.814298 | 2015-12-16T12:54:32 | 2015-12-16T12:54:32 | 47,211,094 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/python
from pisi.actionsapi import qt5
from pisi.actionsapi import pisitools
def setup():
qt5.configure()
def build():
qt5.make()
def install():
qt5.install()
pisitools.dodoc("AUTHORS", "README.md")
| [
"root@lokaldpm"
] | root@lokaldpm |
4d2b0857396028ee946580f4743c905fc47e6247 | 465c45999cfa905d8c416dfbf26aed6c44c87af7 | /数据预处理、描述分析、影响力因素/36氪/数据预处理-36氪.py | 5ec04f62b098627608c64051b6b4653e34001eec | [] | no_license | MengAaron/zhihu-network-mining | 93bd7982afb357ab1b1fba4eedbabc180ac80be4 | e8a0222c8b6d78e0f32e8693576c258e4bd2f4f3 | refs/heads/master | 2021-06-24T10:58:33.873007 | 2019-07-05T01:41:34 | 2019-07-05T01:41:34 | 194,483,175 | 0 | 0 | null | 2019-06-30T06:29:05 | 2019-06-30T06:29:05 | null | UTF-8 | Python | false | false | 5,544 | py |
# coding: utf-8
# # 数据预处理-36氪
# In[1]:
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import matplotlib as mpl
import plotly.plotly as py
import plotly.graph_objs as go
import warnings
warnings.filterwarnings("ignore")
# In[2]:
df_kr = pd.read_csv('./ke_user_info.c... | [
"noreply@github.com"
] | MengAaron.noreply@github.com |
e86aece3b001c0b24a9c3ed3f2b6939c4cea54ad | 777f24af233f8cc3fb9669a9a425ecdf4aba5cc4 | /Basics/lev2/prob_56.py | 0dea35cacb1eb90b6e197b423f61492a0e43d019 | [] | no_license | JagadeeshVarri/learnPython | 15f8fd72e4b83991eddb8e796ef3abdcc1bab333 | 9659b01dd42ca5d461c611778cd5dd729fddfc92 | refs/heads/main | 2023-04-18T23:17:23.026286 | 2021-05-04T17:27:42 | 2021-05-04T17:27:42 | 360,195,232 | 0 | 0 | null | 2021-05-04T17:27:43 | 2021-04-21T14:12:19 | Python | UTF-8 | Python | false | false | 992 | py | # There are 10 vertical and horizontal squares on a plane. Each square is painted blue and green. Blue represents the sea, and green represents the land. When two green squares are in contact with the top and bottom, or right and left, they are said to be ground. The area created by only one green square is called "isl... | [
"jagadeesh@applines.com"
] | jagadeesh@applines.com |
a32bc6831526e1e8cb6abda0f69e28ac7abad649 | 4cffec9082f6063798a4cf51555b84f4e8d1c959 | /price_is_now_right/migrations/versions/11eb9759f228_add_back_the_product_table.py | feb7fa259c14775474239fea5ab8e2513806b081 | [] | no_license | scott-sum/The_Price_Is_Now_Right | 09e19924703a3bcba82fd569d8eccb7e954ebc10 | 235f4899c372e93e5364b3389ab36086f6d9a9d0 | refs/heads/master | 2022-12-12T16:32:08.129350 | 2021-03-07T22:18:43 | 2021-03-07T22:18:43 | 227,378,949 | 0 | 0 | null | 2022-12-08T05:24:52 | 2019-12-11T14:00:00 | Python | UTF-8 | Python | false | false | 987 | py | """add back the product table
Revision ID: 11eb9759f228
Revises: 88f23d563f71
Create Date: 2020-09-01 21:38:17.548272
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '11eb9759f228'
down_revision = '88f23d563f71'
branch_labels = None
depends_on = None
def upgr... | [
"scottsum@outlook.com"
] | scottsum@outlook.com |
dd1aa89d9aaaf2582ed6c7e67b128fe3175d396a | 2c5405981b0f651efc3a90a9d3ad142468c603f8 | /Web/wine_web/flask_app.py | cc9fd0441851b154918627c947651e158aaf7ac2 | [] | no_license | zy2292/Wine-Master | 58b6fdc9a865a3491211e76e2c090f535a37f3ae | 6beae9dba0de244a5662f5e92ceceb29b3478908 | refs/heads/master | 2021-09-20T12:29:27.704349 | 2018-08-09T18:39:50 | 2018-08-09T18:39:50 | 125,771,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | from flask import Flask, flash, redirect, render_template, request, session, abort
import numpy as np
import pandas as pd
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
import text_matching
import image_ocr
import winerd
from PIL import Image
from tempfile import mkdtemp
from werkzeug impo... | [
"noreply@github.com"
] | zy2292.noreply@github.com |
34ec149bd2d89ac38b7dd303d5adfa8b13c20d68 | 5733184a76c56e0d3f373033891cf211fcbfb8e8 | /dataset.py | fd2061ddce78521d87c0bbf39cf811f5761370f4 | [] | no_license | douskaki/stocks_predictions_deep_learning | a4e3dd8e8d33d10dafd1c13bdede750a2fe6a274 | cd5e3c905fe9b579c57984628392511750936f90 | refs/heads/master | 2022-07-15T18:08:25.183431 | 2019-09-08T11:42:51 | 2019-09-08T11:42:51 | 206,952,455 | 1 | 2 | null | 2019-10-30T04:14:27 | 2019-09-07T10:30:39 | Jupyter Notebook | UTF-8 | Python | false | false | 2,053 | py | import os
import numpy as np
import pandas as pd
import json
import matplotlib.pyplot as plt
from pathlib import Path
from datetime import datetime
from embeddings import *
from training import *
from dataloader import *
from config import *
def main():
data = DataLoader()
data.load_data()
data.calcula... | [
"ddousk@aueb.gr"
] | ddousk@aueb.gr |
e17bd4f666b90e1af7cfe89fca51289d4aef333f | 3a098ee54834e9b91af4943725a9f24013f42f33 | /burger-builder-api-django-tastypie/api/migrations/0004_auto_20200201_2230.py | 5e5c91df96fcc27f894c16ef5388c25947dc3baa | [] | no_license | sedyjaku/burger-builder-backend | 04fee427fb00dfb2291e413dfd941fef0db7ce9d | d0bb4c67404ac3ada67022b60be2c8718d58a4ab | refs/heads/master | 2022-03-28T10:19:04.088051 | 2020-02-02T12:29:15 | 2020-02-02T12:29:15 | 237,764,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # Generated by Django 3.0.2 on 2020-02-01 21:30
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),
('api', '0003_auto_2020020... | [
"sedyjaku@fit.cvut.cz"
] | sedyjaku@fit.cvut.cz |
d0ee57df69690ae6dcc07ab05d28eb1a5405ed0e | d68f4e7336aed8b7596874de24473d0e88e07a4c | /Python/Tkinter/Basic_Widgets/05_selection_boxesOutput.py | 922608fcccec29f3d84a057d63a1ebc6c11f231f | [] | no_license | mauricesandoval/Tech-Academy-Course-Work | 8a8f9ed16203860bb4e86ad4a98185c8312b3dbf | caa9ed9ea6a3ee07a2174d4dccc173d14f5850f1 | refs/heads/master | 2021-01-15T15:39:05.395004 | 2016-10-06T06:27:44 | 2016-10-06T06:27:44 | 50,371,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from tkinter import *
>>> from tkinter import ttk
>>> root = Tk()
>>> month = StringVar()
>>> combobox = ttk.Combobox(root, textvariable = month)
>>> combob... | [
"m239111@gmail.com"
] | m239111@gmail.com |
000172c452a04c77bf414ac57456e3e890c4885c | 81d72aaa522a414a9763272014a6d74d241d2835 | /第4周月结代码/python_mysql.py | bfd1f79ef12a91325ec6c1188d67b82923876f0d | [] | no_license | yaim97/python_test | 76d661359ad113ff22a96ab66343d6d9bb0f2a89 | 951dd395daadf4c63a788c4de6b626279472fa93 | refs/heads/main | 2023-04-12T01:35:52.650308 | 2021-05-13T00:37:10 | 2021-05-13T00:37:10 | 359,379,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # 导入包
import pymysql
# 链接数据库
db = pymysql.connect(
host="localhost",
user="root",
password="xxxxxx",
database="test",
)
# 定义游标
cursor=db.cursor()
# 创建表
sql_create_table="CREATE TABLE User(id int, name varchar(255))"
cursor.execute(sql_create_table)
# 插入数据--1
sql_insert="INSERT INTO User VALUES(0,'y... | [
"yaim_fff@163.com"
] | yaim_fff@163.com |
ca23ca5a26bcb339cb97f63c9b7f997cc1b1a870 | bc9b3fcae8ac805838af600455060d8c43e57e65 | /firstpython.py | 916b7ca7829bb93434fb636a1e1829be2f76ceec | [] | no_license | Happy-Chappy/Happy-Chappy-s-New-Toy | 6ad1dbf4740eafe493f90c4b9eedeef8c72bdfd7 | 7d77be08afcc6c4021b7bfef73f1e5233b836973 | refs/heads/main | 2023-01-23T04:38:22.865636 | 2020-12-01T12:39:43 | 2020-12-01T12:39:43 | 316,486,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | # displays the output
print("New Python File")
| [
"noreply@github.com"
] | Happy-Chappy.noreply@github.com |
f05d0b68f3b351020ae8b4441e7d3a9427496658 | fddcd9c10f58d56cf6772b19e6006ef966124f27 | /tweet_collector.py | be0acb59bd58089dd18a2c047c170dd5e24bde9e | [] | no_license | pbaisla/emptybot | e82b778b043fe987c0e715d9d7983afbf914a1fc | 2092443f56be4bd0ed9629b4eee7946ba99a32a8 | refs/heads/master | 2021-01-16T21:24:00.176801 | 2015-12-30T18:39:05 | 2015-12-30T18:39:05 | 30,426,185 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from tweepy.streaming import StreamListener
class TweetCollector(StreamListener):
def __init__(self, limit = 100, api = None):
super(TweetCollector, self).__init__()
self.limit = limit
self.count = 0
self.tweets = []
def on_status(self, tweet):
self.tweets.append(tweet.... | [
"prashant_baisla@yahoo.com"
] | prashant_baisla@yahoo.com |
95f23e959ecffc5a81d159f14adacc28630e1f64 | a343c109d7b875f80b2cbd422c5141930f3d3991 | /train.py | 3642e7cbb7b99d4cb671cadc834208dd7fbf3cfa | [] | no_license | Cuzny/Human-in-the-loop | 44541c6f1bb24e7b1726a3abe52596df03aff233 | ec57adfe0e81a421bcecfd82e44ca9a84c4b4a6d | refs/heads/main | 2023-02-08T02:32:29.217194 | 2020-12-29T07:26:17 | 2020-12-29T07:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | import torch
import random
import logging
import numpy as np
import sys
import math
from tqdm import tqdm
from torch import nn
from torch.utils.data import DataLoader
from models.resnet18 import ResNet18
from models.hill_model import HillModel
from dataset import Cifar100Dataset
from PyQt5 import QtCore, QtGui, QtWid... | [
"noreply@github.com"
] | Cuzny.noreply@github.com |
bf66ddf954e8631a254cba78ad53e0639b54b9f4 | 7e4f2d5bcf5fb8da7597b8d8b57301f49ec8d361 | /standup/migrations/0007_auto_20191015_1742.py | 3726593a81d3e7c315fa475c1d2dea3983c1d0b0 | [
"Apache-2.0"
] | permissive | davad/discord-standupbot | 3bc21a32e114cc44ef926f43f6cbc9d895b40088 | cc59dd543a1876acca04bf88b585f5591050a017 | refs/heads/master | 2021-05-20T13:53:48.212882 | 2020-04-02T01:29:12 | 2020-04-02T01:29:12 | 252,323,639 | 0 | 0 | Apache-2.0 | 2020-04-02T01:13:15 | 2020-04-02T01:13:14 | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.2.6 on 2019-10-15 15:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('standup', '0006_auto_20191015_1741'),
]
operations = [
migrations.AlterField(
model_name='user',
name='discord_id',
... | [
"dave@indentity.nl"
] | dave@indentity.nl |
494275755a9076067a8d3419be5e29b380628506 | bcfc061e3ab61bec7ff0f6f4b40a68176b627895 | /SSHConnection.py | 23e54836339a51dec4c499d61a168695f4a77f4b | [
"MIT"
] | permissive | Minituff/SSH-Tools | cf10a33abfa3ef122fc24da49bc89a05959a81c8 | 0998db5b462b09779a0f02c886caca95989e0dee | refs/heads/master | 2020-03-27T16:23:08.249261 | 2018-08-30T17:04:57 | 2018-08-30T17:04:57 | 146,778,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import netmiko
from datetime import datetime
from netmiko.ssh_exception import NetMikoTimeoutException, SSHException
from Database import ExcelFunctions
#import Database
class SSH:
def __init__(self, doc=ExcelFunctions()):
self.doc = doc
self.sess_device_type = None
self.sess_us... | [
"jspamless@gmail.com"
] | jspamless@gmail.com |
0859301131c7399992ab09944372b3a08675df5a | fe8df39766362f4a655c1a82c7a70a8e24795b60 | /Florence/MaterialLibrary/Multi_Piezoelectric_100.py | ad4a7bb016eec9f9771d1b612999ad0064f0f26d | [
"MIT"
] | permissive | romeric/florence | 0bd4698e27e00869599d4621eadcbdd856118a17 | 256777e369b0d2774887bd4ea69e1c42d1bc82f0 | refs/heads/master | 2023-07-25T13:19:13.547503 | 2023-07-16T14:07:50 | 2023-07-16T14:07:50 | 40,538,446 | 79 | 15 | MIT | 2020-06-05T00:10:13 | 2015-08-11T11:38:35 | Python | UTF-8 | Python | false | false | 7,094 | py | import numpy as np
from numpy import einsum
from Florence.Tensor import trace, Voigt
from .MaterialBase import Material
from Florence.LegendreTransform import LegendreTransform
from math import sqrt
class Multi_Piezoelectric_100(Material):
"""
Piezoelectric model in terms of internal energy
... | [
"roman_poya@yahoo.com"
] | roman_poya@yahoo.com |
55a72f61c2f3d994c4bd5b318f096dddac21a36d | 6a820793513a47dcc59b075932f1614791cedade | /lesson08_01.py | dfe974ac59690db28e0c611434427ecc2cfa0833 | [] | no_license | Freeman1989/webSpider | 0706442087a9a3d487dcf243c4816c893263f151 | e6ec8d08389b28b9a0742c6e93e927acd41c2a08 | refs/heads/master | 2021-01-10T17:23:07.602700 | 2015-05-30T15:13:47 | 2015-05-30T15:13:47 | 36,505,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from bs4 import BeautifulSoup
html = """
<html><head><title>The Dormouse's story</title></head>
<body>
<p class="title" name="dromouse"><b>The Dormouse's story</b></p>
<p class="story">Once upon a time there were three little sisters; and their names were
<a href="http://exam... | [
"xianglijiang1989@gmail.com"
] | xianglijiang1989@gmail.com |
2759b9f7baf723ae60676754b62d736c6b6cad43 | 57d1d3465f50fdbbcbbbc6261e10288fa75563c6 | /DjangoRestApi/DnaData/DnaData/wsgi.py | 6da5e33b6b361817d60ff1d4fefda83b057efce2 | [] | no_license | prajaktapraju/Flask | 41dedbea72f78d191524e87dcfc1cd3643ce4142 | d86ca7378a853678c38ba3431b10b40ec8048dfc | refs/heads/main | 2023-05-04T19:26:47.401196 | 2021-05-27T08:16:47 | 2021-05-27T08:16:47 | 371,296,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for DnaData project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"noreply@github.com"
] | prajaktapraju.noreply@github.com |
fa64bc47a0d842a57368f0fc183700c15c7daba4 | 232ef0064e29068b22abb0cf6d20f126e06ecf14 | /students/laud/session03/strformat_lab.py | 61599ce090576c5e9decfeda581f82bff7650948 | [] | no_license | ikemerrixs/Au2018-Py210B | 588b231a937082056daf86b0059796a5149536cf | d8c602a0f5090cc4671b59ff1ec60cbfae03a19f | refs/heads/master | 2020-03-30T00:36:09.219860 | 2018-12-17T07:36:42 | 2018-12-17T07:36:42 | 150,532,599 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,527 | py | #!/usr/bin/env python3
from inflection import singularize
# Small helper functions to be used in Task One & Task Two
def first_place(in_tuple):
""" Pad integers with preceding zeros """
return str(in_tuple[0]).zfill(3)
def second_place(in_tuple):
""" Round up to 2 decimal places """
return str(round(i... | [
"laud@studiotenfour.com"
] | laud@studiotenfour.com |
6dd563ad4a6df3d40de5db5d7789ea5e4b200057 | cb388020b13e38e75035544b734924513b69bf7c | /run.py | eb54b1a11c9f780ac767daf3dbee99a213340ddc | [
"MIT"
] | permissive | adamkudrnaty/python-instagram-reposter | 98beb4838b4fcbc5d2c0738b84000743c50c48b1 | cbe449b638f91c053159df732b1638354f85af76 | refs/heads/main | 2023-01-23T17:17:08.560132 | 2020-12-10T16:15:45 | 2020-12-10T16:15:45 | 320,320,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | #Importing needed libraries
import requests
import re
import urllib.request as urllib2
from datetime import datetime
from instabot import Bot
import time
accounts = ["https://www.instagram.com/account/", "https://www.instagram.com/account2/"]
regex = [r"\"display_url\":\"(.*?)\":\"(.*?)\\u0026(.*?)\\u0026(.*?)\\u0026... | [
"noreply@github.com"
] | adamkudrnaty.noreply@github.com |
74f32c660e90c47e541da54c9fcbcd0260bfeab0 | bea0540ab6bd86218df3edfd805a92d34e7f2044 | /euler/old/coconut/tests/test_coconut.py | 5132c06fd4df9a2d9f928bef8b4aa4734883f2c3 | [] | no_license | Bietola/problems | b6e9b47295d7779cdcb729ce80949747e8d76892 | 96c7a1a47b8921334202da2309998a6deb9a38d4 | refs/heads/master | 2023-02-07T06:48:57.122931 | 2023-02-02T14:36:54 | 2023-02-02T14:38:00 | 139,749,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from coconut import __version__
def test_version():
assert __version__ == '0.1.0'
| [
"dincio.montesi@gmail.com"
] | dincio.montesi@gmail.com |
c98dad88ddb967c859283974141ca83599b1e063 | dfafecd03f99aa411659e03fca3ca4233e323bf3 | /PredictiveProject/PredictiveAcceptance/views/UserRegisterView.py | 9d00623fe67a8657812b84493455a03085cc5087 | [] | no_license | Chermaraj/PredictiveProject | 822c5c18f5e61792b3f870ada8bb0635bbd7befa | 30485d501b98976924be5e3cb0b69c6cad4d7787 | refs/heads/master | 2023-01-07T16:07:17.206303 | 2019-04-01T03:57:43 | 2019-04-01T03:57:43 | 174,879,398 | 0 | 0 | null | 2022-12-27T15:35:28 | 2019-03-10T20:50:38 | CSS | UTF-8 | Python | false | false | 2,084 | py | from django.shortcuts import HttpResponse, render, redirect
from PredictiveAcceptance.forms.UserRegisterForms import userRegisterForm
from PredictiveAcceptance.models import PredictiveUsers
from django.contrib import messages
import bcrypt
def userRegister(request):
form = userRegisterForm(request.POST or None... | [
"mchermaraj@gmail.com"
] | mchermaraj@gmail.com |
1ba31fc8881484c488b6b1c98e0c9ba4425b8e45 | 1dee912651d9a91987055c399dc4afbaea02d6d6 | /proxychecker.py | 477264cfdd1d3810df9aeaa6984f0d9a12a1cb58 | [] | no_license | GnikLlort/proxychecker | a5f318c72a9feb04a27fd3671fa17625faaf37b7 | bf84ea22c2e5f45fab0aca4e293fcd5c57a7895d | refs/heads/master | 2021-01-19T12:30:40.355551 | 2017-08-19T12:56:35 | 2017-08-19T12:56:35 | 100,793,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import urllib2
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip = s.getsockname()[0]
s.close()
import urllib2
response = urllib2.urlopen('http://shroomery.org/ythan/proxycheck.php?ip=' + ip)
html = response.read()
if html == "N":
print "Your IP is not listed as a Proxy... | [
"noreply@github.com"
] | GnikLlort.noreply@github.com |
1aed8aa9e3c57de96f68d416efe7b57f31d0eaf4 | 907451139fbf3ebbf1d3700b2159848abc27916e | /tests/sectionobject_tests.py | ac03292dcff16ca0569a5306bf1ba07ea86675ed | [
"MIT"
] | permissive | ncjones/holmium.core | 98f964a9f9a99996e5c1bcbfbb6effda6170119b | 2696b133b7ec19f34dcfb206b34689cf90d459e4 | refs/heads/master | 2021-01-15T13:02:11.965057 | 2014-03-14T12:56:26 | 2014-03-14T12:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,069 | py | import unittest
from holmium.core import Locators, Page, Elements, Section, Sections
import mock
from tests.utils import get_driver, make_temp_page
class BasicSection(Section):
tokens = Elements(Locators.CSS_SELECTOR,
"div.token")
class BasicSectionList(Sections):
tokens =... | [
"ali@indydevs.org"
] | ali@indydevs.org |
97241600786ec39b5f7dd04e475f1cee494721e3 | d212b88a11a4d36eeeabd50c6b1206856238a95c | /ex19.py | 22966eb2b138dc0ab120a3a938c118d40a1c18c5 | [] | no_license | giusepped/zed_pythonexercises | cbee42cf822367b104c0a89654380d27ac9bed3e | 34af279d5d095c7b73779a9d850750cfed1b73a8 | refs/heads/master | 2020-04-10T13:54:30.743225 | 2014-06-26T15:08:03 | 2014-06-26T15:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %r cheeses!" % cheese_count
print "You have %r boxes of crackers!" %boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the function numbers directly:"
cheese_and_crackers(2... | [
"giusdesan@gmail.com"
] | giusdesan@gmail.com |
4514296c0e33ef89eee9d7ef1777d80d60e9c0f0 | c1cc6954fa4df17d120e6d85c0511a488840a0be | /manage.py | 35673eb82dd94437a21cee8619bd62e91b7e0b7f | [] | no_license | ankitverma31/SeatingArrangement | e9cff5517337600254dbfca3a69c4e1b6fd64b51 | 44e623564bbd9ffced74d4b5d249d162d6b15866 | refs/heads/master | 2020-05-22T19:54:05.443766 | 2017-04-01T16:40:11 | 2017-04-01T16:40:11 | 84,719,766 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SeatingArrangement.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensur... | [
"ankitverma3103@gmail.com"
] | ankitverma3103@gmail.com |
2a105de26d0350da0f00a9b50cb0c032074cbc3e | fa6d655123d642d601f5a6c190df32e48c982a99 | /src/base/BaseGrid.py | 7d32384327c544c355eff42146b8f30c13c597bd | [
"BSD-3-Clause"
] | permissive | owenpanqiufeng/uav_data_harvesting | ead5385becd3602805cb92479f006db9b2c51dce | 896f2d0e42943f26cbc14fb492cca14d86887842 | refs/heads/main | 2023-03-25T05:00:24.397640 | 2021-03-14T09:22:34 | 2021-03-14T09:22:34 | 367,527,368 | 1 | 0 | BSD-3-Clause | 2021-05-15T03:00:25 | 2021-05-15T03:00:24 | null | UTF-8 | Python | false | false | 776 | py | from src.ModelStats import ModelStats
import src.Map.Map as Map
class BaseGridParams:
def __init__(self):
self.movement_range = (100, 200)
self.map_path = 'res/manhattan32.png'
class BaseGrid:
def __init__(self, params: BaseGridParams, stats: ModelStats):
self.map_image = Map.load_ma... | [
"harald.bayerlein@eurecom.fr"
] | harald.bayerlein@eurecom.fr |
1ef77c3da14d28b62aeb51660600f6996d11d76b | 258c25862d2b5eaba7195b6a31338a9e10de81ea | /post_timestamp_app_poc/commands/post.py | 2fbd265bce5aa6a0d3e3b02d6c574cd9c6346dd2 | [
"MIT"
] | permissive | jfharden/post-timestamp-app-poc | a2a1b998fa5471355c72055b1451f63aed383131 | 3f94972e6f9fd6527d970c06cfa473df7c15d388 | refs/heads/master | 2023-05-06T11:08:28.846055 | 2020-07-16T13:32:37 | 2020-07-16T13:32:37 | 279,578,359 | 0 | 0 | MIT | 2021-06-02T02:30:59 | 2020-07-14T12:25:31 | Python | UTF-8 | Python | false | false | 1,179 | py | import json
import os
import sys
from post_timestamp_app_poc.commands.base_command import BaseCommand
class Post(BaseCommand):
"""Provides the post command. Will run a curl command to send a POST request to the deployed
application.
Args:
endpoint (string): url to send the POST request to. If se... | [
"jfharden@gmail.com"
] | jfharden@gmail.com |
f982f02c63f8139b01c257796d40a98209d40cab | 4252d5487c9aa362d9f2a0b57fae8eedfde1b73a | /devel/lib/python2.7/dist-packages/hsr_common_pkg/msg/_SoundEffectResult.py | 23096b0c524c6b0eb889d9be06c15dd74625d749 | [] | no_license | panchoooon/atYamaguchi_ws | 45dc13eb5f0bfee805f0437fa9605ae683292d64 | fa982df33effe9a2bb0c9768bd6718e0645cd80d | refs/heads/master | 2020-03-11T19:13:13.069074 | 2018-04-19T01:43:16 | 2018-04-19T01:43:16 | 130,200,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from hsr_common_pkg/SoundEffectResult.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SoundEffectResult(genpy.Message):
_md5sum = "d161aeed5b6d234a0b24e116c394776... | [
"panchokyutech@gmail.com"
] | panchokyutech@gmail.com |
af23eedae837ceb19106d8a341a6a986979b3a62 | d2fd2c37c464af32c4f13dca14931fa0e782b05d | /publishconf.py | 1cd46281fad0bb27e9d0a7e1c1ea31fb6ed8298a | [] | no_license | chrisaddy/lambdacalculus | 173179ecac5653a26d2e8febf9283f3405494aa6 | 15691053ce476fb049f0515c47b7f46a053e5566 | refs/heads/master | 2020-04-13T00:43:20.297548 | 2018-12-23T02:49:03 | 2018-12-23T02:49:03 | 162,853,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL... | [
"chrisaddy@Chriss-MBP.fios-router.home"
] | chrisaddy@Chriss-MBP.fios-router.home |
39eb2b2da40346d6a4add83254d60e9f19d3fae6 | d212cdc1dd3a49dd468de45840877c0496b77593 | /MySQL/full_friends/server.py | c2f36cf5f72ceb2daac50e85aed8fdac79ce8bd6 | [] | no_license | CodingDojoOnline-Nov2016/JeremyFeder | 9d5f9e2d7a1f414923e381c6f0c2caa1801f9bfb | 2ebb462bc33a27cd6ba69a340e528927d3377713 | refs/heads/master | 2021-01-18T22:33:00.438962 | 2017-06-02T21:37:43 | 2017-06-02T21:37:43 | 72,599,358 | 0 | 2 | null | 2016-11-05T18:10:20 | 2016-11-02T03:10:41 | HTML | UTF-8 | Python | false | false | 1,876 | py | from flask import Flask, request, redirect, render_template
from mysqlconnection import MySQLConnector
import re
app = Flask(__name__)
mysql = MySQLConnector(app,'full_friends')
EMAIL_REGEX = re.compile(r'^[\w\.+_-]+@[\w\._-]+\.[\w]*$')
app.secret_key = 'blahblahblah'
@app.route('/')
def index():
query = "SELECT ... | [
"J.Psycle@gmail.com"
] | J.Psycle@gmail.com |
775c4134fff248489ab5f15bace3380c1b36d6a2 | 58dd75d40aeccc05f5a67272f23fddf4849c8154 | /Tracking/norfair/video.py | 5d8e7930000d99d7cfd6b26e5479ae0e208de23e | [] | no_license | tuananh1406/Tracking_Pipeline | 0d85c92eb92b51eaece9dec35a97e34af7269f95 | afd4a22d46c480afc9485365307b52941e5a2de3 | refs/heads/master | 2023-08-31T23:03:02.541952 | 2021-10-28T03:47:14 | 2021-10-28T03:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,076 | py | import os
import time
from typing import List, Optional, Union
try:
import cv2
except ImportError:
from .utils import DummyOpenCVImport
cv2 = DummyOpenCVImport()
import numpy as np
from rich import print
from rich.progress import BarColumn, Progress, ProgressColumn, TimeRemainingColumn
from .utils import... | [
"haok61bkhn@gmail.com"
] | haok61bkhn@gmail.com |
0eb448466f8c34e73f72e2789a800f3b5081ff37 | 49ee49ee34fa518b0df934081f5ea44a0faa3451 | /crack-data-structures-and-algorithms/leetcode/python-impl/permutations_q46.py | e3b9e34da6d0e77e7733e3779e44e8b60198bc85 | [
"MIT"
] | permissive | kingsamchen/Eureka | a9458fcc7d955910bf2cefad3a1561cec3559702 | e38774cab5cf757ed858547780a8582951f117b4 | refs/heads/master | 2023-09-01T11:32:35.575951 | 2023-08-27T15:21:42 | 2023-08-27T15:22:31 | 42,903,588 | 28 | 16 | MIT | 2023-09-09T07:33:29 | 2015-09-22T01:27:05 | C++ | UTF-8 | Python | false | false | 902 | py | # 核心思路
# 首先排序保证数组为递增序(题目保证每个元素都不同)
# 然后不断调用next-permutation生成序列
class Solution(object):
def permute(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums.sort()
result = []
while True:
result.append(nums[:])
if not nex... | [
"kingsamchen@gmail.com"
] | kingsamchen@gmail.com |
ad4f92175aa66153e8f82f0323ba59693d856785 | 7c228c0343302ce2d189ac6bc1912569b3928721 | /testcases/urls.py | fcb523e70a078c8090d6febde961679f418f7116 | [] | no_license | akshar-raaj/Testing-in-Django | 0fd69af6e9b223222558697d0a87b05aa4058a88 | 08f75a12031323cc0b49ea18f01e3df934920d22 | refs/heads/master | 2020-04-23T13:55:47.840821 | 2013-06-29T16:26:20 | 2013-06-29T16:26:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# url(r'^testcases/', include('testcases.foo.urls')),
url(r'^blog/', include('blog.urls')),
# url(r'^admin/', include(admin.site.urls)),
)
| [
"akshar@agiliq.com"
] | akshar@agiliq.com |
ffdb9fc6f064d0882096c796a268b9df4dbdb362 | 9b54cc2e6548f9a5022c41f82906afc63db866ff | /contrib/python/api/skydive/encoder.py | 999748895ab191e796a81b2365bc05df159915d8 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Gtmasks/skydive | fc50b30346f8d8c55a24cabc5406d96a0fd5ab7b | e570a3ef249e71e3de5cf099d85a4660fc324182 | refs/heads/master | 2020-06-05T20:10:40.632126 | 2019-06-17T08:00:00 | 2019-06-17T08:00:00 | 192,534,897 | 3 | 0 | Apache-2.0 | 2019-06-18T12:24:02 | 2019-06-18T12:24:01 | null | UTF-8 | Python | false | false | 806 | py | #
# Copyright (C) 2017 Red Hat, 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 ofthe License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"safchain@gmail.com"
] | safchain@gmail.com |
11da670a95fa62771a9724b1bcaa783d502ccbf3 | 6e635e03b61e2e4150300d0b80e06d06f207dbe3 | /kite/Katie-s-Rougish-PyGame-master/roguey/classes/constants.py | 82ff15a29683b7eed399ba4dfae0195bc4f54cfc | [] | no_license | chris3will/pygame_2018_fall | c22a83125bbd0fbc287a34d802339369869f198d | 1e1bf77f6ef7da304f47e8e79679b81c20e7c160 | refs/heads/master | 2020-04-09T11:59:48.765994 | 2018-12-05T12:00:10 | 2018-12-05T12:00:10 | 160,331,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from os.path import abspath, dirname, join, sep
MOVEMENT_SIZE = 12
RADIUS = 2
BLACK = (0,0,0)
WHITE = (255, 255, 255)
COLUMNS = 16
ROWS = 21
TREASURES = 10
MAX_ROOMS = 10
MONSTERS = 12
TILE_SIZE = 48
DIRECTIONS = ['north', 'south', 'east', 'west']
LONG_STRING = "X" * 50
EQUIPMENT_TYPES = ('hat', 'shirt', 'pants', 'sh... | [
"37741175+chris3will@users.noreply.github.com"
] | 37741175+chris3will@users.noreply.github.com |
b6b39991c7a7f9ecfee8e0d9ba9cea534ad0cf71 | 4131625553ff59b4c730ae7148dd5d603d8cb87d | /codingBat/python/string1/atFirst.py | 33854fc4222c0d56e3960a2970e2b34cde13d087 | [
"MIT",
"Apache-2.0"
] | permissive | odonnmi/learnNPractice | 29034304303aab3827e6b3334b1d7d9d65b93e54 | eb1c775e4d6e35cebb7b109b46b91f9aecb2d9ec | refs/heads/master | 2020-12-04T14:52:00.520219 | 2019-09-03T06:30:03 | 2019-09-03T06:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | #######################################################################################################################
#
# atFirst
#
# Given a string, return a string length 2 made of its first 2 chars.
# If the string length is less than 2, use '@' for the missing chars.
#
###################################... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
cd095aacd079e15847b591c88ec91ffbb0c56f98 | 5fc5d167988bf20cd3fdfca566ebe4e97a103b84 | /.history/backend/views_20210628145734.py | 8fee98cbe7d2c99a6523cea5ba56f9c069035aad | [] | no_license | david-cons/2IOA0-dbl-hti-webtech-project | bd2fb604b70976f12ea6f8da12019e6335819d2f | cb7d3db2aca41ce163afcd11827464e80fb3c9f2 | refs/heads/main | 2023-06-14T21:58:35.021079 | 2021-06-30T15:57:13 | 2021-06-30T15:57:13 | 362,735,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,483 | py |
########Backend Utility Libs#####
from django.shortcuts import render
from django.http import JsonResponse
from django.http import HttpResponse
import django.http
import json
################################
########Data Science and Graph libs######
import pandas as pd
import networkx
import matplotlib.pyplot as plt... | [
"popo@pop-os.localdomain"
] | popo@pop-os.localdomain |
41491cde4366456b8a12bfe033ee0f233cab506e | 606e50577fe469f4656b3e3442d20edc7b7a730a | /Drones_dataset.py | 9d966ca86a938a12e35cd3f873f856d7ffc655c6 | [] | no_license | tanzee-xalient/Python-extracting-data-features-from-.xml- | 2324b50e2cb120ead79415e6739f8b110e728168 | 436b0a6f2dd58426e801e5e1a658e54aeb912f56 | refs/heads/master | 2022-11-23T06:41:50.701037 | 2020-07-26T23:37:53 | 2020-07-26T23:37:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py |
import csv
import os
import cv2
from xml.etree import ElementTree as ET
with open('ddata_Tan.csv', 'w', newline='') as f:
d_writer = csv.writer(f,delimiter=',')
d_writer.writerow(['image_name', 'image_width', 'image_height', 'classname', 'xmin', 'ymin', 'xmax', 'ymax'])
for file in os.listdir('da... | [
"noreply@github.com"
] | tanzee-xalient.noreply@github.com |
a49d52326b801b4b6b3eadb422861461ed1470eb | 85a5a8167d086405a57882ec184e4e4c78ba4d1f | /trees.py | 03b21af981e5bc2a8ccd8321ba193341f1e02d2e | [] | no_license | harisont/python-course-gbg | 4aee968eeb9fbfb841f601e5d5205d56ff6caa30 | 4b2f7cd5e230adc6a2b69ee7d1c183562951e4de | refs/heads/master | 2022-12-04T04:21:31.779917 | 2020-08-19T15:29:42 | 2020-08-19T15:29:42 | 288,425,611 | 0 | 0 | null | 2020-08-18T10:32:22 | 2020-08-18T10:32:21 | null | UTF-8 | Python | false | false | 1,580 | py | class Tree:
def __init__(self,node,subtrees):
self.node = node
self.subtrees = subtrees
def getParts(self):
return self.node, self.subtrees
def atom(a):
return Tree(a,[])
def plus(x,y):
return Tree("+",[x,y])
def times(x,y):
return Tree("*",[x,y])
def parenth(s,ownprec,e... | [
"aarne@chalmers.se"
] | aarne@chalmers.se |
8aeb8aa4e4c6036b28d3b3816693f3a413e72ba8 | 4202400dcbb4c45dbe829ed568a66467bf6ebe46 | /node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py | eb9858f0c808f632157945c721a52d0bc5d41ea0 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0"
] | permissive | hardcodepunk/wietse-van-belle | 0c421a558307c14102a80bfcaed2dd09be739749 | 72212269aed992201f2c36a0dce3b11ee84a42dd | refs/heads/master | 2022-12-14T02:27:03.008270 | 2020-12-16T23:36:41 | 2020-12-16T23:36:41 | 253,223,935 | 0 | 0 | MIT | 2022-12-05T18:30:31 | 2020-04-05T11:57:58 | JavaScript | UTF-8 | Python | false | false | 116,306 | py | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from compiler.ast import Const
from compiler.ast import Dict
from compiler.ast import Discard
from compiler.ast import List
... | [
"hijbrid@gmail.com"
] | hijbrid@gmail.com |
b78f58fb82aa55629a9cf92886e6413cee4a46a1 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_overthrew.py | 9ed4b852fc88c8b8fc7ce3c2abcec23a320f7848 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py |
#calss header
class _OVERTHREW():
def __init__(self,):
self.name = "OVERTHREW"
self.definitions = overthrow
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['overthrow']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fcec114141bea27fe5ff040668929cf71a3d196f | 44769f7a762cf97ee89a7dacac7130604b106e5d | /015.py | 1819c600c40dfd31d0b7a80535c84d154ef46752 | [] | no_license | wsteitz/project_euler | b07f687ac0191fb7779da9424fa0ccdbb026845a | 7cce335af94d3b299d93f5499549a389917e7c84 | refs/heads/master | 2020-12-24T15:22:54.597499 | 2016-09-01T07:13:20 | 2016-09-23T22:05:35 | 23,405,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from math import factorial
"""
l = "1111111111111111111100000000000000000000"
count = 0
for perm in itertools.permutations(l):
count += 1
print count / len(l)
"""
grid = 20
print factorial(grid * 2) / factorial(grid)**2
| [
"wsteitz@gmail.com"
] | wsteitz@gmail.com |
9eeba3bf89847c9244f6fb3baafa667ad3c11898 | 8952afe242c836b516c6236cf0987676cfb7abf7 | /TaobaoSdk/Request/SkusQuantityUpdateRequest.py | 362ac46016c97546a389f4f0b4f8fe9103ca1b6f | [] | no_license | xieguanfu/TaobaoOpenPythonSDK | 2fc20df983811990a2d981379c9da6c1117f9f21 | 88cdab41ba19a2326aa4085c92455697bd37d8d7 | refs/heads/master | 2021-01-18T14:38:51.465614 | 2014-08-21T05:44:42 | 2014-08-21T05:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,538 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 提供按照全量/增量的方式批量修改SKU库存的功能
# @author wuliang@maimiaotech.com
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardir))
__mod... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
a8993720170cfc7d1fbafda77c2596bbb58cd6af | cdd127e181ab90947936965d79a1aa9fc8985f6c | /users/migrations/0002_auto_20201222_0633.py | 4f09d4c5e4d96ca83465791ed322a9268fe24f4c | [] | no_license | shahrukh-alizai/demo1234-9 | 0a60c3cf47e626608d7c83100b4ca703a4af9835 | a14cee6fb45a934f0925cd3cb2ccf10bda3780c1 | refs/heads/master | 2023-02-10T22:20:42.790550 | 2020-12-22T10:29:48 | 2020-12-22T10:29:48 | 317,141,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.17 on 2020-12-22 06:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="user",
name="name",
field=... | [
"shah@crowdbotics.com"
] | shah@crowdbotics.com |
255aa9e44f7eaed70e19f4175ff5b0a6b9225677 | 84d4891280710d0091b80b0e30bf7daabfedc7a7 | /src/nn_model.py | e669d80fd61d89de39ccdafc9859ef535237b102 | [
"MIT"
] | permissive | sebastjancizel/tps-march | 0d7b22410d164a7168142cd5341449b269d82129 | 362fac493f59c6e6919284a035a801963c680fa5 | refs/heads/main | 2023-04-01T10:09:05.527921 | 2021-03-29T09:05:23 | 2021-03-29T09:05:23 | 350,458,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | import pandas as pd
import numpy as np
import config
import utils
import torch
import torch.nn as nn
import torch.nn.functional as F
from pathlib import Path
from tqdm.auto import tqdm
from sklearn.metrics import roc_auc_score
from datetime import datetime
from torch.utils.data import DataLoader, Dataset
from torch.u... | [
"sebastjancizel@gmail.com"
] | sebastjancizel@gmail.com |
8f5edd767297a83e3c9b29e49b8bdd458c25acee | e219302b5c0c7e8cf4bb5b19380aeba490e82a37 | /unit_test/US1.45/test_uniform.py | 1b611c20e5c420f05d609d2a93561355f7e0adc8 | [] | no_license | shayan-kousha/SurVAE | 90c1903982f39d8b75ff9eed9e9d3738e2e0b885 | 5d19f021e405131cefd6d58f1330850b4b007586 | refs/heads/main | 2023-04-19T05:52:09.723605 | 2021-04-28T16:44:47 | 2021-04-28T16:44:47 | 333,539,778 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import jax
from jax import numpy as jnp, random
import sys
sys.path.append(".")
from survae.nn.nets import MLP
import survae
from flax import linen as nn
import numpy as np
rng = random.PRNGKey(7)
rng, key = random.split(rng)
dist = survae.StandardUniform()
sample = dist.sample(rng, num_samples=4, params=jnp.zeros((2,... | [
"shamvinc@cvil2.eecs.yorku.ca"
] | shamvinc@cvil2.eecs.yorku.ca |
127460c0ab7653e58154692f1c47e194d041a7a7 | 25f4c06e9bb1b03da367fc5981dbfe1ddd970d28 | /Python/generador de contraseñas.py | 0b7aecfe9bd30e3549baa319e05e3ff77524db86 | [] | no_license | Shubzedm007/Hactoberfest-accepted | 78426a64c87a6bf65b97982e060b9b2722575c08 | 636482068735558785837b01aef2d33b8c9e6dc3 | refs/heads/main | 2023-08-22T10:31:33.662572 | 2021-10-16T10:38:44 | 2021-10-16T10:38:44 | 417,795,809 | 1 | 0 | null | 2021-10-16T10:38:45 | 2021-10-16T10:37:35 | null | UTF-8 | Python | false | false | 2,012 | py | """
Programa que nos permite generar contraseñas aleatorias.
Solo debes pasar como entrada la longitud maxima que quieres que tenga la contraseña.
Tambien puedes elegir si quieres guardar la contraseña en un archivo de texto.
"""
#Importamos la siguiente libreria
from random import choice
#Creamos un funcion que se... | [
"dinsha.jaiswal123@gmail.com"
] | dinsha.jaiswal123@gmail.com |
bf14817532dca2965078415c33ed0060be28f9e9 | 6116cee77f2c4f9f4c599e84a659e30184ff5efb | /engine/responsible.py | 1a5e31217f148281c5064ff43d1254da50aef2c3 | [] | no_license | Jiangli10417/mysite | 98894cf3d1645717696b04bcf4b4b799803c07f5 | 89c0531476073d62800fca7cafdf668957c64c0c | refs/heads/master | 2020-06-04T12:00:27.456002 | 2014-09-01T12:05:09 | 2014-09-01T12:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,233 | py | #encoding=utf-8
from django.http import HttpResponse,HttpResponseRedirect
from django.template import Template, Context
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.utils import simplejson
from django.db.models import Q
from models import Bill,Account,Project,U... | [
"jiangli10417@163.com"
] | jiangli10417@163.com |
60f2ed15d147d1080eab9d985a721f19173b7012 | 78bdd7b339060ee9866cf7c3a43d45e694822526 | /labs/03_more_datatypes/2_lists/04_06_product_largest.py | 79f73a0870008ece3915c8bbe65eee95f813459d | [] | no_license | ArnoBali/python_fundamentals | 72f9ce4570a7c396cefb43de26c7a0c78e609f0d | 6a4555f065dea2edb276cc4a65821b2b6a172682 | refs/heads/master | 2020-04-19T19:12:26.602488 | 2019-03-01T09:56:34 | 2019-03-01T09:56:34 | 168,382,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | '''
Take in 10 numbers from the user. Place the numbers in a list.
Calculate the product of all of the numbers in the list.
Also, find the largest number in the list.
Print the results.
'''
'''
i = 3
while True:
print(i)
i -= 1
if i < 1:
break
print("here")
'''
'''
list_sum = []
i = 3
while i:
... | [
"akoldewee@gmail.com"
] | akoldewee@gmail.com |
a4061f29f14446fe909e539637cc5330bc783b9d | 4602d6b8d1872c82c1e918642d00f787f71f71e9 | /EP.1 hello.py | 502d2df84c501c1fce18a6734a36c0f2cf4681eb | [] | no_license | pasithbas159/test1 | 840ee383ed488cfce46b132a330ed3572f0a8dcd | 5feda75dc030254f365154cc2fc632b930262621 | refs/heads/master | 2020-12-29T20:10:52.464226 | 2020-02-08T02:52:46 | 2020-02-08T02:52:46 | 238,718,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py |
print('hi2')
print('hi')
print('hi')
#print('hi')
#demo add
| [
"pasithbas@gmail.com"
] | pasithbas@gmail.com |
1bfe9d43b2558c37843a932fd3ad7717fa688509 | 7029173b71cbd2536d00a595211da684c7ddd39b | /sentimentanalysis/models.py | b238d283c0174326a47be80db64e25c71c287869 | [] | no_license | b0b1n/education-therapeutique-AI-ML-DL | 95e063be3b4e88050ec26d46977f53ba131be6c3 | f24118feefa2d0571dbc10012f93a0c5aa3a1bec | refs/heads/main | 2023-06-12T17:34:46.703286 | 2021-07-05T19:35:52 | 2021-07-05T19:35:52 | 383,135,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.contrib.auth.models import User
from django.db import models
from GlobalApp.models import Patient
# Create your models here.
class DataSaisi(models.Model) :
creation_time = models.DateTimeField(auto_now_add=True)
user = models.ForeignKey(Patient, on_delete=models.CASCADE)
texte = models.CharFie... | [
"sohaibskious@gmail.com"
] | sohaibskious@gmail.com |
486de93ae91882bd9b8b81f7ccb039b74442a315 | 9c1ebbe76c525f1f63481232ebfb61cde37994e3 | /second/main (21).py | 4666d2f5e7b2f070037f8f9041606ade5e629364 | [] | no_license | georgeiniesta/Python-Tests-2 | f279f59046fcdf3a33d9320b05d12de7d6a12f97 | 54544888069edda0f42c8277f5e1a20fd4c4f82c | refs/heads/main | 2023-08-03T10:42:00.056297 | 2021-09-13T19:42:10 | 2021-09-13T19:42:10 | 406,106,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | for i in range(2, 8, 3):
print("El valor de i es actualmente", i) | [
"noreply@github.com"
] | georgeiniesta.noreply@github.com |
9e32622daf399c13ccd1ce146eb2fc4d80c2e6ed | b9ade7e3421c8e382ecc6e6ade115d8a68669a96 | /Building Machine Learning Systems/Chapter1/Project1/analyze1.py | 5cfa3da1e1fe7f9ad2ed60cb4a40d7e4de63b1f1 | [] | no_license | junneyang/MachineLearning-1 | 4b5f66b595c62c8be154048dbc8f46f924c32f00 | 681ff67e6ec058b507693936cb86eac1144a6d09 | refs/heads/master | 2021-01-18T09:59:42.859713 | 2016-08-25T21:01:00 | 2016-09-12T11:41:22 | 68,182,963 | 1 | 3 | null | 2016-09-14T07:16:58 | 2016-09-14T07:16:58 | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/env python
#coding:utf-8
import os
import scipy as sp
import matplotlib.pyplot as plt
data_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)),"data")
#print(data_dir)
data_path = os.path.join(data_dir, "web_traffic.tsv")
if os.path.exists(data_path):
data = sp.genfromtxt(data_path, del... | [
"xxg1413@gmail.com"
] | xxg1413@gmail.com |
3a2390f7ee9c8d32eacd4f317144efcd569a2629 | 4d8ce14c12c36c5e18fa0977c86034bec5153b8d | /modelokits/migrations/0015_auto_20201014_2120.py | 8559bbcc32ab2124675da4ccfe2c813cabfba89f | [
"MIT"
] | permissive | andressalazar08/afsr5- | d409673f5f90db5deeecbdf8a77964653f5ad138 | 1c77f3561ccea9c9a69335964b89d6aa8d57df88 | refs/heads/main | 2023-05-09T05:20:58.985226 | 2021-06-07T20:04:43 | 2021-06-07T20:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.0.6 on 2020-10-14 21:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('warehouse', '0011_delete_warehousethird'),
('modelokits', '0014_kit_beneciciary_warehouse'),
]
... | [
"noreply@github.com"
] | andressalazar08.noreply@github.com |
f66e72eb802c57bd6291976ff5595d305c1cb327 | 1c21fa248091e31c362b95afafc5021211e85e63 | /invensis_pmc/customer/migrations/0010_auto_20160714_1930.py | cdb3f8e3591a12c41f4f0ae8623b4abbd1f203fb | [] | no_license | anudeepnaidu95/dev5 | 3d3252a51fccbb794e78a91681708e1b3c1ce0d4 | 7351244b79be242aa2cad36dbe1adca22a744edc | refs/heads/master | 2021-01-20T12:28:07.286078 | 2017-05-05T11:08:37 | 2017-05-05T11:08:37 | 90,365,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,956 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 14:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
... | [
"anudeepnaidu95@gmail.com"
] | anudeepnaidu95@gmail.com |
49b0a95b04b8399ee6192a1e93a272a83353467b | 90d51f4d20e75b8f49a9911d805512fb1a046928 | /action/models.py | e5560637de8f1dbb2845b1889ceaa37e14d9d281 | [
"Apache-2.0"
] | permissive | che4web/pitline | 8b589e1e050b1a1d6973d60e1122f1420331e182 | 18a6ca76327ff5b21e1895ee2615ce0e4d0341f4 | refs/heads/master | 2021-01-11T00:10:38.515531 | 2019-03-01T06:31:09 | 2019-03-01T06:31:09 | 70,563,311 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.db import models
# Create your models here.
class Action(models.Model):
title = models.CharField(max_length=255)
text = models.TextField()
img = models.ImageField()
date= models.DateField(auto_now_add=True)
| [
"kochergina@prognoz.ru"
] | kochergina@prognoz.ru |
76ab1a3c070bb29ce546786ad30bfd7b94d678ab | c86afd9d80ea5fa553a58b30ab2a6de2f7f158f7 | /venv/bin/fitscheck | e7cb60152f0f421e4481b2e704987d1e33c9e4a3 | [] | no_license | kivicode/Navigation | 7f87ecd2ced100ef0fe6177e6aa9f55abacf566f | ba4f50122049c77897aecb4dc413b230ccd4a0eb | refs/heads/master | 2021-10-22T09:46:42.685639 | 2019-03-03T13:30:52 | 2019-03-03T13:30:52 | 152,800,188 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/vovinkomp/PycharmProjects/Navigation/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from astropy.io.fits.scripts.fitscheck import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"31818467+kivicode@users.noreply.github.com"
] | 31818467+kivicode@users.noreply.github.com | |
6944db4adb6418374e40ed786432b61cd55d4371 | 402070c231fa11589454a4de6c8ebb687d0a8e24 | /config/.config/admiral.d/workspace | 01cd1eba99ee05c5cb4bfcc8591252e6e08e5b93 | [] | no_license | TimJones/dotfiles | 43c0fda747fb2306ebfe58a743d162029eedab1b | b692a405150d7efd3cfd45b2385337768eabf410 | refs/heads/master | 2021-01-12T17:33:11.919840 | 2016-10-21T19:37:45 | 2016-10-21T19:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | #!/usr/bin/env python3
import i3ipc
# Create the Connection object that can be used to send commands and subscribe
# to events.
i3 = i3ipc.Connection()
# Define colors
coloractive = '%{U#d9671f}'
colorinactive = '%{F#839496}'
colorwarning = '%{U#6c71c4}'
# Define a callback to be called when you switch workspaces.
... | [
"mohabaks64@gmail.com"
] | mohabaks64@gmail.com | |
f4da649f92559a87567eb49e3324c1d15c3db8d4 | 1eba03a3a7b5f6133dfcbc7a0ab9c73f950a79d8 | /algorithms/268. Missing Number/main.py | 4167cc9b48baa8c6897a8b92d3c1f153446e7c47 | [] | no_license | GTxx/leetcode | ab640cad726111a5fd78ecfbc02f75a61112bc2c | b7f85afe1c69f34f8c6025881224ae79042850d3 | refs/heads/master | 2021-06-15T18:43:41.358275 | 2021-05-08T08:15:05 | 2021-05-08T08:15:05 | 70,294,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return None
length = len(nums)
total = (length+1)*length/2
return total - sum(nums)
if __name__ == "__main__":
s = Solution(... | [
"xiongxiong1986@gmail.com"
] | xiongxiong1986@gmail.com |
e8bd44ee6b6fa4899beb7a972abe1eab5ebd4527 | ba214941cef4c7411434b3be2e2b2572ef6a776e | /tests/testcases/unpublication_tests.py | 078bfe2fc1b23c71da58b4a913fb4e0836740587 | [
"Apache-2.0"
] | permissive | TobiasWeigel/esgf-pid | 031769266b36c6033ac4e729ee17f5edb79333b2 | 5a6a84e6bff83e0e817f239cf4f0918b6c17a6fc | refs/heads/devel | 2020-12-24T06:11:52.978532 | 2018-01-31T09:41:05 | 2018-01-31T09:41:05 | 73,169,617 | 0 | 0 | null | 2016-11-08T09:22:44 | 2016-11-08T09:22:44 | null | UTF-8 | Python | false | false | 10,039 | py | import unittest
import mock
import logging
import json
import sys
from tests.utils import compare_json_return_errormessage as error_message
import tests.utils
import esgfpid.assistant.unpublish
LOGGER = logging.getLogger(__name__)
LOGGER.addHandler(logging.NullHandler())
# Test resources:
from resources.TESTVALUES i... | [
"buurman@dkrz.de"
] | buurman@dkrz.de |
ce49bfc46e061a98b22fc28f68ac1080ccd9f931 | a3a6362d68964fcb310c46aef1b2e85273a972d7 | /Code/los.rubiya.kr/iron_golem.py | 3b20ab90e6739dd66895301bafc9a4fc913e20ff | [] | no_license | JaehunYoon/los_writeup | f1fe8920e28376078646b3108b5352fce7b98db9 | 2be3b7888bfa49b278ab2aa479305362a66ef098 | refs/heads/master | 2021-06-24T22:30:03.571667 | 2019-08-09T06:44:48 | 2019-08-09T06:44:48 | 105,028,898 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import requests
import string
url = "https://los.rubiya.kr/chall/iron_golem_beb244fe41dd33998ef7bb4211c56c75.php"
cookies = {"PHPSESSID": "cm1t0ihlf8scsk206gq4q10ert"}
ERROR_MESSAGE = "DOUBLE value is out of range in 'pow(2,99999999999999)'"
letters = string.printable
pwlen = 0
result = ""
for i in range(68, 100):
... | [
"goodasd123@gmail.com"
] | goodasd123@gmail.com |
38d7207ffd9030ca0467a19f9158a411d9cc00ac | d610b64ee71f65e56d9d62ed8935c3a691e0a7f0 | /Organizing Files/SelectiveCopy.py | 6c9017de413f17c845510ed378f9c2b2a49cd439 | [] | no_license | Mattia-Marta/PyBooks | 15f0cecf37ae0432e97a2f125c232dcebb2327e9 | a1a6f1480e6e8c81ca0fe2417680bb9a81b317cf | refs/heads/master | 2022-05-13T16:44:12.719927 | 2020-03-18T17:48:27 | 2020-03-18T17:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | #!python3
#selectiveCopy.py-
#Copy all the file with a defined extension into a folder named as the extension.
import os, sys, shutil
def selectiveCopy(folder, extension):
folder = os.path.abspath(sys.argv[1])
dest = os.path.join(folder, extension)
if not os.path.exists(dest):
os.mkdir(dest, mode=... | [
"mattiamarta.mm@gmail.com"
] | mattiamarta.mm@gmail.com |
e570326d391867819684dea2a5897dc3e077e6f7 | 581e33fbc182afb901215473da108ed9b4b09ceb | /model-selection-boosting/xgboost/script.py | 1a7de3ecc3a0e8b7f3bb5266a678cf9dfa86a2bf | [] | no_license | AybarsAcar/MLandAI | 89ef60924aed91492e5051a766e45ce3602a5b4b | 9d21ff8fe9460c4fe25cca931fc082cd307e8f61 | refs/heads/master | 2023-02-08T12:08:01.585156 | 2020-12-15T04:17:38 | 2020-12-15T04:17:38 | 321,309,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.metrics import confusion_matrix, accuracy_score
from xgboost import XGBClassifier
dataset = pd.read_csv('../../data/Breast_Cancer_Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, -1]... | [
"aybarsacar@gmail.com"
] | aybarsacar@gmail.com |
401ad2183e7f603974c0124a889588f7ec4c5f93 | e34442a53f33b3f0e30e717e3a01f8d2f039b2b0 | /tests/test_usage.py | 2518b7751d4faa4a301d2cb734f82aa6418c4e3e | [
"MIT"
] | permissive | luisfmcalado/coinoxr | 4969aeb340093914b66337d0088a8e558651d6ac | e7cf95d717aa9b58e458332bfd6fd2d4172d175f | refs/heads/master | 2021-02-07T08:53:33.122954 | 2020-02-29T16:52:11 | 2020-03-01T00:50:26 | 244,005,550 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | from coinoxr import Usage
from coinoxr.requestor import Requestor
from coinoxr.response import Response
from tests.fixtures import content
class TestUsage:
def test_get_usage(self, requestor):
result = Usage(requestor).get()
assert isinstance(result, Response)
assert result.code == 200
... | [
"luisfmcalado@gmail.com"
] | luisfmcalado@gmail.com |
74dadf47bf79f64a44b43452c7119d348003b9cf | cc95adcf84f6ca220257739e284d27ff54483562 | /docs/conf.py | 60bdfa739121659fb4a8f0a4c4838d01d9ccecfc | [
"WTFPL"
] | permissive | xymz/flask-s3 | b493305c4e08b78010579f5c6bb37d6757736080 | 5526a49704abce73cfd8fa4cfd54c6b8ebdd129b | refs/heads/master | 2021-12-30T02:59:46.888604 | 2021-12-17T09:18:20 | 2021-12-17T09:18:20 | 12,317,717 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,309 | py | # -*- coding: utf-8 -*-
#
# flask-s3 documentation build configuration file, created by
# sphinx-quickstart on Sat Sep 8 13:10:46 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"me@eddrobinson.net"
] | me@eddrobinson.net |
8a558d6d9442edd1a6d9a325d3c65daf3d7e6076 | 33be842ca68a26183dfa5947aa6b432e077493ed | /application/src/test_pkg/conftest.py | b61a05f7bb3aeb05a18cfc4aa0d06095adc3a80e | [
"MIT"
] | permissive | aa2858/csc-648 | 795920d03a9d4095e14f658cee60534e0c45cdaa | 6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a | refs/heads/master | 2023-03-25T11:53:43.019279 | 2020-05-22T02:04:13 | 2020-05-22T02:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import pytest
import redis
from src.config import redis_conn
from src.database_manager.database_connection import MyDB
from src.database_manager.add_user import add_user
user_entries = [
('rockstar55', 'akhilhello@gmail.com', 'some_pass'),
('27jlvkj010', 'ja;ksvj209384', 'vnhkj12304809asp98hao3wjeoiawrioa;sej... | [
"akhilhello@gmail.com"
] | akhilhello@gmail.com |
45810f12c10fbab18e76420e61fc91274a5603be | dd895289b945dd1691f89a047ba174e9e658c5b3 | /Desktop/PYTHON/assignment2.py | 7b8ca46d5458cbcd04244fed08cc6076d2582498 | [] | no_license | Supriya105/Python | 0c19d041fd03f843c25784ccb3793499dbf5e250 | 8f41852bba3ea616a6c2f0b626d2bab1dcd9a091 | refs/heads/master | 2022-07-13T06:15:10.912631 | 2020-05-15T00:54:13 | 2020-05-15T00:54:13 | 264,059,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #Task2
i=9
if i%3==0:
print("Consultadd")
if i%5==0:
print("c")
if i%3 == 0 and i%5==0:
print("Consultadd Training")
##2nd question
x=int(input("Enter any number between 1 to 5"))
if x==1:
first = int(input("Enter any number"))
second = int(input("Enter an another number"))
res = first+second
... | [
"majjagi.s@husky.neu.edu"
] | majjagi.s@husky.neu.edu |
7a35af53e2b755da0dab23cfe24395936dee9f57 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_191/ch160_2020_06_22_17_15_31_729878.py | 75ef2992477f3bc7dca62e58d3f05cde2eee3283 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from math import *
dif=[]
for i in range(0,91):
x=radians(i)
dif.append(abs(sin(x)-(4*i*(180-i))/(40500-i*(180-i))))
print(max(dif)) | [
"you@example.com"
] | you@example.com |
68f4182851796240502b8fbbd2150f5140e30554 | 449e91866bcba6c9e2aaa803aed73e86f13e7e4c | /boost/dmia/classifiers/logistic_regression.py | 00f4ca0ada7fcd572ea9e19d94d44d30af82b719 | [] | no_license | dimas1318/Python_Homework | 5383cd85026087df121fa59872abc57b8c6c6abc | d6dcb71096eb978524085577b353351fca299035 | refs/heads/master | 2021-01-13T07:18:46.716404 | 2016-11-10T21:08:24 | 2016-11-10T21:08:24 | 71,590,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,207 | py | import numpy as np
from scipy import sparse
from sklearn.metrics import hamming_loss
import theano
import theano.tensor as T
"""
x = T.dmatrix('x')
w = T.vector('w')
z = 1. / (1. - T.exp(-1*T.dot(w, x)))
z1 = 1. - z
f = theano.function([w, x], [z, z1])
"""
class LogisticRegression:
def __init__(self):
self... | [
"noreply@github.com"
] | dimas1318.noreply@github.com |
bfa1cee3068ecc95c2488de37a596e391572a58e | 311ef04463e58105c2a54e859d93b230dfe58040 | /directcheckpoint.py | e91276ab5dd167844f6af12ac177b5229be118c0 | [
"Apache-2.0"
] | permissive | sparrow-tian/sparkstreaming-kafka | 270265423dc09c1d093d1c4719f60df772a04130 | 543c9cc3bf3829041fd86089d9b4856c53c6b780 | refs/heads/master | 2020-05-07T14:15:36.306054 | 2019-04-10T15:15:16 | 2019-04-10T15:15:16 | 180,585,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import sys
from pyspark import SparkContext
from pyspark.streaming import StreamingContext
#from pyspark.streaming.kafka import KafkaUtils
from pyspark.streaming.kafka import *
#from kazoo.client import KazooClient
def printOffsetRanges(rdd):
for o in rdd.offsetRanges():
print('ok, lets start')
... | [
"yueliang3068@163.com"
] | yueliang3068@163.com |
4cdf0ff6e630800d19b8ce7a7a5a09f5d62ef3c7 | 05a70c12df808455100598d8a6fdb5635c641ab8 | /Ago-Dic-2019/JOSE ONOFRE/Ordinario/PeeweeLocation.py | a8fa713b0d04e7bfbe3e404f22b89a99972d397a | [
"MIT"
] | permissive | Jonathan-aguilar/DAS_Sistemas | 991edcc929c33ba9bb8bc84e741b55c10a8420a3 | 4d02efc64161871084df1bff258112351e5d1241 | refs/heads/development | 2023-07-24T12:26:54.698452 | 2021-09-02T20:52:26 | 2021-09-02T20:52:26 | 289,764,892 | 1 | 0 | MIT | 2021-09-02T20:52:27 | 2020-08-23T20:54:55 | Python | UTF-8 | Python | false | false | 1,063 | py | from Peewee import *
##Creacion de la tabla Location usando Peewee
class LocationP(BaseModel):
id = TextField(unique=True)
name = TextField()
type = TextField()
dimension = TextField()
residents = TextField()
url = TextField()
created = TextField()
#db.connect()
#db.create_tables([LocationP... | [
"onofreeduardos@gmail.com"
] | onofreeduardos@gmail.com |
827ce424a50c593ea412592fd98c7da6fb06b6da | f54b7fa675df8d0e30c447d7212f7116f16b7e42 | /Kattis/jackoLanternJuxtaposition.py | 03603f94806514f4c55109c2c76eac10e9efd214 | [] | no_license | ManuLam/Competition | eccee2c3432d46e1e3d028f6ebc04285d396c85a | a01ea254243b4799bd8c44cd94c95e74786415af | refs/heads/master | 2023-06-27T16:56:58.845783 | 2021-08-01T10:26:04 | 2021-08-01T10:26:04 | 76,399,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | ar = map(int, input().split())
prod = 1
for x in ar:
prod *= x
print(prod)
| [
"noreply@github.com"
] | ManuLam.noreply@github.com |
ab006f6c35f430241c4263e0470670dca1a50fb6 | f9f69fe91c08552ad9cc67a83895375e8813ecf9 | /venv/Scripts/pip3.8-script.py | f5ad45b04b3ab641f6de99c46ecd8c19cea7010e | [] | no_license | ayeshasidrah/spreadsheet-data | 8a0e20f9b2a571d706aa8ea503b7b32c1c6f6ef6 | c7b358ba91e39a846fd9ac263affc52c7283fb2c | refs/heads/master | 2023-06-13T05:32:08.309252 | 2021-07-02T08:40:08 | 2021-07-02T08:40:08 | 381,674,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!C:\Users\lp\Myproject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"ayesha.asi15@gmail.com"
] | ayesha.asi15@gmail.com |
9ad9875c826a5800753e0143933135c4698dec09 | 8df7d7b8aedde2f379b6688d8b4cb4e2ed824265 | /learning_templates/basic_app/templatetags/my_extras.py | aa8fa5a5a60b5ce117d34fa3a2d43d828fb8cbe6 | [] | no_license | mironandrei94/django-deployment-example | 8d1961f71f506ac2e8e3a702aacbc8e6afbaebdb | 23b6231da1965a8f7c3db654f19da3e3192b52a6 | refs/heads/master | 2022-12-13T22:39:23.913572 | 2020-09-03T18:08:44 | 2020-09-03T18:08:44 | 292,608,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value, arg):
""""
This cuts out all values of "arg" from the string!.
"""
return value.replace(arg, '')
# register.filter('cut', cut) | [
"andrei.miron@aurachain.ch"
] | andrei.miron@aurachain.ch |
51e844496d2f62d6f579625880295d50c766ebab | 4ba88402167da2544bd0d5e10b4513c41e40f093 | /test1.py | 77e361b3d4090da9786490f398c91d1bdc607b33 | [] | no_license | InkSlob/GPU | 1bae9ebc9cabf6a3837ca812a6fe7ee3e90a89d8 | baf11fa19ac5e50759913ab613dc06d1bd3294e2 | refs/heads/master | 2020-12-24T20:52:11.543442 | 2016-04-28T13:18:00 | 2016-04-28T13:18:00 | 57,303,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import ctypes
from scipy import *
from scipy.linalg import *
import numpy as np
import sys
import csv
N = 10
M = 10
libculaC=ctypes.CDLL("libcula_lapack.so")
libculaC.culaGetStatusString.restype=ctypes.c_char_p
#make a numpy array; you may use float32 or float64 dtypes
cat = np.array([[1,2],[3,4]])
... | [
"InkSlob@users.noreply.github.com"
] | InkSlob@users.noreply.github.com |
4c911789d6b647f652c1467de4b362b13f81d05e | b1e56298f0a8f8ac649f23adf8564183a8386465 | /reviews/models.py | 49b6346fefe24eb4f795a907f771cdf9e9b32303 | [] | no_license | 1nshallah/checkin_house | 1b0538bfdcc6a040f35ac80ed27da12fb65f9ba0 | 53afdac7087dd72e68f3b336d911effca5de9d88 | refs/heads/master | 2022-12-26T02:28:27.944920 | 2020-10-07T10:27:41 | 2020-10-07T10:27:41 | 302,001,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from core import models as core_models
class Review(core_models.TimeStampedModel):
""" Review Model Definition """
review = models.TextField()
accuracy = models.IntegerField(
validators=[MinValue... | [
"43375274+1nshallah@users.noreply.github.com"
] | 43375274+1nshallah@users.noreply.github.com |
b31bd050c7b69d99bc1650a26c428a5de9fa985d | 450f1d8dc8cde965e0f092fff4f1d683b485f35f | /toppers.py | e4c105a8bb9277e7fbdb5c29498c4c491b7244ce | [] | no_license | dhavans1/topper | e48dedd58258b9738794aeae8e075b67d3f13a6f | 015aec1cda6add547ad219b0751fa6a679ef0f1b | refs/heads/master | 2021-01-01T06:44:06.511412 | 2017-08-14T17:53:09 | 2017-08-14T17:53:09 | 97,500,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Created by Dhavan Shekarappa on 07/15/2017
from random import randint
from pprint import pprint
# Returns list of top three among students
def top_three(students, student_data, courses = []):
if courses:
# marks = []
course_top_marks = {}
for course in courses:
course_top_ma... | [
"dhavans1@umbc.edu"
] | dhavans1@umbc.edu |
ff85262a25fb40f25868a0dcad105e7b0d065519 | 86ef028c399fb61e71a23162e44e7148c036aeb4 | /common/layers/highway.py | d1bd11b7211717751c2fb2d58e82cdc52ac98c80 | [] | no_license | ArthurRizar/slu_slot_filling_bert | 349dfe8d1eeaddb16c753c195e736086104f8671 | 985795d55da5b3ebfccd412c668066c7fc593a17 | refs/heads/master | 2020-05-20T11:45:48.561265 | 2019-12-09T12:16:36 | 2019-12-09T12:16:36 | 185,556,810 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | #coding:utf-8
###################################################
# File Name: highway.py
# Author: Meng Zhao
# mail: @
# Created Time: 2018年04月20日 星期五 14时11分50秒
#=============================================================
def highway(input_, num_outputs, num_layers=1, bias=-2.0, f=tf.nn.relu, scope='Highway'):
... | [
"279424390@qq.com"
] | 279424390@qq.com |
4f8a593434617549fc97e544c71e29668406a385 | 008ea0c503829f33840495373ad3d60794575af3 | /source/sublime/oop/o6.py | c915f3eeaa914ff9df67dd54d94009db63c43246 | [] | no_license | JyHu/PYStudy | 6515bea47ca6f80e336f3b6a7a14b1159fde872f | ec0855c414237bdd7d0cb28f79a81c02ccd52d45 | refs/heads/master | 2016-08-12T19:44:06.723361 | 2016-04-11T10:38:59 | 2016-04-11T10:38:59 | 45,384,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #
# coding:utf-8
#
'''
多继承(MixIn)
'''
__author__ = 'JyHu'
class Animal(object):
def sintro(self):
print("I'm an Animal.")
class Mammal(Animal):
def introduce(self):
print("I'm Mammal .")
class Bird(Animal):
pass
class Runnable(object):
def run(self):
print('Running ...')
class Flyable(object):
def fly... | [
"auu.aug@gmail.com"
] | auu.aug@gmail.com |
79ff7aabd3fe49e2f6802bc1602dfe860f675eab | 2fded77fc7028f6c7ae11233f8162e5adae3dadb | /vtkVisualizer/inc/vtk/Common/Core/Testing/Python/TestNumpyInterface.py | 53b0edbb3e108ab18913ecc0c618b2389d46c8eb | [] | no_license | nagyistge/MedicalVisualization | ab70c38100c487fb9fa94beb6938530de913813e | 40bcd54f465f1acdb18ccd641105a6002374fe05 | refs/heads/master | 2020-04-11T23:46:30.450284 | 2016-01-18T16:30:55 | 2016-01-18T16:30:55 | 52,168,821 | 2 | 0 | null | 2016-02-20T18:34:11 | 2016-02-20T18:34:11 | null | UTF-8 | Python | false | false | 6,293 | py | import sys
try:
import numpy
except ImportError:
print("Numpy (http://numpy.scipy.org) not found.")
print("This test requires numpy!")
sys.exit(0)
import vtk
import vtk.numpy_interface.dataset_adapter as dsa
import vtk.numpy_interface.algorithms as algs
w = vtk.vtkRTAnalyticSource()
bp = vtk.vtkBrow... | [
"gguayaqu@purdue.edu"
] | gguayaqu@purdue.edu |
7d90cc988b9168bfe7872378da64a6972bfafd22 | 763378fae9820f25a6b910de65c63fb10b7c32a5 | /blog/migrations/0015_auto_20200421_0259.py | cbd44244753585a9115ad2acd28efac52ccb528d | [] | no_license | alisamadzadeh46/Blog | c9ae193647399d1513f32b675654aec56496c3ea | 50f9b1a63b99555d1eaad3171af5e5b128641c38 | refs/heads/main | 2023-02-26T19:43:46.288622 | 2021-02-12T09:57:17 | 2021-02-12T09:57:17 | 330,210,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # Generated by Django 3.0.5 on 2020-04-20 22:29
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0014_auto_20200421_0257'),
]
operations = [
migrations.AlterFiel... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
6523552d7cfa6698a72ce13e732384fa9af689b6 | b54413e4700ea16841671444eedb8e5924b71702 | /cheers/apps/bar/models/product.py | 145f0ca629049b6f7250ccbe31f7bbda90c556a4 | [] | no_license | prabhjot-s-kbihm-com/python3-cheers | 71b6e4cbaded1a63535fe985eef20ce139f8a880 | a8389cfa268c74e956358dac3ee925d54948a15c | refs/heads/master | 2022-12-12T02:36:31.731422 | 2019-12-16T05:43:06 | 2019-12-16T05:43:06 | 228,311,124 | 0 | 0 | null | 2022-12-08T05:24:55 | 2019-12-16T05:40:47 | JavaScript | UTF-8 | Python | false | false | 1,570 | py | from django.db import models
# image, name, price, id, description, bar_id,
from cheers.apps.account.models import ModelAccountUser
class ModelBarProduct(models.Model):
"""
This model store the product of the bar.
"""
name = models.CharField(max_length=500, help_text="Name of the Product")
imag... | [
"prabhjot.s@kbihm.com"
] | prabhjot.s@kbihm.com |
05e10cb2596d40a9bcf5400b75c27b1c8010afe9 | 098daf4940b0e5b00a758db63c6199dd2aa0fb1a | /venv/bin/pip3 | f4dfb0a595cabed58bb84b9df74bf80a9e301cb2 | [] | no_license | lucassteinvascher/ExEstatisticaPython | 8ce81a5c4e866104a3a47fc1a7d51dd97f1d5898 | a1b40f6910851ed66ffb4559287d04ddbb77c123 | refs/heads/master | 2020-03-27T03:18:37.076341 | 2018-08-23T14:04:58 | 2018-08-23T14:04:58 | 145,852,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | #!/home/lucas/PycharmProjects/TreimamentoPy/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"lucassteinvascher95.ls@gmail.com.br"
] | lucassteinvascher95.ls@gmail.com.br | |
9b80f06bffe1f4ae43e0fae664e2b9e1c7e7378e | 7738b584db8ec452c9f0a8707461afd61aedf30a | /.venv/lib/python3.6/__future__.py | f035f1aa8465b016b90c3d7cc561c5cef2519f15 | [] | no_license | VR46KS34/datastructure | 3a973e26eab1ea0c34511b97da079044ccf1f4b9 | cee6f255778bbbd0a4cc8c82f8b129870f0063bf | refs/heads/master | 2020-12-22T00:09:09.736068 | 2020-01-27T23:42:18 | 2020-01-27T23:42:18 | 236,609,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | /home/gitpod/.pyenv/versions/3.6.10/lib/python3.6/__future__.py | [
"adumas@uc.cl"
] | adumas@uc.cl |
6ef990eb3cda984674f048081e6666c509c7a6c6 | 3f3167717b4af92068892c1992ec1e887cd13011 | /media.py | 2f91020e51531808af3e77916d8eb9df97aa14a4 | [] | no_license | StephenOrgan/movie-trailer-miniproject | cdb8d88b9952665a35fae3c29623415d7b12fa26 | 8bffe65af99366941b4e1b5ccc82b0502c3e3f81 | refs/heads/master | 2020-05-26T01:47:44.587855 | 2017-03-14T20:53:11 | 2017-03-14T20:53:11 | 84,983,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
self.title = movie_title
self.storyline = movie_storyline
self.poster_image_url = poster_image
self.trailer_youtube_url = trailer_youtube
# open the trailer youtu... | [
"steve@influitive.com"
] | steve@influitive.com |
1210d78d9b406fad1a8dfeb9a228591e21e12e3a | 027c765ea9518f2bcfafd8eb06b692dd6a1b9e0a | /src/transformers/models/pegasus/modeling_pegasus.py | 7d0652ff617bef49f683742231745fc8114c7cb5 | [
"Apache-2.0"
] | permissive | bigcode-project/transformers | 59afb2c0467b982aaec1f04a43ca1cfba69a9748 | 8b0cb2c6261e65d4d852d6813f071772c1b32665 | refs/heads/main | 2023-05-23T22:13:35.466375 | 2023-04-24T17:04:38 | 2023-04-24T17:04:38 | 520,939,437 | 20 | 5 | Apache-2.0 | 2023-04-24T20:42:41 | 2022-08-03T15:40:01 | Python | UTF-8 | Python | false | false | 82,177 | py | # coding=utf-8
# Copyright 2021, Google and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | [
"noreply@github.com"
] | bigcode-project.noreply@github.com |
87ea59c1bae32124f72514140c97a61ddfb21ffa | 74045b25df314039ac30ca939ae982302c6053fd | /test_radiko.py | 5caa844f566ffa7011c3d71bde1b2aeb3b153421 | [] | no_license | nomissbowling/piradio | 580c812b4f16ca89d6c8fe37114d5ecabfac293c | 1611c587aabf7b7ae9e53d6b952340588bee153c | refs/heads/master | 2023-03-15T20:45:27.695540 | 2021-01-13T00:10:32 | 2021-01-13T00:10:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | #-*- coding: utf-8 -*-
# Radiko再生テスト用プログラム
import sys
import signal
import time
import datetime
import os
import subprocess
import threading
import radiko
# オーディオデバイスはここで指定する
radio_audio_driver = 'alsa'
#radio_audio_device = 'plughw:0'
radio_audio_device = 'plughw:1'
# Radiko再生
def play_radiko(station, r_user="", r... | [
"tsq@gapj.net"
] | tsq@gapj.net |
85f9fa35a56e064b2b93e72f731f0e7dd34bea37 | 3f12a75175e1be19a6c867a58650f96b37c23e0f | /ch06/06-10teamnumdict.py | 650f04e3e3ac54b53d53a6cffbbc54b615f2ab33 | [] | no_license | ShinMinseok/2020-Python-code | 115a8f18b03727f9cb1589e0b3920263e25e1d25 | 622d2490183e212770c0156a641a14296d7c4a9c | refs/heads/master | 2022-09-24T20:26:02.073039 | 2020-05-29T15:30:58 | 2020-05-29T15:30:58 | 261,667,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # 구기 종목 리스트
sports = ['축구', '야구', '농구', '배구']
# 위 종목에 대응하는 팀원 수를 항목으로 구성
num = [11, 9, 5, 6]
print(sports)
print(num)
print()
print('함수 zip():' )
for s, i in zip(sports, num):
print('%s : %d명' % (s, i), end = ' ')
print()
for tp in zip(sports, num):
print('{} : {}명'.format(*tp), end = ' ')
print(... | [
"noreply@github.com"
] | ShinMinseok.noreply@github.com |
ae6b0c875e19af103a0fe338869dc9ee3a458457 | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /samples/core/get_started/custom_estimator.py | e5a58c2e9834cf738e9e0a3d86d74b9e07132833 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 4,896 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
816a827287291f78e8cf0dd5ab218bf246fb8933 | 9ebaf1e91c98d2ce0c28f46f5bad99a86703b6c4 | /project_name/project_name/settings/local.py | c8528182e6f764ca2905e3f25e333b6bb3ce077e | [] | no_license | yourowndisaster09/django-project-template | 2c475d1147fc86c452fe9a1c16faff6811db65cb | 31253475e90af70464e795375e7273eeb9079316 | refs/heads/master | 2020-06-05T06:07:34.730459 | 2013-10-27T06:05:15 | 2013-10-27T06:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | """Development settings and globals."""
from os.path import join, normpath
from base import *
# DEBUG CONFIGURATION
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# HOST CONFIGURATION
ENV_HOST = '127.0.0.1:8000'
# EMAIL CONFIGURATION
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# DATABASE CONFIGURATION
... | [
"yourowndisaster0@gmail.com"
] | yourowndisaster0@gmail.com |
ff777e5c2bd829c320dd198069c5ac61864ba900 | 5e3a2b55d5b8e38fc262c98c14ee778354f1dd54 | /apps/news/urls.py | 45c07faa4c4ca5bc62b901be3b15ecdc9e72ac8d | [
"Apache-2.0"
] | permissive | hello-base/web | 0e45c5c73375d6e4c5f1747e1c6727f5bd0b5894 | c8548f1ad29c1eacd93a797bb75cbfff858937c1 | refs/heads/master | 2020-04-15T15:58:07.669359 | 2015-06-30T22:40:35 | 2015-06-30T22:40:35 | 9,022,059 | 3 | 0 | null | 2015-05-03T19:14:06 | 2013-03-26T03:31:13 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import ItemDetailView, NewsIndexView
urlpatterns = patterns('',
url(r'^news/(?P<year>\d{4})/(?P<month>[-\w]+)/(?P<slug>[-\w]+)/$', view=ItemDetailView.as_view(), name='item-detail'),
url(r'^news/$', view=NewsIndexView.as_view(), n... | [
"bryan@revyver.com"
] | bryan@revyver.com |
9b4a3addc8a93a0a8206b8135f40df5e3ba60249 | 8fa938eddcc75eb7dff1f2055c49cb3817a00c63 | /Tuple/ex6.py | 03d72873d0e2f3de9ad93a9900518a020d8bc07c | [] | no_license | jayhebe/w3resource_exercises | f27109759d112b0611574aa70eb378ace447c2a0 | b29aa7c806f6021a8988e83bb9f674522a41380d | refs/heads/master | 2020-05-07T09:23:24.039271 | 2020-01-30T15:05:06 | 2020-01-30T15:05:06 | 180,374,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | t = (1, 2, 3)
print(str(t))
print("".join(list(map(str, t))))
| [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
66b0fe64cfce96d16c177545adcad10852ada36c | 29f119dc28ba98c33136eca4f82de2f1ccefbc1a | /gym_uno/envs/__init__.py | 68855bb3b2f46e0a4d4e5d8e0f4608494a684751 | [] | no_license | EMCQable/gym-uno | 92d9b253a60fc92e3577ae09b9ad3f05c5a120d1 | 8cc3eb74bf6ffa22b2694a683e69abbf0339eebe | refs/heads/master | 2021-04-09T16:25:18.830849 | 2019-02-18T20:52:28 | 2019-02-18T20:52:28 | 125,871,771 | 0 | 1 | null | 2019-01-20T03:19:04 | 2018-03-19T14:35:18 | Python | UTF-8 | Python | false | false | 40 | py | from gym_uno.envs.uno_env import UnoEnv
| [
"ubuntu@ip-172-31-1-232.eu-west-2.compute.internal"
] | ubuntu@ip-172-31-1-232.eu-west-2.compute.internal |
08944188013652e95ade0bea5ff44314c8072c48 | 5dc26215e45b88e623060fe259ee1d77b8610e7e | /students/Russell_Large/template_student/lesson06/assignment/src/pandas_perf.py | 896948297999f594558c5e1bdbaa363ccb2a3c67 | [] | no_license | russlarge256/Python220A_2019 | f5ce78ef2f8b85747384f5769f2cb8578e962ec6 | f49fdbbc56fb4d0cdccbe3ae6d7336dde0661df9 | refs/heads/master | 2020-05-04T18:31:45.463044 | 2019-06-09T01:03:09 | 2019-06-09T01:03:09 | 179,356,982 | 0 | 0 | null | 2019-04-03T19:31:54 | 2019-04-03T19:31:54 | null | UTF-8 | Python | false | false | 2,001 | py | import pandas as pd
import sys
import time
sys.path.append(r'N:\Python220\lesson06\Lesson06\assignment\data')
import cProfile
listtest = []
def do_cprofile(func):
def profiled_func(*args, **kwargs):
profile = cProfile.Profile()
try:
profile.enable()
res... | [
"noreply@github.com"
] | russlarge256.noreply@github.com |
2f5ca6b34986ec501d3d0c69ccf8a74b2bc2cf15 | 08021cfc795dc9663f5f8c595d810ef42f416269 | /gui using wxPython/SimpleButton.py | 5106c6988badba36204ed6cfa558269d4a91c656 | [] | no_license | ykim879/python | 4891e4ed4a2f9073d93f5989e45ada6b752ae2ab | 58283b807b675d9a580dbed74026bc09788ea3e4 | refs/heads/master | 2022-07-05T14:29:28.991726 | 2020-05-12T22:37:21 | 2020-05-12T22:37:21 | 263,126,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import wx
class MyFrame(wx.Frame): #class returning frame inheritated wx.frame
def __init__(self):
wx.Frame.__init__(self, parent = None )#call inherited constructor,
button = wx.Button(self, label = "click!") # can put label by label = "Click!"
button.SetSize(10,10)
button.Bind(wx.EVT_BUTTON, self.ClickButto... | [
"59812671+ykim879@users.noreply.github.com"
] | 59812671+ykim879@users.noreply.github.com |
f5c3cc8ce32d03dc655473199e048eb820ab8338 | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-mpls-ldp-oper/cisco_ios_xr_mpls_ldp_oper/mpls_ldp/nodes/node/summary/ldp_summary_pb2.py | 7cedb79efd6fa135ef2b81efd2c7e22d73b91a09 | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 27,026 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_mpls_ldp_oper/mpls_ldp/nodes/node/summary/ldp_summary.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message a... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
f175f7186518e67259574d3bfd9b31a82c5787b4 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1QeHA4SdfThoT5Laurbjewqw78srttBvDQ.py | ad05b056cc90743e190fac570cc5ea34953b3804 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,134 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1QeHA4SdfThoT5Laurbjewqw78srttBvDQ(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
29e419d873866962d9fce80b00e4128f1fd88fb1 | 82ed9f61f835e4b89503d7cfebda74cab1385026 | /NASN_AND_SBP-BRiMS_ARCHIVE/src/lex_features.py | 7045454ed5c5dceaf65a0fc5b6b258246013c03b | [] | no_license | qcri/Vaccine_Disinfo | 1582ffad30169c39d5e64cf9b2ba40d2cd739137 | ec74f4f3eee3362c9e04d8cae40a8d7bb124d925 | refs/heads/main | 2023-08-25T21:16:56.442532 | 2021-10-15T10:17:48 | 2021-10-15T10:17:48 | 323,507,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | import re
import entropy
import math
from Levenshtein import distance
import sys
import brandseg
from confusables import unconfuse
from suspicious import tlds, brands, popular_keywords
sys.path.append("../../Common/utils")
from domain_tools import get_fqdn, get_path, get_query, get_scheme
def get_features_one_url(url,... | [
"nabeel.yoosuf@gmail.com"
] | nabeel.yoosuf@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.