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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e46865e6e239349fffa18b9574668b6cca909684 | 1515b2047f38a3202c1ab15d5d41809c80709d51 | /0_DataCollection/.ipynb_checkpoints/3_sittings-checkpoint.py | b80076f2f4954997206db5399f91cc733548ebc2 | [
"MIT"
] | permissive | lukas-pkl/explaining_parliamentary_defection | 177b832bf270261dbf7f693d02ce5a79fc0f5fb8 | f53a7fbe1855348d55b0d57b3271b16414e7d3dc | refs/heads/main | 2023-02-28T13:40:29.640082 | 2021-02-13T12:25:37 | 2021-02-13T12:25:37 | 335,680,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | # -*- coding: utf-8 -*-
"""
Created: 19 06 2019
Edited: 06 02 2021
Author: LukasP
Script collects the parliamentary sittings' data from LRS website
"""
import requests
import time
from tqdm import tqdm
import json
from bs4 import BeautifulSoup
from utils import db_conn
#Read parameters from `C... | [
"lukas.pukelis@ppmi.lt"
] | lukas.pukelis@ppmi.lt |
8bd226b0073ab95598772736794839e0f088bf37 | b365e0a65ce204708b52959f08da0ae7605e69c2 | /python/modules/deep_learning/inference/CFactory.py | 601e0c42d1a3469bc2a4367282d38dc1b20160ea | [
"MIT"
] | permissive | darwinbeing/deepdriving-tensorflow | af500f2caf6ffb9cc1f019fbdb79878e6a468a96 | 036a83871f3515b2c041bc3cd5e845f6d8f7b3b7 | refs/heads/master | 2021-06-26T15:41:18.031684 | 2017-08-23T13:11:37 | 2017-08-23T13:11:37 | 103,213,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # The MIT license:
#
# Copyright 2017 Andre Netzeband
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modi... | [
"andre.netzeband@hm.edu"
] | andre.netzeband@hm.edu |
72721e2dfbccc6dececea4c8ac0a61f4e0b841a8 | 11e63e9ad23e46810ed77d1a0eb2483fe7b1794a | /blogCV/settings.py | 0392a5c6e8ec120ad55c9c00d861cbd05ab11fdb | [] | no_license | benblackcake/blogCV | a1ddf416aa8eb4c7f431c4d060c4e06765af3f31 | ed991d039acdea7a9a91fbc491cabca50fa89acf | refs/heads/master | 2022-12-09T12:10:30.683323 | 2019-03-24T14:13:04 | 2019-03-24T14:13:04 | 177,192,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py | """
Django settings for blogCV project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"ben.chang@aiesec.net"
] | ben.chang@aiesec.net |
9ab93c832db906fed9e4ff56af7e1ea622bdafa1 | d2a4b10d0e26f8c090df00ca0569ebc913af3e2d | /sample.py | a6819cc6e2d98650069b00c80c7db5e601ff52ec | [] | no_license | anton87andersson/between_two_dates_plugin | e3b61bf2162c241feb48915fc98970d4051755ec | 329b3034218b0c5bf14780a1bfc3b3057dd52fbd | refs/heads/master | 2023-03-19T05:59:20.251543 | 2021-03-10T16:35:29 | 2021-03-10T16:35:29 | 346,420,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from between_two_dates_plugin import days_between_two_dates
'''
Sample-file how to use the plugin.
The result will be return as a list.
'''
sample_start = "2021-01-01"
sample_end = "2021-02-02"
print(days_between_two_dates(sample_start, sample_end)) | [
"anton87.andersson@gmail.com"
] | anton87.andersson@gmail.com |
cccc0b1b9e9f7890e02b4cb8c76f155726f79272 | f68af89d67bfcf4e8a81265ae7198b7b3ad8b196 | /csv_utils/__init__.py | 5f534bb941fcfffdf2946af1fe374444fb11ba23 | [
"MIT"
] | permissive | dmorand17/csv_utils | ce1cced5e0563eff2aee14647603cab501404c04 | 32c6cacdcf941480b73f846705b1e84468fdba5b | refs/heads/master | 2021-07-07T01:10:59.712407 | 2020-11-18T17:25:04 | 2020-11-18T17:25:04 | 207,801,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | #from .csv_handler import CSVHandler
#from .csv_handler import InputDelim
#from .csv_jinja import CSVJinja | [
"doug@commure.com"
] | doug@commure.com |
2c34a90dcbb3d9d2bfbe303918ad6a9bcbdfc0f1 | a0c60d2d6abe51877bbd4a2058925f2fe47d3854 | /main.py | 244ae5e2a7a0af0396fb4403dff6f5813bcad9a0 | [] | no_license | FrankWan27/SnakeAI | 9147a8ce684713fd9c8b74c930d97144d3578eff | 82448edb2d5536041e9d34c81717f1e80343f191 | refs/heads/master | 2022-11-11T14:34:21.868553 | 2020-06-30T17:53:51 | 2020-06-30T17:53:51 | 244,834,089 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import random
import snakeAI as SnakeAI
import sys
random.seed(0)
if len(sys.argv) > 1:
SnakeAI.startGame(sys.argv[1])
else:
SnakeAI.startGame()
| [
"frankwan27@gmail.com"
] | frankwan27@gmail.com |
9c47159651e9c6fdafe463538fc91b52c74619cd | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Unique_Paths_II.py | 99924d8912f90f3e4316559a40514a8aff937e3d | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | '''
Created on 22 Nov 2014
@author: zouyuanrenren
'''
'''
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively in the grid.
For example,
There is one obstacle in the middle of a 3x3 g... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
d4cd24e7419f0cc2781f01fd9621cf1d12343c45 | d9de0a1ff270ae0b78556af2beaa68c0e171ad07 | /Motion_Generation_Python/switch_electromagnet.py | 521f164d3b06666869381bba2a5b51f63abd8243 | [] | no_license | amank94/ME102B | 971fdc6124febb0b4cd01b1be01feddf9d8fd930 | 8e66f10fb0ebaabfe15c608946321d396524fdf7 | refs/heads/master | 2021-08-22T21:01:49.617531 | 2017-12-01T08:46:58 | 2017-12-01T08:46:58 | 101,688,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | def switch_electromagnet(state):
GPIO.output(7, state) | [
"32251255+ethanca@users.noreply.github.com"
] | 32251255+ethanca@users.noreply.github.com |
e014de7e7badf81f4bea689e0a0fc068651d7d1b | a806a36cc8f634976a067496cd2a84c7086f703f | /tech-project/tests_app/code/clients/mysql_orm_client/models.py | 0bb6c946981c4eaa82eb3b71c8a8125c83c842a6 | [] | no_license | ElonMax/2020-2-Atom-QA-Python-M-Skorokhodov | cf9594837ac2f7cc06fd815a2e1ada273511705d | fa2ead63fcb8fa196db620c22b4cde153c8fb90c | refs/heads/master | 2023-03-26T08:16:14.617323 | 2021-03-25T07:07:05 | 2021-03-25T07:07:05 | 299,398,789 | 0 | 0 | null | 2021-03-25T07:07:07 | 2020-09-28T18:33:49 | Python | UTF-8 | Python | false | false | 622 | py | from sqlalchemy import Column, String, Integer, DateTime
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class TestUsers(Base):
__tablename__ = 'test_users'
__table_args__ = {'mysql_charset': 'utf8'}
id = Column(Integer, autoincrement=True, primary_key=True)
usernam... | [
"cappukan@gmail.com"
] | cappukan@gmail.com |
b95cf8f40f8137b8a138594b03d4dffc359b4f54 | 45b1b601b11bc299a32aa9eac774a5868809b254 | /calc_demo.py | 16c10692a37108cd2995fea7b20007188b7a9d2e | [] | no_license | L00162772/jenkins-python-demo | 0b5800ad15a0b4683036738790a8e684855661d7 | 0ac568a1b024f8ce1cd5e51a8f05e8644bf3496e | refs/heads/main | 2023-07-10T04:45:46.136142 | 2021-08-19T22:08:07 | 2021-08-19T22:08:07 | 398,085,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #!/usr/local/bin/python
num_1 = 2
num_2 = 4
print('{0} + {1} = '.format(num_1, num_2))
print(num_1 + num_2)
print('{0} * {1} = '.format(num_1, num_2))
print(num_1 * num_2)
| [
"noreply@github.com"
] | L00162772.noreply@github.com |
650ae2260d45097b8160c5a8e332d7be6a280eb9 | 33f1c49920201e21adaf794c826148d0330db4a1 | /python/binary search/141_sqrt_x.py | 688a4f77400111f7206db6c0513756dfcec4b3c1 | [] | no_license | zsmountain/lintcode | 18767289566ccef84f9b32fbf50f16b2a4bf3b21 | 09e53dbcf3b3dc2b51dfb343bf77799632efd219 | refs/heads/master | 2020-04-04T21:35:07.740575 | 2019-03-16T20:43:31 | 2019-03-16T20:43:31 | 156,291,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | '''
Implement int sqrt(int x).
Compute and return the square root of x.
Have you met this question in a real interview?
Example
sqrt(3) = 1
sqrt(4) = 2
sqrt(5) = 2
sqrt(10) = 3
'''
class Solution:
"""
@param x: An integer
@return: The sqrt of x
"""
def sqrt(self, x):
# write your ... | [
"zsmountain27@gmail.com"
] | zsmountain27@gmail.com |
3820c1ebca739ddcbf3a383b1261c29d5ee8035d | 3aed9cf9a6af9a0747d54e2dbf54ee328f4eeb38 | /merge_range_Yi.py | 0a64e608f51d77c9595d2c418f6a3af3cb62c5ae | [] | no_license | guyiyiapply/cs229 | 309121fe2a137d8968683e5e20338e6ecc312f64 | bdc1b93e048ffd2a7e07731897e93c8764fe70da | refs/heads/master | 2020-03-27T12:24:43.576724 | 2018-09-27T20:52:35 | 2018-09-27T20:52:35 | 146,545,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 11 11:46:08 2018
@author: guyia
"""
# given [(0,1),(0,5),(4,8),(10,12),(9,10)]
#return [(0, 8), (9, 12)] like schdele a meeting
#Time complexity: O(nlogn), sorted
#space:O(n)
def mergeranges(meetings):
#sort the meeting with start time
sorted_meeti... | [
"noreply@github.com"
] | guyiyiapply.noreply@github.com |
4663e8bb637ea7f24b8c6adb3a3437b8f73ee561 | 3778075aeec812b6f80d0d25bc12a7d4a0fc4f9b | /delta_home_try.py | 9f8f1a1dbabf5c8d8ebac32375485cf8c9da1bde | [] | no_license | DhanyaRaghu95/green-cluster-scheduling | dbb8af153f446af2231bc03d8433a04696b35b3c | 6f85eb626d26fb2226563caa1de621af9c24b6ed | refs/heads/master | 2020-03-19T01:19:11.377714 | 2018-05-31T05:47:42 | 2018-05-31T05:47:42 | 135,537,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,127 | py | import pickle
import math
import threading
import time
machine_dict = {}
threads = []
jobc_obj = pickle.load(open("jobc_obj.p", "r"))
machinec_obj = pickle.load(open("machinec_obj.p", "r"))
machine_allocated = []
all_machine_clusters = [] # holds all the cluster numbers for the machines. [0,1,2]
for mc i... | [
"noreply@github.com"
] | DhanyaRaghu95.noreply@github.com |
581bf352fa4c5a344db7f21115e7a43e8fb465e5 | 9f8230d6cccfb0b854cafccbbeafc7b723aba75c | /ch02/ch03_df.py | c7d34e40ac5719f092f9cdcb6c44409d709d3853 | [] | no_license | RjUst729/CIDM5310 | 68e2d42ed1f806c6e734e2f014586d0a90f5fedc | 2d16b6fe421d6617194f3034dbbf0cd3aa8a7b9c | refs/heads/master | 2023-06-13T05:31:29.402683 | 2021-07-05T02:51:48 | 2021-07-05T02:51:48 | 377,151,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | import numpy as np
import pandas as pd
df = pd.read_csv('data/earthquakes.csv')
#print(df.empty)
#print(df.shape)
#print(df.head())
#print(df.tail(3))
#print(df.info())
#print(df.describe())
print(df.describe(include=object))
#print(df[['mag', 'title']][100:105])
| [
"rwjustice1@buffs.wtamu.edu"
] | rwjustice1@buffs.wtamu.edu |
6c4cb98af5d594354e9b699ab12c4e3621299e22 | d2f93ff36dc8e4cd4466e228ccf08729ffa0481a | /typeErr.py | 68316118298eb5305f1fe155733e032eda90b345 | [] | no_license | java131313/MyGitHubT | 9dc6b45a1cbfb8a861c91764c016d631a1d8e3ea | bb1ba6e2436d1b7ff1b571a9a7213de4170612d5 | refs/heads/master | 2020-04-15T21:14:51.912989 | 2019-01-11T07:08:34 | 2019-01-11T07:08:34 | 165,026,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #-*- coding:utf-8 -*-
print("hello world")
age = 18
print("age的变量里的值是%d"%age)
name = "李怼"
print("姓名是:%s"%name)
| [
"java131313@gmail.com"
] | java131313@gmail.com |
247b4c8efc832cf17b1b0215bfcb79ede8627b6a | d3c850349ef788d1743a8a7ecf2e3d96b54bceb1 | /dashboard/migrations/0001_initial.py | 0c9f43ea9806f492fe2cf7cf3b022a5d8223e41a | [] | no_license | vjhameed/social-analysis-app | 3927b43a64579a083029d80c1cc773d22d0343f3 | 5e82ff82ccd2b209310ad9f67ab663231dbe8145 | refs/heads/master | 2022-12-27T18:45:50.307942 | 2019-04-09T17:07:35 | 2019-04-09T17:07:35 | 176,908,317 | 0 | 0 | null | 2022-05-25T03:13:07 | 2019-03-21T09:05:28 | JavaScript | UTF-8 | Python | false | false | 1,521 | py | # Generated by Django 2.1.5 on 2019-03-08 07:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"vjhameed3@gmail.com"
] | vjhameed3@gmail.com |
6588b9fe3061b83e4c1c428f27244a0a784cdca2 | f13350eaf5d84a46d875357c5d0a1dd4139ef1f6 | /venv/bin/easy_install | c8753856ed8049709a3df2c5854626671ad58908 | [] | no_license | lssdeveloper/datafresh | bb07f97d7737133242da30ea99f34527ffce1dcc | 5e1f52afb32188543d1abcde8408e7f130e5d912 | refs/heads/master | 2020-03-18T22:46:08.640515 | 2018-05-29T10:54:30 | 2018-05-29T10:54:30 | 129,455,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/lserra/datafresh/venv/bin/python3.3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"leandro.serra.10@gmail.com"
] | leandro.serra.10@gmail.com | |
3b23e16e50ca0f47fef9667521ed3075d96d58e2 | 1f6212fab177fb8b84258f297928f5d6b97908d4 | /apps/CMDB/model/idc_models.py | 6bce6d2afca8721001a890b7cae21920a613b25d | [] | no_license | logan0709/roe | 9773ca058e017648bc9a9c05abf1597268a9759a | 3f87cfb08471f0e307c08fe0d5de064b4ea8e35b | refs/heads/master | 2020-04-08T22:00:51.851184 | 2018-11-29T10:37:30 | 2018-11-29T10:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,986 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
IDCType = (
('DX', u'电信'),
('LT', u'联通'),
('YD', u'移动'),
('ZJ', u'自建'),
('BGP', u'BGP')
)
#IDC 机房信息
class Idc(models.Model):
name = models.CharField(u"机房名称", max_length=30, nul... | [
"flc009@163.com"
] | flc009@163.com |
c3eb725e534fc75e317d57e2c555513424eaded4 | eed0730f0b6b9ef0c424b27f38be5970b12e1d44 | /workfront/workfront.py | f748fa2126b779cf9c4ae8bfb77ba998fb3ab610 | [] | no_license | leqnam/workfront-sdk-pymod | 4836a0ccd2b7d881788cec6e8a1b46f003ecfc0c | 6ba528a5b03131a77705eb08fb919e197bc3658c | refs/heads/master | 2020-06-30T11:09:33.787052 | 2019-08-07T07:04:01 | 2019-08-07T07:04:01 | 200,809,612 | 0 | 0 | null | 2019-10-30T15:41:54 | 2019-08-06T08:29:33 | Python | UTF-8 | Python | false | false | 12,242 | py | from __future__ import absolute_import
from collections import OrderedDict
from requests import session
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from workfront.exceptions import WFException, raise_if_not_ok
import datetime as dt
from urllib import urlencode as urlencode
class W... | [
"leqnam@live.com"
] | leqnam@live.com |
501d4cf8849c45dc852caa7e9a3fb497fe0a3152 | fe6a130f46707ab6f0fe7b3b753f1fb355d27cc2 | /tasks/start.py | 2e6ba9f575378040bd001a3af1412a55a14369a5 | [
"Apache-2.0"
] | permissive | mistio/amqp-middleware-blueprints | c64f943738e358b62eeaf1efda1f77dea64070fe | de12a535585e2bac28f42e13a33392d6d5f94310 | refs/heads/master | 2021-01-01T19:18:18.836464 | 2017-12-04T18:30:51 | 2017-12-04T18:30:51 | 98,559,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from cloudify import ctx
import os
import sys
ctx.download_resource(
os.path.join('tasks', 'utils.py'),
os.path.join(os.path.dirname(__file__), 'utils.py')
)
try:
from utils import SystemController
except ImportError:
sys.path.append(os.path.dirname(__file__))
from utils import SystemController
... | [
"pollalis.ch@gmail.com"
] | pollalis.ch@gmail.com |
c34d97eb2acbb1dd9c533be3c7abd270ae555e3c | cad941a8189258bb57d6ec218b10c8d38be76799 | /main.py | 111eebcf5aa1cfc259fd99b16cb9b459d350b20a | [] | no_license | iccprashant/desktop-weather-notifier | c555f09d896564384ad54a5ef0959518989075e5 | 95a33f3c724e1911f202604e57abe3cbd0d0e8f3 | refs/heads/master | 2022-12-18T08:42:11.895320 | 2020-09-14T09:47:53 | 2020-09-14T09:47:53 | 295,318,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | #install and import
#libraries
import requests
from pynotifier import Notification
url = "http://api.openweathermap.org/data/2.5/weather?q="
#enter your city
cityname = ""
#enter your api key
api_key = ''
data = requests.get(url+cityname+'&appid='+api_key).json()
#define
city = data['name']
country = data['sys']['c... | [
"www.thetranquil@gmail.com"
] | www.thetranquil@gmail.com |
39221dbead5fa56ab60b62b790b52637218391a3 | 29b50139faf9703a662a2ef4177018b088f00125 | /main.py | f893deb70b1c7e01735cd4856d1e72a75693d72f | [] | no_license | bstormy40/web-caesar | 254c41259d895a5e708ac47fe3e09882d874f5bb | 62ffd6b1b643d04601f1167deac136cea856f10f | refs/heads/master | 2021-01-18T23:34:08.952445 | 2017-04-03T20:10:11 | 2017-04-03T20:10:11 | 87,116,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import webapp2
import caesar
import string
import cgi
def build_page(textarea_content):
rot_label = "<label>Rotate by:</label>"
rotation_input = "<input type='number' name='rotation'/>"
message_label = "<label>Type a message:</label>"
textarea = "<textarea name='message'>" + textarea_content + "</texta... | [
"chrx@chrx.com"
] | chrx@chrx.com |
fb7d85d1bd48d9b0deed57d50595f49a229960e3 | 9beaadedbe588ceb51f6f3f2909499d69dd79d2a | /api/migrations/0004_auto_20160904_1214.py | 141146aa3a5843197c7628a51a2505f0584cbfba | [
"Apache-2.0"
] | permissive | kushsharma/GotAPI | 8c348dcdab7363a88107cc0a696fd87c35cb7d2e | d9712550c1498354e75ce1e2d018b9b71a5989ec | refs/heads/master | 2020-12-25T14:14:43.578066 | 2016-09-04T17:17:19 | 2016-09-04T17:17:19 | 67,357,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,420 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-04 06:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20160904_1201'),
]
operations = [
migrations.AddField(
... | [
"kush.darknight@gmail.com"
] | kush.darknight@gmail.com |
e577ecad7dd739f19d5d4c54911877c6f273475d | cc128e9804ce0cb659421d2b7c98ff4bfbb9d90b | /train_mnist.py | 1b0d31c2e9272ae7e592fb1a42f457db483d3fe7 | [] | no_license | hope-yao/robust_attention | 6beb2de2c3b849c66e79ec71ae81ed127cee3079 | 905a32f02bb8d4709666036f6a6e1f82684f8716 | refs/heads/master | 2020-04-02T08:52:48.430423 | 2018-10-30T00:13:55 | 2018-10-30T00:13:55 | 154,265,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,507 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
from model_mnist import Model_madry, Model_att, Model_crop
from pgd_attack import *
from viz2 import *
import os
import numpy as np
from pgd_attack import LinfPGDAttack
from utils import creat_dir
from tqdm import tqdm
slim = tf.contrib.... | [
"hope-yao@asu.edu"
] | hope-yao@asu.edu |
0c508135d6bb714cd37dc7b90d89215c6f472f0b | 638a4aec4eeacfda5914057730ee586fe8cc537c | /scrapy_CrawlSpider/youGuoWang/youGuoWang/middlewares.py | 81367760135b21d2fc510c77a3aee5b8d59b9e9f | [] | no_license | aini626204777/spider | 948a7186414be62cbb90e62eb29c2510e0e7ee75 | 841cad4bf84c6e3af98a32f4f33ebda62055680c | refs/heads/master | 2020-03-22T05:23:27.320852 | 2019-02-28T02:16:11 | 2019-02-28T02:16:11 | 139,562,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class YouguowangSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"626204777@qq.com"
] | 626204777@qq.com |
09b7c43974c452aa558771ff82d39277a2a70b12 | 56b4021d59f79abdc9d7a3a8a66adcf43fb62645 | /2021/8/solve.py | 6b8f04b3831447e0f9fd887a638aa0ea3628f5f2 | [] | no_license | ConnorJEckert/AOC | fe59a7a10a5365a77f9b60050d1e338b612bf2ee | 605c028000f27f337d61d5db548bdb621560f6ab | refs/heads/master | 2021-12-15T01:33:29.019781 | 2021-12-08T22:30:17 | 2021-12-08T22:30:17 | 225,894,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py |
def decode(s, en):
dlen = {2:1, 4:4, 3:7, 7:8}
dlett = {2:'', 4:'', 3:''}
if dlen.get(len(s)):
return dlen[len(s)]
for d in dlett.keys():
dlett[d] = set([x for x in en if len(x) == d][0])
ss = set(s)
if len(ss) == 6:
if not dlett[2].issubset(ss):
retu... | [
"connor.j.eckert.mil@mail.mil"
] | connor.j.eckert.mil@mail.mil |
18bee3e39997b492a3bb50164a812f1f93977c73 | 754cb00a3ba822983c505b791d867d1fc72d0085 | /media.py | 8f6661eba94e17ee4bab0ba48084e4feaddd0312 | [] | no_license | RadhaBhavaniGowd/ud036_StarterCode | ccfb589dd08a81613cd1e892fa552d3a848230b9 | c023995bad338e4d28747550e696acaa5cae19e9 | refs/heads/master | 2020-03-12T05:47:08.898908 | 2018-04-22T15:30:38 | 2018-04-22T15:30:38 | 130,470,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # Movie Class which stores Title, Image Url and Youtube Trailer Url
class Movie():
"""This class provides a way to store movie related information"""
def __init__(self, movie_title, image_url, trailer_url):
self.title = movie_title
self.poster_image_url = image_url
self.trailer_youtube_... | [
"radha.p@samsung.com"
] | radha.p@samsung.com |
0558d89f2a0fe543a3f573641e48fc56298584ab | cb091db276e611e1eb9694fb97c67c0badf2c8f5 | /book/models.py | 8cf88eede61314582af83f22dfbfa4a9e072deb6 | [] | no_license | maorjuela73/booksapp | 62f3b7fbcd6d5f348c762f2aed3ac0210aad523e | e2a539489e485805c8a329006f9c8275bde61ae8 | refs/heads/master | 2023-01-24T11:40:10.577642 | 2020-11-24T19:53:07 | 2020-11-24T19:53:07 | 315,737,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.db import models
class Book(models.Model):
name = models.CharField(max_length=50)
picture = models.ImageField()
author = models.CharField(max_length=50, default='No me acuerdo')
email = models.EmailField(blank=True)
describe = models.TextField(default='Libro muy interesante')
def ... | [
"ma.orjuela73@gmail.com"
] | ma.orjuela73@gmail.com |
59e4c55b2897dd0b53023ff4f9d09f5f2807abb4 | 118c08d9aa40c634e5a23570e4d3d7ee62161d80 | /blog/migrations/0001_initial.py | 6253ea0e6428e292382c6c90bf0010506a14c134 | [] | no_license | anosike-ikenna/suorganiser | 86b63bc838e3f6e6e30282cd90936d6b42c8945f | 57c61b61dab97a8f980cb1f35cfb1e3165321cbc | refs/heads/main | 2023-07-22T18:45:31.959094 | 2021-09-02T11:32:00 | 2021-09-02T11:32:00 | 402,384,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | # Generated by Django 2.2.3 on 2019-07-11 21:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('organiser', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | [
"anosike212@gmail.com"
] | anosike212@gmail.com |
829235b93de366e3851468e05c0bfb9c2ecbbd6d | 0a36ba4f64a33e983f52139ac3e8e58dc8bfadfb | /venv/bin/easy_install | 09e2b8c29ef7e3e1e30797842df1c578f4e01b43 | [] | no_license | giorgos321/a_small_platform_game | 1997ef3fba74213dba4504e7bdd73f223f7625d5 | 0d43934fe46f7a118eb37a361050f72fa5e1359f | refs/heads/master | 2021-03-23T12:51:46.729256 | 2020-08-29T18:17:21 | 2020-08-29T18:17:21 | 247,455,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | #!/home/lame/PycharmProjects/untitled/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"lame.giorgos@gmail.com"
] | lame.giorgos@gmail.com | |
7b31bad1de6c37f144e0dc67290952fd10d7ec0f | 447e9c533733097cc94bebb8aa9bd2a50a14e93a | /src/day14.py | db3de915efab260f86312f0780914f7c9f0fa4e9 | [
"MIT"
] | permissive | johan-eriksson/advent-of-code-2018 | 7c449e0c96e71cc4e2562104547dafa6db7a0767 | b57291ef9aacd78c39814a144385a923c5f37ebb | refs/heads/master | 2021-10-10T11:45:58.523676 | 2019-01-10T14:00:55 | 2019-01-10T14:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import pdb
import collections
def rot_right(to, recipes):
return to%len(recipes)
def tick(recipes, elves):
new_recipe = 0
for e in elves:
new_recipe += recipes[e]
str_recipe = str(new_recipe)
for c in str_recipe:
recipes.append(int(c))
for i, e in enumerate(elves):
to = e + recipes[e] + 1
elves[i] = ro... | [
"imoxus@gmail.com"
] | imoxus@gmail.com |
3a42041f303d1582f30966936a42b62c72a04fab | d2bf9dd996c5345a5fe795a45d13d9e21952a78c | /ex00/first_class.py | a7a4906b31d0205083b7ee817cc42ce56ed73614 | [] | no_license | AVerteC/OOP-Python | df815b0ddc910e1e44b7b50566fbfc45759e8078 | 258f8b4d6a220493ff51b024aa39284d4c4fc6d5 | refs/heads/master | 2020-03-20T22:34:09.783726 | 2018-06-29T21:25:10 | 2018-06-29T21:25:10 | 137,804,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | class FirstClass:
def __init__(self):
print("Hello World")
| [
"alan.r.chen@gmail.com"
] | alan.r.chen@gmail.com |
b37800cd2a76db5f6141ff890971a44e81db7256 | fd287b82a0ccb142098b671123d3ec84bcd54779 | /app.py | 0a3769324c8d8297abf5d5cb80f2d31ca7e468d9 | [] | no_license | dproctor/visual-qa-streamlit | 803448cbb4bcf4eb2fec46f18bc4468ebf4035a6 | 19445c254a5552a757e45e86b03bba133149c152 | refs/heads/master | 2022-12-20T21:04:42.849797 | 2020-09-29T01:15:06 | 2020-09-29T01:15:06 | 299,470,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,011 | py | import model
import streamlit as st
import utils
from visualizing_image import SingleImageViz
URL = "https://vqa.cloudcv.org/media/test2014/COCO_test2014_000000262567.jpg"
OBJ_URL = "https://raw.githubusercontent.com/airsplay/py-bottom-up-attention/master/demo/data/genome/1600-400-20/objects_vocab.txt"
ATTR_URL = "htt... | [
"devon.proctor@gmail.com"
] | devon.proctor@gmail.com |
31293892611c10cb6f78d5d022590cb0fd1f5d9c | 56ade096db1fe376ee43d38c96b43651ee07f217 | /326. Power of Three/Python/Solution.py | c065d49b669d5e5476e90c9150b003991cc8f091 | [] | no_license | xiaole0310/leetcode | c08649c3f9a9b04579635ee7e768fe3378c04900 | 7a501cf84cfa46b677d9c9fced18deacb61de0e8 | refs/heads/master | 2020-03-17T05:46:41.102580 | 2018-04-20T13:05:32 | 2018-04-20T13:05:32 | 133,328,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class Solution(object):
def isPowerOfThree(self, n):
"""
:type n: int
:rtype: bool
"""
if n <= 0:
return False
return (3 ** 19) % n == 0
| [
"zhantong1994@163.com"
] | zhantong1994@163.com |
d1edf5eddbfe11bfe3e79129267a11560bd4cb23 | 0fc3a883d9c56efb3208baf5bda6669b8c5c28ff | /blog/views.py | fbb11a5f0deb4bfba9f4ba86856bb8e726050564 | [] | no_license | USN484259/mooc_site | 90fcd493d5aa7a1b7ecba785fab094ad7309344d | 52501033e0fdd60bf58219109a0c778c6aaf4cc3 | refs/heads/master | 2020-07-08T08:38:29.394126 | 2019-09-20T01:56:10 | 2019-09-20T01:56:10 | 203,620,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | from django.shortcuts import render_to_response, get_object_or_404, render,redirect
from django.core.paginator import Paginator
from django.contrib.contenttypes.models import ContentType
from .models import Blog#, BlogType
from .forms import *
from comment.models import Comment
from course.models import *
from user_pr... | [
"USN484259@outlook.com"
] | USN484259@outlook.com |
61bcea20d831ee5bb2e6490975fb165d775ffadd | 9567dffdc1a41d60e932b7f07e2ea1af766348ae | /quicksort.py | 4244fc76deb0d1134e8a40bcb4dc79f568783111 | [] | no_license | zengfancy/outbrain | ecdbbd913f95b4c79feef2e4fd85ddfeb4292cb0 | 2cdb3aad3baebba5ab8fd185699fd992f1a995a9 | refs/heads/master | 2020-12-24T12:28:34.114158 | 2016-12-05T10:13:20 | 2016-12-05T10:13:20 | 73,001,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py |
def partition(l, start, end):
pivot = l[end]
bottom = start-1
top = end
done = 0
while not done:
while not done:
bottom = bottom + 1
if bottom == top: ... | [
"zengfancy@126.com"
] | zengfancy@126.com |
d28c6704316729bd44db8199afdad8c93315706c | 71e79cd355fc4a78ed20b92e9c76e35e6c51eb8a | /FLAPPYBIRD/Flappybird.py | 11b60d8fba29a55cac7809e35008ac1d24b170b4 | [] | no_license | Rbr23/FlappyBird | 5512c2f213200c3387436184fcb9f21253fb1e4e | 142593ad41b55a6f9d1338a951ba7b257ada1180 | refs/heads/master | 2023-08-11T09:23:10.618576 | 2021-09-20T15:09:25 | 2021-09-20T15:09:25 | 408,490,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,227 | py | import pygame
import os
import random
import neat
ia = True
geracao = 0
LARGURA_T = 500
ALTURA_T = 700
CANO_IMG = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'pipe.png')))
CHAO_IMG = pygame.transform.scale2x(pygame.image.load(os.path.join('imgs', 'base.png')))
BACKGROUD_IMG = pygame.transform... | [
"roberto.ribeiro@al.infnet.edu.br"
] | roberto.ribeiro@al.infnet.edu.br |
c321ff81f92bb3395f0e4dba6fc0c8587be08646 | b1cdbb08b51ce0edfc97351ea07f10166624e5cc | /src/rocks-pylib/rocks/commands/dump/appliance/attr/__init__.py | 6c6ac6efa9a4ddd893b4f02fb1a4175d1e36d338 | [] | no_license | tcooper/core | 2453220bdc305a4532fd6f0bda9fdb22560add21 | 61d2512146f34f71d09f817a3d07a56c979d1bf9 | refs/heads/master | 2021-08-22T17:17:20.080481 | 2017-11-30T19:33:53 | 2017-11-30T19:33:53 | 105,914,127 | 0 | 0 | null | 2017-10-05T16:32:48 | 2017-10-05T16:32:48 | null | UTF-8 | Python | false | false | 4,555 | py | # $Id: __init__.py,v 1.9 2012/11/27 00:48:14 phil Exp $
#
# @Copyright@
#
# Rocks(r)
# www.rocksclusters.org
# version 6.2 (SideWindwer)
# version 7.0 (Manzanita)
#
# Copyright (c) 2000 - 2017 The Regents of the University of California.
# All rights reserved.
#
# Redistribution... | [
"ppapadopoulos@ucsd.edu"
] | ppapadopoulos@ucsd.edu |
2e21a7b0ef29b525bf0e8862398fb730784ead92 | 911193aef851ab2ec7827e3eca4764ee712dcc2c | /test/path_test.py | de391d1831a0f58c72626c2b2ee42a6180898d02 | [
"MIT"
] | permissive | tsolakidis/gluish | 2c1e213bc6580c2e829782071b51968360942e51 | 19b513f2ad3adb38dc094cbe2f057bb2edaca78e | refs/heads/master | 2020-12-13T23:31:07.611041 | 2015-06-17T16:54:20 | 2015-06-17T16:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,929 | py | # coding: utf-8
from gluish.path import (unlink, size_fmt, wc, filehash, touch, which,
findfiles, fileage, copyregions, random_tmp_path)
import unittest
import tempfile
import os
import stat
import errno
class PathTest(unittest.TestCase):
def test_unlink(self):
""" Should not rai... | [
"martin.czygan@gmail.com"
] | martin.czygan@gmail.com |
4c0f18d348e88d197d5493b644f23756d160e822 | 29c04332964b171d397bdb62aad6fb3491dbb088 | /src/sales/models.py | 4045a9ee025ede77e51b76c38e0997811b39365c | [] | no_license | TodorToshev/Djano-Sales-Report-App | a1db838ddb8ecda83663b77b55ed03c3761a1748 | a8e695c503bdc7e4f917c77fd37a598dcf57c004 | refs/heads/main | 2023-07-10T10:03:48.004025 | 2021-08-24T16:29:03 | 2021-08-24T16:29:03 | 394,754,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | from sales.utils import generate_code
from profiles.models import Profile
from django.db import models
from products.models import Product
from customers.models import Customer
from django.utils import timezone
from django.shortcuts import reverse
# Create your models here.
class Position(models.Model):
product ... | [
"t.toshev95@gmail.com"
] | t.toshev95@gmail.com |
0264c17eab58426d488eb8d9162610f5733a8445 | fcbddb18a15d01566d08659e979d1d2c6b6d4a61 | /chapter_10/ques2.py | a89b3cf34f0313a0d73a480968fea7ecf1b9a894 | [] | no_license | IshitaSharma3101/Python | 17afe4ea5f1e4b52bcd7f2af4b95f6165369121f | 83d95f90e4b1dfa80fa81b2de4bc77b6ffb862a0 | refs/heads/main | 2023-07-02T23:43:19.122499 | 2021-08-06T21:24:52 | 2021-08-06T21:24:52 | 381,369,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | class Calculator:
def __init__(self, n):
self.num = n
def square(self):
print(f"Square is {self.num **2}")
def squareRoot(self):
print(f"Square root is {self.num **0.5}")
def cube(self):
print(f"Cube is {self.num **3}")
a = Calculator(25)
a.square()
a.squareRoot()
a.cube(... | [
"72185572+IshitaSharma3101@users.noreply.github.com"
] | 72185572+IshitaSharma3101@users.noreply.github.com |
868c1789bc6bc77c91840dc6e12b566bb2534ce2 | 2dbcea415ce05b32514e7c67dc8131cce32dfb13 | /rpi/testMotion/tilt_sweep.py | 8b8127f470dc7a8750ae12698f3e3b29f7b0b526 | [] | no_license | WeiXie03/quiXtinguish | f881ce6df2e15c6adffa2e6616998b7cb1061789 | 54f217a8969afa2aafb3b8bf158fc2e232670743 | refs/heads/master | 2022-04-29T20:46:34.624528 | 2022-04-08T03:09:38 | 2022-04-08T03:09:38 | 169,194,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import pigpio as pig
import testServo as servo
from time import sleep
def sweep(servo):
print('turning')
servo.turn(90.0)
sleep(0.5)
servo.turn(120.0)
sleep(0.5)
if __name__ == "__main__":
pi = pig.pi()
PIN = int(input('Enter the RPi pin number the servo is connected to according to Broadc... | [
"wei.tom.xie@gmail.com"
] | wei.tom.xie@gmail.com |
f6171dc1f166c4cd9ff4f0b36b306a411c732578 | 6dc04a9889d5b83e1335431a644325235e4102f7 | /wallGui/__init__.py | f8b14becc563aa921dc061ea643910ff7be189c9 | [
"MIT"
] | permissive | Jelloeater/forgeLandWallGUI | c7790f10a105927f083ebe8aba9cf6d5f86b5e48 | 4fa0d436377f84971279fee21cb935e2d6e59095 | refs/heads/master | 2020-03-30T17:15:30.307402 | 2014-06-15T18:15:57 | 2014-06-15T18:15:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | __author__ = 'Jesse' | [
"jelloeater@gmail.com"
] | jelloeater@gmail.com |
f3b978edc5a1825ce40e6be943823819d557c71a | 5b21010a60849b173f19e5a35eb3b1be425902cb | /meeting/views/pilot.py | c975f71a7fb04cc766b7c2853da36c5cf3cefd60 | [
"MIT"
] | permissive | UlmBlois/website | de89a0218041d3ff60f5eaaa77f5e272d89450ea | 01e652dd0c9c5b7026efe2a923ea3c4668d5a5b4 | refs/heads/master | 2021-07-01T09:21:55.628605 | 2020-10-11T10:56:28 | 2020-10-11T10:56:28 | 150,215,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,016 | py | # django
from django.shortcuts import redirect
from django.http import Http404, HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic.edit import (UpdateView, DeleteView, CreateView,)
... | [
"serrette.nicola@gmail.com"
] | serrette.nicola@gmail.com |
89154813eb3ff9f4e9c50e0d31da866ddf5a105f | 1617a9a9c92146bcdac89b5efb1ef0d18408160b | /cont6lab/36/generator.py | 0977a7c5fc92dad574ae123ad1808f554c15b4d0 | [] | no_license | LitRidl/checker-content | 1b1329b4462b87731e0755ab33480ff063a94a00 | b5d0456c8d4d28db6e6022e272a95a385f253797 | refs/heads/master | 2023-08-17T18:08:07.377680 | 2018-02-04T11:16:34 | 2018-02-04T11:16:34 | 120,077,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from __future__ import print_function
from random import shuffle, randint, choice
from numpy import base_repr
import sys
HEX_DIGITS = '0123456789ABCDEF'
def rnd(l, r, base=10):
return base_repr(randint(l, r), base=base)
def rnd_word(length, prefix=' ', alphabet=HEX_DIGITS):
word = ''.join(choice(alphabet) ... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
8976e7aa9725897cff291e560d65e0e1e1d00039 | ac0ff6b7179cc8002f87704553a35290325da69d | /app/test_app.py | 064ac449f113470034ef3e5c21b38c53c7a0b9c2 | [] | no_license | amaotone/fastapi-example | 87ce2b065672b5e74bc049d6ca84bd2ee91d340f | 726a452305a57243dcea98b557880e042fea0d30 | refs/heads/master | 2023-02-23T03:22:55.297487 | 2021-01-28T06:05:48 | 2021-01-28T06:05:48 | 333,622,702 | 18 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from fastapi.testclient import TestClient
from palmerpenguins import load_penguins
from main import app
client = TestClient(app)
models = ["randomforest", "decisiontree"]
example_body = {
"model": "randomforest",
"bill_length": 40,
"bill_depth": 20,
"flipoper_length": 200,
"body_mass": 4000,
}
d... | [
"amane.suzu@gmail.com"
] | amane.suzu@gmail.com |
aaa99d433e458c0bf78570f0f35b6291c7790175 | a9a27cd7a3c3d6ccf80d71acfd1bf568f3c3969d | /records/views.py | 6b75b8ee3175337f7a31efd1c25ee54a53c2483f | [] | no_license | Resurfed/timerweb | 1ee62fba70c82ff4b70ed0afcb8af4597ff2709e | 448697cd64948bffa1b6a7de1ef40a19c225bdda | refs/heads/master | 2021-10-10T00:34:41.320733 | 2018-03-03T20:16:14 | 2018-03-03T20:16:14 | 114,939,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from django.shortcuts import render
from rest_framework import generics
from .models import Time
from .serializers import TimeSerializer
from .filters import TimeFilter
class TimeList(generics.ListCreateAPIView):
queryset = Time.objects.all()
serializer_class = TimeSerializer
filter_class = TimeFilter
c... | [
"20483150+mvonsm@users.noreply.github.com"
] | 20483150+mvonsm@users.noreply.github.com |
f4adbaf1b2964ff6c99e4ebc11725555d3d8b479 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /sas-20181203/alibabacloud_sas20181203/client.py | 9b1b8966fd4890d8d6945e6c7403bff1b32e9637 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360,248 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from Tea.core import TeaCore
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilCl... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c08246e90752b5cf2931f98b6a3b7c4a9ca8bf10 | 8452ab63a0c623a78859d5aa0c3fe2d4e413059e | /250957375_lab1_module2_task3.py | ec0c383c81051a3a4030acf0d8442b2eadf5bb01 | [] | no_license | cdevito2/networkingLabs | 079a1c334ee6332ae82f1167156d842291523140 | 47b0ba8dc9aa5faf6e439a7981ddd3f74502c4fb | refs/heads/master | 2020-08-09T05:32:29.732296 | 2019-10-09T19:48:19 | 2019-10-09T19:48:19 | 214,009,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,869 | py | '''
Created on Oct. 6, 2019
@author: chris
'''
from socket import *
import base64
import ssl
msg = "\r\n ChrisDevito. 250957375"
endmsg = "\r\n.\r\n"
addmsg = "250957375"
#submitMsg = msg+addmsg
# Choose a mail server (e.g. Google mail server) and call it mailserver mailserver = #Fill in start #Fill in end
mailserver... | [
"cdevito2@uwo.ca"
] | cdevito2@uwo.ca |
5498b634ec51ff47231615d83d53c26239e86d57 | 5ad26686c6379c34ab052e2368f9ea5d0a8ba8c9 | /general/kraken_parse.py | 6f1cdcfcad655b6a87b3465fd4f7bb48a75657bb | [] | no_license | LeahRoberts/scripts | b1e90bc4c3ba36f24f1fe797e6ed714a40e7c192 | 2224d21ab0b103f49f0bdcb4bf565078e3eb9f9a | refs/heads/main | 2023-07-14T05:23:43.247540 | 2021-08-24T09:14:51 | 2021-08-24T09:14:51 | 370,647,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!/user/bin/env python
# write script to count and parse out lines with 2nd species percentage higher than x threshold
import sys
# Read in file:
file1 = sys.argv[1]
cutoff = sys.argv[2]
w = open(file1, "r")
with open("contaminated.list", "a") as fout:
for line in w.readlines():
species2 = line.split(... | [
"leah@hl-codon-21-01.ebi.ac.uk"
] | leah@hl-codon-21-01.ebi.ac.uk |
d98fa9c4c72e804c840b7be522b57343cc4a35e4 | 30664f5cf211bccff797ae896097b6aec82fbc36 | /scripts/simple_hk_analysis.py | c552d50840e64843fabb9a603acda9fda945a1fc | [] | no_license | zwytop/ph-hk-agency | 82ffe221d258b5ace5cc84f78c543872ee7b3c3c | b7211fef706b9faea37acfd327107dc0af95121c | refs/heads/master | 2020-04-22T11:16:52.738432 | 2018-12-16T07:06:06 | 2018-12-16T07:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | import snap
import numpy as np
import matplotlib.pyplot as plt
import random
def getDataPointsToPlot(Graph):
DegToCntV = snap.TIntPrV()
snap.GetDegCnt(Graph, DegToCntV)
totalNodes = Graph.GetNodes()
X, Y = [], []
for output in DegToCntV:
X.append(output.GetVal1())
Y.append(outpu... | [
"mayala3@stanford.edu"
] | mayala3@stanford.edu |
e573dd4f0c9e877ff4401b6edb192275d46b4588 | c9ee7bd79a504597a32eac0d78e54d29ee139572 | /00_algorithm/Stage2/01_UnionFind&Kruskal/lesson1-1.py | 8c6b5d1b9600bb017683d8e9e228990867876b4b | [] | no_license | owenyi/encore | eb3424594da3f67c304a8a9453fc2813d4bbba0d | 878ca04f87050a27aa68b98cba0c997e9f740d5d | refs/heads/main | 2023-07-13T10:08:24.626014 | 2021-08-23T13:40:54 | 2021-08-23T13:40:54 | 349,922,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # 특정 원소가 속한 집합을 찾기
def find_parent(x):
if parent[x] == x: return x
parent[x] = find_parent(parent[x])
return parent[x]
# 두 원소가 속한 집합을 합치기
def union_parent(a, b):
a = find_parent(a)
b = find_parent(b)
if a < b: parent[b] = a
else: parent[a] = b
# 노드의 개수와 간선(Union 연산)의 개수 입력 받기
v, e = map(in... | [
"67588446+owenyi@users.noreply.github.com"
] | 67588446+owenyi@users.noreply.github.com |
f8e7195c37439ccb1abce5c339cdbe5f0258a6e8 | 76eb448085b66c45fb93290bb50b930e89244c66 | /experimento_1/experimentoSVD.py | c4951994b484d76d1ab783c795653a451ae3b078 | [] | no_license | Daniton2906/MineriaDeDatos | 2717a4fb591764d70cfa1a4882e5ce6d5ac43c2f | d019dd1c0c4fc2f0c5c978e84c1f2e35305c29b8 | refs/heads/master | 2021-01-23T21:54:40.644857 | 2017-12-05T21:38:10 | 2017-12-05T21:38:10 | 102,911,900 | 0 | 0 | null | 2017-12-03T21:09:04 | 2017-09-08T23:13:59 | Python | UTF-8 | Python | false | false | 1,854 | py | import pyreclab
from random import *
from exp_base import *
import os.path
#########################################################################################################
###### FunkSVD ######
################################... | [
"ddiomedi2906@gmail.com"
] | ddiomedi2906@gmail.com |
170e2609aaab69d31d73db5c0f2ad96c819210f3 | 2ba99f2362690db7cf0548efc0bd49375249a0d6 | /Bus_Route/app/testing_current.py | 2132fff2a5002785269ebff2b19782b2df7af88e | [] | no_license | miniaishwarya/Bus-Route-Navigator | d54844ae562f6b0345804791df6d5dbcdd444773 | 0fa22c865186bb248fa988f498f2cf2c885dc472 | refs/heads/master | 2022-11-17T08:53:36.096427 | 2020-07-09T08:53:43 | 2020-07-09T08:53:43 | 255,096,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | import cv2
import numpy as np
#import import_ipynb#for enabling importing of ipynb
from app import matching_test2 as m_t #ipynb for matching
from app import pre_processing as pre_p#ipynb for pre processing
from googletrans import Translator
import matplotlib.pyplot as plt#for plotting image
from pytess... | [
"noreply@github.com"
] | miniaishwarya.noreply@github.com |
2a5f0ce18def4e02a4c3c04d02095959d140b185 | b3c2373e6ceee07a9fec8275e6a98461b2c2b12e | /api/db/serializers.py | 1c5214b6f5f36b770e3659f5a11519997ae54cde | [] | no_license | VagnerSpinola/samplemed | 80602db406ba442b9ba8a97b25f84bafa40de6d1 | cd594b499f49e27017be2314d5eacfe095f5e65d | refs/heads/main | 2023-06-16T08:14:41.821027 | 2021-07-01T20:03:19 | 2021-07-01T20:03:19 | 382,035,655 | 0 | 0 | null | 2021-07-01T20:03:19 | 2021-07-01T13:04:51 | Python | UTF-8 | Python | false | false | 303 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from .models import Blog
class BlogSerializer(serializers.ModelSerializer):
username = serializers.CharField(source='user.get_full_name')
class Meta:
model = Blog
fields = "__all__"
| [
"vagner.spinola@casacontrolada.com.br"
] | vagner.spinola@casacontrolada.com.br |
cba84e9e17675ae6886166de617c206eff6eea92 | 24d866517f749b172bc0d54dd87da5df9ae01650 | /Assignment 2.py | 6c028df9729eed34ab8f1fe343ba012fa5de107d | [] | no_license | arzanpathan/Python | 6ff4ea7933d6be80c9c627239eeeaf327f8c5cb1 | 651441aaaf78b8dabf1e96f3807b66b8ca348a1f | refs/heads/master | 2020-03-22T15:48:38.517628 | 2018-07-22T06:38:23 | 2018-07-22T06:38:23 | 140,280,335 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #WAP to Print 10 to 1 using While
print('\nProgram to Print 10 to 1 using While')
a=10
while(a>=1):
print(a)
a=a-1
#WAP to print "n" natural numbers (Take input from the user)
print('\nProgram to print "n" natural numbers')
x=int(input('\nEnter a Number: '))
y=1
while(y<=x):
print(y)
y=y+1
| [
"noreply@github.com"
] | arzanpathan.noreply@github.com |
dbd02df2b48e76f3f0f7020f002afafb81d785c0 | b1d5b50532e808c662bbf46c99a5a1179d1350d1 | /main.py | 7ca0dd681d272fd505209b4aa7b229aa31de795a | [
"Apache-2.0"
] | permissive | Shrenikjangada/Fake-News-Scraper | bf889bde453ccdc17d1e1074d362efe78acac4c3 | ed840710481ee3c5f8d03b9e710157c66ac6296e | refs/heads/master | 2022-12-19T00:37:24.001299 | 2020-10-01T10:54:08 | 2020-10-01T10:54:08 | 300,243,836 | 0 | 0 | Apache-2.0 | 2020-10-01T10:47:31 | 2020-10-01T10:47:29 | null | UTF-8 | Python | false | false | 1,125 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 13 00:48:50 2020
@author: deviantpadam
"""
from flask import Flask, render_template, request
import sqlite3
app = Flask(__name__)
# app.jinja_env.globals.update(zip=zip)
conn = sqlite3.connect('db2.sqlite')
cur = conn.cursor()
cur.execute... | [
"padamgupta1999@gmail.com"
] | padamgupta1999@gmail.com |
3171d4c5b4e9381a54003fffaa2fd2f2e1d89f09 | 6789343770d078f63dc9cfcb905bbb801edc2615 | /images/migrations/0002_auto_20200723_1347.py | 924e235c29d1c483a61e74ee027205bea15f9a2c | [] | no_license | Code-Institute-Submissions/Final_Milestone_Project | 1cac18a7ceb366be13de16c0bf24f1a73b1d606d | 3b12c46beb5b04a506ef6c9fe252d1c891cdd49f | refs/heads/master | 2022-12-11T19:42:38.049404 | 2020-09-09T17:33:11 | 2020-09-09T17:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # Generated by Django 3.0.8 on 2020-07-23 13:47
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('images', '0001_initial'),
]
operations = [
migra... | [
"seanjcarley@outlook.com"
] | seanjcarley@outlook.com |
91bb87a9d8544fe8ba3f5e4a39c3aa4bc2d0c242 | 8770f1a2d158354e04ddc88dc4e2fd62d2501785 | /application/__init__.py | ee667441677e48913f088b5e70a737768c765dd4 | [] | no_license | sarasiraj2009/flask-blog | b49a8077d63d535eb0da04978a1b590516e47745 | 4dfe0b37086628c0fd1a48add81f6db23cdee0ec | refs/heads/master | 2021-08-06T22:53:51.092392 | 2020-03-17T16:20:16 | 2020-03-17T16:20:16 | 246,011,771 | 0 | 0 | null | 2021-03-20T03:08:59 | 2020-03-09T10:57:39 | Python | UTF-8 | Python | false | false | 576 | py | # import Flask class from the flask module
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from os import getenv
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
# create a new instance of Flask and store it in app
app = Flask(__name__)
bcrypt = Bcrypt(app)
app.config['SQLALCHEM... | [
"sarasiraj2009@gmail.com"
] | sarasiraj2009@gmail.com |
b862d1f52dec584c48b5dc6edfaf74199dead53f | e67dd7b4cb64a65eafd33c48722d89c922da9100 | /myjango/aixianfeng1/App/urls.py | 2ba51433d3065386edbd8ef68801d2e0214e6882 | [] | no_license | Tomxutianyuan/myjango | 3f25ce16003a458aba2f021b3d6a39eb37b64a3a | d454d6ccc177eb140a16459795848f1179872c52 | refs/heads/master | 2020-04-25T15:57:03.790705 | 2019-02-27T10:27:55 | 2019-02-27T10:27:55 | 172,893,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | """aixianfeng URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
... | [
"17781039907@163.com"
] | 17781039907@163.com |
d816d7ac470e98cd21deba0d308567499d0c46d9 | 5f5719fca3ba26a6daae2c8e78b5eaa62bac24c7 | /pdf_example_2.py | 022e3ea6e8a67677dcfe2329443b5f0297a75516 | [] | no_license | seakun/automated_python_projects | 8e4bc3444c336973ba89fc6e814fbd56a1d4e2ee | 5e355f5bc3d073acd5d48cacf129dcbbc117a247 | refs/heads/master | 2022-04-08T17:17:39.766942 | 2020-03-11T14:20:28 | 2020-03-11T14:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import PyPDF2
pdf1File = open('meetingminutes1.pdf', 'rb')
pdf2File = open('meetingminutes2.pdf', 'rb')
reader1 = PyPDF2.PdfFileReader(pdf1File)
reader2 = PyPDF2.PdfFileReader(pdf2File)
writer = PyPDF2.PdfFileWriter()
for pageNum in range(reader1.numPages):
page = reader1.getPage(pageNum)
writer.addPage(page... | [
"seakun@users.noreply.github.com"
] | seakun@users.noreply.github.com |
e4addbf248c5559ec48eefc87e6d736007375e88 | 6413ab402c5e009dd0d19e873d295f2d05f004ac | /week5/rotation.py | fccc7dab00f62ac6108137ed9a5ab8ba360392e8 | [] | no_license | MCV-2020-M1-Project/Team5 | ee04807ad118ed975f245604753f22b86692b48e | ad2093a150efacce6f4d862f3fbf2040ca402689 | refs/heads/main | 2023-01-12T01:58:32.971863 | 2020-11-15T19:09:41 | 2020-11-15T19:09:41 | 301,867,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | import numpy as np
import cv2
from skimage.transform import probabilistic_hough_line
def rotate_imgs(query):
rotated_images = []
angles = []
for i in range(0,len(query)):
img = query[i]
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray_blur = cv2.medianBlur(gray, 5)
# cv2.... | [
"59796230+victorubieto@users.noreply.github.com"
] | 59796230+victorubieto@users.noreply.github.com |
7f9d33ba3b719cb7d295e83ca475ef455092a3e5 | 0c52bc417ba04ebec28f63526a14796c2bff3101 | /app/users/views.py | 649d11839c37700a0c9ea4a297cd10c6bbc5bd0e | [
"MIT"
] | permissive | HHHMHA/recipe-app-api | 87ddd11862cb5d49373527df2ae6ed37089815e6 | 272da0dc2fe6d926fe8cd57778734f9178d1cc73 | refs/heads/main | 2023-03-04T22:46:41.154710 | 2021-02-17T14:57:57 | 2021-02-17T14:57:57 | 314,871,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from .serializers import UserSerializer, AuthTokenSerializer
from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
class CreateUserView(generics.CreateAPIView):
"""Create a new user in the system... | [
"mp4-12cs5@hotmail.com"
] | mp4-12cs5@hotmail.com |
3ca2e10041d93492b98d3758c2f9fb14ee142804 | 830c08a1fc68ce2fc24225de347e799e5e34cfd4 | /demoWebApp/imgUpload/urls.py | 0fc1086f6a0218896e4b6bb5323f37ec51280545 | [] | no_license | syedirfanx/django-webapp | d3ab4e54d5e4f85e4be858b9be4d60b934bb3b3a | 9b80411b78b48859388edc0a529664233f31fa07 | refs/heads/main | 2023-05-06T02:09:00.854685 | 2021-06-02T03:31:57 | 2021-06-02T03:31:57 | 372,400,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.contrib import admin
from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'imageprocess', views.imageprocess, name='imageprocess'),
]
| [
"irfansyed479@gmail.com"
] | irfansyed479@gmail.com |
4e4f60177f579d3aa004388a33b770fd6a8df91e | a28376a3c7c108dde04836fa9a51307fa401b120 | /src/classifyGalaxies.py | 08f2fa7f5bbeceb9a00c53852ed13dce7fcee44f | [] | no_license | jyang1207/McGrathResearch | 296003eeb6e40817c83a2fa755b43431d46987bd | 1d95b618427a317b31677e36dbc08d6031f2ede4 | refs/heads/master | 2020-04-01T20:58:11.296768 | 2017-10-01T20:26:20 | 2017-10-01T20:26:20 | 60,550,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,115 | py | # classifyGalaxies.py
# Jianing Yang
# McGrath research
import csv
import numpy as np
import sys
from optparse import OptionParser
class Classifier:
def __init__(self, filenames = None):
# create and initialize fields for the class
#list of all headers
self.headers = []
#list of all types... | [
"noreply@github.com"
] | jyang1207.noreply@github.com |
732198405c718e475715d90fdb730cc8b135948c | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/FX_CFD/XTB/utils.py | 78e5d6fefed7858147792c12c920d9589d12f8b3 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 481 | py | from itertools import product
import settings
from api import data_getter
from writer import write_tsv
def file_maker():
combis = product(settings.WATCHLIST_MAP, settings.INDICATORS)
for i in combis:
s = i[0].split(",")[0]
ind = i[1].split(",")
data = data_getter(symbol=s, indicator=... | [
"oanufriyev@gmail.com"
] | oanufriyev@gmail.com |
6e439eb6efdd14a8e96c332e74f77af021b49f4c | ad4d59875729144451f6d61b338b65f13f4cb68d | /stackility/utility/get_ssm_parameter.py | 65e1f25a9e154c785eb5f439d9cbf2817ce4dbc5 | [
"Apache-2.0"
] | permissive | muckamuck/stackility | 49c0b155e3f51a88870b8e865224cf624388e28b | 99c88a314bffdd226b8216204d6d00492ca672fb | refs/heads/master | 2022-08-11T05:56:35.281464 | 2022-07-16T19:57:15 | 2022-07-16T19:57:15 | 96,112,356 | 8 | 6 | Apache-2.0 | 2019-03-30T14:47:07 | 2017-07-03T13:12:28 | Python | UTF-8 | Python | false | false | 690 | py | from __future__ import print_function
import boto3
import sys
def get_ssm_parameter(parameter_name):
'''
Get the decrypted value of an SSM parameter
Args:
parameter_name - the name of the stored parameter of interest
Return:
Value if allowed and present else None
'''
try:
... | [
"chuck.muckamuck@gmail.com"
] | chuck.muckamuck@gmail.com |
e925ea7dcfbb1c66bd3229ff16e87916a2136489 | 3d19ed693373f71aae913e276237c370f4e8b1a5 | /spring_model.py | 9bf89a5ab10ffb08be1d78aba01e511266f603d7 | [
"MIT"
] | permissive | Mr4k/Pogo | ced20dd3836fb3917119446d29904a318af4ec49 | 3f65769127f396c5cb06c33c6f1eeadfa6dd38aa | refs/heads/master | 2021-01-10T16:25:53.963363 | 2016-01-04T17:01:25 | 2016-01-04T17:01:25 | 49,007,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,954 | py | import numpy as np
import scipy.optimize as opt
from graph import Graph
from graph import Node
import re
from loading_bar import LoadingBar
import sys
import random
from datetime import datetime
import build_graph
import argparse
import json
import signal
def save_solution(graph, solution, name):
i = 0
soln... | [
"peterstefek@Peters-MacBook-Pro.local"
] | peterstefek@Peters-MacBook-Pro.local |
2795da097634eab051ff4311f8a4603a561cc5d3 | 7944f0731a9b8bfe2b9b7a55aa531956a54d08ae | /array.py | bb059523621e2310b2facb399c28784ac42135e6 | [] | no_license | kimsm4524/pythonpractice | f815af26408c682fc170a893491bf1eb23fb17ad | a2919994a14681ff8038c701e9c698682bc3722b | refs/heads/master | 2022-11-17T15:01:05.487242 | 2020-07-15T05:00:52 | 2020-07-15T05:00:52 | 279,767,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | arr= [1,2,3]
arr.append('abc')
print (arr)
arr.pop()
print (arr)
arr.reverse()
print (arr)
print (arr.index(3)) #find position
arr.append([4,5])
print (arr[1:3])#slice array 1 to 3(without)
print (arr)
arr[1:3]=[9,10] #change slice
print (arr)
| [
"noreply@github.com"
] | kimsm4524.noreply@github.com |
1b9aeeffee86cbf3eb773aead79ccbf708c406d0 | 5d68727243c7762bb07c43416db2c2e3c4c7cd44 | /ManualQTPlot.py | b70b6b179783e3153de5649ab64ed6a553f78167 | [
"MIT"
] | permissive | dpetrovykh/FIAR | a2b02e7f2a2134575aa9548f8941d05277cfc86e | 45bca950184ea87399f4630bb601b2fccf8795f9 | refs/heads/main | 2023-04-24T14:04:05.462213 | 2021-05-14T16:51:02 | 2021-05-14T16:51:02 | 336,841,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 15 11:56:21 2021
@author: dpetrovykh
"""
import sys
import random
import matplotlib
matplotlib.use('Qt5Agg')
from PyQt5 import QtCore, QtWidgets
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figu... | [
"dpetrovykh@gmail.com"
] | dpetrovykh@gmail.com |
791450cd265e4fdf114e22cd378fa7697db6ffcf | 64ae9e59e387aa219183f6748f07ede3533c14b2 | /lib/auxiliary/switchd/workertask.py | 3f4ddb643005a336a65bf135c9c26feece16dbf4 | [
"BSD-2-Clause"
] | permissive | sohonet/HEN | fe0168816d908c9c5d3180e90e67b12e4724c7be | 47575028a6f3d3fe04d6839dd779b2b1b991accc | refs/heads/master | 2021-01-19T07:30:22.849260 | 2012-02-20T19:41:17 | 2012-02-20T19:41:17 | 87,548,153 | 0 | 0 | null | 2017-04-07T13:25:40 | 2017-04-07T13:25:40 | null | UTF-8 | Python | false | false | 1,214 | py | class TaskID:
checkSensorTask = 0
hostStatusTask = 1
switchReadFdbTask = 2
linkStatusTask = 3
networkMapGenerationTask = 4
class WorkerTask:
nodeinstance = None
node = None
taskid = None
timeScheduled = None
def __init__(self, node, nodeinstance, taskid, timeScheduled):
... | [
"ben@darkworks.net"
] | ben@darkworks.net |
97e9f9b74362b9d4880bc5af45ff68171f6f632d | 75ab45db6b528738719282f363a2da116ff8581f | /facebook_page_crawler_general_ver.py | 6076be452f35275eccabb71da99f87d0ff48cadf | [] | no_license | chrisyang-tw/Facebook_Crawler | c27e6dc00a713d5b346aeae294e827f5516fc3ad | 85b8ec676c7db44ae2088d7f69b8f16986f9e102 | refs/heads/master | 2020-06-17T20:01:54.665441 | 2019-07-09T15:41:05 | 2019-07-09T15:41:05 | 170,059,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,513 | py | # 抓取 Facebook 各品牌粉專上的文章(幾天前的文章)
# Version 1.3: 自定義粉專
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from bs4 import BeautifulSoup
import time, re
import csv
import datetime as dt
import requests
#####################################
## 前置作業、變數定義
page_list = list()
print('=============... | [
"christopheryang2012@gmail.com"
] | christopheryang2012@gmail.com |
7d5a4c1c3456e65c7216a3ce61f1b41732d6e95b | 4b641088573c1b9294bbaae5c1177f43c9b89558 | /113.PathSumII.py | 66ec8577f6aeed5af11d3da4a5afe8d6c4eb4e9b | [] | no_license | HsuWang/Leetcode | 5109aa19a24c46849ec659d30a5766aa00e7f344 | f460ca8b080abd3b149d8b120de935bd4b67720e | refs/heads/master | 2020-04-09T12:40:00.228093 | 2019-06-13T16:29:11 | 2019-06-13T16:29:11 | 160,359,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def pathSum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: List[List[i... | [
"noreply@github.com"
] | HsuWang.noreply@github.com |
3d3f406ebb04980682c90fd925e91b33f0e11507 | f9fcba7ac9336c790601c9e3d8f1e9aa9f2ce11b | /P4/qlearning_med_vel_space.py | 73f34ddb40bd4f1c1b4a86691597357683e7d60d | [] | no_license | Dynamite127/cs181-s18-practicals | 9d50b0d7468825bb47b4c9284d40aab120db3145 | 113333c0c94e5553d85a6854378bfd51fdd21f49 | refs/heads/master | 2020-03-13T22:59:17.154605 | 2018-05-02T08:29:33 | 2018-05-02T08:29:33 | 120,121,261 | 0 | 0 | null | 2018-02-03T19:11:29 | 2018-02-03T19:11:29 | null | UTF-8 | Python | false | false | 6,601 | py | # Imports.
import numpy as np
import numpy.random as npr
from SwingyMonkey import SwingyMonkey
import matplotlib
import matplotlib.pyplot as plt
discount_factor = 0.9
screen_width = 600
binsize = 50
screen_height = 400
vstates = 17
# velocity_binsize = 8
num_actions = 2
epsilon = 0.001
class Learner(object):
'... | [
"aaronconradsachs@Carlas-MacBook-Air.local"
] | aaronconradsachs@Carlas-MacBook-Air.local |
2491648b829fae2a14b377c6924af78da6e58114 | d20512cc0bb5dc28e03744bdabb067bdcef1a454 | /swmmio/tests/test_model_elements.py | e01aa796459c414cf9e6d652ee12890cdc3a6908 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gitGovea/swmmio | ec0b8d1c6ca6ccd2519eb47e572cee94819003ab | 735739081b72c6176ef0993cf1ae5a2febf2e892 | refs/heads/master | 2022-06-29T21:21:26.290230 | 2020-05-06T18:30:49 | 2020-05-06T18:30:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,396 | py | import os
import pytest
import tempfile
import pandas as pd
import swmmio
import swmmio.utils.functions
import swmmio.utils.text
from swmmio.tests.data import MODEL_FULL_FEATURES_XY, MODEL_FULL_FEATURES__NET_PATH, MODEL_A_PATH
from swmmio import Model, dataframe_from_inp
from swmmio.utils.dataframes import get_link_c... | [
"aerispaha@gmail.com"
] | aerispaha@gmail.com |
733cfe9ef22b50f5b8609d81bc03f3d9d88e6929 | 07d3a88373bf1e03712eb85dd05ae1f3b9d9e2c8 | /componentTests/cam.py | 295eef1b00bd2b9dcc39ecefd5502f9b4bf184af | [] | no_license | ittenes/Antonio-Laudcode_columbus17 | 4bdcf7158b34b80ad0da1e59b441438142a30957 | d25f476c9853d6c34201a1aba5495bcc45c6222d | refs/heads/master | 2021-01-01T15:56:57.922135 | 2017-08-18T12:54:12 | 2017-08-18T12:54:12 | 97,733,483 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import numpy as np
import cv2
import numpy as np
import cv2
import Tkinter
from PIL import Image
from PIL import ImageTk
import time
#pip install Pillow
#pip install Image
#img = cv2.imread('img.png')
# A root window for displaying objects
root = Tkinter.Tk()
# Convert the Image object into a TkPhoto object
can... | [
"lau.llobet@gmail.com"
] | lau.llobet@gmail.com |
18b01e955f05885529a1169802fac6a3aa079a36 | 60b479477f8e0f6e4712d6bdaad839049be0688c | /youtube_scrapper/Video.py | 926997e9cb7bc88d89a355be7a63d8f8b434271a | [] | no_license | maliksblr92/ReactSnippetV2 | 15e99063e83ebde72c3a075e3130f3e3e325d29c | c5c5e912135aa9fa9d4a86a7c24fc8f0129944b7 | refs/heads/master | 2022-12-03T09:09:55.974846 | 2020-08-21T13:44:18 | 2020-08-21T13:44:18 | 289,272,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,802 | py | from selenium import webdriver
from bs4 import BeautifulSoup
from selenium.common.exceptions import TimeoutException, NoSuchElementException, JavascriptException
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui impo... | [
"zcomisb.007@gmail.com"
] | zcomisb.007@gmail.com |
bacf230a767398ca47a2805717e4e134c5b1e795 | 04ea39d3c224cc74836342f5432a291b3f47c711 | /AndroidCodeSmell/appium_script/tools/log.py | 31629e9e4c53f73058e8c21225d2d2388850349e | [] | no_license | scorpiussusanyu/ACSTNN | 8d8fe313848c9883d1e2819a35ae64bdd6cfe633 | 2196d82d68e31ff3fc4cc847333783848c16d23b | refs/heads/master | 2023-09-02T17:01:26.090710 | 2021-11-04T17:59:18 | 2021-11-04T17:59:18 | 402,281,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,695 | py | # -*- coding: utf-8 -*-
"""
@Author:MaoMorn
@Time: 2020/07/21
@Description:
"""
from appium_script.tools import util
from appium_script import metric
from multiprocessing import Process
import jpype
import os
import time
def get_pid(package_name: str) -> str:
command = "adb shell ps | findstr %s"... | [
"susanyu1026@126.com"
] | susanyu1026@126.com |
80ae4bae5717164516c2b52d00052bef81faa166 | ec9724096e2b4dbb2d877081666aeec319f039d1 | /game/baseball.py | 01ea7c3ea8f262dc0e76ec617ac2660149a30ad0 | [
"MIT"
] | permissive | herjmoo/pystudy | 13b56945a4e10968fd1ebea23cb649e98ab5f81e | 728f6bbb06873a44c02f000344f9b62f3bc42d7c | refs/heads/master | 2020-03-22T18:37:37.707238 | 2018-09-06T05:32:06 | 2018-09-06T05:32:06 | 140,471,504 | 0 | 2 | MIT | 2018-09-06T05:32:07 | 2018-07-10T18:17:48 | Python | UTF-8 | Python | false | false | 3,076 | py | ################################################################################
# baseball.py
# Copyright (c) 2018, PyStudy-GoGoogle
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without... | [
"joonmoo.huh@intel.com"
] | joonmoo.huh@intel.com |
243792943a4d64b4c137b4d8458cd10f9d01f78a | 0ef45fc3a3c18e5687f9fdae5222288f0565c37c | /test0.py | bff3df7a5d5127b153e1e9e4be73cd0e54a9d4d0 | [] | no_license | SkyLoveAngle/SoftWare-Test | 59d9d2760f26a4e7c01600970596041a9b450c6f | 36ba00ed16712f14a9d14d78b1841c1cc1f4a6d5 | refs/heads/main | 2023-06-18T10:43:53.984907 | 2021-07-25T13:53:05 | 2021-07-25T13:53:05 | 386,928,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
urll=driver.current_url
print(urll)
driver.find_element_by_id("kw").send_keys("福原爱")
driver.find_element_by_id("su").submit()
#固定等待
#time.sleep(10)
#智能等待
# driver.implicitly_wait(10)
#driver.find_element_by_link... | [
"1920909528@qq.com"
] | 1920909528@qq.com |
02916aa12e26d8e7bd5c64c4e962ad2a3ddd86e0 | 63a1671145dc6dc6e1a9d10ec21c520b83036fea | /others/label_convert/show_img_by_yolo.py | 9a438d83718bba72dd0beed8655d3fa9949b61fa | [
"MIT"
] | permissive | chenpaopao/- | 4eca1405a3aab86fe649817048852b620a962c1a | 320f7d9a0b9e49528561024217ba07645eb68805 | refs/heads/master | 2023-02-04T17:44:48.639136 | 2022-06-06T05:04:57 | 2022-06-06T05:04:57 | 323,789,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | import argparse
import os
import sys
from collections import defaultdict
import cv2
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
from tqdm import tqdm
category_set = dict()
image_set = set()
every_class_num = defaultdict(int)
category_item_id = -1
def xywhn2xyxy(box, size):
box = ... | [
"739677819@qq.com"
] | 739677819@qq.com |
1e9b873b207de4e3ceafa838dad971dbb1499a7f | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit365.py | eb19e320752840e2c905c3f8005c7be2d19bdece | [
"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 | 7,388 | py | # qubit number=3
# total number=73
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
ae80616558bed8861d21e76ea900040d98faee2e | ed5802bd6ca441ea6a3aeda7c0369b7018d1c83a | /file_reader.py | a4609fa220cff966eb37c514737c96dfae373da5 | [] | no_license | LostBoyNZ/PR301-Assignment2 | d1978454f24eb257e3f9471585f8d999bcd5a57f | 4fd666eb5322d3bc024af381a7fd092c94441f08 | refs/heads/master | 2020-03-09T21:14:23.723252 | 2018-06-08T08:28:14 | 2018-06-08T08:28:14 | 129,004,153 | 0 | 0 | null | 2018-06-08T08:28:15 | 2018-04-10T22:55:50 | Python | UTF-8 | Python | false | false | 4,173 | py | import sys
from openpyxl import load_workbook
from data_processor import DataProcessor
from databases.database_sqlite import CompanyDatabase
from log_file_handler import LogFileHandler
try:
from errors import ErrorHandler as Err
except NameError and ModuleNotFoundError and ImportError:
print("Fata... | [
"noreply@github.com"
] | LostBoyNZ.noreply@github.com |
115aaeea5625f2f62cdb8e38bfed30b18e72628c | 432e415640ccfac632eb33a32ae4c1866d85cc48 | /program/test/test_alloc_on_chip.py | 0b1c45c00926b87fd1e83b7248593e5ec828d532 | [] | no_license | GD06/MPU-ASPLOS-2021 | 0a13ce6eca48efbbca526d2736fa7d00ff5d890b | a357e73239a03384bae73d7006667cfeb07df635 | refs/heads/master | 2022-12-04T19:57:35.420468 | 2020-08-20T14:36:52 | 2020-08-20T14:36:52 | 289,026,962 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | #!/usr/bin/env python3
import unittest
import tempfile
import os
import program.prog_api as prog_api
import config.config_api as config_api
class TestAllocOnChip(unittest.TestCase):
def setUp(self):
self.curr_dir = os.path.dirname(os.path.realpath(__file__))
self.proj_dir = os.path.dirnam... | [
"xfxie.ceca@gmail.com"
] | xfxie.ceca@gmail.com |
5cd7bf15cbb9f9a315ace1403ce4ea46bc9b95db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2345/60586/315364.py | 08640613734e1bd7c00a353bb3777990539f833a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | input()
input()
x=input()
input()
y=input()
if x=="2 2"and y=="1 2 3":
print("2 1")
print("0 0")
elif x=="2 2"and y=="1 3 3":
print("2 1")
print("3 2")
else:
print(x)
print(y) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0009a4238258a3dc5749b796594aed5a71aa1f16 | f518506fb620fd29a2db876c05de813508eda519 | /CreateView/CreateView/urls.py | 8ff63f64f426a78c025e088176b31d2ce45712cd | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """CreateView URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-ba... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
3050a3c031b7da4bb89691ad3a0b8dd3d37e51cd | b4f2ba6d72738ca49cff02c9555498702de3a39c | /turt script more colors.py | 16434dad010bd74c0c497738ec7b18f7b8c4b1e4 | [] | no_license | grahamrichard/turtlegram | 7a568ebff097288bd053be54f2ac1973e1a9ea2c | 83b7944763b8d67594b14ab6c7f5dfbc5dedf419 | refs/heads/master | 2021-10-12T02:54:17.712016 | 2019-01-31T22:19:10 | 2019-01-31T22:19:10 | 104,622,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,067 | py | # Turtle-gram tests
# March 2017
# ImageTools functions adapted from Susan Fox, Macalester College Computer Science
# Written by Richard Graham
import turtle
from imageToolsTools import *
pic = makePicture("yike.jpg")
# show(pic)
w = getWidth(pic)
h = getHeight(pic)
sc = turtle.Screen()
sc.setup(width=w, height=h)
... | [
"rgraham2@macalester.edu"
] | rgraham2@macalester.edu |
92798e97c2e24cf01a2aa823f42f660aaab8293b | 08892167da611ae1d9fa36ac2c1232804da9d487 | /build/ur_dashboard_msgs/catkin_generated/pkg.develspace.context.pc.py | be83fb6cc713cfdfe3c18a4b00a74ad547de0f19 | [] | no_license | QuiN-cy/ROS_Test_ws | cfd11134312590cabe09f404a332e5f1c4415f59 | 6b041e3aa8c27212c5fc665d3c54dbde988b5d67 | refs/heads/main | 2023-05-15T06:19:16.680149 | 2021-06-11T15:34:05 | 2021-06-11T15:34:05 | 371,643,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/student/test_ws/devel/.private/ur_dashboard_msgs/include".split(';') if "/home/student/test_ws/devel/.private/ur_dashboard_msgs/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;ac... | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
a9aafb16d4f5348af4bbadc27d0c35d49e1a3854 | c54bdec0e892fbbec533d7d9741148d43cf65c80 | /Django/UserDashboard/apps/user_dashboard/models.py | 59cc23e133d1c2e3c78a6e4f7d41f1020a9fef90 | [] | no_license | tuannguyen0115/Python | d11f0363db05cc580e9126915372c492deb46881 | 206af90b1cf7e8654f00b8e7f0ac11ac5a00b3cb | refs/heads/master | 2021-09-02T10:18:01.725496 | 2018-01-01T20:36:11 | 2018-01-01T20:36:11 | 109,206,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
import re
import bcrypt
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9\.\+_-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]*$')
# Create your models here.
class UserManager(models.Manager):
def basic_validator(self, postData):
errors = {}... | [
"tuannguyen0115@gmail.com"
] | tuannguyen0115@gmail.com |
2e3d8d7cfcfa60a44a0addf88f52ea50fef537c3 | cb63b64435af17aaa652d7efd9f624e0e9385085 | /todo/forms.py | af63ce00a410f0b86a199cb882b0d209adfb2464 | [] | no_license | Vostbur/todo-multiuser-site | e4bb6bb0713cb466fa5338c213911f3d53089db2 | b6e975255cbd74ce2319e64b885558d244454b43 | refs/heads/master | 2023-05-04T23:36:50.668891 | 2021-05-24T19:47:36 | 2021-05-24T19:47:36 | 370,466,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.forms import ModelForm
from .models import Todo
class TodoForm(ModelForm):
class Meta:
model = Todo
fields = ['title', 'description', 'important']
| [
"vostbur@gmail.com"
] | vostbur@gmail.com |
758ff12c395ca4ef578f2d3c6628e3868269a67b | 240f3fdcf2c5cb846a9acfce6dce736f5363a148 | /1001.py | 48f1b8e7d0243fc69f211935c059df6fe1f03485 | [] | no_license | yuriifreire/uri-judge-with-python | 1436aaaf26e71f7d352509fd2cc316213f7b5f22 | 3f87cf0051bd8cc5c7c8aafa6f32b2a918dee835 | refs/heads/master | 2020-03-27T02:10:37.425892 | 2018-08-23T18:46:46 | 2018-08-23T18:46:46 | 145,771,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | a = int(input())
b = int(input())
print('X =', a+b)
| [
"yuriifreire@hotmail.com"
] | yuriifreire@hotmail.com |
206e0e260a9034345e1f63fbd7993a4b30eb352e | fa91d7990179d0488952dc3b1b104f22aa5962ac | /tokenizers/roberta_tokenizer.py | 3067c6d96d92b101df09bf705dabfc475d7a89a9 | [] | no_license | scape1989/efficient-bert | 302f3cf3ad94a68995e3c44915712b3417417c73 | 31085bcce45197659d037d8b601717a7fb9c93db | refs/heads/main | 2023-08-01T00:15:04.271518 | 2021-09-16T02:43:02 | 2021-09-16T02:43:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,256 | py | import torch
import regex as re
import json
import tokenizers
from functools import lru_cache
@lru_cache()
def bytes_to_unicodes():
"""
Returns list of utf-8 byte and a mapping to unicode strings.
We specifically avoids mapping to whitespace/control characters the bpe code barfs on.
The ... | [
"cheneychenhe98@gmail.com"
] | cheneychenhe98@gmail.com |
fd4a6f49b03f1a9333b0454268f0521c7ae973cd | 00c8db59130dbdf3d224af547ee2c8ceff987617 | /apps/blog/migrations/0004_post_likes.py | 3e9198d60b7641d45a2b02ec01760d9321bfdfae | [] | no_license | Dmytro-Sk/website_blog | f89b4d8d9deddf6a6d32267409890682fd4b9e57 | 20c38197a230d9a728d0a541c46c0d281049fc20 | refs/heads/main | 2023-06-01T01:01:53.904467 | 2021-06-20T12:47:57 | 2021-06-20T12:47:57 | 373,511,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.2.4 on 2021-06-08 16:26
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0003_alter_post_add_post_date'),
]
opera... | [
"0971898920d@gmail.com"
] | 0971898920d@gmail.com |
9fa11d5c6461cd2fe6ffbdf168b2ba242ccad9b0 | 9a9ee424b103f7041a3ae9e07ddf72a67ed2ef9b | /walkupEnv/bin/pygmentize | 52e670000ee623bd859bc8b77354efe347168563 | [
"Apache-2.0"
] | permissive | cogerk/walk-up-music-scrapper | 8a2fd74da6e63a1aa284b22217e3e33852835520 | 74df610985e6ff220a605a49933a0655e247caa3 | refs/heads/master | 2020-03-26T09:51:43.607643 | 2019-01-06T00:09:44 | 2019-01-06T00:09:44 | 144,768,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | #!/Users/kathryncogert/Documents/Repos/walk-up-music-scrapper/walkupEnv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"cogerk@gmail.com"
] | cogerk@gmail.com | |
eb000566544d85a9c7c6d6c3bedbda147e9e7243 | d53e9ece43534b9c22d4cf00f6d26b73d1fc92af | /area_circulo.py | aa523f50ee4071d304f00da7d64cc51c52a05c94 | [] | no_license | m1kr0ch1p/python_stuffs | 11a815864a7a7a592a66064f98648782afc5d286 | e460cd13488aceb364cf0063d813b00584cdf6ff | refs/heads/master | 2023-03-21T13:37:36.278302 | 2021-03-24T03:15:50 | 2021-03-24T03:15:50 | 295,297,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | #!/usr/bin/python
from math import pi
try:
r = float(input("Me dê o raio do círculo:\n"))
a = pi * (r**2)
print("A área do círculo é " + str(a) + ".")
except:
print("Me dê valores quantitativos.")
# A = π. r2 | [
"noreply@github.com"
] | m1kr0ch1p.noreply@github.com |
9e07a7fd8b20c1fc7d6b06ce142016f550b5b3a5 | e61004d943a7cd094c68cc925e85c1e2b927167f | /datacat_test.py | f3272531a662a7e85dfab243c6cee9d399a9cd02 | [] | no_license | Carterhuang/site_monitor | 9f56221bd25665b10fe1e74a66a1d48bab62ed98 | e283e7e8035b98e98b1dbf985fc142ee17effa5c | refs/heads/master | 2016-09-05T16:57:26.877889 | 2014-10-11T02:23:20 | 2014-10-11T02:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,137 | py | import datacat
from datacat import Datacat
import threading
import sys
import time
def mock_hit_on_section(log_file, hits, gap):
file_out = open(log_file, 'w')
for i in xrange(hits):
time.sleep(gap)
file_out.write('127.0.0.1 - - [09/Oct/2014:17:23:05 -0400] "GET /examples/ HTTP/1.1" 304 -\n')
... | [
"huang456@umn.edu"
] | huang456@umn.edu |
cc79c4249abfc5c1bae0c0c21108e55c5181a89c | cfb95ff224f3ed47076e81074c5bd04c251bb569 | /levelupapi/models/EventGamers.py | d2a3a780e9eac1698bb3cd9fd51732ca7548bb80 | [] | no_license | mcampopiano/levelup-python-api | acba338e8ce153278f6bbf248d036e190110aa3a | 5a21d0a3d3c316102fc0598e1e184e34dc008084 | refs/heads/main | 2023-03-12T10:46:39.263141 | 2021-03-02T21:53:08 | 2021-03-02T21:53:08 | 336,344,099 | 0 | 0 | null | 2021-03-01T20:06:56 | 2021-02-05T17:37:29 | Python | UTF-8 | Python | false | false | 275 | py | from levelupapi.models.events import Event
from levelupapi.models.gamer import Gamer
from django.db import models
class EventGamers(models.Model):
event = models.ForeignKey(Event, on_delete=models.CASCADE)
gamer = models.ForeignKey(Gamer, on_delete=models.CASCADE)
| [
"mcampopiano92@gmail.com"
] | mcampopiano92@gmail.com |
1696af969f32886f5c33dab31069319ccc11befb | 675de311f1ff2cc0a83a2d46cf1c89e25acedd2e | /exercises/dictionary.py | 87603b16e39c24226d14647e1e54f2ae48dd0308 | [] | no_license | Ed92/Python | 5f63a9ceb1016d530ae8e6da66e12134fc88fb34 | fa51020a9112b8c38e0022563dff8dd3ced05476 | refs/heads/master | 2020-03-21T08:26:44.922159 | 2018-09-17T15:05:03 | 2018-09-17T15:05:03 | 126,859,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 28 13:55:34 2018
@author: ed
"""
import pprint
message = 'It was a bright cold day in April, and the clocks were striking thirteen'
count = {}
for character in message.upper():
count.setdefault(character, 0)
count[character] = count[char... | [
"djamgarian0702@gmail.com"
] | djamgarian0702@gmail.com |
e57a5bd566d8bd5e6aa1057bfd026b0c36f65ea1 | 33d078ea9a4dd549d99b01a3aff09d1f2032d6eb | /test/test_server.py | 926c6bae3aa8e125201d8c062760d2678483ddf8 | [] | no_license | labinxu/majong | f84fa34ce4ba82f5006f37f0ddc98b8c08445d10 | 234a82b11093f475d5fc4ea37d2b77a3d33877be | refs/heads/master | 2020-03-19T04:18:39.950419 | 2018-06-02T12:16:38 | 2018-06-02T12:16:38 | 135,814,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import sys
if '..' not in sys.path:
sys.path.append('..')
import socket
from xserver import XServer
from player import Player
from protos.action_pb2 import Action
class Test_server(XServer):
def __init__(self, host,ip,players):
# define four players
super().__init__(host, ip, players)
def ... | [
"flowinair@gmail.com"
] | flowinair@gmail.com |
614b502c6cf9478ab6a5cad99a4b7a5c85842776 | 136b3072f1c5dd17f97ef9dea7c792d01377bf6e | /def.py | 928aba3af5dc51fb98644ac655950da34791742a | [] | no_license | sungjh0726/hello | bb8475497310690e6a3a108599a14019bbd8a09c | 094080a8cca3092d09c34a9d02647b1d0c7573ea | refs/heads/master | 2020-04-04T23:15:35.012809 | 2019-01-18T04:07:33 | 2019-01-18T04:07:33 | 156,352,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | def get_fruits():
return ['오렌지','사과','바나나']
a = get_fruits | [
"sungjh0726@naver.com"
] | sungjh0726@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.