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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3c17e681dcb517d40f95f7b4860dbaa8c62f4604 | 2bc521400d409e98f534369ab683e483b0337ae5 | /ghost_in_the_shellcode/15/knockers/knockers.py | 0bd2c650ecd2c63e63e91a4464694cbb2a46802d | [] | no_license | unjambonakap/ctf | cd71c8e774dab7dcdffbc6f87a1961adc43921bb | c5cacf7bcfe451ba019eb73eb36faadff512186a | refs/heads/master | 2021-06-30T18:06:23.058257 | 2019-06-05T20:03:57 | 2019-06-05T20:03:57 | 145,031,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | # python2 please
import sys
import struct
import hashlib
import os
from binascii import hexlify, unhexlify
import SocketServer
import socket
try:
from fw import allow
except ImportError:
def allow(ip,port):
print 'allowing host ' + ip + ' on port ' + str(port)
PORT = 8008
g_h = hashlib.sha512
g_key = None
def ... | [
"benoit@uuu.com"
] | benoit@uuu.com |
04e946ccf600a67f0ca1350af80d3c6ad486088e | 52583f5f74c8235e379fbe694279ecf168f79508 | /src/python_api/packages/utilities/utilities/transformations.py | e022be98a98d7af58464bd50bf7466ac21944fe4 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | padmassun/OpenVSP | b53dff1ad199bd9e5ed2f244ec4c606cdab135df | 36343702ef04720472237810e7dad3e4b9cb2a4b | refs/heads/master | 2020-05-22T20:09:21.003499 | 2019-08-26T00:42:56 | 2019-08-26T00:42:56 | 186,505,530 | 0 | 0 | NOASSERTION | 2019-08-26T00:45:37 | 2019-05-13T22:40:42 | C++ | UTF-8 | Python | false | false | 7,680 | py | # Copyright (c) 2018 Uber Technologies, Inc.
# 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, modify, merge, publi... | [
"rob.mcdonald@uber.com"
] | rob.mcdonald@uber.com |
891131987930169977089ef3876a01ab735f4942 | a3e34daf7cf75f98d54b7d183f68e50277a6479b | /sources/XML projects/IBN EZRA/parse.py | 71b51b7d8f32ca018977270a23b497b3c19866af | [] | no_license | TomaszWaszczyk/Sefaria-Data | 2d0f1544c071340bffd87585e6883ef77df41495 | db2e136a14c6d08d98925da3afdf6373fec92de1 | refs/heads/master | 2023-06-07T07:56:24.332834 | 2021-06-20T15:53:56 | 2021-06-20T15:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | # -*- coding: utf-8 -*-
__author__ = 'stevenkaplan'
from sources.functions import *
from sefaria.model import *
from data_utilities.XML_to_JaggedArray import XML_to_JaggedArray
from sefaria.helper.schema import *
import bleach
SERVER = "https://ste.cauldron.sefaria.org"
def reorder_modify(text):
return bleach.cl... | [
"steve@sefaria.org"
] | steve@sefaria.org |
55d30383a63cac48bea64881587df8fccd82f7ca | 8cca75721733ed0e8a366ffb69f559158db93cbe | /python/tests/test_Quick_sort.py | dbb9881166a3c4d8e907fa552f578c54ab6d8d6e | [
"MIT"
] | permissive | Leenhazaimeh/data-structures-and-algorithms-2 | 4dbd7ca627b4d4f4ef893712ff7f7c220b3fc8d2 | b22b3613f376044cb760d7761da4d34af59e8d02 | refs/heads/main | 2023-06-10T06:45:49.295059 | 2021-06-28T20:09:20 | 2021-06-28T20:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from code_challenges.Quick_sort.Quick_sort import *
def test_Quick_Sort():
assert QuickSort([8,4,23,42,16,15],0,5) == [4, 8, 15, 16, 23, 42]
assert QuickSort([20,18,12,8,5,-2],0,5) == [-2, 5, 8, 12, 18, 20] #Reverse-Sorted
assert QuickSort([5,12,7,5,5,7],0,5) == [5, 5, 5, 7, 7, 12] #Few uniques
assert... | [
"nmalquran15@eng.just.edu.jo"
] | nmalquran15@eng.just.edu.jo |
fcd2a90d096659c658dd91d5e19cef8fe25154af | 8f3300919deeb355e991c0cd351ee37f2ac45f79 | /Classification/characterisation.py | a45e2fdc329e60af9abd1a2d41a510cf5aacf70f | [] | no_license | Saramounata/Python_Case_Studies | 3fcfa72741e58416297846a3b423aaf17e1a52d8 | 535970f5d6fdf10b7f70c04b249fdba84317c3a2 | refs/heads/master | 2021-09-24T02:08:49.139684 | 2018-10-01T19:12:57 | 2018-10-01T19:12:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 26 11:54:02 2018
@author: The Capricorn
"""
import numpy as np
def distance(p1,p2):
return np.sqrt(np.sum(np.power(p2-p1,2)))
p1 = np.array([1,2])
p2 = np.array([5,6])
distance(p1,p2)
import random
def majority_vote(votes):
"""
Returns the most ... | [
"shivang31k@gmail.com"
] | shivang31k@gmail.com |
e6265d295615293256a409e7286b429a02cc5609 | 61747f324eaa757f3365fd7bf5ddd53ea0db47d1 | /casepro/contacts/migrations/0001_initial.py | 6d0a371e168bc8f557ce07d0e5145cb99d59cf58 | [
"BSD-3-Clause"
] | permissive | BlueRidgeLabs/casepro | f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12 | 8ef509326f3dfa80bb44beae00b60cc6c4ac7a24 | refs/heads/master | 2022-01-24T09:01:18.881548 | 2017-12-05T18:46:05 | 2017-12-05T18:49:42 | 113,502,588 | 0 | 0 | null | 2017-12-07T21:57:37 | 2017-12-07T21:57:37 | null | UTF-8 | Python | false | false | 3,306 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orgs', '0014_auto_20150722_1419'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
64950ad2e5069ab3a5e13232117f0044387a64aa | 67f7a11ce00637637704e537ae80551989161b3b | /NCBI/misc/proxy.py | 6f057bbc37695243d04f72c9e32b9b3a2a639d63 | [] | no_license | similarface/spiders | ff006d72c6267e22c6340b580460bb1a7944e10e | 6307b60fcde3cf36b706d69d3e99d5d81f68a381 | refs/heads/master | 2021-01-10T03:20:43.400574 | 2016-08-18T02:22:44 | 2016-08-18T02:22:44 | 50,632,255 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | '''
This proxy is goagent/wallproxy
If you want to disable it, plz configure settings.py
'''
PROXIES = [
#{"ip_port": "127.0.0.1:8087"}, #goagent
#{"ip_port": "127.0.0.1:8118"}, #tor via privoxy
{"ip_port": "43.245.202.120:8080"}, #tor via privoxy
]
FREE_PROXIES = [
{"ip_port": "181.48.0.173:8081"},
{"ip_p... | [
"similarface@outlook.com"
] | similarface@outlook.com |
d1de944f71e0ff37476071f7eb2400ef4bf5ca6e | d4e9fd6dd51d29ad374b460a2cfbd467502ede7d | /ros2doctor/test/test_qos_compatibility.py | cb21bedba5e8d26abe78afc768015c3139e5efed | [
"Apache-2.0"
] | permissive | ros2/ros2cli | 3f7b93ff44d18b2292a50d3b6ff119494142328b | 351ef3c7442f49013d84084dea23fe399517690f | refs/heads/rolling | 2023-08-07T03:53:23.635067 | 2023-08-03T19:50:28 | 2023-08-03T19:50:28 | 93,568,427 | 142 | 157 | Apache-2.0 | 2023-09-14T07:36:46 | 2017-06-06T22:13:14 | Python | UTF-8 | Python | false | false | 6,588 | py | # Copyright 2021 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | noreply@github.com |
5251cedbb34cd62908c56b69d6e4479ce7c716a3 | a88658ea37744a3f3c7f34f9df4689523e81f9e3 | /scripts/examples/03-Drawing/image_drawing.py | 1c30fde49808c196063e3ba6407c8641ef87d4e2 | [
"MIT"
] | permissive | luuvt/openmv | ad7d559cf0a0ba3d1e3d1163ae0105c3d8efe29b | 1608a2a2f46220c0219abca1982dab80154fc21a | refs/heads/master | 2020-03-28T16:07:13.552279 | 2018-09-10T23:08:10 | 2018-09-10T23:08:10 | 148,661,405 | 1 | 0 | MIT | 2018-09-13T15:48:26 | 2018-09-13T15:48:25 | null | UTF-8 | Python | false | false | 707 | py | # Draw Image Example
#
# This example shows off how to draw images in the frame buffer.
import sensor, image, time, pyb
sensor.reset()
sensor.set_pixformat(sensor.RGB565) # or GRAYSCALE...
sensor.set_framesize(sensor.QVGA) # or QQVGA...
sensor.skip_frames(time = 2000)
clock = time.clock()
while(True):
clock.tick... | [
"kwagyeman@live.com"
] | kwagyeman@live.com |
2c085500970f36b865099032aff1e41226a61a6b | 80f7a9b68e3ea4ebe5023078d959fe0aef6eb7eb | /src/util/utils.py | f72d81a59c8b8dc7875de7cc95fb4147afde52f0 | [
"MIT"
] | permissive | rileymblaylock/bow_mnb | ada9ea9a4236d71e14c275d6c3499bbe607bf533 | ecb693739ab23aafb4257f9448c06cc880bc52b2 | refs/heads/master | 2023-08-16T08:29:45.563138 | 2021-09-30T16:10:49 | 2021-09-30T16:10:49 | 309,442,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | import math
def tfidf_calc(wordPerCat, numDocsWithTerm, totalDocs):
for i in wordPerCat:
for key, value in wordPerCat[i].items():
deted = int(numDocsWithTerm[key])
wordPerCat[i][key] = float(float(wordPerCat[i][key]) * (math.log(totalDocs/deted)))
return wordPerCat
def prior_pr... | [
"rileyblaylock98@gmail.com"
] | rileyblaylock98@gmail.com |
18fb17af409f97ed167b846844ae8a2a6a13fed0 | e2315b7292c050cba559dbe3d11bf862da87d11d | /04 - scrapy/04-spider-onu/arania_onu/arania_onu/middlewares.py | 71125548b30511673015f023ea55d9609c55a5d3 | [] | no_license | 2020-A-Python-GR1/py-eguez-sarzosa-vicente-adrian | b2c58e3c26d8c50c95c6d940f1816981249c81bb | 6d8620efa169b30473d27efc42e03737872cd857 | refs/heads/master | 2022-12-07T03:32:57.293578 | 2020-09-08T13:38:53 | 2020-09-08T13:38:53 | 268,805,046 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class AraniaOnuSpiderMiddleware:
... | [
"eadepto@hotmail.com"
] | eadepto@hotmail.com |
71cfbf8a60c7c3ba6f029a3dbb93bebf0062f36d | 99a83749bc5976d78acb2eaa43139662a52629d4 | /msked/placements/utils_old.py | 73ea061533d9d83cf90c722c21b3c623905a9774 | [] | no_license | tommydangerous/msked | 16856ca484a98f0aa5785bc37355c33b436c6c37 | 681f48c386da17da64abbb24565efcce4cc0f10d | refs/heads/master | 2020-04-16T15:15:57.992175 | 2013-11-07T06:37:16 | 2013-11-07T06:37:16 | 8,272,061 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,445 | py | from collections import defaultdict
from django.conf import settings
from django.db.models import Q
from employees.models import Employee
from employees.utils import tier_lab_sum, tier_lab_balance_check
from random import shuffle
from tasks.utils import task_check
from undos.models import Undo
from works.utils ... | [
"quantumventuress@gmail.com"
] | quantumventuress@gmail.com |
37ea5d21cf46f1071f6f2a7d932104aed8acbb13 | a7ababeb15ff93f8bd5c54edbd271711af21d756 | /Tpcftools_plot2.py | 2e3c32c2460c9b713a5432fa5b687b550c3f9e0f | [] | no_license | xiaodongli1986/pythonlib | cfd3c0b5493c2df37b8b85708fa64a4d54c9d907 | 8df18ba39f85826f6919a3df090d36e4f511847d | refs/heads/master | 2022-05-01T09:52:59.983209 | 2022-04-01T07:44:23 | 2022-04-01T07:44:23 | 36,488,428 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 26,669 | py | def smu__plot(filename, smax=50, numsbin=50, nummubin=120,
isMAX=None,
is_sig_pi=False,
deltais = 2,
no_s_sq_in_y = False,
savefig=True,
<<<<<<< HEAD
DDcol=4, DRcol=5, RRcol=6,
=======
DDcol=4,DRcol=5,RRcol=6,
readnorm=False,
#DDlist=[], DRlis... | [
"xiaodongli@kias.re.kr"
] | xiaodongli@kias.re.kr |
94eb2bd7fc01cbf6eeece6c37137fb3c3c981636 | 73877d5b3fe7be808ff80bc8d96a5fdc322c0614 | /mnist/mnist.py | 5967091406345fecb5f64eee293aa9f991b61d25 | [] | no_license | upTina/mxnet | ecf42c22b1ca5612f6a6f2a3decc68ca3ae0acd8 | 68aab18493b4b930785e684cab7e134bdb949ea4 | refs/heads/master | 2021-08-24T05:10:43.979987 | 2017-12-08T04:32:07 | 2017-12-08T04:32:07 | 112,576,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import numpy as np
import os,sys
import mxnet as mx
import gzip
import struct
import logging
def read_data(label_url, image_url):
with gzip.open(label_url) as flbl:
magic, num = struct.unpack(">II", flbl.read(8))
label = np.fromstring(flbl.read(), dtype = np.int8)
with gzip.open(image_url, 'rb') as fimg:
magi... | [
"1226141677@qq.com"
] | 1226141677@qq.com |
40373cc38d939ffbf1504c5ba1a166db2599157e | 141f514e0b86bb9f836eba410a6383f870647db1 | /first_project/first_project/settings.py | d6479a8a5acb5ed383f1a8f6b7d639eaa1912383 | [] | no_license | anvarudheen/first_project | 3e0319268e92643e538cfbe71f9ead14505bc759 | 0fb77223ac14fcc38fc855f66bad9fea07489fba | refs/heads/master | 2020-09-11T12:10:43.046184 | 2019-11-16T07:14:04 | 2019-11-16T07:14:04 | 222,059,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for first_project project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"anvarudheen@gmail.com"
] | anvarudheen@gmail.com |
3d9fabb20612a4a28c9dd6172949c6e3068e7b92 | c004fbafbc8c78e4c825f8183d9d70597f9bac8e | /venv/Scripts/pip3-script.py | 61c922b63ba5ee3ce34d43445af6a44533602957 | [] | no_license | vectorhuztt/backstage_back | 3de4d69003d4a8b161d20f3e35a2e0bd10bdf7e6 | ca704e75d5069bc4d1d8ea5a3f13a94fe91c820b | refs/heads/master | 2022-12-13T02:34:46.617296 | 2020-04-23T03:12:37 | 2020-04-23T03:12:37 | 254,113,925 | 0 | 0 | null | 2022-12-08T09:38:25 | 2020-04-08T14:39:19 | Python | UTF-8 | Python | false | false | 415 | py | #!E:\MyStudyPro\django_file\backstage_back\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"vectorztt@163.com"
] | vectorztt@163.com |
8e5dab39723154320a9fa75bca4ca7e01d6cffd6 | c5a287dd3fc3ba0c92ff53cc846c0ff7dd161a53 | /CursoEmVideo/074_randTup.py | aa0dad653b4ddba36b3f64adcdc807394e3ff186 | [] | no_license | lanhybrid/Python_Basics | 4ccc5cd65f307ef8b8573a569ea088608af5e236 | aa28ab24a1fd6eb257b8216d1e2fae003680e2d6 | refs/heads/master | 2023-05-31T03:18:40.019642 | 2021-07-08T21:23:24 | 2021-07-08T21:23:24 | 367,479,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from random import randint
sort = randint(0, 100), randint(0, 100), randint(0,100),\
randint(0, 100), randint(0, 100)
maior = menor = count = 0
print(f'Valores sorteados: ', end='')
for n in sort:
print(n, end=' ')
# if count == 0:
# maior = menor = n
# else:
# if n > maior:
# ... | [
"lan.mascarin@gmail.com"
] | lan.mascarin@gmail.com |
42262be31f9c9c5961d6f718490d0a8e36264f3f | 52f8ac63714421e1930d7b90cb8200bb24d6ac42 | /milove/shop/migrations/0011_auto_20170914_1954.py | a24d6b8e68833b9780ce5f3322a7f656ff9f7926 | [] | no_license | richardchien/milove-backend | ccc7afa17e88b17199ad3878b9315e12c2af8ef1 | 0310f2a60ebcbc3143d0aedcc6cb5842ba264a43 | refs/heads/master | 2023-07-06T12:45:13.622032 | 2017-10-02T04:40:00 | 2017-10-02T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-14 11:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('shop', '0010_auto_20170911_1831'),
]
operations = ... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
939ec31f3e0fa57471e3306e7905d5df47db0325 | 6932cf540d9e41556bf523f7be034e5307ac8586 | /src/main/python/BFHash.py | acc66340e535eac9d42800046ba39b827a63c5cc | [] | no_license | ligson/rmsscripts | 68bc15f35458146f8cdb139f3f9a2932fa9afbde | da9072edb51c52997eca74512e7904ea9d566491 | refs/heads/master | 2020-05-18T05:22:46.256074 | 2015-09-16T02:13:35 | 2015-09-16T02:13:35 | 42,558,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | # coding=utf-8
import hashlib
import os
import sys
def intToBytes(value):
buf2 = []
buf2.append(value >> 56 & 0xFF)
buf2.append(value >> 48 & 0xFF)
buf2.append(value >> 40 & 0xFF)
buf2.append(value >> 32 & 0xFF)
buf2.append(value >> 24 & 0xFF)
buf2.append(value >> 16 & 0xFF)
buf2.appen... | [
"593949938@qq.com"
] | 593949938@qq.com |
3436a89d6631a6f7fa0055e2a2d11612381d0cbd | 0a0e78a1e0e9fe014f2e56d615d8caf0ab38f98e | /basic_example.py | 0480c9924d8a0887e8b5148d71e2511bfbbd09c4 | [] | no_license | Kadam-Rutuja/Exception_Handling_and_String_Formats_in_python | 997110eda4223471a28ff259d7a7daef85b3d19c | b91c4518e887a3f0acaea7427c226d0be277b86d | refs/heads/main | 2023-04-26T15:11:58.774022 | 2021-05-19T12:06:45 | 2021-05-19T12:06:45 | 368,841,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | try: #try block is use to test a block of code for errors
print(i+j)
except: #except block use to handle the error
print("Value not defined")
print("hello from python")
| [
"71829514+Kadamrutuja1@users.noreply.github.com"
] | 71829514+Kadamrutuja1@users.noreply.github.com |
796b55262c5939d604def2ffdc5807697e8ce051 | 26eb818572061109b55e498ab4f123a4ff9b9499 | /Stochastic_Evolutionary_Game/Stochastic_Game_Nowak_Code/Prisoners_Dilemma_Game/Matlab_Version/data.py | 80b1c7a3ca6a564a7c4dd0b6db60554e709bee0a | [] | no_license | Dcomplexity/Researches | 550e49b5a5951dca11df062aae1f86e2c12945c5 | 4eb55e2550970223c2f4006d289d8f4ba70a611a | refs/heads/master | 2022-04-04T02:13:56.976901 | 2020-02-01T14:34:44 | 2020-02-01T14:34:44 | 147,739,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | import pylab
import scipy.io as scio
data = scio.loadmat('Coop_Time')
coopS = data['ans'][0]
coop1 = data['ans'][1]
coop2 = data['ans'][2]
pylab.figure()
pylab.title('Cooperation Rate with Time')
pylab.xlabel('Time')
pylab.ylabel('Cooperation Fraction')
pylab.plot(coopS, 'k')
pylab.plot(coop1, 'r')
pylab.plot(coop2,... | [
"cdengcnc@sjtu.edu.cn"
] | cdengcnc@sjtu.edu.cn |
fd9217903aaa09d9a108a5ec27771d9663a7bf99 | cfd6790f7b601f19f8d0a1fae06fb332d72934a2 | /improvv/wsgi.py | d93cb8bd32b3d09496007eb498c7104e0671645b | [] | no_license | funactuator/improvv | 7736bbfc3a00e3fe5bfe41a3a1dc4f4980439451 | ca8db253841bd2dec70bf195eaec0c1958b25ab4 | refs/heads/master | 2023-08-24T17:06:26.937447 | 2021-10-26T17:32:36 | 2021-10-26T17:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for improvv 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"kuldeep,msvm@gmail.com"
] | kuldeep,msvm@gmail.com |
bd76e213dedbabc7a88303f04e7f31b3508f97c4 | 2bd3967f9dc2cab5071a1190d448be2c2ef4e780 | /bookmark/serializers.py | 76cf668f4485565065f4f2c51a2ef7bdda5c9a5d | [] | no_license | yibeihaifeng/DRSproject | bf9641e7d5b61c7ca83c56214ea14989c798459d | 32844389f322bbd7dde71372701f0653c1578011 | refs/heads/master | 2020-08-19T19:36:15.094917 | 2019-10-18T05:39:59 | 2019-10-18T05:39:59 | 215,947,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | '''
定义一个序列化器
'''
from rest_framework import serializers
from .models import BookInfo
class BookInfoSerializer(serializers.ModelSerializer):
'''
书籍 数据序列化器
serializer不是只能为数据库模型类定义,也可以为非数据库模型类的数据定义。serializer是独立于数据库之外的存在。
'''
title = serializers.CharField(max_length=50)
content = serializers.C... | [
"13598883163@163.com"
] | 13598883163@163.com |
63e3cad549c027b04f4f2aeabb6948e59f1936fe | 15de7f67ac019324d99076906e7864e2b3d52218 | /Part 3/Ch1.py | c6c9fd87d0c1035be6d4c4b6f26a3055489bf39b | [] | no_license | ankiwoong/Web_Scraping_in_Python | df97aebc36b43d125f5d4ff55ab47cd114656c51 | dcc0950ee7fb5e4b9acaec581a2fcd590d27bb4a | refs/heads/master | 2022-12-03T07:58:38.626717 | 2020-08-30T02:37:13 | 2020-08-30T02:37:13 | 289,597,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import mechanicalsoup
browser = mechanicalsoup.Browser()
# browser() 객체는 head가 없는 웹 브라우저를 나타낸다.
# URL을 .get() 메소드에 전달하여 인터넷에서 페이지를 요청할 수 있다.
url = "http://olympus.realpython.org/login"
page = browser.get(url)
# 출력
print(page)
# MechanicalSoup은 요청에서 HTML을 구문 분석하기 위해 Beautiful Soup을 사용한다.
# 페이지에는 BeautifulSoup 개체를 나타... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
d2ff44c7f4f8ddc697ff528d785f404eda63cd11 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/echomesh/base/Path.py | f72ecbc1483d9983735ec38c6681592f9d32e01b | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.base import MakeEmptyProject
from echomesh.base import Platform
import getpass
import os
import os.path
import sys
ECHOMESH_EXTERNALS_OVERRIDE_SYSTEM_PACKAGES = True
# If this is True, you want Echomesh to use its own ex... | [
"tom@swirly.com"
] | tom@swirly.com |
4b6cbd25b8649a1363aba2a0743f9bef3b0bf588 | 6b6bd222658ab11b51afc27d507abf4ef7d8e57b | /chapter6/kmeans.py | 72b173ecb14ac98ea75d4c245148844914a34c87 | [] | no_license | JessicaFeng0926/classic_computer_science_problems | 2347851f051e6e2afb2340258d5bf2d0a20e1571 | 68e44f4569a774553b763685050101357124d4a5 | refs/heads/master | 2022-11-13T16:29:45.396010 | 2020-07-08T02:11:04 | 2020-07-08T02:11:04 | 274,041,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,792 | py | from __future__ import annotations
from typing import TypeVar, Generic, List, Sequence, Optional
from copy import deepcopy
from functools import partial
from random import uniform
from statistics import mean, pstdev
from dataclasses import dataclass
from data_point import DataPoint
def zscores(original: Seq... | [
"hasayake.hi@163.com"
] | hasayake.hi@163.com |
c484c984aa678a25c17ee8984e4c160b9abfbc25 | feea5b7e71dbcc491dc9fe9b1686b5c13949369e | /mods/channels/__init__.py | 21139372dfe1438fafc7a060196c47bd3261c615 | [] | no_license | IsmaelRLG/UserBot | 232660971f98db1838263f821f40f0c879f00030 | 1ed21d0c0274c022b0de66ecc48547d9dab8be2b | refs/heads/master | 2021-01-17T07:08:13.342496 | 2016-03-11T19:08:30 | 2016-03-11T19:08:30 | 39,799,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding: utf-8 -*-
"""
UserBot module
Copyright 2015, Ismael R. Lugo G.
"""
import channels
reload(channels)
from sysb import commands
from channels import lang
from channels import _
commands.addHandler('channels', 'chan register( (?P<channel>[^ ]+))?', {
'sintax': 'chan register <channel>?',
'example... | [
"ismaelrlgv@gmail.com"
] | ismaelrlgv@gmail.com |
38b4d90fe79dceeac78c45f1b1931845c7c16df1 | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-barbicanclient-4.2.0/functionaltests/cli/v1/behaviors/secret_behaviors.py | 783db8bcdceadd3bb8c49600d77926bb52b65eca | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 4,527 | py | # Copyright (c) 2015 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
07ffac3ce1e2a9ef29d17775d50bc2c6979df431 | 3f6c16ea158a8fb4318b8f069156f1c8d5cff576 | /.PyCharm2019.1/system/python_stubs/1707563220/resource.py | cfb221481b898c344ab21274ba2bd7f905e9409f | [] | no_license | sarthak-patidar/dotfiles | 08494170d2c0fedc0bbe719cc7c60263ce6fd095 | b62cd46f3491fd3f50c704f0255730af682d1f80 | refs/heads/master | 2020-06-28T23:42:17.236273 | 2019-10-01T13:56:27 | 2019-10-01T13:56:27 | 200,369,900 | 0 | 0 | null | 2019-08-03T12:56:33 | 2019-08-03T11:53:29 | Shell | UTF-8 | Python | false | false | 5,485 | py | # encoding: utf-8
# module resource
# from /usr/lib/python3.6/lib-dynload/resource.cpython-36m-x86_64-linux-gnu.so
# by generator 1.147
# no doc
# no imports
# Variables with simple values
RLIMIT_AS = 9
RLIMIT_CORE = 4
RLIMIT_CPU = 0
RLIMIT_DATA = 2
RLIMIT_FSIZE = 1
RLIMIT_MEMLOCK = 8
RLIMIT_MSGQUEUE = 12
RLIMIT_NICE... | [
"sarthakpatidar15@gmail.com"
] | sarthakpatidar15@gmail.com |
98ad88da7ca6e832b6127bd26bb166a172b9af56 | a48e3265a9d6ead2f525e6277cd5d8e3ad7ee45b | /Asyncio_rmq/Asyncio_rmq/asyncio_rmq.py | 74aec95b14bf78d5e8c462b61a06959a97c55d18 | [] | no_license | andrewvanderbyl/python_scratchpad | bda76466c55d9173a93de1bdcd0ef48d7c29f26d | 9b73205b23a83e338f4a9f54d38ace0169ec086b | refs/heads/main | 2023-06-29T00:55:47.605507 | 2021-07-29T13:57:52 | 2021-07-29T13:57:52 | 372,766,663 | 0 | 0 | null | 2021-07-29T13:57:52 | 2021-06-01T09:04:04 | Python | UTF-8 | Python | false | false | 9,054 | py | """
Asyncio with RabbitMQ.
Parameters
----------
role (-role or -r): string
Role for the instance to play.
Option 1: "start"
Option 2: "listen"
exchange (-exchange or -e): string
Name for the RabbitMQ exchange. Can be left as default.
delay(-delay or -d): integer
Delay (in seconds) that can be ap... | [
"avanderbyl@ska.ac.za"
] | avanderbyl@ska.ac.za |
52f6dc6d3e5b8dfa2bd235826a3d541b10dc3167 | e4b2ef5734175d0ca5bf109b18e0f43943686903 | /bookManagePj/gui/lab1_graphic.py | 130c8649607317285e2cf3bf2c922ef2fa806468 | [] | no_license | jungaSeo/python_pj1 | a23659eb42ac7391ab3d9c22eec79a07b5b19fce | 704b2ab91bcb2d39c7feb62ba4a37f41041f0320 | refs/heads/master | 2020-05-04T20:37:09.806985 | 2019-04-13T10:00:22 | 2019-04-13T10:00:22 | 179,444,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | '''
# 1.
콘솔에서 과목명:
messageBox에 출력.
# 2.
콘솔에서 지금시각:
messageBox에 출력.
'''
from tkinter import messagebox
time = input("지금시각>> ")
messagebox.showinfo("지금시각 ", time)
subj = input("과목명>> ")
messagebox.showinfo("과목명 ", subj)
| [
"zzang@DESKTOP-8JUBML4"
] | zzang@DESKTOP-8JUBML4 |
3266e22a3783c4ec392e4f1420a7dc88eb2a9f47 | b43a376e724831b00dd1fef58fce9c66439928e1 | /refugio/apps/mascota/apps.py | d034b98692d06bff65e367f720ef0413f0cfb6b8 | [] | no_license | Andre-98/ProyectoProgra3 | 38d6b27fa7585543e2f6205671b0ae703f4ad0c7 | 897aa46cc175b26db099c3f85e63f226a54eb031 | refs/heads/master | 2020-03-26T20:56:50.246693 | 2018-08-21T02:48:41 | 2018-08-21T02:48:41 | 145,356,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class MascotaConfig(AppConfig):
name = 'mascota'
class AnimalConfig(AppConfig):
name = 'animal'
| [
"andre.251998@gmail.com"
] | andre.251998@gmail.com |
d04d34decf34c86f598843f4c4d7528edd454230 | ba0db5ffda9d470006a8956235d868938b981425 | /ramfull/tileObject.py | 51b870a2234013937012e75929a9985d33b2d8c9 | [] | no_license | wwoods/ramfull | 0b207461f39f6d0d16b93af511dc61eb149f5082 | 64e00cb03a9436f4b034efc5d0b767d1043a66f4 | refs/heads/master | 2021-01-23T06:39:10.711327 | 2013-01-17T08:05:33 | 2013-01-17T08:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py |
import pyglet
from images import TileObjectImages
from tile import Tile
class TileObject(object):
DEFAULT_IMAGE = TileObjectImages.UNKNOWN
HEALTH = 1
@property
def tilesHigh(self):
return int(self.DEFAULT_IMAGE.height / Tile.SIZE)
@property
def tilesWide(self):
retur... | [
"woodswalben@gmail.com"
] | woodswalben@gmail.com |
f49d72c91d33e2be6ace11b2611c232e6a982b10 | 80a47fabd6dd71dd964ee846b32cfa22a7503a69 | /api_server/transport/endpoints/__init__.py | 0f767048e21612b105a71a12c04407cdbe9441f1 | [] | no_license | QuickBanny/PSP_film_project | 0a876b8864ae0fb25ab565a2fdf0a28b094baf91 | 2c099c5ec757b0ba7b1b6fd0b424966f0d70415a | refs/heads/main | 2023-02-13T10:54:20.121038 | 2021-01-12T10:14:35 | 2021-01-12T10:14:35 | 304,572,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from .base import BaseEndpoint
from .users.create import CreateUserEndpoint
from .test.test_get_endpoint import GetTestEndpoint | [
"maiorovpavel@gmail.com"
] | maiorovpavel@gmail.com |
2c7206abda87ae667035b045b3fa60385a359a2d | 5f21855ce33ee2ca969871ed020cfaa4eb3eae51 | /src/paramsets/std_gamma.py | 620f2c60b7900b8cec76de26ae52015aae310c7b | [
"MIT"
] | permissive | neuro-lyon/multiglom-model | fae38f1488c744122d2a87942d28ac8b168521a5 | b56da156f57f8fb17f2f2cb14cf772948c740372 | refs/heads/master | 2021-01-17T06:27:25.591644 | 2013-08-16T15:45:01 | 2013-08-16T15:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from brian.stdunits import *
from brian.units import *
F = 1
N_SUBPOP = 2
INTERCO_RATE = 0
INTERCO_STRENGTH = 0
PARAMETERS = {
'Common':
{'simu_dt' : 0.05*msecond,
'simu_length' : 3000*msecond,
'resample_dt': 0.5*msecond,
'N_subpop' : N_SUBPOP,
'N_mitral' : N_SUBPOP*100*F,
'inter... | [
"vincent@ra.fake"
] | vincent@ra.fake |
559360089e123deb4b2d2c271a10f05fa04a509f | 486332319dcc06d5979ddf60e4d43556288219ac | /Tls2Music4.py | 17322066a71db0cfa9435a2434180498fccd9d83 | [
"MIT"
] | permissive | sftcd/tlspad | 7dcef00f92b2c5a477f9a1be450a6c66f1ce9b90 | 16407215ee2a02076abd8137ead603a427a5c8ab | refs/heads/master | 2020-04-15T06:47:12.648127 | 2019-07-09T22:13:09 | 2019-07-09T22:13:09 | 164,473,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,227 | py | #!/usr/bin/env python3
# Copyright (c) 2019 Stephen Farrell, stephen.farrell@cs.tcd.ie
#
# 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 th... | [
"stephen.farrell@cs.tcd.ie"
] | stephen.farrell@cs.tcd.ie |
864a6f49a409de6ee0ce9d96e9752f283462d529 | 2ab6deaf9ecc0b0aea5394bb4dd8a6ad0d1763a5 | /dev/dic2tmx.py | df9cb54a4a0d08cf4da97601fd06d8b3b1cc0d56 | [] | no_license | manyoso/tibetan_corpus | 6feec71776c4f06d5fc79cd7263996aaa30a6a0d | 6d7211e51e26e2235d64ee0fa4e7a35cf2874b4d | refs/heads/master | 2020-12-24T18:42:08.654451 | 2016-05-20T15:09:55 | 2016-05-20T15:09:55 | 59,302,573 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | #!/usr/bin/env python
import argparse
import glob
import os
import codecs
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
from xml.dom import minidom
import chardet
tmx = Element("tmx")
tmx.attrib["version"] = "1.4"
header = SubElement(tmx, "header")
header.attrib["creationtool"] = "dic2tmx"
... | [
"manyoso@yahoo.com"
] | manyoso@yahoo.com |
be1cc676ac2e7786c36d465de965049c01efb6f0 | 57cbf1532a63d9beeff0e12c66fe187ed6ecb67a | /PYTHON/010discount.py | fbc5e76809cbc0327cd294d63c887e9e1a513d2d | [
"MIT"
] | permissive | ALLANKAKAI/HTML-Tutorials | c6da34ea06b2ff288b21b8105ecd7fcb7f518492 | 6ccaf8b2fc0ad5c86fbabfcda38b1dc78cf33bea | refs/heads/master | 2020-06-10T07:54:18.420896 | 2019-07-05T00:12:00 | 2019-07-05T00:12:00 | 193,620,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | def new_price(old_price, discount):
x = (1-discount)*old_price
s = format(x, ".2f")
return s
car = new_price(2.89, 0.2)
print(car)
| [
"allankakai26@gmail.com"
] | allankakai26@gmail.com |
503f93476c37fc1bdb04fa1b8b3e840788181410 | b098193043f0ecbbaca881731c80c46028bd88d2 | /venv/lib/python3.8/site-packages/pykap/get_bist_companies.py | 764da5dceeb763f31c7df6d2272679f5b833b093 | [] | no_license | melcaliskan/kap_fastapi | 88b389a23647386caa48b3565d135d213c853eb1 | 900a1abe34582d6476466d06a2794b51fc8945b1 | refs/heads/master | 2023-05-31T19:40:46.500018 | 2021-07-02T13:13:00 | 2021-07-02T13:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | from bs4 import BeautifulSoup
import requests
import json
import pandas as pd
import pkgutil
def get_bist_companies(online = False,output_format = 'pandas_df', **kwargs):
if(online==False):
bist_list = pkgutil.get_data(__name__, "data/bist_companies_general.json")
if(output_format=='pandas_df'):
... | [
"dezpyw-wyjqej-2Senwu"
] | dezpyw-wyjqej-2Senwu |
0cce371b26cc503d2072a6754493cd4e3c5ce7cb | 4749d3cf395522d90cb74d1842087d2f5671fa87 | /alice/LC686.py | 67bed14402b09716dbc8ef161fcd6f9c04fb99e2 | [] | no_license | AliceTTXu/LeetCode | c1ad763c3fa229362350ce3227498dfb1f022ab0 | ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a | refs/heads/master | 2021-01-23T11:49:49.903285 | 2018-08-03T06:00:16 | 2018-08-03T06:00:16 | 33,470,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | class Solution(object):
def repeatedStringMatch(self, A, B):
"""
:type A: str
:type B: str
:rtype: int
"""
temp_out = len(B) / len(A)
end = self.find_substring_ending(A * (temp_out + 2), B)
if end == -1:
return -1
else:
... | [
"aliceadelice@gmail.com"
] | aliceadelice@gmail.com |
36da8ae5aa86678a030db065e50cf22fb7201c00 | bf2801a3b0eb5cb09fe301dd62ff6361a8b80c26 | /blogapp/forms.py | c01079669117956e29b18a6fbd8e589d5a0d08bd | [] | no_license | cjxhaaa/newblog | 567d86ecdda5b67e6855933cda8a1a02d7996b4c | ad0e58caab49adcac8b12a64a4494a4f09a815b9 | refs/heads/master | 2021-01-01T04:47:37.141745 | 2017-09-16T15:17:07 | 2017-09-16T15:17:07 | 97,246,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | from django.forms import Form,Textarea,TextInput,CharField
# from django import forms
# from django.utils.translation import ugettext_lazy as _
# from .models import Comment
#
# class CommentForm(forms.ModelForm):
# class Meta:
# models = Comment
# fields = ['name','context']
# widgets = {
... | [
"405019079@qq.com"
] | 405019079@qq.com |
ccfc4d4d8fbed4361fed4ca7c22ef09be420437b | c0fa79ccc608c0da82a0df7fa72230d27ab78ce6 | /blog/views.py | 60b7c3afbb95ca34cb01d9ec3b6e360bd64e2b3b | [] | no_license | leonorelise/my-first-blog | 2a56ccb7cb7da9d8260fd51c5ec418c3ba7c2b12 | c936e8f1b6254eceda8efcd284e6d6603209e3dd | refs/heads/master | 2021-07-11T22:19:31.455199 | 2017-10-15T00:22:33 | 2017-10-15T00:22:33 | 106,955,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
from django.shortcuts import redirect
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=t... | [
"leonorelise@gmail.com"
] | leonorelise@gmail.com |
037aeaa7018d81502d5f2defc3ffaf6efd3e49ce | fa3be87c705d058930b3bf2a6bbf3ccfe8f4529f | /main.py | fd732e43e77df8507a1721ae29e4304bbd56ea47 | [] | no_license | davidsansome/babbledrive | 64cadb8338f877c303c5414651e4218fe5aee883 | 3c1ae1de14ac2c17bf30659d0ab00c578e02e59b | refs/heads/master | 2021-01-21T13:11:06.489448 | 2017-02-14T12:44:14 | 2017-02-14T12:50:33 | 1,591,551 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import glob
import logging
import optparse
import sys
import generator
USAGE = "%prog [-v] [<package> [<version]]"
def main():
# Initialise logging
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s %(levelname)-7s %(name)-32s %(message)s",
)
logger = logging.getLogger("main")
# Parse ... | [
"me@davidsansome.com"
] | me@davidsansome.com |
8e3996708f2fd64b080ba4be189b5de7fef886cf | 61191b4e7322f674dfa826b8ee19be4eba29f69a | /disneyWaitsApp/manage.py | 159dcc1a5fd9cf21f2b95e88178cd518002ddb63 | [
"MIT"
] | permissive | ChristopherArnold28/DisneyWaits | dec023ce0f9389725de4dfa96151014b9fe5a4ef | 4e8927c8d208fdf20f9b82f76958b22a970c0f9d | refs/heads/master | 2021-07-05T12:51:30.871942 | 2018-11-28T15:12:52 | 2018-11-28T15:12:52 | 132,628,724 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | #!/usr/bin/env python
import os
import sys
import pymysql
pymysql.install_as_MySQLdb()
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'disneyWaitTimes.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"christopher.arnold@utexas.edu"
] | christopher.arnold@utexas.edu |
b320ac87230dbe9284f07db5ca2e2e6f4b8da437 | 1b4fa10bf9eb0464664d4d865a669f0b00953223 | /user/migrations/0001_initial.py | 1feb4711d0d787d052546c95c227fae9b44e02ae | [] | no_license | vkbhadauria/message | 4d6d2b52978da9da0154f2a2a5b62da1c54bb21c | e19c8ed260ae74d2b0458547e179f68351ada620 | refs/heads/main | 2023-08-02T15:28:08.417857 | 2021-09-29T05:25:19 | 2021-09-29T05:25:19 | 411,535,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # Generated by Django 3.2 on 2021-06-13 13:13
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_lengt... | [
"vkbhadauria@gmail.com"
] | vkbhadauria@gmail.com |
3bcdcd1ec3d8551f1937844d1b5049ba7f40e0de | 21bbcc4898cc653d2a81b91f500293f7e6932fc8 | /users/views/bet.py | 44bac74410fd01c5813a9e733895dec785afbeca | [] | no_license | ewgen19892/auction | 7e116354008349bbde147b42ee1a909cac7fc00b | 1449156a4985ca7757e342613e0762e11ed9aa30 | refs/heads/master | 2023-05-31T23:02:14.539923 | 2021-06-30T13:21:13 | 2021-06-30T13:21:13 | 381,708,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """Bets views."""
from rest_framework.generics import GenericAPIView
from rest_framework.mixins import (
CreateModelMixin,
ListModelMixin,
RetrieveModelMixin,
)
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from users.models.bet import Bet
from users.se... | [
"e.bohovchuk@admitad.com"
] | e.bohovchuk@admitad.com |
7f2883c014815321979ee55ada5dd9725547b51c | bbf7eeaa891be95f83ffa4369f72a545183fd7f5 | /dashboard/db/zombie_fix.py | 5788bee22ee831e12bf63f90f327e858fe0ac3ec | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | digirati-co-uk/elife-dashboard-fork | c52c744ec96e13b2d1997f27107b4cab3f468780 | 9b949d4a5907ccf11d65b705e8ff7ba017e59333 | refs/heads/master | 2021-04-03T02:07:28.184201 | 2018-03-09T16:29:36 | 2018-03-09T16:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | from config_decider import config as settings
import psycopg2
_sql_problematic_articles = "select article_identifier \
from article \
group by article_identifier \
having count(article_identifier) > 1;"
_sql_create_functions = " \
CREATE OR REPLACE FUNCTION select_article_ids_by_identifier(text) RETU... | [
"jenniferstrej@gmail.com"
] | jenniferstrej@gmail.com |
9d90eb3b58b12524a8e4ef7ed0908edabb7cce7d | 81c79acf5c01f46ae24e642e4c23055963bf0414 | /osoby/urls.py | 6b3bf1ee760f1e7b126a6df98e0736293bf87abe | [] | no_license | Bulg0t/DjangoApp | f8c39b180334a586b8a590f5e952f2d2587ad4ed | 976bb53af0e93bcb18267bdf1c83a8417b9f9cc7 | refs/heads/master | 2022-12-27T20:00:47.310989 | 2020-10-08T11:32:03 | 2020-10-08T11:32:03 | 296,302,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.urls import path
from . import views
urlpatterns = [
path("", views.index),
path("onas/", views.onas),
] | [
"michal.potocki@lo1.sandomierz.pl"
] | michal.potocki@lo1.sandomierz.pl |
050c93c94e4e2195c98ce7c601a22585a18dff78 | 30d6a38c819afaeceb15796be916bb27f496b1c9 | /Semester 7/Natural language processing/preprocessing.py | 0ad03df7e2ff6637eedee1d23642f1a7f6d75cca | [
"MIT"
] | permissive | MaKToff/SPbSU_Homeworks | 23417085252231b1591bbc6e274fc29a3602a6a2 | b4bb185aa4bd9cb75f6ba5ce751ea1ec69397f93 | refs/heads/master | 2021-06-04T23:19:52.882605 | 2018-01-20T13:52:15 | 2018-01-20T13:52:15 | 24,901,324 | 0 | 1 | null | 2015-05-10T15:43:27 | 2014-10-07T17:05:26 | F# | UTF-8 | Python | false | false | 4,128 | py | import os
import keras
import numpy as np
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from lang_config import *
def count_chars(text):
"""
Counts number of chars in text based on given alphabet.
"""
alphabet_counts = [0] * len(alphabet)
for char in text:... | [
"mihail.kita@gmail.com"
] | mihail.kita@gmail.com |
30cf533e594169c4d193d3292bc2412b5933709d | 99d40c8682db386f36e6bb78e2255994a0cd8119 | /message_page/urls.py | 5b8a146291cdb46189e9b5c8aaf3a5f955cb3be1 | [] | no_license | ritik-ds/MessagesPage | 062247ac75e7c6464f06d213eadd94e5684d22d8 | 531d5b150b0a4247288a6b05884901fa4919d954 | refs/heads/main | 2023-08-16T15:37:41.763863 | 2021-09-26T16:15:31 | 2021-09-26T16:15:31 | 410,604,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | """message_page URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"ritik.ds@somaiya.edu"
] | ritik.ds@somaiya.edu |
3ddecb12bcd36de8c4d3587927281511216eaa9b | 8f88a75c4f58bb8f16a59d5a4b33a20c7ebe64dd | /HW3/Auxillary.py | 531fbcd2db3be0ae1f4d0e5f525a38443d265a6c | [] | no_license | Pradtha/InfoRetreival_SearchEngines | 07d29627cea7b668deab7507fe1963d2e09f67f1 | aadf19163e8067a6b1738ddca048dc1e5b07429d | refs/heads/master | 2021-01-10T16:01:45.884368 | 2016-04-27T22:17:39 | 2016-04-27T22:17:39 | 53,242,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import sys
import csv
from collections import defaultdict
import networkx as nx
csvFile = open('pagerankdata.csv',"r")
csvFile.seek(0)
g = nx.DiGraph()
reader = csv.DictReader(csvFile)
for row in reader:
g.add_edge(str(row['Page']),str(row['Outgoing Links']))
csvFile.close()
csvFile = open('PageRankData.csv',"w"... | [
"pradeep1005@hotmail.com"
] | pradeep1005@hotmail.com |
83fdb3516f9aed1bf4719e0fb14fb683e0a628c3 | c490044445b0a61016a714e35279876063689d86 | /manage.py | 52a6383ab7c51198574670b3d768207e1fd50f21 | [] | no_license | kris965/Beersub | a359936fd6a80bf5e69deba51725f02f56736e9a | eb7892543f58bc1906a58228a87638170024eace | refs/heads/master | 2023-03-04T02:12:05.389573 | 2021-02-03T23:53:47 | 2021-02-03T23:53:47 | 330,680,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'beersub.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"kristian_hoogland@hotmail.com"
] | kristian_hoogland@hotmail.com |
a10cb0896918768454ee5b233e98ddf4900e8777 | a1eced11c137f4b7c9f2a41a9519d647f685a05c | /test/test_day25.py | fb0f5312c4358bdde16121412581492889858f49 | [
"MIT"
] | permissive | frangiz/AdventOfCode2017 | 67b5ca2a8a1a52b397b0bd7052817e15ecf69012 | 5fc171d4a83bfb9a408b4647ded4cb3efd12247e | refs/heads/master | 2021-09-01T14:11:01.067359 | 2017-12-27T11:14:56 | 2017-12-27T11:14:56 | 112,765,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | """The tests for day25."""
from days import day25
from ddt import ddt, data, unpack
import unittest
import util
@ddt
class MyTestCase(unittest.TestCase): # noqa D101
@data([['Begin in state A.',
'Perform a diagnostic checksum after 6 steps.',
'',
'In state A:',
... | [
"frangiz@gmail.com"
] | frangiz@gmail.com |
d207bfd4c67901362560eec70a277a28c56e741f | 0b0f7d75427c40e3f6c413652b8a00ab8eac41b3 | /vendor_parser.py | 5c47d142f6636325b09bcc63514efe75a100822e | [
"Apache-2.0"
] | permissive | Bidek56/Data-engineer-challenge | a517a8605058969a06986b69bea3caa196df3579 | 9ddaf18b99ade5094f3fe334b36e290cda4da6cd | refs/heads/master | 2021-09-26T19:04:14.055249 | 2018-11-01T13:16:48 | 2018-11-01T13:16:48 | 114,129,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,225 | py |
"""
Created on Monday Dec 4th 2017
Purpose: Parse Friendly Vendor feed and match their data with our data
Steps: Call HTML pages and parse them
Call vendor JSON api and parse the output
Merge the above data sources using Pandas
Connect to MySql DB and download sample set
Merge MyS... | [
"noreply@github.com"
] | noreply@github.com |
78669412332bf240c5ec956475870991234d4e0a | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/456.py | 66eab5b1b483bdf7f16872bae3ee0dba39feae91 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution(object):
def find132pattern(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
stack = []
_MIN = float('-inf')
for i in range(len(nums)-1, -1, -1):
if nums[i] < _MIN:
return True
while stack ... | [
"4903319173@qq.com"
] | 4903319173@qq.com |
ca4caeb6f24bb1c3b1039b25286210c44d21ca98 | da55587a24558360bd6a7db9f8cc2c2f31168174 | /Analysis files/BE-aa-heatmap - Transversions.py | 886888eec089bb6bda321674b7a61b71a09b81dd | [
"MIT"
] | permissive | RoyRabinowitz/BE-FF | 6469b57f9de0c1b1a138cb8d162086ab5092e295 | bf7c0d9026b738da3deaf61e18512e0699efc024 | refs/heads/master | 2022-04-09T22:20:29.125573 | 2020-03-17T12:13:22 | 2020-03-17T12:13:22 | 224,976,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | import seaborn as sns; sns.set()
import numpy as np
import csv
import matplotlib
import matplotlib.pyplot as plt
file1="c:/Python/BE AA heatmap/all_transversions.csv" #all SNPs
file2="c:/Python/BE AA heatmap/transversions_results.csv" #results file
AA=['A','C','D','E','F','G','H','I','K','L','M','N','P','Q... | [
"noreply@github.com"
] | noreply@github.com |
5b3f7af6254318f0492a9a4656e243ea1a650008 | 18f776553a59a89faf05144ed1a69dc563dc4e9e | /Algorithm/insert_sort.py | cbdb6501102014039571662e8f5b9136479ee6a9 | [] | no_license | g-lyc/LeetCode | 274feff3b6c61da0ec8726deac0b298baed5cf10 | fa45cd44c3d4e7b0205833efcdc708d1638cbbe4 | refs/heads/master | 2022-12-13T14:50:02.976951 | 2020-09-03T09:39:58 | 2020-09-03T09:39:58 | 259,212,315 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # coding:utf-8
def insert_sort(alist):
"""插入排序"""
n = len(alist)
# 从右边的无序序列中取出多少个元素执行这样的过程
for j in range(1, n):
# j = [1, 2, 3, n-1]
# i 代表内层循环起始值
i = j
# 执行从右边的无序序列中取出第一个元素,即i位置的元素,然后将其插入到前面的正确位置中
while i > 0:
if alist[i] < alist[i-1]:
... | [
"309080979@qq.com"
] | 309080979@qq.com |
2186206bcad559fc9c765fe4e698c6e9739dad54 | 4e57fecb5d43a9a51d5e75ee7c00054e3a01a453 | /proj/detail/serializers.py | 5108dbbf5b0f77a304f30f4538e2b45776b32c45 | [] | no_license | qTemiO/SchetnayaPalata | f556869cb4db1ad91740dafcc1d03c69fe919a59 | 6b966a08ace20fee56f6f7382b79d6fc9a0ca07c | refs/heads/master | 2023-03-29T06:30:49.693829 | 2021-04-01T20:09:42 | 2021-04-01T20:09:42 | 352,178,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | from rest_framework import serializers
from .models import (
Services,
Ministries,
Problem,
Region,
)
from loguru import logger
class ServicesSerializer(serializers.ModelSerializer):
class Meta:
model = Services
fields = ['serv_name']
class MinistriesSerializer(serializers.M... | [
"zhitihin.artem1441@yandex.ru"
] | zhitihin.artem1441@yandex.ru |
ef48748f03cacdbe7d39982ecb8b7878bd771826 | 93e2396078135e278d1a3f45c8e81c82758f7f9f | /app/main.py | 319bb338bedb6f16510732da60df70ed0ea1f5b8 | [] | no_license | LazukinPavel/SimpleTelegramBot | 75b69470ae710c5d6e8bcdd93769e1fd932492cc | 3fd883c179973ddd597d039bbf94ad4f228e5334 | refs/heads/master | 2022-12-12T07:46:43.031536 | 2019-04-11T14:43:19 | 2019-04-11T14:43:19 | 180,383,671 | 0 | 0 | null | 2022-12-08T04:58:19 | 2019-04-09T14:20:47 | Python | UTF-8 | Python | false | false | 1,424 | py | import requests
from bs4 import BeautifulSoup
from flask import Flask
from flask import request
from flask import jsonify
from flask_sslify import SSLify
from config import token
app = Flask(__name__)
sslify = SSLify(app)
URL = f"https://api.telegram.org/bot{token}/"
def get_search_result_stat(word):
url = ... | [
"backend@analitika.online"
] | backend@analitika.online |
1de56e7d13c3d1eed2fd2ab77aee1fa72e666081 | 3998b470766fa184e558acd42f07e1c64ece2855 | /project/settings.py | 71f25b36ed4195c79e412017403a5a014ee5575b | [] | no_license | proxyroot/arkangle | 9eb439e09e9eeeca852a602712e3fe8bf52e5d54 | 94f19649fd686b564d51bab3e2dc94bd85b30949 | refs/heads/master | 2022-07-01T09:50:44.643823 | 2020-05-14T19:44:31 | 2020-05-14T19:44:31 | 263,730,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"itsmeafroze@gmail.com"
] | itsmeafroze@gmail.com |
93716f1335221e71d0d47a30e7e3392e45f97c9e | 776fd34465e41d8ff6e1ed3a6333991c53de3bc9 | /Clone_django/mysite/mysite/urls.py | 479a9635e1f547d06fd83db8a43cddfedc6e2ff8 | [] | no_license | GuptaHarsh7/djangotut | cf7ea5347b033ab2d2e5eaf2f850c54db3eb8b65 | 08b742040ae4edcb5509503cef043512dc96a802 | refs/heads/main | 2023-03-13T02:04:23.152349 | 2021-03-08T19:53:05 | 2021-03-08T19:53:05 | 343,714,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 ... | [
"harshgupta6641@gmail.com"
] | harshgupta6641@gmail.com |
6aca02bb5efcef065a9dbd7d46d07f6bb6937bf1 | 76e8afe527e191e6291562c6140606c16d7385df | /wsgi.py | 75ad6b25013956a7af77660d24fbd9058b5cb79c | [] | no_license | socek/tklive2013 | dfa896800713832d3f1b4a11f35aecf723e09328 | 2fa8c6fd099a66b7f84fc5df94d0a2b542a44f75 | refs/heads/master | 2021-01-22T05:16:34.001073 | 2013-02-25T13:14:43 | 2013-02-25T13:14:43 | 42,201,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/home/socek/www/2013.turniejkosza.pl/venv/bin/python
import os, sys
sys.path.append('/home/socek/www/2013.turniejkosza.pl/tklive')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' # this is your settings.py file
os.environ['PYTHON_EGG_CACHE'] = '/tmp'
import django.core.handlers.wsgi
application = django.core.han... | [
"msocek@gmail.com"
] | msocek@gmail.com |
10cd5fd79186d2bfc3eec7a87c3cd009c9c0c896 | cc768f7a3c80ce0109e6e5e6173a62ecc1b3c90c | /main.py | bcc08555e16ba136a064bc694b7126a2c395d808 | [] | no_license | antonchu2006/auto-math-plot | 55c18d11112084b35fbda87010b088a961822d52 | cfc2753b1adb4af52eaa3ec59482f687f50191ab | refs/heads/main | 2023-05-12T13:15:59.064752 | 2021-06-02T20:56:05 | 2021-06-02T20:56:05 | 373,297,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | import matplotlib.pyplot as plt
import numpy as np
## Cambiar los valores al gusto
a = 1
b = -4
c = 7
def f(x, a, b, c):
return a*x*x+b*x+c
def vx(a, b):
return -b / a**2
def vy(a, b, c):
return a*vx(a,b)**2+b*vx(a,b)+c
## Cambiar el -10 y el 10 para los valores máximos y mínimos del dominio. En este ca... | [
"noreply@github.com"
] | noreply@github.com |
af4ea6b9b94fa419b8547d61172b45a767314f5a | c9f9313b7c21fb3e20f3f3b827799ee837a01126 | /hello/migrations/0002_alter_greeting_when.py | a632fc755531ce63ddf3adfc9bc53c3ecbf03dd5 | [] | no_license | billtorcaso/python-getting-started | 527e2cbb78d427df35bf8f2ddd9df39d8da1e1ba | 5a0d0f1e2c8ddb103ffaaada2d798ba66562aa53 | refs/heads/main | 2023-06-03T07:32:36.727408 | 2021-06-17T19:40:14 | 2021-06-17T19:40:14 | 370,202,007 | 0 | 1 | null | 2021-05-24T02:11:45 | 2021-05-24T02:11:45 | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.2.3 on 2021-05-24 19:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hello', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='greeting',
name='when',
fie... | [
"torcasobill@gmail.com"
] | torcasobill@gmail.com |
d6da1412862dcfd139a0a2f5b17ccee81f26c96f | a5f7f374fe04595edd02b111a429ae3aa72a390e | /models/item.py | 6c9b9a266e2cfe25820591d756e831d9070ca60a | [] | no_license | rLoganS/sect8 | 114fef2ae77209c98d43307174bafc448c80fd15 | f5da8b11365fca084cbe43d32b3d5b46b916d19c | refs/heads/master | 2022-11-17T08:26:57.522288 | 2020-07-14T19:06:11 | 2020-07-14T19:06:11 | 278,709,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from db import db
class ItemModel(db.Model):
__tablename__ = 'items'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
price = db.Column(db.Float(precision=2))
store_id = db.Column(db.Integer, db.ForeignKey('stores.id'))
store = db.relationship('StoreModel')
de... | [
"rsnyder@mail.bradley.edu"
] | rsnyder@mail.bradley.edu |
253c9632016a2b5d45b61ace6d16cc791687be0b | 20f2f9c4728cc8380062c557b838af45d65b909b | /tests/basetypes.py | ad5a3e8fe487b3e4dd897fef64492948ff945397 | [] | no_license | dankamongmen/everpad | 5cea529cab55f2c4a8f4fc5588807c35b2a61aef | 4eea1d6c9b322cbad021453f3a0dc57582fb5c6a | refs/heads/master | 2021-01-16T19:51:27.598790 | 2012-12-06T09:28:28 | 2012-12-06T09:37:13 | 7,032,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | import sys
sys.path.append('..')
from everpad.basetypes import Tag, DbusSendable
import unittest
class TestBaseTypes(unittest.TestCase):
def test_signature(self):
class Fake(DbusSendable):
fields = (
('id', 'i'),
('name', 's'),
)
self.assert... | [
"nvbn.rm@gmail.com"
] | nvbn.rm@gmail.com |
6776b5e5392f4b295a08f1a154c3041ae19136be | 73958bfeee8d685972df09349d6709e12310d246 | /InstsAndQt/rj7620.py | 59d3bc719b5f077fd723e4871ad3802c3b1c330f | [] | no_license | SherwinGroup/InstrumentLibrary-yolo | 90521c297cde06aa42745b6a28f7aafb7901b561 | ced5834f1763e7326cdb006223bde8797583489e | refs/heads/master | 2021-08-27T23:58:16.152927 | 2021-08-02T21:01:39 | 2021-08-02T21:01:39 | 30,441,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 13:14:41 2015
@author: FELLab
"""
import visa
import numpy as np
WANTED_AVERAGES = 10
MAX_MISSES = 3
def main():
missed = 0
rm = visa.ResourceManager()
try:
inst = rm.get_instrument("GPIB0::3::INSTR")
except:
print(rm.list_resources()... | [
"valovcin@physics.ucsb.edu"
] | valovcin@physics.ucsb.edu |
4e9f572d63b4b711b430ef8b964d4f9f5ef14c62 | f19da72213e66d948215ac8567dfa0ee1c353b81 | /sinogrammaker.py | eb5501ebf59a93a0c7b4075c461dc7cba7751c8f | [] | no_license | Alexmonto2000/Honours_SART | 669518e94a1b4fd46609863720d95bf39ad2aa97 | 61c6d9c5779ce7ee9cda7e3a7e8484f43c3d5160 | refs/heads/main | 2023-05-27T15:20:03.398313 | 2021-06-06T10:44:10 | 2021-06-06T10:44:10 | 374,137,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | import os
import numpy as np
import pandas as pd
def getdimension(code1, code2, theta, path):
"""
:param code1: Name of the csv file before angle. E.g.: for 'flame6view.csv', 'flame'
:param code2: Name of the csv file after angle. E.g.: for 'flame6view.csv', 'view.csv'
:param theta: array of ... | [
"noreply@github.com"
] | noreply@github.com |
43fcbd83f3f339c662561f29b5c5cd79d393716b | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/rttoeptask.py | f93376a7a4574d9dc1dc35e1a6c378196f119b89 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,689 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5f1f4d88365195596301a3b321d500199908f421 | 19d178c8ca18dfbb2aba6658328840dbae76f6ee | /manage.py | 77c5222ad242482665d0556bf52c57943a5beec3 | [] | no_license | mhosseinifar8/hamtimi.ir | ef60560a45661b118bb2130a9a5e4b91ff74bb0b | 0dfbd776446cbe46eb4836ba8ea09d6ba7041be4 | refs/heads/master | 2023-05-12T09:23:31.010553 | 2023-05-08T11:32:52 | 2023-05-08T11:32:52 | 230,537,781 | 0 | 0 | null | 2022-12-08T05:31:55 | 2019-12-28T00:36:03 | HTML | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hamtimi_beta.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"mhosseinifar8@gmail.com"
] | mhosseinifar8@gmail.com |
ea29dc8380864845dcbf87a27353f716cc000e96 | ecb21878638d5a4fc504d293680d96c57a5a19e8 | /examples/optimize_mode_converter.py | 5d757b783f31d687e64debd51759a4f467ddb499 | [
"MIT"
] | permissive | bezova/ceviche | 093172f9374d042df0af3e26d808433cec7ca9b7 | 999d7a337c0bb2b55da85019abba26edbf5f467a | refs/heads/master | 2020-09-09T18:59:43.904220 | 2019-11-11T22:30:38 | 2019-11-11T22:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,397 | py | import argparse
import numpy as np
import autograd.numpy as npa
import matplotlib.pylab as plt
from autograd.scipy.signal import convolve as conv
from skimage.draw import circle
import ceviche
from ceviche import fdfd_ez, fdfd_ez_nl, jacobian
from ceviche.optimizers import adam_optimize
from ceviche.utils import ima... | [
"momchilmm@gmail.com"
] | momchilmm@gmail.com |
5ad3b3a1bdd2f87b6fca52d411ca6adf463d427c | b294a4a340a46feecd829f858aa0be036866069a | /SumOfNs.py | 52aaea2e93bedfbbbb4d8b2f9a56aa0fbe2a1ce9 | [] | no_license | HULLZHU/PythonProgramming | 234d6af1e991438b7574317d65599cc5282b2586 | 1d645ef245473f0405e876f71c91866d1e8950ba | refs/heads/master | 2020-03-29T01:07:33.871569 | 2019-03-26T14:07:17 | 2019-03-26T14:07:17 | 149,372,399 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | total = 0
for i in range(101):
total = total + i
print(total)
| [
"noreply@github.com"
] | noreply@github.com |
2534d4c5652acec5287db3e2d54a005280d1073d | bf1a7752c84c1b321d1f4ec59e25b2e48aa33661 | /Software/Python/grove_rflink433mhz_oneway_kit/grove_rflink433mhz.py | b7ba5b11d9c54875cf307b490f859388881fdb9c | [
"MIT"
] | permissive | usc-ee250-spring2020/GrovePi-EE250 | d094ae099cc0c61dcbeb92d1ee4ed8d878e88026 | 14969ea93fa9400cc639c625977d683d439a498e | refs/heads/ee250-master | 2023-05-11T13:13:13.802283 | 2020-01-27T09:37:28 | 2020-01-27T09:37:28 | 145,928,854 | 1 | 9 | NOASSERTION | 2023-04-29T05:27:19 | 2018-08-24T01:55:40 | Python | UTF-8 | Python | false | false | 9,226 | py | import serial
import binascii
import struct
# Library written for Python 3!
class RFLinker:
# port = '/dev/ttyS0' - it's the default and only UART port on the Raspberry
#
# chunk_size = 32 represents the number of data bytes a transmission can have at most
# if the number of bytes exceed this thresho... | [
"robert.lucian.chiriac@gmail.com"
] | robert.lucian.chiriac@gmail.com |
c3620aa123caa2cf545b1ea5601ddd7990610b35 | ad0bf393f0c9b62e88466cbc80a66cb23823cdbc | /assignment2/optim.py | 40970ea6a0859d373923d19ff66fe78f30a4a244 | [] | no_license | ArtemSolomatin/dl_nsu | e1f5e6a6382761a3861ee48c7fe1f9b4ae0f9976 | adf5846ca40a0d7044ff3dc46012151c872e1eeb | refs/heads/master | 2020-04-28T18:54:57.677739 | 2019-07-23T16:40:53 | 2019-07-23T16:40:53 | 175,493,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import numpy as np
class SGD:
"""
Implements vanilla SGD update
"""
def update(self, w, d_w, learning_rate):
"""
Performs SGD update
Arguments:
w, np array - weights
d_w, np array, same shape as w - gradient
learning_rate, float - learning rate
... | [
"artemsolomatin19@mail.ru"
] | artemsolomatin19@mail.ru |
13254a2eb38626cc27a9c8911954a3a6db26b13e | 8074e0e53718b9f9cc2682d0986ebdaee17f8bfd | /jabulani.py | 883f9135b161fd0f9ad99a7e706c02c4f0b4cec9 | [] | no_license | camillevilaca/prog2 | 90e0127473cf50ebce475bb34df3d505bfb9df01 | ccf52430707ea4f6b6084c42f16b043cfe4eb555 | refs/heads/master | 2020-04-24T03:39:00.887923 | 2019-06-26T19:39:58 | 2019-06-26T19:39:58 | 171,676,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import peewee, os
db = peewee.SqliteDatabase('Animal.db')
class Animal(peewee.Model):
nome_dono = peewee.CharField()
tipo_animal = peewee.CharField()
raca = peewee.CharField()
class Meta:
database = db
def mostrar_animal(self):
animal1 = Animal("Carlos", "Lacoste", "Poodle")
... | [
"andre.heydran@gmail.com"
] | andre.heydran@gmail.com |
1a2df106ac84665a42a9dcef38b03db11ceea32e | 5d0da5e2904f9523c3251fead980fbd85bb4dc29 | /common/urls.py | 49dd35767fed0f907b338ffa177825bc8d43eb67 | [] | no_license | tanpo-1776017488/Django | 6bbb2b765c3db6dc6f45e040835420294aada017 | 33a276dece28867243a577493d34fe44681288cf | refs/heads/master | 2023-05-18T19:39:23.795205 | 2021-06-07T12:37:30 | 2021-06-07T12:37:30 | 349,957,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
# ---------------------------------------------------------------------------- #
app_name = 'common'
urlpatterns = [
# ---------------------------------- [edit] ---------------------------------- #
path('login/', ... | [
"tanpo1733@naver.com"
] | tanpo1733@naver.com |
8974aae37f4c58a24bd7555019577f6fec938fb2 | 2e405947abb49b9fcaaac23c6f7f4592a38df0e1 | /mainapp/templatetags/mail_to.py | 6f8285d1afd2ea5d9d6ba08195089e93d8bfcc96 | [] | no_license | m04kA/my_geekbrains_shop | 63b143041cda48f1268eac94dc42697fb2e9f21f | d90c975cbf66e697ebd77437d83f0c1b205c5ef7 | refs/heads/master | 2023-02-23T16:27:53.644914 | 2021-01-27T12:59:12 | 2021-01-27T12:59:12 | 300,906,915 | 0 | 0 | null | 2021-01-17T13:30:26 | 2020-10-03T15:02:27 | CSS | UTF-8 | Python | false | false | 1,365 | py | from xml.etree import ElementTree as ET
from django.utils.safestring import mark_safe
from django import template
from django.conf import settings
register = template.Library()
@register.filter(name="mail_to")
def mail_to(input_str):
"""
Create link `mailto:`
"""
link_mailto = ET.Element("a", {"href... | [
"noreply@github.com"
] | noreply@github.com |
8e40247afc5007560a63232f9f35116f619b7836 | 82383c8899b47f1edccf2a1432bfd3ea67356184 | /data-structures/linked-lists/insert_node_at_the_head.py | d8ecd770875d00daae7da3ceb1010c8cda4ff663 | [] | no_license | hamzatuna/Hacker-Rank | e2f7f84a9f2bc151a743713b7f132c6bcfb8a642 | 11da921190c71bb7d721521310dc025f81f1fa5c | refs/heads/master | 2021-04-15T12:55:52.214563 | 2018-03-24T16:19:11 | 2018-03-24T16:19:11 | 126,537,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | def insert(head, data):
new_node = Node(data)
new_node.next, head = head, new_node
return head
| [
"tuanaham@itu.edu.tr"
] | tuanaham@itu.edu.tr |
82628634478433a38edb9517e6ac55360bafb97e | 75c4cdc89ce739d9224c07063d4871e9f8da8a1d | /myapp/models.py | 6299bfc9dd199414123bdb9a86356160b765e5ab | [] | no_license | ynynloxx/todo_app | 023fdba35f6de445e286d0c0941b565651ef8fd5 | b36ecbce83240f4ad0ac9c58456a05951508455f | refs/heads/master | 2020-08-02T09:45:14.163510 | 2019-09-27T14:14:26 | 2019-09-27T14:14:26 | 211,306,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
class Category(models.Model):
category = models.CharField(_('category'), max_length=200)
class Meta:
verbose_name = _('category')
verbose_name_plural = _('categories')
def __str__(self):
return se... | [
"yin-yin.lo@rwth-aachen.de"
] | yin-yin.lo@rwth-aachen.de |
d286f62484170a0e3b9c0ddb9207709c83cb48b3 | ff8131c14f7dc37c3a5b16900b0c1f13757dfa63 | /docker/web/project/glue/settings.py | ee5f5d03635caf99206d49bc30be22d118670e26 | [
"MIT"
] | permissive | gomberg5264/pricemointor3 | 7b382d0ec0cbb97ba21cc6f1c2d5ec23c4497be8 | 01bcf738af2654a46a684ed19e491ed487b8bf21 | refs/heads/103-more-meaningful-graphs | 2023-02-06T01:19:24.438856 | 2016-04-29T18:52:48 | 2016-04-29T18:52:48 | 318,915,164 | 0 | 0 | NOASSERTION | 2020-12-26T03:07:34 | 2020-12-06T00:06:37 | Python | UTF-8 | Python | false | false | 8,252 | py | """
Django settings for glue project.
Generated by 'django-admin startproject' using Django 1.8.2.
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 i... | [
"darignac@gmail.com"
] | darignac@gmail.com |
e165f515f5a8171ea465a2a3904e19bda27ebe4a | ad2090cc9591d38456621951d4901276481b55fd | /python编程技巧提高/day03/ex3_实现反向迭代.py | 389dd1920cf2aee18456d949fadf7f3918a3afae | [] | no_license | GuangGuangLi-Artist/LearningPython | 9d17366c4b64f5b3d53b885b71f1cf9bd4d2f53f | 0810ff6d0cc557f4d5ed8c024ce413a93183a6da | refs/heads/master | 2023-08-18T16:32:03.595418 | 2023-07-30T09:47:48 | 2023-07-30T09:47:48 | 201,511,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | #coding=utf-8
class FloatRange():
def __init__(self,start,end,step=0.1):
self.start = start
self.end = end
self.step = step
def __iter__(self):
t = self.start
while t <= self.end:
yield t
t += self.step
def __reversed__(self):
t = s... | [
"15607521232@163.com"
] | 15607521232@163.com |
ce21f65cce5f9939c9f2d4f97752d5c58dae3969 | 87f243cf1f7291d4f145a98e21d6599f2097f0c5 | /Lab5/B1.py | d5c4c47789c20b1cba7d14566987ab0fb1a9000b | [] | no_license | trucphuongbvc/LAPTRINHPYTHONNANGCAO | 563a5ac022770500b8de3bbc064d6d6091991c4f | 507fd1b91f0cb83edd54858023ce0057e9264f63 | refs/heads/main | 2023-08-28T07:29:12.070959 | 2021-10-19T02:06:27 | 2021-10-19T02:06:27 | 408,396,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | class Country:
def __init__ (self, name, population, area):
self.name=name
self.population=population
self.area=area
def is_larger(self, other):
if (self.area>other.area):
return True
else:
return False
def population_desity(self):
... | [
"noreply@github.com"
] | noreply@github.com |
6033d53dbc557f177f5618eb13bead953214860f | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /official/utils/logs/hooks_helper_test.py | 5adb5fdc343ad00cfab2557436de927e68501743 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 2,777 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
a685914c1f3b145639598864005cea927ca5a79c | 2aa817f40517f7c9c55534948df9d6d1742a8da8 | /buzzbird/wsgi.py | c81b3b70557f656a45f0bf6864b99592df0183c7 | [] | no_license | arischow/buzzbird | 2b4d24130e18c4b03be5c287c56b60efa142a4ee | 3ffcc849f9360037fb4aff5f2d3370a2ba145fcc | refs/heads/master | 2020-07-14T15:37:09.620648 | 2019-08-12T05:58:36 | 2019-08-12T05:58:36 | 152,390,942 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for buzzbird 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"arischow@gmail.com"
] | arischow@gmail.com |
e2001593d3dace8fffbd229e25b81b7d1a5932c2 | e54c04a919a21af0564c6d3f77c92c84a097e58b | /src/front-door/azext_front_door/vendored_sdks/models/frontend_endpoint_link_py3.py | 2777bd8e09b27cfb2d1604822a29b8ac26415ee0 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | rlrossiter/azure-cli-extensions | b8b4acad5394edbff545f4fd145cf24255db7453 | e8a640e6623e69e21fa7118eceb1ae28d134bb9a | refs/heads/master | 2021-08-06T18:17:29.141297 | 2019-09-22T13:37:04 | 2019-09-22T13:37:04 | 210,704,389 | 1 | 0 | MIT | 2019-09-24T21:56:44 | 2019-09-24T21:56:43 | null | UTF-8 | Python | false | false | 905 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
b2a30b81daf763745c5d3b2ae60e9d9b656a21f4 | 94b679b48edd14d6d094d1d3eedb1b98c5ed5029 | /김송이/[2020.09]/[2020.09.15]1463.py | e1e2ab503e3fbfc6d891e4db59ea4c6d28b612b8 | [] | no_license | 4RG0S/2020-Fall-Jookgorithm | 602c918b22aed7f06ab63fbdfb31496bf3bfcec0 | a1caac8290549ce4f9f4161f12a53be12a065bfe | refs/heads/master | 2023-01-30T14:06:01.285667 | 2020-12-11T03:12:44 | 2020-12-11T03:12:44 | 293,725,616 | 0 | 0 | null | 2020-09-09T08:27:27 | 2020-09-08T06:49:43 | Python | UTF-8 | Python | false | false | 586 | py | # DP 문제
# min(f(n/3)+1, f(n/2)+1, f(n-1)+1)
def main():
n = int(input())
count_list = [0 for _ in range(n + 1)]
for i in range(1, n + 1):
if i == 1:
count_list[i] = 0
else:
count_list[i] = count_list[i - 1] + 1
if i % 3 == 0 and count_list[i // 3] + 1 <... | [
"ksl2950@naver.com"
] | ksl2950@naver.com |
9af698eb1b9e10126a05c34812ef09e3ca26db5f | c4079336265fcaa2eb8be72d5a755d2dd3c95b1c | /bin/service.py | 114b11a3ee9f2e3e925d41730aab7de2ddb60201 | [
"MIT"
] | permissive | alexhsamuel/absence | 3bdd5e9b6f20f995b4b71ffc6ad94c52c7757c59 | 2dcb1e14f4ec0d90b1dad3ca03ebba7fa5a3d3ff | refs/heads/master | 2020-03-11T06:39:26.328341 | 2018-04-17T03:37:55 | 2018-04-17T03:37:55 | 129,835,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | #!/usr/bin/env python
import argparse
import flask
import logging
from pathlib import Path
import absence.api
import absence.api.service
from absence.db import SqliteDB
#-------------------------------------------------------------------------------
app = flask.Flask(__name__)
app.register_blueprint(absence.api... | [
"alex@alexsamuel.net"
] | alex@alexsamuel.net |
3862dc3f3c1dcd05a80e12c0ed5e5248e62bf552 | 0783093e4c16df3a3707388095d835cec137ba9c | /audit_cleaner.py | ff7a8f339014daae09347c97b04dba0cd5d1a948 | [] | no_license | rpriyesh/python-samples | 7c8cf4899848bf094b752145ed291392aa1aeaad | 4f8eabbdcc892deee9a194912c90fafc3e8e3e8d | refs/heads/master | 2020-05-16T06:48:14.981923 | 2019-04-22T20:03:16 | 2019-04-22T20:03:16 | 182,858,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # Author: Priyesh Rajamohanan
# Date: 22 January 2017
# Desc: To analyse audit data from JIRA server and summarize data.
import pandas as pd
pd.options.mode.chained_assignment = None
def print_summary(filename):
date_from = '2016-08-01 00:00:00'
date_to = '2016-09-30 23:59:59'
raw_da... | [
"noreply@github.com"
] | noreply@github.com |
745bc7d2a0ee083e17423d8cf64b2fa4ba20c778 | 92808c51ef597e57dfbcffc73714d007b5adc0ec | /model/Goal.py | e7eeca1bac852bec0e3ed021121b37f4882b1239 | [] | no_license | chatreejs/assistiverobot-web-service-python | 37352bc293d8f0b5ce94178f57563d5690d91c65 | 0fa8549e9092aae0c1de6d497d43775b81f37d19 | refs/heads/master | 2023-04-18T03:25:28.876821 | 2020-07-22T12:50:25 | 2020-07-22T12:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | from enum import Enum
class GoalStatus(Enum):
PENDING = 'pending'
ARRIVED = 'arrived'
SUCCESS = 'success'
FAILED = 'failed'
class Goal(object):
def __init__(self, goal_id: int, position: dict, orientation: dict, status: str):
self.goal_id = goal_id
self.position = position
... | [
"v_chanont@ctlsd.set"
] | v_chanont@ctlsd.set |
bd4576cfd6e718cdd274494f2f169454712272eb | 6fdcfdf6de1e64a3915178c3e8e0ab56301baf1e | /basehtml/home/admin.py | 0989bbd8dc2e4804e4fec7a0dceba3fc6e3cedc4 | [] | no_license | onurbayraktaroglu/basehtml | 5117977d90dd8a33beb18471e0989d46231c6c17 | 759af91420c3bc29f803203f20828c902c68b8e1 | refs/heads/master | 2021-01-16T20:33:01.555033 | 2012-08-02T10:29:05 | 2012-08-02T10:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.contrib import admin
from basehtml.home.models import *
admin.site.register(UploadSliderImg)
| [
"ahmetemrekirgil@gmail.com"
] | ahmetemrekirgil@gmail.com |
b9d3f4d3f34f55ac6f95948cb5e32cf359ce5c00 | c6687d822e2a5f7e437f3c24e85917f01c083cfd | /app/imagedownloader.py | 85fa47e2da16a1b8922a3371297002a46c400a4c | [] | no_license | pankajsinghrawat/ava | bde4951ea8ef09360772e7f359528e84b8cc83ad | 48bfdcf95fc5cef7b8d163b81802f1d2adeeb62f | refs/heads/master | 2020-03-21T18:56:55.021345 | 2018-06-27T19:14:19 | 2018-06-27T19:14:19 | 138,922,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from bs4 import BeautifulSoup
import requests
import urllib.request
import time
file = open("../data/train.txt", "r")
urlprefix = 'http://www.dpchallenge.com/image.php?IMAGE_ID='
headers = {
'User-Agent': 'Mozilla/5.0'
}
count = 0
try:
for line in file:
imageid = line.strip()
fullurl = urlp... | [
"noreply@github.com"
] | noreply@github.com |
ad0e22e38a0cabad285892fabed6f049c4e102a0 | ba9fc166ea9adb64e522471a4fc96e1810862516 | /examples/simple_rpc_server.py | db4cdd58130f340bb9dc83a573bde92b1e461b2d | [
"MIT"
] | permissive | martincolladodotcom/amqpstorm | 30ca347234f86b653ea6c0327ba93b7d40b8dee6 | 8c320601b92482472f3e5fe366221fa276c49004 | refs/heads/master | 2021-08-07T13:52:53.570087 | 2017-11-08T07:54:59 | 2017-11-08T07:54:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """
RPC Server example based on code from the official RabbitMQ Tutorial.
http://www.rabbitmq.com/tutorials/tutorial-six-python.html
"""
import amqpstorm
from amqpstorm import Message
CONNECTION = amqpstorm.Connection('127.0.0.1', 'guest', 'guest')
CHANNEL = CONNECTION.channel()
CHANNEL.queue.declare(queue='rpc_queue... | [
"me@eandersson.net"
] | me@eandersson.net |
c6b1027798ea7efbde4529e0fcdf805a6712af82 | a6eee38c1af50c4e0361760a1a6ab32faf3a6f23 | /src/evaluation/predict.py | 22b459d13228f60ad8c98dca5cf690254e4aec13 | [] | no_license | saisnehasv/2020_CSE_14 | 60c0e0c6ba285c486e0f47e12cb2420548bda571 | 854894f8c90368f7a282a1e3f913d038378aabe8 | refs/heads/main | 2023-06-17T20:13:48.084063 | 2021-07-15T19:02:47 | 2021-07-15T19:02:47 | 361,099,867 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from lipnet.lipreading.videos import Video
from lipnet.lipreading.visualization import show_video_subtitle
from lipnet.core.decoders import Decoder
from lipnet.lipreading.helpers import labels_to_text
from lipnet.utils.spell import Spell
from lipnet.model2 import LipNet
from keras.optimizers import Adam
import ffmpeg
f... | [
"noreply@github.com"
] | noreply@github.com |
5c2f5a4d3afa0546859b1ee116e19d77620fcff3 | 827e0c2b46043635c307eb985654afb56efa76d4 | /python_stack/django/django_full_stack/hammer_and_thistle-master/hammer_and_thistle-master/hammer_and_thistle/urls.py | 32e6c072f95c8f7a7108dc01af5bd6c4199b303a | [] | no_license | efaro2014/Dojo-Assignments | 0f51e695a99bcc830de0fa2b56cd4d0f1d32ba97 | bcf5150f00ffaf408167cb9357b979dd80b4d509 | refs/heads/master | 2022-10-29T10:03:00.837990 | 2019-12-27T05:40:53 | 2019-12-27T05:40:53 | 230,378,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """hammer_and_thistle URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home... | [
"efarkbg@gamil.com"
] | efarkbg@gamil.com |
b8d7d87c6f928ea9a18d3b66ed5cfefaaeaff7ae | cff7af9a3ef1b656bd4c2263251dbf3aa7921af3 | /leetcode/78.py | a7a08b35f656714bb46b78ecce6d3b7f6407045a | [] | no_license | geekben/codeiscool | 3c2f348cceafaadadc448a1a4e723dd0adefae36 | ef04457edd6343b49b66ba96425140baf03fc07f | refs/heads/master | 2023-04-17T19:54:51.588627 | 2023-04-16T05:58:26 | 2023-04-16T05:58:26 | 21,737,729 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
ret = []
ret.append([])
for i in nums:
tr = ret[:]
for r in ret:
tr.append(r + [i])
ret = tr
re... | [
"bn0418@gmail.com"
] | bn0418@gmail.com |
40b41c66fbb21c566055b1a9a5b54f665202643f | e2fc034597f13a0e0b106e4f5fde737eb4d8d448 | /scr.py | 00513f50ad014db1b86d0c596e65e80615a31e25 | [] | no_license | s5uraj/Python | 9d8fca0e0f6856bbdeb8a833775d5d337e61816c | 1d07f05532a7a58b0361ba6e4fd38c53c7ab6722 | refs/heads/master | 2021-05-05T06:10:38.051930 | 2018-03-12T05:21:44 | 2018-03-12T05:21:44 | 118,786,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import random
new_list=[]
def rec(my_list):
if not my_list:
return new_list
else:
ran=random.randint(0,len(my_list)-1)
new_list.append(my_list.pop(ran))
rec(my_list)
return new_list
word="Suraj"
my_list = [i for i in word]
sc = ''.join(rec(my_list))
print(sc)
| [
"noreply@github.com"
] | noreply@github.com |
9851e0e373c9fa6897b1f6abde21d140a495945e | b7620d0f1a90390224c8ab71774b9c906ab3e8e9 | /aliyun-python-sdk-gpdb/aliyunsdkgpdb/request/v20160503/DescribeSQLLogsOnSliceRequest.py | 6c001777dbc8db958ef3c54d9c3f181732da9bde | [
"Apache-2.0"
] | permissive | YaoYinYing/aliyun-openapi-python-sdk | e9c62940baee1a35b9ec4a9fbd1e4eb0aaf93b2f | e9a93cc94bd8290d1b1a391a9cb0fad2e6c64627 | refs/heads/master | 2022-10-17T16:39:04.515562 | 2022-10-10T15:18:34 | 2022-10-10T15:18:34 | 117,057,304 | 0 | 0 | null | 2018-01-11T06:03:02 | 2018-01-11T06:03:01 | null | UTF-8 | Python | false | false | 2,838 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
06c1b7128e4e03525c80978f40c0045334e11190 | c5d68f58c9523257a8b41954553f5cff2cd5f487 | /Secao_08_Lista_Ex_73e/ex_67.py | b48841401026d069e655abe6f4ea6e4a504e6079 | [] | no_license | SouzaCadu/guppe | 04bfcde82d4404eb9ec795006c6931ba07dc72b6 | 1f8a672230c5c27712f522e1e34516591c012453 | refs/heads/master | 2023-03-13T01:32:51.019871 | 2021-02-25T17:02:59 | 2021-02-25T17:02:59 | 320,908,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | """
faça uma rotina que receba como parâmetro um vetor de caracteres e
seu tamanho. a função deverá de ler uma string do teclado, caractere por caractere
usando a função getchat() até que o usuário digite enter ou o tamanho máximo do
vetor seja alcançado.
"""
def getchar():
"""
Função que retorna o caractere ... | [
"cadu.souza81@gmail.com"
] | cadu.souza81@gmail.com |
1dd08619ac36d52f32068d872beef468e6a1960d | f73772977253aed97b5d68045e607560e6376b91 | /Day 38 January 25.py | 9415510da47efc3ce5c91e7a61e7c2c7def6f2c4 | [] | no_license | elvogt/Mentorship | f98d87a110c0086c95a34bba7254aa540d8e5cf3 | 1e7448d029057679da5f662ccc7345dbe883a8aa | refs/heads/master | 2021-01-10T23:54:04.032945 | 2017-05-08T19:11:30 | 2017-05-08T19:11:30 | 70,090,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,862 | py | import urllib.request
from urllib.parse import urlparse
import datetime
import re
from pathlib import Path
import os
import json
import io
import sys
import argparse
from collections import OrderedDict
from bs4 import BeautifulSoup, SoupStrainer
global tagOption #Do you want to get the anchor tags?... | [
"noreply@github.com"
] | noreply@github.com |
f2d735b073eda95981eb74d263efe7b8b08b0939 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 178/1368. Minimum Cost to Make at Least One Valid Path in a Grid/Minimum Cost to Make at Least One Valid Path in a Grid.py | c0f974e882a945b86410b30ef80cb3fbd07b4071 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Minimum Cost to Make at Least One Valid Path in a Grid
@time: 2020/3/5 14:47
"""
class Solution:
def minCost(self, A: list(list())):
n, m, inf, k = len(A), len(A[0]), 10 ** 9, 0
dp... | [
"905317742@qq.com"
] | 905317742@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.