blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f02ce7c29dca4a27b5e73592695c617c66c56a61 | 15f4c8766ef89772d4e1ef9b4b680024681401b6 | /Alumnos/views.py | adf7f453b91a3b6e09326c1835bd0bfa54de5c7b | [] | no_license | Marabo98/DatosPersonales | 445419eb4c5e8c2b4497acaa76dbee760e7a098d | c24e68c75940b568539b049313a7d5bfe6c82e8b | refs/heads/master | 2020-05-19T15:43:31.614636 | 2019-05-05T22:47:59 | 2019-05-05T22:47:59 | 185,084,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.shortcuts import render
from .models import DatosPersonales
def index(request):
return render(request,"Alumnos/index.html")
def res(request):
Datos=DatosPersonales.objects.all()
return render(request, "Alumnos/resultado.html",{"Alumnos":Datos})
| [
"noreply@github.com"
] | Marabo98.noreply@github.com |
d30137c4a1d499e1b0f216205e234323c2e84340 | 288714c273eae2bf13985c0f2927d915b3e84313 | /version3/version3/urls.py | d5ccad7bda0cf8b46ff549b5e8f78fdd4a358bc3 | [] | no_license | To-Heaven/authority-management-system | 2ae3fb4708daeba4498ae8dcca24f2fc43bece60 | 33bf101fa73ce5eb2c0b280666979ec89a34788a | refs/heads/master | 2021-08-24T07:18:34.605907 | 2017-12-08T16:00:47 | 2017-12-08T16:00:47 | 113,591,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | """version3 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')
... | [
"ziawang2017@outlook.com"
] | ziawang2017@outlook.com |
36b47d0a16d7e6e8b51e7aaa3dd00334f08d3f44 | 2b690fe997b38b2b491cc8096e60196f2a976b19 | /ch04modules/src/ds_using_list.py | a1979326446885bc482c964e2d88bcd2dfc43179 | [] | no_license | songxowe/PythonApp | 9d15ce39aab8dfd62a88b5322d6b647102dc70fb | 6fc81c69c1550799ac85ea18f79a819158780072 | refs/heads/master | 2021-01-23T15:27:46.427387 | 2018-07-02T09:51:34 | 2018-07-02T09:51:34 | 102,711,224 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # This is my shopping list
shoplist = ['apple', 'mango', 'carrot', 'banana']
print('I have', len(shoplist), 'items to purchase.')
print('These items are:', end=' ')
for item in shoplist:
print(item, end=' ')
print('\nI also have to buy rice.')
shoplist.append('rice')
print('My shopping list is now', shoplist)
print... | [
"songxowe@hotmail.com"
] | songxowe@hotmail.com |
79e6da3b4d658993b4978ba6089d86128dce378a | 55c3a742168c1a5cf131df01d897b5e750d5c172 | /hr_holidays_usability/wizard/hr_holidays_post.py | b178152e4ee7ae0d9a014221677fa50b1af5d5ea | [] | no_license | ursais/odoo-usability | cd22e9176e5a4e45c079be45955f415178a86105 | 216369f66c8c2da45d94fefc72276483c00edeef | refs/heads/10.0 | 2021-12-10T16:50:23.111985 | 2017-04-05T17:23:18 | 2017-04-05T17:23:18 | 88,552,310 | 0 | 0 | null | 2021-12-02T22:49:23 | 2017-04-17T21:27:15 | Python | UTF-8 | Python | false | false | 2,666 | py | # -*- coding: utf-8 -*-
# © 2015-2017 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, _
from odoo.exceptions import UserError
class HrHolidaysPost(models.TransientModel):... | [
"alexis.delattre@akretion.com"
] | alexis.delattre@akretion.com |
3be5ebce37acada992508c3ea1fe44a9c7c5231c | 71e8291ec9658e85989db9c7dcad92ea517b8c89 | /backend/polls/serializers.py | 29569e0b1dd2a41316231bcd1fc8470e61087083 | [
"Apache-2.0"
] | permissive | IINamelessII/YesOrNo | b942104e8feadf3c1b08d5f66f85f3fff3e3ccd7 | 0ebbdfbae73f0be7c807a8f6ca0ec7c2040cca19 | refs/heads/master | 2023-01-07T06:54:06.384209 | 2019-05-26T11:34:11 | 2019-05-26T11:34:11 | 155,479,502 | 3 | 2 | Apache-2.0 | 2023-01-04T19:50:11 | 2018-10-31T01:24:06 | Python | UTF-8 | Python | false | false | 826 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from polls.models import Poll, Flow
class FlowSerializer(serializers.ModelSerializer):
class Meta:
model = Flow
fields = '__all__'
class PollSerializer(serializers.ModelSerializer):
flow = serializers.ReadOnlyF... | [
"justnitro26@gmail.com"
] | justnitro26@gmail.com |
0efce5e84b3ecd6417977d55a558b91a32a83e07 | e420b0cd5f02b088d83327882ae149042c1232ea | /build.py | 47cc18572832eee74fb5d1a2c910032a860869ca | [] | no_license | aechaechaech/Jerma-Imposter-Message-Generator | e6129bb9b5da6e8af2f87dffe10debef5fab5beb | 583100fc208186e0f680abec0a81bf35d047b744 | refs/heads/main | 2023-04-12T06:23:50.578470 | 2021-05-10T15:45:37 | 2021-05-10T15:45:37 | 327,178,852 | 11 | 3 | null | 2021-04-03T01:28:13 | 2021-01-06T02:36:23 | Python | UTF-8 | Python | false | false | 77 | py | from distutils.core import setup
import py2exe
setup(console=['main.py']) | [
"noreply@github.com"
] | aechaechaech.noreply@github.com |
e79d5279d124db882897b667b9e1754ebabd8484 | 2f5033c5d6a4e8d668933a066332aabff1e337d0 | /docs/conf.py | e2910e1b3fe6f266b8983004af140329adda0f16 | [
"BSD-3-Clause"
] | permissive | linlearn/linlearn | fad723b360606b22646b88e0e3718c26a458664e | b37a2ce810573a4b603142c8f2902b66c2154647 | refs/heads/master | 2022-10-11T00:12:57.326079 | 2022-09-27T17:26:30 | 2022-09-27T17:26:30 | 227,420,583 | 6 | 2 | BSD-3-Clause | 2022-09-27T17:26:31 | 2019-12-11T17:16:23 | Python | UTF-8 | Python | false | false | 4,777 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"stephane.gaiffas@gmail.com"
] | stephane.gaiffas@gmail.com |
b7db04729ee4eed895c34171563555bd33dda7f0 | 61bfee44a4566670f7ed1c6218892d575c73d952 | /DataManagement/Phase1/CsvDistinctExtractor.py | bc269ea2bcfe744d19fadc109b01296d9d60398d | [] | no_license | yaoReadingCode/CSCI-620 | 45b5fc840fe7bba93492fe44ea8e6ff48c03289d | fe26b99dba3462305cf6a0497da321505bec53c3 | refs/heads/master | 2022-06-06T06:08:48.914593 | 2019-12-02T03:53:55 | 2019-12-02T03:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import pandas as pd
import json
import re
def extractValues(qualifiedFilePath, column):
distinct = set()
fileData = pd.read_csv(qualifiedFilePath, sep='\t', header=0)
for index in range(len(fileData)):
rowValue: str = fileData[column][index]
match = re.match("^\\[(.*)\\]$", str(rowValue))
... | [
"apurav.khare@gmail.com"
] | apurav.khare@gmail.com |
ac144cfea22e1272d79d2dedb4eaf49d65fb89b4 | 637c1fb7d20c6f6f0bcfdc398ce663b26a0c5629 | /marathon/marathon-lb/tests/test_common.py | 77963524d70802f37fc17658e74fbecb450a1315 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | slpcat/docker-images | e00ae70158f540c45aede98874cbfed00d1bf12f | cd99c1f375ea153d9d50ab4fa49ceb13583e6bab | refs/heads/master | 2023-08-31T23:57:07.582361 | 2023-08-17T05:34:05 | 2023-08-17T05:34:05 | 107,383,466 | 44 | 31 | BSD-3-Clause | 2020-03-17T17:00:45 | 2017-10-18T08:59:12 | Go | UTF-8 | Python | false | false | 645 | py | import unittest
from mock import Mock
import common
class TestCommon(unittest.TestCase):
def test_setup_logging_log_level(self):
logger = Mock()
common.setup_logging(logger, '/dev/null',
'%(name)s: %(message)s', 'info')
logger.setLevel.assert_called_with(20... | [
"slpcat@qq.com"
] | slpcat@qq.com |
b1b60c4d44cf84dc029df650bb592b547e9ea863 | debb553bf97dbc550a619f97598e35b2b43fbfa0 | /ChatBot/Lec 01 聊天机器人的基础模型与综述/Debugs/debug_find_path.py | 27c35b820133a3b413d72251a1f96248d23f3148 | [] | no_license | jacky-guo/July-NLP | e9c050ae1cab32a6fa534da858544d11c56fdb22 | f8aa6c01d5e7349b7e4e89ce103dd7acb3f62048 | refs/heads/master | 2020-08-06T19:09:38.877281 | 2018-10-19T09:47:20 | 2018-10-19T09:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # -*- coding:utf-8 -*-
graph = {'上海': ['苏州', '常州'],
'苏州': ['常州', '镇江'],
'常州': ['镇江'],
'镇江': ['常州'],
'盐城': ['南通'],
'南通': ['常州']}
# 明确如何找到从A到B的路径
def find_path(start, end, path=[]):
path = path + [start]
if start == end:
return path
if start not in graph:
... | [
"740465595@qq.com"
] | 740465595@qq.com |
01d6d7f9f190a36964f6276c6d587f83b503bfe0 | 6349c8168b6f4cb57a0370e46f789a566d60dc21 | /tweet_analyzer_old.py | 585b5dbc2b10b7faed6e0e5bd0c9f36ea655d391 | [] | no_license | bksim/tweet-moods | daf99f21cefdc30a097fcb96b3f69c0d92731798 | 809778986f9aec724c4fa8263cf111dbc1957e6f | refs/heads/master | 2021-05-04T11:07:51.701789 | 2019-09-18T03:19:26 | 2019-09-18T03:19:26 | 36,324,786 | 0 | 0 | null | 2019-11-02T23:11:49 | 2015-05-26T21:29:23 | Python | UTF-8 | Python | false | false | 6,527 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
from datetime import date
from datetime import timedelta
from sklearn.naive_bayes import BernoulliNB
from TwitterSearch import *
import tweepy
import sys
import pickle
reload(sys)
sys.setdefaultencoding('utf8')
#outputs past numdays days in format yyyy-mm-dd... | [
"simpavid@gmail.com"
] | simpavid@gmail.com |
9570c49843328e84d51d010763252fc26e8d87e5 | f04a0ebca2b4ef6348755be8e1aff6d0febd50f1 | /CAI_p5/GA.py | 677609851e6f1f9bf6e514270daf9d85a8287c76 | [] | no_license | kiarash97/CAI_5_Genetic | 9e3cb0dae1cbc515da02fc345e8a9477c73af236 | 43f8473e8ee4eb5e05e59771ac3cee5a8aa4243c | refs/heads/master | 2020-04-02T00:41:27.155608 | 2018-10-19T17:14:24 | 2018-10-19T17:14:24 | 153,816,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | import random
class genome:
def __init__(self,lst):
self.gens = []
for i in lst:
self.gens.append(i)
#random gens
if len(lst) == 0 :
self.randomGens()
def randomGens(self):
while (len(self.gens) < 8):
x = random.randint(0,7)
... | [
"kasirikiarash@gmail.com"
] | kasirikiarash@gmail.com |
8cebf3db3d8ed108a7aa3b6a756866083b2da720 | bc2c2eb2f74c345e91f2c49b1de37321227a90b8 | /src/preprocess.py | 97e234b1a3ddbb7a0ea6cf6369573f5e874252dd | [] | no_license | emilebourban/ML-Project-2 | a9567aad95372adfc75d8117a5a85a7a4005fe23 | 9e443ff5ad7870939616057a58d36b9606718d4b | refs/heads/master | 2021-07-02T22:36:59.492531 | 2020-10-05T14:50:38 | 2020-10-05T14:50:38 | 159,149,665 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,074 | py | # -*- coding: utf-8 -*-
import os
import re
from nltk.stem.porter import *
from nltk.corpus import brown
import itertools
def load_dicts(DICT_PATH):
"""
"""
dict_typo = {}
with open(os.path.join(DICT_PATH, "emnlp_dict.txt"), mode='rt') as f:
for line in f:
key, ... | [
"noreply@github.com"
] | emilebourban.noreply@github.com |
b6c46a8f86767ee4d504896126681b76d2154528 | 247dad430fd808f516def928cbcd64ae07da0e51 | /article/migrations/0001_initial.py | 90fa2f05ac7cfcb32cc7e0e9de97841abeac08b6 | [] | no_license | manlife2017/my_blog | f8f33083bf9c4763c2f3727d4320a48692c4e4d5 | 9e43fbc79ae3f9c36ed05f47071d33ffcf27131d | refs/heads/master | 2021-01-21T19:01:38.668765 | 2017-05-23T00:33:37 | 2017-05-23T00:33:37 | 92,107,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-19 12:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Articl... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
fdf2f52741bb4e9aed4af0d9607587f3c2a94a64 | 5ad5e0880164736c0ffcebcb631e803f0e44c78e | /dumbo/migrations/0013_comment.py | 6c37a4f5dcc3e3b0cea42424f1eabbd859c55acf | [] | no_license | adarshsanjeev/dumbo | 4f45400430aa7bcc773457529df6c6b46f1b2cdc | 9a35187df26973cf379ac55c09223a98ab9a66dd | refs/heads/master | 2020-04-15T03:52:20.824305 | 2016-06-06T04:48:00 | 2016-06-06T04:48:00 | 60,191,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-06-05 00:37
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
... | [
"adarshsanjeev@gmail.com"
] | adarshsanjeev@gmail.com |
04218200d29ae2eb7ca49c722ea5dda1781ec7ae | 851a1203432c6e3f2a233094cdc756c6775105ad | /Ladies/migrations/0003_auto_20160619_1329.py | 37793e2b63008793b4903febde161d17b0fea7d0 | [] | no_license | AliSamir730/afportal | b859530fcd4c0b1a596f6ce6f3204a7e2417baa3 | 1e1b1c45521dc8a438b4237b235bb495b68b1840 | refs/heads/master | 2021-01-17T20:50:00.653370 | 2016-06-20T09:23:26 | 2016-06-20T09:23:26 | 61,533,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-19 08:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Ladies', '0002_auto_20160619_1326'),
]
operations = [
migrations.AlterField(... | [
"Sayyed Ali Hashimi"
] | Sayyed Ali Hashimi |
c2043258d0cb1b2340d9b37092c14dd00108570a | ae9e7000a0929c66ca6f37fdcbd6bf1b074f4ce6 | /prime number.py | 931db63ba68aa56297f885b55553f43ae7df473c | [] | no_license | Rafsun83/Python-Basic-Practice-Code- | cd5c9b840c3a39254678ba452c4d152e323e1616 | 9f5b952403420c4f61a967e575e8ac4bd9969c7b | refs/heads/main | 2023-05-31T23:01:15.279984 | 2021-06-13T15:13:10 | 2021-06-13T15:13:10 | 376,364,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import math
n = int(input("enter the number: "))
count = 0
val = int(math.sqrt(n))
for x in range(2, val+1, 1):
if (n % x) == 0:
count = 1
break
if count==0:
print(n, "prime")
else:
print(n, "not prime")
| [
"noreply@github.com"
] | Rafsun83.noreply@github.com |
b0e2c4a1e312ad2f25c5eb05bb59537b4ea2d16d | 465a569faf4c7c08462c19b16ee7a69b799099cf | /ImagineCup/Backend/BERT_Model.py | 135910286c772d8e6a7af1187ea8990fc00181ae | [] | no_license | SaiG18/ReadAR | 9d8387fa3d792a4e5c3ed57cd04fc6f58ffe5a40 | 8ea22ce1812002e56add19d56e2df4d312a3a4df | refs/heads/master | 2023-03-04T23:18:37.443075 | 2021-02-17T20:42:34 | 2021-02-17T20:42:34 | 240,667,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,604 | py | import xml.etree.ElementTree as ET
import torch
import pickle
import glob
import argparse
import numpy as np
from pytorch_pretrained_bert import BertTokenizer, BertModel
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import WordNetLemmatiz... | [
"saigurrapu18@gmail.com"
] | saigurrapu18@gmail.com |
0b3ffa2472130f693f78b74241bc9622c723b9ae | bfd1401812b40d8d03f3244197602ce881ba8d18 | /disquaire_project/store/migrations/0001_initial.py | e1370a5821780da13df47c088023f0c14b7fb15d | [] | no_license | zohraDev/Web_site_Discaire | 9ead99c93f236a13a61742b89288a0e621afa2a5 | ff77855790cd68dbffac62a469fa4e7ee5bba12d | refs/heads/master | 2023-04-21T05:41:08.560462 | 2021-05-04T22:03:09 | 2021-05-04T22:03:09 | 362,398,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # Generated by Django 3.2 on 2021-04-30 10:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
... | [
"zohra.bachi@edu.itescia.fr"
] | zohra.bachi@edu.itescia.fr |
ec284b07ef46968568cf8bc5f0c5444b6a483e9c | c3e93cba8c95d47c08e04a7d40478a894bb34c75 | /point_pick_test.py | a14f509f5c7c32c71fff2dcaba5c7f0ddbd263de | [] | no_license | aransena/home_ws | 2cef097f2961a1519b078346383b53f9fe67df21 | b240d257e8b65ba88acc5ad28a017b7f4b9f8ff4 | refs/heads/master | 2021-01-12T12:12:54.897028 | 2019-10-11T14:46:36 | 2019-10-11T14:46:36 | 72,365,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import matplotlib.pyplot as plt
fig = plt.figure()
plt.axis([0, 1, 0, 1])
ax = fig.add_subplot(111)
#ax.plot(np.random.rand(10))
def onclick(event):
print('button=%d, x=%d, y=%d, xdata=%f, ydata=%f' %
(event.button, event.x, event.y, event.xdata, event.ydata))
plt.scatter(event.xdata, event.ydata,... | [
"Aran Sena"
] | Aran Sena |
44fb15e133cabafabb0c6d5f000523ccf9ea8efc | c7c37bf0fac9b0fa35def68c3e8e6a6dde26e586 | /accounts/urls.py | 3a281c92ba2957f271d598c22e872810fab5ca4c | [] | no_license | prakashjha18/Django-app | 281eb9f490f9ee8db6f0cde38a0eda58f826c179 | 16a7fb015f389031d5cd676a99f98f3df0e2b12b | refs/heads/master | 2020-09-16T14:14:34.130277 | 2019-11-26T10:00:51 | 2019-11-26T10:00:51 | 223,795,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from django.urls import path
from . import views
urlpatterns = [
path("register",views.register, name="register"),
path("login",views.login,name="login"),
path("logout",views.logout,name="logout")
] | [
"prkjha25@gmail.com"
] | prkjha25@gmail.com |
77bce1362f9ddb1605900f9b2a128548e9573777 | 6090a53bf400d979e221f4751e9f77a053da1dba | /fuzzy.random.py | ffa39e2e8b5142563f679652d54856c893b52f81 | [
"MIT"
] | permissive | ronniechong/python-fuzzyrandom | 2db73f6b2e248ba674b63fe29d6a99d8339d6e87 | 2dce5e37bf1efbca171d76f7cde701bb23c38537 | refs/heads/master | 2020-05-30T13:06:06.651374 | 2014-06-14T13:40:18 | 2014-06-14T13:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py |
class Shape(object):
locX = 0
locY = 0
rgba = [0,0,0,1]
radius = 1
def __init__(self, locX, locY,rgba,radius):
self.locX = locX
self.locY = locY
self.rgba = rgba
self.radius = radius
def fnGetShapes():
shape = Shape(10,10,[0,0,0,1],1)
if __name__ == "__main__":
fnGetShapes() | [
"ronnie@otakuness.com"
] | ronnie@otakuness.com |
fc55ca8cdf98282b6938cf1baeadca9c0a489bc6 | cc213aac5f386f9384a098913b24e035a5d989d9 | /customer/urls.py | c9f4311675e69c697f6a0a4a25786e1964e23927 | [
"MIT"
] | permissive | arunkgupta/e-commerce-with-django | 0d92dff9d3d2d02f379b073a5d756a6893868db3 | f3ed08f6a1e2de1d787c10aad08a3e13ec25d489 | refs/heads/master | 2022-10-27T13:33:55.047909 | 2020-06-07T15:29:43 | 2020-06-07T15:29:43 | 270,604,127 | 1 | 0 | MIT | 2020-06-08T09:15:52 | 2020-06-08T09:15:51 | null | UTF-8 | Python | false | false | 733 | py | from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path("",views.home_page,name="home_page"),
path("shirts",views.shirts_page,name="Shirt"),
path("sports-wear",views.sports_wear_page,name="Sport Wear"),
path("outwear",views.outwear_page,name="Out... | [
"49620321+UsamaKashif@users.noreply.github.com"
] | 49620321+UsamaKashif@users.noreply.github.com |
e6be3362e3ca61dd08ffe293157ca23f84ef44ef | 43b91b923df83cbae79c17fdb56217ffecb4ec61 | /models/lfesm.py | 98f2989c181a744a5645ebf6fd4cd723705d8951 | [
"Apache-2.0"
] | permissive | Thesharing/LFESM | c6248552688f71a7cec636a50f7dd72566c4352c | e956ed76f5a85259000742db093726d4b4c51751 | refs/heads/master | 2020-12-24T04:04:15.257184 | 2020-02-17T19:32:11 | 2020-02-17T19:32:11 | 237,376,207 | 12 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,286 | py | import torch
from torch import nn
from torch.autograd import Variable
from torch.nn import CrossEntropyLoss
from transformers.modeling_bert import BertPreTrainedModel, BertModel
from .esim.layers import Seq2SeqEncoder, SoftmaxAttention
from .esim.utils import replace_masked
class LFESM(BertPreTrainedModel):
"""
... | [
"cyprestar@outlook.com"
] | cyprestar@outlook.com |
21e15bdd3e1ab4966d5e747d337391f72e4f311a | c6a2e58311b2d81429a1c5daadfd77891527cc35 | /easypr_ng/migrations/0001_initial.py | a44403dbc328a8f1427e1757933293eae6570303 | [] | no_license | EzechukwuJI/easypr | 5ab1115d84aa843cf9684af1184626cb42f7d8e0 | 32fab5e1236d3098c7b5ea884c243def1075ad96 | refs/heads/master | 2020-05-21T22:38:07.872764 | 2016-12-23T10:46:41 | 2016-12-23T10:46:41 | 65,491,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,577 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"ezechukwuji@gmail.com"
] | ezechukwuji@gmail.com |
628248bbe6a9431ccf0dcc7c8c86b2be54c57be1 | 4b57d0707a5a9336749cdeab89289d9359b90ade | /main/routes.py | 6ed5b1a1e8ea2cb56964044f1ec498307dd77e4f | [] | no_license | rahulsingh03/flask_blog | b7a761a6ce650d54e3a99475b3a9b46069a16e54 | 5686a9d3cc328ad39193df425b323a87b5671e37 | refs/heads/main | 2023-03-11T12:55:31.741863 | 2021-03-06T17:33:56 | 2021-03-06T17:33:56 | 343,853,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from flask import render_template,request,Blueprint
from flask_blog.models import Post
main = Blueprint('main',__name__)
@main.route("/")
@main.route("/home")
def home():
page = request.args.get('page',1,type=int)
posts = Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=5)
return ... | [
"rahulsingh03"
] | rahulsingh03 |
7084db07473bea0106fc62aa37080ec18e0b155d | f3baf8b850c896231b4c254a22567fd5d7a5035c | /Aula 5/Aula5.py | 9a5f8d8ffe7262bf95b7a16cc7342e14b5900b56 | [
"MIT"
] | permissive | Katakhan/TrabalhosPython2 | e1c23119ef582038ceea0004c872c00778fd326e | ab47af0ff3c00922857578e58a1a149d9e65e229 | refs/heads/master | 2020-09-21T02:15:04.505791 | 2020-03-19T13:23:41 | 2020-03-19T13:23:41 | 224,650,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # crie um programa que leia 4 notas
#imprima a maior
# imprima a menor
#imprima a media
#imprima se o aluno foi aprovado ou reprovado (Média 7 )
n1 = float(input('Insira sua 1 Nota'))
n2 = float(input('Insira sua 2 Nota'))
n3 = float(input('Insira sua 3 Nota'))
n4 = float(input('Insira sua 4 Nota'))
if n1 > n2 and n... | [
"antoniorafaelgastaldi@hotmail.com"
] | antoniorafaelgastaldi@hotmail.com |
e6b31beaef8c8f88ec504ad4710f02fb3f5d4da8 | 03e910208d4a1709f976ca985769a1179ca58b36 | /prueba2.py | 06114c0d88a35b13e10d5d2b0a2a7e7f476d5751 | [] | no_license | Aleredfer/kata1_morse | 2a8aef9cd2c65d8e87521f1f18f76cd2ca5cc0f0 | a26e029a2106e627aee77f37c26fbc1f275728c9 | refs/heads/master | 2020-06-09T23:29:54.351569 | 2019-07-03T16:54:31 | 2019-07-03T16:54:31 | 193,527,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import morse
from docx import Document
mensaje = input("dime algo: ")
telegrama = morse.toMorse(mensaje)
print(telegrama)
original = morse.toPlain(telegrama)
print(original)
| [
"aleredfer@hotmail.com"
] | aleredfer@hotmail.com |
fff21f3b86b8f64b2a98ff4439c32671983f23a0 | 97ba9d460d60617f43649699e6f58bc27053786e | /bankapp/MainClass.py | 54051541cfaac60e3ea9b8d951e3c67ba852b0bb | [] | no_license | prasad417/PythonDataScience | 259db1c022d030c20cfbbb6e8f6592e7cec9f0a3 | 6f4b28c5b3530fa783fe8efc652f850f43d11abb | refs/heads/master | 2020-06-12T22:39:21.508630 | 2019-07-25T03:20:36 | 2019-07-25T03:20:36 | 194,450,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from bankapp.bank.Bank import Bank
from bankapp.address.Address import Address
from bankapp.bankaccount.CertificateOfDeposit import CertificateOfDeposit
from bankapp.bankaccount.CheckingAccount import CheckingAccount
from bankapp.bankaccount.SavingsAccount import SavingsAccount
from bankapp.bankcustomer.Customer import... | [
"417.prasad@gmail.com"
] | 417.prasad@gmail.com |
491a75c45c5d9ecbdff33f07e22e1616e566865c | f395dd29a02de72ee5d07a2bd50fc6548d427838 | /02-Welcome-to-Python/the-print-function-III-parameters-and-arguments.py | c78ab769e71a0fd9f4a5af86d5452f12881f1dd7 | [] | no_license | susanahidalgo/python_class | f629b112d7a3c90dfa9cea2e37be17a0c44c6b4f | 34a8108e3515e00db1213e9126ada7c9754ba25a | refs/heads/main | 2023-03-02T23:23:36.404238 | 2021-02-03T11:18:08 | 2021-02-03T11:18:08 | 315,392,344 | 0 | 0 | null | 2021-02-03T11:18:10 | 2020-11-23T17:35:42 | Python | UTF-8 | Python | false | false | 275 | py | print("ABC", "DEF", "GHI")
print("ABC", "DEF", "GHI", sep="!")
print("ABC", "DEF", "GHI", sep="__*__")
print("ABC", "DEF", "GHI", sep=" ")
print ("Hello", "Goodbye", end="!§$")
print ("Hello")
print("A", "B", "C", sep="**", end="#")
print("A", "B", "C", end="#", sep="**") | [
"susanahidalgofernandez@MacBook-Air-de-Susana.local"
] | susanahidalgofernandez@MacBook-Air-de-Susana.local |
160f25500408285b50b57c713a0c4a7f21c5bad5 | fddc7a97ec337255247432140121519971121c25 | /boilerplate/model/Employee.py | b0d903e9ee07350b647bfbf430729e568ed4705a | [
"MIT"
] | permissive | DitoHI/flask-graphql | 5eaf6c46b617d008d535dc94b1a75db882fa791d | e27924ffe72f61feb8108f63af9245a1a5efa42f | refs/heads/master | 2020-05-18T11:48:37.320122 | 2019-05-01T08:34:54 | 2019-05-01T08:34:54 | 184,389,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from datetime import datetime
from mongoengine import Document
from mongoengine.fields import (
StringField,
DateTimeField,
ReferenceField,
ListField,
EmbeddedDocumentField,
)
from .Department import Department
from .Role import Role
from .Task import Task
class Employee(Document):
meta = {"c... | [
"ditohafizh@gmail.com"
] | ditohafizh@gmail.com |
ef9fb4dc93e0a719098e904c830a62c0ff4593f6 | 3d4c4c95c5599626ee5fd753261af5474b265a4a | /alice/karen.py | 1eac535056e5be8e7dff132d9c335d846a270901 | [] | no_license | nya3jp/icfpc2014 | a605119561be61ad0015c4c6477cbed7cebb25fc | 0617ce46d619e99db5763d3d25581fe9da842414 | refs/heads/master | 2020-05-19T21:44:37.047921 | 2014-07-28T17:36:18 | 2014-07-28T17:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,148 | py | ###
### How is the progress?
###
def main(world, ghosts):
map = convert_2d_array(get_map(world))
return (map, step)
def step(map, world):
x, y = get_my_pos(world)
map = set_2d_array(map, y, x, 1)
dir = decide(map, world)
print dir
return (map, dir)
def decide(map, world):
cx, cy = get_my_pos(world)
... | [
"takahashi.shuhei@gmail.com"
] | takahashi.shuhei@gmail.com |
6a0e594abf0e7e7595f7a372a3e2cf905d28aec4 | a4c8cdda03d435c782ace8e5ef7923e925265a8c | /src/web_store_django/asgi.py | ff3dedfa7f677d01f1b7a889c0683d5741f4b20a | [] | no_license | orbitturner/WebStoreDjango | a67102ba803ec0c265779c174563a150f5c5e86d | 4377b2c915f95aac89f922486a15b067c41eedb4 | refs/heads/master | 2023-02-13T09:50:15.892916 | 2021-01-17T20:05:46 | 2021-01-17T20:05:46 | 327,995,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
ASGI config for web_store_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJA... | [
"orbitturner@gmail.com"
] | orbitturner@gmail.com |
5a618f4ae147e389b88cd9be40e2216243232861 | 9c85b53419c785421360bfbbe89a78ac6bc78861 | /data/df_tools.py | 1c812f8bebc9a380c2a49345a2c28685b6dc68ad | [] | no_license | quant911/gafe_py | a5755e8b0a722d30bc691d7efb85abf0172db772 | 2be86ac6c13c131989fdeeb5cc0eab5667b91111 | refs/heads/master | 2022-04-07T12:50:32.037532 | 2020-03-15T03:32:43 | 2020-03-15T03:32:43 | 226,588,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # DataFrame and other Pandas related tools
# below is less than ideal, do we know why?
import pandas as pd
def waterfall_combine(combine_field, *args):
# type: (str, List[pd.DataFrame]) -> pd.DataFrame
df = pd.DataFrame()
for one_df in args:
if not one_df.empty:
if one_df.index.name !... | [
"feng.ning@iaqs.edu"
] | feng.ning@iaqs.edu |
445242551b300d4f1f525847dbb3e8b08e0460ff | da3d09b4449e311bc16a3c253a99169eacba2f83 | /muddery/utils/quest_dependency_handler.py | 03d9310255340b493b14b4eb7508553f4d3bf8b1 | [
"BSD-3-Clause"
] | permissive | lynnyuue/muddery | 02848c3d83626edb3eddd8e46d534a95e981c759 | 8211d4e98843b557bd45198474fa8966806f6245 | refs/heads/master | 2021-01-19T10:34:33.113253 | 2017-03-13T15:56:49 | 2017-03-13T15:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py | """
QuestDependencyHandler deals quest's dependencies.
"""
from muddery.utils import defines
from django.conf import settings
from django.apps import apps
from evennia.utils import logger
class QuestDependencyHandler(object):
"""
This class handels the relation of quest.
"""
def __init__(self):
... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
5a3358d07af3369d81ddbf4aabc3a0d348ac7017 | 13e101e5bf17a12f1b2053974c0bff09d9b39e45 | /commands/api/api_func/func_weather_api.py | f8569bf7f09f3edf2f33ca8aff3ba8c720bfd1cc | [
"MIT"
] | permissive | WayniD1973/Discord_bot.py | 6f823c34e3806c32cf451987d111a0685915b084 | c8cc3c7adcccbe2f1bc8a77cfb5a58eab2f7e10b | refs/heads/master | 2023-03-16T12:36:33.987243 | 2020-04-30T10:43:09 | 2020-04-30T10:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from urllib import request
import json
from commands.api.api_func.api_setting_and_keys.api_keys import weather_api_key
from settings import (
setting_city,
setting_countries_code,
temprature_scale,
)
from list_and_dicts.countries_codes import countries_list
def weather():
# Weather check command
u... | [
"Fredrik.Berzins@gmail.com"
] | Fredrik.Berzins@gmail.com |
a2b82844efe85b5b365a9021beec559448a80aaa | 11a883d6016167deffe5cc065fc08d492e727d34 | /dzisholiday/holidays.py | f56fd90a3439f086a56d7a1b884a8ed8ae3a9c75 | [
"CC0-1.0"
] | permissive | zichd/dzisholiday | 2a6d759a7ea0f9e6206e05769d55b87c3bf19a98 | 512886557eae5e99a79d03597bf1a8e073add702 | refs/heads/master | 2020-05-14T17:57:36.378782 | 2019-04-17T15:37:29 | 2019-04-17T15:37:29 | 181,902,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/env python3
import datetime
def getholidays(year):
"""Return a set public holidays in CZ as (day, month) tuples."""
holidays = {
(1, 1), #Novy rok
(1, 5), #Svatek prace
(8, 5), #Den vitezstvi
(5, 7), #Cyril a Metodej
... | [
"dzich@us.ibm.com"
] | dzich@us.ibm.com |
cba8906ed12ed46f8421e36895b3d60b14d9ffa7 | 5811411533f0afb074fcdac1b4c4be7a5165ca0b | /uva12250/uva12250.py | c95dbb0b899412509197e8bd94fbe488800b07d2 | [] | no_license | juanestebancg2806/uvaProblems | f49ef4de9b22106c14a5b60bac7ae84f2f02032b | d1ba9dd04705f53d5422651269a421d5066486f9 | refs/heads/master | 2022-04-26T04:12:45.906249 | 2020-04-27T00:13:31 | 2020-04-27T00:13:31 | 258,819,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from sys import stdin
def solve(s):
ans = ""
if s == "HELLO":
ans = "ENGLISH"
elif s == "HOLA":
ans = "SPANISH"
elif s == "HALLO":
ans = "GERMAN"
elif s == "BONJOUR":
ans = "FRENCH"
elif s == "CIAO":
ans = "ITALIAN"
elif s == "ZDRAVSTVUJTE":
... | [
"juanestebancg_@hotmail.com"
] | juanestebancg_@hotmail.com |
bc3d096110ff058ef2e3871a7175bde4321301b6 | 1983f6ee12926998d7f74e7842604374dd90a133 | /surrogate_models/surrogate_model.py | a1fa9ed9f74f1d769b66e6c32f345a6d490ceafc | [] | no_license | LMZimmer/temp | 89548560d9263141f1d8cdecaecb4a2833942db9 | 4a4505657aeb5765631bc2cb46307f797a555f2d | refs/heads/main | 2023-02-27T05:52:53.998222 | 2021-02-04T13:23:54 | 2021-02-04T13:23:54 | 300,592,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,918 | py | import json
import logging
import os
import sys
from abc import ABC, abstractmethod
from IPython import embed
import numpy as np
import pathvalidate
import torch
import torch.backends.cudnn as cudnn
from surrogate_models import utils
class SurrogateModel(ABC):
def __init__(self, data_root, log_dir, seed, model_... | [
"zimmerl@informatik.uni-freiburg.de"
] | zimmerl@informatik.uni-freiburg.de |
8b24409e35432496ca5297dc316aab3b31fa776c | 38536d63a23e3ce1df00ff065f5c8a29bdb9dcf8 | /archivehb/settings.py | f144cb9ac61503e9a8fbd81e7d38dfdb89cbde3d | [] | no_license | himelbikon/archivehb | 08b84cff1f98c66a62abd431bddbefb8955b7e23 | e238b3344ccf4b5d53e5a5f9f8e3743bb903a249 | refs/heads/master | 2023-02-20T06:04:36.979158 | 2021-01-12T15:38:55 | 2021-01-12T15:38:55 | 318,464,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,571 | py | """
Django settings for archivehb project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"skhimelhaque@gmail.com"
] | skhimelhaque@gmail.com |
a422c47d80ec8012d7987dbd727c5b148a59e05d | 7d018a6dd9afeb1a1086538991c11cae73462a01 | /rss/migrations/0003_auto_20200902_1526.py | 82f14d5ca3bb6356de1a4e6dab9dff11fde78697 | [] | no_license | dbrian57/rss-reader-api | 289c82aae9998e2c7bb24533bd5c9b203387ffaf | 0ae718eee23e05b045739983b14fb28a8ed0198c | refs/heads/main | 2023-08-16T19:22:30.985148 | 2021-09-27T23:12:16 | 2021-09-27T23:12:16 | 400,309,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.1.1 on 2020-09-02 15:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rss', '0002_auto_20200902_1424'),
]
operations = [
migrations.AlterField(
model_name='rssfeed',
name='categories',
... | [
"mason@masonegger.com"
] | mason@masonegger.com |
637bc4fa6b7e8999fe8509be90307bb89d4a1521 | 580113f827c013c2248d8ed4410cc5bb3cf9f112 | /oscar/lib/python3.6/site-packages/easy_thumbnails/tests/test_widgets.py | 6f7259e83c75b5efa3b9e5f5488edab55cbc7f44 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aiegoo/oscar | 2019a04f13920d0c0451e22fd20753bef01480cc | ab9b8a278cbc92a76ef2a92347cc44ced5a4e1d3 | refs/heads/master | 2022-12-23T14:07:29.747431 | 2019-10-03T05:06:02 | 2019-10-03T05:06:02 | 212,476,972 | 0 | 1 | BSD-3-Clause | 2022-12-10T04:26:14 | 2019-10-03T01:42:24 | Python | UTF-8 | Python | false | false | 4,464 | py | from easy_thumbnails import widgets
from django.core.files.uploadedfile import SimpleUploadedFile
from django.forms.widgets import ClearableFileInput
from easy_thumbnails.tests import utils as test
class ImageClearableFileInput(test.BaseTest):
def setUp(self):
super(ImageClearableFileInput, self).setUp()... | [
"eozz21@gmail.com"
] | eozz21@gmail.com |
808f8d67e107a2468bd12ea900d3b6bcad763710 | c0f56e9d408dcb636a553e1b124a904feed88a6a | /python/test-dask.py | 690a8b76ead85a1967ccc003cb2a6c8bcda79f2f | [] | no_license | andrejsim/test-analytic | 7be77153768f2860cee52a4f41546f11edc38987 | b0300ccb415f0fae0b51d0e95cb8c7c7f0e74068 | refs/heads/master | 2020-04-30T00:23:25.988682 | 2019-05-14T08:31:33 | 2019-05-14T08:31:33 | 176,501,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from dask.distributed import Client, progress
# pip install dask[complete]
client = Client(processes=False,
threads_per_worker=4,
n_workers=1,
memory_limit='2GB')
print(client)
import dask.array as da
x = da.random.random((10000, 10000), chunks=(1000, 1000))
y = x + x.... | [
"andrej.mihajlovski@meteogroup.com"
] | andrej.mihajlovski@meteogroup.com |
63233c2df1086b23480471755aed96e3819bcd65 | 1cd48a9c3e558e05e0ceeb9ab4b689a2d2be5cf8 | /sebs/gcp/__init__.py | f76e7c75d61c025df110e81852d4e582b46949f6 | [
"BSD-3-Clause"
] | permissive | spcl/serverless-benchmarks | e4d51042ab0c658e65a828d74e6123da8f4f97f6 | c9f0e25455ae9e0ebf8dc86fdc88bf5e6720db48 | refs/heads/master | 2023-08-31T08:57:25.961768 | 2023-08-23T11:50:35 | 2023-08-23T11:50:35 | 227,820,874 | 92 | 43 | BSD-3-Clause | 2023-08-23T11:27:10 | 2019-12-13T11:04:54 | Python | UTF-8 | Python | false | false | 149 | py | from .gcp import GCP # noqa
from .config import GCPConfig # noqa
from .storage import GCPStorage # noqa
from .function import GCPFunction # noqa
| [
"mcopik@gmail.com"
] | mcopik@gmail.com |
297aedb083d337383a8b7258cd2fc3d034ba1dd1 | 85584daa79b6c43fd07c49a977a129e04315d8ce | /enemy.py | 0bafe9d181d7987359e0d4239d0336748f59cca8 | [] | no_license | VoX/mazerun | 7a23df4bc8b2ccccbb4bcf9d999fead92424b7a2 | a6c5691104db59f70dd5002fb8d7dc9610bf98de | refs/heads/master | 2021-01-17T22:45:19.633251 | 2015-02-24T04:29:13 | 2015-02-24T04:29:13 | 31,239,967 | 1 | 0 | null | 2015-02-24T01:43:54 | 2015-02-24T01:43:54 | null | UTF-8 | Python | false | false | 2,216 | py | import pygame
from constants import *
import random
from util.perlin import SimplexNoise
perlin = SimplexNoise(period=500)
class Enemy(pygame.sprite.Sprite):
# base enemy class
# set speed
change_x = 0
change_y = 0
def __init__(self):
# call parent
super(Enemy, self).__init__()
# set height/width
... | [
"nlax76@gmail.com"
] | nlax76@gmail.com |
3fdda1fb75e41e5c677d25dc130e7d22dcd5c2cc | 2b9d16318d5d38a72e96e31b4e568b4fde5c9cee | /venv/bin/pip3 | bc57ca82760da914df822a4e7e1328d12e1f7959 | [] | no_license | shubhaminstazen/twitter_rest | b500d3e26ae6cfffd32ff4933a28b20aad419640 | d3b0c815bd29f86524d9e3e642ae7e6845a07fa1 | refs/heads/master | 2020-07-08T03:48:30.897080 | 2019-08-24T11:57:10 | 2019-08-24T11:57:10 | 203,555,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | #!/home/shubhamkathe/PycharmProjects/twitter/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"shubham.kathe@instazen.com"
] | shubham.kathe@instazen.com | |
bb44827457f093c2de5ae63b100be439f73457ad | db12d6ac87844e8a3d6e1c2e4e9f01743c35e63d | /mygroup.py | 1b2d9a07c3d0c516965bb89e5e44f74ebdd0d32d | [] | no_license | Kisuyamii/Iamcountingonlove | a67da9decb729ec87578cd97857e6c72ed9fa446 | 38244e218ff036926b7da68bc3ebe92b2d7fd181 | refs/heads/main | 2023-01-23T08:18:28.766345 | 2020-11-25T22:09:46 | 2020-11-25T22:09:46 | 316,063,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | groupmates = [
{
"name": "Василий ",
"surname": "Петрушкин",
"exams": ["Информатика", "Физика", "Web"],
"marks": [5, 5, 5]
},
{
"name": "Савелий",
"surname": "Петров",
"exams": ["Физика", "Web", "КТП"],
"marks": [5, 3, 4]
},
{
"name": "Эльдар",
"surname": "Смирнов",
"exams": [... | [
"noreply@github.com"
] | Kisuyamii.noreply@github.com |
b9ed4c62008e28d2bf0ade31b99bc33a80d4800b | 18d11ee454b05f0344b9f5542916d18685473ba5 | /chipy_org/libs/slack_utils.py | 37489aaf26a481deafb8e4734377c3d8dd39982f | [
"MIT"
] | permissive | chicagopython/chipy.org | d117040761d35bb106d6e45e092c96c073827277 | c14182b7ad3d9d889c0127d20d32a8c78c05924d | refs/heads/main | 2023-07-12T22:00:54.381936 | 2023-06-20T04:48:02 | 2023-06-20T04:48:02 | 4,348,048 | 94 | 86 | MIT | 2023-07-06T21:29:09 | 2012-05-16T14:47:15 | Python | UTF-8 | Python | false | false | 897 | py | import json
import requests
def post_message_to_slack(channel_key: str, channel_name: str, message: str):
"""
This function is used to post messages from chipy.org to the chipy slack
channel_key: secret key for slack channel
channel_name: human readable description of the slack channel
message: s... | [
"noreply@github.com"
] | chicagopython.noreply@github.com |
95aec0d065df00a7668e67fcb6e19b3cd23b539b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /XYYdtkhGPXXJ3QQNB_24.py | 997a52f1323cf1df1a0b52572d1f0f25f1fb8cdf | [] | 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 | 780 | py | """
Create a function that takes a list of strings and returns a list with only
the strings that have numbers in them. If there are no strings containing
numbers, return an empty list.
### Examples
num_in_str(["1a", "a", "2b", "b"]) ➞ ["1a", "2b"]
num_in_str(["abc", "abc10"]) ➞ ["abc10"]
num_... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f50106ca09c41774778c8e2b795cdcdfef3b92a2 | f49530a0c567260bb4fda613a19f37b95c9ec91f | /Website/data_omzetten_bruikbare_table.py | 5e03d9c24873b5fbb36deb23ae0cf7026e82376a | [] | no_license | brandonhillert/GroupProjectAI | 8be70503b5a8387cc9a079efe73e29f58d79d204 | e201807c6a6344ebf547aa9128626ef39836c328 | refs/heads/master | 2021-04-20T11:21:36.325546 | 2020-04-08T20:16:03 | 2020-04-08T20:16:03 | 249,678,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,973 | py | import psycopg2
import re
def insert_into_table(newrecs):
try:
if len(newrecs) >= 6:
c.execute(
"INSERT INTO categoryrecommendations (id, prod1, prod2, prod3, prod4, prod5) VALUES (%s, %s, %s, %s, %s, %s)",
(newrecs[0], newrecs[1], newrecs[2], newrecs[3], newrec... | [
"brandon.hillert@student.hu.nl"
] | brandon.hillert@student.hu.nl |
556bd1d5550ba4a7b8c38f6abbe20587e61facf1 | abcd9c54883eef187a8314988431945a1a0f8676 | /old/tests/test_zebra2/test_simulation/test_controller.py | 817519986b9e28135811bb57d4812489d0459c1a | [
"Apache-2.0"
] | permissive | PandABlocks/PandABlocks-FPGA | 834f6eba17ffc0372e82495e1a456858b20b55c5 | 9ad5512556c94d38f817b0c02a38d660c8777f43 | refs/heads/master | 2023-08-16T23:40:38.067162 | 2023-08-01T16:36:39 | 2023-08-02T10:08:47 | 86,712,341 | 17 | 11 | Apache-2.0 | 2023-09-08T13:19:55 | 2017-03-30T14:29:10 | VHDL | UTF-8 | Python | false | false | 6,591 | py | #!/usr/bin/env python
import unittest
import sys
import os
import time
from pkg_resources import require
require("numpy")
# Module import
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..",
"python"))
from zebra2.simulation.controller import Controller, Block, CLOCK_... | [
"tom.cobb@diamond.ac.uk"
] | tom.cobb@diamond.ac.uk |
5bdfe72f4ae8eae50237cbd9ac83a08e78210719 | 3821faabdf6d2cf8577ebcceea78986018766a80 | /project/configuration.py | 3624cd4408a5d0c3c28396b1898c9237f24aefc9 | [] | no_license | andrei4b/Music-Transcription-with-Semantic-Segmantation | b40ac200ff5389ed190f29b4214b6658bbb1166b | 5c5f1b5ee1af90e37079a6b0f18c15e31e1ba2b6 | refs/heads/master | 2020-04-16T07:43:11.908510 | 2019-06-21T11:31:45 | 2019-06-21T11:31:45 | 165,396,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py |
MusicNet_Instruments = ["Piano", "Harpsichord", "Violin", "Viola", "Cello", "Contrabass", "Horn", "Oboe", "Bassoon", "Clarinet", "Flute"]
Harmonic_Num = 6
def get_MusicNet_label_num_mapping(offset=1, spec_inst=None):
ori_num = [1, 7, 41, 42, 43, 44, 61, 69, 71, 72, 74]
mapping = {}
if spec_inst is ... | [
"whitebreeze@MCTLAb-Tim.iis.sinica.edu.tw"
] | whitebreeze@MCTLAb-Tim.iis.sinica.edu.tw |
35c7a6434893bd97a06d7e1efc7402d9569d27e1 | ff05d487fa7a79e3045c139421ce9031b2aa7360 | /effdet/__init__.py | e18f261c1e0db380dc4c33563dd29d204da34d34 | [
"Apache-2.0"
] | permissive | phager90/efficientdet-pytorch | eb92e6d5d4eb6c367d23081ce6abd0b2d1fa0cf2 | bbd84c0e7ec2a23c6ae7447c437789524ba141dd | refs/heads/master | 2023-07-17T13:33:25.835335 | 2021-08-30T18:23:37 | 2021-08-30T18:23:37 | 291,003,268 | 0 | 0 | Apache-2.0 | 2020-08-28T09:14:34 | 2020-08-28T09:14:34 | null | UTF-8 | Python | false | false | 350 | py | from .efficientdet import EfficientDet
from .bench import DetBenchPredict, DetBenchTrain, unwrap_bench
from .evaluator import COCOEvaluator, FastMapEvalluator
from .config import get_efficientdet_config, default_detection_model_configs
from .factory import create_model, create_model_from_config
from .helpers import loa... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
dfb72750f57261a472645ea9dcd6437e8b99810f | 5a7a0a268e281dd985eb9889a152114da249f7ea | /0x01-python-if_else_loops_functions/1-last_digit.py | b1ec9ca9294af9e4471fc3cd19cf83d6ce7b3db4 | [] | no_license | Gt-gih/holbertonschool-higher_level_programming | 3b17b910c3496f482e203fca26d72b71be3fe471 | fb765e2d1f2a4a6fba1a24bbb1c2a0b2a7ca269a | refs/heads/master | 2023-03-17T01:53:12.367576 | 2020-11-04T20:39:32 | 2020-11-04T20:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
if number < 0:
sign = number * -1
lastdigit = sign % 10
lastdigit = lastdigit * -1
else:
lastdigit = number % 10
print("Last digit of {} is {} and is ".format(number, lastdigit), end="")
if lastdigit > 5:
print("greater than 5")... | [
"juan.bueno01@usc.edu.co"
] | juan.bueno01@usc.edu.co |
b539d96fb9dfac175343b0bfb1eb0c9df1eaa14c | d2fe4daf1d56448da419c4f821d33480571d614d | /polls/migrations/0001_initial.py | 34084c4d0ef07b0c6d2e8c9bf61653af689b0713 | [] | no_license | ahmadRagheb/-Python-Django-Polls | 94c6299d56f11624619d8cc0783a03897ad60fb3 | 59ed11cbf171f05ce3d8f484a9d389ba797c74c1 | refs/heads/master | 2021-01-18T15:46:07.404407 | 2017-04-05T06:33:46 | 2017-04-05T06:33:46 | 86,681,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-03-27 11:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"pq4@hotmail.co.uk"
] | pq4@hotmail.co.uk |
fc85e3f36afff9d60b70d5c926133f8d8913420a | e22e03d9761f5c6d581b5af2e77343e8ee4b201d | /edk2/UefiCpuPkg/ResetVector/Vtf0/Tools/FixupForRawSection.py | f88c8a4cd7d55b1a6d81d116255186447fc8022a | [
"OpenSSL",
"BSD-2-Clause"
] | permissive | SamuelTulach/SecureFakePkg | 759975fcc84d62f05ac577da48353752e5334878 | f34080a6c0efb6ca3dd755365778d0bcdca6b991 | refs/heads/main | 2023-08-17T07:51:22.175924 | 2021-10-01T10:46:14 | 2021-10-01T10:46:14 | 410,938,306 | 94 | 14 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | ## @file
# Apply fixup to VTF binary image for FFS Raw section
#
# Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full tex... | [
"samtulach@gmail.com"
] | samtulach@gmail.com |
d3edf2087f2d3f1fd55bfdc256ecf4c7e731bc80 | 220535ba153c2fca757c264cab56d2ff835f4fd4 | /06_支持向量机SVM/SVM.py | ccd576a8492ed9058fb35c7649529824503ccbdf | [] | no_license | cp4011/Machine-Learning | d41b5b8533b8d2210d1e69b944f8ea997c2488b4 | 7f4576278990f8a2de302e69eb6373d169f9fbc8 | refs/heads/master | 2020-04-04T15:41:53.912450 | 2019-03-26T15:37:35 | 2019-03-26T15:37:35 | 156,048,459 | 2 | 0 | null | 2018-11-04T06:14:57 | 2018-11-04T04:16:03 | Python | UTF-8 | Python | false | false | 34,559 | py | from numpy import *
import matplotlib.pyplot as plt
"""SMO算法工作原理:每次循环中选择两个alpha进行优化处理。一旦找到一对合适的alpha,那么就增大其中一个同时减小另一个。
这里所谓的“合适”就是指两个alpha必须要符合一定的条件,条件之一就是这两个alpha必须要在间隔边界之外,另一个条件则是这两个
alpha还没有进行过区间化处理或者不在边界上
"""
# SMO算法相关辅助中的辅助函数
# 1.解析文本数据函数,提取每个样本的特征组成向量,添加到数据矩阵; 添加样本标签到标签向量
def loadDataSet(filename):
data_ma... | [
"957628963@qq.com"
] | 957628963@qq.com |
7cb2c5805eecc9c8faee87a4930868df40309f57 | d18a109c3edea57ffada8b7e8aa52e6923986ca2 | /farmacia/Farmaceutico.py | 7c2022c8e44fac6a8eead73383cc2dea472377f0 | [] | no_license | LuisNataan/sistema-farmacia | ac9bbd71a6d3e72e2b93e8e740731dd1adb3a2fa | 174b106044b1a68c3cce5f2ac2441ba50196de4d | refs/heads/master | 2023-04-09T19:20:20.044014 | 2021-04-15T20:13:55 | 2021-04-15T20:13:55 | 358,262,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import Receita
import Paciente
from datetime import date
class Farmaceutico:
def __init__(self, nome):
self.nome = nome
def receber_receita(self, paciente: Paciente, receita: Receita):
self.paciente = paciente
self.receita = paciente
def validar_receita(self):
validade = ... | [
"luisnataan556@gmail.com"
] | luisnataan556@gmail.com |
b84badf5453b9da77d6585eaf0168e546e5134ae | bd79fcab4cc4914acca2b0c8b13c0917124ef22b | /gwmemory_install/waveforms/__init__.py | 7c2b03b41f0c1e5c49cc360d7efc990437b4f212 | [] | no_license | TheArctarax/Mumma-project-data | 14b9cfe667999e5b5f072d6d23edd575aa0e0d65 | 1f7ed64be8cf5dfbf20ea4b16c4b245f2c50ee27 | refs/heads/master | 2023-01-01T00:23:46.302217 | 2020-10-17T00:31:58 | 2020-10-17T00:31:58 | 272,562,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from .base import MemoryGenerator
from . import approximant, mwm, nr, surrogate
| [
"alvin.li@ligo.org"
] | alvin.li@ligo.org |
46aee3666a0496d5b3452ceceaeb8da128d70334 | 6ec91b363b077bffd33f15300a0935124e9fb915 | /Cracking_the_Code_Interview/Leetcode/1.Array/83.Remove_Duplicates_from_Sorted_List.py | a9f8e6c2b167393289ada32678731d6b428df83f | [] | no_license | lzxyzq/Cracking_the_Coding_Interview | 03232515ae8eb50394d46322d36b230d1a626fcf | 79dee7dab41830c4ff9e38858dad229815c719a0 | refs/heads/master | 2023-06-05T19:52:15.595289 | 2021-06-23T22:46:02 | 2021-06-23T22:46:02 | 238,068,000 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | '''
@Author: your name
@Date: 2020-05-31 21:12:01
@LastEditTime: 2020-05-31 21:13:10
@LastEditors: your name
@Description: In User Settings Edit
@FilePath: /Cracking_the_Code_Interview/Leetcode/Array/83.Remove_Duplicates_from_Sorted_List.py
'''
# Given a sorted linked list, delete all duplicates such that each element ... | [
"lzxyzq@gmail.com"
] | lzxyzq@gmail.com |
d86206d066645cd8abe5f89fee940a84256ca9f5 | d9c4257225ec78fa89f5fffdb831078baa7a6831 | /generate_googleip.py | 43417a5e18c6a51d36d578990b4a9a8051f5a13f | [] | no_license | bygloam/checkiptools | e892be612748411db762029447f0e46b50fabbcf | 0a0b9e6511f7b718142beabb3096b5e363917307 | refs/heads/master | 2021-01-18T03:50:23.526187 | 2015-09-28T06:38:09 | 2015-09-28T06:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,947 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import netaddr
import ip_utils
# generate_ip_range 整合IP段去黑名单IP并排序
# test_load 计数IP数量
# ip_range_to_cidrs 将IP转换为CIDR格式
# Support format(支持的格式):
# # Comment (#后面为注释)
#
# range seperater:
# 每个范围可以用 逗号(,) 和竖线(|) 或分行进行分割
#
# Single rang format: (单个范围的格式):
# "xxx.xx... | [
"x19960620"
] | x19960620 |
8e8d199f66b95bc37ea3a43acad4e07b5f58432a | b4b232b43fe6e78958fd7acc89bf4ad3cf952e14 | /hw1bp6.py | 946ca62e1e6ac458207c2385cdd345ff1ecbfb43 | [] | no_license | tsbertalan-homework/holmes323hw1b | 0e174fa218d89a4a617e5b7fb1f666c5ec203cf6 | 222d90f58668bd2f110032ceec48e620290551de | refs/heads/master | 2020-05-30T23:10:44.152141 | 2014-02-25T18:18:51 | 2014-02-25T18:18:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | '''
Created on Feb 24, 2014, 3:58:19 PM
@author: bertalan
'''
import numpy as np
import matplotlib.pyplot as plt
from Integrators import integrate, logging
def FitzhughNagumo(Iapp):
'''This closure gives the RHS function for a particular applied current value.'''
def dXdt(X, t):
'''t is not used (the... | [
"tom@tombertalan.com"
] | tom@tombertalan.com |
908ca3d0e98cfce504182b72c1cda8b7034148f1 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/devel/lib/python3/dist-packages/tf2_msgs/msg/_TFMessage.py | 7c572a7bef8e93d5b177fa3298b0e13c1f0b6527 | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /local-scratch/xlv/catkin_ws/devel/.private/tf2_msgs/lib/python3/dist-packages/tf2_msgs/msg/_TFMessage.py | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
79045d0e08c92e2a3c5caab247a184ca753ba7e7 | 10f047c7631b3aad90c7410c567c588993bfa647 | /PythonDispersal/src/testingTheequations/testingOneandMxRnk.py | fd3836064bed75df86f5c4fa20d5f02e4d5e77cc | [] | no_license | ruthubc/ruthubc | ee5bc4aa2b3509986e8471f049b320e1b93ce1d5 | efa8a29fcff863a2419319b3d156b293a398c3a9 | refs/heads/master | 2021-01-24T08:05:40.590243 | 2017-08-30T01:37:56 | 2017-08-30T01:37:56 | 34,295,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | '''
Created on Mar 18, 2015
@author: Ruth
'''
med_rnk = 50.0
numJuvs = 100.0
inputSlope = 2.0
xbr = 0.5
slp = inputSlope/numJuvs
oneRnk = ((-1 + (med_rnk * slp) + xbr) /slp) # The max rank where everyone gets 1 (max) food
mxRnk = (((med_rnk * slp) + xbr) / slp) # the max rank that receives foo... | [
"rvsharpe.ubc@gmail.com@69186f74-b5a6-b451-f1d6-44d06303a42d"
] | rvsharpe.ubc@gmail.com@69186f74-b5a6-b451-f1d6-44d06303a42d |
5bd256c007d5edd5a6b9ae55770467ce2b973d6e | 99c04a62991acb6149c719baed073d64999c8275 | /test/pos.py | be997fd354ea8a1dae104af2546b4c3de1d9741c | [] | no_license | SaraBazargan/SpellChecker | 924e6dddd456cba57df5318c4de247e57deffb1b | 22866d806647973a12738fb8177efe44d3021339 | refs/heads/master | 2020-07-07T16:59:15.974046 | 2019-08-20T16:30:11 | 2019-08-20T16:30:11 | 203,414,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | import codecs
import lxmls.sequences.hmm as hmmc
import simple_sequence as sq
simple=sq.SimpleSequence()
hmm = hmmc.HMM(simple.x_dict, simple.y_dict)
hmm.train_supervised(simple.train,smoothing=0.0000001)
'''
print "Initial Probabilities:" , hmm.initial_probs
print "Transition Probabilities:" , hmm.transition_probs... | [
"sara.bazargan@gmail.com"
] | sara.bazargan@gmail.com |
768845d0f820cd84af0e1e5bef463ee48cb0ca5c | f441552f25387a2d6be4052fa54fb83d1ef0de68 | /make_test_valid.py | 8a66b57f3e5c5e54258051623141d892c3f2e5a3 | [] | no_license | knkumar/find_mentions | e7d3138c47dc420204a4740fb359d5864b726c9d | 4fddcdae0621a078864f70f4f98f9d906017af70 | refs/heads/master | 2021-01-21T12:39:28.209813 | 2012-03-27T21:56:21 | 2012-03-27T21:56:21 | 2,906,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | #L645 Final Project
#Dec 24 2011
#This file writes the "test file" with the mention/coref information as input to the scorer
# The way we do this is to mark every start with (0 and every end with 0)
# if there are more than 2 coref-spans starting on the same word, then the longer span start first followed by | - (0|(0... | [
"krankumar@gmail.com"
] | krankumar@gmail.com |
ed47896ec418bbdf18a3fc7db9e939b7324fa5ca | 5cf44be60a9accc2aa8b0cea1c8790f023b10553 | /build/lib.linux-x86_64-2.7/npmc/atom_class.py | e8140144adf3d3aa48c68cbd9a1137b351c65eed | [] | no_license | smerz1989/np-mc | 7ecc36864a1975bde42d0ddf579e8a1bb9666de9 | 3d13104edf1b36f0817928f262a0b9ae40f6bfb1 | refs/heads/master | 2023-07-20T03:25:48.891576 | 2023-03-07T20:55:58 | 2023-03-07T20:55:58 | 37,389,780 | 0 | 2 | null | 2023-07-06T21:15:55 | 2015-06-13T22:14:58 | Python | UTF-8 | Python | false | false | 2,224 | py | """This module contains the Atom class and all the helper functions associated with atoms.
"""
import read_lmp_rev6 as rdlmp
class Atom(object):
"""The Atom class represents an atom described by the LAMMPS full atom style.
Parameters
----------
atomID : int
The unique integ... | [
"stevennmerz@gmail.com"
] | stevennmerz@gmail.com |
07669307b0bba93e4d0932b52de1644fa2f27b4f | 5e24036ad211e48d3563e894706f9ac4e061cb6b | /flatdata-py/generator/tree/nodes/trivial/enumeration_value.py | 25cbf82d8e24defe0542ab18359903f5848dcdc1 | [
"Apache-2.0"
] | permissive | tianchengli/flatdata | b7a02d23cf8bb5e84e8e1b01d2f94874c832876b | 03ccf3669254ddef171d23a287c643dcd28650d2 | refs/heads/master | 2020-04-29T15:49:02.229669 | 2019-03-17T21:34:51 | 2019-03-17T21:34:51 | 176,240,604 | 0 | 0 | Apache-2.0 | 2019-03-18T08:50:36 | 2019-03-18T08:50:35 | null | UTF-8 | Python | false | false | 538 | py | from generator.tree.nodes.node import Node
class EnumerationValue(Node):
def __init__(self, name, value, properties=None):
super(EnumerationValue, self).__init__(name=name, properties=properties)
self._value = value
@staticmethod
def create(properties, value):
result = EnumerationV... | [
"noreply@github.com"
] | tianchengli.noreply@github.com |
66953d5904633965862c7f85713173bc73e0f6f7 | 0a5a8a2a5ca8156abd04b9ec01f43dac15d6d396 | /lists.py | 0fcc574ae9f8424992b72194fc43fed57d77941d | [] | no_license | AlexandrTyurikov/rock_paper_scissors_bot | 1343a095bd877e218b1746991cb3d3304848a548 | ae0f547fb23cb08dfea4988d50b7b73734b52988 | refs/heads/master | 2020-08-23T20:46:11.678830 | 2020-03-12T01:01:19 | 2020-03-12T01:01:19 | 216,704,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | from random import choice
def rand_rps():
list_rps = [
"👊🏻",
"✌🏻",
"✋🏻"
]
ran_rps = choice(list_rps)
return ran_rps
def rand_win():
list_win = [
"👍 Ты победил, давай еще❗️",
"👍 Ты справился❗️",
"👍 Я проиграл❗️",
"👍 Я повержен, сыгра... | [
"tyur.sh@gmail.com"
] | tyur.sh@gmail.com |
10fe56ba44affdbad6d967b5a30aa266284a8baf | 15c1f0560c3f910fb7c332b2cd0cd9ccdcb230f5 | /auto-grader/testCode/testhomework2.py | 2e7d967f958b3791e0f1f19bbd26bf2652d2a5a0 | [] | no_license | IzayoiNamida/JHU2020_WebSecurity | 3356ef578dab48981ca601c8c302947047d721d1 | 7ce466eace4f9725124e4db43c56790b3f73fea3 | refs/heads/master | 2023-01-29T15:57:48.556969 | 2020-12-14T03:46:18 | 2020-12-14T03:46:18 | 320,150,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from webdriver_manager.chrome import ChromeDriverManager
url = "http://127.0.0.1/sampletest.html"
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get(url)
total = 10
passed = 0
def test(a,b,c):
glob... | [
"cuigang@MacBook-Pro.local"
] | cuigang@MacBook-Pro.local |
8c0d4280ef7b0ca550d5ae718533d5ce2a45db18 | 2500528e85c5629432c8e16120891eb75c722475 | /dataset_specific.py | 8028ba99c37603e4267329763d4e5dce98c3fa1e | [
"BSD-3-Clause"
] | permissive | sunnyhardasani/caleydo_server | 443c1dbdcaafcb48ac5ad356a72c16b26911848e | 58414e5088ddb668d0e209f24445c7aea7090a1a | refs/heads/master | 2020-09-05T12:22:18.676944 | 2015-09-17T11:02:19 | 2015-09-17T11:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | __author__ = 'Samuel Gratzl'
import flask
import range as ranges
from caleydo_server.util import jsonify
import caleydo_server.plugin
def asrange(r):
if r is None:
return None
return ranges.parse(r)
def format_json(dataset, range, args):
d = dataset.asjson(range)
if bool(args.get('f_pretty_print', False)... | [
"samuel_gratzl@gmx.at"
] | samuel_gratzl@gmx.at |
4788aecda97b3c91c49bc69c3976cb26b649805f | e5d8bf505f6988be4a6c9e65b1d8e6a424bad033 | /app/main_test.py | 88ac1bf328d638a7c8b8eaf0d33a65fa086ff260 | [] | no_license | nyctrn/fastapi-postgres-example | 0c274728912fd9988d9f4b7db04db32ff15311d0 | 0d1497021bff5beb6c37d9022742e73e91c7f365 | refs/heads/orm | 2023-04-28T14:06:27.782104 | 2021-05-15T14:49:14 | 2021-05-15T14:49:14 | 366,810,296 | 0 | 0 | null | 2021-05-12T18:14:23 | 2021-05-12T18:14:23 | null | UTF-8 | Python | false | false | 1,114 | py | from fastapi.testclient import TestClient
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from data.database import Base
from main import app, get_db
import pytest
SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL, connect_args={"check_sa... | [
"argiris@norbloc.com"
] | argiris@norbloc.com |
0566f90892410f98c94c99c1f00e2466aee8578f | 659d44eb7549cfa346a0224edc7559520d776529 | /ColumnDeriver/__init__.py | 7c1f598d85fccf352b12ac63e534c78cc5f6ce5f | [] | no_license | willsmithorg/gridtools | 862db6a3573785128e7348dd1332b309fbb17cbb | cfe83b0a9b33992c68fd885ae10c5c954314c912 | refs/heads/master | 2023-04-18T19:38:34.536593 | 2021-05-03T00:57:48 | 2021-05-03T00:57:48 | 336,426,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | __all__ = ['Base',
'Len',
] | [
"will@willsmith.org"
] | will@willsmith.org |
5dcd673fb7d0be9ebfc26aecdd35d14589069ac0 | 8021e122ba6bad9caf3b7ceed25fd3aab93dc2a2 | /bookexchanger/asgi.py | ba5c9ec98c4285ff7add0d6581e887766b66ff35 | [] | no_license | shubhnagar/bookexchanger | 55c94b311662e25161f638a0024d1ff8065e34cc | 354cc75e9f101d99773f110344f89bd5892f2e1a | refs/heads/master | 2022-04-06T14:26:14.407920 | 2020-03-07T19:33:51 | 2020-03-07T19:33:51 | 245,693,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for bookexchanger project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"nagarshubh2000@gmail.com"
] | nagarshubh2000@gmail.com |
f55dc596a671b7e0de6e99d22584ed490c2d2b65 | f1d48c192ea2fac7736c6d24476dff3ddb34f9be | /company/forms.py | ce0fbee091135dd8f22bcb5c6b02ac1a6f5e159f | [] | no_license | amrithrajvb/EmployeeDjango | 99e58bca60a14bc99951492df3443908ca384c9e | 5fd00aca92ef78876a8c8e94bdf605acff497882 | refs/heads/master | 2023-07-14T21:34:02.786231 | 2021-09-02T08:01:36 | 2021-09-02T08:01:36 | 401,602,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | from django import forms
from django.forms import ModelForm
from company.models import Employee
import re
class EmployeeAddForm(ModelForm):
class Meta:
model=Employee
fields="__all__"
widgets={
"emp_name":forms.TextInput(attrs={"class":"form-control"}),
"department":f... | [
"amrithrajvb012@gmail.com"
] | amrithrajvb012@gmail.com |
4934988b2db6dae86e095bc58f45321b12ccc344 | ac10533762ea45494b7f17f9dcb5ed8e83e81aaa | /InvoiceSchedule.py | 6720f4255ddcdb2887ee8ed704fbb20bee962b43 | [] | no_license | mdabdulkhaliq/workspace | 9b1916a8863f0ad83331768c039670abbed57b39 | 4bc434e29f3e0b67c8ee5a1b342dd97397737e97 | refs/heads/master | 2022-12-06T04:24:52.216773 | 2020-08-20T13:02:59 | 2020-08-20T13:02:59 | 288,977,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | from datetime import datetime
from datetime import timedelta
Order_Term_Start_Date = datetime(Quote.EffectiveDate).date()
Order_Term_End_Date_String = Quote.GetCustomField('Order Term End Date').Content
Order_Term_End_Date = datetime.strptime(Order_Term_End_Date_String, '%d/%m/%y').date()
No_Of_Years = (Order_Term_En... | [
"noreply@github.com"
] | mdabdulkhaliq.noreply@github.com |
2925395fc52a4049109545beef4c2ae0eb988174 | ef9ff20d1983b018cb768320f1cf01af0376fe0e | /ppmessage/api/handlers/ppaddpredefinedscriptgroup.py | 743916545473f0af76710312de4fd03c2f92f821 | [
"Apache-2.0"
] | permissive | Vegisau/ppmessage | f3f802903f3fb50b2efed319ca7da46674f97cae | d63337bf03f47570a9dd722b1f4c76464bffbc85 | refs/heads/master | 2020-04-08T11:01:28.744508 | 2018-11-27T07:01:12 | 2018-11-27T07:01:12 | 159,290,481 | 0 | 0 | NOASSERTION | 2018-11-27T07:00:32 | 2018-11-27T07:00:31 | null | UTF-8 | Python | false | false | 1,477 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2016 PPMessage.
# Guijin Ding, dingguijin@gmail.com
#
#
from .basehandler import BaseHandler
from ppmessage.api.error import API_ERR
from ppmessage.core.constant import API_LEVEL
from ppmessage.db.models import PredefinedScript
import copy
import uuid
import json
import... | [
"dingguijin@gmail.com"
] | dingguijin@gmail.com |
1481ce54c560bf109cb0a252866aa68141fad3cf | a49b59bc6e24f8f0e4967e6ad42568c0b4225f01 | /HotelBedsSimulation.py | 48f0387e6f9e7efb1fa8a583ffc0492760538165 | [
"Apache-2.0"
] | permissive | matabares/NaxcaServer | 5738fa137df76b743832906fbd86bc7a783a85a7 | be3fd1df1d015f5099e1684d6b5b6309e3aeb45d | refs/heads/master | 2020-04-03T23:15:02.654103 | 2019-07-12T22:48:30 | 2019-07-12T22:48:30 | 155,624,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | class HotelBedsSimulation:
def HotelBedsResponse(self, info):
info.send_response(200)
info.send_header('Content-Type', 'text/xml;charset=UTF-8')
info.end_headers()
contentLen = int(info.headers['Content-Length'])
postBody = info.rfile.read(contentLen)
body = str(post... | [
"cdaniel94@gmail.com"
] | cdaniel94@gmail.com |
a3710acc85b2f157b0c4e2eb34b2128a47cdb2d7 | cf1c2e7420c4432f3b51e421d56a48fd58bbf6cf | /main.py | d6edbf6bb45648d91ded43319c458785780d777f | [
"MIT"
] | permissive | jaggiJ/alpharena | aac443c93c84196fdbe820bc60de9e94e8d37591 | bd5a359fc11be0d9a5f2f0a711caa10ddc3c984d | refs/heads/master | 2020-04-02T21:38:42.013247 | 2018-11-21T13:00:14 | 2018-11-21T13:00:14 | 154,806,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | import sys
from classes.base_class import Glad
from modules.base_mods import yes_or_no
magic = [{'name': 'Fire', 'cost': 40, 'dmg': 180},
{'name': 'Water', 'cost': 30, 'dmg': 150},
{'name': 'Earth', 'cost': 20, 'dmg': 110},
{'name': 'Air', 'cost': 10, 'dmg': 60},
{'name': 'Heal'... | [
"jagged93@gmail.com"
] | jagged93@gmail.com |
c019c47ddd586097167ac1adad4d580e98f8f0b3 | 6fde327fb62be930204d97105453323cb51009fd | /list3.py | 14d4d82bea9e44a5c638e28bb52cb2b9ecc89116 | [
"MIT"
] | permissive | Kantheesh/Learning-Python | ff7551c77972fd788651ad95026786eb1c897bb6 | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | refs/heads/master | 2020-06-04T21:36:24.266039 | 2019-08-13T19:11:53 | 2019-08-13T19:11:53 | 192,200,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | names = ['ajay', 'kiran', 'ramesh']
print(names[1])
# update -> change ajay to vijay
names[0] = 'vijay'
print(names)
# names[3] = "new" # IndexError | [
"noreply@github.com"
] | Kantheesh.noreply@github.com |
5b7d6b08d473ac8bdbbca0d226f93664b99bb724 | 668fe42b774e7bac84722aae166346436946f6fc | /test/test_modify_group.py | 9fefc2c8959b63b39f45693888a044da651d3f19 | [
"Apache-2.0"
] | permissive | olgadmitrishena/python_training2 | 38ab84a7245c486057d0e13e0d632d24090179e3 | 0b618f8aab2603c3fa42fdcb4d4bcc3f0a84a1c3 | refs/heads/master | 2020-03-21T02:31:17.363059 | 2018-08-20T05:59:17 | 2018-08-20T05:59:17 | 138,002,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py |
from model.group import Group
from random import randrange
def test_modify_group_name(app):
if app.group.count() == 0:
app.group.create(Group(name="test"))
old_groups = app.group.get_group_list()
index = randrange(len(old_groups))
group = Group(name="New group")
group.id = old_groups[index... | [
"olga.dmitrishena@gmail.com"
] | olga.dmitrishena@gmail.com |
3e9ab12e3f05521915f005600258b1671d2a2c34 | 2b807998aefb868f0c64c69a8dc9be1fd11a3380 | /WiCRM/settings/views.py | 17cfa1320b0e7eaf67e69ec8c0e901d33e730549 | [] | no_license | WiWhite/WiCRM | a7d1b12531f235948645f1dbb2c69a1cb284ab38 | d85de1112b3cfc6b26b89450551682ea88c0a4fb | refs/heads/master | 2023-04-05T17:20:18.890662 | 2021-04-13T12:27:46 | 2021-04-13T12:27:46 | 333,537,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,767 | py | from smtplib import SMTPException
from django.shortcuts import render, redirect
from django.views.generic import CreateView, View
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.contrib import messages
from django.conf import settings
from django.core.mail imp... | [
"bigsplash1990@gmail.com"
] | bigsplash1990@gmail.com |
db23dd07ed6c386f68b59e8625caf8620674e3d0 | 44e8cea8e2c995e82c6e829d724cd74c2c48a3be | /prob2.py | a564470589063ef90f6bd2d2342c5e65c0fc8030 | [] | no_license | paulneves77/8.942-HW5 | 84a7f2fa851e77ea91c84f0a45869cf72d1f3954 | d4c5ca98500788c85ea4db8e7f922fe738929fe1 | refs/heads/main | 2022-12-20T02:03:28.744007 | 2020-10-02T07:16:29 | 2020-10-02T07:16:29 | 300,437,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | # -*- coding: utf-8 -*-
import getpass
username = getpass.getuser()
from pathlib import Path
from astropy import constants as const
from astropy import units as u
import numpy as np
from scipy.special import zeta, gamma
# formatting for matplotlib
import matplotlib.pyplot as plt
plt.style.use(Path(f'C:\\Users\\{user... | [
"paulneves77@gmail.com"
] | paulneves77@gmail.com |
473071e28a906231ae8b197469deb81a91806af8 | 52e32bccdbc85d41d97b81d7ebaf48cea0d783b7 | /constants.py | 018c78aa9ef112a3fa1d35c5c276fad84c6b3ca1 | [] | no_license | Casidi/ParallelPBT | 996203dee1bdb1f18c847530c3da6e4208f8b2ff | 82fdaf0954a17d29800881fae6d4293f0920d2da | refs/heads/master | 2020-04-04T10:30:14.843043 | 2018-12-08T05:37:42 | 2018-12-08T05:37:42 | 155,857,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,541 | py | from enum import Enum
from hyperopt import hp
import hyperopt.pyll.stochastic
class WorkerInstruction(Enum):
ADD_GRAPHS = 0
EXIT = 1
TRAIN = 2
GET = 3
SET = 4
EXPLORE = 5
def get_hp_range_definition():
range_def_dict = {
'h_0': [0.0, 1.0], 'h_1': [0.0, 1.0],
'optimizer_lis... | [
"tcfsh22215@gmail.com"
] | tcfsh22215@gmail.com |
100e43951fa34d533d26b0d85b60addf2a22611b | 0a06fe98a9c5938e7f4befbf1d256a19e00adf6c | /projects/mdb/rsf/su/rsflab5/SConstruct | df7b143604b2d7c43b5a296712765efdcb6dd7c4 | [] | no_license | chenyk1990/useful-utilities | 44259cc7ceb8804b9da86133ec81fa9b65096cea | 55d4a220f8467d666358b2ebff4b5cee1ade33c3 | refs/heads/master | 2023-08-15T18:42:55.899015 | 2023-08-10T03:00:13 | 2023-08-10T03:00:13 | 49,804,476 | 17 | 13 | null | null | null | null | UTF-8 | Python | false | false | 1,568 | from rsf.proj import *
# Velocity model
Flow('syncline.asc',None,
'''
echo
0 1100
0 1100
500 1100
1000 1300
2000 1000
2700 1100
3200 1000
4000 1050
n1=2 n2=8 in=$TARGET
data_format=ascii_float
''')
Flow('syncline','syncline.asc',
'''
dd ... | [
"chenyk1990@gmail.com"
] | chenyk1990@gmail.com | |
8fb31fd438861607ff4d545d20935ab962ad9aa6 | 7afdb701907c6e1ed983cec7b6fbabb5db4948a7 | /cmake-build-debug/catkin_generated/pkg.develspace.context.pc.py | 5c799291511e6728d79cd4f1640930f774563027 | [] | no_license | kmpchk/hector_quadrotor_swarm | 09addf613f430a94dc47a8e40feb628ae70c808a | e96bdce7c3c94d623f5e320aba34eb58a783d6c0 | refs/heads/master | 2020-04-07T06:24:22.025484 | 2018-11-18T23:31:42 | 2018-11-18T23:31:42 | 158,133,693 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "quadrotor_flight"
PROJECT_SPACE_DIR =... | [
"iregin50"
] | iregin50 |
382f559a6b0e883aaa56c6502e8f06fe7b0e9a2c | 29ea573a3cdde125282292948b5868dc7d02d49d | /Educated_cinema/child/src/cinema/models.py | bf922797e42aadc2a1e488be8afde97546e26e33 | [] | no_license | EngCoder-Hawraa/CHILD-CINEMA | dff3a2c4e679b333982159aec3be3b21e2790040 | 2ca3314a3fb8e67c66a2ee687dfdc19060051651 | refs/heads/master | 2022-02-07T03:57:57.055761 | 2019-08-16T03:17:51 | 2019-08-16T03:17:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=150)
def __str__(self):
return self.name
class Cinema(models.Model):
name = models.CharField(max_length=150)
date = models.DateTimeField(auto_now='')
content = models.TextField(null=False)
pic =... | [
"hawraa arkan"
] | hawraa arkan |
643ce15c8585b0ffba4cc46cf62532e5c3935ec6 | 1b211954e6056644f4c2485fed2a87529c272cf6 | /db.py | 0404738a1bf40225b3a320875525f5a3fe5e3dc7 | [] | no_license | shushanfx/quick-stock | d75fe1a5f8b6f31263a3950b0877c42de26b32b8 | 0ba6a48135b461d1993d688ba3c8d093a0e09064 | refs/heads/master | 2020-03-21T18:05:51.255136 | 2019-02-01T11:22:11 | 2019-02-01T11:22:11 | 138,872,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | import os.path
import codecs
import demjson
def save(stock_id, a_list):
file_path = os.path.join('./data', stock_id + '.json')
return demjson.encode_to_file(file_path, a_list, encoding ='utf-8', overwrite=True, compactly = False)
def fetch(stock_id):
file_path = os.path.join('./data', stock_id + '.json')
retu... | [
"dengjianxin@qiyi.com"
] | dengjianxin@qiyi.com |
af5ae2b698dc0367aac55dff558ad448399ff2c2 | e6b4985e2c492c6cc329ff8490ead0f88642e250 | /Amazon/array/ Implement strStr().py | 0e78039d2f5ab3518bb0e28fd8994821496ddf72 | [] | no_license | rohith788/Leetcode | 6ded5e80728159391069b688d47eb74e0315b165 | a86f569fd752fcc4ca15d8fdf0b0c29dd00d614e | refs/heads/master | 2021-07-08T02:49:14.746255 | 2021-03-07T22:08:51 | 2021-03-07T22:08:51 | 228,939,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
if len(needle) == 0: return 0 #if needle is blank
if len(haystack) != 0:
if len(needle) > len(haystack): #if haystack is smaller than needle
return -1
n_len = len(needle)
h_len = len(h... | [
"srohith788@gmail.com"
] | srohith788@gmail.com |
386602ebed8e9d086f216a0cc688279869226701 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/errors/types/invoice_error.py | 431d0930370e00ac85c01434493a999174a378c9 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,269 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
f80e20e6ce7eef5b226bd559cf2d35b7f2a0700c | 3b4c766ed91d0b7b5244df0b9cf2b66215e7f280 | /hello/urls.py | 272c2b7ea0bfc90962bbcd2253ace604591c16cd | [] | no_license | shake551/SNS_wannabe | d36c0e0907a7c53476e441cb096b103c15c2c787 | 562adafdf4157fc58d5b10a2a71bfe33baa0918d | refs/heads/main | 2023-02-21T06:55:43.569986 | 2021-01-05T07:00:33 | 2021-01-05T07:00:33 | 324,520,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from django.urls import path
from . import views
from .views import FriendList
from .views import FriendDetail
urlpatterns = [
path('', views.index, name='index'),
path('<int:num>', views.index, name='index'),
path('create', views.create, name='create'),
path('edit/<int:num>', views.edit, name='edit')... | [
"hiroki.yamako@ezweb.ne.jp"
] | hiroki.yamako@ezweb.ne.jp |
720b0285c77d6be38d36e2c71c5c67d9c734648d | 4b529326a5ada3a655c38301be781c33669839f5 | /tsunami_tools.py | 9233ce158eee338ae81a0591bbdf21f02e276d66 | [] | no_license | harshita-kaushal/TsunamiGlobe | 0ab816ee84065dfca73b97e6d3de0652f05b7997 | d2267fb0e79466fbe5ed6c086d83446be09c169b | refs/heads/master | 2020-03-19T01:24:04.675889 | 2018-05-09T17:30:05 | 2018-05-09T17:30:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,048 | py | #!/usr/bin/env python
import sys
import numpy as np
import matplotlib
matplotlib.use('Agg')
from matplotlib import pylab
from matplotlib import pyplot as plt
import matplotlib.colors as mcolor
import matplotlib.animation as manimation
import matplotlib.colorbar as mcolorbar
from mpl_toolkits.axes_grid1 import make_axe... | [
"johnmaxwilson@gmail.com"
] | johnmaxwilson@gmail.com |
3c500db05684cd0c0482c6ba1043cb8711687527 | 739696cb824ea23405173c5051f08534c6ae27d3 | /day2-homework/exercise4.py | 9c0428e01ac97b9a3b19e6ee41d8ba21360985af | [] | no_license | hgalagali/qbb2015-homework | 025285d9dd0dbf2faaa3921f8e76aa2ce30654ea | 1d78925658acbed8ef990e5fec6e0ebc8ddcba00 | refs/heads/master | 2020-05-31T12:13:37.868899 | 2015-08-31T15:25:39 | 2015-08-31T15:25:39 | 41,310,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/env python
import pandas as pd
import matplotlib.pyplot as plt
df=pd.read_table("/Users/cmdb/qbb2015/stringtie/SRR072893/t_data.ctab")
df2=df["FPKM"]
top=df2[0:11572]
middle=df2[11572:23144]
bottom=df2[23144:34718]
plt.figure()
plt.title("FPKM values")
plt.boxplot([top, middle, bottom])
plt.savefig("box... | [
"hgalaga1@jhu.edu"
] | hgalaga1@jhu.edu |
513488fb677a28b865c94788e32575b2a4c788da | 1c965e975218b6478e50413fb87b75b7d5e9dadd | /blog/urls.py | bb0e157d0d0f4a7436063f7bee1b4dfef2c68f15 | [] | no_license | latishasumardy/my-first-blog | 6f97371091fac1af9afaf915694c422f131a2e31 | 51ae0593ee693c497fbb9d5104f3b89ccb6f7e20 | refs/heads/master | 2021-01-01T16:02:15.781327 | 2017-07-20T23:00:20 | 2017-07-20T23:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>\d+)/edit/$', views.post_edit, name='post_edit... | [
"lsmarty23@gmail.com"
] | lsmarty23@gmail.com |
ac97c7b842716eb74b97408e214b725c9617484a | b59c2f4d476dae4e37acb30bb9df71daf589c708 | /singleton.py | 733d8fd7f5317813e5a9058b91c6ce7d5573fa75 | [] | no_license | catVSdog/design_patterns | 3cd5ab583b37e4149e55c59fa08d1c6e0b1ffcfd | b9384ef5b40259f9c855f4d60bf02b0e2d3bd933 | refs/heads/master | 2021-07-09T10:43:23.437706 | 2021-03-19T01:38:10 | 2021-03-19T01:38:10 | 231,211,122 | 2 | 0 | null | 2021-03-03T09:17:25 | 2020-01-01T12:02:49 | Python | UTF-8 | Python | false | false | 6,358 | py | """
单例模式
一般情况下,一个类每次实例化都会产生一个单独的对象。而单例模式的要求是:多次实例化,只产生一个对象。
这就要求对类的实例化过程进行干预,使其只有在第一次实例化时产生一个对象,以后的多次实例化,都是返回第一次创建的对象。
这就需要两个步骤:
1.是否已经有了实例了。
2.1 如果没有,那么创建实例,存储实例,将实例返回
2.2 如果已经有了,那么取出实例,将其返回
首先说,如何存储实例,一般利用具有唯一性的东西, 如 类变量
在说,如何干预实例化:
1.将类视作类,类实际通过 __new__ 方法,创建新对象,那么就重写 __new__方法。
2.有一个对象object, 当 object()时,其实调用的是 ... | [
"windorbird@gmail.com"
] | windorbird@gmail.com |
821a2b4b9edb37d15409ef8739f0428c789f0cff | 7b95d4f78b6bd1e6eb089b57ac38f89c48685ee8 | /migrations/versions/2b1dbac24b45_new_fields_in_user_model.py | 98f3f2ea72fb664f37ade67431735d833dbe0f3d | [] | no_license | pandreyn/microblog-python-flex | 77e822b6f564f39180f50aa294d2708a2a67df18 | f02759fd98264c2efeae5bf828c1ccfd8b3332d1 | refs/heads/master | 2021-04-29T23:12:12.930862 | 2018-03-06T05:33:07 | 2018-03-06T05:33:07 | 121,550,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """new fields in user model
Revision ID: 2b1dbac24b45
Revises: c414e32cfcd9
Create Date: 2018-02-14 18:55:15.665604
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2b1dbac24b45'
down_revision = 'c414e32cfcd9'
branch_labels = None
depends_on = None
def upgrad... | [
"v-anpetk@microsoft.com"
] | v-anpetk@microsoft.com |
7329b36832858ee7f92c5421d1a10f57c7733671 | f1e203b154f309dc0025f88acc5d0f369c031a70 | /reddit_api.py | 230feead556e84f490815697b941201d231b8af8 | [] | no_license | radiochickenwax/algo_challenge | eb8382d5713dce4f1f2880cf36e6451907eca7a7 | 4992ed7ba2d11bf80a0f64c8c90f4e7d370d7f9d | refs/heads/master | 2021-08-15T12:25:45.034102 | 2017-11-17T21:12:36 | 2017-11-17T21:12:36 | 111,150,761 | 0 | 0 | null | 2017-11-17T21:08:20 | 2017-11-17T21:08:20 | null | UTF-8 | Python | false | false | 4,808 | py | import requests
import json
import re
from bson import json_util
import os
from models import User, Team, Game, Challenge
from datetime import datetime
from random import shuffle
from slackclient import SlackClient
num_teams = int(os.environ['NUM_TEAMS'])
team_members = int(os.environ['NUM_MEMBERS'])
token = os.enviro... | [
"kyle.bible@gmail.com"
] | kyle.bible@gmail.com |
2d73ae346589bc5cd766d0a44c3a57acc84e8252 | 48350e98d638656d8cac51b539c98a000400f8da | /ex5.py | dda6bab367d22b99294f885352766cfbd9a80d64 | [] | no_license | WenHuber/Learn-Python3-the-Hard-Way-ExampleCodes | 25a09ea5c95bd8a3a644e8da33f813f7562dce31 | 1cfdb1f7be08906ba18abc6408f8b24f7acb2094 | refs/heads/master | 2020-04-18T13:18:13.251863 | 2019-01-25T15:10:31 | 2019-01-25T15:10:31 | 167,558,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #Exercise5. More Variables and Printing
my_name = 'Zed A. Shaw'
my_age = 35 #not a lie
my_height = 74 #inches
my_weight = 180 #lbs
my_eyes = 'Blue'
my_teeth = 'White'
my_hair = 'Brown'
print(f"Let's talk about {my_name}.")
print(f"He's {my_height} inches tall.")
print(f"He's {my_weight} pounds heavy.")
print("Actually... | [
"noreply@github.com"
] | WenHuber.noreply@github.com |
7a5391e4a8541d1248b470d05a858b472d81f6cb | 713028844e118751c0bcf79627b8ebfe7599c608 | /RealTimeFaceDetectionOnLiveVideoFeed/src/GoogleNet.py | c3ff2046b015f6b6ff98b41e53de87e2a37ea4a4 | [] | no_license | mahima14/FaceDetectionRealTimeVideo | c103e2d1e7a3df2b8c4ca99e118196acd97d6ea0 | 5d6561c709c4b7144a677b28b5b88e8f781c7ced | refs/heads/master | 2021-04-06T01:23:28.220467 | 2018-07-25T16:08:51 | 2018-07-25T16:08:51 | 124,431,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Dropout, Flatten, Dense
import numpy as np
import pandas as pd
from keras.utils import np_utils
from keras.layers.containers import Graph
from keras.models import Sequential
#DATA PREPROCESSING
df = pd.read_csv("fer2013.csv")
df.head()
df.... | [
"mahima.agarwal14@gmail.com"
] | mahima.agarwal14@gmail.com |
c0789c0f07c9a60555475f1427905abf58911feb | 591018f4f72b57028f65ac840d81f19a6ad9368b | /zimu_ml_sys/core/graph_embedding/graph_embedding_base_task.py | c66255bc4f4cc1dd070a681949068fdad23683d6 | [] | no_license | nicaibutou1993/ZimuMLSys | 4bea11be191218061d13c8ca816db5aa2ea42f3f | 2ff8f7e4eff5ad30f1d52c75348cf1e93adce52e | refs/heads/main | 2023-05-08T09:46:29.674308 | 2021-06-04T06:45:31 | 2021-06-04T06:45:31 | 365,101,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,905 | py | # -*- coding: utf-8 -*-
import os
import time
import numpy as np
import pandas as pd
from zimu_ml_sys.constant import PREPROCESS_DATA_PATH, FEATURE_DATA_PATH
from zimu_ml_sys.core.graph_embedding.deep_walk import DeepWalk
from zimu_ml_sys.core.graph_embedding.graph import build_graph
from zimu_ml_sys.core.graph_embed... | [
"nijian@jiangduoduo.com"
] | nijian@jiangduoduo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.