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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3585f52a7877b9c940a3270f4b4e14c82136bb34 | f5d0e85b40c5f25a5ac05458915121fe572d0253 | /final_project/db/orm_builder.py | ff7a82ae36e1ead64ea7eab005a54eec016a7c0f | [] | no_license | Salex406/2020-1-Atom-QA-Python-A-Zharikov | f06756c5dd5c2d2676989923c4861b43178859de | ff018f33cc38d5b0c15e37701a9c5fd8e6b35c9d | refs/heads/master | 2022-12-12T01:09:33.958453 | 2020-05-29T11:56:28 | 2020-05-29T11:56:28 | 243,089,696 | 0 | 0 | null | 2022-12-08T04:08:06 | 2020-02-25T19:56:01 | Python | UTF-8 | Python | false | false | 1,970 | py | from db.orm_model import Base, User
from db.mysql_orm_client import MysqlOrmConnection
class MysqlOrmBuilder:
def __init__(self, connection: MysqlOrmConnection):
self.connection = connection
#self.engine = connection.connection.engine
def add_user(self, user):
self.connection.session... | [
"noreply@github.com"
] | noreply@github.com |
b985a285791f135dc77e03e0e840812e7dbfbb74 | 5107c33d9466f67266cd5bb936461beab60a5a4f | /was-config-scripts/start-stop-server-sample.py | 34dda5d2b22c1b14c99fb8871ef4dc529ccad8be | [] | no_license | huy/was_scripts | 1158dcf7fc24190efa3322bb750289e31bd78cd1 | 4eb293489d570109a3a094238d7bec33ce81b88e | refs/heads/master | 2021-01-10T22:06:33.857375 | 2011-10-03T04:22:06 | 2011-10-03T04:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | nodeName='FCASAWNODE01'
serverName='Sample'
AdminControl.startServer(serverName,nodeName)
AdminControl.stopServer(serverName,nodeName)
| [
"lehuy20@gmail.com"
] | lehuy20@gmail.com |
97191e8af03f621938f6eedc22b25d168d508737 | e0bb6e1e7d4091283db64efb879f3d6d665c6bdd | /backend/branding_env/bin/f2py | 0b20e25eb202fb4c377a52c7af8696227a021c9c | [] | no_license | akshitaggar123/PhishingCheckTool | 3c2adebf3ea15ca84b0fc5ddfb7abef81a565de7 | 5577b42723cf34d4328c49e16fc9d5aa63f1e576 | refs/heads/master | 2023-06-15T16:37:51.224792 | 2021-07-15T07:10:13 | 2021-07-15T07:10:13 | 386,191,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/atharva/Desktop/DP/branding/backend/branding_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nick.talman@capexmove.io"
] | nick.talman@capexmove.io | |
4c8dfd726327d3951104e170186c23e037872432 | 0b83d3dfaaf0ead56567a1b95bfc51ade0113ada | /knowledge_graph/sentiment_analysis/stock_sentiment.py | 42929c3d1c51844a74ece101a060b740fc786f30 | [] | no_license | wagaman/deep_learning | 8ad76fb153ae9e87b351a2afef79da9985e66ea0 | 815a5706183063522d5a26c321b047ee1ab812cf | refs/heads/master | 2020-06-16T19:13:19.918883 | 2018-09-17T08:40:56 | 2018-09-17T08:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,887 | py | # -*- coding: utf-8 -*-
from sqlalchemy import create_engine
from sqlalchemy import MetaData
from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy import Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
import numpy as np
import pandas as pd
from ylib i... | [
"victor.wuv@gmail.com"
] | victor.wuv@gmail.com |
fff111530074c14c0b4cbac42013951e18ba2e39 | 31b52f5d90f650d79b0b047b63c735abf2b66eed | /deploying_simple_api/wsgi.py | 48ef4462a781585fa99e8f24d65b6ae7f295c458 | [] | no_license | kawiraanitah/Working-with-images.md | 80016cf80e98527e05b0e3686f2a413dc334458f | bdcf08d5a9c945d59c98d0a7ba8efee39abc539a | refs/heads/master | 2021-07-23T01:47:29.037097 | 2017-10-31T10:16:23 | 2017-10-31T10:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for deploying_simple_api 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"annitahkawira@gmail.com"
] | annitahkawira@gmail.com |
f7847724a46f8376bfbee1a9af9c8aa2252c04fc | 33942b1ad1f8468dd5c981c66eaacd858b76a6c5 | /spider.py | 045b552e352e8f39cce693d6b553dee34c37ccc6 | [] | no_license | ldcx1/gad-python-gr-2 | 7eb10d95c10c32a0deb507c153a5636c8d9d4560 | ccb28e04b652460e2946d587b647be89367cfa06 | refs/heads/main | 2023-06-12T23:12:23.635823 | 2021-07-01T18:20:37 | 2021-07-01T18:20:37 | 364,982,913 | 0 | 0 | null | 2021-07-01T18:20:38 | 2021-05-06T17:09:22 | Python | UTF-8 | Python | false | false | 671 | py | import requests
from bs4 import BeautifulSoup
URL = 'https://lpf.ro/liga-1'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
stage_table = soup.find(class_='clasament_general white-shadow etape_meciuri')
#print(stage_table.prettify())
team_rows1 = stage_table.find_all(class_='echipa-etapa-1... | [
"lese.d@yahoo.com"
] | lese.d@yahoo.com |
6a1e582aac50b2b48c3932c39d9ce9c576a88e4f | b9cb8cccc9d2fb0f647ca76010347687d61e5cc9 | /quotes/migrations/0006_ticker.py | d347ade992ccd09930722496f5ac2319bb3201a5 | [] | no_license | jyothis-thomas/stocker-application-final | 5ef5e24200af0f37e8749830725cdc8f3f3c48e0 | 2ee2f7d2e8dfcc740ca0b97f9dce62c2a041f32c | refs/heads/master | 2021-06-24T00:56:44.343861 | 2019-11-15T07:31:04 | 2019-11-15T07:31:04 | 218,010,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.2.5 on 2019-10-15 12:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quotes', '0005_auto_20191009_0839'),
]
operations = [
migrations.CreateModel(
name='ticker',
fields=[
... | [
"jyothisth@gmail.com"
] | jyothisth@gmail.com |
3ff0de7975c7afb0e89a0caa130b293089928fee | 6fcf9267cbb05bc25623e72193bbb6278c4206c9 | /notifications/lambdas/cloudwatch-alarm-notification-handler/lambda_function.py | fb2dcc3241b566bee3dd007f55e2f1894595c1c6 | [
"MIT"
] | permissive | kagodarog/Infrastructure | 4ee0ba79e297196ad5f8f8fac18128a959951c4d | d309a7dcfd36c2f94ce383fe5d7ed6c76f59db5f | refs/heads/master | 2023-03-11T02:24:54.953960 | 2021-02-23T19:39:57 | 2021-02-23T19:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,027 | py | # Invoked by: SNS Subscription
# Returns: Error or status message
#
# Triggered by messages sent to various SNS topics resulting from CloudWatch
# Alarms being triggered or changing states.
import boto3
import os
import json
import urllib.parse
from dateutil.parser import parse
import datetime
import re
sns = boto3.c... | [
"chris@farski.com"
] | chris@farski.com |
46411143ff9e2fc8dddc42ad13fee63873328438 | 26290167d60075c12e04a95cd0ce87c70ec5a06c | /Aula 9/Exc5.py | 0201a7dc940b7d4a2d8c9fc36ee30ee0802105e3 | [] | no_license | jmveronez/Exercicios | d4186538e5236a947ad9bf3eee45236d20303855 | dffae0f9621b57c71dd9403ceefec49385213947 | refs/heads/main | 2023-04-21T08:27:23.129966 | 2021-06-01T01:45:36 | 2021-06-01T01:45:36 | 366,562,078 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #5. O Sr. Manoel Joaquim expandiu seus negócios para além dos negócios de 1,99
# e agora possui uma loja de conveniências. Faça um programa que implemente uma
# caixa registradora rudimentar. O programa deverá receber um número desconhecido
# de valores referentes aos preços das mercadorias. Um valor zero deve ser i... | [
"jmveronez234@gmail.com"
] | jmveronez234@gmail.com |
dd422b4ebe4b9e6aeb1fc219d30133cd31641577 | 296287f05a1efed570b8da9ce56d3f6492126d73 | /snippets/draw_text_in_image.py | fcbb7d055099100cada3113b7ce8812f110ddacb | [] | no_license | formazione/python_book | 145f8a2598b6b75736a7c33a796b9fdd8cff668e | d7822b312c1db028bb70e25385a74b227a9a2609 | refs/heads/main | 2023-07-05T20:15:18.166771 | 2021-08-12T14:14:25 | 2021-08-12T14:14:25 | 320,499,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from PIL import Image,ImageDraw,ImageFont
import tkinter as tk
def create_img_with_text(text=""):
if text == "":
text = "Pythonprogramming.altervista.org"
# sample text and font
unicode_text = u"Pythonprogramming.altervista.org"
font = ImageFont.truetype(
"C:\\Program Files\\Android\\Android Studio\\jre\\jre\... | [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
f8daba901324d5ea0615121beabf40a701c230a2 | c9ee7bd79a504597a32eac0d78e54d29ee139572 | /00_algorithm/Stage1/06_Recursion/problem1.py | 2800efe2ce84e24a74f138372160bd8dfa3988a9 | [] | no_license | owenyi/encore | eb3424594da3f67c304a8a9453fc2813d4bbba0d | 878ca04f87050a27aa68b98cba0c997e9f740d5d | refs/heads/main | 2023-07-13T10:08:24.626014 | 2021-08-23T13:40:54 | 2021-08-23T13:40:54 | 349,922,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # 10829 이진수변환-재귀...좀 더러움
def toBin(dec, bin=''):
if dec == 1: return int('1' + bin)
bin = str(dec % 2) + bin
return toBin(dec // 2, bin)
N = int(input())
print(toBin(N)) | [
"67588446+owenyi@users.noreply.github.com"
] | 67588446+owenyi@users.noreply.github.com |
078c40258e6bf4fcda2fc2317f847dddfb2bce21 | 83292e8ee5b14a30f61dcaf3067129e161832366 | /douban_film.py | a798c36cfe2919cb8fa74d911c62c1883780d1e7 | [] | no_license | A620-Work-Exchange/Application-Integration | 19197513f1aef67f27b4b984a736cd28ff9c8ac1 | baada55dd1b988112afd6bd4dc781670983337b8 | refs/heads/master | 2020-05-20T20:03:38.842375 | 2019-05-18T09:11:20 | 2019-05-18T09:11:20 | 185,736,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from urllib.request import urlopen
from time import sleep
import requests
from json_util import JsonUtil
import json
def get_top_film():
url = 'https://api.douban.com/v2/movie/top250'
for start in range(0, 250, 50):
req = requests.get(url, params={'start': start, 'count': 50})
data = req.json... | [
"2529716798@qq.com"
] | 2529716798@qq.com |
8037be52473b23f014eb6bf1e401f0f64dc04411 | 0103ea7172455056b578ef507ff3ef4553c06072 | /PerfMeasure.py | 7cd8813d07928c46d8b2824eb8d320d790ddc921 | [
"MIT"
] | permissive | JasonLC506/LabelRanking | 25c9735f3023fc478140536bd56b52de98272d08 | d93b1d42b0301dc8aa45f0fda8ec1e8e27b1be0f | refs/heads/master | 2021-01-25T07:50:09.852546 | 2017-06-08T21:42:00 | 2017-06-08T21:42:00 | 93,675,200 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 10,851 | py | """
calculate performance measures
Three perf measures used correspond to those in perf_list in perfMeaure
acc@3: perf_list["acc3"]
tau: perf_list["kendalltau"]
GMR: perf_list["g_mean_pair"]
"""
import numpy as np
import itertools
from scipy.stats.mstats import gmean
import math
from ReadData import rankOrder
NOISE =... | [
"jpz5181@ist.psu.edu"
] | jpz5181@ist.psu.edu |
0b256fb682b243b39e161f749081d6496bf0d471 | 4e763658dac306478683838040bd7c22ce54ab3a | /data_processing.py | df9556a3bf51919a5109da6c65f22fb5d603dd32 | [] | no_license | umd-fire-coml/FFNet | 6ab1e07e625213ee12c5c537f08791fdbdb4f7c4 | 978b7750573fec436dff29d1e0bd97ee246b25cd | refs/heads/master | 2022-03-10T21:27:35.346350 | 2019-11-17T14:53:05 | 2019-11-17T14:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,279 | py | import scipy.misc
import random
import numpy as np
import copy
import sys
img_path = '/home/speit_ie02/Data/KITTI/kitti_data/training/image_2/'
label_path = '/home/speit_ie02/Data/KITTI/kitti_data/training/label_2/'
# FFNet needs a 2D object detection model or 2D object detection result for KITTI evaluation
# define ... | [
"charliezhao1999@outlook.com"
] | charliezhao1999@outlook.com |
01cfde38c8965eca7aaedb20680ee6be5f676118 | e1ffc5d925b990906ad47fd1d046036324451218 | /conversation/models.py | 16a7b98c878a5588620014601c3b03325c2eda91 | [] | no_license | nikadam/cartloop | ed04312cf88031352a745f9a01b11152936757e0 | 4d1a6a6c50b59589410c487d348ab4fd4f2cf7b4 | refs/heads/main | 2023-01-10T10:43:09.238164 | 2020-11-06T11:52:49 | 2020-11-06T11:52:49 | 309,955,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
name = models.CharField(
max_length=50,
null=True,
blank=True
)
is_operator = models.BooleanField(default=False)
is_client = models.Boolean... | [
"nishantkumarkadam@gmail.com"
] | nishantkumarkadam@gmail.com |
56b0642ed03574de0e00e8f080073b4c32e42527 | 7df6d8f83b3359c6013c6e2be60b3ad0c54fae70 | /CraneOffer/Crane_offer_excel_to_Json.py | 72b86f1bbdbe06ac046426c78ffb635fa63ecff9 | [] | no_license | wangshuai917/Gamedev_Tools | 3bdf9e81d4596f52086ab3b49cd419e3ef52fb9c | 911d351e9bfd8bb3ac440c7d1f0c984e0c9f99da | refs/heads/master | 2023-07-07T19:37:24.870409 | 2021-08-11T10:15:54 | 2021-08-11T10:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,614 | py | from openpyxl import load_workbook
import json
import os
work_dir = os.getcwd()
xlsx_dir = "CraneOfferconfigs.xlsx"
workbook_dir = os.path.join(work_dir, xlsx_dir)
print(workbook_dir)
json_file_name = "CraneOfferConfig.json"
json_dir = os.path.join(work_dir, json_file_name)
print(json_dir)
wb = load_workbook(workbo... | [
"1446598178@qq.com"
] | 1446598178@qq.com |
593e53c60f0516295d431c9288b9ff7fae2deb8e | 15e586540892790d42a1ecb930f7fc5c7e50328e | /backend/util/__init__.py | 634cd9575dd342fe1d771e4f68d1e140a10adfe0 | [
"Apache-2.0"
] | permissive | felixu1992/testing-platform | f6a73ffcfd839e4d79e0bd5eb1d0c1292bcc5b57 | d7008343c25ec7f47acb670ae5c9b9b5f0593d63 | refs/heads/main | 2023-07-03T08:57:33.272071 | 2021-08-13T12:16:36 | 2021-08-13T12:16:36 | 310,037,662 | 0 | 0 | null | 2020-12-24T06:40:00 | 2020-11-04T15:09:15 | Python | UTF-8 | Python | false | false | 175 | py | from backend.util.jwt_token import Security, UserHolder
from backend.util.resp_data import Response
from backend.util.utils import *
from backend.util.execute import Executor
| [
"xufei_0320@163.com"
] | xufei_0320@163.com |
55cf1f4ce50995a9d07d8447d478a6db0d5bb5be | bb198232df12a1adb9e8a6164ff2a403bf3107cf | /wifi-dump-parser-3/template-parsing.py | 5ebdb33d76793457a8eace4b4066f6e2e0ee8ee9 | [] | no_license | vanello/wifi-arsenal | 9eb79a43dfdd73d3ead1ccd5d2caf9bad9e327ee | 1ca4c5a472687f8f017222893f09a970652e9a51 | refs/heads/master | 2021-01-16T22:00:37.657041 | 2015-09-03T03:40:43 | 2015-09-03T03:40:43 | 42,060,303 | 1 | 0 | null | 2015-09-07T15:24:11 | 2015-09-07T15:24:11 | null | UTF-8 | Python | false | false | 21,786 | py | #Author : Abhinav Narain
#Date : May 6, 2013
#Purpose : To read the binary files with data from BISmark deployment in homes
# Gives the frames: transmitted and received by the Access point in human readable form
# To test the output of the files with the dumps on clients; and understanding the trace ... | [
"oleg.kupreev@gmail.com"
] | oleg.kupreev@gmail.com |
f2e7f0e94bba710d8fdae5692b1f3256e1ae55d1 | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /submissions/migrations/0002_auto_20161028_0540.py | cd60356ef018a13dc5711524a56d9a60a4a3a77a | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 2,187 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-28 05:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('usermg... | [
"madison.scott-clary@canonical.com"
] | madison.scott-clary@canonical.com |
510abea419d84515b47f26c995b7cd11ec16b305 | d105e84f7c5546bd2a0cc3d73f8660acb35436e1 | /dbsn_gray/gray_kd_test.py | 55b87c187124b1811ff359fcea3515b1d91f97dd | [] | no_license | lvjj18/DBSN | 3ccf1947e313fbd319df8838be3b85e7a983caf6 | 4cf51b0c3b9ba7b0d3b2ab9e881a73d51058451c | refs/heads/master | 2022-12-12T00:31:19.319266 | 2020-08-31T11:53:28 | 2020-08-31T11:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | #
import os
import random
import datetime
import time
from pathlib import Path
import math
from scipy.optimize import curve_fit
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from data import create_dataset
from gray_kd_options import opt
from net.bac... | [
"xhwu.cpsl.hit@gmail.com"
] | xhwu.cpsl.hit@gmail.com |
ee3dbda8b19a10b1e5348fd84e2fbaa94ac30ee0 | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/properties/minPressureSetpoint.py | 37a8d2471523d2fe28bceff3606f5ef910265dfe | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | """minPressureSetpoint standard property type, originally defined in resource
file set standard 00:00:00:00:00:00:00:00-0."""
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation ... | [
"lcoppa@rocketmail.com"
] | lcoppa@rocketmail.com |
2a97d4fde1b262d7d7571c5622491d16841bed3f | 313bb88c43d74995e7426f9482c6c8e670fdb63c | /07-modules/example6_module.py | 8926b868c6f45aa8be74c33928f9bfcea9bd86be | [] | no_license | martakedzior/python-course | 8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654 | 3af2296c2092023d91ef5ff3b4ef9ea27ec2f227 | refs/heads/main | 2023-05-06T07:26:58.452520 | 2021-05-26T16:50:26 | 2021-05-26T16:50:26 | 339,822,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import example6_module
import shapes
if __name__ == '__ main__':
print(shapes2.rectangle_aera(3, 4))
else:
print('Jestem teraz modulem')
print('wartość zmiennej __name__:', __name__)
print('moduł - wartość zmiennej __name__:', __name__) | [
"marta.kedzior@wp.pl"
] | marta.kedzior@wp.pl |
84fc8575d753c1931e2f5b8c06106cebe611a00b | de5d6ddaf21b60608294fd7d434850631664051e | /gobou/bin/django-admin.py | cde98064ddc44372a8aab2665d97d9044f9ff72b | [] | no_license | okumura-shinij/my-first-blog | ea9a80d19382bd6d3a5b062476b3399d6b866d03 | 782e0d2ef1a6a8219e646101ee33e26c13fd136d | refs/heads/master | 2022-11-27T19:42:14.091497 | 2020-07-30T15:40:14 | 2020-07-30T15:40:14 | 283,203,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/Users/okumurashinji/django/gobou/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"okumura.womb@gmail.com"
] | okumura.womb@gmail.com |
6f8f5bf67bebaee6514119e5b95fa511517820e1 | 5b3beb37c5285caccde895e0c6c8c091bb8c4a29 | /app/app.py | 01518818fdc6b1a3e9c75d7575d4e0bc3c1ee744 | [] | no_license | igaurab/align_image_flask_server | 51ead5844afd4552b46c2cd27d0be26b53c84ddd | 14a9f281eb39662e6392813593980fc07236dcec | refs/heads/master | 2023-04-25T11:10:00.990589 | 2021-05-03T03:42:11 | 2021-05-03T03:42:11 | 363,807,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from flask import Flask, jsonify, request, send_from_directory
from align_image import align_image
import cv2
from PIL import Image as Image
import numpy as np
import os
app = Flask(__name__)
UPLOAD_FOLDER = os.path.join(app.root_path, 'output/')
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/uploads/<pat... | [
"gaurab.panthee@docsumo.com"
] | gaurab.panthee@docsumo.com |
7af99e7d5fd22934c2b33436ca2f37d167428b35 | 441c216de6c2ca3f1e9f80317e950ca4fc2fc27d | /hackerrank/solutions/fibonacci_modified.py | 880c1e1eac2c77d4ff7d1f988517ec7d4b1dcfd4 | [] | no_license | briansu2004/Unscience-Computer-Hackerrank | 53bc926ff68500b7df06672ac075bf19d5a7537b | 23e2a7239d110d51af4f9e093bd36dfd52d38943 | refs/heads/master | 2023-03-18T07:45:07.296229 | 2020-06-15T00:21:08 | 2020-06-15T00:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/bin/python3
#
# Problem Author: PRASHANTB1984 @ hackerrank
# Difficulty: Medium
# link: https://www.hackerrank.com/challenges/fibonacci-modified/problem
#
# Solution
# Author: Byung Il Choi (choi@byung.org)
#
import math
import os
import random
import re
import sys
# Complete the fibonacciModified f... | [
"choi@byung.org"
] | choi@byung.org |
b77adeb1ec4a34291041ac77541134a2b7debf75 | 5abb082407832749f418c803d875b1798a457be6 | /processing/cluster.py | 8cf97e283b6e0a117ebba5ad784592f566a2a773 | [] | no_license | darkflake/ASDAS | 63b4593d77d09132a7365518a1e10db3a40e1c75 | 9dbb63c7f0279270dcd321b7a4456ec55f70bf6f | refs/heads/master | 2022-05-26T11:26:26.497155 | 2020-04-27T15:58:35 | 2020-04-27T15:58:35 | 259,531,939 | 0 | 0 | null | 2020-04-28T04:34:55 | 2020-04-28T04:34:55 | null | UTF-8 | Python | false | false | 2,934 | py | from tslearn.metrics import dtw
from tslearn.barycenters import dtw_barycenter_averaging
class Cluster:
def __init__(self, data_count: int, data_points: list, instance: int):
self.center = []
self.count = data_count
self.data_points = data_points
self.instance = instance
s... | [
"sudhanshu.1.k@gmail.com"
] | sudhanshu.1.k@gmail.com |
0a5eb3316e0630c70e252f7cdd69aefd417c9da0 | 84e952d130dc2fc417caab8f504fcd245fde3d12 | /cnn/activators.py | 68de7879161fd3085591c49588861e8cd0b4087f | [] | no_license | ErZhouEr/mnist | 974b95cdbe25d5fff96558739ebb8fa9fcb6a8e2 | 2f247526098f2c5e316cef89bdbd0aba12d0cfee | refs/heads/master | 2021-01-02T02:54:11.322613 | 2020-03-30T10:00:39 | 2020-03-30T10:00:39 | 239,457,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!usr/bin/env python3
# -*- coding:utf-8 -*-
"""
@author:ZHOUCE
@file: activators.py
@time: 2020/03/10
"""
import numpy as np
class ReluActivator(object):
@staticmethod
def ori_func(x):
return max(0,x)
@staticmethod
def d_func(y):
return 1 if y>0 else 0
class SigmodActivator(object):
@staticmethod
def or... | [
"917846003@qq.com"
] | 917846003@qq.com |
b9c0c5a09024bde9c8a11e132d1b4bd3dc3b41f2 | b5025befdf74fff3071252abaa4db09479f2d763 | /Govind_Gopal/tinkter/std_cl.py | 411265e5cbbd962b9aab9b0d3fe6350c6dee4796 | [] | no_license | sidv/Assignments | d2fcc643a2963627afd748ff4d690907f01f71d8 | d50d668264e2a31581ce3c0544f9b13de18da2b3 | refs/heads/main | 2023-07-30T02:17:19.392164 | 2021-09-23T04:47:56 | 2021-09-23T04:47:56 | 392,696,356 | 1 | 20 | null | 2021-09-23T08:14:11 | 2021-08-04T13:20:43 | Python | UTF-8 | Python | false | false | 166 | py | class Students:
def __init__(self,st_id = 0, name = "", age = 0, st_class = ""):
self.st_id = st_id
self.name = name
self.age = age
self.st_class = st_class
| [
"govind@gmail.com"
] | govind@gmail.com |
14b78e042a17e9782e6aabb2c3817989c186c63e | 7defbcf4dd1b82d1c98b4a7b82f627269fec38e3 | /ExponentialDecay.py | f37194d62c0921f73554744feab4c0f47d1653da | [] | no_license | ZhangLeiCharles/abo_py | 6798b109968483792fcdd953f184e8f69b126efc | 57c3290b25113dc783088a59cd5a4685f6ba145c | refs/heads/master | 2020-09-24T14:42:10.071120 | 2019-08-21T19:28:37 | 2019-08-21T19:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | from GPy.kern import Kern
import numpy as np
class ExponentialDecay(Kern):
def __init__(self,input_dim,variance=1.,lengthscale=1.,power=1.,active_dims=None):
super(ExponentialDecay, self).__init__(input_dim, active_dims, 'exponential_decay')
assert input_dim == 1, "For this kernel we assume input_dim=1"
... | [
"fmnyikosa@gmail.com"
] | fmnyikosa@gmail.com |
2af4c73e584fc0be42678e2c99f8a8a70638146a | 4ce4902847b2d8d1c92daf89b35ca8aaff141090 | /Data/Alignment_etc_for_ExaML/examl_constraint_only_ml.py | 75c35c29258cf08487eebc8afa37f78b674b69a9 | [] | no_license | mpnelsen/Lecanoromycetes_megaphylogeny | 0e672615e0d74745a72865d056619c9056b1f45b | 343e0abefdb4853858be3ae680850823818f2ec0 | refs/heads/master | 2022-12-02T01:26:37.628073 | 2020-08-07T17:52:54 | 2020-08-07T17:52:54 | 282,992,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import random
import subprocess
import os
#os.mkdir('~/path...')
#file path and name (original alignment)
f="concat.phy"
cons="family_constraints.tre"
#number of bootstrap replicates
#n=100
#number of processors to use
proc=10
#original data set - make binary, get starting tree, find ml tree
#subprocess.call(args=... | [
"mpnelsen@gmail.com"
] | mpnelsen@gmail.com |
420c082ad3b9a653211cb49b4e86c1bbf9b0682e | c8542b4b474758c4f0b0e553c5a56e79830a36a9 | /scripts/wof-exportify-repo | 55997157b5140d2831272e2a8c5f155d8c4d207c | [
"BSD-3-Clause"
] | permissive | whosonfirst/py-mapzen-whosonfirst-export | f9b7d569f2135afcbc79ff3cd51f0a4f58606619 | d64fc4a5f6fbe54a35504ad55d8aa41092b6b106 | refs/heads/master | 2022-09-02T08:49:53.205825 | 2020-08-13T17:31:58 | 2020-08-13T17:31:58 | 38,065,450 | 1 | 5 | BSD-3-Clause | 2020-01-31T17:21:01 | 2015-06-25T18:06:06 | Python | UTF-8 | Python | false | false | 1,102 | #!/usr/bin/env python
# -*-python-*-
import os
import sys
import logging
import mapzen.whosonfirst.export
import mapzen.whosonfirst.utils
if __name__ == '__main__':
import optparse
opt_parser = optparse.OptionParser()
opt_parser.add_option('-R', '--repo', dest='repo', action='store', default=None, ... | [
"aaron@mapzen.com"
] | aaron@mapzen.com | |
d3341f8f3b280ac55142cb872ec1aff5fa734881 | f140cb021cc0f402ed388a1a991f1e150e7e55df | /Python_DL_Project/Source Code/age_gender_detector.py | fdbd0ac47b4c1fbb29c397ff5e851011b5cc249d | [] | no_license | rupadoppalapudi/Python_DeepLearning-2021Spring | c8183bbaed2acb7878dc5d395eb0b4def26f31cb | 7432dccb9e3158c74e13cf115978a304d8bc4ea2 | refs/heads/main | 2023-04-11T13:51:27.673075 | 2021-05-01T02:01:01 | 2021-05-01T02:01:01 | 332,598,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | # Age and Gender detection of a person based on the image by passing it to the machine learning algorithm
# importing required modules
import cv2 as cv
# import time
# extracting face of the person from image
def extract_face(net, image, conf_threshold=0.7):
frame = image.copy()
f_height = frame.shape[0] # f... | [
"70282754+rupadoppalapudi@users.noreply.github.com"
] | 70282754+rupadoppalapudi@users.noreply.github.com |
e32c252e8271fa08227d5821a55cb10ebdfc74ad | e30b1e04fc5471ff3996def08ec58e6c91b7b523 | /migrations/versions/ab1e57abf110_adds_customer_model.py | 0de9deee0b44ad1b696c56c1c9a61906c1330808 | [] | no_license | lisa1501/retro-video-store | bae33ad1357ac271711e627f5ea609ae14cfc7d4 | ea0456007febeeeab41b23e3adae39473213ae74 | refs/heads/master | 2023-08-08T08:01:30.096798 | 2021-05-21T23:07:50 | 2021-05-21T23:07:50 | 368,365,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | """adds customer model
Revision ID: ab1e57abf110
Revises:
Create Date: 2021-05-18 12:47:26.828064
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ab1e57abf110'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands au... | [
"halisasaipulla@gmail.com"
] | halisasaipulla@gmail.com |
6038802b027f5c0482af3d4095a3a38ed01c354b | 90fe944f97b868e38cffcbbe94fa47286d6d1e68 | /setDataset.py | 6cf5a098f1acbf36cff87ba4cf8397c915bca74e | [] | no_license | weichen283/FaceRecognition-pytorch | 8b8f76f36097c8bdc3173ebdd03c202b49a48bce | 1dc8a633302239cf6b3a7595b54e768c68d6603b | refs/heads/main | 2023-07-03T02:21:36.840918 | 2021-08-08T06:44:24 | 2021-08-08T06:44:24 | 393,675,726 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import sys
import os
import cv2
import dlib
input_dir = './photo_download'
output_dir = './face_photos/other_faces'
size = 64
if not os.path.exists(output_dir):
os.makedirs(output_dir)
detector = dlib.get_frontal_face_detector()
index = 1
for (path, dirnames, filenames) in os.walk(input_dir):
for filename ... | [
"xwchcooo@gmail.com"
] | xwchcooo@gmail.com |
4c344ba89021d350f8aa299a728e88ef44bb7a78 | b44498e47fb5b9766920af01d6af4890c6dd054a | /python27/1.0/Lib/site-packages/pypm/common/repository.py | e9dd0ff821cf352c994447ea5d8e293f52e576cf | [] | no_license | zhaoxiaohui/xunlei_vip | 4489dde49716640bb58cd2a210bce06e607ea1fb | 465a9d937ce04c784dca14cc60dffecce4041d32 | refs/heads/master | 2020-03-30T06:21:13.865619 | 2015-10-15T05:13:09 | 2015-10-15T05:13:09 | 38,826,640 | 23 | 17 | null | null | null | null | UTF-8 | Python | false | false | 28,875 | py | # Copyright (c) 2010 ActiveState Software Inc. All rights reserved.
"""
pypm.common.repository
~~~~~~~~~~~~~~~~~~~~~~
Code related to repository functions
"""
import os
from os import path as P
import logging
import gzip
from hashlib import md5
from contextlib import closing
from collections import named... | [
"fire.guy@163.com"
] | fire.guy@163.com |
f8dc0b1aee58d7979e7f5d482179c4af4a3c1ae0 | a937504aac6f6b954473b25dd1da8cca9f90be4e | /sphere_drop.py | c155de9f73444e761ebb59414f3497e369974b4d | [] | no_license | zizochan/blender_python | b822a2288e29766d5eb7b58a7b8856ee4e9f3be6 | aa519db917a94768f3ba2bb02e374f9069395b51 | refs/heads/master | 2021-04-28T01:06:56.560046 | 2018-05-27T11:26:39 | 2018-05-27T11:30:22 | 122,267,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | # -*- coding: utf-8 -*-
# import
import bpy
# config
FRAME = {"start": 0, "end": 200}
BLOCK_NUMBER = {"x": 6, "y": 6, "z": 30}
BLOCK_SIZE = {"x": 0.5, "y": 0.5, "z": 1.5}
# color
START_COLOR = {"r": 75, "g": 0, "b": 130}
END_COLOR = {"r": 25, "g": 25, "b": 112}
FLOOR_COLOR = {"r": 0, "g": 250, "... | [
"zizo.toiawase@gmail.com"
] | zizo.toiawase@gmail.com |
bdf6f258d52e429ac7db157c730375ffbb5a503b | 4fdee88add8859003daed07f907052f05b106fe9 | /py_toolbox/copy.py | 89d813553a5b243d6532087afb0847061ad2ca2e | [
"MIT"
] | permissive | koya-ken/py-toolbox | f7db82cc57ae90b428a200ba4f487142ce998757 | 6c5dbda3197d47a1263aef8e30528b1bf1d8862c | refs/heads/master | 2020-12-03T07:09:29.355933 | 2020-02-15T16:02:00 | 2020-02-15T16:02:00 | 231,237,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import os
from tqdm import tqdm
def copyfileobj(fromfile, tofile, callback=None, length=16*1024, overwrite=False):
copied = 0
if os.path.isdir(tofile):
tofile = os.path.join(tofile, os.path.basename(fromfile))
size = os.path.getsize(fromfile)
tosize = os.path.getsize(tofile) if os.path.exists... | [
"koya.smp@gmail.com"
] | koya.smp@gmail.com |
52f0dad9a36e69dae81cc0744cf62af43ac22ba0 | 4c2572e33eb5858487dd85cda48515ad642974d3 | /python/tvm/relay/testing/tf.py | 0f98f2033e27a7ab86bc31cf616a0fa1551de2a3 | [] | no_license | jack16888/tvm-yolov3 | abb430e0e11261f0e54f890f25a7e554340ff9f1 | c53477c0f40cade632344d1484a9079f5f2deb1a | refs/heads/master | 2022-04-07T23:11:42.441089 | 2020-03-20T01:18:28 | 2020-03-20T01:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,255 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"gary30404@gmail.com"
] | gary30404@gmail.com |
6f254e66ef72d1178913366f837aa9804f7e8752 | 5502979ea9649e4dc556544285f1f943f560655d | /collatz.py | 802327c1ce51233d0bb33244d6d8e5828b75d277 | [] | no_license | imcdonald2/Python | 36f7cb7370b3405ab4d6884fddcf7bbb3c692fe6 | 7baa4ef58f3abbd57c856b2c3eb90990224021f2 | refs/heads/master | 2021-01-19T13:38:56.140524 | 2017-08-20T10:11:29 | 2017-08-20T10:11:29 | 100,851,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def collatz(number):
while number != 1:
if number % 2 == 0:
number = number / 2
print(number)
elif number % 2 == 1:
number = number * 3 + 1
print(number)
collatz(53453)8 | [
"gobizku@gmail.com"
] | gobizku@gmail.com |
2c5fcb6a21f19430ac8de3c70be24f2e6b1711a8 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /test/test_reebill/test_excel_export.py | 56fabef7c4bff8d7f0b9276c42aab2347c599839 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,940 | py | from copy import deepcopy
from datetime import date, datetime
from itertools import cycle
from StringIO import StringIO
import unittest
import mock
from core import init_config, init_model
from core.model import Register, Charge, Session, Utility, Address,\
Supplier, RateClass, UtilityAccount
from core.model.util... | [
"dklothe@skylineinnovations.com"
] | dklothe@skylineinnovations.com |
013860d7ff4bc86bddb06db3b24f6cdf9fc666b6 | 4e21ec3da6819145e4ff6826f921c419d9a1f20a | /canteenSystem.py | 01d629bd42c81221450f0e8ba13b3db43ef77c69 | [] | no_license | aneezJaheez/NTU-Cafeteria-System | bc6623471e9469eefb6bdbc470278c796d0248bb | a404f28ba3f276cd44a7a41a77f8481cfc0d48ec | refs/heads/master | 2023-03-21T18:48:28.769238 | 2021-02-24T15:50:23 | 2021-02-24T15:50:23 | 279,474,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,261 | py | #Program to view stores, menu, store timings for various eateries in the north spine canteen
from tkinter import *
from tkinter import ttk
from PIL import ImageTk, Image
from tkmacosx import Button
try:
import tkinter as tk
from tkinter import ttk
except ImportError:
import Tkinter as tk
import ttk
fro... | [
"noreply@github.com"
] | noreply@github.com |
86175487f19361d5a3638bd32f87a2f980377a3a | 3c29e2e1c8e2bcf962c8b31214f418ad7b1b5d11 | /readAndPlotSingle.py | da5035b21e5d8e674f6f7a6120513e4e23278ac0 | [] | no_license | pbarragan/mechIdent | 55cf7ce7f7d30d9e07367de1240b26fc039ce7ec | 63f18c4af8b5c1498d74ee96d561a5116d7691ce | refs/heads/master | 2021-01-10T20:32:14.278094 | 2014-02-27T04:56:29 | 2014-02-27T04:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | from matplotlib import pyplot
import numpy
def skip_lines(f,lines):
for i in range(lines):
f.readline()
def get_data(fileName):
f = open(fileName,'r')
#read the initial stuff you need
f.readline()
model = int(f.readline())
skip_lines(f,5)
numStates = int(f.readline())
skip_line... | [
"patrick.r.barragan@gmail.com"
] | patrick.r.barragan@gmail.com |
56c9a9f7223bf03212b85936315983875c71c2d4 | 292569c7576a0de7d2d7c7653f202b4d1189415e | /main.py | f8a1c3c34ff8441af2a35e613208be241bbe2366 | [] | no_license | zabbidou/Regex-to-epsilonNFA-to-DFA | 38aa3f7c6f22e7bb3c36bae1949fa937d77ab96f | c506e22aa2347ef17abae93fdd5c5a52f0c185f8 | refs/heads/main | 2023-03-17T18:35:56.938344 | 2021-03-08T22:54:38 | 2021-03-08T22:54:38 | 345,816,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import sys
from nfa import *
from antlr4 import *
from RegexLexer import RegexLexer
from RegexParser import RegexParser
from RegexVisitor import RegexVisitor
input = FileStream(sys.argv[1])
lexer = RegexLexer(input)
stream = CommonTokenStream(lexer)
parser = RegexParser(stream)
tree = parser.regex()
visitor = RegexV... | [
"noreply@github.com"
] | noreply@github.com |
e0827393ee09fc0e40318a821e8d87fb7743ad1d | daca019a9dac198390ae73588496e310f30362f1 | /mapReduce/lab2/ejercicio3/6.py | a743dc76277eb0cac42b6963d03080e96f0c1ff9 | [] | no_license | caladdd/BigData | 9fd9ffeb857f3dc97d03dcfbbd8854840c4f83df | e372ad6c3140a040ad33d7e87dd94ab6932ee5c1 | refs/heads/master | 2020-03-11T04:45:23.996813 | 2018-05-07T04:31:12 | 2018-05-07T04:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from mrjob.job import MRJob
from mrjob.step import MRStep
#import numpy as np
class MejorEval(MRJob):
def steps(self):
return[
MRStep(mapper = self.mapper1,
reducer = self.reducer1),
MRStep(reducer = self.reducer2)
]
def mapper1(self, _, line):
... | [
"juanpablo.calad@gmail.com"
] | juanpablo.calad@gmail.com |
775c98aff54bc0e91e9c3be0b4cb8fdbb0cecb40 | a4b38feb9a4502249babc679c38590a017a47d30 | /rohanblog/urls.py | 9c15e04b0ccd08107339ca522ca6acec3be4962d | [] | no_license | rohanNpradhan/Rohan_Blog-Django | 825bc5b57555d857655e14ec75ba62974ef20850 | e97ffc0a68e5b6abe9536cf7b953a99b7a06eb8c | refs/heads/master | 2021-08-10T20:12:07.579942 | 2017-11-12T22:49:51 | 2017-11-12T22:49:51 | 110,465,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | """rohanblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"rohanpradhan@gmail.com"
] | rohanpradhan@gmail.com |
64d45d9b34c9e2d7e84fae07e4afc49f2795317a | 0c9ba4d9c73fb3b4ee972aed0b6d844d8a9546a9 | /TerchaerCode/s13day3课上代码/day3/s1.py | 2b5de365e8984bdb16be174cabf9b4b954ffbc68 | [] | no_license | SesameMing/Python51CTONetwork | d38179122c8daaed83d7889f17e4c3b7d81e8554 | 76169c581245abf2bcd39ed60dc8c9d11698fd3a | refs/heads/master | 2020-04-15T12:47:15.234263 | 2018-06-02T15:04:04 | 2018-06-02T15:04:04 | 65,876,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Alex Li
# 1、set,无序,不重复序列
# li = [11,222]
# print(li)
# a. 创建
# li = []
# list((11,22,33,4))
# list __init__,内部执行for循环(11,22,33,4) [11,22,33,4]
# 原理,list
# dic = {"k1":123}
# se = {"123", "456"}
# s = set() # 创建空集合
# li = [11,22,11,22]
# s1 = set(li)
# print(s1)
# b... | [
"admin@v-api.cn"
] | admin@v-api.cn |
aee4fd9a82016258b51396e9fcbb86c222086056 | 21f31e7894bd2620af08ff02b307afbf85551a22 | /DublinBus/DublinBusTest/migrations/0002_line9_lineone.py | 12652ebe993f635299ee5c8a482b41dc4698816b | [
"BSD-2-Clause"
] | permissive | atreanor/PaceApp | f3866993a82617d6b541d6c681523f53c43de2a9 | c7ad6f42d9442d99b48c03e3e6ad883f5d16bba9 | refs/heads/master | 2022-12-18T04:37:27.271179 | 2019-03-24T22:13:59 | 2019-03-24T22:13:59 | 177,114,952 | 0 | 0 | BSD-2-Clause | 2022-12-08T04:53:55 | 2019-03-22T09:52:23 | JavaScript | UTF-8 | Python | false | false | 1,464 | py | # Generated by Django 2.0.6 on 2018-07-10 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DublinBusTest', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Line9',
fields=[
('i... | [
"alan.treanor@ucdconnect.ie"
] | alan.treanor@ucdconnect.ie |
7010bdcc199ffe691d09e85fcec06ddaf77523bb | d9a839f241f65a6bb1ed0e900d8c12d407478360 | /Python_Practice/primetest.py | d515a92e55f456103d273d03015c9e07bc598f05 | [] | no_license | downstreamfish/Python_Trains | df9ad1ea78076a970a8236624aac2105de9e36e2 | 91b58a9e28eb7d42ab0afb693cc42ff3cfd10dea | refs/heads/master | 2020-03-27T03:09:33.509798 | 2019-01-16T12:48:48 | 2019-01-16T12:48:48 | 145,842,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | for n in range(2, 10):
for x in range(2,n):
if n % x == 0:
print(n, 'equals', x, '*', n/x)
break
else:
print(n, 'is a prime number')
| [
"honle_han1403@outlook.com"
] | honle_han1403@outlook.com |
f1225911a9c8b090f16e2d5cab0de30ef298ea31 | fc41dc76e08232e1115107f99fc004873e225a87 | /project_one/settings.py | 3b93108dc2191c5ddc912eb8a3a67265cda9fc8e | [] | no_license | jomapormentilla/django_project_one | 8206ea9bba728657b3aa1a6233ae58f3b2d3ea72 | 1d318d434b2269ce1c86e40a44d67cdf30a7f925 | refs/heads/main | 2023-06-17T21:17:51.018746 | 2021-07-07T18:43:31 | 2021-07-07T18:43:31 | 383,824,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | """
Django settings for project_one 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 pat... | [
"jomapormentilla@gmail.com"
] | jomapormentilla@gmail.com |
7ce2d665d3a2088faa37fe2203b59cecafdb1a2f | 620213ce023607fce767bd1cac0bdf9ceed97de9 | /servings/flask/utils/names.py | 1ca87f8600c791434928d9f1449b74b9323f11ff | [] | no_license | yusuf287/DataMigrator | bc7e4edb37ff243a204e69a9d9c6f4cc3443ed14 | 52198e2ee2e67acd425832ab09f5be99a2c3c9a3 | refs/heads/master | 2020-09-06T01:59:40.113394 | 2019-12-02T06:30:49 | 2019-12-02T06:30:49 | 220,280,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | test_case_proto_file_name = "test_cases.proto"
input_output_proto_file_name = "input_output.proto"
test_code_file = "test.py"
input_test_file_name = "testcases.txt" | [
"noreply@github.com"
] | noreply@github.com |
40cbfdfcdcbc0a80e3f1a4e234d9e3147910b169 | 02520432a2d109e3be3d701a76794735e642aa5f | /base_modules/pcam_pcomputing.py | 31547b64c88f4c0b23efe4aeb775807225d319f7 | [] | no_license | ronniejoshua/multi_threading_processing | af1918a810d5e5b1907e81b4364502ee2dda9e24 | 1f9437c4a8599078c6a909cda95a0ede3127fbf5 | refs/heads/master | 2022-12-12T03:51:02.884704 | 2020-08-26T15:42:28 | 2020-08-26T15:42:28 | 281,604,347 | 0 | 0 | null | 2022-12-08T11:14:21 | 2020-07-22T07:16:06 | Python | UTF-8 | Python | false | false | 11,035 | py |
"""
Partitioning
------------
Partitioning, is about breaking down the problem into discreet chunks of work that can be distributed to
multiple tasks. At this beginning stage, we're not concerned with practical issues like the number of
processors in our computer. We'll consider that later. For now, our goal is to sim... | [
"ron.juden@gmail.com"
] | ron.juden@gmail.com |
f7b43de393d6f9ff23a62a56c441c6076b7d7d8d | 6609a299691152af507a40c03a36341154447881 | /shopping/migrations/0005_home.py | 8a7dc986084ad59d375e73a1a5dac16ebd8d69e7 | [] | no_license | Princetripathi087/shopping | 6020835f97c325a6ba0a94b4f83e24faa38e7d36 | 158f7a072d20ce87f4628b48d2e0a3163252f7a0 | refs/heads/main | 2023-05-11T10:36:25.143412 | 2021-05-27T12:27:18 | 2021-05-27T12:27:18 | 371,336,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.2 on 2021-04-21 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shopping', '0004_elec'),
]
operations = [
migrations.CreateModel(
name='Home',
fields=[
... | [
"noreply@github.com"
] | noreply@github.com |
ba07f8e90183b19fbf61a59a84b04c542f44f08b | d1b51796e6ccd043155046a7d4e6bb5b93a740f9 | /praticepython/Exercise11.py | c3619d62b8712ab3ae4c6b03894eaae3c3ab6a5a | [] | no_license | leocarlos92/python | ee017532107efb6726263c7cdc23657aac6f9020 | aa59bca3db1e90c1e61394d1bf4a35bd2f54086a | refs/heads/master | 2020-04-24T06:34:49.124655 | 2019-04-11T16:53:56 | 2019-04-11T16:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """
Ask the user for a number and determine whether the number is prime or not.
(For those who have forgotten, a prime number is a number that has no divisors).
You can (and should!) use your answer to Exercise 4 to help you. Take this opportunity to practice using functions,
described below.
Discussion
Concepts for t... | [
"leonarbc@motorola.com"
] | leonarbc@motorola.com |
84514a0a1649c409c1594afb68b66c5957994ab4 | fce86501f046bdf495e52952a026415229a3f512 | /manage.py | 32d39d9ac87d68c9b70ad26d6f7924935ea04c15 | [] | no_license | michaelliriano/tltrealestate | cdfcabcfb2e0c77a61d9c135deee4e1a3f3df4a3 | bcbd6dd16da37317737385b020d0c36ce0130dfa | refs/heads/master | 2022-12-19T09:51:57.498550 | 2020-02-13T19:45:43 | 2020-02-13T19:45:43 | 239,376,842 | 0 | 1 | null | 2022-11-22T05:18:49 | 2020-02-09T21:26:26 | Python | UTF-8 | Python | false | false | 623 | 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', 'tlt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"51761089+michaelliriano@users.noreply.github.com"
] | 51761089+michaelliriano@users.noreply.github.com |
9a90cd66c119e2e73b470b6be1c99591426412d7 | 9661a19548c9886beb4965f8b404fc61f0f6831e | /load_murcs/serverProperty_Load.py | 310081e0d192cd180461d576e96ffb96bc28cea9 | [] | no_license | dirkhpe/bv | d3ee2f43ac1cc0b14b38b40417adbd96335db818 | 7725ebc01b3b981897f018a5e81bfd8a62dea11d | refs/heads/master | 2022-01-31T00:30:46.056907 | 2019-06-05T08:30:05 | 2019-06-05T08:30:05 | 107,697,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | """
This script will load server Property information.
"""
import logging
from lib import localstore
from lib import my_env
from lib.murcs import *
from lib import murcsrest
cfg = my_env.init_env("bellavista", __file__)
r = murcsrest.MurcsRest(cfg)
lcl = localstore.sqliteUtils(cfg)
tablename = "serverproperty"
logging... | [
"dirk.vermeylen@dxc.com"
] | dirk.vermeylen@dxc.com |
03383d50b28e350662087e4cbccf7252f9345a0a | 44eff1687bd3db0552ebbffc14d7178b0d946988 | /Crawling/Crawling/wsgi.py | e5e321b1486fbec68086438616042c03aeeb0997 | [] | no_license | Hwang-Sungmin/Crawling | 8a129087930798d027a66e30edce1a224114c381 | 04278e47e40165561436b925eef8b841f8009a46 | refs/heads/master | 2020-12-02T13:12:06.762340 | 2020-03-17T05:03:00 | 2020-03-17T05:03:00 | 231,016,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for Crawling 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"hsm511@ajou.ac.kr"
] | hsm511@ajou.ac.kr |
cf56319f264cb7dd6bbfac6b309392fa20ef6ce9 | 54fe1f253fb245deffe162f6cb97291b8fd2a6dd | /sticks.py | 6a5cb9a84db5b475dc5391e83d5e3fd8713065e0 | [] | no_license | qugit-hub/shiyanlou-code | 23186ebb3440a0b8680bf4625580f761403a1bda | bcb36663251b202404f6def70000367ec7b767c2 | refs/heads/master | 2023-02-26T06:59:15.960331 | 2021-02-03T03:00:25 | 2021-02-03T03:00:25 | 330,922,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
sticks=21
print("There are 21 sticks, you can take 1-4 number of sticks at a time.")
print("whoever will take the last stick will lose")
while True:
print("sticks left: ",sticks)
if sticks ==1:
print("You took the last stick, you lose")
break
sticks_taken=int(input("T... | [
"qym_94@163.com"
] | qym_94@163.com |
f748d138a6f55d5fa1f7c4e87defd034f0577a9a | 78bafc8f949612e5c4b984b405cf7955fb5118dd | /python/create_branch.py | f539bea6d0d3355d60c19a276b1d886babbb3357 | [] | no_license | arazmj/gdbnms | 1c1275589a8ebaf9abbfc06ec39e5b1abdcd8edf | 2d0cc4d14ab7ae3572623dacb7e2614def9a88ca | refs/heads/master | 2020-05-04T14:37:56.003499 | 2019-05-01T15:45:10 | 2019-05-01T15:45:10 | 179,205,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import argparse
from neo4j import GraphDatabase
import sys, random
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "password"))
mobile = 0
client = 0
ip = 0
def rand_mac():
return "%02x:%02x:%02x:%02x:%02x:%02x" % (
random.randint(0, 255),
random.randint(0, 255),
ran... | [
"arazmj"
] | arazmj |
9effecb7ceecacaffbb19eacf43d2dfadefd80cb | 186065405b2d551c8b7c3783cc7d0e41fcbee7f2 | /part2/main-app/reader/main.py | bcceddd96602bc30d0cabb12a452b76030eef346 | [] | no_license | Deninc/kubernetes-course | daa0f41d617269403c2228c29828eb79866534c4 | aad816baa95e2158e465682b3165eb12adac45b9 | refs/heads/master | 2023-02-08T06:01:41.396120 | 2021-01-02T20:26:34 | 2021-01-02T20:26:34 | 309,653,962 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import os
import hashlib
import urllib.request
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
app = FastAPI()
@app.get("/", response_class=HTMLResponse)
def read_root():
with open("/tmp/random_string.txt") as f:
s = f.readline().rstrip()
c = urllib.request.urlopen("http://pong-... | [
"thang.nguyen@cloudasset.com"
] | thang.nguyen@cloudasset.com |
9878b2c84cacca4dd1e3d8247bee2f35e08bf723 | a16f09908c251f4fc162b28e8dbeb9d2017ab408 | /homepage/migrations/0005_alter_ticketmodel_status.py | c6a248ab9acf6eedc0feedb0c9be79adbf60b7c9 | [] | no_license | maglin07/BugTrackerApp | 95b5ec93d69777ed89d13a8665d50d701cb62694 | da6b257a3d00aa4abb344c76ec339349e226d23b | refs/heads/main | 2023-06-18T12:02:53.483915 | 2021-07-21T07:06:31 | 2021-07-21T07:06:31 | 388,016,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Generated by Django 3.2.3 on 2021-05-25 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homepage', '0004_alter_ticketmodel_status'),
]
operations = [
migrations.AlterField(
model_name='ticketmodel',
name=... | [
"linmag138@outlook.com"
] | linmag138@outlook.com |
10a36d8ba182d5cfeb3359dcf0af11c05abaad56 | b4e2977a962ba91d32fe258b9de65b0d4182571f | /partytxt/controllers/voice.py | 30ae8f2cdc3ca5d3274a40c5ac7de6126d9b6a7c | [] | no_license | thedangler/smshub | 3266f7677c16324078a68df43f2854c0e353d58f | e808ebfc5725a9d080efe020289ddd17c4316580 | refs/heads/master | 2021-01-09T20:29:37.722295 | 2016-07-06T13:51:27 | 2016-07-06T13:51:27 | 61,894,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | __author__ = 'mhebel'
from flask.ext.sqlalchemy import SQLAlchemy
from flask import Blueprint, render_template, flash, request, redirect, url_for,session
from flask import current_app
from twilio.rest import TwilioRestClient
from partytxt.models import User, People, SMSLog, VoiceMailBox,VoiceStats
import re, os, time,... | [
"matthew.hebel@schulich.uwo.ca"
] | matthew.hebel@schulich.uwo.ca |
407627485b2c556513409348892b4e55a9892ce0 | 1ecfacf515059041f6a90c486248d597934185b8 | /zadatak1.py | 139f1004092768ddfb1b46a3ec878e0e03fe0824 | [] | no_license | StefanRojovic/Programskoinzenjerstvo | c684e2bf0c7b708465bdc68fb05629811fa7c5df | e3bb2a9b5b45474729b088818eacf40d1b978b7e | refs/heads/master | 2021-04-24T05:20:23.963261 | 2020-06-03T20:46:19 | 2020-06-03T20:46:19 | 250,084,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | def main():
pass
if __name__ == '__main__':
main()
class Razlomak(object):
def __init__(self,brojnik,nazivnik):
self._brojnik = brojnik
self._nazivnik = nazivnik
@property
def brojnik(self):
return self._brojnik
@brojnik.setter
def brojnik(self,value):
... | [
"noreply@github.com"
] | noreply@github.com |
5acdfe52eb25d3cd6de5b1bea421707d7b5ba3cd | 0630a7addb90600293f0ee0787dd6ab0ac77b09a | /LinkedList/FindDuplicatesInArray.py | 35abfd91e5fb529b564d57ba99c6e779fb8a5c5a | [
"MIT"
] | permissive | aritraaaa/Competitive_Programming | 48ecd3b6e28549889160c04cdbd19a5ad06fa49b | ee7eadf51939a360d0b004d787ebabda583e92f0 | refs/heads/master | 2023-06-12T07:04:07.698239 | 2021-07-01T11:11:24 | 2021-07-01T11:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | class Solution:
# @param A : tuple of integers
# @return an integer
def repeatedNumber(self, A):
'''
# This is the marker concept, by list modification
A = list(A)
if len(A) <= 1:
return -1
for i in range(len(A)):
num = abs(A[i])
if... | [
"amitrajitbose9@gmail.com"
] | amitrajitbose9@gmail.com |
4f82adf734cf7b91f9e7205d76ded8c1fe3b8db5 | 06c8afa94c045afb016e1dcdfe56ce6bc4c943d9 | /work_test/winpexpect_test.py | cefffa729d35c2e36462ef28e8bdd4dcff66e2ca | [] | no_license | Shadow-of-Diamond/my_python | 4512cc9a34fc59dc1cc45f696f7195b86d558590 | 5092100312cc299451309ec6c6b8faab1acee691 | refs/heads/master | 2020-07-07T06:14:42.042225 | 2019-08-26T07:53:32 | 2019-08-26T07:53:32 | 121,462,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from winpexpect import winspawn
#ssh = winspawn('ssh',['-tty','xiezhenkun@192.168.1.10'])
ssh = winspawn('ssh -tt xiezhenkun@192.168.1.10')
ssh.logfile = sys.stdout
i = ssh.expect(['word:'], timeout = 5)
print (i)
ssh.sendline('xzK3.............') | [
"xzk1072503@gmail.com"
] | xzk1072503@gmail.com |
43406fad42fdb45d72fa3cbfab83dde3b7796090 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracmilemixviewplugin/0.10/mmv/tests/test_rt.py | 6c8f860eb1a9198e639b85f4ace6ffe292f7992d | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | #from trac.core import *
#from trac.test import EnvironmentStub, Mock
#from trac.env import Environment
#from trac.core import ComponentManager, ComponentMeta
#
#import tickettemplate.ttadmin as ttadmin
#
#import os.path
#import tempfile
#import shutil
#
#import unittest
#
#class TicketTemplateTestCase(unittest.TestCas... | [
"richard@7322e99d-02ea-0310-aa39-e9a107903beb"
] | richard@7322e99d-02ea-0310-aa39-e9a107903beb |
eb37fe94306a9b07ea18d96085975147265fa95d | 1d26bf859705d3d6193fc3cc9da28d9a3af0de8e | /core_jobs/apps/jobs/search_indexes.py | 18fbeb56c7da36a46a1a6f8f1a405a65d2340baf | [] | no_license | tanay46/core_jobs | 3d8fe637127c6a4a4923b07ba4235858ee1b40ba | cbf0cf074332f0dd5abc4d9145d47eb989bcd577 | refs/heads/master | 2020-04-05T23:17:19.425885 | 2012-01-23T08:48:10 | 2012-01-23T08:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import datetime
from haystack import indexes
from apps.jobs.models import *
class PostIndex(indexes.RealTimeSearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
author = indexes.CharField(model_attr='user')
modified_on = indexes.DateTimeField(model_attr='modified_on'... | [
"shindonghee@gmail.com"
] | shindonghee@gmail.com |
e31ee367fc6802635bca02f0078aae7a1c53faf9 | cc2d37a71eac8422b0722533766b3ee95b5b5d1a | /data_import/zmmutypes.py | 4480cded4f86f0e6a1b75637c6e882db37268004 | [] | no_license | JelleZijlstra/taxonomy | 88018a1a0ec114875c45cf87ffc825957fc3e870 | 56aac782e2cbbd084a14d2ad1b1572729ba387be | refs/heads/master | 2023-08-17T03:20:13.576928 | 2023-08-07T00:47:41 | 2023-08-07T00:47:41 | 10,962,492 | 0 | 0 | null | 2023-08-17T04:53:54 | 2013-06-26T08:21:35 | Python | UTF-8 | Python | false | false | 12,168 | py | import copy
import re
import unicodedata
from collections.abc import Iterable
from typing import Any
from taxonomy.db import constants, models
from . import lib
from .lib import DataT, PagesT
SOURCE = lib.Source("zmmutypes.txt", "ZMMU-types.pdf")
ORDER = "Отряд"
SECTION_INTRO = ("ЛЕКТОТИП", "ГОЛОТИП", "ПАРАТИП", "СИ... | [
"jelle.zijlstra@gmail.com"
] | jelle.zijlstra@gmail.com |
d08c5b7f46e7c4c45e0f33e24570caf885631458 | b85bea9d8c4f64fecc7cce70c211e7c1f5fd5da2 | /2_frequent_item/preprocess.py | 97c2199fa4fe0b1ab481e9d629bd49e693a20454 | [] | no_license | alvinzhou66/data_mining_assignments | c27cc3433317baff3105cdd7d7737594160d99e3 | 2e175934e54b76c703e3c52bd438d2dc032d2273 | refs/heads/master | 2022-11-15T15:14:57.722238 | 2020-07-06T00:54:35 | 2020-07-06T00:54:35 | 277,409,292 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | #%%
import csv
import json
from pyspark import SparkContext
input_review_file_path = "data/review.json"
input_business_file_path = "data/business.json"
output_file_path = "data/user_business.csv"
sc = SparkContext.getOrCreate()
business = sc.textFile(input_business_file_path).map(lambda x: json.loads(x)).map(la... | [
"noreply@github.com"
] | noreply@github.com |
806b799a68a8f630d0d3c583863156a6fb5790ed | 98d07f95e07c3e76d356bd50e062602ce00dceb4 | /email_blast/urls.py | 05a2bd404b76b8eb4754eb59b8e091b9235ff2fc | [
"MIT"
] | permissive | todaatsushi/hhts_website | 23b7aee4e76878503459be334f6b6ef635dfd6f0 | 5ae44056d4cb577eab2e5a0525a330b3ac19e122 | refs/heads/master | 2022-04-29T04:55:25.569632 | 2019-08-12T16:52:27 | 2019-08-12T16:52:27 | 178,904,398 | 0 | 0 | null | 2022-04-22T21:03:59 | 2019-04-01T16:33:48 | Python | UTF-8 | Python | false | false | 560 | py | from django.urls import path
from .views import AllBlastsView, DraftMailView, DeleteMailView, UpdateMailView, ViewMailView, send_mail
urlpatterns =[
path('', AllBlastsView.as_view(), name='email-index'),
path('draft/', DraftMailView.as_view(), name='email-draft'),
path('<int:pk>/update/', UpdateMailView.a... | [
"todaatsushi0@gmail.com"
] | todaatsushi0@gmail.com |
2dd88044536b0537240afba9e2ce20986046975e | 407d9b737babef2625182bd92ae56ae2efee8dfd | /DT_surface_floor_bottom.py | 008359f98f7b629520d29d44dc13de81474c11b1 | [] | no_license | Sujit-O/digitaltwin | 1ca4712ae2212de5b563ae9fee6b681b17b084f2 | 06950dc69b6f270742eeb8800a97ee5075a376ba | refs/heads/master | 2021-05-14T09:01:33.790322 | 2018-01-04T23:24:23 | 2018-01-04T23:24:23 | 116,317,258 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,084 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 3 12:16:00 2017
@author: AICPS
"""
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 20 12:27:08 2017
@author: Sujit Rokka Chhetri
Project: Siemens Digital Twin Prject Summer 2017
"""
#!/usr/bin/python
#%% Import all the libraries
import numpy as np
... | [
"noreply@github.com"
] | noreply@github.com |
78db5d3a48d034fb1a52c5fe15957372c718061f | d5ed3ed782fd4cc6e0682c04de96196bf7163f3d | /workspace/python1/settings.py | 27e1df36112abeb43e24ccec47625b38c115a028 | [] | no_license | superbicode/scrum | af2b6238f69ec68ca6bac0b68ec89cfbaffce0b7 | 388439498b6d5eee7c9526de9aa71feea82320a3 | refs/heads/master | 2016-09-09T23:13:33.967536 | 2015-09-10T22:40:00 | 2015-09-10T22:40:00 | 42,274,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | """
Django settings for python1 project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"superbicode@gmail.com"
] | superbicode@gmail.com |
daabd04ef66e95085d98f1fa3e703af811ec01c0 | 2344d7aacbcec14b054beafe04225fb7ea0f7c0e | /mainapp/migrations/0018_auto_20190803_0033.py | b7c20cc2c9fe72124be0943fbaf6914eab402c32 | [] | no_license | RomanJordan/dota-website-public | 65873aba6f9bf2bd9080eab143ae70e4dd4c631e | 4fbb9d6b1de013310ea8d018a94a09d7dde894cd | refs/heads/master | 2022-12-07T18:47:29.804789 | 2019-09-10T04:24:05 | 2019-09-10T04:24:05 | 207,461,787 | 0 | 0 | null | 2022-11-22T04:14:16 | 2019-09-10T03:59:24 | Python | UTF-8 | Python | false | false | 1,871 | py | # Generated by Django 2.2.3 on 2019-08-03 04:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0017_hero_hero_advantages'),
]
operations = [
migrations.AddField(
model_name='hero',
name='hero_talent_l... | [
"32529400+RomanJordan@users.noreply.github.com"
] | 32529400+RomanJordan@users.noreply.github.com |
0dab538450e0b1a1b063150ff917b8ea62aa6416 | d36b4b87a933a35f2c04cf3f0e2832326689a070 | /app/routes/activity_router.py | ac54df99a25d59927f2523aa65f293af2f4a9745 | [] | no_license | kirill-kundik/SportUnity-Backend | a2c8f45ece5b30e74ff373b34939968ae7152cad | 0ac9508799c9b31781ed2d5291175fd39b419d21 | refs/heads/master | 2023-03-09T01:12:54.360803 | 2020-02-23T07:09:37 | 2020-02-23T07:09:37 | 242,365,176 | 0 | 0 | null | 2021-02-26T02:45:23 | 2020-02-22T15:32:58 | Python | UTF-8 | Python | false | false | 9,697 | py | import datetime
import aiohttp.web
import app.postgres.queries as db
async def track(request):
try:
body = await request.json()
user_id = int(body[0]["userId"])
except:
raise aiohttp.web.HTTPBadRequest()
async with request.app['db'].acquire() as conn:
activity = await db... | [
"goliathusua@gmail.com"
] | goliathusua@gmail.com |
5dd6e9370327b7405c71203257389455825b2b55 | 9d12c69327ee35fb2b478405a7a06e962bedc433 | /claims/models.py | e5768190bdf6d1c9a01e15d9710b7f1f219eb767 | [] | no_license | denizen-ru/partnerKredit | 3429eaad75942dcbc40d873a8a91a739f4458036 | 5e59afbc29080e135bef23c78be199987344a5e4 | refs/heads/master | 2021-01-01T03:49:55.460491 | 2016-05-25T09:25:40 | 2016-05-25T09:25:40 | 59,650,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from django.db import models
from accounts.models import SuperUser, Partner, CreditOrganization
OFFER_TYPE_CHOICES = (
('CC', 'Consumer credit'),
('MG', 'Mortgage'),
('CL', 'Car loan'),
('SME', 'SME credit')
)
CLAIM_STATUS_CHOICES = (('NEW', 'New claim'), ('SENT', 'Sended claim'))
class Offer(models... | [
"denis.m.knyazev@gmail.com"
] | denis.m.knyazev@gmail.com |
90b5d147893c7fb4e128a6b6787bdd1219b8a793 | 57b62a2c0a64926eaa2f7f7fbef197276004e7d1 | /BUsBot/news.py | 711011a80ed8f937f4dd34a3a03d9db3d31731ad | [] | no_license | MasayoshiI/bu_bus_cb | 680520e1c75b34069cfefee55c05420622bafdab | b1aada6da2743ac6472912b070a6e28c8755491e | refs/heads/master | 2020-04-06T12:08:17.653883 | 2019-04-25T00:58:29 | 2019-04-25T00:58:29 | 157,444,367 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # should I separate news and twitter authorization?
class News:
def __init__(self):
self.authorized = False
def get_news(self,authorized):
return None
| [
"miwasa20@bu.edu"
] | miwasa20@bu.edu |
8d6d450c53634324abe9438facd8aa95c0534131 | 2492705863a873333c9df9d61732d1d5c0969b56 | /VIZARD - Python/Vizard1ShaderExample.py | 2d9de7605f1641eb61b096696a21e0a98ffabdaf | [] | no_license | jarsal558/Coding-Portfolio | 3a4f514321288f6f4abbbb82fda74bc0361f6fe1 | c08588ed62e6e9f3b8f6cc09196b0a2ab611692c | refs/heads/master | 2020-04-15T18:54:52.481281 | 2019-01-09T20:24:14 | 2019-01-09T20:24:14 | 164,930,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | vert_shader = '''
void main (void)
{
gl_TexCoord[0] = gl_TextureMatrix[0]*gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
gl_Position = gl_Vertex;
}
'''
import viz
viz.go()
viz.clearcolor(1,1,1)
my_shader = viz.addShader(vert = vert_shader)
viz.startLayer(viz.TRIANGLES)
viz.vertexColor(1,0,0); v... | [
"noreply@github.com"
] | noreply@github.com |
be503a2325322b3afaffbe0751bad9e35b57d03f | 1f15008a52ab5d60513af1f0cf7949bd69ebc7a0 | /src/domain/modules/vehicle_module/model_factory.py | 9acdbb0e69e136a87af541f7dd912b128a5b2c86 | [] | no_license | chris-coelho/saoma-v2 | 88dad03b7f75b71462a05210533289fadb7e1d24 | e5184b683c9a94c916cc38ede74d62d479eb1fdd | refs/heads/master | 2021-05-01T16:41:45.155695 | 2018-02-13T02:11:29 | 2018-02-13T02:11:29 | 121,051,212 | 0 | 0 | null | 2018-02-14T18:31:01 | 2018-02-10T20:24:28 | Python | UTF-8 | Python | false | false | 1,006 | py | from src.domain.modules.factory_base import FactoryBase
from src.domain.modules.vehicle_module.brand import Brand
from src.domain.modules.vehicle_module.model import Model
from src.domain.modules.vehicle_module.model_exceptions import ModelExceptions
class ModelFactory(FactoryBase):
@staticmethod
def create(... | [
"cristovao3g@gmail.com"
] | cristovao3g@gmail.com |
bb090a14d03d9ae34916626a733163fb80a13d07 | 6fd5d30cf21716893388442eb0f9c16e13b91315 | /ABC/146/b.py | c2dd6c1a2676c0ffb2fe3790a90434aca68c06bd | [] | no_license | mgmk2/atcoder-python | 23d45f3195977f1f5839f6a6315e19cac80da2be | beec5857a8df2957ff7b688f717d4253b4196e10 | refs/heads/master | 2021-06-09T20:00:22.500222 | 2021-05-04T15:36:39 | 2021-05-04T15:36:39 | 179,711,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | n = int(input())
s = input()
a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ans = ''
for i in range(len(s)):
idx = n + a.find(s[i])
ans += a[idx % 26]
print(ans)
| [
"mgmk2.dev@gmail.com"
] | mgmk2.dev@gmail.com |
ad03b895afc6d180aa2358f68de8fcb600e871dd | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /W3Hptw6ieTtrWNw4H_17.py | 8740c16f02a86224026dad019c28269cb2d8f877 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | py | """
The basic **Polybius Square** is a 5x5 square grid with the letters A-Z
written into the grid. "I" and "J" typically share a slot (as there are 26
letters and only 25 slots).
| 1| 2| 3| 4| 5
---|---|---|---|---|---
**1**| A| B| C| D| E
**2**| F| G| H| I/J| K
**3**| L| M| N| O| P
**4**| Q| R| S... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0633d7ede215b645bc834d754358a81a2a6958b3 | df21ff970371d278473a19e851f4ab34ff15f97a | /bin/cftp | 2aad09f522365becd158b70a8772d373df34fcfd | [
"MIT"
] | permissive | harshavardhan98/news-detection | 032546bf1a13bdaa0a9bbc0c4dd8c3fc4c75d361 | 9f2039354346f71d284f36e9d4b654feac071f7e | refs/heads/master | 2022-12-17T04:27:21.677387 | 2018-08-10T17:34:12 | 2018-08-10T17:34:12 | 144,314,511 | 1 | 0 | MIT | 2022-12-08T01:00:31 | 2018-08-10T17:25:58 | Python | UTF-8 | Python | false | false | 419 | #!/home/atrophy98/Desktop/sih/Application/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==17.9.0','console_scripts','cftp'
__requires__ = 'Twisted==17.9.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"noreply@github.com"
] | noreply@github.com | |
b9bfcb28d66d01892330615f38b9420e3f501ff2 | 1e47d2fd3df5bb7958e6286fd85dd9bfc0341ac6 | /app2n9k.py | eadc9fcb73b5d91c485d4caa87e2b10783be2db6 | [
"BSD-3-Clause"
] | permissive | leeahnduk/Apps2N9k | cf463e7b6a4ecfab8e58666b827fee5646ea8e08 | 2992a4cc14ed4056e7e7fcf6565521988f0f9eea | refs/heads/master | 2023-01-22T19:29:04.753626 | 2020-11-13T00:53:35 | 2020-11-13T00:53:35 | 294,311,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,482 | py | import tetpyclient
import json
import requests.packages.urllib3
import sys
import os
import xlsxwriter
import argparse
import time
import csv
from argparse import ArgumentParser
from collections import defaultdict
from datetime import datetime
from builtins import input
from columnar import columnar
from tetpyclient ... | [
"anhdle@cisco.com"
] | anhdle@cisco.com |
031f01341b3f6a3f5d55120b736d178b2b4babe0 | 7302f7cfbbc992cdbb64548c121c9c23e326b47b | /web/migrations/0016_studyrecord.py | f5a01f20a4c6911328dc4fbd13e1d907f587ba6a | [] | no_license | kingLDY/luffy_crm | 7268e1c0164ba8a6a72eb83dc47e678d8fd7dbbc | d117b5ac6a57390300e5d6a73d7d3c01061a1b5e | refs/heads/develop | 2021-05-20T19:16:43.036840 | 2020-04-02T08:37:02 | 2020-04-02T08:37:02 | 252,387,116 | 1 | 0 | null | 2020-04-02T08:26:30 | 2020-04-02T07:37:08 | Python | UTF-8 | Python | false | false | 1,077 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-12-29 07:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0015_auto_20181227_0751'),
]
operations = [... | [
"1824243518@qq.com"
] | 1824243518@qq.com |
279fd19ae32254d0fd602d477672d39a3c43f3e1 | 2083b21877700004a65f35c20abe8f5885244207 | /regularization/orthogonal_weight.py | 9296f5a3b9b8708d811e077e627ac080fab9c703 | [
"Apache-2.0"
] | permissive | ETRI-EdgeAnalytics/AIGrandChallenge | f0f2e8b5aa3b4ae31f34f4bae01961d6fb747dca | ecd6c2c9911d195155d3cbd14017d1692593926a | refs/heads/main | 2023-03-28T19:54:28.319583 | 2021-04-01T06:42:31 | 2021-04-01T06:42:31 | 353,196,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,671 | py | import torch
from torch.optim import lr_scheduler
import copy
from torch import cuda, nn, optim
from tqdm import tqdm, trange
import numpy
from torch.nn.functional import normalize
from torch.autograd import Variable
def gram_schmidt(vectors,device):
#to make pointwise matrix independent matrix
if vectors.sha... | [
"noreply@github.com"
] | noreply@github.com |
0113a3f2a583175b56b510febee6361c7eef79c7 | a941df10f19dc6d9a07575e7fbaf8577aa35de19 | /graphic.py | 68c274291e394647053ae420cbfdee7edc0a4951 | [] | no_license | GoDDoS/DevopsTasks | a22d65918c8d936f264dc9d2f40ef2276703cb36 | b0420c681d2316d3fdb45e353b088bd040bdef50 | refs/heads/main | 2023-04-28T04:39:51.217128 | 2021-05-10T17:19:07 | 2021-05-10T17:19:07 | 365,012,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | from db import *
from tkinter import *
root = Tk()
root.title("Personal anime list")
ii = 0
gg = 0
ttl = ""
def add():
str = ('type', 'released_date', 'end_date', 'producer_name', 'rating', 'studio')
quest = ('When did you see it?', 'Rate it!', 'Type the best character')
array = {}
info_array = {}
... | [
"kuleshov.iv@phystech.edu"
] | kuleshov.iv@phystech.edu |
695cdb94db56ccb5b2689dc2825959a63ea15a94 | 0c94547925ed2f81965be5ec62711e1556ec3e33 | /main/pagecontexts/writview.py | c054786c2e1e085a1156bed0117a42e2310c4ac6 | [] | no_license | eremzeit/beatwrit | 53bc73319d32213d5e90669ad7b69268e81a36cd | 0f9bb9f5df9b15b756c140ad7b36a5c58b3faf45 | refs/heads/master | 2020-05-16T20:25:57.226715 | 2011-12-30T22:55:05 | 2011-12-30T22:55:05 | 3,077,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | from django.utils import simplejson as json
from datetime import datetime, timedelta
import re
import pdb
import math
from django.http import HttpRequest
from main.models import *
from utils import logpath
from main.fetching import *
class WritViewPageContext():
def __init__(self, request, writ):
self.wr... | [
"erem.zeit@gmail.com"
] | erem.zeit@gmail.com |
9de4abdf643e0a2a6772a2eb914b3fc2796f7194 | 3e15b40f4e28675af82d7d19aca1e5769131b3a4 | /exonic_snps.py | 55c500fd1980d7102f2be0938655079c402957f3 | [
"MIT"
] | permissive | jzfarmer/learning_python | 69fd50457e2365d39bd23f6953d3d1456ff6147d | 279fc19d4405625b49f853575252bf1dee3cbb99 | refs/heads/master | 2022-08-04T01:42:35.597663 | 2020-06-01T23:35:15 | 2020-06-01T23:35:15 | 252,600,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | #!/usr/bin/env python3
# Write a program that intersects SNPs and coding exons
# snps.txt.gz has all the 23andme snps on chrom 21
# exons.txt.gz has all the coding exons on chrom 21
# Report:
# number of SNPs
# number of genes
# number of exons
# names of genes with SNPs in them
# Given that there are about 100x more ... | [
"jessicafarmer@Jessicas-MBP.attlocal.net"
] | jessicafarmer@Jessicas-MBP.attlocal.net |
e34f54532e8403ba6405c2e1be24e8b4eb190ba3 | bcc3359817a74c97b8804d415b5b578d03ca4fc9 | /test/assets/classes/message.py | ae9a9cd7c2fcfd518fe6587ade21a5477f78edb7 | [] | no_license | pydget/pyspare | 21c7677e66987ef4625dc7a71f041beb025b0350 | 46ef0e3c4eca1ceb52a86cae3d790483d25b2906 | refs/heads/master | 2023-02-19T19:18:13.743639 | 2021-01-16T01:27:20 | 2021-01-16T01:27:20 | 288,975,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from dataclasses import dataclass
@dataclass
class Message:
__slots__ = 'origin', 'target', 'body'
def __init__(self, origin, target, body):
self.origin = origin
self.target = target
self.body = body
| [
"hoyeungw@outlook.com"
] | hoyeungw@outlook.com |
73cf1bf0cb2673991a13c5ad0255cdb583da53a6 | fd9e45ff4e0e8ea93c1204aeac6020eb82395bbe | /sel_elements/find_elements_by.py | 5ca6e054e53261a361ff556b80c2d3eaffe943b4 | [] | no_license | VishwajeetSaxena/selenium_python | e42a4c7bc971ff5380b73d617890af7de0b2a09d | 02fe6a1e3e92f1b2ccd42ae7537b898b1aa68b26 | refs/heads/master | 2022-12-06T18:42:00.444136 | 2020-08-16T15:28:17 | 2020-08-16T15:28:17 | 277,317,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | from selenium import webdriver
class Find_By_Name():
def getChromeDriver(self):
driver = webdriver.Chrome(executable_path='C:\\Users\\91897\\workspace_python\\sel_drivers\\chromedriver.exe')
return driver
def test(self):
baseUrl = 'https://learn.letskodeit.com/p/practice'
dri... | [
"asivish@gmail.com"
] | asivish@gmail.com |
64152ef3286b3b4aaf75d45d5ddad35339af9571 | 3cb89a2d4474608c5f47c4463eb8a3191774ab89 | /gensa.py | 3172fb7e7b17b44e207f4ad61280869721955943 | [] | no_license | haohaosteven/AutoRclone | 941fa08262679f9dd571197cc79b5ebcdaf119fb | ba5bafc28ed553a67d23516e965f667abdda83c1 | refs/heads/master | 2022-12-01T10:17:07.974194 | 2020-08-05T23:43:11 | 2020-08-05T23:43:11 | 284,528,513 | 0 | 0 | null | 2020-08-02T19:36:06 | 2020-08-02T19:36:05 | null | UTF-8 | Python | false | false | 16,466 | py | from __future__ import print_function
# mod by @avjun
# 所有项目邮箱都从1开始
import json,re
import sys
import errno
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from argparse im... | [
"noreply@github.com"
] | noreply@github.com |
a3522fca20b8464003183ee290a2778619feb8d8 | cb4db25a0b13f058f1a31b38d80d76a118d1e2dc | /venv/lib/python3.6/site-packages/google/cloud/pubsub_v1/subscriber/policy/thread.py | 39f161a3b93e9a362f65cc6dcd60b839cd2cad34 | [
"MIT"
] | permissive | Hackaton-Dragons/Never-Boils | 73df2b65f54a77d961ce53dea350b7d2a4261154 | 2d43e6e07fb18409d5a964f44f481d28d2352531 | refs/heads/master | 2020-03-09T20:27:54.554616 | 2018-10-08T05:52:33 | 2018-10-08T05:52:33 | 128,985,616 | 1 | 0 | MIT | 2018-04-15T13:32:45 | 2018-04-10T19:35:32 | Python | UTF-8 | Python | false | false | 12,056 | py | # Copyright 2017, Google LLC All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"contact@noahh.io"
] | contact@noahh.io |
ffe8f0bfa0cda93b62e2884a1937315803555c18 | c40d9297d54ee369afe5de5819e038386d32f5bd | /app/review_bid_list.py | 5a42529d3ffe0de2c0f2e9f7206ba26811513ace | [] | no_license | kuangwanjing/IntelligentAssignment | 47a14d5b7a8024fb8ea9f99a81e6d709aec0c886 | 06c0be177e43d240381c3c7e2254545f66b4b61c | refs/heads/master | 2020-04-10T03:03:42.743916 | 2018-12-07T16:14:53 | 2018-12-07T16:14:53 | 160,759,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | class ReviewBidList:
def __init__(self, review_size, participants = []):
self.participants = participants
self.review_size = review_size
| [
"samrappl50@gmail.com"
] | samrappl50@gmail.com |
6cb65b44504b20720b6967c08c0fb580dd2850cb | cd6a835b14596620d46236ce2ec8003b42dcd393 | /machina/apps/forum/urls.py | 588a345c6d1914ddacaafe935dbb9bae7b6ff0a3 | [] | no_license | VanHai88/covert-site | bfec3ed75a75f4a29614906d982fd565ac1e011b | 2385ebaf1ed6c0eb42027f6665f545ce60828c12 | refs/heads/master | 2023-06-08T19:43:18.339787 | 2021-06-22T09:28:00 | 2021-06-22T09:28:00 | 379,212,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """
Forum URLs
==========
This module defines URL patterns associated with the django-machina's ``forum`` application.
"""
from django.urls import path
from machina.core.loading import get_class
from machina.core.urls import URLPatternsFactory
class ForumURLPatternsFactory(URLPatternsFactory):
"""... | [
"hai.nguyen@emwealthtech.com"
] | hai.nguyen@emwealthtech.com |
39a3b88526f8165408904493963979bfd1fd988e | 9191f82029b47613133659a828834230e50e695a | /coding_problem4.5.9.py | 81c58aa4d7f03b0894d91decfef0c48adb5aa920 | [] | no_license | JCGilPose/Intro_Computing_David_Joyner | 08bb2d61c3b8c629acd1efeb9a672f63ce65078c | ef84a89b81fed6bb8af9cc94193d509b499d3582 | refs/heads/master | 2020-05-31T00:01:06.768200 | 2019-08-12T11:22:30 | 2019-08-12T11:22:30 | 190,028,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | #Recall last exercise that you wrote a function, word_lengths,
#which took in a string and returned a dictionary where each
#word of the string was mapped to an integer value of how
#long it was.
#
#This time, write a new function called length_words so that
#the returned dictionary maps an integer, the length of... | [
"noreply@github.com"
] | noreply@github.com |
c03780fcab120293920c7a174d3b1e18f90e1e0f | 3e55e0bf2b751163680b4557c614d9facd5c97c0 | /cart/views.py | 7774a2f6c65b353be32149af9b0d5d62a2f98081 | [] | no_license | jtuck15/ecommerce-mini-django-project | 8efb696d158a581d571982f523cb7cf721fee287 | 69fa59793074811e4849eb6450f155e86a8be041 | refs/heads/master | 2022-12-16T17:05:04.640977 | 2019-06-04T19:52:18 | 2019-06-04T19:52:18 | 189,295,159 | 0 | 0 | null | 2022-12-08T05:12:06 | 2019-05-29T20:43:05 | Python | UTF-8 | Python | false | false | 984 | py | from django.shortcuts import render, redirect, reverse
# Create your views here.
def view_cart(request):
"""A view that renders the cart contents page"""
return render(request, 'cart.html')
def add_to_cart(request, id):
"""Add a quantity of the specified product to the cart"""
quantity = int... | [
"jim.tuck15@gmail.com"
] | jim.tuck15@gmail.com |
4342584878b19df84503285c1ef03b3e9e403054 | 2d91300f0624f5287dea65dbedcaf2ecb1f5274b | /App/PageObject/HomePage.py | 0ddd990524f11b9febe72b6028be631e24121500 | [] | no_license | zlmone/nonoapp-android-autotest | e82faf04961c51526f4611eb3b36566d78a3031c | 10fc369d426707b85be874bb7835c17a0f222c4d | refs/heads/master | 2022-01-21T04:02:09.216843 | 2019-07-19T08:17:33 | 2019-07-19T08:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from App.Driver import Driver
import time
class HomePage:
@property
def mine_view(self):
return Driver.d(resourceId="com.nonoapp:id/tv_home_tab_title", text=u"我的")
@property
def invest_view(self):
return Driver.d(text=u"出借")
@property
def discover_view(self):
return D... | [
"suzhiyu@suzhiyu-raindeMacBook.local"
] | suzhiyu@suzhiyu-raindeMacBook.local |
f73d89394fef515dd649d7bc36678ebade8faa53 | 017b29bd393cfafc2fe398aae7754bce0182da7c | /examples/ice40hx8k-yosys/SConscript | fd9268d63da7d8ddc623c6c5cb4ad2409fb12f6e | [
"LicenseRef-scancode-bsd-3-clause-jtag"
] | permissive | chipyard/chisel-jtag | a971d50a82097c77b7cad8970a87df39efa4a86f | 9646b090c16fe26790be77135e1bc491353c9815 | refs/heads/master | 2022-04-16T03:03:00.657118 | 2020-04-14T20:26:43 | 2020-04-14T20:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | Import('env')
blif = env.Synthesize('top', ['build/Top.v', '#../../external/vsrc/AsyncResetReg.v'])
asc = env.PlaceRoute(blif, pcf='ice40hx8k-b-evn.pcf')
bits = env.BitGen(asc)
report = env.Timing(asc)
env.Default(bits, report)
env.Alias('prog', [env.BitProg('prog', bits), report])
env_sram = env.Clone()
env_sram.Ap... | [
"richard.lin@berkeley.edu"
] | richard.lin@berkeley.edu | |
5b34e7d87886c5e4e1f84382ab18bc06fd905371 | 5cb94263a7ccdc5a3f6ca18040672124c483ca12 | /backend_server/efluent_webserver/e_fluent_app/migrations/0001_initial.py | b6aac4292d59df3e823afc4b94f0b1e1fc720334 | [] | no_license | martinvol/e-fluent | e6ad8524673a746b95f9f2f20e9a46f9b1e80dd1 | 06c18b1ab853e44a7b07b4821ed966ae79d2c707 | refs/heads/master | 2020-12-07T02:32:38.605369 | 2016-06-19T00:34:29 | 2016-06-19T00:34:29 | 57,111,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-05-03 07:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Orthophon... | [
"martin.volpe@gmail.com"
] | martin.volpe@gmail.com |
a44762f7f83ec08c0a592bc170b50259d8bd49e2 | 292417a70e83d33fc4cedaed34d1b8e859ffe1a7 | /market/urls.py | 113708503a9a96ee4ed392f28d9d1321ee1c94c8 | [] | no_license | cooluks2/Niche-market-mine | c739144b61dfecd641f19bfa20439388d9dd562d | 2eacedd83ae3d1690ac56f9ae4089a44737c4771 | refs/heads/master | 2022-12-10T09:45:13.759650 | 2020-08-31T02:52:07 | 2020-08-31T02:52:07 | 289,786,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.urls import path
from market.views import StoreDV, StoreLV, StoreCreateView, StoreUpdateView, StoreDeleteView, store_download
from market.views import MarketDV, MarketCreateView, MarketUpdateView, MarketDeleteView, market_download
from mysite.views import HomeView
from market.models import Market, Location
... | [
"cooluks2@gmail.com"
] | cooluks2@gmail.com |
6caf9bad8efb32e56e0a9001ee05d706bcc31682 | a40f3574cebafaf0ae82277cf7d128aea8e340d9 | /GAN/gan.py | 19e948a8f69cc0aecbe17607b1b1ff1a63913430 | [] | no_license | ybai62868/PytorchLearning | b14f36896477baf6afb65412e14a9f8e38efb086 | 3ed4252978fedc65349eb094d85ddaf461c0bd18 | refs/heads/master | 2021-08-15T06:43:05.961680 | 2017-11-17T14:30:22 | 2017-11-17T14:30:22 | 106,394,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
torch.manual_seed(1)
np.random.seed(1)
BATCH_SIZE = 64
LR_G = 0.0001
LR_D = 0.0001
N_IDEAS = 5
ART_COMPONENTS = 15
PAINT_POINTS = np.vstack([np.linspace(-1,1,ART_COMPONENTS) for _ in range(BATCH_SIZE)])
def artists_works():
... | [
"ybai62868@gmail.com"
] | ybai62868@gmail.com |
c0da0137dc94f85eb66878eb6c898a2804ae0fd3 | 3e97ac25dc95de9136fdc28840b869aa6f95f4ed | /ProcessFluorescence/NovelRegressionDevelopment/df_on_f_novel_regression_validation_with_created_data.py | 1dab77727f0fb088e4d89fbb2c883a3032adbf1f | [] | no_license | vivian-imbriotis/AccDataTools | d0753996bfbc5ae7d8c43eb94b6fd053f6565d33 | df2b85355c2dce2b68848064e2dc57c98cc5675b | refs/heads/master | 2022-12-30T15:03:37.367395 | 2020-10-22T07:44:43 | 2020-10-22T07:44:43 | 243,228,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,622 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 1 11:12:15 2020
@author: Vivian Imbriotis
"""
from time import time
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import linregress
from scipy.ndimage.filters import minimum_filter1d, uniform_filter1d
from sklearn.linear_model import TheilSenRegress... | [
"vivian.imbriotis@gmail.com"
] | vivian.imbriotis@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.