blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f84e673311d417b421b9ae8507b879d52c87744 | 16f11e566c5069a874a99ff33debb47913881bfa | /python/sets/symetric_difference.py | 1845ad05bcf46c0bdf85ba51b2d9ade857fbb091 | [] | no_license | Suraj-KD/HackerRank | 7c5a1a73ea2d2c30370ff5d2dd633aaef315f00a | ef6ba86b2245172de6f62a6fb63916318adef2a6 | refs/heads/master | 2021-06-27T10:30:14.195489 | 2019-03-20T12:33:54 | 2019-03-20T12:33:54 | 129,599,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import sys
def setsym(a, b):
return len(set(a) ^ set(b))
def main():
lines = [[int(x) for x in line.strip().split()] for line in sys.stdin.readlines()[:4]]
print(setsym(lines[1], lines[3]))
if __name__ == '__main__':
main()
| [
"surajdubey302@gmail.com"
] | surajdubey302@gmail.com |
b2426b7f50a539574f6d126b81234c8edd9c082b | cbb9152ea4290fb655caff877101eaeb68236dfd | /students/douglas_klos/session9/mailroom/html_render.py | 9b51232fe9339ad8feb8f3eaac197afba6064c58 | [] | no_license | pauleclifton/GP_Python210B_Winter_2019 | 7105a080d105cd9999933936346d5ae29f232d26 | 661903cd9dc49b294fb9a0c905133a4c3f9d8d0f | refs/heads/master | 2020-04-16T04:26:31.951165 | 2019-03-31T15:22:51 | 2019-03-31T15:22:51 | 165,267,180 | 0 | 0 | null | 2019-01-11T15:39:48 | 2019-01-11T15:39:48 | null | UTF-8 | Python | false | false | 9,989 | py | #!/usr/bin/env python3
#pylint: disable=W0223,W0231,C0103,C0321
""" A class based system for rendering HTML """
# Douglas Klos
# March 14st, 2019
# Python 210, Session 9, Mailroom OO
# html_render.py
class Element():
"""
Framework for a basic element in HTML code.
Class attributes:
tag: Tag used... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
8c4085ecc1203df15a7212dd003156e4e4ba543e | b2c670fa0157c19f26e57d87e0bcd5e94dd7c582 | /Övning 4.x/4.2.py | 8854ec843d780e45798bd2ab08d07df3c9804637 | [] | no_license | abbindustrigymnasium/python-kompendium-khet | 3dda2f82aa640da772c4685b452617156000f8b9 | 5127d9cb67e9326824adc9ffad0cf4f4eec58239 | refs/heads/master | 2020-04-27T01:38:04.912804 | 2019-05-29T01:24:33 | 2019-05-29T01:24:33 | 173,971,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | summa = 0
for x in range(1, 501, 2): #addera alla jämna tal från 0 till 500 genom att addera var andra tal
summa += x
print(summa) #skriv ut summan | [
"43946998+abbkhepho@users.noreply.github.com"
] | 43946998+abbkhepho@users.noreply.github.com |
51469423fd3a93f1c1b7fee30ec663745e8eb641 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_sdk/public/platform-tools/systrace/catapult/common/py_utils/py_utils/cloud_storage_unittest.py | 20586a4bf6631237fae3e2889ba1eca86686ee43 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 136 | py | ../../../../../../../../../../.cipd/pkgs/82/_current/platform-tools/systrace/catapult/common/py_utils/py_utils/cloud_storage_unittest.py | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
38f5fcd0c82d2fedebb31c1e82541d9708fd8458 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03252/s222988530.py | d03803223cba2148882efcfde3db4be3936b980f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Cou... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0fa6a7a51704f8684e7ae09c03866b27bbafde73 | 34c0191c4ae3a25782c63ca3ba3a01173a8ea48a | /tele.py | 1544e62741847158e39f6d2d23afccf914c85872 | [] | no_license | wantedhj/Python-Class | 24079a4e2f25dc8403984e0eb93ca8512f6e93f9 | 34302891a53325bbb592a8f6e46268a07046a29f | refs/heads/master | 2020-04-25T10:32:11.901204 | 2019-04-10T08:55:55 | 2019-04-10T08:55:55 | 172,712,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import telepot
import time
import os
token = ""
mc = ""
bot = telepot.Bot(token)
bot.sendMessage(mc,"안녕하세요." )
InfoMsg = "아래의 요청 중 하나를 고르고 번호를 입력하세요.\n"\
"1. 주가 확인\n"\
"2. 환율 확인\n"\
"3. 날씨 확인\n"\
"4. 종료"
status = True
def handle(msg):
content,chat,id = telepot.glance(msg)
print(conte... | [
"noreply@github.com"
] | noreply@github.com |
d6837933673c1503000c6d39ad4772b2c03345e5 | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkMattesMutualInformationImageToImageMetricPython.py | 81440a32b1811b0ec96222199dc6ed9ec225ad20 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,289 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkM... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
3a2ac2af9ba8b2e906a2bb997e0ed16d217874a6 | 09d20d46acb9fad6c2338b1c67173e13cf69b230 | /api_server/core/settings.py | bfce3620fb4a4aa58f033cb225a66f7a6783dc60 | [] | no_license | Madsn/km | 927314074c4b554eaadc43f5e6566c7b40c4782d | 3731517b1d93e9d7158032446b1353bc83adf3d3 | refs/heads/master | 2020-03-22T08:41:16.136918 | 2016-10-23T18:33:40 | 2016-10-23T18:33:40 | 74,403,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | """
Django settings for api project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# ... | [
"m@madsn.net"
] | m@madsn.net |
7f03c15f5c8acaa4a8dd15c67264800e2008bc81 | 0c1bd690cf2b6676e4043ac42d3cb73156967e9c | /robot/lidarModule/lidarModule.py | 2cecb1f6ca8c3165259534f2f28b93d372edf680 | [] | no_license | Project-Lidar/TINLAB_ES_Lidar_System | 42ccc0dfe3e24d25d6d6ea3630dd09a1ba894fbf | dedc41c181697d745b9e9c644bd438d022fafca4 | refs/heads/master | 2023-01-20T21:30:28.751713 | 2020-07-12T16:37:03 | 2020-07-12T16:37:03 | 239,851,122 | 0 | 0 | null | 2023-01-11T04:20:20 | 2020-02-11T19:52:52 | Vue | UTF-8 | Python | false | false | 1,397 | py | import numpy as np
import asyncio
import time
import robot.communicationModule.communicationModule as comm
from rplidar import RPLidar
PORT_NAME = '/dev/ttyACM0'
mqtt = comm.MqttCommunicator()
# Publishes lists of the RPlidar A1 measurements
def scans():
'''Main function'''
lidar = RPLidar(PORT_NAME)
d... | [
"mo.mh43@gmail.com"
] | mo.mh43@gmail.com |
fd3ce77eb4f4d55e30537c8e0e83deb8f740ac5b | 75a70ec34d524fa7ce23d73d76b31c8728160d7f | /modules/mmi.py | bd5b2dbf9e628b969dc46175ee26fdf8b7ef72fa | [
"Apache-2.0"
] | permissive | cxz/sova-tts-engine | 9cb0feb496f5faa60e97ce25a26797a444e5ab84 | 6396733de4ac4a18cdfefbe11ed9eadd6e8d342c | refs/heads/master | 2023-05-06T05:31:56.502596 | 2021-05-27T21:48:23 | 2021-05-27T21:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | """
Based on https://github.com/bfs18/tacotron2
"""
import torch
from modules.layers import LinearNorm
from utils.data_utils import get_ctc_symbols_length
class MIEsitmator(torch.nn.Module):
def __init__(self, hparams, dropout=0.5):
super().__init__()
self.device = torch.device("cpu" if not torc... | [
"drobyshev.anton@ashmanov.net"
] | drobyshev.anton@ashmanov.net |
07d23741c8dd6bcaacf92e5f1414418d20f2a164 | 983ad0b613ef369ea07446104dfbebccaedd0bc2 | /roger/diagnostics/snapshot.py | 388b2aaca52210b4fb363003574b05332b39646a | [
"MIT"
] | permissive | Hydrology-IFH/roger | 14a5f63e1152e9199acb3c519c135346f0d5bad9 | 3ae707243951103c79569ec95c518be7b06bd354 | refs/heads/main | 2023-08-28T21:51:48.610576 | 2023-08-28T14:43:31 | 2023-08-28T14:43:31 | 536,477,819 | 1 | 1 | MIT | 2023-07-01T09:24:25 | 2022-09-14T08:13:42 | Python | UTF-8 | Python | false | false | 1,580 | py | import os
import copy
from roger import time, logger
from roger.diagnostics.base import RogerDiagnostic
DEFAULT_OUTPUT_VARS = [
"ta",
]
class Snapshot(RogerDiagnostic):
"""Writes snapshots of the current solution. Also reads and writes the main
restart data required for restarting a Roger simulation.
... | [
"robin.schwemmle@hydrology.uni-freiburg.de"
] | robin.schwemmle@hydrology.uni-freiburg.de |
59a37a9821870959439ef732507e76d4908702cc | 7c568ca8675ee507d231dc3ddc2c26db8af81d3f | /app/measurement/params.py | c7b56351a186ec99bc1eb35754f3bf154e71d86b | [
"MIT"
] | permissive | pnsn/squacapi | ccfb458c7230fc5b0a0be7921eb6db611d8c646a | 40d9608295daefc5e1cd83afd84ecb5b0518cc3d | refs/heads/main | 2023-04-30T22:10:51.651835 | 2023-04-28T17:01:06 | 2023-04-28T17:01:06 | 176,352,115 | 7 | 0 | MIT | 2023-04-28T17:01:07 | 2019-03-18T19:03:32 | Python | UTF-8 | Python | false | false | 1,063 | py | from drf_yasg import openapi
'''
Param overrides for doc generator (won't be needed in V3)
Needed for fields that have list of values allowed
'''
metric_param = openapi.Parameter(
'metric',
openapi.IN_QUERY,
description="Comma separated list of metric ids",
type=openapi.TYPE_ARRAY,
items=op... | [
"marczk@uw.edu"
] | marczk@uw.edu |
0f9c7b784b263277a8fd7a0be039209536d89bc9 | 90b5d57088c205675a6c2555490ed4fc1b7907e3 | /onnx/backend/test/case/node/add.py | 3f524c97e656475d0f7642842513e4eedee68ac3 | [
"MIT"
] | permissive | zodsoft/onnx | 403d03a7ddbbe7cc49340fbe1943203f2b0ffa76 | ea1aa139b208b92f34a1501a0406705d83399897 | refs/heads/master | 2020-03-18T05:39:39.449298 | 2018-05-22T01:49:42 | 2018-05-22T01:49:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class Add(Base):
@staticmethod
def export(): # type: () -> None
... | [
"noreply@github.com"
] | noreply@github.com |
010fad174cda16499aa8d1149c8f7c0d457e771b | 961996633794268f1d09d32ce53d38c617177ba6 | /accounts/urls_reset.py | 4f118dad7666e0f3d75e2ded0cd4ee1f9e236d59 | [] | no_license | Code-Institute-Submissions/stream_3_project-1 | 811ff872ac27f17c5ccccfc76cc42da3f89d8d58 | f1102a4e794722ed91c66c6d2ce8db6dc2190c80 | refs/heads/master | 2021-05-05T12:57:01.938399 | 2018-01-21T14:32:18 | 2018-01-21T14:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from django.conf.urls import url
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.views import password_reset, password_reset_done, password_reset_confirm, password_reset_complete
urlpatterns = [
url(r'^$', password_reset,
{'post_reset_redirect': reverse_lazy('password_reset_done')}... | [
"decofeco29@gmail.com"
] | decofeco29@gmail.com |
558e84265774ed2da8deedd5502289cc8742eabf | 9874f249a89aad406c32d64b64c96055e09bb4f7 | /agent/iptc_helper.py | f31091aefa34822f360d8604c8fdb36774048f26 | [
"MIT"
] | permissive | eugenosm/agent | ff04c66263bd5c8be1b154db16bf1a6b632a1ecd | 5df4dc474844614808d7a78cec1c5f7cdccb1c1c | refs/heads/master | 2020-05-28T11:26:52.753647 | 2019-06-06T08:47:31 | 2019-06-06T08:47:31 | 188,985,110 | 0 | 0 | MIT | 2019-05-28T08:16:29 | 2019-05-28T08:16:28 | null | UTF-8 | Python | false | false | 17,241 | py | # -*- coding: utf-8 -*-
# TODO:
# - Add documentation
# - Add HowToUse examples
from iptc.ip4tc import Rule, Table, Chain
from iptc.ip6tc import Rule6, Table6
_BATCH_MODE = False
def flush_all(ipv6=False):
""" Flush all available tables """
for table in get_tables(ipv6):
flush_table(table, ipv6)
... | [
"artem.martynovich@gmail.com"
] | artem.martynovich@gmail.com |
24940e00c644513f38be88fb79e726ba911f152c | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/Cookie/20180504_ygh_HaiHangDYQiHuo.py | f05a27560ebeffb699133df25782c69739a91286 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,358 | py | # coding:utf-8
# Department : 保障部
# Author : 袁龚浩
# Create_date : 2018-05-02
from datetime import datetime
from FundNavSpiders import GGFundNavSpider
from FundNavSpiders import GGFundNavItem
import json
class HangHaiDYQiHuoSpider(GGFundNavSpider):
name = 'FundNav_HaiHangDYQiHuo'
sitename = '海航东银期货'
chann... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
eb46e992eb9904a5fdf802b84cd2ccfc34bff306 | b619c397f55b596e0f5293012c0a76dd0c6226d0 | /push/filters.py | 40b8080df71dbc6a7537c6c428ffcc711614baa3 | [
"MIT"
] | permissive | Mhamzaarif/django_infopush | cfcb05c4ebb7c1424aef0616a176256b1badbf29 | 9c41f455c0b18108be9f2f08401133b0c7717a5c | refs/heads/master | 2023-03-15T12:27:13.769522 | 2020-12-24T15:09:16 | 2020-12-24T15:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # -*- coding: utf-8 -*-
from django.utils.translation import ugettext as _
from commonstuff.filters import MyNullNotNullFilter
class IsDoneFilter(MyNullNotNullFilter):
"""
Model field stores datetime when push task has been done, but in admin
this filter reduces options to not sent (IS NULL) or already s... | [
"zemskyura@gmail.com"
] | zemskyura@gmail.com |
4aafcedd5f6cb60ece8156eb9bb58af8a89c9c21 | 59743456c879efd1e64bac9974c5ad9263fb04ab | /backend/urls.py | a023a3f99be2fae2d9d82cb5c588455dfdb890e8 | [] | no_license | kmu-crc/online-judge | 4cb775b6c595f157a26b4945baba8c2777f5c8c9 | 25cd97085ddc1b8f65c49d1dc43a8d3cd405bdb4 | refs/heads/main | 2023-04-05T11:21:41.767161 | 2021-03-25T07:47:54 | 2021-03-25T07:47:54 | 333,304,869 | 0 | 0 | null | 2021-04-11T07:50:06 | 2021-01-27T04:39:52 | Python | UTF-8 | Python | false | false | 966 | py | """backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-based... | [
"opensrcdesign@gmail.com"
] | opensrcdesign@gmail.com |
c9e0ebb11f7cf0e05d7a70cf995a27fa0e40e8ec | 082e1b8c1881c71509488a6b8a3bff4324fae606 | /BOJ/1766.py | d8bf83c3d7064334e24768b046b281e1a5863921 | [] | no_license | lkitty0302/Algorithm | 13297db1cc99f0f1b824bb208fd41c76b9f269ec | a5e8643634c46bedc912ae50b2f3de582a4e9ea5 | refs/heads/main | 2023-08-26T17:14:22.600705 | 2021-10-11T14:37:13 | 2021-10-11T14:37:13 | 327,317,364 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import sys
import heapq
input = sys.stdin.readline
n, m = map(int, input().split())
graph = [[] for _ in range(n+1)]
check = [0 for _ in range(n+1)]
for i in range(m):
a, b = map(int, input().split())
graph[a].append(b)
check[b] += 1
q = []
result = []
for i in range(1, n+1):
if check[i] == 0:
... | [
"lkitty0302@gmail.com"
] | lkitty0302@gmail.com |
ccb8db4efbe158440351413db2872cdd26ac004c | 331a93a837b632e864757191bcf82d68b12b30d2 | /ex05.py | 45a621ea31f279357731b98c0a6b36c779092b70 | [] | no_license | dhdhdhdn9/py3 | eb0fe34814e9e6aaeda0e907b1cfeff702b122ab | a761ef73162241d7b4b14a95aa1857c56231c9a3 | refs/heads/master | 2023-06-17T19:47:16.502345 | 2021-07-13T01:52:31 | 2021-07-13T01:52:31 | 381,970,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
# 자동차 주행 거리 계산기
spd = int(input('주행 속도: '))
hour = int(input('주행 시간: '))
kmh = spd * hour
print(f'주행 이동 거리: {kmh}')
| [
"dhdlatl2@gmail.com"
] | dhdlatl2@gmail.com |
7b2a69f3ac172111bffd9b484e13e7b56ac6be8a | 2a0c2b3b682fdc7a49ff2ea107f53ac4b8fb5d20 | /tool/mySpiderUtil/getFontTTF/__init__.py | 09fb027b761e9a2e1580ff3f506b9974fab89d76 | [] | no_license | NoobsZero/DesignMode | 29f8327c09ecd8f26e9fc3c8618e5fba3de712b2 | 161997377020436491520a10fc3ac927469458f1 | refs/heads/master | 2023-07-08T04:24:59.776257 | 2021-08-17T05:55:46 | 2021-08-17T05:55:46 | 303,366,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # encoding: utf-8
"""
@file: __init__.py.py
@time: 2021/6/11 10:54
@author: Chen
@contact: Afakerchen@em-data.com.cn
@software: PyCharm
""" | [
"870628995@qq.com"
] | 870628995@qq.com |
68006f7bba77da592219d675d092b54ee23183f8 | c54896ba0703fc4de01d19ed9e7eecfdfc4aa810 | /Python_Projects/Python_Web_Scraping/historical_committee_assignments/senate/scanning_over_multiple_congress/who_is_duplicated.py | 9e86aa566426bb5b428b4eb64e2c88cf53516266 | [
"MIT"
] | permissive | YangLiu928/NDP_Projects | f4d1c3d45161ff353f89dff2ebc36fabde28db62 | d2ebfa7b95a0003481dde1361c6ab563ac94f2e6 | refs/heads/master | 2021-01-10T14:39:17.141520 | 2016-04-28T19:57:48 | 2016-04-28T19:57:48 | 45,988,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import json
with open('scan_on_109_to_114_congress_new.JSON','r') as input:
data = json.load(input)
keys = data.keys()
names = set()
for key in keys:
name = data[key]['display_name']
if name in names:
print name
else:
names.add(name) | [
"yangliu1989@gwu.edu"
] | yangliu1989@gwu.edu |
b8cc14aa39385115e2e90e0187e1e903cd58e1d6 | 9f5537d1d0d3d6a50e8cce6022ab9761f79deb78 | /venv/Lib/site-packages/xlwings/utils.py | 9ae86003df498aec5e4d5c70305f6767ba5de9dd | [] | no_license | huangqinpeng/pythonproject | b8d12ceddca2847f09fef2bab49be6f7830493a1 | d87b98769460af69e2ca177077bafc839ca8ad4a | refs/heads/master | 2022-12-20T13:26:55.734208 | 2020-09-24T02:19:01 | 2020-09-24T02:19:01 | 298,141,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,715 | py | import os
import tempfile
import datetime as dt
from functools import total_ordering
import xlwings
try:
import numpy as np
except ImportError:
np = None
try:
import matplotlib as mpl
import matplotlib.figure
except ImportError:
mpl = None
try:
import plotly.graph_objects as plotly_go
except... | [
"705791753@qq.com"
] | 705791753@qq.com |
1bd823556c81b428f5183594c1455ed92d2f00bf | a30dc44f5dac99a3dd9ac45440388e245277a52c | /cs188/project/reinforcement/qlearningAgents.py | ae0010bcfee51f36935b389a0048793197832875 | [] | no_license | cjzcpsyx/UCBerkeley | 286284da2fc0aedf85c27a219c8aff059131263e | 06d835385ef83fbf9b471084225486512bd58e86 | refs/heads/master | 2021-01-24T20:26:56.168831 | 2014-10-25T04:56:56 | 2014-10-25T04:56:56 | 23,680,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,556 | py | # qlearningAgents.py
# ------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to
# http:/... | [
"harrychen-cjz@hotmail.com"
] | harrychen-cjz@hotmail.com |
ff48f2dfc31fb7a122d5b047b8a9da85b1fa7bb4 | c7863e61be46f9f84a73c93d214df66368ad8f6c | /statutchanger.py | 9a089267f10b2dd76cfe8df437d03a5f2aa235ed | [] | no_license | Kazmi-0x539/discord-statut-changer | 84255188a47c9840973336a90ffb93061232cb94 | be85552747ced412a9dc7b5cf58d1e500578e648 | refs/heads/main | 2023-04-17T13:26:22.191270 | 2021-04-26T15:38:08 | 2021-04-26T15:38:08 | 361,577,882 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
import random
import asyncio
bot = commands.Bot(command_prefix="!",help_command=None, intents=intents)
memberss = []
## CONFIG ##
token = ""
delay = 5
MessageBeforeTheNameOfMember = "Hey "
## CONFIG END
... | [
"noreply@github.com"
] | noreply@github.com |
820b524f20aad17579e559f39949c101c026d364 | eaf6fcab21572f2b271a8c93b0dc3cfb2026af8f | /04-homework/cart.py | 4f51c013f9d3e558635b1a6c962fca1c51cc3694 | [] | no_license | calebhubbs/OOP-shopping-cart | 258f5a919966d93b88559c7300a904455a51c519 | d0fd67e353c74bc3a848ec5e0b9b3aec4e95ae5f | refs/heads/main | 2023-07-24T13:00:07.665509 | 2021-08-31T16:46:11 | 2021-08-31T16:46:11 | 401,776,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | class Cart:
def __init__(self, items=[], total=0):
self.items = items
self.total = total
def additem(self, item):
self.items.append(item)
def removeitem(self, item, price, quantity):
if quantity >= self.items[item]:
self.total -= (self.items[item] * price)
... | [
"calebhubbs33@gmail.com"
] | calebhubbs33@gmail.com |
d80d9361b9b2a5f562f54b6c6ab7714bf12b879c | bb6ebff7a7f6140903d37905c350954ff6599091 | /tools/grit/grit/format/policy_templates/writers/ios_plist_writer_unittest.py | 14a0cab1edc0f641f2616e5c732fce413fab1ad4 | [
"BSD-3-Clause",
"BSD-2-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 6,156 | py | #!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Unit tests for grit.format.policy_templates.writers.ios_plist_writer'''
import base64
import functools
import os
import plistl... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
81776ee2ff0791004edd95deb5db1f1a515b8627 | 1ecd84abd69bf1f9a334164da5c1a32026b35199 | /算法/multiprocess/formating_test.py | 9c250b2a93fa26d1642ab1f211b4787778e95654 | [
"MIT"
] | permissive | Line0o0/E-commerce-evaluation | fd5d1d72ac7379126c1a4d843222fc685ba2d6e9 | 0092477118cafd55e7b6e682787b19df66f66098 | refs/heads/master | 2021-06-25T00:09:19.124655 | 2019-08-20T07:33:00 | 2019-08-20T07:33:00 | 196,004,424 | 2 | 0 | MIT | 2021-01-05T13:17:06 | 2019-07-09T12:30:04 | Python | UTF-8 | Python | false | false | 134 | py | def formating(list_load,n1,n2):
list_format = []
for i in range(n1,n2):
list_format.append(list_load[n1]/2)
| [
"noreply@github.com"
] | noreply@github.com |
63e31f655651a6bc2a5e6f5cc2eecde58bf58ee8 | 17a8ed643eb39759409187a7e6b5483a616da212 | /lib/outlier_detector/svm_detector.py | b63e4b44f555dad4d9e4b2c7e5e149a815b057f0 | [
"MIT"
] | permissive | Lving/outlier_detection | a59086b8528b718f12838167ba722b7a80533891 | 13ffe460c35af7dcc49314b36791b2c4dabc7348 | refs/heads/master | 2021-05-08T06:33:26.182552 | 2016-09-19T09:18:22 | 2016-09-19T09:18:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import numpy as np
from sklearn.svm import OneClassSVM
class SvmDetector(object):
def __init__(self, param_dict={}):
self.param_dict = param_dict
print self.__class__.__name__, self.param_dict
self.cls = OneClassSVM(**param_dict)
def fit(self, x):
self.cls.fit(x)
def pred... | [
"wg@gizwits.com"
] | wg@gizwits.com |
098338c47d05670a63e392a6cdde1e4aeb38f9a3 | dd4845230027b6e325ec938e7d8962fad5f1e03a | /HW2.py | 68b18ea865ce615307353d0aaff260d2436883dd | [] | no_license | justjess19/HW2 | b48a76bec35a5dba01a7dddf21c36c37f589d1e8 | 5bcfe085a9aafe3f5fc94c47789cd3d5a7438043 | refs/heads/master | 2021-07-03T20:59:13.002305 | 2017-09-26T02:54:11 | 2017-09-26T02:54:11 | 104,266,002 | 0 | 0 | null | 2017-09-20T20:46:08 | 2017-09-20T20:46:08 | null | UTF-8 | Python | false | false | 4,133 | py | ## HW 2
## SI 364 F17
## Due: September 24, 2017
## 500 points
#####
## [PROBLEM 1]
## Edit the following Flask application code so that if you run the application locally and got to the
#URL http://localhost:5000/question,
#you see a form that asks you to enter your favorite number. Once you enter a number and s... | [
"jmstuart@umich.edu"
] | jmstuart@umich.edu |
7ab4e1d3b33dc49ca838810520f5996eae708cc3 | 87e2df22ec624bf7070a59fbc99d4768e4b15806 | /src/routes.py | 0adcbd844296d195f74fe8b291d708f04544f70c | [] | no_license | Jromero97/cs50w-project1 | ec58d93cca94b10e58920c6213adae27691d20a6 | bb7cf77eda2b612307ec696b496ced7f47bea1a0 | refs/heads/master | 2023-04-09T00:57:33.169690 | 2021-04-08T10:17:36 | 2021-04-08T10:17:36 | 355,857,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,810 | py | import requests
from flask import render_template, redirect, flash, jsonify, session, request
from werkzeug.security import check_password_hash, generate_password_hash
from src import app, db
from src.decorators import sign_in_required
@app.route('/')
@app.route('/index')
@sign_in_required
def index():
return ren... | [
"j.romeroc97@gmail.com"
] | j.romeroc97@gmail.com |
10a0be8ff0647bb8a664bf5229355fe8e245c642 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03291/s377331832.py | 862748becfb1ad9796cc654b44a9968803c6871f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | s = input()
dp = [[0] * (len(s) + 1) for _ in range(4)]
dp[0][0] = 1
for i, c in enumerate(s):
# use c
if c == "A" or c == "?":
dp[1][i+1] = dp[0][i]
if c == "B" or c == "?":
dp[2][i+1] = dp[1][i]
if c == "C" or c == "?":
dp[3][i+1] = dp[2][i]
# not use c
for j in range(4):
if c == "?":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0f3ceab2ded03ac9f8f286be4adafe0df10dfe98 | 62cdfa992639a860ab212630b423f86233925a02 | /pralon_accounting_reports/wizard/sales_journal.py | aef033b68e97e07f0f1d4b85e9c44db0c3827501 | [] | no_license | eksotama/prln-prln | dfd1a411a97dbf8c5f5a22b68c031e205b510a2b | 9b3ecc3e1df1e7e795d19a68ab7d915edefc16e8 | refs/heads/master | 2020-03-25T19:49:08.076300 | 2015-12-01T07:38:29 | 2015-12-01T07:38:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,844 | py | # -*- encoding: utf-8 -*-
###############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (C) 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU A... | [
"aero@aero.(none)"
] | aero@aero.(none) |
8d3c34f75939b240e3c0a193423132473c2802e6 | 70ce13b30490819acff575585eff14238045d4d2 | /core/views.py | abcfcc394ac3fe4bd969da5db9203adf45647d80 | [
"MIT"
] | permissive | snetdev1/snetDjango | 584aaff3f6abb73e29f92b3fe2a48b8dc179c210 | 461ef4e58218acd36fdcb8adbf25358d788c2542 | refs/heads/master | 2020-12-25T16:56:01.649948 | 2016-07-31T23:11:53 | 2016-07-31T23:11:53 | 51,332,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | from django.shortcuts import render
from rest_framework import viewsets
from serializers import cmsSerializer
from models import *
from rest_framework.permissions import IsAuthenticatedOrReadOnly, IsAdminUser
from rest_framework.response import Response
from rest_framework.views import APIView
# Create your views here... | [
"s.net.dev1@gmail.com"
] | s.net.dev1@gmail.com |
b1f1a19e813d37a4e2b195059fea202fb06c0e09 | ae98e4ae5018f1dcb7bead395ac5631b01c305e6 | /Python/NET_AND_THREAD/NET_AND THREAD_info.py | 06b3368a673e96b900e56a1f8759124c92d24b20 | [] | no_license | AlbertSadykovOfficial/Python | ac27e57fbef8d32f7d85e177bcee793feaedd36b | 6a76b12a4c717ca2035fec967097947dc4b5ecfc | refs/heads/main | 2023-02-14T01:51:26.833568 | 2021-01-11T20:21:30 | 2021-01-11T20:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | """
Конкуренция и сети
Конкуренция - возможость делать больше одного дела одновременно
Сети (распред системы) - Возможность делать больше 1 дела в нескольких местах сразу
""" | [
"noreply@github.com"
] | noreply@github.com |
55e5374024d92bb3cb6c267875d8082378542be1 | 805c6b6dc615a71d8301695d6b74efd4789bab13 | /cspp1-assignments/m20/CodeCampMatrixOperations (1)/CodeCampMatrixOperations/matrix_operations.py | 3c2425b99da3d4d1470bbd65527b41f623dc7857 | [] | no_license | BhavaniChoudary/CSPP1 | a685596e6939723a6167496d42c15811e52f0066 | 64632cf1946c4a4b541ee96c76ae5b9e94c3f8a5 | refs/heads/master | 2020-03-24T17:50:46.604458 | 2018-08-25T12:37:18 | 2018-08-25T12:37:18 | 142,873,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | '''
docstring
'''
def mult_matrix(matrix_one, matrix_two):
'''
check if the matrix1 columns = matrix2 rows
mult the matrices and return the result matrix
print an error message if the matrix shapes are not valid for mult
and return None
error message should be "Error: Matrix ... | [
"lakshmi.papasani96@msitprogram.net"
] | lakshmi.papasani96@msitprogram.net |
7d76bf001033d051ea34ded6b3e5c8d0d9d5bc2b | aa071e5782c76d8552844329073214ae73f005f0 | /Study_9/Study_9.py | cfe964bcbcd8e8a9713f89965fb88d27deb883cd | [
"MIT"
] | permissive | LeeDaeil/PyQt5_study | 1feff7a934aa9b46c7e70c4de00e02c49f292db8 | ecdd22ce2809ce6f01c8691a7ca75ef1771b7202 | refs/heads/master | 2021-06-24T09:14:32.358137 | 2020-12-06T13:35:30 | 2020-12-06T13:35:30 | 176,840,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import sys
from PyQt5.QtWidgets import QDialog, QApplication
from ui_data.gui_study_9 import *
import Study_9_re_rc # resource file
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.background_setting()
self.initia... | [
"dleodlf1004@naver.com"
] | dleodlf1004@naver.com |
a44a724543665630f89750da7828359f28583b9f | 4203c65bb6960228a101f432872e0c82c6c29a32 | /inctf/singcharxor.py | 36ad8d98c85097a936cfc138f72e87529fc62104 | [] | no_license | sayoojsamuel/Crypto | 8dd0308580aeb1ac9dc07a03c26bba5c1296031e | 21c3f335f44671347bbd248970f02efb4bfbb41e | refs/heads/master | 2022-12-18T10:54:14.237994 | 2020-10-02T17:22:13 | 2020-10-02T17:22:13 | 112,770,209 | 1 | 4 | null | 2020-10-02T17:22:14 | 2017-12-01T17:54:42 | Python | UTF-8 | Python | false | false | 792 | py | import string
def byte_xor(a):
crypt=[]
for i in range(0,len(a)):
crypt.append(a[i])
for i in range(255):
plain = ""
#key=hex(i)[2:].zfill(2) <-- this is very important, especially zfill()
#xor crypt to get plain
for j in range(len(crypt)):
plain += hex(ord(crypt[j]) ^ i)[2:].zfill(2)
text... | [
"noreply@github.com"
] | noreply@github.com |
76a3400b38d03e0db11b69203a3290828801c1bd | c4a14cfc79ba9be5c1acb664dd37db6a35fc9a72 | /Ahmedrajiv p1.py | a33d1baa36ccc88ecdb59aea8381d309fc40ab90 | [] | no_license | Ahmedrajiv/hello-world | fc3a794a4ee1408aa1a1166be342136fcfbab12b | 6ba61517d605507cc3ddfee81a26de88106759f3 | refs/heads/master | 2021-05-10T11:07:22.111988 | 2018-03-12T05:00:17 | 2018-03-12T05:00:17 | 118,403,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | a= input("enter the value")
b= input("enter the value")
c= (int)a+int
| [
"noreply@github.com"
] | noreply@github.com |
cdb68b4d4aebaaa470d36b52ab6fc33f3a787867 | 86d716670529d426c3fbf06d03f5cfdb3ab0232c | /task2/student/migrations/0010_auto_20181009_1612.py | b3212639d7c3b6d9dcd8644c0e93b1e63ba222ad | [] | no_license | krutiLadani/django_work | ac0bce78f4d0b7986694f9141e7082bcb224c8fb | 63b1d36141bf4534d7f69dfe3bc6e96b54bb4cf5 | refs/heads/master | 2020-04-07T12:32:17.565007 | 2018-11-20T10:59:57 | 2018-11-20T10:59:57 | 158,371,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # Generated by Django 2.1.1 on 2018-10-09 10:42
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('student', '0009_auto_20181009_1543'),
]
operations = [
migrations.Create... | [
"kruti29.ladani@gmail.com"
] | kruti29.ladani@gmail.com |
742ddf517406915001d9938726f3ae1c5310fbdc | 59ed0ee51548001c4bae48fbb7bf57901c3aa248 | /bottle/bottleAnalytics/migrations/0003_usersettings.py | c2b4053cc427667f17ae747331de52122166919f | [
"MIT"
] | permissive | duartegalvao/Smart-Bottle | db9592974f9c113c83b6cc4a6709d1465d179b00 | 0ff2befc7d4fc66feb085f6ccb3421675830d530 | refs/heads/master | 2020-05-07T08:04:44.573960 | 2019-05-29T20:13:01 | 2019-05-29T20:13:01 | 180,307,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 2.2 on 2019-04-30 12:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bottleAnalytics', '0002_bottlereading_time'),
]
operations = [
migrations.CreateModel(
name='UserSettings',
fields=[
... | [
"duarte.galvao@rnl.tecnico.ulisboa.pt"
] | duarte.galvao@rnl.tecnico.ulisboa.pt |
b84ffa156de99b45afc7a72fd35c7d6dfef7bc2e | dbd0bad22813f607d6bb9037da3ba5b4d6c37807 | /polynomial_regression.py | 7575767f4d29cdd2c7be15da1f9b4eef0fc4d352 | [] | no_license | hichem/python-ml-training | f51d2b601afd5a6fe228f0ae1934b38dc5be7406 | 42834ddc3e3ceae97383f6c4314f4099d9ed8d20 | refs/heads/master | 2020-04-22T01:15:03.576159 | 2019-02-14T20:20:01 | 2019-02-14T20:20:01 | 170,008,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | # Polynomial Regression
# Importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Importing the dataset
dataset = pd.read_csv('data/Position_Salaries.csv')
print("Dataset: ", dataset)
# Get X and y
X=dataset.iloc[:,1:2].values
y=dataset.iloc[:,2].values
print("X=", X)
print... | [
"Hichem.BOUSSETTA@ingenico.com"
] | Hichem.BOUSSETTA@ingenico.com |
af5386d8b29e79b56dcf99e9be2b9c056aa19606 | 4b61ae276d8a198017a5986e72fb2c4d991286b3 | /utils/test/visibility_tests/VisibilityDataPrepToolsTestSuite.py | 1c8c2cdfd11164f5afad6e168c8b666a2129fd9c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | NatalieCampos/solutions-geoprocessing-toolbox | b8e13de5b0686d3f0d521e4e4f99520afc965b14 | de6b175cd97ad4030fb72b3e66995a018448ffbf | refs/heads/master | 2018-01-16T20:20:04.729686 | 2017-07-20T16:33:41 | 2017-07-20T16:33:41 | 24,063,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # coding: utf-8
'''
-----------------------------------------------------------------------------
Copyright 2015 Esri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses... | [
"mfunk@esri.com"
] | mfunk@esri.com |
f75d3a82086114dbbb96846ed9c929518ca4832f | 420abdfea89bde8d4da834856652811e844741b2 | /Algorithmic Thinking/Resilience_Fast_Attack/project.py | 9f2394ced519da1358a4e563fb22f266bb868be8 | [] | no_license | vacous/Coursera-Python-Specilization | 8f19509193c0cc73609c3a6fb09e3eb079d9b275 | 9d3a0a027f86d7f11c5dc67188cb37ae24cedd4a | refs/heads/master | 2021-06-19T00:25:10.443496 | 2017-06-08T12:22:35 | 2017-06-08T12:22:35 | 80,328,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,178 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 27 23:22:07 2016
@author: Administrator
"""
"""
Provided code for Application portion of Module 2
"""
# general imports
import urllib2
import random
import time
import math
import matplotlib.pyplot as plt
# CodeSkulptor import
#import simpleplot
#import codeskulptor
#c... | [
"vaocus@gmail.com"
] | vaocus@gmail.com |
bd6301e51bcc84d80811b5a9c3c8e646f908bc2a | dfdb41fdf315819008845949a25800a2a2bd7493 | /jacobi_gs_pixelcnn/jacobi_gs_layers.py | 54bf547f9e1ec2269564e8e8267c4f9e59465749 | [] | no_license | ermongroup/fast_feedforward_computation | 1c0507aebd0b10be86970aef2ab5c1a297f3d2a2 | 6d14294647cfd880f991eacd59c9323643e45ea0 | refs/heads/main | 2023-08-04T23:05:35.960466 | 2021-09-25T18:25:36 | 2021-09-25T18:25:36 | 376,141,511 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,133 | py | from pixelcnnpp.cached_layers import *
import math
def sum_rightshift_downshift(rightshifted_pixel, downshifted_row, cols, num_blocks, first_index=True):
'''Sums the vertical and horizontal stack.'''
if first_index:
return rightshifted_pixel + downshifted_row
else:
# num_block x B x H x W x C
downsh... | [
"yang-song@live.cn"
] | yang-song@live.cn |
f545c6c1fc37083f614aac0ff87b6d2ee0a2cf97 | 6539dc91c8255450b2a89b83ce555d8c62f28820 | /mysite/polls/admin.py | e0c4450d0ccadf8c080fe50393aac68acb5552c6 | [] | no_license | rahul-satal/polls | 18470ca6eecf6b67642bb3213faa53c91b16fcd5 | eb9db6737fd5ecbe5441cb120391fc5b6222ba7a | refs/heads/master | 2016-09-05T16:30:13.923353 | 2015-03-17T11:33:27 | 2015-03-17T11:33:27 | 32,263,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from django.contrib import admin
from polls.models import Choice, Question
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'... | [
"rahulsatal92"
] | rahulsatal92 |
fb8592e0e861914b0b99b4c905db34c43e5a08c8 | e87d0cee1ce41124a808000850d4af5c7cd04f08 | /mark/装饰器/sort改进.py | dea985ce7ebbc0745adb39f2a0de44548fd40082 | [] | no_license | thinkingjxj/Python | 0e8e5f60874c23a30aa8f54412fcf63c453f412a | 9e92717b7871083c833612d220d1991d8d906275 | refs/heads/master | 2021-07-05T23:09:03.610678 | 2018-12-07T03:39:50 | 2018-12-07T03:39:50 | 148,290,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | lst = [4, 1, 6, 8, 3, 9, 5]
def sort(iterable, reverse=False):
new = []
for x in iterable:
for i, y in enumerate(new):
flag = x > y if reverse else x < y
if flag:
new.insert(i, x)
break
else:
new.append(x)
return new
prin... | [
"thinkingjxj@users.noreply.github.com"
] | thinkingjxj@users.noreply.github.com |
af08ed34611ccfc24943746c224b2ebc015ba3bb | 021af6afa2795ab3eff5c7380bc81065e8f64827 | /first_project/first_app/models.py | de0dec4bfd5f9ba30bc820fa5ca875a2663e6171 | [] | no_license | mail2mhossain/my_django_example | 084e48c4a4467032eaea66ab66362901e7bfd44e | 3acb6c66e1b51ea0333f3d74a289f72f2657f7ac | refs/heads/master | 2021-05-17T02:33:36.985218 | 2020-03-27T16:48:34 | 2020-03-27T16:48:34 | 250,571,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Topic(models.Model):
top_name = models.CharField(max_length=264, unique=True)
def __str__(self):
return self.top_name
class Webpage(models.Model):
topic = models.ForeignKey(Topic, on_delete=... | [
"USER@MHOSSAIN_DELL"
] | USER@MHOSSAIN_DELL |
e1cd2aa927651c3d24dbe4a34d4052202dc323d9 | fd799fc1351d040ad7d31feec99656424f1b50b7 | /virtual/bin/gunicorn_paster | 0e267e1a3c2a519c010a10918e31a93960e1fb78 | [] | no_license | naimahassan/capstone | a0749ad34de619d3228cd02d8b576f9c6dcb699e | 7b9ff77e39ac056052dd59f3dd59f050a2ebe0ee | refs/heads/master | 2021-04-15T18:57:46.869238 | 2018-03-22T11:55:29 | 2018-03-22T11:55:29 | 126,139,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | #!/home/naima/Desktop/moringa/programming/core/python/Django/IP's/capstone/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"hassannaima77@gmail.com"
] | hassannaima77@gmail.com | |
bcef7cc789f9e039d85b72c271f89f1b043dff82 | d42e4e16612434587ab8e5889244124acf46d7ee | /mockServe/server.py | 5c6ff9b267de5640e31d8c5e3055818dff4010e8 | [] | no_license | kingfeng999/apiMock | 56271ea5c56b93fa908974099c314539584e919b | 3f80496f0c2bf2be61a12a8004f62b8165a94ccd | refs/heads/master | 2022-12-27T07:38:24.719484 | 2020-09-17T21:33:32 | 2020-09-17T21:33:32 | 296,447,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | #!/usr/bin/evn python
# -*- coding: utf-8 -*-
# @Time : 2020-09-12 19:17
# @Author : qinzhifeng
# @FileName: server.py
# @Software: PyCharm
from flask import Flask, jsonify
from mockServe import tool
from flask import request
'''
1.实现登录和注册
接口文档
接口名字 method url 参数
登录接口 post... | [
"80831093@qq.com"
] | 80831093@qq.com |
85bf9fc2b05e1145b3599b7cc3210005cf94c0a7 | b8976668d6c6894e9b25693969925110f3da1495 | /Sitio1/wsgi.py | 4400753d419bea2dbd721eeac5ff58a15ee12bd7 | [] | no_license | crispedrani/MiPrimerBlog | ab8f91c5d632c49ddb4f30272d4d6ae1ef356d50 | 11ad1c95f4716412c0851b8fbcf3e93e4acc3e94 | refs/heads/master | 2021-06-14T21:17:44.291373 | 2017-03-26T03:58:13 | 2017-03-26T03:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Sitio1 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"crispedrani@gmail.com"
] | crispedrani@gmail.com |
85579e44e53855587ff70cd7fdd2252ef18c1566 | 2ddd18f4ce0c29d47fbd3c3576eec4664f0541f1 | /simpmeshfree_gui/tools.py | 363187962f208515b054a3b80fd96468e664c841 | [] | no_license | epsilony/simpmeshfree_gui | 0f3bd7ac6f8fd3a94352bc57f38d3a3b8022bc2a | 8aae7d9fcbac2fa7b499257f46d711e993b38b27 | refs/heads/master | 2020-04-06T06:50:51.999742 | 2012-12-11T14:31:22 | 2012-12-11T14:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from matplotlib.path import Path
import numpy as np
from jpype import JClass, JDouble
from collections import deque
from simpmeshfree_gui.jvm_utils import iter_Iterable
def path_ccw(pth, err=1e-6):
path_iter = pth.iter_segments()
pt_fst = path_iter.next()[0]
pt1 = pt_fst[0]
pt2 = path_iter.next()[0]
... | [
"epsilonyuan@gmail.com"
] | epsilonyuan@gmail.com |
93721cd2e823ee88f70a194edd43ef814f82160b | ee0c8cc7b86d4dc41469aae59e3632102fedfdb1 | /mysite/blog/forms.py | a59512aba992f8bfe4189065a04edc6bc5ede81e | [] | no_license | Hamza-abughazaleh/blog-django | 1a177aa00d86a34cc49c6ee39f2b068d291a4f12 | 3a4b43b58beb25054e5798f219d7175629009138 | refs/heads/master | 2021-07-20T07:00:37.651344 | 2017-10-25T12:15:58 | 2017-10-25T12:15:58 | 108,093,782 | 0 | 0 | null | 2017-10-25T12:19:14 | 2017-10-24T07:44:17 | Python | UTF-8 | Python | false | false | 690 | py | from django import forms
from blog.models import Post,Comment
class PostForm(forms.ModelForm):
class Meta():
model = Post
fields = ('author','title','text')
widgets = {
'title' : forms.TextInput(attrs={'class':'textinputclass'}),
'text' : forms.Textarea(attrs={'cla... | [
"hamzaabughazaleh23@gmail.com"
] | hamzaabughazaleh23@gmail.com |
5fa263b0a027a2ac3b17e317e206d3ef0088708d | 4eff9d232c5dcae30232de53e7de2d7a7902b9fd | /geekshop/urls.py | 8d06a7e028950bd858162775bad5c66c41c0be8f | [] | no_license | Volhen/geekshop | 56728b195797de18c25061f0a5bb4881eff15a08 | c9226486fb9c9b13faea434e3fba2b7e6a0dd4f9 | refs/heads/master | 2020-05-23T08:31:32.562412 | 2019-05-20T10:41:22 | 2019-05-20T10:41:22 | 184,905,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from django.contrib import admin
from django.urls import path, re_path, include
urlpatterns = [
re_path(r'^', include('mainapp.urls', namespace='main')),
re_path(r'^auth/', include('authapp.urls', namespace='auth')),
re_path(r'^basket/', include('basketapp.urls', namespace='basket')),
re_path(r'^myadmi... | [
"zver2485@mail.ru"
] | zver2485@mail.ru |
6e88b985684f882129ced8b4a3f4b089b162634b | ca0ab60e97f946225844c6d216da43f40d93e70d | /python_usful_modules/trade_day.py | 203a96880c0ff87909556b776d2bbb9f1d90fa7a | [
"Apache-2.0"
] | permissive | jiper/MyToolBox | 47788217340e9c1b34bc30ae48532c82d48d1683 | 18a311285838a1ec6170bceec92cd0a59c067ee5 | refs/heads/master | 2020-03-18T11:24:42.424255 | 2018-06-26T07:39:38 | 2018-06-26T07:39:38 | 134,669,548 | 0 | 0 | Apache-2.0 | 2018-06-26T07:39:39 | 2018-05-24T06:13:53 | Python | UTF-8 | Python | false | false | 2,578 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 20 16:23:28 2018
@author: YinChao
@date: 20180520
"""
import urllib.request as request
import datetime
import time
'''
@query a single date: string '20170401';
@api return day_type: 0 workday 1 weekend 2 holiday -1 err
@function return day_type: 1 workday 0 wee... | [
"yc86247931@126.com"
] | yc86247931@126.com |
cd3f496c90a66b66218d79e1422aaae354538abc | 52e53ee23573b1a50f892089d7418a16bf496422 | /ARCADE/airborne/components/interfaces/gps_monitor/gps_monitor | 1d899d880a1f89d5d0309d809130b1b1c0cad8e9 | [] | no_license | jalishah/airborne | 584bbf4a51f6a087a4295991c79702343f364af7 | c374b775c608de9bf8f7152aa2c79bc9e1ecec6e | refs/heads/master | 2020-04-11T08:03:16.624788 | 2013-09-17T12:04:47 | 2013-09-17T12:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | #!/usr/bin/env python
import sys
from gps_data_pb2 import GpsData
from scl import generate_map
socket = generate_map('gps_test')['gps']
gps_data = GpsData()
print 'waiting for gps data'
try:
while True:
str = socket.recv()
gps_data.ParseFromString(str)
print gps_data
except:
print 'terminated... | [
"tobias.simon@tu-ilmenau.de"
] | tobias.simon@tu-ilmenau.de | |
ac324c8b508709044f42e356aaa2800fc2fdf278 | a33b2fed51d9a10c316456cdf088df7a62fa4b14 | /models/glow.py | a009ba0018f9df04f0b5d5c0b9f91432eb86b990 | [
"MIT"
] | permissive | jxzhangjhu/gradient-boosted-normalizing-flows | b718bbe2d55b722e833606310fa7ff391df2e11c | eca3726774f4498f1583bb79d4a9b955b4f51412 | refs/heads/master | 2023-03-21T00:47:58.179954 | 2020-10-16T23:56:04 | 2020-10-16T23:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,688 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import numpy as np
from utils.utilities import safe_log, split_feature
from models.layers import Conv2d, Conv2dZeros, ActNorm1d, ActNorm2d, InvertibleConv1x1, Permute1d, Permute2d, LinearZeros, SqueezeLayer, Split2d
from models.layers impor... | [
"giaquinto.ra@gmail.com"
] | giaquinto.ra@gmail.com |
5d6d354b1359f8d7e8a575a73c06cc26fcfff920 | 72316a1d1a2e0358486d50aeecbac8219ccdf092 | /ietf/utils/aliases.py | edfce0b067795e18127bc2f6ebe1df4accdbbe5b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | algby/ietfdb | 363541941bd6e806bed70891bed4c7f47c9f0539 | 9ff37e43abbecac873c0362b088a6d9c16f6eed2 | refs/heads/master | 2021-01-16T18:57:50.100055 | 2014-09-29T21:16:55 | 2014-09-29T21:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
#
# $Id: aliasutil.py $
#
# Author: Markus Stenberg <mstenber@cisco.com>
#
"""
Mailing list alias dumping utilities
"""
from django.conf import settings
def rewrite_email_address(email):
""" Prettify the email address (and if it's empty, skip it by
... | [
"henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0"
] | henrik@levkowetz.com@7b24d068-2d4e-4fce-9bd7-cbd2762980b0 |
a3d74d7ea21054ba2ba9f278db3d109b55639054 | 38e2f8b0fd955a21b77047147a2f649889f638c2 | /tests/test_c1_DailyCheckReport.py | 543b899eeaba32ac9091e9fca6f0a8b69a904974 | [] | no_license | liqiuwei/Rohon_managementplatform_web | f7707cc45c0f41151fcfe0d32b98fce428f9945a | b73f33b9e654f62c0971425db18fd266938c8184 | refs/heads/master | 2023-04-20T03:02:38.545072 | 2021-05-14T15:07:14 | 2021-05-14T15:07:14 | 355,116,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import unittest
import ddt as ddt
from middleware.heandler import Hadnler, OracleHandlerMid
from middleware.pages.homepage import IndexPage
logging = Hadnler.logger
@ddt.ddt
class TestAccountingStatements(unittest.TestCase):
"""核算报表查询"""
@classmethod
def setUpClass(cls) -> None:
cls.db = OracleH... | [
"71200488+liqiuwei@users.noreply.github.com"
] | 71200488+liqiuwei@users.noreply.github.com |
e30638730718ba9ba38caa469741158a0b49805e | 57e79e7ffdb83d1b841ff253943dbe3752dc5b55 | /LSTM_CNN/run_train_save_model.py | 419ace1a72ce1a515ff6bb3cf7a555d063d90cb3 | [] | no_license | aggression-detect/aggression_detect | ee5be9363dc3e4bb299c01cfecfe0baa550cc58b | 26e40aed7085f86263816f48442e55450e792c17 | refs/heads/master | 2023-04-27T22:08:45.742008 | 2021-05-13T12:40:51 | 2021-05-13T12:40:51 | 272,133,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,298 | py | import os
from itertools import chain
from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau, Callback
from tensorflow.keras.optimizers import RMSprop, Adam
import pandas as pd
from tensorflow.keras.applications import Xception, ResNet50, InceptionV3, MobileNet, VGG19, DenseNet121, InceptionResNetV2,... | [
"noreply@github.com"
] | noreply@github.com |
94e8e83adf3cdfea29d8b27017b01c46b911854f | 481e4bd5a69d860e52dfe12dc1693e495b2b65bc | /python/cuml/_thirdparty/sklearn/preprocessing/__init__.py | ea17a3f197617af0244117e7b76156cdf1e7c9ef | [
"Apache-2.0"
] | permissive | mike-wendt/cuml | f3633ed1aef93250f077cec2bc85e2ac22560074 | 62e2152576cf088a9ed782a3f2d5f32f46459aa6 | refs/heads/branch-0.18 | 2021-06-12T00:21:41.009357 | 2020-12-14T16:50:42 | 2020-12-14T16:50:42 | 321,446,920 | 0 | 0 | Apache-2.0 | 2021-03-20T00:39:58 | 2020-12-14T19:08:38 | null | UTF-8 | Python | false | false | 1,648 | py | # This code originates from the Scikit-Learn library,
# it was since modified to allow GPU acceleration.
# This code is under BSD 3 clause license.
"""
The :mod:`sklearn.preprocessing` module includes scaling, centering,
normalization, binarization methods.
"""
from ._function_transformer import FunctionTransformer
... | [
"noreply@github.com"
] | noreply@github.com |
165419196495735d51fb2e3270b93287e7c575b2 | d272b041f84bbd18fd65a48b42e0158ef6cceb20 | /catch/datasets/eyach.py | 075cca99426edd9c899b9e90af8fc1b82212d3fa | [
"MIT"
] | permissive | jahanshah/catch | bbffeadd4113251cc2b2ec9893e3d014608896ce | 2fedca15f921116f580de8b2ae7ac9972932e59e | refs/heads/master | 2023-02-19T13:30:13.677960 | 2021-01-26T03:41:10 | 2021-01-26T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | """Dataset with 'Eyach virus' sequences.
A dataset with 24 'Eyach virus' sequences. The virus is segmented and
has 12 segments. Based on their strain and/or isolate, these sequences
were able to be grouped into 2 genomes. Many genomes may have fewer
than 12 segments.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGR... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
2a34057d92d8aac890e3de69c82e57fdc9aa7ca2 | 7a1b77bc408c1065bf625f23bc730a28c4e8bef2 | /Programmers/Sorting/K번째 수.py | 422f1ff7d82b8cc76aa6efae3b808ff1c52f6a30 | [] | no_license | senipior/Algorithm_python | 65f1487d54fbd0996fa2f6b31e7e63f437af2397 | 23e7bbd5ca9a3a0729003979e98e5e402c6631db | refs/heads/main | 2023-07-10T04:48:11.387352 | 2021-07-12T08:50:10 | 2021-07-12T08:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | # 7월 10일
# 프로그래머스 정렬(Sorting)
# A.sort()는 리스트를 그 자리에서 정렬하고 None을 반환
# 1
def solution(array, commands):
answer = []
for i in range(len(commands)):
start = commands[i][0] - 1
end = commands[i][1]
sel = commands[i][2] - 1
lst = array[start:end]
lst.sort()
num = lst[... | [
"pjk146195@gmail.com"
] | pjk146195@gmail.com |
d21e8fa14b9a62887e0214c8d267414541c86784 | cafa52c05f020af31985cfd1b8e2c676ea6e3baa | /lib/Chipseq/croo.py | 8bd340dd55c88a7b03738de398e054961eebce23 | [
"Apache-2.0"
] | permissive | shengqh/ngsperl | cd83cb158392bd809de5cbbeacbcfec2c6592cf6 | 9e418f5c4acff6de6f1f5e0f6eac7ead71661dc1 | refs/heads/master | 2023-07-10T22:51:46.530101 | 2023-06-30T14:53:50 | 2023-06-30T14:53:50 | 13,927,559 | 10 | 9 | Apache-2.0 | 2018-09-07T15:52:27 | 2013-10-28T14:07:29 | Perl | UTF-8 | Python | false | false | 2,231 | py | import argparse
import glob
import logging
import os
DEBUG=False
NotDEBUG=not DEBUG
parser = argparse.ArgumentParser(description="Perform croo to retrive wdl result.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-i', '--input', action='st... | [
"shengqh@gmail.com"
] | shengqh@gmail.com |
aa09283c0bde6ffe10b8692be56040e4a18d3054 | a61d345d304eabfa7e9da582b36bb1993d6ea533 | /CKEditor/urls.py | d95d9f87a6601dec817d95e166d2b4018e30f42b | [] | no_license | ahriroot/django-editor | 60cec60c467748334c7c6b0994be2ee1c80af51a | 8317cdd566c8ad757b95bac18f42329b2d12f9a2 | refs/heads/master | 2022-06-11T23:16:18.178465 | 2019-06-09T12:46:33 | 2019-06-09T12:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.urls import path
from . import views
app_name = 'ckeditor'
urlpatterns = [
path('upload', views.upload, name='upload'),
]
| [
"myfsnow@163.com"
] | myfsnow@163.com |
c6590e663853ff3d901ae22ac5c0c15f6f74d581 | 9fe9ce3f2813013063d15ed7e54ddc288165e569 | /testLTI/settings.py | ca515c96b93c03f477f1ab8397da782cbd415290 | [] | no_license | salenkoanton/testLTI | f787e70a972bf29915a7c9006cc03595a7801a86 | bc216603071a4dabe1b0f0caa8375a4bf28c8409 | refs/heads/master | 2021-01-15T18:00:37.085792 | 2017-08-09T07:05:55 | 2017-08-09T07:05:55 | 99,776,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | """
Django settings for testLTI project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths ... | [
"salenko3110@gmail.com"
] | salenko3110@gmail.com |
effb18385de7cb5028c07a7bc626515f7186276c | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/dnc/azext_dnc/manual/tests/latest/preparers.py | 53aa6614e7eb6af55ac6829dfef768e3bd1fbe08 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 4,962 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | [
"noreply@github.com"
] | noreply@github.com |
bde205bb2d2576a7d527aa1349151c9b1ff70e79 | 7d92deeec2df2092b37f30e2e5020aa61960c6c3 | /superset/tests/sqllab_tests.py | 5fe9ef18621891b9a4dab96eb6036a430dabfe54 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | warenlg/sourced-ui | da4b02fead69ca80ef266ebcacdcbae8fb6657dd | c8ff53b369e182ee2b9715a67b00ac1688995732 | refs/heads/master | 2020-07-03T12:29:41.290656 | 2019-08-09T14:48:17 | 2019-08-09T14:48:17 | 201,904,423 | 0 | 0 | Apache-2.0 | 2019-08-12T10:00:08 | 2019-08-12T10:00:07 | null | UTF-8 | Python | false | false | 15,074 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"max@smacker.ru"
] | max@smacker.ru |
b5a631a0b71ecd8ef0847caaf8c39ca9edabea42 | 4b4b885bf52fdcd4b60fa049b8ab4b56942b98b9 | /tutorial/tutorial/spiders/quotes3_spider.py | 273f48c84733f585d5ed88a70d485903ef56f151 | [] | no_license | PhyzXeno/ScrapyPlay | bdf3150b2ac394c2e200a6bd28464715a0c19aff | cd67494303839e29bdd0b61810d1e388af37bc2a | refs/heads/master | 2021-01-20T07:19:01.706361 | 2017-08-27T05:39:49 | 2017-08-27T05:39:49 | 101,532,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import scrapy
class Quotes3Spider(scrapy.Spider):
name = "quotes3"
start_urls = [
'http://quotes.toscrape.com/page/1/',
]
def parse(self, response):
for quote in response.css("div.quote"):
yield {
'text' : quote.css("span.text::text").extract_first(),
... | [
"630172407@qq.com"
] | 630172407@qq.com |
6012af9ce261c729bec90641081d4f6db366e8bf | c6045e213d0e8365013ffc61c5d62b27e264382c | /py_in/chapter1/abstract_factory.py | 3b7e2d277fb1e817d0f9474cea671360a71c6a5d | [] | no_license | tengrommel/py_in | 393646d52be19770a553c914f63901a7c50b7180 | e826333cbe97d74b39bae61ca028ffb215aef809 | refs/heads/master | 2021-08-12T06:46:39.404561 | 2017-11-14T14:39:20 | 2017-11-14T14:39:20 | 110,555,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,137 | py | class Frog:
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
def interact_with(self, obstacle):
print('{} the Frog encounters {} and {}!'.format(self, obstacle, obstacle.action()))
class Bug:
def __str__(self):
return "a bug"
def acti... | [
"wwwsousoucom@126.com"
] | wwwsousoucom@126.com |
33fdc1a60605a67f79190f363ea143e287eb099a | 29a18e048de426ed5cbea063774958680a24d3c8 | /acm.py | 93aeed49bd2f6a215057bc22d42ab02f60a427ba | [] | no_license | liliahache/kattis | de5d8e3482f6f8691354aa3fa2dc7fb9366b5d54 | cd4fb965cbad498ac85c07987aad0db3479e31c4 | refs/heads/master | 2022-02-01T01:44:52.596099 | 2018-12-17T23:27:22 | 2018-12-17T23:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | import sys
problems = dict()
for line in map(str.strip, sys.stdin):
if line != '-1':
time, letter, result = line.split()
if letter not in problems:
problems[letter] = {'solved':False, 'time':0}
if result == 'wrong' and not problems[letter]['solved']:
problems[lett... | [
"pedrotari7@gmail.com"
] | pedrotari7@gmail.com |
7d39cbc376f1b9b047c3e4363d0abfdb42015848 | 34f53b792d7cad4a6120c665b6896a4aa089c088 | /Template/ma20/strategy/ma20_120.py | 7e2db4b24fdfb4721b1d26f60e66afc66b193cbc | [
"Apache-2.0"
] | permissive | shinezai/Rqalpha-myquant-learning | 79bf47067ee58cf762a31c72a31d533596219338 | 5dc39c6d8f6d89bb89350ef64c860cb53c369c9f | refs/heads/master | 2020-04-22T14:53:11.649618 | 2018-05-25T02:38:19 | 2018-05-25T02:38:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from rqalpha.api import *
import talib
def init(context):
context.szzs = "000001.XSHG"
context.hs300 = "000300.XSHG"
context.cybz = "399006.XSHE"
context.algoInfo = context.hs300
context.SHORTPERIOD = 120
def handle_bar(context, bar_dict):
prices = history_bars(context.algoInfo, context.SHO... | [
"dingz_000@Dingzh.(none)"
] | dingz_000@Dingzh.(none) |
3a1c805b74ef59dad195ac676140e0affb221e7e | a59244c0ae05ac6a1292fa69641219cd58792e0d | /app/reviewParser.py | 26af10ec09a3f4e8bf6c19769d751842af4e762c | [] | no_license | gnedivad/yelp | d53b6c8d465374c3d2a2877ff00eabdd98ed7038 | a4f953d0b32c5c7dc1025a06984a2ffda482ccd2 | refs/heads/master | 2021-01-21T11:23:16.649200 | 2017-03-18T05:09:10 | 2017-03-18T05:09:10 | 83,562,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | #import pandas as pd
#import gzip
import json
#review = pd.read_csv('review.tsv.gz',sep='\t')
#print review[0]
#for data in review[0]:
# print data
#subset = review.loc([1])
#print subset
columnSeparator = "|"
quote = "\""
def get(filename):
data = {}
fd = open(filename, 'r')
data = json.load(fd)
... | [
"svtang@stanford.edu"
] | svtang@stanford.edu |
826de3289b9ff0521e9470a1e703521fc76b2cfc | 3c735595776ba46fc00ffde7c17e0687ad3b85c3 | /venv/Scripts/pip3.7-script.py | 182189cffbe04c274695bedd586e2f944fe1b292 | [] | no_license | caveman0612/WebDevelopment | 6f233473bbaf9dda5fa943445107b6d61101e29e | 0560d4a4f77e812c0eb937ed79291055109fc1de | refs/heads/master | 2023-03-07T17:40:42.234260 | 2021-02-27T23:50:06 | 2021-02-27T23:50:06 | 342,983,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!C:\Users\cavem\PycharmProjects\WebDevelopment\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"75807458+caveman0612@users.noreply.github.com"
] | 75807458+caveman0612@users.noreply.github.com |
1a0938d206faf11b1f4217e68e2e04ca14eee09a | 8405af8564ceab95f0e0361cff3d8fb7bb8df3c7 | /pyccel/ast/mathext.py | 46dfe6df6d3a331c89e148b607b0a0c68207f828 | [
"MIT"
] | permissive | MetaVai/pyccel | 891b78228cd3c1c87995a7ba6222c57b5d582f55 | 2c77f98d91cfc6b00cee881b8718ccb9c06072e1 | refs/heads/master | 2023-08-26T15:06:22.810219 | 2021-09-23T06:00:34 | 2021-09-23T06:00:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,689 | py | #------------------------------------------------------------------------------------------#
# This file is part of Pyccel which is released under MIT License. See the LICENSE file or #
# go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. #
#----------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
2df691e03048b0c0af2533b7324898f4e1754d64 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03804/s751492495.py | cb9208249e76e540c4b8a33202d935417cb92369 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | n, m = map(int,input().split())
a = [input() for _ in range(n)]
b = [input() for _ in range(m)]
for i in range(n - m + 1):
for j in range(n - m + 1):
for k in range(m):
#print(a[i+k][j:j+m], b[k])
if a[i+k][j:j+m] != b[k]:
break
else:
print('Yes')
exit()
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0e6ea5df9670701fc5cf2a4a3cf48003a12e73de | 9991d5e63917ca7a3457060f3d383344cad58c23 | /proj/polls/migrations/0007_auto_20201116_2353.py | 3752f0403771fe33eca305c75b9e8e3aa91e478c | [] | no_license | SadrikA78/SimpleDecision | f40326fdaf775202491b7292742cff0fc15ccf80 | e6d43f683bd9482df7c7450ce65d8cd7eb390665 | refs/heads/main | 2023-01-09T23:09:23.248625 | 2020-11-18T20:06:43 | 2020-11-18T20:06:43 | 313,880,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | # Generated by Django 2.1 on 2020-11-16 20:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0006_conkurs_criteria'),
]
operations = [
migrations.AlterField(
model_name='conkurs',
name='criteria',
... | [
"men.arty@yandex.ru"
] | men.arty@yandex.ru |
75ecc7d1b2fa59f883577bd379697ee9b13b6bd6 | ce07ccf78739a768971f393222fdca4a56315241 | /employee_management/employee_management/report/wallet_transaction_vivek_report/wallet_transaction_vivek_report.py | f1b2c22ab35a29b5703d75b0d2bdc844066d6ca5 | [
"MIT"
] | permissive | Gdinesh03/Frappe | 563e0ddbe925be536f65f925787ed321a6098c0d | efd2d1568b6f5b8a4e0ff31e06a415c717a3d32a | refs/heads/master | 2023-08-27T19:24:12.024442 | 2021-09-14T07:04:27 | 2021-09-14T07:04:27 | 406,260,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | # Copyright (c) 2013, Gopi and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
def execute(filters=None):
columns, data = [], []
if not filters: filters={}
columns=get_columns()
data=customer_report(filters)
return columns, data, None,
def get... | [
"vivekananthan112599@gmail.com"
] | vivekananthan112599@gmail.com |
12a1b931fe87388ed2b161d28078e635e2c8c56a | ef64680986e2edc49e838e06fa554dbeb4da8898 | /encoder_unet.py | d768a5baddfecaf9c056435a4402026de97f5275 | [] | no_license | VijayVignesh1/Image-Tampering-Localization | f9042319e7e916ce17d50690189c4bba320136c6 | dcb0518140d744c008b33d18c7e84789c70f4801 | refs/heads/master | 2021-07-10T00:38:31.583380 | 2020-11-08T15:21:25 | 2020-11-08T15:21:25 | 210,810,769 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | import torch
from torchvision.models import vgg16
from torch import nn
import torch.nn.functional as F
from unet_parts import *
class AverageMeter(object):
"""
Keeps track of most recent, average, sum, and count of a metric.
"""
def __init__(self):
self.reset()
def reset(self):
se... | [
"vijaydhonindia@gmail.com"
] | vijaydhonindia@gmail.com |
7b55ba72a7e44997d250b39a613597d3b9ed2694 | 895933d60a91640dd4b7187b3bb4c8cce45539b9 | /bokk/migrations/0003_user_password.py | 5b87dfdd70252f4dbf6709210d495fdcb37087e1 | [] | no_license | dinagouda/bokk | d9ca95c43039e0bcaf4edeb8b34f1951caf4ae8d | 77c26146e2cd5dc4f4ff0c9f74435a7557d36a68 | refs/heads/master | 2020-03-26T02:43:05.980881 | 2018-08-12T07:32:52 | 2018-08-12T07:32:52 | 144,421,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.0.7 on 2018-08-03 23:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bokk', '0002_book'),
]
operations = [
migrations.AddField(
model_name='user',
name='password',
field=mod... | [
"dinagouda1@gmail.com"
] | dinagouda1@gmail.com |
c282668f7035a2d887e38f1918af291fdbb5276e | 1c446064f4973832c266970aaa8acb986d3ffddd | /dataset.py | 7d2ee9d693ed9f936ce8e5a1e915ccab13887eef | [
"MIT"
] | permissive | arsenyinfo/tiger_keypoint_detection | db6d2eeb6cf460cb2b26a8bb7554867580cddffd | 5590ae9e68ea336b5eeb74777d6580d0b1e95af7 | refs/heads/master | 2020-06-26T20:07:49.116265 | 2020-05-08T07:53:38 | 2020-05-08T07:53:38 | 199,743,399 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,294 | py | import os
from copy import deepcopy
from functools import lru_cache
from typing import Callable, Collection, Optional
import cv2
import numpy as np
import ujson as json
from glog import logger
from torch.utils.data import Dataset
from tqdm import tqdm
import aug
def _read_img(x: str):
img = cv2.imread(x)
if... | [
"me@arseny.info"
] | me@arseny.info |
b805ffe03bd11e08ed1b0d50b24aeec9ca7382b2 | 0b5e10c34c1f69f1d06eca2d9aad7e8e2347e3af | /fundamental/calculator.py | f3b63b8c664f7f100f11e0c2f733e486f7c45068 | [] | no_license | intzzzero/python-practice | 5ec3eaa7db43f2c3c7629a6f920135b7d39c5cf2 | 5e53dfd056f74c6aebf0fef817cc76b462740149 | refs/heads/master | 2022-12-24T00:49:59.065397 | 2020-09-28T11:43:42 | 2020-09-28T11:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | def calculator(a, operator, b):
if type(a) != int or type(b) != int:
return "Please input only number."
if operator == "plus":
return a + b
if operator == "minus":
return a - b
if operator == "multiply":
return a * b
if operator == "division":
return a / b... | [
"code.ameba@gmail.com"
] | code.ameba@gmail.com |
82ba3fd7d3c8dcd9a1e0351bd94c388c06d779c4 | 876b629258e3752c7986807c48e7cf82c93832f0 | /python/mltraining/linear_regression/exponential_regression.py | 88c36dd208b692e775136988164f26600818f2d3 | [
"MIT"
] | permissive | imjoseangel/100-days-of-code | 45f736b0e529f504926faded6b3a18bc05719698 | bff90569033e2b02a56e893bd45727125962aeb3 | refs/heads/devel | 2022-05-02T16:10:59.273585 | 2022-03-20T12:19:05 | 2022-03-20T12:19:05 | 174,882,423 | 3 | 4 | MIT | 2022-03-20T12:19:06 | 2019-03-10T21:20:43 | HTML | UTF-8 | Python | false | false | 623 | py | import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from sklearn.datasets import make_regression
from sklearn.model_selection import train_test_split
# Create a data set for analysis
x, y = make_regression(n_samples=500, n_features=1, noise=25, random_state=0)
y = np.exp((y + abs(y.min())) / 75)
... | [
"noreply@github.com"
] | noreply@github.com |
f7bf941300150ec3c5222f1fe7f6f83ebb9d4017 | fa0131d192965eb55cdbe81345cfeecb5c64a0a9 | /views.py | 62174ace9dae04d769906783f6017d2708073fae | [] | no_license | ef-end-y/pid-server | 13a536f2de9f87f8150c14f48a1a005ed5a2cdad | 48605b8d83d469a794e3352d47f51fd00aac8123 | refs/heads/master | 2020-03-24T20:37:00.047383 | 2018-08-21T14:50:14 | 2018-08-21T14:50:14 | 142,987,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,774 | py | #! -*- coding: utf-8 -*-
import os
import json
import string
import random
import asyncio
from subprocess import Popen
from aiohttp import web
from settings import PROJECT_PATH, NOISE_BOUNDS, PAGES
def _make_html(body):
return PAGES['html'].format(body=body, css=PAGES['css'])
def _error(error):
return PAG... | [
"max.begemot@gmail.com"
] | max.begemot@gmail.com |
5786ff5db05e1a037adcdf5dbd0691f9aa780dc8 | 088c00d2b0fb60b00d8428c0a1a102b97aa960f1 | /src/dataset-annotation/convert_annotation.py | e56e08764b2775cd3ddd22887cbb616feaf9621a | [] | no_license | PhySketch/PhySketch | 3f59de8fe5a2c24b85e4c6667145d77f009ec42c | 72c29dec73419ffc6f9f1f583a18e7f58b1cb975 | refs/heads/master | 2018-09-22T19:52:30.988246 | 2018-05-14T20:27:45 | 2018-05-14T20:27:45 | 114,950,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | import os
from lxml import etree
import xml.etree.cElementTree as ET
import os
from croputils import *
from interpreters import *
from os.path import basename,dirname
import cv2 as cv
import numpy as np
#def write_xml(folder, img, objects, tl, br, savedir):
def write_xml(sample, savedir):
if not os.path.isdir(s... | [
"rafael.zulli0@gmail.com"
] | rafael.zulli0@gmail.com |
f92a78a4673598ed8bc786dc6baefb80168a4b07 | 8e00950a7f3f90d0dbb96699cc50920219f125a3 | /11_compiler_part2_code_generation/JackCompiler.py | 8cb77861ad54d4f16534ea4084d2375a44331658 | [] | no_license | xwzliang/nand2tetris | 91db8a4e0d1b2ec5243f8948b08352655e8ee3f7 | 23f99fde076c849aec5c44130dc5f0873dfd431b | refs/heads/master | 2020-05-01T09:50:43.941026 | 2019-08-24T03:24:57 | 2019-08-24T03:24:57 | 177,409,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/python3
import argparse
from pathlib import Path
from JackTokenizer import JackTokenizer
from CompilationEngine import CompilationEngine
def compile_jack(jackfile):
out_vm_file = jackfile.with_suffix('.vm')
# Tokenize
jack_tokenizer = JackTokenizer(jackfile)
tokens_with_tokenType = jack_t... | [
"18706703437@163.com"
] | 18706703437@163.com |
e7cbda1905f2767284a802d39f1d43f8379c4b72 | 1d1438094a2d4daf2577bb8e6b14b76d11bd2a3e | /ultrasonic.py | 27e286a3aa23cf166092475a6254204fc347de1a | [] | no_license | joebush905/Ultrasonic_Lab3 | 2d5745d7aca81cb6f5e91067d689685726860f61 | 1e0b704638b5790000d2374cd135033e22836638 | refs/heads/main | 2023-03-19T01:54:23.652108 | 2021-03-10T05:17:07 | 2021-03-10T05:17:07 | 346,239,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | import machine
from machine import Pin
import time
class HCSR04:
"""
A ``HCSR04`` object is used to control a HCSR04 ultrasonic sensor.
"""
def __init__(self, trigger_pin, echo_pin, echo_timeout_us=4000*2/(340.29*1e-3)):
"""
- trigger_pin: Output pin to send pulses
... | [
"noreply@github.com"
] | noreply@github.com |
8c853fb9a3d4490455aa94d70d2632b9b7e9f71e | 536538af28cfe40e10ff1ce469cd0f81e8b3a8fe | /populating_next_right_pointers_in_each_node_II.py | 4c6ade6a23ab25051cb6f92917848860ec9d358b | [] | no_license | ShunKaiZhang/LeetCode | 7e10bb4927ba8581a3a7dec39171eb821c258c34 | ede2a2e19f27ef4adf6e57d6692216b8990cf62b | refs/heads/master | 2021-09-01T07:41:03.255469 | 2017-12-25T19:22:18 | 2017-12-25T19:22:18 | 104,136,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # python3
# Follow up for problem "Populating Next Right Pointers in Each Node".
# What if the given tree could be any binary tree? Would your previous solution still work?
# Note:
# You may only use constant extra space.
# For example,
# Given the following binary tree,
# 1
# / \
# ... | [
"noreply@github.com"
] | noreply@github.com |
cd0815faeeac78bda64b41a980d1f14925e0f0e7 | 854b82c625e8f24af624663f9c1073a791996547 | /constart.py | 8c11839921dd36975f8ecd1f693e82513254d30d | [] | no_license | fangyuan2015/dockerscripts | 86ce2643a04b5687dc817a381690eaa8bbabd674 | 4d0ac0032fd29277c7b9425c3aa9008129c06893 | refs/heads/master | 2021-07-12T05:48:47.449463 | 2017-10-12T03:56:29 | 2017-10-12T03:56:29 | 106,638,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | #!/usr/bin/env python
#coding: utf-8
#description: start the containes
conlist = ['D-LD-MySQL-107','D-LD-RabbitMQ-105','D-LD-MySQL-106','D-LD-MySQL-103','D-LD-Redis-104','D-LD-Nginx-Tomcat-102','D-LD-MySQL-101','D-LD-Nginx-Tomcat-100']
for i in conlist:
docker start i
| [
"546219618@qq.com"
] | 546219618@qq.com |
dff30fcd28076ed38a5900ae38a8f1fee17e81e7 | 351b605bfc927174a76183c0dd2af0a9e7e6ba92 | /YZM_SX_5170/build/lib/YZM_SX_5170/spiders/spider_5170.py | f1595f76e0f2ed67516b3ba887f95f40a2989bbc | [] | no_license | jk123415/my_work_p2p | 4bb3018ae503b64f975726c6fd635f06070c9284 | 49ad0146733b9ff04335676ef9d89dba8a4daac0 | refs/heads/master | 2020-04-23T13:02:42.756300 | 2019-02-27T07:44:16 | 2019-02-27T07:44:16 | 171,189,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | # -*- coding: utf-8 -*-
import scrapy
import re
from scrapy_splash import SplashRequest
from scrapy.linkextractors import LinkExtractor
from YZM_SX_5170.items import YzmSx5170Item
from scrapy.loader import ItemLoader
lua_splash = '''
function main(splash, args)
assert(splash:go(args.url))
assert(splash:... | [
"289891598@qq.com"
] | 289891598@qq.com |
3a04d1e5959b648c3532b64363a191195898ead1 | 700da24fa0931064f17b281a558fea1f4ebf87b6 | /python3/数据库/python-mongo/demo.py | 55f08064f2a9f4b159ea252ebd102bfe9664dcd4 | [] | no_license | Fudeveloper/cezone | 2182ea6977cdc496c3e0fa778da84189f6b0b28b | 9ec5d00f7eba63625030c7e24513b59227a7f3b3 | refs/heads/master | 2021-08-23T07:15:43.468046 | 2017-12-04T03:07:55 | 2017-12-04T03:07:55 | 107,343,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import pymongo
client = pymongo.MongoClient('123.207.68.28',27017)
db = client.test
stu = db.stu
print( stu.find_one())
| [
"wo951127"
] | wo951127 |
a08efc9270faf2757c509b60d9a0e82b224e03ed | 68b2e8e2387a0da387b3f25aa168fa205358aa41 | /pgame/settings.py | 1bf767a5ec8f0946c155950c1a515194d137948d | [] | no_license | teodoryantcheff/django-pgame | 9471362f3f1bf69974a0614c6cd6068a5943b20c | be086a73c1525d96454574b64c0b395d6216fa09 | refs/heads/master | 2016-09-06T11:38:54.372964 | 2015-04-07T09:28:29 | 2015-04-07T09:28:29 | 32,735,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,742 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"teodor.yantchev@gmail.com"
] | teodor.yantchev@gmail.com |
7a190e07ebcd6540f99582f00f9779afe5ab9716 | ca308829e5e43619a736e98b00ae0297f57e3d5c | /tests/_rooster_tests.py | f6c83d3f756ce7c38854d20e10a9049a43066473 | [
"MIT",
"BSD-2-Clause"
] | permissive | aa1830/snipe | b4a151cf308004ca31243355a51457ba440360b9 | 5193ed31b43dc1b6eb5913966b8a7f0b1483642d | refs/heads/master | 2020-06-28T01:33:08.758403 | 2018-04-27T20:14:31 | 2018-04-27T20:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | #!/usr/bin/python3
# -*- encoding: utf-8 -*-
# Copyright © 2017 the Snipe contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above... | [
"kcr@1ts.org"
] | kcr@1ts.org |
92f0dfc49adac41bb1616eaa74f4c6db3e219245 | 566e531e17dbff7a24fcbc12d0653746486b529d | /accounts/permission.py | 4721e35c46b2f0391b3aa1601563d961e501ee85 | [
"Apache-2.0"
] | permissive | zhixingchou/adminset_note | 1cc831b78374445d73b676239e01568dfac4239d | fd54b77abbdd0cf7ee6107713a4625f05536bc83 | refs/heads/master | 2021-08-28T15:06:30.475052 | 2017-12-12T14:44:51 | 2017-12-12T14:44:51 | 110,911,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from forms import PermissionListForm
from models import UserInfo, RoleList, PermissionList... | [
"376616017@qq.com"
] | 376616017@qq.com |
864b47b461ce61716749f79288c2a38ef0d853c7 | 10b5d73b4d53a15134fff6560156e5195963a25d | /tests/test_plan.py | 09726946b398601a6f4a9972341cc496513d28e4 | [] | no_license | tonyguesswho/Licencing-System | d7bb859016f59908f55a2443d8ee62b40756c7f1 | 27c80d29fcdb3b627df33370257b4362607345e8 | refs/heads/master | 2020-07-04T07:16:00.320238 | 2019-08-13T18:15:43 | 2019-08-13T21:47:34 | 202,199,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | import unittest
from plan import Plan
from user import User
from subscription import Subscription
from app import single_plan, plus_plan
from utils.db import database
class PlanTest(unittest.TestCase):
def setUp(self):
self.user = User('Tony', 'Tony@test.com', 'password')
self.plan = single_plan
... | [
"anthonyugwu234@gmail.com"
] | anthonyugwu234@gmail.com |
f6f541ec90ad984a9a442a5e9f0e78196c722632 | 7e8957d96835f345928c7abc50efaa52d8aa297e | /cross_val/models/single_rnn.py | 5dcb4b9179a27bcadb3accd15ebc8472453d98c9 | [] | no_license | siddk/py-amdp | b5520bf020e9ac6b770dcb2912777b3bf1839b5f | eea602f4cefa973093ea66192003c0ab8d5021c7 | refs/heads/master | 2020-06-18T08:59:27.728001 | 2017-01-30T04:24:15 | 2017-01-30T04:24:15 | 75,148,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,844 | py | """
single_rnn.py
Single model with an recurrent neural network encoder.
"""
import numpy as np
import tensorflow as tf
PAD, PAD_ID = "<<PAD>>", 0
UNK, UNK_ID = "<<UNK>>", 1
class RNNClassifier():
def __init__(self, parallel_corpus, commands, embedding_size=30, rnn_size=50, h1_size=60,
h2_size=... | [
"sidd.karamcheti@gmail.com"
] | sidd.karamcheti@gmail.com |
553d3324e43a93edb0d8a9b76b87318c51aa25f5 | 0a30b4fee1d176e98af455c2b3ae6889d5457fa9 | /simple_download.py | 750de0fd246f7fc50efbf17566abce0da5ec2131 | [] | no_license | keeperzdl/python-kafka | 5db0a611bd93f733adc6f71093d8c425310eacc0 | 3b816fa770b769c23fc8fc81ec79d915dab36a31 | refs/heads/master | 2020-04-01T23:06:02.625359 | 2018-10-19T07:17:59 | 2018-10-19T07:17:59 | 153,741,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | #!/usr/bin/python
# coding:utf-8
from kafka import KafkaConsumer
import json
import requests
import os
TOPIC = "PREPROCESS_RESULT_QUEUE" #取数据的topic(类似于队列)
GROUP_ID = "group_test1" #用于标识数据的消费者,相同的group_id会共取同一份数据,如果需要完整数据建议group_id不要与其他人重复(建议使用身份证号或者工号)
BOOTSTRAP_SERVERS ... | [
"zdl1993java@hotmail.com"
] | zdl1993java@hotmail.com |
1ed500d2092c41452a46ad59d7b79b34563f3689 | 72a9d5019a6cc57849463fc315eeb0f70292eac8 | /Python-Programming/1- Data_Type/Data_type.py | dbd356e19b44c537485ec8d44ca7bc376d8d3e93 | [] | no_license | lydiawawa/Machine-Learning | 393ce0713d3fd765c8aa996a1efc9f1290b7ecf1 | 57389cfa03a3fc80dc30a18091629348f0e17a33 | refs/heads/master | 2020-03-24T07:53:53.466875 | 2018-07-22T23:01:42 | 2018-07-22T23:01:42 | 142,578,611 | 1 | 0 | null | 2018-07-27T13:08:47 | 2018-07-27T13:08:47 | null | UTF-8 | Python | false | false | 2,269 | py | # %%%%%%%%%%%%% Python %%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%% Authors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# Dr. Martin Hagan----->Email: mhagan@okstate.edu
# Dr. Amir Jafari------>Email: amir.h.jafari@okstate.edu
# %%%%%%%%%%%%% Date:
# V1 Jan - 01 - 2017
# V2 Sep - 29 - 2017
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... | [
"amir.h.jafari@okstate.edu"
] | amir.h.jafari@okstate.edu |
bcda8b3fb2753686af4c92fd22382a4a618ae309 | 330dadc7391a55418f62503ca3ab2dea7ede5c68 | /GaussianCreator.py | e74bbedaa7d3e94c6ea9dade5f2713177e6d8e2c | [] | no_license | Manuelms1993/Preprocessing-images-using-genetic-algorithms-for-detect-new-astrophysics-objects-with-GAIA | 4195d8b734ae10d03aec0c13449be784e34094aa | dd4e762b0bcb872df7ded86d62116d0583d4fadd | refs/heads/master | 2021-08-19T00:04:01.273801 | 2017-11-24T08:32:38 | 2017-11-24T08:32:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import numpy as np
size = 40
def createGaussian(MaxValue, fwhm, xoffset, yoffset, xFactor, yFactor, reductionFactor):
x0 = (size / 2) + xoffset
y0 = (size / 2) + yoffset
x = np.arange(0, size, 1, float)
y = x[:,np.newaxis]
star = MaxValue * np.exp(reductionFactor *
... | [
"manuelms1993@gmail.com"
] | manuelms1993@gmail.com |
876db4024622ab9e6cf55ec0a178e9750eab7ad6 | c812ee3323cb5fd739bd6262385f1830bd5bbf84 | /app.py | 39aa34dee313f1ccf26a8c7938e44fe56c3fb209 | [] | no_license | muhadyan/Ujian_Pokemon_Recommendation | c20174dc2682f23dc9fbf5f00889beeabee12e6e | c2d9abf634a8a77d88cb00314f933b029dc25dac | refs/heads/master | 2021-01-02T02:59:56.694279 | 2020-02-10T08:30:58 | 2020-02-10T08:30:58 | 239,462,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from flask import Flask, render_template, request
import requests
import saveModel as sm
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/hasil', methods = ['POST', 'GET'])
def hasil():
if request.method == 'POST':
input = request.form
indexSu... | [
"madyanr@gmail.com"
] | madyanr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.