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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcf73361e13334179a65507f2fd77fdb971b2c40 | 8ca47670ed87ff22b1086032e14175bb1b6760c7 | /scrapyCrawler/scrapycrawl/scrapycrawl/scrapy_redis/dupefilter.py | e17cd6c15b889ecc4131e8c88f9910d2803b4684 | [] | no_license | public-spider/spider | 789aad3b0f781464267f03234cd26ea4e1147978 | f1e57f3ac6548b1bb8f6a5dc1f03c39c481f9311 | refs/heads/master | 2020-12-24T14:53:38.040968 | 2014-10-20T03:15:27 | 2014-10-20T03:15:27 | 22,784,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | '''
Created on Aug 13, 2014
@author: whisky
'''
import redis
import time
from scrapy.dupefilter import BaseDupeFilter
from scrapy.utils.request import request_fingerprint
class RFPDupeFilter(BaseDupeFilter):
def __init__(self, server, key):
"""
initialize duplization filter
... | [
"260643431@qq.com"
] | 260643431@qq.com |
52e17291e5c10f8c1e415d3e6968fd57a2fa3c58 | b5321f6865f91ef8fb783a3e76e15e0d13e5a711 | /lesson_11/lesson11_ex1.py | 8aeb00e829a0e0bced0a4739ba3f56ff5a8b1983 | [] | no_license | DianaChumachenko/PythonIntro | 6689772391ed7f7e3c9380cf8470ae67fd3e9dd4 | 46e7c4c8b07ebdb076073910337b18f4d7f5ac1a | refs/heads/main | 2023-02-09T09:50:51.679456 | 2021-01-04T19:31:27 | 2021-01-04T19:31:27 | 311,464,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from pprint import pprint
d = dict(zip([x for x in range(32, 128)], [chr(x) for x in range(32, 128)]))
pprint(d) | [
"dchumachenko0508@gmail.com"
] | dchumachenko0508@gmail.com |
f8527e61ab34f1911b17fa049c376e9b2b0500f1 | 2bb2d5f01b1f9c77e8092f1bdbf15eb10b263b2b | /livecareer/items.py | 0e150df1eb46e48395e3d8a284e86ddb68281e46 | [] | no_license | vasarmilan/livecareer-scraper | 5ab96500ed167e319eb6814953cc8f7a885bdffd | f1b545a5de506fb223d94699cfb42c66897a9959 | refs/heads/master | 2022-04-22T09:49:54.860732 | 2020-03-17T11:58:08 | 2020-03-17T11:58:08 | 247,695,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class LivecareerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"vasarmilan@gmail.com"
] | vasarmilan@gmail.com |
1e6e066f903701f4d59405a4f73cd24b8d2114a3 | f950882940764ace71e51a1512c16a5ac3bc47bc | /src/ThirdParty/freetype/src/tools/PaxHeaders.20567/chktrcmp.py | b08e1c1af6a391977a0aba1d7924afee49d7c048 | [
"FTL"
] | permissive | ViacheslavN/GIS | 3291a5685b171dc98f6e82595dccc9f235e67bdf | e81b964b866954de9db6ee6977bbdf6635e79200 | refs/heads/master | 2021-01-23T19:45:24.548502 | 2018-03-12T09:55:02 | 2018-03-12T09:55:02 | 22,220,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | 30 mtime=1398010730.538379929
30 atime=1417845746.439132282
30 ctime=1398010730.538379929
| [
"nk.viacheslav@gmail.com"
] | nk.viacheslav@gmail.com |
47b47f8164ca12deea39a8616361bde823c92e50 | 09c976bf8d942bb30e284fff9f76db1845c2aa6a | /UTD_CS_6375/HW6/ScikitKmeansAndKmeans++.py | b8d692a229dbc4680cbc8e6554d8e7a633fb2639 | [] | no_license | mikexie360/UTD_CS | 232d62ca992b43c8f4917f5525fc006fdc7132df | 23f7a6266841f6c25dd649d56060b961343869f7 | refs/heads/master | 2023-04-30T06:40:55.272767 | 2021-05-25T00:48:02 | 2021-05-25T00:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 10 17:29:41 2020
@author: ROHITH PEDDI
"""
import pandas as pd
import numpy as np
from sklearn.cluster import KMeans
data_train = pd.read_csv('leaf.data', header = None).values
M, N_c = data_train.shape
cluster_centers_actual = data_train[:, 0]
X = data_train[:, 1:N_c]... | [
"rohith.peddi7@gmail.com"
] | rohith.peddi7@gmail.com |
d3ae884063fc0c7dd51548c9a177d6e35488fb1e | 0687f997984b71293ba896862758f46103901b36 | /compute_prediction/cnn_test.py | 2999faa86459e04be7a87ac6426d9d8c0203540b | [] | no_license | XinYao1994/Clara | 28b6ad41428301a49401d60d36d15741857dbbdc | eea38c52beb17600dd325f465a3740f267bab2e5 | refs/heads/master | 2023-08-29T22:01:17.451714 | 2021-11-01T04:08:25 | 2021-11-01T04:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | import warnings
warnings.filterwarnings("ignore")
import numpy as np
import tensorflow as tf
#import matplotlib.pyplot as plt
import tqdm
import csv
import re
import pickle
with open("training.pickle",'rb') as ftrain:
dataset_train = pickle.load(ftrain)
X, Y = dataset_train
with open("testing.pickle",'rb') as ... | [
"qiuyimingrichard@gmail.com"
] | qiuyimingrichard@gmail.com |
fdb31dc080683eafda61d023918635e0d3993089 | 19a5407847be78fcc48dfedbfa677c78e26d39e6 | /PythonLearn/函数式编程/高阶函数/filter.py | 87444e5290e4104e6f75fc8d9fa03eae05144359 | [] | no_license | gong782008371/yuquan | f9ac943ef6f1f8a0f855eb7be289ba5f830fccfe | 93ef594ec671f3ac3a945609065bd481238cead6 | refs/heads/master | 2020-06-05T02:25:47.070041 | 2017-01-11T11:31:18 | 2017-01-11T11:31:18 | 31,074,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding:utf-8 -*-
#Python内建的filter()函数用于过滤序列。
#
#和map()类似,filter()也接收一个函数和一个序列。
#和map()不同的时,filter()把传入的函数依次作用于每个元素,然后根据返回值是True还是False决定保留还是丢弃该元素。
def is_odd(n):
return n % 2 == 1
print filter(is_odd, [1, 2, 3, 4, 5, 6, 9]) #[1, 3, 5, 9]
def not_empty(s):
return s and s.strip()
print filter(not_empty, ['A... | [
"782008371@qq.com"
] | 782008371@qq.com |
394b9512d2800f6c8f99772dfb85f1a9e29e87b2 | d653c7f6667403ca587b6c68fc4af28b74adf083 | /blog/models/post.py | e399a54e1ded0a08e3de3667660873892049d8d9 | [] | no_license | JoshParinussa/django-blog | 5e1aafd6849f5c070ed5f4901d7b8d16df71d7cf | dde1d708617742b84e56d38678acad198eb51b4f | refs/heads/master | 2022-12-12T16:40:56.662777 | 2020-09-12T11:25:12 | 2020-09-12T11:25:12 | 294,923,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """Banner models."""
from django.db import models
from django.utils.translation import gettext as _
from sorl.thumbnail import ImageField
from blog.helpers import file as file_helper
from .base import BaseModel
class Post(BaseModel):
"""Blog model."""
title = models.CharField(_("title"), max_length=255, db_... | [
"yehezkieljosh@gmail.com"
] | yehezkieljosh@gmail.com |
2aeb217b02dbe82cdc5445f4bec4aafb01b07802 | 68049b03dbbd9a3d778571794472e07c05fb00ad | /python/courses/jose_portilla/flask/sandbox/10_databases/10_1_flask_and_databases_practice/setupdatabase.py | e2f38694c1a0eb91547cf484e4e8aa594a19934b | [] | no_license | tjkhara/notes | c9e96ecea6efed860c521eb7df562c5715091aea | 5602a25ba23104e4154700108f1b8a3a0144f712 | refs/heads/master | 2023-01-20T07:42:47.129359 | 2020-11-24T06:43:24 | 2020-11-24T06:43:24 | 285,811,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from basic import db, Puppy
# creates all the tables
# takes classes and converts them into tables
db.create_all()
sam = Puppy('Sammy', 3)
frank = Puppy('Frankie', 4)
miles = Puppy('Miles', 10)
# These will say none because they are not in the database yet
# They don't have any ids
print(sam.id)
print(frank.id)
prin... | [
"tkhara@gmail.com"
] | tkhara@gmail.com |
10576346c4146798661b702e5f8b36a7e905b5f2 | 9f68ebfdfdc6d53f83552dcb221ae76d181790d3 | /sales/migrations/0007_invoice_becomes_receipt_too.py | bd1cf54803a022aa54c55d8ea506af4f5b7a18c3 | [] | no_license | marcor/silversly | 90695502cb4eeb5c66274275d22c6aaeec39dc04 | 68cdf30cdca5e475caae6dd1358ae75e0414c2b0 | refs/heads/master | 2023-04-30T22:55:05.203805 | 2021-05-21T17:59:18 | 2021-05-21T17:59:18 | 369,352,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,492 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Receipt.cart'
db.alter_column('sales_receipt', 'cart_id', self.gf('django.db.models.fiel... | [
"marcor@users.noreply.github.com"
] | marcor@users.noreply.github.com |
70243d88dd542f055a340a1e310647eb9f0dc9be | 18810b28505bf2625b40ebd9a673548203616261 | /Job Scraper/apply.py | 71784c63fa34df09b85c8e58f8fd794768b8ecd3 | [] | no_license | hzbrz/Scrapers | b7af43172218da32f0fcf605249803f082a8ec56 | 419341badcf6b0bc1fd01c403837c65ccb0492b5 | refs/heads/master | 2021-07-13T09:26:00.313902 | 2020-06-04T06:29:20 | 2020-06-04T06:29:20 | 136,759,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | def easy_app(easy_app_element):
print(easy_app_element) | [
"hasanthedev@gmail.com"
] | hasanthedev@gmail.com |
485c81b87d1eebfd760738dacd40b66dfdd2c946 | 74c8c890de1522cff4b8a30b54d801bbc440265f | /Desafios/desafio029.py | a1602a393ace223e763099e9b3764f43c6bcbb62 | [] | no_license | fndalemao/Python | b302d90bdc190c61304868b5c8906e723830220c | d402dc2896ece28e2f46771b279c85ff0296067f | refs/heads/master | 2020-04-03T15:48:18.435243 | 2019-04-11T04:01:06 | 2019-04-11T04:01:06 | 155,301,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | vel = int(input('Digite sua velocidade: '))
if vel > 80:
print('Você foi multado em {} reais!'.format((vel-80)*7))
else:
print('Você está dentro do limite de velocidade!') | [
"fnd.alemao02@gmail.com"
] | fnd.alemao02@gmail.com |
cf19035358b62ecd6f88a9ffd8a23464e7149a69 | 2863645627f099cad919c12dd1949bb3704923d2 | /tests/test_datasets/test_bottom_up_dataset.py | b218c4942ad7ae8b65bab8f7ea505b0d2bd7baf1 | [
"Apache-2.0"
] | permissive | zhangyu92/mmpose | d43c873111ac5a4614d3675495de3af771626eec | 17557522ce3e41f830973079c5b4321935c41439 | refs/heads/master | 2023-02-18T20:44:54.814555 | 2021-01-12T03:21:11 | 2021-01-12T03:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,707 | py | import tempfile
import numpy as np
import pytest
from numpy.testing import assert_almost_equal
from mmpose.datasets import DATASETS
def convert_coco_to_output(coco):
outputs = []
for img_id in coco.getImgIds():
preds = []
scores = []
image = coco.imgs[img_id]
ann_ids = coco.g... | [
"noreply@github.com"
] | zhangyu92.noreply@github.com |
31298541903089b84d357150a735501103053981 | 0a57f05221d425119cb2994c5686a95e01b33d46 | /ex21.py | 67a0f965521d5f8cce8027401d93c01786fc9214 | [] | no_license | luroto/lpthw | 371ad2de422e7656b9f18461808d28847d17971f | e89329477d0c5c5b34d7998832b395c05385876b | refs/heads/master | 2022-06-02T17:56:01.873932 | 2020-05-02T17:52:11 | 2020-05-02T17:52:11 | 260,742,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | def add(a,b):
print(f"ADDING {a} + {b}")
return a + b
def substract(a, b):
print(f"SUBSRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return (a / b)
print("Let's do some math with just functions")
age = add(3... | [
"774@holbertonschool.com"
] | 774@holbertonschool.com |
a4c42472fa3d15a356100869d5c0683205652cd8 | 8fed701e8e04c4bf84fe9e43bbeaf5f39d416664 | /sagemaker/keras/container/games/tictactoe/keras/NNet.py | 54e973aa59905d8f9f60213abb7a068442b3ced3 | [] | no_license | ggiallo28/neural-network-genetic-algorithm | c992f9f53c0802f4168c1d5419f560fdec051db1 | 0316bb91f5dbeee8f3c352694d27ab662824d13e | refs/heads/master | 2023-04-03T23:45:31.500461 | 2019-06-30T13:17:51 | 2019-06-30T13:17:51 | 172,666,707 | 0 | 0 | null | 2023-03-24T22:55:48 | 2019-02-26T08:12:06 | Python | UTF-8 | Python | false | false | 3,058 | py | import argparse
import os
import shutil
import time
import random
import numpy as np
import math
import sys
sys.path.append('..')
from utils import *
from NeuralNet import NeuralNet
import argparse
from .TicTacToeNNet import TicTacToeNNet as onnet
"""
NeuralNet wrapper class for the TicTacToeNNet.
Author: Evgeny Tyu... | [
"gianluigi.mucciolo@xpeppers.com"
] | gianluigi.mucciolo@xpeppers.com |
f24458a14352f36a4dc76daf6247758d8ae07d7f | d016e0c9a54e6e3d46b86894c99cc7739c02c7f5 | /tree.py | 39c72f9656aca2166fc707de71253d5a7a982770 | [] | no_license | rinkeshpanwar/datastructure | 31f25c036ac314867d3f93a1094d5232342d351b | cbd0656b163473ed8c906b539265874cf22231c9 | refs/heads/main | 2023-02-17T17:42:39.301587 | 2021-01-12T07:01:59 | 2021-01-12T07:01:59 | 328,899,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | import collections
class node:
def __init__(self,data=None):
self.data = data
self.left =None
self.right = None
class tree:
def __init__(self):
self.dq = collections.deque()
def insert(self,data):
return node(data)
def inorder(self,root):
if root == None:... | [
"rinkeshpanwar1997@gmail.com"
] | rinkeshpanwar1997@gmail.com |
46037bb5c0b7e53e047bcfb8753331ef30f63ef7 | 2eb413eafcf7b7ea6aefa41420e6adfdebdb21cb | /scripts/xln/trimDerivedTables.py | f42828ed7427c6a64864bb3d5ed7ebfe4871760d | [] | no_license | SerhiiSkrypchenko/Scripts | 92493f3c1e66fab6f496160380094f2c63bf98f9 | 0a5b8f339a3c45d63955d75ec4752d0ac7323678 | refs/heads/master | 2023-02-06T08:47:54.385193 | 2023-01-30T12:50:30 | 2023-01-30T12:50:30 | 217,525,702 | 0 | 0 | null | 2023-01-30T10:29:15 | 2019-10-25T12:09:25 | Python | UTF-8 | Python | false | false | 553 | py | import requests
import config_Luna_Wallet
url = config_Luna_Wallet.xln_mn_2
ADMIN_PASSWORD = config_Luna_Wallet.ADMIN_PASSWORD_T1
def trimDerivedTables(url):
print("---------- START trimDerivedTables on --->>> " + url + " <<< ----")
querystring = {"requestType": "trimDerivedTables", "adminPassword": ADMIN_PAS... | [
"43746242+SerhiiSkrypchenko@users.noreply.github.com"
] | 43746242+SerhiiSkrypchenko@users.noreply.github.com |
bffe1c48eedf03607efaea59b6631311acfecb45 | 684cc3be4bbc6b7edfc9467e21d80b6bcfa692bc | /db/__init__.py | fc3b5e809327dc514f4fc4dd894ba88dbed3ba87 | [] | no_license | sap-ibso-t4/DemoJam2020-ML | 99ed38735ece9a95a583579c995cf7e9cde6cea5 | cb4cbe77cfb76e25b4792231b9b0444e5a236c81 | refs/heads/master | 2023-01-10T21:44:18.989212 | 2020-11-03T09:35:16 | 2020-11-03T09:35:16 | 297,948,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from .sqliteAPI import SqliteAPI
from .dict_to_itab import data_frame_to_internal_table
| [
"zzfancitizen@gmail.com"
] | zzfancitizen@gmail.com |
e6b153bf96ce71b451479b1de85e5d447c280b49 | d848bfea4045d3a4844298aec39e046d1345318a | /catkin_ws/devel/lib/python2.7/dist-packages/unitree_legged_msgs/msg/_IMU.py | 4b189cbbb6583edf67f84b6c1eb127f18b32b696 | [] | no_license | KyleM73/pronto | 37730ec478b9642ff616d61a6c50b1086f547c0f | 819f87fbc39004293413fb9fc137cdbce238f0db | refs/heads/main | 2023-06-02T08:51:44.126947 | 2021-06-18T20:50:09 | 2021-06-18T20:50:09 | 378,260,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | /home/ooboontoo/catkin_ws/devel/.private/unitree_legged_msgs/lib/python2.7/dist-packages/unitree_legged_msgs/msg/_IMU.py | [
"kyle.morgenstein@gmail.com"
] | kyle.morgenstein@gmail.com |
eca7173612171328c19b0b90c0a3639ff207df10 | 1860918ce852099127e1109a470e131b49bb1992 | /bdrmapit/bin/cython | 4af1479af91c21da144f2558d3e29a161232d525 | [] | no_license | CAIDA/mapkit-traceroute-bdrmapit-pipeline | 55b002a0df56d2c41d458b9ad05126957f8be519 | 9b709b0f27bcf95c77b65d0b7df511b639503098 | refs/heads/master | 2023-08-28T17:14:51.332621 | 2021-10-10T20:34:09 | 2021-10-10T20:34:09 | 229,122,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | #!/project/mapkit/agamerog/country_asn_analysis/elverton/internet-flattening/aslinks_pipeline/bdrmapit/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from Cython.Compiler.Main import setuptools_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(se... | [
"agamerog.mit@gmail.com"
] | agamerog.mit@gmail.com | |
e4fd0b88f086e8155bee37b5546c0096f7760d3e | e78154abbb8bacf5afccda9da371684cbeabad36 | /envs/ALPHA-POPEGO/lib/python2.5/site-packages/ipython-0.8.2-py2.5.egg/IPython/Release.py | c22250cf389d6cc8e86540e756de11ec217a66b1 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | # -*- coding: utf-8 -*-
"""Release data for the IPython project.
$Id: Release.py 2855 2007-11-06 06:53:49Z vivainio $"""
#*****************************************************************************
# Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu>
#
# Copyright (c) 2001 Janko Hauser <jhause... | [
"santisiri@gmail.com"
] | santisiri@gmail.com |
c256fd9a9df13486844f0267178661e718862bac | 2caa155818c373fd5d9530e761bb7636255d4588 | /python_exs_curso_em_video/ex052.py | 986413a60540b5b6f85da16b65a2665f428fc48b | [
"MIT"
] | permissive | David-Matos-Sousa/David-no-GitHub | 8f64a5713d12a76d6a288363b8ade6de79f98fca | a46e762912f869db34705905b20f8221db2c22f6 | refs/heads/master | 2022-12-25T19:48:08.945055 | 2020-10-04T16:58:51 | 2020-10-04T16:58:51 | 291,156,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | num = int(input('Write a number:'))
div = 0
for c in range(1, num+1):
if num % c == 0:
print('\033[34m', end='')
div = div + 1
else:
print('\033[31m', end='')
print('{} '.format(c), end='')
print('\n\033[m The number {} was divisible {} times'.format(num, div))
if div == 2:
print... | [
"david.matos.sousa@gmail.com"
] | david.matos.sousa@gmail.com |
d952153518b3548b45a3b32e997c5a804e137594 | 08fdbaab91f447a2c290bf2d084958476ebf3919 | /project/settings.py | 21a3b809dc9fcb66df98cf6b775608385d3a946f | [] | no_license | yhoiseth/database | 057dbe987545e577455b3e596411a7c52021bc7a | 531b6e37856c1a77a3686ff7d8730c4da34340eb | refs/heads/master | 2022-04-28T20:29:00.744181 | 2019-10-26T12:59:28 | 2019-10-26T12:59:28 | 216,885,249 | 0 | 0 | null | 2022-04-22T22:38:27 | 2019-10-22T18:41:29 | Python | UTF-8 | Python | false | false | 2,345 | py | import os
from typing import List
from django_heroku import settings
AUTH_USER_MODEL = "app.User"
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = "Dummy key"
ENVIRONMENT = os.getenv("ENVIRONMENT", "production")
DEBUG = ENVIRONMENT == "development"
ALLOWED_HOSTS: List = []
INSTALLED... | [
"yngve@hoiseth.net"
] | yngve@hoiseth.net |
233ed265bef7e632cc81bca6d416bb261f3e9c21 | e4689f203b51ea5f987caf3487a4dc51f770a0ae | /converter/data_check.py | 7adc87cf41f82f928e249a70f802a9399d1097e6 | [
"MIT"
] | permissive | shijun18/Spine_Seg | b93a1e4a9185b05b0cfdeaaf382b502c0e7763a5 | 90c41d8ee08235c43bd3a5236da5a0ee7066fced | refs/heads/main | 2023-06-10T11:04:43.420324 | 2021-07-04T08:00:39 | 2021-07-04T08:00:39 | 371,382,899 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | import os
import numpy as np
import json
import pandas as pd
from utils import hdf5_reader
def data_check(input_path,annotation_list):
slice_num = 0
csv_info = []
class_list = []
for item in os.scandir(input_path):
csv_item = []
print(item.name)
csv_item.append(item.name)
... | [
"46990068+shijun18@users.noreply.github.com"
] | 46990068+shijun18@users.noreply.github.com |
914db65235c0f013520dd3bda449daee33be2fff | 0e1c3903ef3b11c2c6fe52a8970c7ec3aed82288 | /posthog/management/commands/create_bulk_events.py | c0a1378511c78b107346ce5d4bd3ff93c72d1e7a | [
"MIT"
] | permissive | mindhash/posthog | 55021cce5b1cc30839296890e5e19b7e5ae6f4b1 | 904c4c5d17a2d50019717b169e107ce441cadac7 | refs/heads/master | 2022-11-21T18:20:37.006995 | 2020-07-13T08:36:38 | 2020-07-13T08:36:38 | 279,254,284 | 1 | 0 | MIT | 2020-07-13T09:15:47 | 2020-07-13T09:15:47 | null | UTF-8 | Python | false | false | 7,878 | py | import random
import json
import uuid
import psycopg2
from urllib.parse import urlparse
from django.conf import settings
from django.core.management.base import BaseCommand
from django.utils.timezone import now
from django.core import serializers
from dateutil.relativedelta import relativedelta
from pathlib import Pa... | [
"noreply@github.com"
] | mindhash.noreply@github.com |
afaa879df31238594f246e718dd47f1d00af9697 | 2c6678a6e10852605b1ce57e8ab5962f25806877 | /eCommerce/store/admin.py | 2c644739d7c3b813cce8c18a97191f36e0e3723f | [] | no_license | Souvikkkk7/first-ecom | ed8c4d24235aa144d79ba8ab0bee41361bec65ba | 7558373b53fd5eed9df5517dd77cc12f3c5192c3 | refs/heads/master | 2022-11-17T23:29:07.985677 | 2020-07-16T19:07:11 | 2020-07-16T19:07:11 | 280,233,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Customer)
admin.site.register(Product)
admin.site.register(Image)
admin.site.register(Order)
admin.site.register(OrderItem)
admin.site.register(ShippingAddress)
admin.site.register(Description) | [
"sdhali469@gmail.com"
] | sdhali469@gmail.com |
fad738ad7b13dcce721b2525ae36d3b0f26ae079 | 320b78882c944bad612f5da589ad6319b7339339 | /Aula22/Exercicio1.py | 7a5afcaf2b4f7ee2815ada89d6ce127101c7f91f | [] | no_license | talissad/TrabalhosPython | aed1d26b5a72b79d6b26aff9e62e7d76963ae081 | e7a890ef5695bf8eeb8929eb6fafafff4ed1b7b9 | refs/heads/master | 2022-04-10T09:49:04.749672 | 2020-02-27T14:46:20 | 2020-02-27T14:46:20 | 220,218,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # Aula 21 - 09-12-2019
# Crie uma classe cliente:
# 1) deve ter como atributos: codigo, cpf, nome, idade, sexo
# 2) como metodos: receber salario, comprar, pagar divida
# Quando recebe aumenta o dinheiro na carteira.
# quando compra aumenta os bens e diminui o dinheiro na carteira
# Se comprar e não tiver dinheiro o s... | [
"900161@proway.treina"
] | 900161@proway.treina |
29aa7eefb7323c5953972bcecbf05797b238b684 | e42cce21fbb3c4fe3f271c2029d9659270a968ab | /vmrunapi/vmrunapi.py | cde0c05a165dbfc2cd3c7b87f6803f601bfd2453 | [] | no_license | cloudbase/maas-hacks | d086a91338e45121dafb33734ba4977e31851dbc | 0e2cc5537ff64376505c1e9e77dcdf3657fc4d78 | refs/heads/master | 2016-09-06T13:02:15.808249 | 2014-04-30T00:24:58 | 2014-04-30T00:24:58 | 17,869,386 | 5 | 0 | null | 2014-05-06T01:23:22 | 2014-03-18T14:43:58 | Python | UTF-8 | Python | false | false | 3,400 | py | #!/usr/bin/python
import flask
import os
import re
import subprocess
import sys
if sys.platform == 'win32':
from win32com.shell import shell
from win32com.shell import shellcon
app = flask.Flask(__name__)
STARTED = "started"
STOPPED = "stopped"
def _get_matching_vmx_path(path, mac_address):
mac_address... | [
"apilotti@cloudbasesolutions.com"
] | apilotti@cloudbasesolutions.com |
60daa405763d1b7b37c74167e6234513e70bff79 | 1d1ca8f286a49bc832745b3f50879bf2ea381e6b | /recognize.py | b57ad22dbfb02b3d71ee513fc320cc2118687ba8 | [
"Apache-2.0"
] | permissive | old-school-kid/Wavenet | f3937994d10d9fbd637bf9940b7c001f9212c87f | ada74d4752c0b35cc948723957de38bc708290a5 | refs/heads/main | 2023-06-09T21:17:06.259253 | 2021-07-08T16:25:05 | 2021-07-08T16:25:05 | 384,158,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | # -*- coding: utf-8 -*-
import sugartensor as tf
import numpy as np
import librosa
from model import *
import data
__author__ = 'namju.kim@kakaobrain.com'
# set log level to debug
tf.sg_verbosity(10)
#
# hyper parameters
#
batch_size = 1 # batch size
num_blocks = 3 # dilated blocks
num_dim = 128 # la... | [
"mishrasp393@gmail.com"
] | mishrasp393@gmail.com |
2a860191471fc855f28ac3836dcfbfa78f252b2e | 296d8a539b3946df0ae6d527acb407bf78e5c10c | /grammar.py | ffc89cfa2549d7d136d5bb249c7346cb18613b5f | [] | no_license | Coswold/tweet_generator | 8dc4b2b409c3b665a644e072fb6eec4d00bc869e | 19ba5ae4c98e7e9de4ad048db9d03067dea77a73 | refs/heads/master | 2023-02-24T20:39:08.126372 | 2019-07-06T21:03:12 | 2019-07-06T21:03:12 | 155,779,429 | 0 | 0 | null | 2023-02-02T06:34:03 | 2018-11-01T21:42:33 | Python | UTF-8 | Python | false | false | 201 | py | def grammar (sentence):
sentence = sentence.capitalize()
if sentence[len(sentence) - 1] == ',':
sentence[len(sentence) - 1] == '.'
else:
sentence += '.'
return sentence
| [
"studentloaner2@Admins-MacBook-Pro.local"
] | studentloaner2@Admins-MacBook-Pro.local |
6a6ebe3550b44d0e3ce445ed0151ed8f95c18ec0 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.1.2/_downloads/boxplot_demo1.py | aac441baa4f86269d657f3d8b96bfebf095017f7 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 7,720 | py | """
========
Boxplots
========
Visualizing boxplots with matplotlib.
The following examples show off how to visualize boxplots with
Matplotlib. There are many options to control their appearance and
the statistics that they use to summarize the data.
"""
import matplotlib.pyplot as plt
import numpy as np
from matplo... | [
"tcaswell@gmail.com"
] | tcaswell@gmail.com |
3a9884fb534bd51716b75014723d49e7b5590761 | 59c55725576bbf0e2f6617507ba2f1db639abb3f | /analytic_billing_plan/wizard/analytic_billing_plan_line_make_sale.py | 921890470694b17358282339a41cfc55af455bcf | [] | no_license | bmya/eficent-odoo-addons | e3426ebaf1f59e52726253fc1dd36a09d9363059 | 5d8ddfa384ab4417f42bda103b71d926848035f6 | refs/heads/7.0 | 2021-01-21T16:48:55.312452 | 2015-11-04T14:11:19 | 2015-11-04T14:11:19 | 45,649,141 | 1 | 3 | null | 2015-11-06T00:35:17 | 2015-11-06T00:35:17 | null | UTF-8 | Python | false | false | 11,703 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Eficent (<http://www.eficent.com/>)
# <contact@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero... | [
"jordi.ballester@eficent.com"
] | jordi.ballester@eficent.com |
f9e03766b92f7594acf0b234d6939d7287936474 | f30286966b67ca71a717a702a86560a20ea0af9e | /migrations/0013_auto_20190617_1903.py | 7d8fa331043d3b7b851520bb8a1699dbfd7cecfd | [
"Apache-2.0"
] | permissive | j-ollivier/sonov-main | 9a2397bb619227d50b048a5a3f9b2a4e30f97b97 | 78123513fa73deae174363750fd64ab3e92a3d2a | refs/heads/master | 2020-03-18T03:06:33.682840 | 2019-10-20T15:49:12 | 2019-10-20T15:49:12 | 134,223,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.1.7 on 2019-06-17 17:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0012_tag_category'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='category',
... | [
"pro.jollivier@gmail.com"
] | pro.jollivier@gmail.com |
e7eee4841d85a333ebb5e70c5cd6218388d11953 | 2ac0efad0ff5a1d9266119bded4a1120e6b19f1b | /Project_undefined/wechatMoney/wechat_red_envelope_2.py | d93eb0ec0b18f7699d7be3dfa32e9c942b462af2 | [] | no_license | boyac/pyUndefined | 3b91e4d1b0b8b544029ba1ffc8bc4ef0b2aa8f43 | 913d88eb0c1348d91dff025fa3b1f5643e583a75 | refs/heads/master | 2021-06-22T09:59:16.605391 | 2021-02-03T09:49:28 | 2021-02-03T09:49:28 | 62,711,768 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
__author__ = 'Boya Chiou'
import numpy as np, numpy.random
class Lucky:
"""
The user assigns a lump sum to a group red envelope, and the number of small red envelopes within it.
"""
def __init__(self, amount, n):
self.amount = amount
self.n = n
def money(self):
self.hong_bao = np... | [
"chinawhitewhy@gmail.com"
] | chinawhitewhy@gmail.com |
96f6f306ef276af2e33a2bfaa7d6b1e25cb524ae | 516ddb388a2f32fa5faf2877d0842e8ad6f02550 | /task/bin/pip3 | 30d052acbb62a0461430fcc21f80a3c689d18f10 | [] | no_license | md131376st/task6 | cf49b770c29d51a5abaaa737b089fbce02210d38 | 7ddc384bcb2f700b10cbf2e2d19ecee899b3689e | refs/heads/master | 2020-03-28T12:21:30.112278 | 2018-09-18T16:17:47 | 2018-09-18T16:17:47 | 148,290,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | #!/Users/md/summer/task6/task/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"mona131376st@gmail.com"
] | mona131376st@gmail.com | |
990775905446504fb3fa261f8eacb2b0990801a4 | 5296b6666b3401ac532e9d1f6eba6549c48295c3 | /test.py | 2c7fe45d6039908eb9bf3f8bef82eb11b2fc06b2 | [] | no_license | skotin/germ | 5a2cffdc1667808647d067e400efc4c7929e0cab | e3418cb63b8d2e1bca97368d531cf245e30635be | refs/heads/master | 2020-05-31T04:47:06.607006 | 2013-01-04T04:24:57 | 2013-01-04T04:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | __author__ = 'Serg'
import math,pygame,time
#for i in range(0,20):
# print i%3%2
a=1
b=2
def myprint(a,b):
print "a=",a,", b=",b
myprint(a,b)
start = time.clock()
for i in range(1,1000000):
t=a
a=b
b=t
end = time.clock()
myprint(a,b)
print 'Time 1: %s' % (end - start)
myprin... | [
"jetbrains@Ret.local"
] | jetbrains@Ret.local |
8cc39834a3986a41c0b6c4717eda289d67aa0f2a | 7d3cb9e6ac0f2a0f217fb8ad77076fd4f719a437 | /xen_signature/apps/pdf_to_image/migrations/0003_auto_20181020_1658.py | 75cf4f4498115f51b134898cac32d0c1bc38dea3 | [] | no_license | FlashBanistan/django-xen-signature | b88b0698b00390e019ebb419d74043f1e36777ba | b390e9aa069c89021e63e41a554489ccf9d685a5 | refs/heads/master | 2020-04-02T06:11:24.486660 | 2018-10-26T17:17:20 | 2018-10-26T17:17:20 | 154,135,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # Generated by Django 2.1.2 on 2018-10-20 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pdf_to_image', '0002_auto_20181020_1657'),
]
operations = [
migrations.RenameField(
model_name='documentimage',
old_... | [
"FlashBanistan66@gmail.com"
] | FlashBanistan66@gmail.com |
5cd4b51f31296a5d47ca6420b2a7f882817ae9de | ed29a3788ecd26e9e16a39ea0bf69ce25d286d3d | /Codewars/level7/remove_consecutive_duplicate_words.py | 17ffdee99b6a2b82b69be24b78841b5ddfb59f00 | [] | no_license | Bradley94/misc-theory-work | c01059e22cfb0c8f1223a935b2d44f7c33ae6e7b | 7f95ba25de5326d19ce2405afd3f6fbfbddb0b79 | refs/heads/master | 2023-01-03T05:03:25.470327 | 2020-11-02T16:48:17 | 2020-11-02T16:48:17 | 295,984,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """
Your task is to remove all consecutive duplicate words from string, leaving only first words entries. For example:
"alpha beta beta gamma gamma gamma delta alpha beta beta gamma gamma gamma delta"
--> "alpha beta gamma delta alpha beta gamma delta"
"""
def remove_consecutive_duplicates(s):
results =[]
for ... | [
"noreply@github.com"
] | Bradley94.noreply@github.com |
08089a76a10f77d295414b1e754f50c25d3125b0 | 2f2d01957abfbbe3fc79d8727cf43a096cd454d8 | /for_opencv/document1_1.py | 5f47a319249173ac902793abb716595b42e9a74c | [] | no_license | bizhili/for_python | 61b26becd46e9ce519619e01d4a8525b5fa03519 | 727d6a384bc3f0af23c33643d35f5e20799d85ee | refs/heads/master | 2020-07-08T02:23:23.868222 | 2019-08-30T07:11:49 | 2019-08-30T07:11:49 | 203,539,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import time
from math import sqrt
def is_prime(n):
for c in range(2,int(sqrt(n))+1):
if n%c==0:
return False
return True if n!=1 else False
def main():
filenames=('a.txt','b.txt','c.txt')
fs=[]
for f in filenames:
fs.append(open(f,'w'))
for number in range(1,10000):
... | [
"3067842904@qq.com"
] | 3067842904@qq.com |
04fbafe84494848f4aa99009abefa1c69bb5d05d | b8b6214ee3a21534d736b0c7ea42ab3d82394c15 | /python_fund/list_advanced/even_numbers.py | 3da254265d46162fd360edc7c7034dcb49940a10 | [] | no_license | calendula547/python_fundamentals_2020 | 10b232b75e4fb6e0f5a97dabf5b10d214b1e6b31 | bf735bdab22b4b2d3ea53c90786ad18051e22cb8 | refs/heads/main | 2023-04-11T23:25:16.826902 | 2021-04-28T07:18:48 | 2021-04-28T07:18:48 | 362,365,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | nums = list(map(int, (input().split(", "))))
even_nums_indices = []
for i in range(len(nums)):
if nums[i] % 2 == 0:
even_nums_indices.append(i)
print(even_nums_indices)
| [
"nevzaharieva@gmail.com"
] | nevzaharieva@gmail.com |
cd5164c69ee16da41cde15a50b45625ba1443c1f | 1d6c1eec6a8f6ba732c6dd5218f80403532313b8 | /nums.py | 7bbbed0312528b953279dab2feae74f5cd225730 | [] | no_license | Quitedeer/my_python | 816713a57194888f86a914a715c6e8f3e6aa9b58 | 2ac39087036400ce92c08c33c77aae1373b8e1ec | refs/heads/master | 2020-07-25T00:21:58.704160 | 2019-11-17T22:33:25 | 2019-11-17T22:33:25 | 208,097,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | s = 'В разные эпохи и у разных народов число\
Пи имело разное значение. Например,\
в Древнем Египте оно равнялось 3.1604 \
у индусов оно приобрело значение 3.162 \
китайцы пользовались числом, равным 3.1459 \
Буквенное обозначение число Пи получило только \
в 1706 году – оно происходит от начальных букв \
двух гречески... | [
"varya.dementjeva@gmail.com"
] | varya.dementjeva@gmail.com |
e0a7315e974496146f931f1dccb8aff89ce1264d | 1ca94f20401cc0bd33a7a935dea2f3c66776dbe4 | /users/models.py | b8680d9a1d986368544da5d9676214693646fa7a | [] | no_license | liangsongyou/news-18 | 468d06a854e3bf6b5389e6efbb2b1a812d45fef6 | 45619e32d7f950d75949912ee8c570903f6c39f3 | refs/heads/master | 2020-04-11T15:59:26.136085 | 2018-12-15T13:54:16 | 2018-12-15T13:54:16 | 161,909,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
age = models.PositiveIntegerField(default=0)
| [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
009684393084452c5b0ff73051c5f4001fc8dcf9 | f30542a38c878de60587010cfbdfbec99acd5ba3 | /program.py | b37fe7f3cfcb7ae28db9f9b0ff8725986a301065 | [] | no_license | qetennyson/WeatherClient | 249b7f250c492113831cbf6f1c34376b41084bff | 7f2653a90c531e7f2d8cd09f28b34b3ef8c83775 | refs/heads/master | 2020-03-18T04:43:51.534031 | 2018-05-21T17:34:07 | 2018-05-21T17:34:07 | 134,302,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | import requests
import bs4
import collections
WeatherReport = collections.namedtuple('WeatherReport',
'cond, temp, scale, loc')
def main():
print_the_header()
z_code = input("What zipcode do you want the weather for (ex. 42101)? ")
html = get_html_from_web(z_code)... | [
"quincytennyson8@gmail.com"
] | quincytennyson8@gmail.com |
2cb549fab7ccf5db93a112f7980fa14fbc3ffbd0 | 8e7e51ff8b9c1103d10aa86c3d1cb446cfb25e4c | /djeniesecurity/djeniesecurity/urls.py | c409e1093e267c2e36d190bdc95028974c4ec905 | [] | no_license | huogerac/modulo4 | b2c6e07f5e2928182a03edac503d0a4468736007 | b30e056fb5a4703255982a349ed184beaea010fd | refs/heads/master | 2021-01-17T21:25:03.926382 | 2013-09-23T10:21:51 | 2013-09-23T10:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'djeniesecurity.views.home', name='home'),
# url(r'^djeniesecurity/', include('djeniesecurity.foo.urls')),
# Uncomment the admin/doc line below... | [
"huogerac@gmail.com"
] | huogerac@gmail.com |
01b19daef8aab2a869f8f843620617c2c27f6912 | 529e713a78e82de2ae5d44cfb8ef209e0894d72a | /numpy-rng/arrays.py | 9dd8d7b53619dbb04a4f83b22c11f636bd268b8c | [
"MIT"
] | permissive | realpython/materials | cd2f548276be2c82f134ca03eadb1cd279e0f26e | d2d62756d3854f54a12a767f2bf9470486c0ceef | refs/heads/master | 2023-09-05T22:12:29.806738 | 2023-08-31T20:56:28 | 2023-08-31T20:56:28 | 132,374,697 | 4,678 | 6,482 | MIT | 2023-09-12T22:22:06 | 2018-05-06T20:46:18 | HTML | UTF-8 | Python | false | false | 145 | py | import numpy as np
rng = np.random.default_rng()
print(rng.random(size=(5,)))
print(rng.random(size=(5, 3)))
print(rng.random(size=(3, 4, 2)))
| [
"noreply@github.com"
] | realpython.noreply@github.com |
e1241643f1fdabd9675e8ec25ea0a5b2350349a4 | 62d6a37e1fb1b224b53e14a1cf151ef0571aa20f | /tests/fixtures/tests.py | abc94a63d35f2bfe008a3e1bdcf4d4b144ec1bb5 | [] | no_license | katrid/orun | 4fa0f291a1ef43f16bc1857a170fc0b2e5e06739 | bfc6dae06182124ba75b1f3761d81ba8ca387dea | refs/heads/master | 2023-08-30T03:58:34.570527 | 2023-08-09T04:05:30 | 2023-08-09T04:05:30 | 66,562,767 | 14 | 4 | null | 2023-01-06T22:29:37 | 2016-08-25T14:01:44 | Python | UTF-8 | Python | false | false | 2,024 | py | from orun.test import TestCase
from orun.apps import apps
from orun.db import connection
class FixturesTest(TestCase):
fixtures = {
'fixtures': [
'fixtures.author.csv', 'fixtures.author.tsv', 'data.xml', 'fixtures.book.tsv', 'fixtures.book.csv',
'metadata.%(db_vendor)s.sql',
... | [
"alexandre@katrid.com"
] | alexandre@katrid.com |
aff3c2c6450bef98b974e283d127f004593fee34 | db918436073a11388d9f87f71c0567a40a15ff57 | /app/__init__.py | 830f20e2be2303dae5b2101bf680549cea718f4d | [] | no_license | githubdelegate/websocket_test | 822815f411926def0a7aea8f549546bb9f373dc3 | c408c84681702d2648527530f266e3565d47d49d | refs/heads/master | 2020-03-20T08:43:52.630897 | 2018-06-26T06:09:01 | 2018-06-26T06:09:01 | 137,317,353 | 0 | 0 | null | 2018-08-21T00:33:55 | 2018-06-14T06:43:25 | HTML | UTF-8 | Python | false | false | 479 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.debug = True
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root:root@127.0.0.1:3306/movie"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
db = SQLAlchemy(app)
db.create_all(app)
from app.home import home as home... | [
"ostmail@163.com"
] | ostmail@163.com |
b5f2d8b366ba2b11e7364e206c5f48149a027e36 | 9596182c6505cb4b2b746b501d799eb3e083d479 | /python/PZEntityManager.py | 35f29a00d900933950167a96edb5b480db6c01f8 | [] | no_license | ColinGilbert/projectzombie | 2b55361c6f1c5d41d82d2fb03d200fd4e3be2f19 | af772cd66fabf899eb124602dcbd4e6c4a21b467 | refs/heads/master | 2021-01-22T02:07:58.275092 | 2015-04-06T00:57:57 | 2015-04-06T00:57:57 | 33,460,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | '''
Created on Jul 2, 2010
@author: gnulinux
'''
import ogre.renderer.OGRE as ogre
#from cgkit.cgtypes import vec3, quat
from PZEntity import Entity
import numpy as np
from array import array
from PFieldPathFinding import PFieldPathFinder
import copy
class EntityManager():
'''
classdocs
''... | [
"llwijk@200bf698-8c57-11dd-a017-db29c870d619"
] | llwijk@200bf698-8c57-11dd-a017-db29c870d619 |
ac134464a47b592c7910c67633b8e7a152effe85 | 0c91c7415e7c6dec237c60283e23abcc7b797fe1 | /python/python-practice/call_func.py | e8a688664e0223dd6ce0ce6ee5c647e5ad2cfe35 | [] | no_license | bookpark/Fastcampus | ac6c1280e0c91d33942717a50a52083284cf410b | 5eea00aa5bd41d1a7da75995899c05516a5f235c | refs/heads/master | 2018-07-11T08:38:59.633991 | 2018-06-01T08:02:17 | 2018-06-01T08:02:17 | 104,309,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def print_func():
print('call func')
def execute(f):
f()
print(print_func)
print(print_func())
def call_string():
return 'call string'
def capital(f):
capitalize.f()
print(execute)
| [
"bkbkgg@gmail.com"
] | bkbkgg@gmail.com |
c8c91b8f93916d59a46e5052ed5bf42d766b5c99 | e914da03391c81b69ae47c3dfaabb119259eb66f | /aon_decoder.py | 4f5b351c967cae4c175b18aac6ed5d606fc3f548 | [] | no_license | koder-ua/python_practice | 25f67e7c2333c0f96a2a711947e87951769570db | a68b8fc9c12e841b7355c745db6d104205ea568f | refs/heads/master | 2021-01-22T04:22:58.642582 | 2015-12-15T14:16:40 | 2015-12-15T14:16:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python
# -*- coding:utf8 -*-
"""
Homework for Automatic Number Identification (ANI)
https://github.com/koder-ua/python-classes/blob/master/slides/pdf/FF_tasks.pdf
Slide #7
"""
def decode(string):
"""
ANI decoder:
- combine repeated characters (2333# -> 3)
- remove single characters (123... | [
"vitaliy@kulanov.org.ua"
] | vitaliy@kulanov.org.ua |
8f01e04333af1cea09f3e51b223b8fc8dda8dd49 | 4cf04ef3c4b894270bd5ea93e8c104a08be055ef | /src/config.py | f74c386c3229cc8bca225ea4faee27a4999d20f5 | [] | no_license | CF-chen-feng-CF/yolov3.pytorch | 36df1d5827bad40da352e60252d89d9dd577e39d | a7a8a5b6b8e893651309d081fb4fcc5c4d06ce9c | refs/heads/master | 2021-05-17T19:34:23.776109 | 2019-02-21T08:31:15 | 2019-02-21T08:31:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | import os
import json
opj = os.path.join
ROOT = '/home/penggao/projects/detection/yolo3'
LOG_ROOT = opj(ROOT, 'logs')
CKPT_ROOT = opj(ROOT, 'checkpoints')
def parse_names(path):
"""Parse names .json"""
with open(path) as json_data:
d = json.load(json_data)
return d
def creat... | [
"370095872@qq.com"
] | 370095872@qq.com |
435b0627724efbcd7a0b660dfb6a13edf64dd46d | 93a56f93e547153d9664bb31124925fdda4e6780 | /dj_test1/dj_test1/wsgi.py | 692b1d642989fb05ea12c7b9d2205b2177cd6143 | [] | no_license | weizhibing/python_djangoPro | e0191eadd2c2e022c802178b45e3709b7c3c061a | e0f32cee023574861124b9794a31e5b555daa0d2 | refs/heads/master | 2020-05-17T09:46:00.990354 | 2019-04-26T14:26:08 | 2019-04-26T14:26:08 | 183,641,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
"""
WSGI config for dj_test1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.enviro... | [
"noreply@github.com"
] | weizhibing.noreply@github.com |
57c5f0267b758e4eb4c42389e10c758178243ed3 | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/models/networks/discriminators/patch_dis.py | 83491547d5a6977f9e719ae8d16041dd07558ae4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 2,757 | py | # Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved.
import torch
import torch.nn as nn
import functools
class PatchDiscriminator(nn.Module):
"""Defines a PatchGAN discriminator"""
def __init__(self, input_nc, ndf=32, n_layers=3, max_nf_mult=8,
... | [
"liuwen@shanghaitech.edu.cn"
] | liuwen@shanghaitech.edu.cn |
c2fa064613a1f526d84a65e037a0b775ba7bfa1e | 97aa750d98b33fb015c5b01e1c9f1608d1bd2248 | /jollycoin/transaction.py | 707c60cc90ece59eb9deec3a42c0fe9fc679fa97 | [
"MIT"
] | permissive | jollycoin/jollycoin | 5e9cdc6a04e8378c67a305f475b793203aa46eb3 | 14151e4445948201bc8ab77e9a8d423ad16ae950 | refs/heads/master | 2022-01-07T06:55:00.379236 | 2019-05-23T20:00:09 | 2019-05-23T20:00:09 | 108,996,695 | 0 | 0 | MIT | 2019-05-23T20:00:10 | 2017-10-31T13:05:05 | null | UTF-8 | Python | false | false | 6,818 | py | from typing import TypeVar, Dict
from decimal import Decimal
from datetime import datetime
from collections import OrderedDict
import json
import random
from . import crypto
# we require it defined like this because of python3.6
# it will be overwritten once Transaction class is defined
Transaction = TypeVar('Transa... | [
"noreply@github.com"
] | jollycoin.noreply@github.com |
b12c0fb45f697b54880348bc5234ea5e8967228d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1197.py | 1ebb841cfc54a0fc26e0f2bd3522d7dfdaa63405 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,855 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=51
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
51f25d94a6156be528cb69c1e4fa12a1e9105b24 | 752914aef43ee1f486ca4d8356a4c1f26d2a00f8 | /MLPonqm7/BOB/qm7BOB/mlp_bob_formatted.py | ec1c3fdbfb714270dca1374913d6e88def44f808 | [] | no_license | vinodrajendran001/Molecules-Prediction | 75a71465126285a3034111d9904b03788bd3b463 | 8dd8798397debdde9392c5a6c2aee2dcaa921d92 | refs/heads/master | 2021-01-10T02:22:40.918540 | 2016-02-16T10:42:47 | 2016-02-16T10:42:47 | 51,827,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,775 | py | __author__ = 'vinod'
import pickle
import cPickle as cp
import gzip
import time
import numpy as np
import theano.tensor as T
import climin.stops
import climin.initialize
import climin.project
import climin.schedule
import climin.mathadapt as ma
from breze.learn.mlpbobformatted import Mlp, FastDropoutNetwork
from sk... | [
"vinodr.msec@gmail.com"
] | vinodr.msec@gmail.com |
2b1327c03bb9c5dc46f3c52af92183372bce9d3b | cc088b4cf927a0918a6187ac98c42e526d5da2d7 | /utils/utils.py | aabc68c0cf0a55eba87af60e5e5ab469c4bcc97a | [
"MIT"
] | permissive | hajungong007/SPRNet | e7a4274ea74b9dc99e2217088766b6988ea44b23 | 92bcbeedcd1ae9a3a1e9e9669a06998b78648465 | refs/heads/master | 2023-01-21T18:01:04.425289 | 2020-12-04T04:36:56 | 2020-12-04T04:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,272 | py | import os
import numpy as np
import torch
import math
import cv2
import torchvision.transforms.functional as F
irange = range
def make_grid(tensor, nrow=8, padding=2,
normalize=False, range=None, scale_each=False, pad_value=0):
"""Make a grid of images_l1loss_ssim.
Args:
tensor (Tenso... | [
"nglequocviet@gmail.com"
] | nglequocviet@gmail.com |
a0115f2376d4b303c31a2fc2d41d8b84830d0916 | 710276d0c9521c4654bb163fb8ef1438bb8316cc | /setup.py | 51203bf16681c47568bbe72adddbbe4300da1b0d | [
"MIT"
] | permissive | djego/ecommerce-peru-scrap-cli | 5f4a452b5a8d1fab1d702bafffd2d1f9b81454e8 | 82ff1f91af7e105b80f30b1fd747a25ec296f2d4 | refs/heads/master | 2023-01-04T16:37:19.980907 | 2020-10-24T03:29:07 | 2020-10-24T03:29:07 | 295,941,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import setuptools
with open("readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='ecope',
version='0.1.2',
scripts=['./scripts/ecope'],
author='Diego Machaca',
author_email = 'diegomachaca@gmail.com',
url = 'https://github.com/djego/ecommerce-peru-scrap-cli',
... | [
"diego.machaca@gmail.com"
] | diego.machaca@gmail.com |
cb613a9a3f6aa424cb036ac23144bd0df777b427 | e7422eae5799add31d929029cf71b4045a412dbd | /CG/lab2/lab2.py | 40e8cf9dd59dc41fd4068b6cf99e75f2ea71bb07 | [] | no_license | hhhhhhhhah/CG | a1edf5a0ac5b5b1754da231070026ae96e32e5ca | 5adb2d1c19f14101b68182e530654845cc80ea8b | refs/heads/master | 2021-08-31T23:42:50.556380 | 2017-12-23T14:56:38 | 2017-12-23T14:56:38 | 105,590,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection
import numpy as np
a = 1
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
plt.axis('off')
# Вершины клина
v = np.array([[a, a, 0], [-a, a, 0], [-a, -a, 0], [a, -a, 0], [0, 0, -2*a/np.sqrt(2)], [... | [
"filbaun@gmail.com"
] | filbaun@gmail.com |
06a59e32f037c215fdd5e541b97856291bb4a2c7 | fded1e6c9cdd64bd96f0bad1d2877a65a0202631 | /src/simulacra/cluster/__init__.py | 4c576ebc5c4b160c199211499b0c315b87a4a462 | [
"MIT"
] | permissive | johnvonlzf/simulacra | 46100c33be6992b1f45d7272884689579c28bd37 | b89fd0abf59debf077a4ce4cc46d5e0c58f53b4d | refs/heads/master | 2022-01-23T23:04:08.191552 | 2018-10-14T15:53:23 | 2018-10-14T15:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from .interface import *
from .job_creation import *
from .processing import *
| [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
e29b795b791a39c16bac4e8f849e8d67b243c733 | 18dca9a552f5aa9303536613ec39f19cebf6647c | /CreateTrainingFiles/ArxivMAG/prepare_arxiv_hd2v_file.py | b73e1d6597b04b0f270151a1756b21c7527be5e2 | [
"MIT"
] | permissive | ashwath92/MastersThesis | 9a39ed7eec825ed559d09507721c21bd12e2ab9c | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | refs/heads/master | 2021-08-16T12:01:33.282459 | 2020-06-27T16:00:16 | 2020-06-27T16:00:16 | 197,282,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,315 | py | """ Prepapres a file from Arxiv data (as well as additional mag contexts) as per the hyperdoc2vec format.
All the citation markers in the output file are MAG Ids (for the ACL papers, the mapping from ACL to
MAG can be found in /home/ashwath/Programs/ArxivCS/SQLITEDB/arxivcs_mag_mapping.sqlite3 -- table name: arxivcs_ma... | [
"ashwath92@gmail.com"
] | ashwath92@gmail.com |
23e1f4403f33f22267341c871867fca421ebeeac | 08b826c94a78dc1ceeba4e561237fef8cc5929f0 | /twitter_credentials.py | 42c1be1baf9a50c9c5a3b7886e06a83298b9e9bd | [] | no_license | bhadra28/Twitter_score_calculator | f9490cca28366a8c5b0bda6ae5eea82187c55442 | 8ce1a3b2ffae2489b29433f7437d93a94e248c7e | refs/heads/main | 2023-06-16T03:13:46.613237 | 2021-07-06T13:26:42 | 2021-07-06T13:26:42 | 383,467,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Variables that contains the user credentials to access Twitter API
ACCESS_TOKEN = "1395632396205268995-9CLMX3RpdybP72cJgCOS0Yq6UpcCYn"
ACCESS_TOKEN_SECRET = "a9EFJSI4SozGfGqT47N0I2uDoWKQUXFuBXYvsbWw1KF77"
CONSUMER_KEY = "b0OiZs1MrgbN51rwA8YNu8XUS"
CONSUMER_SECRET = "A2iIQFAiOZbC0LkbEvZypbK2RGGNqgnvtNMeAMbrP5VLJmRjEW"... | [
"noreply@github.com"
] | bhadra28.noreply@github.com |
ad3a293d4e7e01087f5620cbe77f946ebfbfb544 | ed4b1613c43112ed66d9017246e7862a97f25f6c | /testfrontdroana/testfrontdroana/wsgi.py | 22139567b34b4f8e49e7dfae41d7387b81aa4504 | [] | no_license | SeemaSP/sb-bootstrapfinalrepo | 9e9f1c24ec7201617081d4e578b23ce2aea813bd | 5e3deda70914aed9e5258fd125c1127c8765a5cc | refs/heads/master | 2020-07-23T07:57:26.163324 | 2016-11-15T12:57:16 | 2016-11-15T12:57:16 | 73,813,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | """
WSGI config for testfrontdroana project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"noreply@github.com"
] | SeemaSP.noreply@github.com |
267fe225eba8e89d2d695df128a07d16d65a1f14 | 168322e08da047df57a0ea5dbecf985ee63e94a8 | /.~c9_invoke_t4F4Zb.py | a359c8dfeea3764b101c63ac100a0c2f930038ec | [] | no_license | SteveJerettMcQueen/recordtransactions | 286a4f0b4d8bb99e119864b1c9690eb730f131b9 | ce20e7c67885f6d30247957abb91d025988e652d | refs/heads/master | 2021-09-06T10:41:47.529056 | 2018-02-05T17:29:27 | 2018-02-05T17:29:27 | 112,973,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | import numpy as np
import pandas as pd
import matplotlib as mpl
mpl.use('agg')
import matplotlib.pyplot as plt
plt.style.use('seaborn-darkgrid')
import matplotlib.dates as mdates
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
import seaborn as sns
import earnings as ear
from util import to_p... | [
"sjmsj1321@yahoo.com"
] | sjmsj1321@yahoo.com |
004878eee5cb4cdac1571456f0170a3c5841a3bd | c67ed725f9ea58f905f3b1224010ee8f7dcc0e14 | /manage.py | a8f6c68e8abfc81c8db51d05c5f479d81742cc90 | [
"MIT"
] | permissive | gonvaled/backend-django-ember-showcase | c34fee9795b6c0af10cabc576a5706a75028f4bc | 6445e80a062dd9dfe8840c43ef45c324914144ce | refs/heads/master | 2021-01-10T10:53:55.587302 | 2016-01-07T19:57:51 | 2016-01-07T19:57:51 | 49,221,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend_django_ember_showcase.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"gonvaled@gonvaled.com"
] | gonvaled@gonvaled.com |
c6648052d504c66fdd82e66d076da7dc9f764989 | f2828d2adf11c6e7f7050812d45d7525306cd8f3 | /Aula 1/A1Ex3.py | 2c27f681570fd06db386ddce30ec9932b306b42e | [] | no_license | VitorSRamos/IntroPython | 9384d66994977c87fda91abbcd6b52af214e7870 | 342919a89dfa1521f5a86e16b6acd87ede32c9a9 | refs/heads/master | 2020-03-30T15:19:10.583649 | 2018-10-08T02:23:03 | 2018-10-08T02:23:03 | 151,357,803 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | #Exercício 3
a = 3
b = -4
c = -10
delta = (b**2)-(4*a*c)
y1 = (-b + (delta)**(0.5))/(2*a)
y2 = (-b - (delta)**(0.5))/(2*a)
print ('As raízes da função são' , y1 , 'e' , y2 ,)
| [
"noreply@github.com"
] | VitorSRamos.noreply@github.com |
74b92f45f67cf407365824f65209050f0db4d914 | 29ae8c6bbb81c0fe2ba958fa51ec44c373c0aa16 | /week2/cdb.py | 729536de6c0320feb5316a8075d385acfe3a31c5 | [] | no_license | evadyadko/gevpro | ba8a6e9dddd90c91c937c73ee086f3b67959ed74 | 72a0f149c5ace7680ba1340f54488c3da8a69298 | refs/heads/main | 2023-03-13T06:55:56.402150 | 2021-02-28T22:27:59 | 2021-02-28T22:27:59 | 335,079,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from xml.etree import ElementTree as ET
def get_adjectives(database_path):
tree = ET.parse(database_path)
root = tree.getroot()
adj_set = set([cid.attrib['form'] for cid in root
if 'ADJ' in cid.attrib['pos']])
return adj_set
def main():
print(get_adjectives('cdb-sample.xml'))
... | [
"evadyadko@gmail.com"
] | evadyadko@gmail.com |
c378f62bb39cc0420ff55a8945b7cf08be9326f4 | 4facdac2e8a2be71c319cb82b0aea89783be6aa9 | /python.venv/bin/kill_instance | 0f57b88160acfb04f094de69c6198bbbd459cb7a | [] | no_license | agilebeat/BDSO-text-analysis | 1c9e44b20923d3535100ab5febf50fee620279c1 | ac961b77dc3a0ed33fe3e49597115c741d1a04e8 | refs/heads/master | 2022-02-19T20:01:51.793807 | 2019-08-26T14:11:09 | 2019-08-26T14:11:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | #!/root/bdso/python.venv/bin/python3
import sys
from optparse import OptionParser
import boto
from boto.ec2 import regions
def kill_instance(region, ids):
"""Kill an instances given it's instance IDs"""
# Connect the region
ec2 = boto.connect_ec2(region=region)
for instance_id in ids:
print... | [
"Seunghye.Wilson@agilebeat.com"
] | Seunghye.Wilson@agilebeat.com | |
d8298e301e9ebd7c818b76c18f9cf8a0e5446e36 | 559166a4eb2ae1d51a1053e5f37b08c49a2adb3e | /Interface_MAB/test2.py | f3b00531c268833b866c109c0fbf9813c15929fe | [] | no_license | joker21663/Interface_MAB | 60ec14aa62d0b26a4d37ff469c2daab8572e4e18 | 4227aa9bca9ec68069067f7d323da10992021579 | refs/heads/master | 2021-01-17T15:36:14.539302 | 2016-06-21T08:52:07 | 2016-06-21T08:52:07 | 58,457,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gtk
class TestWindow:
def __init__(self):
window = gtk.Window(gtk.WINDOW_TOPLEVEL)
box = gtk.VBox()
button0 = gtk.Button("Test Button")
label0 = button0.get_children()[0]
label0.modify_fg(gtk.STATE_NORMAL, gtk.gd... | [
"joker@localhost.localdomain"
] | joker@localhost.localdomain |
1e6895e6f359a03fff2e6129c7a5e162e1c1d48a | 4ad53199feb82d911bd2edbe0b5713da8c1909c1 | /pytablewriter/style/__init__.py | 6be6ff1844a0928139b11cb5ac086bac8216c4f9 | [
"MIT"
] | permissive | thombashi/pytablewriter | 9bf8b73da0eb18dba835e951021fd581958a4d12 | 49f9da777625a5b920c2c87c5e086d33d19a80d4 | refs/heads/master | 2023-08-19T05:13:15.333317 | 2023-07-01T08:03:47 | 2023-07-01T08:03:47 | 59,484,958 | 609 | 43 | MIT | 2021-09-20T15:26:45 | 2016-05-23T13:25:53 | Python | UTF-8 | Python | false | false | 1,006 | py | from dataproperty import Align, Format
from ._cell import Cell
from ._font import FontSize, FontStyle, FontWeight
from ._style import DecorationLine, Style, ThousandSeparator, VerticalAlign
from ._styler import (
GFMarkdownStyler,
HtmlStyler,
LatexStyler,
MarkdownStyler,
NullStyler,
ReStructure... | [
"tsuyoshi.hombashi@gmail.com"
] | tsuyoshi.hombashi@gmail.com |
a38f3f82f9156151b766513745c8d7a2c1d77e7c | d3df14eac415e1d593bd55cb3333a72f790caab2 | /Texy/Texy_event.py | 1eede7b78505b9116a4698ab4188df25124ff087 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | Thirsty-Robot/Texy.py-Game-Engine | 03850cbc6115e6d4c9614b3812b5da25c289ee03 | 7dce4b6ac79ecf21e7908be007919799c5382d20 | refs/heads/master | 2020-03-23T11:56:07.827300 | 2018-08-07T08:52:59 | 2018-08-07T08:52:59 | 141,527,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from colorama import *
init(autoreset=True)
def text(string):
color = Fore.WHITE + string
return color
def alert(string):
color = Fore.RED + string
return color
def notification(string):
color = Fore.YELLOW + string
return color
def emphasis(string):
color = Fore.YELLOW + Back.BLUE + string
return color
d... | [
"Thirsty-Robot@protonmail.com"
] | Thirsty-Robot@protonmail.com |
d0a6d89461ffbf3a57691489e3c9c3e1b6d69ed8 | cfe1551cab9f24788dc4ee06d344e05c581c6566 | /predictvenv/Lib/site-packages/ttaa_utils/dictionaries.py | 5327e64b45730e0bb8e54daa4018fb6548504cae | [] | no_license | moshuixin/ETR_prediction | 5e38644a3760b2671dc3480794a3fb4ecdad0f45 | 17faeea197e28d8e2ce21d53caaba4c9cc3a5c52 | refs/heads/master | 2022-12-21T22:05:14.300322 | 2018-04-23T11:59:36 | 2018-04-23T11:59:36 | 130,687,314 | 0 | 1 | null | 2022-12-19T05:42:56 | 2018-04-23T11:38:29 | Python | UTF-8 | Python | false | false | 3,068 | py | """Tools made to work with dictionaries"""
class DicArrays:
"""
Basic tools to work with array of dictioanries
"""
def __init__(self, dics=(), **kwargs):
self.dics = dics
def list_key_values(self, key):
""" Returns a list that contains value=dict[key] for each dictionary
i... | [
"xinxin.yang@de.ey.com"
] | xinxin.yang@de.ey.com |
564264f489217b11582113729d08d6510332408b | 2dc2babb74118d1a4620aeb54112877bc6f44363 | /NNC.py | 7b73524071298b7f209348bd744e3da239fea5b0 | [] | no_license | zongxinwu92/stanford_cs231n_NNC | fe55871fab9833a430537a5be6cde42c5bfd99ce | cf8394bf976242b0c65237152e077752b6b71a31 | refs/heads/master | 2020-03-16T16:41:00.852364 | 2018-05-09T21:54:53 | 2018-05-09T21:54:53 | 132,799,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import numpy as np
class NearestNeighbor(object):
def __index__(self):
pass
def train(self, X, y):
'''X is N*D where each row is an example, Y is one-D of size N'''
self.Xtr = X
self.ytr = y
def predict(self, X):
'''X is X*D where each row is an example we wish t... | [
"zongxinwu@Zongxins-MacBook-Pro.local"
] | zongxinwu@Zongxins-MacBook-Pro.local |
e6f9d1c42f6150c8c792e1f813a99f392b36ca7f | 9a80ded7514678436d20359d67a2f527bd7d81cb | /odoocms_fee/report/student_fin_report_summary_report.py | 2ffb4f774294f3c39f9a08e8591a0f8ec6c3ca40 | [] | no_license | royalline1/iiui | e84bd0c5c83085a43f26ed91c29c11023e3d0e7a | 68591ee290f6be4181ed862185fca092d487f00e | refs/heads/master | 2020-08-07T18:45:20.232881 | 2019-09-25T17:52:08 | 2019-09-25T17:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import pdb
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
from pytz import timezone, utc
import time
from odoo.http import request
import logging
_logger = logging.getLogger(__name__)
class S... | [
"farooq@aarsol.com"
] | farooq@aarsol.com |
6609cf56139197e5b6ce8b7736b492dc732cad8d | 6c94a71b2e2757fd78cb0f78f00d6b656a474d7c | /2-6.py | 5a44fc105e90c84c760702315118475ec69dbfda | [] | no_license | albastienex/TEST | 23429304aac7d6eef444a9fecc9ecb4b22919b1a | 9c28df7d0adf39afeb74c742326451afb711b916 | refs/heads/master | 2023-03-01T09:14:21.804490 | 2021-01-30T07:08:20 | 2021-01-30T07:08:20 | 332,668,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | a=1.79
a=float(input())
print(int(a*10)%10)
#print(int(float(input()) * 10) % 10) | [
"a980364@gmail.com"
] | a980364@gmail.com |
63e2e817f780c3fe671c795146ef75a062a2ce01 | 23148187fbcda3dc6ec4883cc960a1c3d00f5844 | /tests/__init__.py | 7fb557f71f2819e3b27479b94bef968e28e7eae0 | [
"BSD-3-Clause"
] | permissive | yinxiaojing1/pre_epi_seizures | c1944dbd5bda82c820bccab874b67a0d4efcff31 | e4e83e10256a4ef402061ca8bcbc3331fd8fc431 | refs/heads/master | 2020-03-17T17:31:19.224073 | 2018-05-16T16:47:13 | 2018-05-16T16:47:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # -*- coding: utf-8 -*-
"""Unit test package for pre_epi_seizures."""
| [
"fmsargo@gmail.com"
] | fmsargo@gmail.com |
a62f1b08399dc567a10875ea06da7d1d25752cbf | 01f966d42235ec3a18609b20e0eb863d4c3f8946 | /windows_tools/office/__init__.py | 16e4179fcc34c542c00f3a120a554578e10d5924 | [
"BSD-3-Clause"
] | permissive | hpkumbhar/windows_tools | 562d8b1d1714b074f603679578665929cf7ea2b3 | 810f22038af4a6250976cd31cfcb4b85c8a79062 | refs/heads/master | 2023-08-15T15:46:32.992440 | 2021-10-11T18:14:09 | 2021-10-11T18:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of windows_tools module
"""
Microsoft Office identification
Versioning semantics:
Major version: backward compatibility breaking changes
Minor version: New functionality
Patch version: Backwards compatible bug fixes
"""
__intname__ = ... | [
"ozy@netpower.fr"
] | ozy@netpower.fr |
ffdd69291bd6db302ef39fc5a06f21f460375837 | 2c733aeaccae6ffb509a5b75b61fcf09252e899e | /test_server.py | 12e697853ef4dbf73eca368da645704dddc7c218 | [] | no_license | YouRancestor/WeChatGameServerTest | 7dbe71903e2959a54dad0fc4d1e309cfc022dabd | 687b610c5a2db3027fe43afbba421080da9ca834 | refs/heads/master | 2020-05-18T18:07:04.734686 | 2019-05-02T12:24:10 | 2019-05-02T12:24:10 | 184,576,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
app = make_app()
app.listen(80)
tornado.ioloop.... | [
"zyr_zyr_@sohu.com"
] | zyr_zyr_@sohu.com |
a29e5f81d40ccd06b6053ab1c38c7a185c9ec5fc | 7851871aa904c8e02b88690ef4423f8d988f8a90 | /square_no_list.py | a8a23de9e4c0dfc5702f6d0c31443e03f6b7e24a | [] | no_license | sharda2001/list | 98809d9e0913adf9691523eb380fef4aa13fb703 | 40c2328e7da6dd410945e9febf767ba78f66cea1 | refs/heads/main | 2023-06-17T09:54:10.122583 | 2021-07-13T03:52:00 | 2021-07-13T03:52:00 | 377,053,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | numbers = [1, 2, 3, 4, 5]
squared_numbers = [number ** 2 for number in numbers]
print(squared_numbers) | [
"noreply@github.com"
] | sharda2001.noreply@github.com |
5cc40f6f01d9530255a06e81239788b2eae2fb46 | 981ecc9cf59dd6f839c3e40d26601efb1d073558 | /src/face_recognition/youtube_dl/aes.py | c5bb3c4ef1561847a1025a0b35095a2224582efe | [
"MIT"
] | permissive | lodemo/CATANA | 469e0684b816f09ac74f186552b463cc77db369e | a349f460772511ccbb16429b40bfb50f774d45d4 | refs/heads/master | 2023-03-30T04:07:12.070332 | 2021-02-03T21:47:32 | 2021-02-03T21:47:32 | 102,767,095 | 12 | 6 | MIT | 2023-03-24T21:55:24 | 2017-09-07T17:36:45 | Jupyter Notebook | UTF-8 | Python | false | false | 16,123 | py | from __future__ import unicode_literals
import base64
from math import ceil
from .utils import bytes_to_intlist, intlist_to_bytes
BLOCK_SIZE_BYTES = 16
def aes_ctr_decrypt(data, key, counter):
"""
Decrypt with aes in counter mode
@param {int[]} data cipher
@param {int[]} key 16/24/3... | [
"moritzlode@gmail.com"
] | moritzlode@gmail.com |
d9164c4b3811ee68c95e494d3120e1877b63ed24 | 426ea3c0ed0e2163a7a2af2ed2ac7084779fbedf | /IDE_Ver/Tool/__init__.py | bdf4c6e71a9a542fd3ec032efc2c5b31dd44e5dc | [] | no_license | kevin910162/Perpetual-Callable-Bond-Pricing | b303ebfe6c1009d7ad342c47419721ace770ee28 | 3048ff0b301b30c66cd916afe35c556bfb6780a2 | refs/heads/master | 2020-12-05T12:30:59.502082 | 2020-02-12T04:27:13 | 2020-02-12T04:27:13 | 232,110,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from .downloadinfo import DownLoadInfo
from .functions import Functions
from .loadinfo import LoadInfo
from .plot import Plot | [
"40070418+kevin910162@users.noreply.github.com"
] | 40070418+kevin910162@users.noreply.github.com |
c4ab791f131770d16025600c9969fa275bcb485e | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/recicler/localizaciones/l10n_be_invoice_bba/__init__.py | 8c3517b22a87f1e464f6866fc7d7621f263d5a7d | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # -*- encoding: utf-8 -*-
# Part of YuanCloud. See LICENSE file for full copyright and licensing details.
# Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved.
import partner
import invoice
| [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
1c2afae869071dc954bc26d8167396d0e199b87c | 7284c72bbe38820230e1969eedda57698bad9d9d | /player.py | 0020b0f0130df25424c6181370670730b9def805 | [] | no_license | Clutterbutter/one_night_werewolf_python | 7f3fb3cda2212857251664e9cd5ee4a7d7346f21 | b7a240e75f365643bd49b0cf082c8784d2d6a3c8 | refs/heads/master | 2020-04-03T17:41:39.030224 | 2018-10-30T21:06:23 | 2018-10-30T21:06:23 | 155,455,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | #If you want to run the program, go to RUN ME
######
# This file contains the player class.
######
game_sizes = {
1 : 'one',
2 : 'two',
3 : 'three',
4 : 'four',
5 : 'five',
6 : 'six',
7 : 'seven',
8 : 'eight',
9 : 'nine',
10 : '10'
}
class Player:
def __init__(self, p... | [
"0502866@mlsd.org"
] | 0502866@mlsd.org |
829b6ee686c41e29153cc2e3e1f700ce9f61714d | 71f13647082c9690cb56688e792734e7b09b0b7d | /data.py | 87da597195f576390e22433e4bd6a98c64e8983d | [] | no_license | anushapv2000/data_class | 3116069aef0f8feee54a1a5699884626a31d5c15 | 3eafd5c3f197a2c5265e952f1cda4213aede5d87 | refs/heads/main | 2023-07-23T06:58:41.371007 | 2021-08-31T10:02:26 | 2021-08-31T10:02:26 | 401,652,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | print('kjsadfa i')
| [
"anusha.pv@btech.christuniversity.in"
] | anusha.pv@btech.christuniversity.in |
77d950e90b279c3c0f8a7d1aa395e6b81e1a73ab | 06c1e0add693ba6d9fa3421f6e3713ea1df47036 | /snakeskin/path_finders/__init__.py | 8a012c900caefe2b281e754cabfa768043c569a9 | [
"Apache-2.0"
] | permissive | ewanbarr/snakeskin | 95dc9069c61de60097aa78b0d68218e3ed240445 | b41a5393e9b4ab42fd6245e022dd4923be01815b | refs/heads/master | 2020-04-15T07:20:24.400522 | 2015-12-07T04:55:34 | 2015-12-07T04:55:34 | 33,218,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from base_path_finder import BasePathFinder
| [
"ewan.d.barr@googlemail.com"
] | ewan.d.barr@googlemail.com |
29120f7257dfbc2ee265a054bef335380f6ebefa | dcfa5d5d731381cb109d6efbc11c83648ea4fa7e | /Scripts/ScriptsHoras/10Proyecto_spark.py | 6252912a6402aea5f802292cc0b26420cd9c26b9 | [] | no_license | srgxv1/twitchAdsStudy | 798c97252f69522e9190418c264d139ff575608d | 2d834474ffec86a0f240b417abc44415e2b567a9 | refs/heads/master | 2020-04-10T06:28:11.588293 | 2018-12-17T20:19:41 | 2018-12-17T20:19:41 | 160,855,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from pyspark import SparkConf, SparkContext, SQLContext, Row
from pyspark.sql.functions import col
import sys
conf = SparkConf().setMaster('local').setAppName('Twitch')
sc = SparkContext(conf = conf)
sqlContext = SQLContext(sc)
inputRDD = sc.textFile('10').map(lambda x: x.split('\t'))
ids = inputRDD.map(lambda p: Ro... | [
"rodrigo.manuel.perez@gmail.com"
] | rodrigo.manuel.perez@gmail.com |
541093f02de52d797169a02ceaec446a12f89eb9 | 9a14c99da43b5d27f344e9dd5cd9cf88f6796268 | /Scrutiny/Dictionary/DictionaryIteration.py | f4c70ee7a6aaf31ccb4b42bd47a65c1865da45e4 | [] | no_license | ResearchInMotion/CloudForce-Python- | adb1a08aa52c7fa0140ba0ed51bc3b138d52a8a8 | a7b925e94d83712569dbb808d8aad0e6efbddf34 | refs/heads/master | 2021-01-20T11:38:40.700723 | 2018-07-28T07:30:51 | 2018-07-28T07:30:51 | 101,677,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | phonebook = {"John" : 938477566,"Jack" : 938377264,"Jill" : 947662781}
for name, number in phonebook.items():
print("Phone number of %s is %d" % (name, number))
check = {"sahil":8,"Nikki":9,"Vmal":9}
for name,number in check.items():
print("Age of %s is %d"%(name,number))
| [
"sahilnagpal@Sahils-MacBook-Air.local"
] | sahilnagpal@Sahils-MacBook-Air.local |
2617cd1f3a647f2cf4ab00ef8bf59d44f9754cd1 | 2bfffc7aecf402e391a99118833fb392667b6665 | /cat.py | da5effe54063a959d5340a1bdb1746cc526c2d40 | [] | no_license | VladimirKozlov466/QAP_module_16 | 3064c8bb9abc47f7a2d6d4ee09cd46dca119fca0 | b84d2d90ab8f84286e258b1dbee71ffa479725b9 | refs/heads/master | 2023-07-07T22:15:34.048649 | 2021-09-03T13:26:34 | 2021-09-03T13:26:34 | 400,108,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | class Cat:
def __init__(self, name, gender, age):
self.name = name
self.gender = gender
self.age = age
def getName(self):
return self.name
def getGender(self):
return self.gender
def getAge(self):
return self.age
def pet_info(self):
return ... | [
"noreply@github.com"
] | VladimirKozlov466.noreply@github.com |
ec08ce65e5c67bdf27a9cc5d8f54362885258908 | 5aa07a91341f48eb2278882fb7e53e4686c7640f | /Website/homepage/migrations/0018_auto_20180413_1306.py | 4c3425502012dd9012e44dfa755403b9c0bda3f7 | [] | no_license | hazellobo18/travel_agency.github.io | f724adbc054296c50ea138adac22ee18fcc25797 | 1f9d1e3eadc3430e22673548e9d601fc0446771b | refs/heads/master | 2020-03-10T22:28:21.387962 | 2018-04-15T14:47:52 | 2018-04-15T14:47:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # Generated by Django 2.0.3 on 2018-04-13 07:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0017_auto_20180412_2154'),
]
operations = [
migrations.AlterFi... | [
"hazellobo18@gmail.com"
] | hazellobo18@gmail.com |
f91c3242a4878095551e3cadefe04006bd7cb9ca | 97f10c4614f5946fbffaf614bbdcd654156d73bd | /backend/post/models.py | a5358ebda697afb0a978af2303643e23ae4d6d02 | [
"Apache-2.0"
] | permissive | aryasoni98/Code-Kindle | 71e18a1da9bcf69be2eac168ba1c539f41ef1ebd | 856a3a5fcfe561df4d351f2a724d70f430a29954 | refs/heads/main | 2023-04-10T08:26:52.449561 | 2021-04-19T19:06:00 | 2021-04-19T19:06:00 | 358,722,732 | 0 | 0 | Apache-2.0 | 2021-04-19T19:06:01 | 2021-04-16T21:23:33 | Python | UTF-8 | Python | false | false | 205 | py | from django.db import models
# Create your models here.
class Post(models.Model):
files = models.FileField(upload_to='documents/')
uploaded_at = models.DateTimeField(auto_now_add=True)
| [
"bushra.akram999@hotmail.com"
] | bushra.akram999@hotmail.com |
ae825fe3516b3c4458a8137c101f289786af735c | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /src/stk/molecular/topology_graphs/cage/two_plus_four/two_plus_four.py | 80aa18537329f8d918ee7fea003280f088245115 | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | """
Two Plus Four
=============
"""
from ..cage import Cage
from ..vertices import LinearVertex, NonLinearVertex
from ...topology_graph import Edge
class TwoPlusFour(Cage):
"""
Represents a capsule cage topology graph.
Unoptimized construction
.. moldoc::
import moldoc.molecule as molecul... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
ddb817066bd2ddac9614af88404c53d4467561fd | 015eeb251288d23a6ac2fee1c8f85a347f70b34c | /Util/Log.py | fb98fbe47e45cc004da4392df0f13137a4e9674b | [] | no_license | zhuhui2018/dataDrien | b137aaa23d7fe7d3ad9f495469be2a7044d4caaa | fb5fc725055d113a4d75a7eda81e2be78a043831 | refs/heads/master | 2022-04-21T13:38:41.288513 | 2020-04-20T12:47:21 | 2020-04-20T12:47:21 | 257,276,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #encoding:utf-8
import logging.config
from Proj_Var.Var import *
#读取日志的配置文件
logging.config.fileConfig(LogPath)
#选择一个日志格式
logger=logging.getLogger("example02")
def error(message):
#打印error级别的信息
logger.error(message)
def info(message):
#打印info级别的信息
logger.info(message)
def warning(message):
#打印wa... | [
"1137030459@qq.com"
] | 1137030459@qq.com |
a726034e9cd9ddef97e37184362bcc9a99f8446a | 525592619f62d5c782bbeac002e3472fafc05ecd | /blog_project/urls.py | 426b1b9d623fe587ed330e88b64536172a20e32c | [] | no_license | suelalleshaj/blog | eef9459568c8244f5142c9c6b6c6c3ef3bda2804 | 688158b2bf6c4f5b38f2ffd73a700a2ed953bdb4 | refs/heads/master | 2023-04-25T10:09:11.810655 | 2021-04-27T17:58:51 | 2021-04-27T17:58:51 | 362,208,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | """blog_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"suelalleshaj"
] | suelalleshaj |
4703a772fb058f2ae5422adf59565dcc4c53ebd5 | 138a481380dae21341e5ad5f25d9f9a38451f217 | /01/1.py | 1f534b0795bbf72bad753a8817f425a14337df86 | [] | no_license | glee-/advent2020 | 456b855d008e784a1cd627dc274f2afd6ea3bd06 | acc5c9990c33c5428853e24608d542feaa42d032 | refs/heads/master | 2023-01-31T08:38:53.671050 | 2020-12-17T09:03:58 | 2020-12-17T09:03:58 | 321,848,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import sys
# two sum
f = open(sys.argv[1])
nums = []
for line in f.readlines():
nums.append(int(line.strip()))
setnums = set(nums)
for num in nums:
alt = 2020 - num
if alt in setnums:
print(num, alt)
print(num * alt)
| [
"gleeb@berkeley.edu"
] | gleeb@berkeley.edu |
8afa42adcb90a1783e1a39552cbf424e96241e96 | 593566486cb3eae8e049847fa9c78c3949a88f87 | /TodoList/views.py | 0ea095a7d9a274055812715ac1d6359d35c79870 | [] | no_license | DaKoala/Pre-Work---Todo-List | e6f13f251396d810b3804c218bf4aa5be36c1e04 | 4ac6226d983d1fe687301f68436db8222a811eb7 | refs/heads/master | 2021-01-01T18:18:59.785031 | 2017-07-25T12:40:35 | 2017-07-25T12:40:35 | 98,300,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,301 | py | from django.shortcuts import render
from django.http import HttpResponse
from .forms import ToDoForm
from .models import *
import re
import datetime
# Create your views here.
def index(request):
to_do_list = ToDo.objects.all()
week_list = list()
for i in range(7):
week_list.append(datetime.date.t... | [
"noreply@github.com"
] | DaKoala.noreply@github.com |
7fb479085e8c781abc3d68e21b41792dad0d3518 | 90e57d637193457f25faca09e3607919c79586f4 | /Text/File_reader.py | 14d6fe349581de010fc4ff32354cbe3caa33a8f2 | [] | no_license | Pelmondo/PythonPractice | eee7e04dd47d18f146280b6c216e9d44256e2083 | 72c60a978451819b1a26f07e95a8c8524c1f10b7 | refs/heads/master | 2020-05-03T04:48:27.748213 | 2019-03-29T15:33:44 | 2019-03-29T15:33:44 | 178,432,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # with open('pi_digits.txt') as file_object:
# contents = file_object.read()
# print(contents.rstrip())
file_name = 'pi_million_digits.txt'
# with open(file_name) as file_object:
# for line in file_object:
# print(line.rstrip())
with open(file_name) as file_object:
lines = file_object.readlines()
# print(line... | [
"studnetserg@gmail.com"
] | studnetserg@gmail.com |
61f7cc0d8f2595e32918fd8d26d5b20f718ccaec | fd20270ef3a1b9611a4f1572318e6cdfc3e776d8 | /webapp2/user/migrations/0004_auto_20150907_0713.py | 00a34c359dfa20f0984abfad787a9200f8c2898e | [] | no_license | moment-x/f | 78ed69dc1e690f255b8be6f9e63eb5befef256ba | 0bc921ac67c06a9f9e8f44381478618aec55f10b | refs/heads/master | 2021-01-25T00:11:37.935406 | 2015-09-09T02:28:30 | 2015-09-09T02:28:30 | 42,149,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0003_auto_20150907_0352'),
]
operations = [
migrations.AlterField(
model_name='user',
name='... | [
"token@email.com"
] | token@email.com |
0799da7f0ed0a7e68edd997eeaa9deedf6405066 | 8f70b40ef1c657ee14accfe6e2f8b1ebb1bebb7e | /schoolinfo/urls.py | e842061d58d48d531db89aafe7420297d52ef38e | [] | no_license | TejashviVerma/School_ERP | e3d6f1aabe92167c2b55c0b1682dde505bb04edd | 11406da8b1d8701b7ea55f75c76f1cbf44a72c53 | refs/heads/master | 2023-08-03T15:10:11.481306 | 2020-09-13T18:02:40 | 2020-09-13T18:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name="addSchoolInfo"),
]
| [
"yashboura303@gmail.com"
] | yashboura303@gmail.com |
6305425047bc6275d2a171616fbdffe8a360ec2c | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/rsb_register_shifted_register_a1.py | 584074016b2edaaf59d9ac2ff84cb51509bec935 | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 837 | py | from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.rsb_register_shifted_register import RsbRegisterShiftedRegister
from armulator.armv6.shift import decode_reg_shift
class RsbRegisterShiftedRegisterA1(RsbRegisterShiftedRegister):
@staticmethod
def from_bitarra... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
409b1cba66bea305247d7f650e6ca420be6dfcd5 | 69f6f415469bca089f6d147767c13c401f142a31 | /flywheel_cli/monkey.py | 188f2dbdf9f0eb25bcddbaedca1b47fec45f3b75 | [
"MIT"
] | permissive | amitvakula/python-cli | 8d7e34a98237680db87099aa1d72db25c8391cbb | 0bdbd39c40cdb3fe4dbd3b0cb38abbce94242dac | refs/heads/master | 2020-06-25T09:48:46.362433 | 2019-07-16T18:21:16 | 2019-07-16T18:21:16 | 199,276,371 | 0 | 0 | MIT | 2019-07-28T11:02:30 | 2019-07-28T11:02:30 | null | UTF-8 | Python | false | false | 618 | py | """This module provides system-level monkey patches as needed"""
def patch_fs():
"""On windows, python 3.6.6 os.readlink errors if passed bytes instead of a string.
This monkey-patch fixes the case where pyfilesystem uses fsencode before calling readlink.
"""
import os
if os.name == 'nt':
... | [
"justinehlert@flywheel.io"
] | justinehlert@flywheel.io |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.