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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54b0660369b4623c61a1343991020fb29be5e3b5 | 9b93b28428865e4d800e40ed8922b7ade5f92273 | /multiprocess_bucket.py | 2567ef2116692013eecb934024619def019a675f | [] | no_license | Minjire/s3-bucket | c7701f485bcca86366a3816427bd605c7ce03fc4 | 6bb6b02c53b85ff12f59a220d0f4050d192abfa0 | refs/heads/master | 2023-02-05T18:56:52.934855 | 2020-12-28T06:28:51 | 2020-12-28T06:28:51 | 286,675,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | import boto3
from boto3 import session
from botocore.client import Config
import multiprocessing
import logging
from pathlib import Path
ACCESS_ID = ''
ACCESS_KEY = ''
REGION = ''
URL = 'https://sfo2.digitaloceanspaces.com'
PATH = ''
PATHS = []
s3 = boto3.resource('s3', region_name=REGION, endpoint_... | [
"noreply@github.com"
] | noreply@github.com |
cb78188c2f44df68d2563faf03f37a360a8ec3db | 494955a18b5f7d25c275c4d454b4ae9c8db3976e | /Student-Information-Chatbot-System/mappings.py | 54737b424e55d4c838a9c25df4b732f68fd9c139 | [] | no_license | Prashanth8143/ChatBot | ee343b547de3da7c3a0ef34c64c9d06fa50a3f67 | 7461099763b533f87b6c85ad6464d9245c581c27 | refs/heads/main | 2023-08-10T15:44:22.845222 | 2021-09-27T07:46:50 | 2021-09-27T07:46:50 | 410,763,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
map_keys = {
'one':1,
'first':1,
'two':2,
'second':2,
'three':3,
'third':3,
'four':4,
'fourth':4,
'five':5,
'fifth':5,
'six':6,
'sixth':6,
'seven':7,
'seventh':7,
... | [
"noreply@github.com"
] | noreply@github.com |
95085f0f6148d3aeba523e3cba43e37d56a4cc60 | 908336e941d7d95d2ff168f8d132bf5656b87752 | /datasets/weibo_senti_100k/parse.py | ad104fde40447e6e0371f6df42df4903898a6e89 | [] | no_license | cyy0523xc/ChineseNlpCorpus | 364437b5662bc0a138281afc817b375c50a7fecf | a027225e9caf963d0d4e38d96b402ce515505850 | refs/heads/master | 2020-03-22T05:45:09.343135 | 2018-12-18T02:14:08 | 2018-12-18T02:14:08 | 139,587,654 | 2 | 0 | null | 2018-07-03T13:29:28 | 2018-07-03T13:29:27 | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
#
#
# Author: alex
# Created Time: 2018年07月03日 星期二 21时51分54秒
import csv
with open('./weibo_senti_100k.csv', encoding='utf8') as r, \
open('../../format_datasets/weibo_senti_100k/weibo_senti_100k_pos.txt', 'w', encoding='utf8') as pos, \
open('../../format_datasets/weibo_senti_100k/weib... | [
"cyy0523xc@gmail.com"
] | cyy0523xc@gmail.com |
8d665015be357a2f1bb710b9ce38053140191537 | a9eac49babafe2b38b331bf166b9d590dc398fa0 | /ex5.py | feda93de50f3c2f9e6b7c30a1296410d25c2371a | [] | no_license | codedsun/LearnPythonTheHardWay | 7bb07af8ae4a64d96c43c17de6040cfc31be79d7 | bba6c046b690ad2172872f64defe6cc5a5bb0ca7 | refs/heads/master | 2021-04-03T10:10:24.477405 | 2018-03-20T10:37:54 | 2018-03-20T10:37:54 | 124,868,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | my_name = 'Suneet'
my_age = 20 #this is good
my_height = '5.9' #feet
my_weight = 50
my_eyes = "Black"
my_teeth = "White"
my_hair = "White" #sounds wierd
print ("Lets talk about %s"%my_name)
print ("He's $s tall"% my_height)
print ("He's $s heavy" $ my_weight)
| [
"suneetbond91@gmail.com"
] | suneetbond91@gmail.com |
173e55ba70e34759a282ab0079f115c666248ba0 | d0cfc5e43170208ce5680a9bd6e39acfc2501470 | /networks.py | 59e1dbcac6964609cc9d946444d7346b9d139ea7 | [] | no_license | yzes/pix2pix-pytorch-master | d60a836d9a537b1d189104177a690dce2b719458 | 96f3192fe022f138de92e1cc29623cb4362c2f9a | refs/heads/master | 2022-12-19T08:59:42.464980 | 2020-09-29T08:19:55 | 2020-09-29T08:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : networks.py
# @Author: Jehovah
# @Date : 18-6-4
# @Desc :
import utils, torch, time, os, pickle
import numpy as np
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
class Generator(nn.Module):
def __init__(self, input... | [
"52454904+Ausiden@users.noreply.github.com"
] | 52454904+Ausiden@users.noreply.github.com |
7797d8e412d4ea33bba9c8cebcecd1cf9377cc15 | abb9cc66d4b86485c3e24ab75f5b04e6e052b710 | /migrations/0007_auto_20181022_1132.py | a665706863f0188f9dfe1031a55fead3c22288c7 | [] | no_license | 0-afflatus/diary | 0dab6ed1d2856d3ef79d234737a7e746bb04fa73 | 13045ecfd430c7cbbcd1f673ecbec1b98de7a7c6 | refs/heads/master | 2020-04-15T11:47:31.360212 | 2019-01-08T12:17:56 | 2019-01-08T12:17:56 | 164,644,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 2.0.5 on 2018-10-22 11:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('diary', '0006_event_percentage'),
]
operations = [
migrations.AlterField(
model_name='event',
name='end_time',
... | [
"afflatus@pathilorra.co.uk"
] | afflatus@pathilorra.co.uk |
717a8ed939260d470b84aab80fa2b1e6d9af0e94 | 69a93ce7bb58ab73d438b5aa9f218fc18b90869a | /word_count/views.py | ac7335473bd41f1850768a57c9a6b2294904cad7 | [] | no_license | wignes/word_count | b8be2447f7a583d33ebb2b3d8968187d97f745cf | 3bcf79fbc6429836c8adda97da07a82f5e2422ad | refs/heads/master | 2023-04-15T21:28:21.065677 | 2021-04-26T17:31:54 | 2021-04-26T17:31:54 | 361,839,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import operator
from django.shortcuts import render
def home_page(request):
return render(request, 'home.html', {'given_val': "Given value is empty"})
def count(request):
given_word = request.GET['fulltext']
word_count = len(given_word.split())
word_dic = {}
for word in given_word.split():
... | [
"wignes3010@gmail.com"
] | wignes3010@gmail.com |
10cd21ed4c84590a3dc0fe3c13de00f496e38eb1 | 24f9c4329537ed2278fae65125091c6179e4e12e | /commonlib/use_xml.py | 8fe3dc3ce85a4ced2746b76b62be969860cd18c7 | [
"Apache-2.0"
] | permissive | semoren/learn_python | e439b1e4f51f13bdeb112447843c9d2a8bfae10b | d3140c3d4cb2bdb674d9c072c4195ebcfe686be3 | refs/heads/master | 2020-06-16T21:05:05.321097 | 2016-12-09T06:20:35 | 2016-12-09T06:20:35 | 75,066,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from xml.parsers.expat import ParserCreate
class DefaultSaxHandle(object):
def start_element(self, name, attrs):
print('sax:start_element: %s, attrs: %s' % (name, str(attrs)))
def end_element(self, name):
print('sax:end_element: %s' % name)
... | [
"renqing50@gmail.com"
] | renqing50@gmail.com |
3a1b01762b7a75f9736a2e02d8011a390201f429 | f05a08881b606d593bb76fa725d62187fb8e6cc0 | /cache_ensembl/dump_orthology.py | c1284e4b8abd80999d38f73341bbc01cce44305f | [] | no_license | bunbun/cache-ensembl | 6cf109dd0a9f6dad15744d4583ab701f7bda5a35 | 02ce50016321fecb5f9f784c63ce4f8e5066d74b | refs/heads/master | 2021-01-23T13:58:36.493124 | 2011-12-06T21:45:04 | 2011-12-06T21:45:04 | 32,793,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,678 | py | #!/usr/bin/env python
################################################################################
#
# compara_orthology.py
#
#
# Copyright (c) 11/3/2010 Leo Goodstadt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ... | [
"bunbun68@localhost"
] | bunbun68@localhost |
81c8c3d11e4e50bdbf954eb74fa3031bec16c4e5 | 6a3ef6066d8164af34d1812e28d21096f6db94ec | /iteration3_code/Include/test.py | e140de7b1b37d28dafb16ed58227e487d567a321 | [] | no_license | doc-vu/VAML_ApplicationPerformance | 16e96d696a490a94b7664bdb6dda1c7a986f7939 | 60c90fbd44140c08d480467efa526fa6702d4900 | refs/heads/master | 2020-05-18T19:28:01.793035 | 2019-04-27T05:04:46 | 2019-04-27T05:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | from flask import Flask, render_template, request, url_for
import pandas as pd
import numpy as np
import csv
from pca_data_prepare import *
np.set_printoptions(suppress=True)
import json
app = Flask(__name__)
@app.route("/linechart", methods=['GET', 'POST'])
def linechart():
application_name = "pmd"
data = pd.... | [
"214731923@qq.com"
] | 214731923@qq.com |
2e97d884af1803b0fbf8605ab42c9398621efc5f | 360e6fa1eb84f9bdd2bc9e2d781b38abe4f269b8 | /api/account/register/forms.py | d0dabb220740e6d6494466123526c919a4acf58f | [] | no_license | RandomGuy090/taskmanager | 03b0386a8fa492766cebd3537401efac527922d4 | 25e1bf7a3ae4a75c02f576582778bb259d7d8d4a | refs/heads/master | 2023-08-27T14:26:09.897088 | 2021-10-25T09:39:35 | 2021-10-25T09:39:35 | 387,257,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | from django import forms
from django.contrib.auth import get_user_model, authenticate, login
User = get_user_model()
from taskmanager.exceptions import Unauthorized
class RegisterForm(forms.Form):
username = forms.CharField(widget=forms.TextInput())
password = forms.CharField(widget=forms.PasswordInput())
password... | [
"randomguy0090@gmail.com"
] | randomguy0090@gmail.com |
31603fd8567b2891d889818416d417116616a854 | dd592d5eafbb27c95ea0a43e5bd4abb2564597f3 | /Test1/test21.py | 3fdeb9d7f8db88b97b303816e5f580b9f6114eae | [] | no_license | FlyingZYH/PythonGame | 44f442a80f2bdb3ae7fded28bd736f206ada3096 | 5f685445feb2618709171c1c0e7d6ae211732c2c | refs/heads/master | 2020-03-18T22:57:00.796878 | 2018-05-30T06:05:05 | 2018-05-30T06:05:05 | 135,371,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,400 | py | import math
import random
random.seed(0)
def rand(a,b): #随机函数
return (b-a)*random.random()+a
def make_matrix(m,n,fill=0.0):#创建一个指定大小的矩阵
mat = []
for i in range(m):
mat.append([fill]*n)
return mat
#定义sigmoid函数和它的导数
def sigmoid(x):
return 1.0/(1.0+ma... | [
"朱远宏@MSI"
] | 朱远宏@MSI |
1c941a7cc78d3c56ee8329aa53d4b3d4c645405a | a386d0ac7524cc7f0222b4c9861db0cc6cfa1e76 | /multichat/multichat/urls.py | 01bc02eaff0925dc1c74d5ff4a1c1431ae4a1742 | [] | no_license | jorgeOmurillo/sockets | aba8e8c42977a6adf285cbefe9a0866f00d5ba0d | 230cb3d0c8fa83e72b1f0b940a1d7fadd5c14033 | refs/heads/master | 2021-01-01T11:56:36.989225 | 2017-07-26T12:31:33 | 2017-07-26T12:31:33 | 97,573,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | """multichat 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-... | [
"jorge@debian"
] | jorge@debian |
34019fe74d66ee473c9f78d9730d9b933cee8973 | 4007a7626ccb18480e73ac304b0010f6aeba33fb | /proj_preproc/db.py | cb9defbbd56297c1bca17df0cef2ee205afdb103 | [] | no_license | olmozavala/air_pollution_forecast | 68030748b975d463158f1ce7c7f16eb038493ced | 5b543b3f4a190d7ae33a55c4f5b30f56b17347c3 | refs/heads/master | 2023-07-22T15:16:31.166036 | 2023-06-08T18:55:14 | 2023-06-08T18:55:14 | 226,166,662 | 0 | 0 | null | 2023-02-16T18:40:24 | 2019-12-05T18:41:50 | Python | UTF-8 | Python | false | false | 129 | py | def eliminateNonContinuousTimes(data, numhours):
"""It eliminates those 'rows' that do not contain 'numhours' continuously""" | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
20fc2a3aa614e91ca3694826f465f2758e097e13 | c2a172307057164a835c66b1f308c45f7f8b9ebb | /partII/deliverable/scripts/col18-2count.py | b0ec37e60b1e06586876ffbca16f05fe8cddd68a | [] | no_license | jacketsu/NYPD-Crime | f219738e55d72fe87fc274343eb9c9e155b91dbe | 1cf8429f7d4ac0798324c892679ad333ce261ed4 | refs/heads/master | 2021-08-31T15:56:39.544216 | 2017-12-22T00:15:23 | 2017-12-22T00:15:23 | 116,798,746 | 12 | 0 | null | 2018-01-09T10:01:12 | 2018-01-09T10:01:10 | null | UTF-8 | Python | false | false | 2,396 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys, os
from pyspark import SparkContext
from pyspark.sql import SQLContext
from pyspark.sql.types import *
from pyspark.sql.functions import col, when, udf
from pyspark.sql.types import BooleanType
from pyspark.sql import Row
f... | [
"cjesse1992@mail.com"
] | cjesse1992@mail.com |
d333612c150be3302596df477a7fc3ed0c5f4b67 | a257bdea8b88202b31cd47ffb2844e9dc2b1c85c | /alert_updater.py | a12c1eb51bfdddf299d3799e371ba1216900e88a | [] | no_license | Arjun-B-J/Online_Price_Alert_app | 68fcb07e2e14bc7cb1bbb065c237e093a1d07de6 | a068aaac5d3a481c65cc9b5dd23520ec7c574670 | refs/heads/master | 2022-08-21T23:41:29.037668 | 2020-05-23T15:29:38 | 2020-05-23T15:29:38 | 258,994,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from models.alert import Alert
alerts = Alert.all()
for alert in alerts:
alert.load_item_price()
alert.notify_if_price_reached()
if not alerts:
print("No alerts have been created. Add an item and an alert to begin!") | [
"arjunbj@pop-os.localdomain"
] | arjunbj@pop-os.localdomain |
4d30a6fa3c0528577067282f97ba50d1b195c27c | b593e559732821e85ac28fdbf218469b1793d697 | /app/models/__init__.py | ca2d74b1a2d738ea77b4f831b81daa3ee352be79 | [] | no_license | CarlosMartorini/api-rest-fast-food | 3d27945acad80fa4c5e8fa1f7419c8cdc31654e8 | d267a6df8aa391356da870925b5f62e41b58b331 | refs/heads/master | 2023-08-11T00:48:26.076971 | 2021-09-20T21:48:26 | 2021-09-20T21:48:26 | 407,607,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from . import populate_table_model
populate_table_model.create_table()
populate_table_model.populate_table() | [
"c7.silveira@gmail.com"
] | c7.silveira@gmail.com |
d3e12ca839e75d001c22c25c2e6863ed1e501be6 | c22820b9624bd19d2bfbabf731a9dbfb17d4e5e0 | /guessinggame.py | 2a2043e5c2cfb71b203fc7ec5eb3ea764c32520e | [] | no_license | faithbuford/all-my-files | 1873f29afb09a51a716639582e7781429d52ac36 | e0119537967c9da5e207d9dd72598be223b5b934 | refs/heads/master | 2020-08-27T10:13:14.949361 | 2019-10-24T15:56:13 | 2019-10-24T15:56:13 | 217,329,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import random
mysteryNum = random.randint(1, 100)
score = 0
while True:
guess = int(input("Pick a number between 1 and 100: "))
score = score + 1
if guess == mysteryNum:
print("good guess, you win")
break
elif guess > mysteryNum:
print("Too high, try again")
else:
print("too low, try... | [
"noreply@github.com"
] | noreply@github.com |
61964e035530cecf47e0e989c18b99267fbdf452 | a4842120ab3494f6e0ccf7e412f810df40938a93 | /blog/migrations/0001_initial.py | 9b61d34810d8056881fb2e394436816ff1c9bb94 | [] | no_license | noob261/Blog | c8025819d9eaf94802d51da1640607176865b5aa | 174b11b6bd1a942612190498d74c3b63530003a7 | refs/heads/master | 2023-03-07T08:45:45.165464 | 2021-02-17T08:15:46 | 2021-02-17T08:15:46 | 339,649,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | # Generated by Django 3.1.6 on 2021-02-16 18:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"2740772761@qq.com"
] | 2740772761@qq.com |
5bc363daf36b7861426faf8ca0f96fb85bcaa62c | 136b7e39a0f6269691710b05065ff84f2c63d87e | /dnd_machine/shell_scripts/tiefling_db.py | 397493a23e9a066a86b1c82b7776b5f46fe0bc1a | [] | no_license | JustinHeidema/dnd_machine | 988a31757fa3b5262cc215be68154f1ca65a7360 | d5da41d70a39ba8708735dffdb2009d22d5b811b | refs/heads/master | 2022-12-13T21:36:48.505669 | 2018-01-05T23:21:14 | 2018-01-05T23:21:14 | 115,017,831 | 0 | 1 | null | 2022-11-28T20:42:23 | 2017-12-21T15:03:43 | JavaScript | UTF-8 | Python | false | false | 2,049 | py | from character_builder.models import Race, RaceTrait, Language
from character_builder.serializers import RaceSerializer, RaceTraitSerializer
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
tiefling = Race.objects.create(race_name='Tiefling',
... | [
"jrheidema@gmail.com"
] | jrheidema@gmail.com |
12f19a36a5f494443c16decf84b5d836dbc6dd08 | 71bccd94849abe90d003b36cd32807f405ebfc54 | /day03/data.py | 28829045d7ad061daf69667d45fea83d564d32ee | [] | no_license | kezhangziyou/Python-study | 2e25b832abb353aa54def6f57fffaad6554fc4f4 | 341915a7208036c83f9019787a25c8c253243e68 | refs/heads/master | 2020-08-27T22:15:16.084826 | 2019-10-28T05:43:08 | 2019-10-28T05:43:08 | 217,502,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,994 | py | # 一 ,变量
"""
变量在使用谦都必须赋值,赋值才会被创建,不需要声明
不同类型数值可以随便赋值
java 是动态语言,赋值确定类型,python是动态语言
用全部是大写的变量名表示常量.
"""
name = "zhangke"
# 二 ,数据类型
"""
Python3 中有六个标准的数据类型:Number(数字)、String(字符串)、
List(列表)、Tuple(元组)、Sets(集合)、Dictionary(字典)。
Python3 的六个标准数据类型中:
不可变数据(3 个):Number(数字)、String(字符串)、Tuple(元组);
可变数据(3 个): List(列表)、Diction... | [
"zhangke306shdx@163.com"
] | zhangke306shdx@163.com |
f0d08498b71dff3d22c4c9ba80d85b77e29e3bff | a812cc02aae5fcc1ced41a90f5f5224cd5e6f193 | /SMDB/smdb/models.py | d88212a1b57352def4728636406de17f5fb5b387 | [] | no_license | pgaspar/Social-Movie-Database | 4ae48af923b973c6cc94aabb609902951e465917 | 39419092cd921d69a06181ac52dc75f99c0c36fe | refs/heads/master | 2021-01-20T02:01:36.750067 | 2011-01-18T18:51:16 | 2011-01-18T18:51:16 | 1,114,952 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.db import models
from django.contrib.auth.models import User
from smdb.semantic_models import SMDBUser
from rdflib import Literal, URIRef
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
_uri = models.CharField("URI", max_length=200)
def __unicode__(self):
return u"%s's... | [
"pedro.gaxpar@gmail.com"
] | pedro.gaxpar@gmail.com |
09572d51a9baebb119cc93587532859f3a45d8fb | 30a34b3503decf1b4516039df3106cd152631819 | /4AL17IS006_VISHAK_AMIN/25May20/1.py | b6594db024945f9e47661e5fab76b0d0d9017085 | [] | no_license | alvas-education-foundation/ISE_3rd_Year_Coding_challenge | 8ddb6c325bf6ab63e2f73d16573fa0b6e2484136 | b4074cab4a47aad07ed0fa426eacccbfafdef7f8 | refs/heads/master | 2022-11-23T20:52:19.204693 | 2020-07-23T11:28:15 | 2020-07-23T11:28:15 | 265,195,514 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #Codevita Coin Distribution Problem
#
value = int(input())
five = int((value - 4)/5)
if(value-five*5)%2:
one = 2
else:
one = 1
two = int((value - 5*five-1*one)/2)
sum = one + two +five
print(sum,five,two,one) | [
"aminvishak@gmail.com"
] | aminvishak@gmail.com |
983525aeb3a369cf1bd12f914b3440516b86d99a | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/0670.0_Maximum_Swap.py | 33229f1e40f8b51a167f593d9fa16ce58ddebd89 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | '''
执行用时:36 ms, 在所有 Python3 提交中击败了68.71% 的用户
内存消耗:14.9 MB, 在所有 Python3 提交中击败了49.11% 的用户
通过测试用例:111 / 111
'''
class Solution:
def maximumSwap(self, num: int) -> int:
digits = list(str(num))
s_digits = sorted(digits, reverse=True)
if digits == s_digits:
return num
def max... | [
"838255715@qq.com"
] | 838255715@qq.com |
f3ead3c08207f5c723c776c4b530e82595d97891 | 0a84236c084e96a95ed99a67b8f20505931232b3 | /youdao_spider/settings.py | 1150c06782e62e57239dedf3f31b41c9feed1cd0 | [] | no_license | hl1227/spider_youdao | 8d29b2beab2cdde4086e79f4800b1f6016b52b8b | c12df7699df69f6d706d6c530eca896fdc1c563d | refs/heads/master | 2023-04-02T22:47:40.858990 | 2021-04-02T02:35:01 | 2021-04-02T02:35:01 | 353,875,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | # Scrapy settings for youdao_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-midd... | [
"spider@example.com"
] | spider@example.com |
ed82d43819a50cc8adfb850789934e1c87866bb5 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqrt/trend_poly/cycle_0/ar_12/test_artificial_128_sqrt_poly_0_12_100.py | d9d41e9db30a39012110217754bd29484e6124f5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 0, transform = "sqrt", sigma = 0.0, exog_count = 100, ar_order = 12);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a09eae147b7a64aca6fda1554bf806f38342edc4 | ead4f93f1188adbef0bd5dd015a524256b21e219 | /API/inventory/forms.py | 792c7836c322b41e1b8ce80794ae1f1274e98f07 | [] | no_license | 65LimesAH/HalalCuts-API | 9333cd22c3f38199686f2368527da744dcaa6551 | 8f1dd573b031bfae847d036f2ea3ef7c12472b2a | refs/heads/master | 2023-01-05T16:37:14.826561 | 2020-10-17T23:37:18 | 2020-10-17T23:37:18 | 304,987,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from django import forms
from .models import Menu
class MenuItemForm(forms.ModelForm):
class Meta:
model = Menu
fields = [
'hidden',
'name',
'alternateName',
'code',
'sku',
'price',
'unitName',
'cost',... | [
"Andrew.Heldt@65limes.com"
] | Andrew.Heldt@65limes.com |
e4b9ae8070fb64421cd1a17b81be4ca33bd507bd | b3b066a566618f49ae83c81e963543a9b956a00a | /Intermediate Data Visualization with Seaborn/04_Creating Plots on Data Aware Grids/04_Building a PairGrid.py | 9a654d32b4feb9d7dc4923d50e47cef330e416b7 | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,354 | py | """
Building a PairGrid
When exploring a dataset, one of the earliest tasks is exploring the relationship between pairs of variables. This step is normally a precursor to additional investigation.
Seaborn supports this pair-wise analysis using the PairGrid. In this exercise, we will look at the Car Insurance Premium d... | [
"Your-Email"
] | Your-Email |
bdce9ca6acb87cf1e40299efade42b89dec4c38a | 9de27e623c85b0d55da4afe4d843fe321b77954d | /Configuration/Geometry/python/GeometryDD4hepExtended2026D76_cff.py | 1905e4de5a22bdb37bd5f0728b7fe57a842f0dc7 | [
"Apache-2.0"
] | permissive | PFCal-dev/cmssw | a97d566d691bc5ac900e48c632f4e87a005f94a2 | 232187f0f8a201210426312b27a1b62e55b6084c | refs/heads/hgc-tpg-devel-CMSSW_12_0_0_pre3 | 2022-06-01T08:27:39.166655 | 2021-11-23T15:28:18 | 2021-11-23T15:28:18 | 14,498,276 | 4 | 7 | Apache-2.0 | 2022-02-08T11:01:38 | 2013-11-18T16:34:32 | C++ | UTF-8 | Python | false | false | 924 | py | import FWCore.ParameterSet.Config as cms
# This config was generated automatically using generate2026Geometry.py
# If you notice a mistake, please update the generating script, not just this config
from Configuration.Geometry.GeometryDD4hep_cff import *
DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("Geometry... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
d1059b3e7acad5c413ee529d9f6dcd5d530089a0 | b2135e3fc77666f043f0fbafd0d88ed9865d5b4f | /7183 Python Basics/05 Chapter 1.5 - About Lists/01 List basics/78629_06_code.py | 6793446fdad2714f94b65334724482bacae4071d | [] | no_license | Felienne/spea | 164d05e9fbba82c7b7df8d00295f7157054f9248 | ecb06c66aaf6a2dced3f141ca415be9efb7dbff5 | refs/heads/master | 2020-03-17T17:35:27.302219 | 2018-05-17T10:14:49 | 2018-05-17T10:14:49 | 133,794,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # What is the length of an empty list?
nothing = []
length = len(nothing)
assertEqual(length, __) | [
"felienne@gmail.com"
] | felienne@gmail.com |
41fcaac041d3a6ffed68e1249826d29ae5121a5d | 54f072c42ab7d93b29c2b40d2d1a922b4df54390 | /brew_journal/authentication/models.py | e484b4449d680e2d66d67f0d0df45ecabce50bfc | [
"Apache-2.0"
] | permissive | moonboy13/brew-journal | 111a2cccbc53f5c3ce41c60ca7f454c1ef97d3e3 | 6d0a31f021755425d420394d84aa7250f86f5ebe | refs/heads/master | 2023-02-19T15:29:32.014798 | 2022-03-25T00:06:44 | 2022-03-25T00:06:44 | 51,627,663 | 0 | 0 | Apache-2.0 | 2023-02-08T00:43:05 | 2016-02-13T01:53:24 | JavaScript | UTF-8 | Python | false | false | 1,636 | py | from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.db import models
# Create your models here.
class AccountManager(BaseUserManager):
"""Manager class for handling interactions with the Account model"""
def create_user(self, username, password=None, **kwargs):
if not username:... | [
"conlonkyle@gmail.com"
] | conlonkyle@gmail.com |
b0f9b6b001cd1ae84ad5d4eaeb9896f41feb9f81 | d8a714be08dab3ed0448341985b52cebaa9a9625 | /train/train.py | 5289b671842b695ff6af4e7abf866aeb8c10c447 | [] | no_license | otichibueze/SageMaker_PyTorch | e3fdc521c85dd927fe6b93298073283894e358ef | 9ee1c8f5bc89b3155da632e66bfc74d4d9bc4dbe | refs/heads/master | 2022-11-29T23:34:07.367945 | 2020-08-14T00:01:24 | 2020-08-14T00:01:24 | 287,403,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,407 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import torch
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
def model_fn(model_dir):
"""Load the PyTorch model from the `model_dir` directory."""
print("Loading ... | [
"otichibueze@gmail.com"
] | otichibueze@gmail.com |
649d76925e81b3a260732ead9f7c2f79e696308d | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/api/ddboost_storage_units_api.py | 9c5ab1a86a2c4d83f0fe5eb6e1108b8fe66de0c0 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,436 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolu... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
bc47d286fda4479958fbd49dd8f596957c627662 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/scoutevent/resultanim.py | e2efa0cc4796d7c81b9432230cea05603a9db449 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,483 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.util.cabareterror import CabaretError
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.app.cabaret.views.application.scoutevent.base import ScoutHandler
import urllib
... | [
"shangye@mail.com"
] | shangye@mail.com |
0566b1988b7ad3de1036a4e79ec4999bc4696341 | 149c303569ecc2a1c4a4107e24d2b4bc50e88952 | /twenty.py | 7b082bd3e792bd6041c17ba160e9958aa1dc45c6 | [
"MIT"
] | permissive | wogsland/think-python | 8ed86ab96a36f5b766c17dff3fdff868f5f8a188 | a192676c8c5e5d1d96950418facf6cf132b433b5 | refs/heads/master | 2020-05-23T09:28:07.661953 | 2017-03-17T16:49:16 | 2017-03-17T16:49:16 | 84,760,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | moby = open('words.txt')
for line in moby:
word = line.strip()
if len(word) >= 20:
print word
| [
"bradley@wogsland.org"
] | bradley@wogsland.org |
6e6f3dccdbcc5e1215398c4c2605d64ab759adb7 | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /python/decorator/12.py | 88fcefe3e80c692e7cf23963349684364a407982 | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 395 | py | #coding=utf-8
# -*- coding=utf-8 -*-
from functools import wraps
def my_decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
'''decorator'''
print('Calling decorated function...')
return func(*args, **kwargs)
return wrapper
@my_decorator
def example():
"""Docstring"""
... | [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
c257cf6d72eb6e72a9dda74373bd50cd90131f5e | 15e4e8909d22ecfcf60d2dab03137c3f8672dd5c | /ex28.py | 5a038f8dc0623981f6321063e62b1d7aa193a9eb | [] | no_license | RimikaM/python-practice | 08b578b4eeec786b4d71d0db6e152fec69e09b94 | a5cbb6c32b31172d1076aec7a0b14c699d0e8da9 | refs/heads/master | 2021-09-01T08:12:34.153218 | 2017-12-25T23:59:11 | 2017-12-25T23:59:11 | 111,735,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 1 00:14:42 2017
@author: rimikamajumdar
"""
# Exercise 28: Boolean Practice
# remember: any 'and' expression that has a False is immediately False!
print("1", True and True) #True
print("2", False and True) #False
print("3", 1 == 1 and 2 == 1) #True and False -> False
... | [
"rimikamaju@gmail.com"
] | rimikamaju@gmail.com |
d319a777775a0ffe11718c976c9346769e3aa48d | 528045c017eb0374042392fb8b97937e9d374f9a | /electrum_sum/gui/qt/console.py | f1763282e11149a5b8d65e6920024f506830658e | [
"MIT"
] | permissive | sumcoinlabs/electrum-sum | 44211905157cf71ce1bd32c9a8d5b4e5cb096579 | 96589ca2cdc2b570da07fc135232b6809b89a3f1 | refs/heads/master | 2023-01-19T00:04:30.740271 | 2020-11-22T19:57:15 | 2020-11-22T19:57:15 | 226,197,023 | 3 | 3 | MIT | 2020-09-21T03:00:03 | 2019-12-05T22:05:29 | Python | UTF-8 | Python | false | false | 11,822 | py |
# source: http://stackoverflow.com/questions/2758159/how-to-embed-a-python-interpreter-in-a-pyqt-widget
import sys
import os
import re
import traceback
from PyQt5 import QtCore
from PyQt5 import QtGui
from PyQt5 import QtWidgets
from electrum_sum import util
from electrum_sum.i18n import _
from .util import MONOSP... | [
"kristian@beyonddata.llc"
] | kristian@beyonddata.llc |
ade10f3b6717fd934044a0c9eb6b07cb95b52817 | 8a2469c011133a71b19026dcd065ca2df13bea5c | /code/utils/make_smooth_graphs.py | 35e0d9f6672c51695d44dc6ab13b74cec2da6184 | [] | no_license | pigriver123/project-theta | 41a08b84123e412d31c8348fd632c4924e6e21a5 | 35d2758aad54a14fc437c9eb77cf4c50da27e9c9 | refs/heads/master | 2021-01-14T08:46:54.011978 | 2015-12-02T00:00:25 | 2015-12-02T00:00:25 | 47,159,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | #import numpy as np
import matplotlib.pyplot as plt
import nibabel as nib
import smooth_gaussian
#possibly put in os function to specify path later
#this file was more of a test, but since can easily adapt it into a more useful
#script i left it in utils
img = nib.load("../../data/ds005/sub001/BOLD/task001_run001/b... | [
"brianqiu2000@gmail.com"
] | brianqiu2000@gmail.com |
1d7a8eece1e29b7452c9e39513c25e6cffdabbf2 | fb97539728891fa10c6546f2c6c1b6b9beafa62f | /logger.py | 676de8a8b4f4613bd2596c4a626a58a0bf0a9250 | [
"MIT"
] | permissive | sile16/swarm | f905da838a0532202be3ee6c7dfa88ba1ecbc431 | 4c7f7b33b189d520ced5f25164909dff74bd8785 | refs/heads/master | 2016-08-09T07:14:02.304963 | 2016-04-07T17:04:08 | 2016-04-07T17:04:08 | 55,651,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,054 | py | import zmq
import sys
import common
import time
import argparse
import json
import datetime
import curses
stdscr = None
class JobLogger():
def __init__(self,args):
#Get client IP
logger_ip_port = "{}:{}".format(common.get_client_ip(args.server), common.logging_port)
#Setup logging Port
... | [
"roberm3@usxxroberm3m3.corp.emc.com"
] | roberm3@usxxroberm3m3.corp.emc.com |
c45d32151f0d66c973fb5bacb9a5461f3ec29116 | e72f7ea804658d52f85df39852e02429340bdff1 | /BalloonPrediction/Processing_WKT.py | 6b5046e88c5519e62173d743fbbbb6e31988a13d | [
"MIT"
] | permissive | UMDBPP/BalloonPrediction | 986cda80e8e2577deff0acb9419b352547336288 | 975517301c9692b8bd4607fbf6435a75f7b78846 | refs/heads/master | 2018-12-18T23:57:24.223335 | 2018-09-15T02:45:30 | 2018-09-15T02:45:30 | 118,663,238 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | """
Created on May 21, 2018
@author: Zach
"""
from BalloonPrediction import CUSFPredictionAPI
def json_to_csv_line(query_json, launch_location_name, predict_id):
query_prediction = query_json['prediction']
print(f'Using dataset {query_json["request"]["dataset"].replace("-", "").replace(":", "")[0:13]}')
... | [
"zrb@umd.edu"
] | zrb@umd.edu |
0fd43a2c2cdcb3f73eb8f6335dc0f94817910e1f | 7febd7836c9336de22aaf984ab8bca8755be3c99 | /Rodis Rosado Dictionary world map.py | 337c451cd5182228dba3fd9e907bea776b6719d6 | [] | no_license | Mouse10/CSE | 0d1ec4c3409841ea8ec6e9fe0705ea6f26675e7d | 9f2b7f00285ad09620f515014964a0da2f6e606a | refs/heads/master | 2020-04-02T07:51:01.200083 | 2019-05-21T20:20:35 | 2019-05-21T20:20:35 | 154,217,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | world_map = {
"R19A": {
"NAME": "Mr. Wibe's room",
"DESCRIPTION": "This is the room that you are in.",
"PATHS": {
"NORTH": "PARKING_LOT"
}
},
"PARKING_LOT": {
"NAME": "A Parking lot",
"DESCRIPTION": "There are a few cars parked here.",
"PAT... | [
"44381333+Mouse10@users.noreply.github.com"
] | 44381333+Mouse10@users.noreply.github.com |
03b61e4f9d40fb2fc54015b86d22a76cbb0dc213 | 00eb6e6245072243b65c13967d54f986beb084ad | /template.cgi | d592b12c3f2d69f70c63c8a23d2b2732c2d0a05f | [] | no_license | mesodiar/web-infor | 3af06a17753e4dbc8b89ff7e252f53728eb41dfe | 0e869128dffe6fb19142face67797069a6135875 | refs/heads/master | 2020-05-21T05:57:20.200993 | 2017-05-26T03:23:19 | 2017-05-26T03:23:19 | 84,582,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | cgi | #!/usr/local/bin/python3
import cgi
def htmlTop():
print("""Content-type:text/html\n\n
<!DOCTYPE html>
<html lang="en">
<head>
<meta chardet="utf-8"/>
<title> My server-side template </title>
</head>
<bo... | [
"mils@prontomarketing.com"
] | mils@prontomarketing.com |
3bb2bda63bb05e17d287b72bc50bda27aba736b4 | 18fe3f034f203bc8a22d08f15b29297ebcc7dfaf | /py/qlazypy/lib/densop_mcx.py | e7a3b8c9e9d186908e9c3aa923a516079358fdfc | [
"Apache-2.0"
] | permissive | katou-boop/qlazy | b8802c48b0cba0ba89cc1e1a69f551e0f4fdcc73 | 6b62fff65939a589603af7ed8be921c9f1669bb3 | refs/heads/master | 2023-02-17T12:30:05.419650 | 2021-01-17T23:20:20 | 2021-01-17T23:20:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # -*- coding: utf-8 -*-
from qlazypy.error import *
from qlazypy.config import *
from qlazypy.util import *
# multi-controlled X gate
def __gray_code(de, n):
for k in range(2**n):
yield k^(k>>1)
def densop_mcx(de,qid=[]):
# controled and target register
qid_ctr = qid[:-1]
qid_tar = qid[-1]
... | [
"saminriver33@gmail.com"
] | saminriver33@gmail.com |
8e578b5c5e911fbe8995ba795536316e66e5a61b | 0ee72dc1b03070e25d3036bf6b562fc9b809ee72 | /freeze/__init__.py | 18f5610c310bc0963162bfdbec6dfe13797a4bdd | [
"MIT"
] | permissive | fabiocaccamo/django-freeze | d36a9c7a9e197b23fa63dc77f0901aba89e4dfaf | c2d5dfbf38b072d79e1a37489b07e91c8af9461c | refs/heads/main | 2023-08-29T12:50:19.069297 | 2023-07-18T07:35:52 | 2023-07-18T07:35:52 | 44,330,200 | 91 | 19 | MIT | 2023-09-08T13:52:25 | 2015-10-15T16:20:55 | Python | UTF-8 | Python | false | false | 269 | py | from freeze.metadata import (
__author__,
__copyright__,
__description__,
__license__,
__title__,
__version__,
)
__all__ = [
"__author__",
"__copyright__",
"__description__",
"__license__",
"__title__",
"__version__",
]
| [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
7d3349c97fd726093461d218e60254f5301ebfd8 | 37bbe6a81b2d565c311ed79b37bea95bf7f6cc66 | /summarization/transmission/extract_transmission.py | 7653c82780e4be1595d9bb60dca01d9a9a2b2c99 | [] | no_license | krudra/epidemic_classification_summarization_2019 | 7a52bdbd66ffce0035699450ca2868040a5ab0e4 | 12b472670a7f7598c0845bb10f9a65c64f13724d | refs/heads/master | 2020-09-20T15:27:43.811963 | 2019-11-27T21:50:06 | 2019-11-27T21:50:06 | 224,518,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,577 | py | # - *- coding: utf- 8 - *-
#!/usr/bin/python2
import sys
import os
import random
import json
import re
import codecs
import string
import networkx as nx
from operator import itemgetter
from happyfuntokenizing import *
from nltk.corpus import stopwords
from textblob import *
from nltk.stem.wordnet import WordNetLemmat... | [
"krudra@pc154.l3s.uni-hannover.de"
] | krudra@pc154.l3s.uni-hannover.de |
b50f4ee6dab81a831281eb7ccf32eedfbf3b617d | 6f44147e71372fea868867aad78fd4ef82d4d570 | /apriori LW/final_end.py | cc9ae69e7b2569292cd4070929de8d6a18abfd0a | [] | no_license | pratyayroy/Ranking-of-Association-Rule-towards-Smart-Decision-for-Smart-City | b224a39c38d46fe747070fad058c7805218b2f2b | f09bc1b18225eec555d4afa0def6202a6cec25d4 | refs/heads/master | 2021-01-22T16:09:39.302250 | 2017-09-05T09:47:42 | 2017-09-05T09:47:42 | 102,389,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,513 | py | import csv
__author__ = "Pratyay Roy"
__copyright__ = "© 2016, Project Nightjar"
__credits__ = "Subrata Datta, Pratyay Roy"
__maintainer__ = "Pratyay Roy"
__email__ = "pratyayroy@outlook.com"
__status__ = "N-item minimum confidence"
import csv
import itertools
import time
start_time = time.time()
f = open('extend_1... | [
"pratyayy@gmail.com"
] | pratyayy@gmail.com |
3c5b293c6d389c7c7dc932dead2e0c0535d49fc5 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/formatters/__init__.py | 95539a9befb1c59e1830abe651b2f06f1e199360 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 776 | py | # 2015.11.10 21:29:02 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/formatters/__init__.py
import BigWorld
from gui.shared.formatters import icons
from gui.shared.formatters import text_styles
from gui.shared.formatters import time_formatters
__all__ = ('icons', 'text_styles', 'time_formatt... | [
"info@webium.sk"
] | info@webium.sk |
06734f6661cb4bef83281eb50aca4bb20859409c | f0f223b93d43f96c57dc13c8509953e0869a96f4 | /web/tasks.py | c56d86c2dfc03949884d90293cdaa66da14ba10f | [] | no_license | xuebajunzhu/wechatdjangoproject | 26fd2e487216460a0f0f314b8d3af2011cc50374 | cc615a6e3f439ab0224b290bb9c1e4737406ea19 | refs/heads/master | 2021-01-02T13:41:16.784797 | 2020-02-13T07:14:09 | 2020-02-13T07:14:09 | 239,639,021 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,000 | py | # -*- coding:utf-8 -*-
# Author:cqk
# Data:2020/2/12 10:12
import uuid
import datetime
import itertools
from celery import shared_task
from sale import models
from utils.encrypt import md5
@shared_task
def to_preview_status_task(auction_id):
print("预展开始了")
models.SaleCategory.objects.filter(id=auction_id).up... | [
"52723852+xuebajunzhu@users.noreply.github.com"
] | 52723852+xuebajunzhu@users.noreply.github.com |
48f211c64c9cd052f15ed656c0ea4ff5a1a3171e | 271fc3a3425b5b72a14007aec4b05167bb24a611 | /python/llt/demo_board_examples/ltm90xx/ltm9010/ltm9010_14_dc1751a_b.py | 24039cc58c97c865b453c0a05537bb67a5599cb0 | [] | no_license | LinearTechnology/linear_lab_tools | 584b5750ea5f3a40d8afaf519db227a361eae476 | be580699aea03d6941b1c616e602eef77e4734a9 | refs/heads/master | 2021-01-25T06:45:54.486604 | 2017-08-22T21:19:20 | 2017-08-22T21:19:20 | 91,368,960 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2016, Linear Technology Corp.(LTC)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the... | [
"jsorensen@2d5ccaef-af5a-4037-8d26-727f02bf293a"
] | jsorensen@2d5ccaef-af5a-4037-8d26-727f02bf293a |
1f9b109192968687be953ae31ed89405140c4775 | 4a63e96d7015e3e13d9b5204fc0261c05f600d3b | /Standard Library/tempfile/app.py | 7fc029dac7ed9b6e14fd7f28165dcf25da70c0c0 | [
"Apache-2.0"
] | permissive | shubhamnag14/Python-Documents | 0e38f58298d35b4df5b61adb361d720337148a00 | d3fee0ad90232b413f6ac1b562588fb255b79e42 | refs/heads/master | 2023-06-08T23:51:26.089840 | 2021-06-20T15:07:44 | 2021-06-20T15:07:44 | 380,832,776 | 0 | 0 | Apache-2.0 | 2021-06-27T20:33:08 | 2021-06-27T20:31:41 | null | UTF-8 | Python | false | false | 320 | py | import tempfile
def one():
file = tempfile.mkstemp()
with open(file[1], 'w+') as f:
f.write("This is a test")
f.seek(0)
print(f.read())
print(tempfile.gettempdir())
print(tempfile.gettempdirb())
print(tempfile.gettempprefix())
print(tempfile.gettempprefixb())
print(tempfile.tempdir)
| [
"subhadeep@klizos.com"
] | subhadeep@klizos.com |
ccbfa8469210227d79a0ac4f59f6d865fc4ffd76 | edc272ef8ea976676ffa5da438bf83c25b3e04a3 | /assignment3/MyTest.py | 416aa65030ff247256d6d810ec4c3ce1c008740c | [] | no_license | songb/reinforcement | 527ba3c153f16921fc0c4dc6fb7f4b3c8b70573d | 82a83352eeafffdb9c3b5be04422219ebac46eba | refs/heads/master | 2023-04-10T16:20:28.886005 | 2019-09-15T20:36:11 | 2019-09-15T20:36:11 | 192,816,672 | 0 | 0 | null | 2023-03-24T22:32:47 | 2019-06-19T23:22:21 | Python | UTF-8 | Python | false | false | 308 | py | import tensorflow as tf
X = tf.Variable(initial_value=10.0, trainable=True)
loss = 2*X*X - 5*X + 4
op = tf.train.AdamOptimizer(0.03).minimize(loss)
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
for i in range(2000):
sess.run(op)
print(sess.run([X, loss]))
| [
"admin@lm-38.tajen.edu.tw"
] | admin@lm-38.tajen.edu.tw |
a104479a871826d28058785a7b500aeaa1742a25 | 773009e5de8a6cabdad032e975bd22dddecdc6c1 | /tools/recognize.py | db7a7100c94ae6afadcd0d63e19eace3db4b0007 | [] | no_license | burmisha/latex | e108430dbc179c1c6e4975b07b0e5549091dc9eb | 7602037419741513929df00370821203e7ee872b | refs/heads/master | 2023-08-03T08:32:12.800674 | 2023-05-09T10:40:32 | 2023-05-09T10:40:32 | 6,659,113 | 3 | 0 | null | 2023-07-20T11:55:59 | 2012-11-12T19:27:46 | TeX | UTF-8 | Python | false | false | 1,008 | py | from tools.books import get_all_books
from library.structure.page import PagesRange
from library.normalize import format_plain_text
from library.util import fn_filter
import library.process
import os
import logging
log = logging.getLogger(__name__)
def runRecognize(args):
indices = []
for str_page_range i... | [
"burmisha@gmail.com"
] | burmisha@gmail.com |
2da085a7d514ecdf39bd1fbbb336b52f04a83977 | e5cd9c925a2e16c10fec32df21058bc59cc36cb2 | /rozvrh/urls.py | f9087a7e2a4ff876574a9a70b32e2832e2ec0dff | [] | no_license | olinpin/onlinebakalarigit | 2f9fc29c120c1a6514961cd8c28518a9997fbcd4 | a5a0ca3c9d6f31bfe4f093049a6d2d4d61493d8c | refs/heads/master | 2023-05-02T07:24:18.867430 | 2021-03-29T07:12:36 | 2021-03-29T07:12:36 | 304,345,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.urls import path
from . import views
app_name = "rozvrh"
urlpatterns = [
path("", views.index, name="index"),
#path("<str:name>", views.greet, name="greet"),
path('privacy', views.PrivacyPolicy, name="privacy"),
path('form', views.rozvrhAdd, name="rozvrhAdd")
] | [
"Oliver.Hnat@gmail.com"
] | Oliver.Hnat@gmail.com |
934429d6b9f71ef8c85ac71d12a9b0e8aeb8ac13 | d01f5a09c3ca3dd7dd04218e1d10278142403853 | /test/test_baseclasses.py | b5c96a5b35c56f5eee7dfdcd2478bb9fffcdd249 | [
"BSD-3-Clause-LBNL"
] | permissive | LBNL-ETA/FMLC | d911098bce778cbc0224116427e1adf303c54a54 | e8a1c98e7924050f37e0b11720c0d90d4a884e52 | refs/heads/master | 2023-05-12T11:18:02.618796 | 2023-05-08T20:07:59 | 2023-05-08T20:07:59 | 182,856,106 | 3 | 3 | NOASSERTION | 2022-03-04T17:59:22 | 2019-04-22T19:42:06 | Python | UTF-8 | Python | false | false | 808 | py | import sys
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
from fmlc.baseclasses import eFMU
def test_controller1():
class testcontroller1(eFMU):
def __init__(self):
self.input = {'a': None, 'b': None}
self.output = {'c': None}
def ... | [
"cgehbauer@lbl.gov"
] | cgehbauer@lbl.gov |
4203ccce21fd6f3bb111cf8bfb5875de639db6a3 | e99f022a3f5251c730c8f18c7a20f0be8b3a9d0a | /DNSDumpsterAPI.py | b5fb7bc7c4cde7052869179252bde79907198795 | [
"MIT"
] | permissive | fakegit/CloudFail | 6a87ae26c03d48b84fd307bb48eba5146216db3f | a322ec7a2482c34e67cde537c7ebedc1b4120564 | refs/heads/master | 2022-09-23T11:19:23.277469 | 2022-09-22T10:46:37 | 2022-09-22T10:46:37 | 158,049,763 | 0 | 0 | MIT | 2022-09-22T17:34:32 | 2018-11-18T04:28:16 | Python | UTF-8 | Python | false | false | 4,482 | py | """
This is the (unofficial) Python API for dnsdumpster.com Website.
Using this code, you can retrieve subdomains
"""
from __future__ import print_function
import requests
import re
import sys
import base64
from bs4 import BeautifulSoup
class DNSDumpsterAPI(object):
"""DNSDumpsterAPI Main Handler"""
def ... | [
"erowdy1@gmail.com"
] | erowdy1@gmail.com |
8f0f47ef704ca1bf13b6b054d960ad79eb855848 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_02_01/aio/operations/_operations.py | 8379386a6db3839f741ead07cbbbe9c6844a901e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 4,659 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
fc696582a78cdd7c5d1899b2b36105b5ae57fb27 | cc2029f40a12e82712072275fc76a07ac59b5940 | /battles/tourneys/20170409_2015.py | 47a50e202ae61271c8e51095af49e9ed277655a0 | [
"MIT"
] | permissive | heitorchang/learn-code | d3fb8e45d539d302372126fe28e85032590b5707 | 5e6e56f7257de1910830619c01d470e892d7f9d8 | refs/heads/master | 2023-08-09T13:46:18.623772 | 2023-07-21T16:57:11 | 2023-07-21T16:57:11 | 147,522,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | from math import log
description = """
You are playing a number guessing game with your friend. Your friend thought of some integer x from 1 to n. In order to guess the number, you can ask two types of questions:
"is x smaller or equal to a?" for some integer a;
"is x greater or equal to a?" for some integer a.
If th... | [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
7c21708c07f793fe8b7ea0a740e301f39cdba0f3 | 00ce7b1e677abbfe7912a472e74b3fab92b9fc50 | /Data_processing/MNIST/checkSource.py | 0ca2d86a677aa1ee43da5cc7832283efb90ac5f8 | [] | no_license | Xharlie/MultiGen | a19b8cd76bc1933773411d69200e86bf1ba8ed74 | e3e646289249ce9418fb40f5a246310ac37e9a96 | refs/heads/master | 2021-01-22T10:56:16.432939 | 2017-12-02T03:34:41 | 2017-12-02T03:34:41 | 82,051,628 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | import h5py
from PIL import Image
import numpy as np
DIGIT=2
FORM=4
COLOR=0
TRANSFORM=1
def check():
imgArray = []
with h5py.File('../../Source/MNIST/all_info.h5', 'r') as f:
imgArray = f['data']
segm = f['segm']
digit = f['digit']
form = f['form']
color = f['color']
transform = f['transfo... | [
"charlie.xu007@yahoo.com"
] | charlie.xu007@yahoo.com |
6db1394c31c689f64f58cffb4a65caedab7887b6 | 55c46d50ed426a3dccef8c44904df4524de43aa1 | /oldp/apps/cases/api_views.py | ff02e857cdc98c72953bdf206858a565d1bfcd76 | [
"MIT"
] | permissive | docsuleman/oldp | 1a438a9c669a54aab2f76133200e566d627d9668 | 8dcaa8e6e435794c872346b5014945ace885adb4 | refs/heads/master | 2020-06-29T10:45:18.787344 | 2019-08-04T18:21:02 | 2019-08-04T18:21:02 | 200,513,942 | 0 | 0 | MIT | 2019-08-04T17:36:52 | 2019-08-04T16:07:25 | Python | UTF-8 | Python | false | false | 2,439 | py | import coreapi
import coreschema
from django.utils.decorators import method_decorator
from django.views.decorators.cache import cache_page
from django_filters.rest_framework import DjangoFilterBackend
from drf_haystack.filters import HaystackFilter
from drf_haystack.generics import HaystackGenericAPIView
from rest_fram... | [
"gitlab@i.mieo.de"
] | gitlab@i.mieo.de |
6f58ea89e0a72bc170187b3c7eeffeca8ec3d68d | b5bcd5e4127089f6726bf64f574faa52c1b4b8e1 | /BTagReco/python/AnalysisConfiguration_SIG.py | 4eabe0c054a97e0b632371efb5ec1a88613acf29 | [] | no_license | romeof/BTagRunII | 3b225277ad4697694dfd3307c41aed75740db1fc | 7ec1351e2b41bae1b50368bcb538e58f2a0a7ade | refs/heads/master | 2021-01-19T20:15:27.999078 | 2015-05-13T09:31:12 | 2015-05-13T09:31:12 | 35,540,157 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
#####
## Modules for the analysis
#####
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load("TrackingTools/TransientTrack/TransientTrackBuilder_cfi")
process.load("Configuration.StandardSequences.Geometry_cff")
process.load("Confi... | [
"fromeo@cern.ch"
] | fromeo@cern.ch |
786ebc8282cb594394de4ac386c827aa6cd2c2cb | f63277c2b0dd4a68d829a69762f701d7ce715a6f | /Audio.py | 391fdf7f44e25b9179ee8f99831d410b89743e8e | [] | no_license | anmolp95/AudioTube | 6f241593033715b4d06d205aa0b79c686c098b0c | 30953085bdd6c330c8739331e088712c2a7bb6c2 | refs/heads/master | 2020-05-18T14:27:16.755476 | 2017-03-11T20:35:26 | 2017-03-11T20:35:26 | 84,248,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import Utils
import AppConfig
import time
class Audio:
def __init__(self,id,title,videoAttributes=None):
"""
self.size=audio.get_filesize()
self.type=audio.extension"""
#ID
self.id=id
#Audio Related Features
self.title=Utils.sanitiseTitle(title)
if v... | [
"anmolp2010@gmail.com"
] | anmolp2010@gmail.com |
4768e228dfa9b0bbd436a7cb79eba2b32e8a96fe | 39f78b00d7d79a4e0f29f6b1fe15f20ecc74bea2 | /74 - Search 2D matrix.py | 9320b251ab54bd90f5bd20ff89e97bb7001b178e | [] | no_license | KaranKaur/Leetcode | ca1ac5a590de720d37a3c0fca014065086e6e38e | 765fb39ba57634d2c180eb1fd90522c781d409c4 | refs/heads/master | 2020-03-28T09:44:12.318384 | 2018-09-10T14:07:05 | 2018-09-10T14:07:05 | 148,056,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | """
Search a 2D matrix,
Write an efficient algorithm that searches for a value in an m x n matrix.
This matrix has the following properties:
1) Integers in each row are sorted from left to right.
2) The first integer of each row is greater than the last integer of the
previous row.
Example 1:
Input:
matri... | [
"kkaur89@umd.edu"
] | kkaur89@umd.edu |
9c17717ec5417d326d418ca005fef3767db03bf2 | 6e70fba9cd4595efdbbb9e9294e9c1bb1ec648b7 | /Thesis Research/Convolutional Neural Networks for Image Recognition/A2/assignment2/cs231n/solver.py | 95f8807c01b2dd30a9756b0b74148ed495441443 | [] | no_license | maespinosa/Thesis_Documents | 71bfa8ad26e9aec382ec6017cadac47d565faa52 | 61bc2dd6cac1b89a5dc08df377129fb7fd5b95da | refs/heads/master | 2020-11-29T12:00:05.105873 | 2019-05-21T06:45:06 | 2019-05-21T06:45:06 | 87,496,867 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,857 | py | import numpy as np
from cs231n import optim
class Solver(object):
"""
A Solver encapsulates all the logic necessary for training classification
models. The Solver performs stochastic gradient descent using different
update rules defined in optim.py.
The solver accepts both training and validataion data an... | [
"markanthonyespinosa@gmail.com"
] | markanthonyespinosa@gmail.com |
0ee425d47fec6a76ce5e13d55e2fa477fd61d4f0 | 331a3f3e57a0ab7a2290e5a084eaa6bb8b4124e6 | /pandas/tests/apply/test_invalid_arg.py | 6ed962c8f68e6b6c93aaa2be78420eb6b25dd962 | [
"BSD-3-Clause"
] | permissive | WuraolaOyewusi/pandas | f76aad45df9950ab7fcc4dfcae42dacab0b91f21 | 318f13a328f0f486b6712e9b6f26ca0249327843 | refs/heads/master | 2022-11-19T02:20:18.371013 | 2022-10-31T16:51:46 | 2022-10-31T16:51:46 | 220,716,671 | 2 | 0 | BSD-3-Clause | 2022-10-31T16:51:47 | 2019-11-09T23:26:39 | Python | UTF-8 | Python | false | false | 11,077 | py | # Tests specifically aimed at detecting bad arguments.
# This file is organized by reason for exception.
# 1. always invalid argument values
# 2. missing column(s)
# 3. incompatible ops/dtype/args/kwargs
# 4. invalid result shape/type
# If your test does not fit into one of these categories, add to this... | [
"noreply@github.com"
] | noreply@github.com |
9780673943bc92fd7b2f2d0aa7eeef3acbfe31bc | 68a80a4a3c12a6efe369513c83688b5bd4d083fc | /gui_tcl_tk_tkinter/buttons.py | 5d0c482d1d0b054bf30e8510622c625bead5e854 | [] | no_license | biki234/PythonNotes | bfa95f67c6c460a79623551927abb2e3bb375135 | 4ee4846d3e4f7c564ed84065f0810bfa3fdad74a | refs/heads/master | 2021-06-22T18:39:51.598210 | 2017-08-26T03:04:12 | 2017-08-26T03:04:12 | 107,346,885 | 1 | 0 | null | 2017-10-18T02:08:32 | 2017-10-18T02:08:32 | null | UTF-8 | Python | false | false | 520 | py | from tkinter import *
class App:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(frame,
text="QUIT", fg="red",
command=quit)
self.button.pack(side=LEFT)
self.slogan = Button(frame,
text=... | [
"anishchapagain"
] | anishchapagain |
2f77fca013521fe64e21aeb99dfd2e48d77e4bb1 | e5c35b39d2087ea92fccef682022787e2938814f | /segmentation_models/__init__.py | df272d01ec6d50b84905867edcf289a7d241b6cb | [
"MIT"
] | permissive | dddtqshmpmz/unet-DA | 3f0d0ab30acb152feb2d80d138a266b56ce966a3 | 2bb0933ab607cd6b882463247523fed4d236f60e | refs/heads/master | 2023-08-11T03:01:16.904338 | 2021-10-09T12:50:16 | 2021-10-09T12:50:16 | 415,305,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | from .segmentation_models_pytorch import *
| [
"diaoli@sjtu.edu.cn"
] | diaoli@sjtu.edu.cn |
9fc363a3b8eb474777876ec38235218c494aaa7d | 84794307dda1007e4a4ee5eace89ec53174ca525 | /canteen/store/migrations/0008_auto_20200925_1836.py | 20d9157660a5fad9b7a1849c0e20b8dcd6be671f | [] | no_license | Ajaya2/CMS | 40149253752fb0a8a6db33f7a108d6313debb84c | d5010b8ad61cdff60901c19431defe2b6eec07e4 | refs/heads/master | 2023-01-22T20:05:01.911613 | 2020-11-12T07:00:59 | 2020-11-12T07:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.1 on 2020-09-25 12:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0007_auto_20200925_1427'),
]
operations = [
migrations.AlterField(
model_name='order',
name='date_ordered',
... | [
"shekharneupane23@gmail.com"
] | shekharneupane23@gmail.com |
b0b184c82a19a0684562e5609e95670b3d3daa98 | 812d6305dd64eba70e93753c51f73387722cc920 | /quete_streamlit.py | a14b1efa49099634f8038fd0620f75be64c14c84 | [] | no_license | Seb-Dupont-DataAnalyst/Quete-Streamlit | 1c25e9b8fd668ff9fc9b49a7bf8d43629f96a80f | 3cd66dcc37324244d9adc6635bace95cb00ed2b5 | refs/heads/main | 2023-06-18T09:13:43.976280 | 2021-07-07T13:00:16 | 2021-07-07T13:00:16 | 383,749,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,202 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import seaborn as sns
import plotly.express as px
import plotly.graph_objects as go
import streamlit as st
import streamlit.components.v1 as components
link = "https://raw.githubusercontent.com/murpi/wilddata/master/quests/cars.csv"
... | [
"noreply@github.com"
] | noreply@github.com |
bb7efc5aa68913486b3c49694c71001cadf1218b | 968992f7cc055798334784ec9889b496df98a92b | /db_tools/import.py | d830d258f9ff1f82a21e5e238594bd920ad95a23 | [] | no_license | maplehua/cloudcomputing-xiaohua | 38ec20ee8d7ebde95d302a5774febb2421cdef1d | c6fdc8896a7e73ea3777b52cf30462475ea5a513 | refs/heads/master | 2021-01-21T21:50:52.609815 | 2014-09-10T06:10:34 | 2014-09-10T06:10:34 | 59,453,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import re
import argparse
from uuid import uuid1
from bs4 import BeautifulSoup
from pymongo import MongoClient
from pyes import ES
from config import *
es_conn = ES(server = ES_SERVER)
mongo_conn = MongoClient(host = MONGODB_HOST, port = MONGODB_PORT)[PAPER_DB]... | [
"ggshiney@gmail.com"
] | ggshiney@gmail.com |
a080485d86a70caa6afe4b4fd83a5a87c8f91514 | 6752106643c421b9b0f9aa73054fc446c0993772 | /brain_pipeline.py | 7e5193de8b25bca2fe2c73c9bfd7e5f515228692 | [] | no_license | kkfuwfny/BRATS | 4ad26ab6d6b40b6f92eab93e02b3fa7a573174d6 | e54c56445757d07ce7360d5dd20b9e0836189dbd | refs/heads/master | 2021-06-18T19:54:58.586434 | 2017-07-06T01:55:35 | 2017-07-06T01:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,690 | py | # -*- coding:utf -*-
import numpy as np
import subprocess
import random
import progressbar
from glob import glob
from skimage import io
import nipy as ni
np.random.seed(5) # for reproducibility 使每次产生的随机数不变
progress = progressbar.ProgressBar(widgets=[progressbar.Bar('*', '[', ']'), progressbar.Percentage(), ' '])
# A t... | [
"noreply@github.com"
] | noreply@github.com |
c1ea1c2df956749c6deeb18f05376f849453d2e6 | 3c3c274f266736c97dc14608511f039e65e31694 | /chalicelib/auth.py | ad8d2d2a8ff3cc74580968dde491e1779e63a446 | [] | no_license | craymaru/chalice-todoapp-training | b2de9a7bff52ae3675a36ac44c7886a003199c7c | 5a3229f3f4d185457812777432bd99adb9b7c56a | refs/heads/master | 2023-01-11T18:03:50.712684 | 2020-11-18T04:29:34 | 2020-11-18T04:29:34 | 313,465,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | import hashlib
import hmac
import datetime
from uuid import uuid4
import jwt
from chalice import UnauthorizedError
# TODO: Figure out what we want to do with this.
# We can either move this out to env vars in config.json,
# use KMS to encrypt/decrypt this value, or store this in SSM.
# Until we figure it out I'll st... | [
"craymaru@gmail.com"
] | craymaru@gmail.com |
354008357caf51c4266ae2cbd0b6f2dd88dc8917 | 2f609e4c763973e33f430785898dc2e01570a918 | /migrations/versions/c5722c470e44_.py | c8cf72d5d404b3255c72e4f6a91552acf5694df4 | [
"MIT"
] | permissive | TheoTT/s_shop_flask | aa2eb815743b02f5d33ef877e26d4c03f436a1f3 | bbdb2c8e65a1da08f72a18a06f7bbf0a8d42d0e8 | refs/heads/master | 2022-01-26T04:34:03.687511 | 2020-04-18T02:37:47 | 2020-04-18T02:37:47 | 247,942,837 | 0 | 0 | MIT | 2021-03-29T22:35:30 | 2020-03-17T10:38:00 | Python | UTF-8 | Python | false | false | 803 | py | """empty message
Revision ID: c5722c470e44
Revises: 793ea5ac3149
Create Date: 2020-03-22 22:01:24.511081
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c5722c470e44'
down_revision = '793ea5ac3149'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"tt137378245@outlook.com"
] | tt137378245@outlook.com |
65cbb2d8960663a033aa29f3118e65c6bdd82a98 | be4b355c065e82086d1abb7bd860581ba0127aaa | /dataprocess.py | 1337ea23089d798036381e3a0ea1852460656064 | [] | no_license | gannerr/sneakergen | de0df5b921856682b9061178b55bc454881ee220 | 5a0577b5958be7ef79e9a4eaf0cc20193e6a0fe8 | refs/heads/master | 2020-06-16T16:40:33.922010 | 2019-07-07T10:55:33 | 2019-07-07T10:55:33 | 195,639,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | def process_data():
current_dir = os.getcwd()
# parent = os.path.dirname(current_dir)
shoe_dir = os.path.join(current_dir, 'resized_black')
images = []
for each in os.listdir(shoe_dir):
images.append(os.path.join(shoe_dir,each))
# print images
all_images = tf.convert_to_tensor... | [
"noreply@github.com"
] | noreply@github.com |
4cd37584ef4a0d01cd88ff800395b7ab860f7b52 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /problems/0530.0_Minimum_Absolute_Difference_in_BST.py | 93ad4e5a1a70ef0a7e5a3df60900e33c8cd38472 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | '''
Runtime: 99 ms, faster than 5.10% of Python3 online submissions for Minimum Absolute Difference in BST.
Memory Usage: 18.5 MB, less than 69.94% of Python3 online submissions for Minimum Absolute Difference in BST.
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=... | [
"laoxing201314@outlook.com"
] | laoxing201314@outlook.com |
1e849b8441b64d8dcd64fc090cecf42eca0c2f1a | 8329504e8dcf39d72f5120804d1afbc47b7c8364 | /djangoProject2/settings.py | 54e474073684abe49acfbe0b6198733d625bb9be | [] | no_license | jeonyongho0/djangoProject2 | ae7bf5cc7e17d28a083f4f4797bcde172c93d7c9 | 222f7d89f43e8027d2d2e30e7891e2a1f6b92995 | refs/heads/master | 2023-04-06T13:19:21.368229 | 2021-04-21T23:49:13 | 2021-04-21T23:49:13 | 360,335,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for djangoProject2 project.
Generated by 'django-admin startproject' using Django 3.2.
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 pa... | [
"drager7798@naver.com"
] | drager7798@naver.com |
ef9a648c598dc220ff704edf4dde3de811641175 | 154f978202f5d06334bddaf82785975dddc04166 | /ressApp/migrations/0008_auto_20180626_1357.py | 2b9748422b7d1f6fb51b7bbd7c5018004fb969c8 | [] | no_license | Lippskinn/BAR4 | 409cebed8bec2e88f75a81ac1b5dadc1e92e0cb8 | aef07438255a875b1e8bd231490cde27eb5273da | refs/heads/master | 2020-04-02T07:02:28.715022 | 2018-10-22T16:43:00 | 2018-10-22T16:43:00 | 154,178,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # Generated by Django 2.0.2 on 2018-06-26 13:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ressApp', '0007_auto_20180626_1334'),
]
operations = [
migrations.RemoveField(
model_name='offer',
name='offerImage'... | [
"noreply@github.com"
] | noreply@github.com |
32863802c37b18d84de632557d016bf82a7f9e33 | c68c8b0bf9e1e367f1cd170d7271b55e61ff736b | /quickstart.py | e13a92e4080df07d8b17a8353638f8daff229a18 | [] | no_license | eesaaamer3/EmailAutomation | 55fb9b2aeda1825285b1e0c77ee9a7e898a27fe5 | dcada973c5539e59f01db319395599dfd3eeb3b8 | refs/heads/master | 2022-11-14T04:21:56.421601 | 2020-06-26T03:03:45 | 2020-06-26T03:03:45 | 254,958,000 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py | """
Eesa Aamer
Date Created: 11/04/20
Last Modified: 13/04/20
A python script that can read and send emails, while also being
able to download attachments directly onto the device.
"""
import ezgmail
import argparse
parser = argparse.ArgumentParser(description="Enter valid email information")
parser.add_argument('Em... | [
"eesaaamer5@gmail.com"
] | eesaaamer5@gmail.com |
a9e2b226c09273c26c8859b32edb71bbdff7b623 | f6f632d0d19fcced0a464d7c75d82ef2c3a9758a | /ABTS/physical_models/Mission.py | 00d67e41e43cc63cd614c16fa4fcff9cc751a51a | [] | no_license | gfalcon2/Aerobraking-Trajectory-Simulator | 3f9446be40df41e94fe59ac60bd6d2edf2364232 | 2ad7314ae759283148bd259449a012a7797de6c2 | refs/heads/master | 2022-12-03T22:30:33.979187 | 2022-11-20T16:48:11 | 2022-11-20T16:48:11 | 239,838,808 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat May 30 16:23:54 2020
@author: Giusy Falcone (gfalcon2@illinois.edu)
@copyright University of illinois at Urbana Champaign
"""
def missiondef(mission):
words = ""
sentence = mission['Purpose']
wordsinpurpose = []
for letter in sentence... | [
"noreply@github.com"
] | noreply@github.com |
1524daef4faaedc728bb00129ad31c0b83a880c5 | 0049857a3ce7d5137cfcc3c03869c39fd797f7ce | /Week_03/combinations.py | 1375a75576d0c653ba20a13a590671328ac655bb | [] | no_license | arthurt53/algorithm011-class02 | 98358d53b76f654edf5d7ec0b00519ac1ff76dea | 3fd3ac0de550507b6a2ca16179094cef4517848c | refs/heads/master | 2022-12-06T19:29:29.104296 | 2020-09-05T03:22:36 | 2020-09-05T03:22:36 | 274,076,429 | 0 | 0 | null | 2020-06-22T08:02:16 | 2020-06-22T08:02:15 | null | UTF-8 | Python | false | false | 346 | py | class Solution:
def combine(self, n: int, k: int) -> List[List[int]]:
res = []
def backtrack(i, k, tmp):
if k == 0:
res.append(tmp)
return
for j in range(i, n + 1):
backtrack(j+1, k-1, tmp + [j])
backtrack(1, k,... | [
"noreply@github.com"
] | noreply@github.com |
f58428a22e613a723a819b35bd68032e651b1f57 | 6f37934f98be3df0de70de78e598ab4e83594568 | /kermit-webui/kermit_new-webui/webui/agent/utils.py | ab5b37b279dbb93fbb16cc6deeca4acb048b664f | [] | no_license | yevlempy/CT_Kermit | 34c1087adc8db7b8292c8cd66bde30b73b929c1d | 4cfea2f6527c7e3130ec0cffad1a1afd4cf189cd | refs/heads/master | 2021-01-20T13:47:32.063550 | 2012-01-05T05:59:40 | 2012-01-05T05:59:40 | 3,051,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,074 | py | from webui.agent.models import Agent, Action, ActionInput, ActionOutput
from webui.restserver.communication import callRestServer
import logging
from django.utils import simplejson as json
from webui.serverstatus.models import Server
logger = logging.getLogger(__name__)
def verify_agent_acl(user, agent_name):
tr... | [
"yevlempy@gmail.com"
] | yevlempy@gmail.com |
b936b8696aa84cd85d4cbf4b5a632e2f0c2c1956 | 8d8dd2a5c490e912f957f4afe9d6d02da673805c | /Python/PythonFundamentals/fundamentals/insert_sort.py | 0a9342d252b3ace441765a7061c9de0b5ef6ec51 | [] | no_license | sunset375/CodingDojo-1 | ea025ad90e36bfb6d6ef6bcfaa49e286823299cd | c5e483f5009942792c04eb2fa3fea83e5b91b5a2 | refs/heads/master | 2023-05-16T10:00:00.060738 | 2020-09-12T04:09:08 | 2020-09-12T04:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def insert_sort(arr):
for i in range(1, len(arr)):
for j in range(i-1, -1, -1):
if arr[j] > arr[j+1]:
arr[j], arr[j+1] = arr[j+1], arr[j]
return arr
print(insert_sort([5,1,7,23,66,90,34])) | [
"javierjcjr@gmail.com"
] | javierjcjr@gmail.com |
ff30e8932a6292b69bb900155874ffcfa1e06431 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/2930.py | 97be09473c78d8ee4bccfb81bd58eb99d9cd14ca | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from __future__ import division
T = input()
for i in range(T):
C, F, X = [float(x) for x in raw_input().split()]
cookiesRate = 2
if C >= X : print "Case #%d: %.7f" % (i+1, X/cookiesRate)
else:
timeElapsed = 0
while(C/cookiesRate + X/(cookiesRate+F) < X/cookiesRate):
timeElapsed += C/cooki... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
dd6b99605f2ad07b00b76fab12d2dfa0ec787223 | 0f949dc62b728b2cf6e0e172eb7c1cc31012244d | /script/tft_touch.py | 5190129c1503eb022011cef240009dfb42cc3187 | [
"MIT"
] | permissive | jeguzzi/mt_screen | 74c4314012ddb9471650d8b1f10c889265101f92 | f06ea6404474e8a71a4d61ec381a6e99e03e0ebb | refs/heads/master | 2020-03-19T09:39:44.114549 | 2018-06-06T09:46:05 | 2018-06-06T09:46:05 | 136,307,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | #!/usr/bin/env python
from __future__ import division
import threading
import evdev
import rospy
import wiringpi2 as wp
from evdev.ecodes import ABS_X, ABS_Y, BTN_TOUCH, EV_ABS, EV_KEY
from sensor_msgs.msg import Joy
from std_msgs.msg import Bool
KEYS = [1, 4, 5]
IN = 0
OUT = 1
class TFTouch(object):
def __i... | [
"jerome@idsia.ch"
] | jerome@idsia.ch |
9f060361d6de995b683995985d8c9f9c463b1669 | d54dfc623e1916c5cf08b738ff4a3d88a923fdb7 | /NumberGuessingGame.py | 0527a7d767b7c0c03f242a1d91d2b5670c745784 | [] | no_license | sandeep1108/Code | 1d2004987d55058368149873944ebc631b43fe4e | 1f97e2f6494a40bec14915a288cbfe8e23c7e6eb | refs/heads/master | 2021-05-01T04:23:47.511245 | 2016-09-28T20:44:35 | 2016-09-28T20:44:35 | 69,502,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | """
Author: Sandeep Das
This program asks the user to guess a random number between 1 and 100
"""
import random
import os.path
import json
from sys import argv
def main():
print "Hello There! Welcome!"
playerName = str (raw_input("Please enter your user id: "))
print "How are you doing %s?" %playerName
... | [
"noreply@github.com"
] | noreply@github.com |
a7b55848abbb88a94997e6304eb564af957d682f | e012ac032de8bf5bf880d4917fb6329f99f47d2b | /grdient_decent.py | 13306f92fd7645e6b5595b881733dbdf2c385b6e | [] | no_license | janakiraam/ML-ToyProbelm | d1d0b8ffe55fb68cea22ea2326be3aeb23e64423 | f8775ebce8f6b464e023bda92890fc30bcf923e6 | refs/heads/main | 2023-03-15T11:06:32.252230 | 2021-03-13T17:19:08 | 2021-03-13T17:19:08 | 341,291,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import numpy as np
def gradient_decent(x,y):
m_curr=0
b_curr=0
iteration=100
n = len(x)
learning_rate=0.001
for i in range(iteration):
y_predict=m_curr*x+b_curr
md=-(2/n)*sum(x*(y-y_predict))
bd=-(2/n)*sum(y-y_predict)
m_curr=m_curr - learning_rate*... | [
"noreply@github.com"
] | noreply@github.com |
3791527cea4f9b19510cd2511f27d307b569de22 | 4d2de834ecea6ef444b1c45afb5a41e717900858 | /app/app_todo/__init__.py | 33a8204e60a9ea5ebfaf02b5c996d4aafaf808af | [] | no_license | florije1988/flask_regular | 19da04c59fbf600274d206750ccb8cf355db2d24 | 1219e4efbad76202d6dca7e4b2148344ea9edf8c | refs/heads/master | 2020-12-24T13:21:29.840919 | 2014-12-16T00:58:15 | 2014-12-16T00:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from flask import Blueprint
from app.custom_api import Api
app_todo = Blueprint('app_task', __name__)
api_todo = Api(app_todo, catch_all_404s=True)
from . import views
api_todo.add_resource(views.HelloHandler, '/hello') | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
6b02940ed353c8a99eb9742927bfe2c36301da96 | c388f70bec95795dd8fdea56dc8c9beea49aa564 | /diststore/settings.py | 9a2c84a0d1c9ad3f286bff6b4bb37109c619066d | [
"MIT"
] | permissive | santeri/pydiststore | 6d6a5c8d33ba2147da106b0877067c23f591a45d | 227074a152e9e6a86abf22c3d4b2e8d43ec2f659 | refs/heads/master | 2021-01-22T02:53:32.767149 | 2012-10-04T23:54:28 | 2012-10-04T23:54:28 | 145,312 | 1 | 1 | null | 2012-10-04T23:54:29 | 2009-03-07T17:33:18 | Python | UTF-8 | Python | false | false | 843 | py | #!/usr/bin/env python
# encoding: utf-8
__all__ = ['http_port', 'multicast_addr', 'multicast_port', 'multicast_dst', 'multicast_timeout']
import ConfigParser
config = ConfigParser.ConfigParser()
config.read(['diststored.cfg', '/usr/local/etc/diststored.cfg', '/etc/diststored.cfg'])
_http_port = int(config.get("d... | [
"santeri@santeri.se"
] | santeri@santeri.se |
c633ac2470e05a99614be9f9f82a751daa8489db | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/c4ccaa8b4474471f993db5910720bf59.py | 53dba6ce82f915abfd9d8828c4b03607686fbbc1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 1,305 | py | import unicodedata
STANDARD_RESPONSES = {
'question': 'Sure.',
'exclamation': 'Woah, chill out!',
'empty': 'Fine. Be that way!',
'other': 'Whatever.'
}
def hey(*statements):
for statement in statements:
if type(statement) != str:
try:
statement = str(statement)
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e9a4edfe1026ffae7f0e4077a0753cd8224ef2a4 | d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b | /espresso/jobmanager/jobmanager/temp/bin/packjobdir.py | 697971511dcfa49909f268637571980c629e1286 | [] | no_license | danse-inelastic/AbInitio | 6f1dcdd26a8163fa3026883fb3c40f63d1105b0c | 401e8d5fa16b9d5ce42852b002bc2e4274afab84 | refs/heads/master | 2021-01-10T19:16:35.770411 | 2011-04-12T11:04:52 | 2011-04-12T11:04:52 | 34,972,670 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"dexity@gmail.com"
] | dexity@gmail.com |
cca76db479141c09148d375544d94ff41aad4e76 | 2b87db0ada3c2d016df891761855e9a9dc5b81fe | /DP/matrixMultiplication_tabulation.py | 5dccacdc6120e0b39b9f754361beaf58b5d63d59 | [] | no_license | drdcs/Algorithms-and-System-Design | 9b201ba47bda14ca8fcd9aeddcfee760b3194f2d | 656fafbd758c30f5bd7a73a7d677562d5ae1f39f | refs/heads/main | 2023-04-11T10:25:02.992297 | 2021-04-22T05:57:10 | 2021-04-22T05:57:10 | 329,364,127 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | """
Input: p[] = {40, 20, 30, 10, 30}
Output: 26000
There are 4 matrices of dimensions 40x20, 20x30, 30x10 and 10x30.
Let the input 4 matrices be A, B, C and D. The minimum number of
multiplications are obtained by putting parenthesis in following way
(A(BC))D --> 20*30*10 + 40*20*10 + 40*10*30
Input: p[] = {1... | [
"diptihdl@gmail.com"
] | diptihdl@gmail.com |
77f4c26f8dedce3ea8a7ddbfbd4dd528d51a45bd | 65953555b287c0402ed79e2b08c0780df857810d | /tarea2/insertionsort2.py | 1ed4925f3fb20f5224ceebb96b7bac0bec31a708 | [] | no_license | alfonsokim/algorithms | 32f3cbc6a6360daced3dadd41c29218506c34e0d | 17c02d077d788937547af7338942f9ba6e279104 | refs/heads/master | 2021-05-16T04:08:18.356718 | 2017-03-07T21:52:16 | 2017-03-07T21:52:16 | 23,545,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py |
def insertionsort(array):
for i in range(1, len(array)):
key = array[i]
j = i - 1
while (j >= 0) and (array[j] > key):
array[j+1] = array[j]
j = j - 1
array[j+1] = key
return array
if __name__ == '__main__':
import random
import time
times = open(... | [
"adkim.ext@gmv.com"
] | adkim.ext@gmv.com |
accd632927dfbee392f990536801441050bda91d | 7ce125c50e942a55ff2554756314fa7558a5c2cb | /homepage/views/account.py | 3c3745ff615b186010c7aaa1f8ba970bc62566c9 | [] | no_license | dbwyatt/ColonialHeritageFoundation | 78dc520295d1df650dc7c3ea3770827aaf8ee3cb | 77a1c3e70ccbe4403902e819950eb10e058f95ef | refs/heads/master | 2021-01-19T08:37:20.394418 | 2015-04-16T00:22:26 | 2015-04-16T00:22:26 | 33,692,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,678 | py | __author__ = 'Daniel'
from django.conf import settings
from django import forms
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.http import HttpRequest
from django_mako_plus.controller import view_function
import homepage.models as hmod
from django_mako_plus.controller.router import get... | [
"dbwyatt23@gmail.com"
] | dbwyatt23@gmail.com |
bca492a81fe23d315cbb69434d85d776cc8e630a | 774413d52ecdfad882bc79f325f6d6b282b336cb | /src/face_api_client.py | c849e0456c44d3ae95e4d294a36909c9ee1ec024 | [] | no_license | omribeni/BestFaceImageRecognition | 6cde0d7dce9c743001aa34121eead85517b93a4c | 633ab4cf8200bff47a730982b8d41e816aae916f | refs/heads/master | 2022-12-29T11:07:05.260349 | 2020-10-11T15:04:06 | 2020-10-11T15:04:06 | 289,653,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,458 | py | import os
from azure.cognitiveservices.vision.face import FaceClient
from msrest.authentication import CognitiveServicesCredentials
import Face
class FaceApiClient(object):
# Set the FACE_SUBSCRIPTION_KEY environment variable with your key as the value.
KEY = os.environ.get('FACE_SUBSCRIPTION_KEY')
# Se... | [
"omribenishai015@gmail.com"
] | omribenishai015@gmail.com |
4de44a5b5d1cf08e40c04309c6c96b326fff5031 | c3179dc6c11770fe877d9b08bebd28448ee66ba8 | /mtdnn/tasks/utils.py | 0e80a8d2a9db50028038b3cf4486bcfa8fe6d561 | [
"MIT"
] | permissive | microsoft/MT-DNN | 2a0f102916a1b092f25b4999834177bd38319c53 | e5c3e07f3a8e55067433714ce261a6d28ba73d22 | refs/heads/master | 2023-06-29T23:57:42.108328 | 2020-07-02T02:22:06 | 2020-07-02T02:22:06 | 215,127,881 | 151 | 28 | MIT | 2023-06-12T21:28:37 | 2019-10-14T19:25:46 | Python | UTF-8 | Python | false | false | 14,964 | py | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
import os
import pdb
from random import shuffle
from sys import path
from mtdnn.common.metrics import calc_metrics
from mtdnn.common.types import DataFormat
def process_data_and_dump_rows(
rows: list,
out_path: str,
data_format: DataFormat,
... | [
"noreply@github.com"
] | noreply@github.com |
488374d79aa245ef32483dbbbe87d6d7825895ad | 4cc4f6f49bcd1031f017a144e18a7ea68ea7cfeb | /Lab09/.svn/text-base/generateReport.py.svn-base | e96764d152e3d9da24cd8b7572b3d2a740e12461 | [] | no_license | apoorvvw/Python | abeddddbe59dfe0d17865bfbf06232565dbff104 | 1b2661e5835f9e01ae10a91da21bfe768a858a13 | refs/heads/master | 2020-12-24T16:40:34.717506 | 2016-04-03T05:53:16 | 2016-04-03T05:53:16 | 40,106,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | #!/usr/local/bin/python3.4
__author__ = 'ee364e10'
import re
def moreReg(filename):
dict=[]
with open(filename,"r") as inputFile:
FileObject = open('finalGrades.xml',"w")
FileObject.write("<?xml version=\"1.0\"?>\n")
FileObject.write("<students>\n")
for line in inputFile:
... | [
"awairaga@purdue.edu"
] | awairaga@purdue.edu | |
3b3e969d18a5a1b06d75911178cd64cceed64785 | e65fba18d73b9a0d2bb51b8903d9bfff4d621da6 | /pytd6.py | 068d407edadaf6b07cdbac1acfa3dca93671d843 | [] | no_license | stevendevine/pyTD6 | 23fb16c3afd00235759f6ecba6b7a13cf0ecef77 | 7c701db14fe9b286dc0fc29e8a1e580e249889c8 | refs/heads/main | 2023-07-15T22:16:20.458018 | 2021-08-24T21:47:17 | 2021-08-24T21:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,536 | py | import keyboard, mouse, json, pygetwindow, pywinauto, time, ctypes, pyautogui, PIL, pytesseract
from PIL import ImageFilter
from PIL import ImageChops
from typing import Tuple, Union
from exceptions import *
# required for the mouse.move() to not be offset when display scaling is enabled.
user32 = ctypes.windll... | [
"vidh.bhatt@gmail.com"
] | vidh.bhatt@gmail.com |
4c269658b728a3ab97fc12a26d4e6a217994a423 | fb0906f77a44e2e2875ee5dbc16a14f5d70df50e | /fotok/config.py | edebde423a287e62642cffceca7e034c08c99d55 | [] | no_license | gsdu8g9/fotok | 3f30f14a5a195531cbf1ee7ecaa5d87d702a701d | bdb9b823c000e9bb9cb465f4e0401f1c093b63f0 | refs/heads/master | 2021-01-22T20:44:44.406304 | 2016-02-16T20:20:54 | 2016-02-16T20:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | """
This file stores configuration for both the web app and feed server.
Should be changed on deployment.
"""
import os
basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
SECRET_KEY = 'abcdimverysilly'
MAX_CONTENT_LENGTH = 1024*1024
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'fotok.... | [
"maksbotan@gentoo.org"
] | maksbotan@gentoo.org |
c95bfa05173b3c57990cc2d53cf42b70060aa4c2 | 934c3ed7a95d6509d63c099df9481aa35c2a7c56 | /app/view_models/__init__.py | 79902edd521f6ccbc41b47d3c82e0bf184b70ae1 | [] | no_license | meto001/label | b072c9ab0e581799a3eb6a7b4175afae9d04ca10 | 8f2af923379eea9bb89350b2f6b794b4964a1301 | refs/heads/master | 2021-06-10T13:11:26.307612 | 2020-08-25T08:41:23 | 2020-08-25T08:41:23 | 181,861,296 | 3 | 0 | null | 2021-03-25T22:56:53 | 2019-04-17T09:37:58 | Python | UTF-8 | Python | false | false | 71 | py | # _*_ coding:utf-8 _*_
__author__ = 'meto'
__date__ = '2019/4/11 14:42' | [
"756246975@qq.com"
] | 756246975@qq.com |
9836c4db6976992908c3e2fdd5c42aee5b2c2e44 | 66d352e30036b0917e22b2ccde6e0bbc05f9758c | /TelluricSpectra/TellRemoval_interptest.py | 54d1373f0ce141d99b8b9bb15b17c2674b949ca8 | [] | no_license | jason-neal/Phd-codes | 8354563b1d2b0fcce39d72adbfd82b65557399b4 | c947ffa56228746e2e5cdb3ab99e174f6c8e9776 | refs/heads/master | 2023-08-30T23:11:55.394560 | 2022-04-24T09:25:28 | 2022-04-24T09:25:28 | 42,106,284 | 0 | 1 | null | 2023-08-16T02:22:59 | 2015-09-08T10:40:26 | Jupyter Notebook | UTF-8 | Python | false | false | 5,575 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
""" Codes for Telluric contamination removal
Interpolates telluric spectra to the observed spectra.
Divides spectra telluric spectra
can plot result
"""
import argparse
import os
import time
import matplotlib.pyplot as plt
import numpy as np
import scipy as sp
... | [
"jason.neal@astro.up.pt"
] | jason.neal@astro.up.pt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.