blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d923a516024796b02d871f62f60e7086f316a5a | 1691647418b8ab019ccb76abfd3c807e1f2fe593 | /d11/11_2.py | 4e216ae9c7efee7d734d25e56aca450f4779f7ce | [
"CC0-1.0"
] | permissive | szeko34/Adventofcode2020 | 0e54f24056e50190df8e78b9354ae38cdf593bbd | 4896df41a0664f2424bb8466a3b80a181bb44e68 | refs/heads/main | 2023-02-16T08:56:49.367731 | 2020-12-25T22:42:09 | 2020-12-25T22:42:09 | 319,099,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | subor=open("11_1input.txt","r")
pole = []
riadky=[x.strip() for x in subor.readlines()]
pole.append(list("."*(len(riadky[0])+2)))
for x in riadky:
pole.append(list("."+x+"."))
pole.append(list("."*(len(riadky[0])+2)))
#print(pole)
def susedov(p,x,y):
tmp = 0
for i in -1,0,1:
for j in -1,0,1:
... | [
"42772637+szeko34@users.noreply.github.com"
] | 42772637+szeko34@users.noreply.github.com |
a6909b832a4db8007dd5d57edd5f98c63f804d21 | bda849e79d847dcc0015388dac2617fec0fd873f | /puzzle18.py | 4e904a825e6a678829b84dcde3f0fee6394801f5 | [] | no_license | ferretj/adventofcode2017 | 5044c3c4bdbe1bee6da281025bc0889843478adc | c1262d7ec3f56e6e5265740108c17420cc874125 | refs/heads/master | 2021-09-10T20:07:29.215943 | 2018-04-01T10:50:58 | 2018-04-01T10:50:58 | 112,783,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,949 | py | import sys
from cStringIO import StringIO
from collections import defaultdict
# PROBLEM 1
# we store register states in a dictionary and overwrite a
# frequency variable each time a sound is played
#
# instructions are represented by functions that are applied following
# the order and values defined in input
#
# we ... | [
"johan.ferret1@gmail.com"
] | johan.ferret1@gmail.com |
a44cd5735a6d4ffd2ad97cf097d7bfc89d468eff | f7c3b1f65cc4d6dba1dc9dcf70f523497a14d791 | /mujoco/learner/baselines/baselines/common/vec_env/dummy_vec_env.py | 447f78ad49cd9c078bd1690e9dfd4e2c4d30fa19 | [
"MIT"
] | permissive | hiwonjoon/ICML2019-TREX | b9cac1ac5d97b22374a92f2f3cf5d8956cdb2482 | 44f92b61ca6c79ac22d468382d4f2fbee164fb7a | refs/heads/master | 2021-06-16T15:52:33.325054 | 2021-04-10T04:57:24 | 2021-04-10T04:57:24 | 184,654,702 | 76 | 24 | MIT | 2020-01-28T22:11:19 | 2019-05-02T21:36:24 | Python | UTF-8 | Python | false | false | 3,304 | py | import numpy as np
from gym import spaces
from . import VecEnv
from .util import copy_obs_dict, dict_to_obs, obs_space_info
class DummyVecEnv(VecEnv):
"""
VecEnv that does runs multiple environments sequentially, that is,
the step and reset commands are send to one environment at a time.
Useful when de... | [
"hi.wonjoon@gmail.com"
] | hi.wonjoon@gmail.com |
27f4fdc29c4407956cd4ba901e109a5a92fbefce | 0678320c0a67f8f8733232a35e1dddecf009781e | /FRIOC_kmedoids.py | 208504ddd5d4b119bbe92d03c822ebc628d80f10 | [] | no_license | shengsoft/k-medoids-cluster-method | 769a96ab075d8f80683f3176e068b0e340b309f6 | aa8360cf65afb341fae876a7e0f7a1b0c57d90da | refs/heads/master | 2022-12-24T07:38:55.408499 | 2020-09-28T00:07:18 | 2020-09-28T00:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 9 14:53:13 2020
@author: NoufAlghanmi
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 25 14:49:34 2020
@author: NoufAlghanmi
"""
from pyclustering.cluster.kmedoids import kmedoids
import numpy as np
import random
class... | [
"evgeniyeremenkoe.mentor@gmail.com"
] | evgeniyeremenkoe.mentor@gmail.com |
23af4eb3d098b3aee766117532d1b5bf1e9dffef | 853ed913766013f63c86c1093b2a8b3327941326 | /CNN_on_Minist/utils/CAM.py | 3f498f03efe5646a8c7369d29c1fa820b8563bcb | [] | no_license | SY-Ma/CNN-on-Minist | c492ec31a2f6a188f1ab4839e5e2fe865a77bb34 | 214da992d639989884e3b0f49264bce0f95a1b11 | refs/heads/main | 2023-03-29T09:43:56.897072 | 2021-03-31T13:32:27 | 2021-03-31T13:32:27 | 336,547,211 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # @Time : 2021/02/16 05:58
# @Author : SY.M
# @FileName: CAM.py
import torch
import numpy as np
from cv2 import cv2
from datetime import datetime
def cam_figure(draw_data, labels, net):
"""
绘制热力图
:param draw_data: 最后一层卷积之后的 四维向量 batch channel H W
:param labels: 对应标签向量
:param n... | [
"noreply@github.com"
] | SY-Ma.noreply@github.com |
f8756bb104f73e67fdce5e1320a6fbfdeb3956ae | 6bd8c1eb7d88f8690924ae489782be46404a67d2 | /ml/config.py | ec7d1857fcbec77e65f27096723fee1ea4107c0e | [] | no_license | chridey/altlex | 167b289aba4beadc97a91c00c95600170ded43da | dd89175eb980b96d6f0f2822cb8b6cb86f294709 | refs/heads/master | 2020-04-10T06:44:29.482486 | 2018-04-04T18:53:20 | 2018-04-04T18:53:20 | 52,225,321 | 11 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import BernoulliNB
from sklearn.ensemble import AdaBoostClassifier
from sklearn.svm import SVC, LinearSVC
from sklearn.linear_model import LogisticRegression, SGDClassifier
try:
from sklearn.neural_network import MLPClassifier
except Impor... | [
"chidey@cs.columbia.edu"
] | chidey@cs.columbia.edu |
0da1ffb7c4fef9cf29fa5547dee86d63309e0e51 | 26255e522e3aa341c0d0f2a2b62639295ffa037a | /else_statement.py | 1a80a185662047185ab0554d622dd4fff483575c | [] | no_license | dishant470266/hacker_rank | 2b74267dffd7c7a2845615b20f749e45d5d58db4 | f880d8f37831feb0cefa6406e1b5596cfa02ac17 | refs/heads/master | 2020-08-09T12:19:06.112506 | 2019-12-12T10:34:09 | 2019-12-12T10:34:09 | 214,086,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | age = int(input("enter your age"))
if(age>=14):
print("you are aboue 14")
else:
print("sorry you can not above 14") | [
"noreply@github.com"
] | dishant470266.noreply@github.com |
7a276e1d3bec4ce95f9b4a892b2031fa589f4dbc | 7ff2c7224d5ccaffb9ed31b0678d67feaf791a94 | /build/universal_robot/ur10_e_moveit_config/catkin_generated/pkg.installspace.context.pc.py | 9e40b3463b8bfa9346ecde1cabb2a2736aab8e92 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Orwatronic/MAS_513 | 77e40544f837deb60beef0cfa95248b815ad5ba4 | d6c2ffd4ef604fe814b32ee08335da5ea718dad9 | refs/heads/master | 2023-08-27T14:57:58.356248 | 2021-11-15T09:36:25 | 2021-11-15T09:36:25 | 424,366,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur10_e_moveit_config"
PROJECT_SPACE_D... | [
"orwah_92@hotmail.com"
] | orwah_92@hotmail.com |
c7dd6e6ee742438cce821562dfac0ff4ae39d0b6 | a7963cef9176a6a73255e98bee9b1cda45a91423 | /python2/implementation/findDigits/findDigits.py | 126ce646d193fa0c2a4f3a0b0cf66a5519249aea | [] | no_license | ayazhemani/hackerrank-py | a1394fb35f8b4d2c3e68e18b5c8d5976850adb2d | fcf3755b62fe0644af763875e3a00be962941a6d | refs/heads/master | 2021-06-05T05:09:26.047540 | 2021-04-25T01:54:51 | 2021-04-25T01:54:51 | 131,791,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | """Solution for HackerRank challenge: Find Digits
"""
def find_digits(number):
"""Count the digits in a number that divide into that number cleanly.
Args:
number (int): Number whose digits will be counted
Returns:
int: Count of digits in number that are divisible.
"""
count = 0
... | [
"ayazhemani@gmail.com"
] | ayazhemani@gmail.com |
63fafdc0c526719ba3957ec88239cbf44de85f76 | dfca5d9e5d62f0898261e015d18e7527fe19395e | /todoapp/urls.py | 567ade8c19624048fe36dd769b4d0a56f328b6a7 | [] | no_license | keshavsharma98/TodoApp | 2d8dbd837c357f20d5ba7c991230c0288673ceb0 | 7ccdba672cd917df3e011f21892610a50e16b32e | refs/heads/master | 2020-04-29T03:04:11.142013 | 2019-03-15T10:17:26 | 2019-03-15T10:17:26 | 175,795,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | """todoapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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... | [
"16ucs092@lnmiit.ac.in"
] | 16ucs092@lnmiit.ac.in |
399c7e83ea6bbed0640c8024c90550fe02841b5e | d6b556ff44b9cfcb54971ee5b8e4a45a2178e2a6 | /ies_base/filters.py | e56ef15e12341b70a8d6be1d3e0b3d64b9d0d33e | [
"MIT"
] | permissive | InstanteSports/ies-django-base | 51db29735a0c4df5e0d7e6fc2d80af7ddf03bdc9 | 283fe741dd190ae13a256543bff09aa169607b78 | refs/heads/master | 2020-04-07T05:29:54.616249 | 2017-04-21T20:15:52 | 2017-04-21T20:15:52 | 32,108,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | from django_filters import Filter
from django_filters.fields import Lookup
from django.db.models import Q
from functools import reduce
class ListFilter(Filter):
def filter(self, qs, value):
return super(ListFilter, self).filter(qs, Lookup(value.split(u","), "in"))
class MultipleFieldListFilter(Filter):
... | [
"jonzlin95@gmail.com"
] | jonzlin95@gmail.com |
2f099ec6af52ee2c90fd48ee346f03e471790fa3 | dd229f5bd008c3dc011efddfa981dbc250dd6d4c | /detection.py | 0264d6fdc40654b745a6139af4ee32ea72791c98 | [] | no_license | prat96/crude-lane-detection | 019bed6de91eb02f16a64f9f498eefeab7d76d19 | b8636779756d3c4cc37449456069c13fb3dce42f | refs/heads/master | 2020-04-29T00:33:44.415499 | 2019-03-14T20:58:17 | 2019-03-14T20:58:17 | 175,698,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | import numpy as np
#import matplotlib
#import matplotlib.pyplot as plt
#import argparse
import cv2
import imutils
import time
cap = cv2.VideoCapture('testvideo2.mp4')
# loop through until entire video file is played
while(cap.isOpened()):
# read video frame & show on screen
ret, frame = cap.read()
snip =... | [
"pratheek.b@tonboimaging.com"
] | pratheek.b@tonboimaging.com |
3e38218f72b83a274a3c9d0dd2a44e3340d34023 | 4d52634ea8ac23cd1b4e4b3c476962bce7120d08 | /setup.py | 2b9f17e6e86f0a919432259e775ac76ea32c5eb4 | [
"MIT"
] | permissive | FiMDP/FiMDPEnv | 5d3064f740ae2289ffe095d1b38d83b7cf37dab8 | 86445155a89304927ddf4d6714319edd50c7c4f2 | refs/heads/master | 2023-02-21T03:36:42.424987 | 2021-01-23T19:15:56 | 2021-01-23T19:15:56 | 279,793,889 | 2 | 1 | MIT | 2020-10-24T00:34:17 | 2020-07-15T07:11:27 | Jupyter Notebook | UTF-8 | Python | false | false | 931 | py | from setuptools import setup
import pathlib
from fimdpenv import __version__ as version
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
setup(
name='fimdpenv',
version=version,
description='Simulation enviro... | [
"contact@prny.me"
] | contact@prny.me |
bb07e28b1ad61718f3d83d3badd3e2a813c4fd6e | a06c598f64521b3c8fd0361fd18ce442285e6a2c | /readNovel.py | f3f0a0729b9636bf7c9edb119b68ea7d248ddfdd | [] | no_license | jefftsai8049/ML-Deep_Learning_HW3 | 37bbe7507dabd7c86cac0eda4f4e6933441d82b8 | 2d8c4ce2fc9ff0311503ad3d5a137255c71c892f | refs/heads/master | 2021-01-22T03:39:49.544368 | 2015-05-20T10:15:12 | 2015-05-20T10:15:12 | 35,473,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,882 | py | __author__ = 'jefftsai'
import csv
class readNovel:
# def __init__(self):
# # open pre-processing raw file
def findStrat(self):
# print("find start")
# find where is the article start
i=0
while 1:
str = self.file.readline()
# find does the li... | [
"jefftsai8049@gmail.com"
] | jefftsai8049@gmail.com |
3bb75f203a23abf95a1933aa156d793213e197ed | 1ed734e04efe2547fc33f0220ca4b97a74f08d48 | /google_play_worker.py | dd592c8d9494667a948e10afb397b3374838cb09 | [] | no_license | tramX/google_play | 1a8d30e9b8aa40a2f8e9acd50c1e03e0d957e043 | 45a4459d8bd95d661ec8eee1e71606791ad9bc3a | refs/heads/master | 2020-03-28T19:37:39.527915 | 2018-09-16T13:08:09 | 2018-09-16T13:08:09 | 148,993,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
import time
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
options = Options()
options.add_argument('--headless')
options.add_argument('--disable-gpu')
driver = webdriver.Chrome('{}/chromedriver'.format(BASE_DIR), c... | [
"podwar2008@gmail.com"
] | podwar2008@gmail.com |
5617b15208b32212a8b16540764583c46d362158 | 403d1f4acae8edc4ac24bc4830c6f1dababfecaa | /layers/dynamicGroup.py | 4b0e63e338a27726c65f8758262b3bc8b8e8d0e2 | [] | no_license | coleary9/RockBrawl | b5539b01670f5aad3c86f245df346b74bc37bdfa | 1bc7d983481a62ee178ba4774f445e37b16d3b0c | refs/heads/master | 2021-01-01T15:55:36.569836 | 2014-04-09T17:49:00 | 2014-04-09T17:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # BitCity Studios:
# Cameron O'Leary <coleary9@jhu.edu>
# Steve Griffin <sgriff27@jhu.edu>
# Jeremy Dolinko <j.dolinko@gmail.com>
# Jonathan Rivera <jriver21@jhu.edu>
# Michael Shavit <shavitmichael@gmail.com>
import pygame
from pygame.locals import *
import glob
from pygame.sprite import Group
class DynamicGroup... | [
"coleary9@jhu.edu"
] | coleary9@jhu.edu |
104b94d81875cb9335562f944b7bdd291bad5647 | b2933c228900b157b4996ae0fccd20fecd9de07f | /habu/cli/cmd_crack_luhn.py | c48e6e6ca310fe8026a9f89388b3cc2bb87a144c | [
"BSD-3-Clause"
] | permissive | dolboBobo/habu | 841638d233ac7ef97ebbd105d5cea9a20801f103 | d9f2df6ac66b7527f7a731f943af07726ff7e2e2 | refs/heads/master | 2020-12-04T22:04:06.396948 | 2020-01-23T12:06:23 | 2020-01-23T12:06:23 | 231,915,598 | 1 | 0 | BSD-3-Clause | 2020-01-23T12:06:24 | 2020-01-05T12:40:39 | null | UTF-8 | Python | false | false | 1,564 | py | #!/usr/bin/env python3
import sys
import click
def luhn_validate(number):
""" Source code from: https://en.wikipedia.org/wiki/Luhn_algorithm"""
sum = 0
parity = len(number) % 2
for i, digit in enumerate([int(x) for x in number]):
if i % 2 == parity:
digit *= 2
if dig... | [
"fabian@portantier.com"
] | fabian@portantier.com |
216973cccfef4cf492f226bef5f4b07a8f34663e | a35132aafead5d02307d7b35818e6ad9f370c792 | /testPWM.py | ebf96ab396df82995652c2f93f2e471082e74d2d | [] | no_license | CidrolinF/Livent-Maido | 9ae7449d1c87372c4d0e56ed552eb3e2e1f2d088 | e19141bbbb8a08fa6f94f419524c13e434ed52d9 | refs/heads/master | 2021-06-30T21:27:04.986047 | 2021-06-20T12:48:20 | 2021-06-20T12:54:16 | 238,229,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import RPi.GPIO as GPIO
import time
GPIO.cleanup()
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.OUT)
rapport = 100
p = GPIO.PWM(12, 40) #Channel, Frequence
p.start(rapport)
time.sleep(100) | [
"brousse.emmanuel@gmail.com"
] | brousse.emmanuel@gmail.com |
f69d78501aeee4313bc452aba57e92f092e7065e | af9b483e99c69613ba903d7817f111d7ff89b197 | /venv/bin/wheel | 371261a0565c97b2573e19e1191123b3847a6dc9 | [] | no_license | arnabdutta73/DC | c3dc9f53572456a0938f59e2b01191d5efff98c2 | fcb404b2f5c32f26c4c952686ac9aaeeb24fd573 | refs/heads/master | 2023-02-26T02:09:28.009838 | 2021-02-05T06:50:21 | 2021-02-05T06:50:21 | 113,568,916 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/root/PycharmProjects/DC/venv/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"arnabdutta73@gmail.com"
] | arnabdutta73@gmail.com | |
89fbc7f52117689c4483dbcb5398d8bc7ddec367 | b7eed26cf8a0042a61f555eed1e9bf0a3227d490 | /students/piatkowska_anna/lesson_05_lists/coma_code.py | d70d664d3dab57917ac70321777fd49a79eeb24b | [] | no_license | jedzej/tietopythontraining-basic | e8f1ac5bee5094c608a2584ab19ba14060c36dbe | a68fa29ce11942cd7de9c6bbea08fef5541afa0f | refs/heads/master | 2021-05-11T11:10:05.110242 | 2018-08-20T12:34:55 | 2018-08-20T12:34:55 | 118,122,178 | 14 | 84 | null | 2018-08-24T15:53:04 | 2018-01-19T12:23:02 | Python | UTF-8 | Python | false | false | 1,077 | py | """
Comma Code
Say you have a list value like this:
spam = ['apples', 'bananas', 'tofu', 'cats']
Write a function that takes a list value as an argument
and returns a string with all the items separated by
a comma and a space, with and inserted before the last item.
For example, passing the previous spam list to the fu... | [
"anna.piatkowska@tieto.com"
] | anna.piatkowska@tieto.com |
1af31878fc9c13d021ae10057dec2f1535d3594a | a61bf859ceeb1ba98de3863225e07b29e1d7ce8a | /thonny/plugins/micropython/base_api_stubs/framebuf.pyi | c048df53f12bfad86fd3291b592a2dc18112ffa1 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | thonny/thonny | 3974b1860703e8450b837863682117f525a886c6 | 8fc9f5c7cbbe1d1c82aa5503ec4b684e28aa608c | refs/heads/master | 2023-08-31T03:04:34.685140 | 2023-08-24T11:38:36 | 2023-08-24T11:38:36 | 163,728,962 | 2,788 | 1,048 | MIT | 2023-08-10T18:59:37 | 2019-01-01T10:29:50 | Python | UTF-8 | Python | false | false | 8,369 | pyi | """
Frame buffer manipulation.
Descriptions taken from:
https://raw.githubusercontent.com/micropython/micropython/master/docs/library/framebuf.rst.
This module provides a general frame buffer which can be used to create
bitmap images, which can then be sent to a display.
"""
__author__ = "Howard C Lovatt"
__copyrigh... | [
"aivar.annamaa@gmail.com"
] | aivar.annamaa@gmail.com |
559af56ed2651ded432e425c33ff602ed70a46f0 | a3cd7bce0c691d1904ba9d7651fdeda6dbdbff89 | /Intro Scripts (LPTHW)/ex15.py | fd4447dd2b8c211340f42f9cdf9951bb830ddbe7 | [] | no_license | mkyle1121/python-git | 4a0bc7b72a39f5cb20ffc542c626eebffedf0b95 | e30d4d2177d50fa4054a968a168e8cc4862931ab | refs/heads/master | 2020-03-26T00:51:02.249446 | 2019-02-25T13:34:19 | 2019-02-25T13:34:19 | 144,070,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r:" % filename
print txt.read()
print "I'll also ask you to type it again."
fileagain = raw_input("> ")
txtagain = open(fileagain)
print txtagain.read()
| [
"mkyle1121@gmail.com"
] | mkyle1121@gmail.com |
5ce07c778f84bbeedac4634536f06c036966a6c8 | ae258e3207a5a14f43c3a290cc0da4f1be4d805f | /project/User/migrations/0001_initial.py | aee0cad4eaebcf200cea3344d491da90a97029d2 | [] | no_license | abbnm2017/django_blog | d1d87985c71b4f957efca8f835bad2abc55bc321 | 9611cd01cf27cd570fe38c7d34e95475f9b59154 | refs/heads/master | 2021-08-07T15:27:46.774695 | 2021-07-19T13:43:22 | 2021-07-19T13:43:22 | 239,752,902 | 2 | 0 | null | 2021-07-19T13:43:22 | 2020-02-11T12:08:27 | JavaScript | UTF-8 | Python | false | false | 13,807 | py | # Generated by Django 3.0.1 on 2021-03-01 15:27
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"437627679@qq.com"
] | 437627679@qq.com |
e5564c0432e2b79a7ad496285d4f20729c559f06 | 657f9303df782f57f91504cdd4760437de29713d | /venv/ven/bin/pip3 | 446f414893a5b2e41486d2b53c706d05d452d7d7 | [] | no_license | bopopescu/django_mysite | 3c737a97b842cc2b825dfe0bd9b31a1b12cad4c8 | f98172691e8f4e335f0ee0b1bad719a011b1eb60 | refs/heads/master | 2022-11-16T09:14:03.669614 | 2018-07-19T14:15:24 | 2018-07-19T14:15:24 | 281,803,244 | 0 | 0 | null | 2020-07-22T23:24:21 | 2020-07-22T23:24:20 | null | UTF-8 | Python | false | false | 418 | #!/Users/shuikuhiro/myPythonProject/django_mysite/venv/ven/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"dustin_chu@hotmail.com"
] | dustin_chu@hotmail.com | |
86a9d878da99500d17d294e4526e7f601a7a2b1f | c17b41ed6bf7e9c180772a67b77e1194ab38bf77 | /DialogFlow/admin.py | daca1b8c6caed0504df565d7643423e1fa26938a | [] | no_license | Avish34/SuggestionSystem | 8c337d350c248524b2249892e39deb027d66cf39 | 21de04cebb19af86c1ccfb9ae94d921f5e3621c0 | refs/heads/master | 2023-06-10T02:42:11.414510 | 2021-07-02T17:00:06 | 2021-07-02T17:00:06 | 375,990,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from .models import Suggestion,accuracy_db
# Register your models here.
admin.site.register(Suggestion)
admin.site.register(accuracy_db)
| [
"porwalavish@gmail.com"
] | porwalavish@gmail.com |
19729a470a6e68a8af30ae2ee2f1e593f9e228a0 | 62442c2547b22aae27f3bb3a0d3f84a9e8e535a0 | /python/patterns/kwargs.py | 9c00601baf68dfe7fad45e8fb51dffd185df5ce1 | [] | no_license | jsdelivrbot/demos | 935729fe9afde33709c4e4e74863b64c16c33b33 | 01a97eda371c2d832c9f2c907a945310662e0710 | refs/heads/master | 2020-04-10T10:35:44.039560 | 2018-12-08T10:53:29 | 2018-12-08T10:53:29 | 160,970,588 | 0 | 0 | null | 2018-12-08T19:13:00 | 2018-12-08T19:13:00 | null | UTF-8 | Python | false | false | 244 | py | def print_params(**kwargs):
for key, value in kwargs.iteritems():
print "%s = %s" %(key, value)
print_params(name="Amjed", age = "27")
_dict = {'location':'Berlin', 'interests':['Swimming', 'Hacking','Paragliding']}
print_params(**_dict)
| [
"amjedonline@gmail.com"
] | amjedonline@gmail.com |
6cc9a2bf1d6c4aa1f54516ab07cd440e380f4ff6 | aa7e7be67d3f6b91ef753996577e6b0fe5ef712b | /api.py | 8c14203afb5b5248d187d632f2024a7463b52ea8 | [] | no_license | x2y2/salt-api | 53715698ffd7002eef8c3435cede33cc57a61e4d | 8e68f8659716a06fc713ea04a0719bde7b1a6223 | refs/heads/master | 2016-08-08T20:40:51.296020 | 2016-02-24T07:00:54 | 2016-02-24T07:00:54 | 51,803,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | #!/usr/bin/python
#salt-api
#wangpei
#20160215
import sys
import pycurl
import StringIO
import time
import json
def api_login(url):
ch = pycurl.Curl()
ch.setopt(ch.URL,url + '/login')
info = StringIO.StringIO()
ch.setopt(ch.WRITEFUNCTION,info.write)
ch.setopt(ch.POST,True)
ch.setopt(ch.SSL_VER... | [
"wangpei-it@bestpay.com.cn"
] | wangpei-it@bestpay.com.cn |
621243ff90c4c5230de219342c957a5f7985ff33 | 94690cf598d314a23a6147bbf6e02c6277f97081 | /in_progress/82_pathsum_3ways/pathsum_3ways.py | 0fec107514a89fd09b1dded51e6104cfd3ed939e | [] | no_license | kcollett1/ProjectEuler | 7e3923acb4ca01c07f21278fc30afaf9b95ef4be | 3ae613dd5124ec31e6b16cb9693cae3481e7b307 | refs/heads/master | 2020-09-12T17:19:39.802759 | 2020-02-29T04:48:57 | 2020-02-29T04:48:57 | 222,492,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | #!/Users/kcolletti1/opt/anaconda3/bin/python3
# load data into variables to work with ###
import sys
with open('matrix.txt','r') as f: rows = f.readlines()
for i,row in enumerate(rows):
rows[i] = [int(i) for i in row.strip().split(',')]
# done loading data #######################
# start algorithm ###########... | [
"collettikatrina@gmail.com"
] | collettikatrina@gmail.com |
bf162809e894ae9f2f2a007b772c95208446e4b6 | cc4b47a37a7e7df6a3d126c204dcd4d5d63679c6 | /instagram/urls.py | 856786a5b906a971ef9ad7ebfe2c446064bd4de5 | [] | no_license | dev-jromero/clone-instagram | 3f6b18f4694c5f7e3a5a96c7e18100030c61cbd3 | ba98551c0b9f67af9e7e91e69ffcd92efc32f4e7 | refs/heads/master | 2023-01-27T20:36:08.810001 | 2020-12-07T04:51:28 | 2020-12-07T04:51:28 | 312,429,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | #django
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from instagram import views as local_views
from posts import views as posts_views
from users import views as users_views
urlpatterns = [
path('admin/', admin.site.url... | [
"n.bjhon@gmail.com"
] | n.bjhon@gmail.com |
5c3ee9a10b870a6960b1be14bb8646e09129068e | aeb04c24ce11d1bcec83a9d191b386c6674b667b | /q4/main.py | e470d7c74a66bdadfacfe33a7dd40251fbb24b5c | [] | no_license | PPL-IIITA/ppl-assignment-LuD1161 | 3525a42f8cc899e4d332e6b90ac4aa194f6437c6 | 212d5faf3be83fc553659ca06086523b28fe05e2 | refs/heads/master | 2021-01-21T05:14:45.164943 | 2017-04-09T21:28:13 | 2017-04-09T21:28:13 | 83,157,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,544 | py | import csv
from boys import Boys
from girls import Girls
from gifts import Gift
from couple import Couple
from ffunctions import calc_happiness
from utils import create_log
from utils import test_cases
# Generate Test Cases
test_cases()
def main():
boys = open('./boys_list.csv')
getBoy = csv.reader(boys, d... | [
"noreply@github.com"
] | PPL-IIITA.noreply@github.com |
fb985a0496b4586135a299d0421e853779a9e9c9 | f5a8866ca08727fa99e8dce3c7d4eb413191e035 | /python/coupled/upscaling/scenario_classic.py | e7e8d5a6fea29101926c44d7e2854892c73bb65d | [] | no_license | Plant-Root-Soil-Interactions-Modelling/dumux-rosi | fecb3f48963e102a0257fbf5939b0e2973a6336c | cf6a6e5fa450b306e1ae134284419b1558c9349e | refs/heads/master | 2023-08-16T22:19:14.152346 | 2023-08-02T08:16:51 | 2023-08-02T08:16:51 | 80,874,606 | 6 | 3 | null | 2023-08-31T11:10:28 | 2017-02-03T22:24:47 | Jupyter Notebook | UTF-8 | Python | false | false | 6,360 | py | """
New reference scenario for upscaling (DL 29.3.2023)
static root system in soil (1D or 3D) outer radii with Voronoi method, or via densities
full hydraulic model with perirhizal nonlinear resistances
(steady rate approach and fixed-point-iteration in new manuscript notation)
"""
import sys; sys.path.append("../... | [
"d.leitner@fz-juelich.de"
] | d.leitner@fz-juelich.de |
63225bbdc48bbc1d2cf30ed8e8055676a3283a10 | 61ec5dfb4dc1a541f2d76cc4f9387f911ab97604 | /Reto_5_P72_Definicion.py | 9ffa45993b1b3f07e74df03f10fdf0a1a2f782e2 | [] | no_license | mysuarez/retos | 44702fe4aa36365f00f7996567e23d40a89352c6 | 5ef47fd2fd6041aa28cb40e0bff213756da66df5 | refs/heads/main | 2023-05-28T07:36:55.669628 | 2021-06-20T00:21:02 | 2021-06-20T00:21:02 | 378,524,484 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | import pandas as pd
def listaPeliculas(rutaFileCsv: str)-> str:
if rutaFileCsv.split('.')[-1] != 'csv':
try:
csv = pd.read_csv(rutaFileCsv)
#print(csv)
#Se selecciona la columna 'Year' como indice y la columna 'Gross Earnings' para aplicar la fórmula de resumen... | [
"noreply@github.com"
] | mysuarez.noreply@github.com |
d4682ee987290491b8b6b3876046b353b18161df | e4a108638231da73887f4309ebc86d2298bcc92b | /device/xiaomi/lavender.py | 3139e5f923c7094b5fb6c2dbfc3f1b2aba09b06b | [] | no_license | indi121/android-kernel-builder | 1ad72d081722d62212844b3a482bd0288050714f | cf083d889801411e63ad853eefe43cfc221c5e9d | refs/heads/master | 2023-08-29T05:42:59.839542 | 2021-10-11T08:11:00 | 2021-10-11T14:24:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # Source common kernel config
from device.xiaomi.sdm660 import *
# Device info
CODENAME = "lavender"
DEFCONFIG = f"{CODENAME}_defconfig"
| [
"barezzisebastiano@gmail.com"
] | barezzisebastiano@gmail.com |
3ce37f63bf6d0bffe9ace1740550a08181d37070 | 03dd284dc87d2cd363434fc88fc72ef25fac2673 | /lib/models/nets_32x32_small_v2.py | 52814935151130f77d04c540e746705f2ff1a326 | [
"Apache-2.0"
] | permissive | HymEric/One-GORD | 49db9f71976e352bd222d283445c17841a11a3dc | a63ecaf2b9538789ca0e761d55608a28d7194c4d | refs/heads/main | 2023-06-01T16:53:54.200546 | 2021-06-13T14:26:22 | 2021-06-13T14:26:22 | 305,567,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,013 | py | '''Based on https://github.com/igul222/improved_wgan_training/blob/master/gan_64x64.py'''
import functools
import tensorflow as tf
from lib.models.distributions import Product, Distribution, Gaussian, Categorical, Bernoulli, MeanBernoulli
from lib.models.ops.linear import Linear
from lib.models.ops.conv2d impo... | [
"noreply@github.com"
] | HymEric.noreply@github.com |
1146907bbd75471624b44319947b4ecff58ca904 | 1f0ee3ff78e369e832b66d20ddbb31049cf1c1bd | /001 - Foundations of AI/006 - Simulated Annealing/AIND-Simulated_Annealing.py | 754343630a4cdda7cfff85fa8a6f182658a61752 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | New-Skills/18_udacity_aind | 1edfc8814c2d1cde7f904ddfb432d2d2502e6d8d | 3bbaa7db3744e9817c55c2c84080e1d8b14de3d9 | refs/heads/master | 2021-09-26T09:58:31.967668 | 2018-10-28T19:59:54 | 2018-10-28T19:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,368 | py | import json
import copy
import numpy as np # contains helpful math functions like numpy.exp()
import numpy.random as random # see numpy.random module
# import random # alternative to numpy.random module
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from traveling_salesman_problem import *
"""... | [
"32975318+Axel-Bravo@users.noreply.github.com"
] | 32975318+Axel-Bravo@users.noreply.github.com |
c90f97db69e685c02a6b3c5a458d35bfec02f7f4 | d77f3560c0903e01d350f53fad37381e82c251c9 | /lm/lm/unigram/lm.py | 989eb6a1f87dbee1d4c595ab3e75a7e3fdfee7ff | [] | no_license | nymwa/ConLangLM | 160cc6f83ed2b7fea756fc2545566b93a6f92276 | de6c2be9de72fa36b29b343f2ea563885d647c43 | refs/heads/master | 2023-03-07T22:02:16.752203 | 2021-02-16T11:26:26 | 2021-02-16T11:26:26 | 288,083,457 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py |
class UnigramLM:
def __init__():
def train():
pass
def score():
pass
| [
"nymwa0@gmail.com"
] | nymwa0@gmail.com |
75d6d63c300a5e16d4a7ed4351fb194dfdbcc64d | d35a25115a0de3a0d17b5af4cf7228d8656ef684 | /staff/models.py | 09dfb733bcbe5c254b0cc1fb145af7e62aee57b9 | [] | no_license | samCyan/lenden-assignment-school | 5ac0e129b9dc2b33729a1cd9525db433723521f3 | 4eadee252d72bdecfffa3c98be879573a953af0a | refs/heads/main | 2023-03-06T17:52:28.579562 | 2021-02-11T20:36:53 | 2021-02-11T20:36:53 | 335,974,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | from django.db import models
from django.utils import timezone
from django.urls import reverse
from django.core.validators import RegexValidator
# from subject import models as subject_models
class Staff(models.Model):
STATUS = [
('active', 'Active'),
('inactive', 'Inactive')
]
GENDER = [
('m... | [
"emproarsam.sa@gmail.com"
] | emproarsam.sa@gmail.com |
0d8f0929c9fd6a1133841be35c2ccd4e36bd9902 | b7898d6021a756d06d44c1a94331d64d1954878a | /04-Python-input/fun_input.py | 803dbf1ea6dae58ad223ebfb41d38a468afd0a98 | [] | no_license | plvnamor/python_from_zero | a09860c82c1ab4845c1ee67a7c2edcec27cef1cd | 32bbb9d2ec3784c13ef3cdbdb3c5b27c27caad1c | refs/heads/master | 2023-07-19T13:02:31.856218 | 2021-09-05T07:26:40 | 2021-09-05T07:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # name = input("Введите ваше имя: ")
# print(name)
# birth_date = input("Введите дату рождения в формате дд.мм.гг(пример: 01.01.1970): ")
# print(birth_date)
# my_var = input("Введите данные: ")
# print(type(my_var))
# name = input("Введите ваше имя: ")
# print(name)
# print(type(name))
#
# age = input("Введите ваш ... | [
"pythontodaynet@gmail.com"
] | pythontodaynet@gmail.com |
c5e8e1a02936891689e43ab2b3a34523a1b77e23 | 4459c567c2c6f0722dca40bf96f45247aa42b42c | /paratope/atrous_run.py | bdfb14e40598c80a3d3a545c698fcf1d66688b45 | [] | no_license | chasingtim/attentive-parapred | b7492bdd5633bea3d87ba4e8aff8cbd8cf46d240 | 7cc895017b942c0ef5a600f170f7a0e574377132 | refs/heads/master | 2023-03-20T21:05:44.551106 | 2020-11-16T03:39:58 | 2020-11-16T03:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,334 | py | from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence
from torch import index_select
from sklearn.metrics import confusion_matrix, roc_auc_scor... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
556aa5e7687d52b1ac3a9ba0190a1ff58e8a531d | 9e22f3f2d5d0fba163bde6bd618f99aa282e0a05 | /Assignment6/mongo_Q1.py | e6c1caf3b315b424125ec0eae64855141ee0d200 | [] | no_license | sarthak-chakraborty/Advanced-Database-Coursework | 213b1c6e0bed24e363565596d46f29300e545ec1 | 0776b05bc6cfa7b1f7488f30ae0571212bf20c04 | refs/heads/master | 2023-01-18T17:58:43.018608 | 2020-11-28T19:41:11 | 2020-11-28T19:41:11 | 293,569,111 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | import sys
from pymongo import MongoClient
def readFile(filename):
friend, follower = {}, {}
f = open(filename)
for line in f:
t = line.split(',')
u1 = t[0].strip()
u2 = t[1].strip()
if u1 not in friend:
friend[u1] = 1
else:
friend[u1] += 1... | [
"sarthak.chakraborty@gmail.com"
] | sarthak.chakraborty@gmail.com |
9e52afd59b71f7801a87f9a95b3bf7ea5f791347 | ee2f57ffb3c0bec9a196090022a623a342a9ce96 | /PythonApp/PythonApp/GPOIDEmo.py | 5aa331abd1392316c0643b97e968365fc63900aa | [] | no_license | cherho0/pythonApp | c313f2b2869530a79b0cba26d68e2c61df5d5ad1 | 9c7c6fb851358bc85956e9c512ba23b80d8cc3b3 | refs/heads/master | 2021-01-20T03:54:37.721785 | 2017-09-07T03:49:49 | 2017-09-07T03:49:49 | 101,373,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | import RPI.GPIO
| [
"czy11807@ly.com"
] | czy11807@ly.com |
527fb50223d631d209522b9c5cb81dad7094ea5a | ad9521d33838efa82772172bbc93fdf6db5e1746 | /app01/migrations/0002_auto_20180513_1838.py | 6297158fb35ff712213aac6d767c88208c96cd25 | [] | no_license | luobiao12/crm | cfdc8efe81d38b582d9aecfb9887c9b46e413151 | c8350a9bae9b2b71cacad26f78ce0d6633c40755 | refs/heads/master | 2020-03-19T06:26:05.227092 | 2018-09-02T09:45:50 | 2018-09-02T09:45:50 | 136,019,291 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-05-13 10:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app01', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"593215393@qq.com"
] | 593215393@qq.com |
d1b0af35eefcb79c3d768faaf00cd5b6373b56dd | 26eabfc87d278cbefd31fde1bd531553d218f580 | /SerialRead/SerialRead.pyde | 7f3762a8fdc40ef955e6e2e4ea64b6f04bb98097 | [] | no_license | tomasdecamino/CS_TOLIS | 2a7ae35c06715c4520e24f05f7a51a94cb6ff7cb | 43b5275c47a87b5b1a6fa54ba0996e254772dc75 | refs/heads/main | 2023-08-02T19:19:15.361645 | 2021-09-16T18:13:56 | 2021-09-16T18:13:56 | 336,251,497 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 841 | pyde | # Tomas de Camino Beck
# simple example to connect Micro:Bit using serial to Processing
# At the en d micro:Bit code
add_library('serial')
inString = "0"
def setup():
size(800,300)
println(Serial.list())
#Choose proper serial device from list
myPort = Serial(this,Serial.list()[5], 115200)
myPort... | [
"noreply@github.com"
] | tomasdecamino.noreply@github.com |
0ec67c650b1c198c29e7b42669f61908f326ecf1 | 0e1275f4f7acaec3f9ef0b8d8c287c6e4ddbb985 | /get_bs_localizations/get_bs_localizations.py | 7839ec10fb62d24191cd7419ec639ad9ce916e3f | [] | no_license | ArnaudStigliani/get_interdistances | 7c79cfeeec2b8b401b8aec3c3d4ee3d801da89f7 | cbfd991c9eaf1d45471c98364c5fb482fcdfb9a0 | refs/heads/master | 2021-01-20T08:27:29.317958 | 2017-05-02T12:26:56 | 2017-05-02T12:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,797 | py | ### ----------------------------
### TFBS Interdistances program
### ----------------------------
'''
This program allows to localize transcription factor binding sites on sequences such as promoters.
You need a matrix with frequency values and fasta sequences (bound sequences (i.e. peaks)).
This program was written b... | [
"adrien.bessy@cea.fr"
] | adrien.bessy@cea.fr |
840eefdaf2de38d9b8988b8994e23875ae86ed98 | 3b1406633ec4497aab35b60f68a73bca86e268a4 | /src/datamodel/item_data.py | edff380f2172a9cd722baa2ee2487beee1631679 | [] | no_license | sujeetbansal/time_it | c7d105c5eed609ba4d92f68df68b22fa5123bedc | d3c359e858b23595ff8f19ad4c4d16e4d51a6500 | refs/heads/master | 2021-01-10T03:06:43.036352 | 2015-06-10T05:55:56 | 2015-06-10T05:55:56 | 36,936,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | class PriceInfo(object):
def __init__(self, time=None, price=None):
super(PriceInfo, self).__init__()
self.time = time
self.price = price
class ItemKey(object):
def __init__(self, url=None, seller_info=None):
self.url = url
self.seller_info = seller_info
class ItemInfo(object):
def __init_... | [
"sujeetb@sujeetb-macbookpro3.roam.corp.google.com"
] | sujeetb@sujeetb-macbookpro3.roam.corp.google.com |
334ad3411895b727e30fc249dc903ae37cf532d2 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/app/support_functions_20170809162416.py | 536f175bc0efdec61940749b0c5f4ab767c59396 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | '''
Support functions handling data import and formatting for plotting
'''
import pandas as pd
from pprint import pprint
def import_plot_data(file_path):
'''
Imports raw data from the Excel template file and returns:
1) Formatted data for waterfall plotting
2) Formatted data for spider plotting
3)... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
f57d60ae5363094c0333fe733c6af480da5f25e5 | ab5890a10c801da2c8fcb78be513b86628f61e8c | /Fino_ISIs_no_NMDA.py | 3035e4ee09976fad1cc8bfbbc9d9d67c8d0c2002 | [] | no_license | ModelDBRepository/189153 | f27a7d9156d7e9360125ab51c159897972699a36 | 90f5d579d52a19f35bfc79e66fdc52dcbc4703b0 | refs/heads/master | 2020-03-12T17:40:22.657892 | 2016-10-10T15:54:50 | 2016-10-10T15:54:50 | 130,741,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,579 | py | import numpy as np
import make_timetables as mp
import subprocess
sim_name = 'MSsim'
ISIs = [-.2,-.1,-.05,-.03,-.02,-0.01,-0.005,0.005,.01,.02,.03,.05,.1,.2]
text_sim_1 = '''include SimParams.g
include MScell/globals.g
include MScell/Ca_constants.g
include MScell/SynParamsCtx.g
include MScell/spineParams.g
include ... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
c77ca8e6e48099ccf7e5b58de592ec992418b2c3 | 916e2370c899520a37ce72f8559db513a50826b0 | /info/utils/pic_storage.py | 9edbc7959f2a57f9928c65a53ed3f790cf3912ae | [] | no_license | zhiliangsu/NewsInfo | 63d4c96add76d7c6df5b3a19335951b8b7ae8ae2 | acb5e50e8c9d847090bc9cbcd4689b4318ce07cc | refs/heads/master | 2022-12-12T11:54:00.193809 | 2019-01-08T09:43:20 | 2019-01-08T09:43:20 | 166,170,696 | 0 | 0 | null | 2022-12-08T01:32:40 | 2019-01-17T06:12:13 | Python | UTF-8 | Python | false | false | 1,445 | py | import qiniu
# 直接使用老师创建的空间
access_key = "W0oGRaBkAhrcppAbz6Nc8-q5EcXfL5vLRashY4SI"
secret_key = "tsYCBckepW4CqW0uHb9RdfDMXRDOTEpYecJAMItL"
# 上传的图片的空间名称
bucket_name = "information22"
# data --> 上传图片的二进制数据
def pic_storage(data):
"""上传用户图片数据到七牛云平台"""
if not data:
raise AttributeError("图片数据为空")
# ... | [
"zhiliangsuzhiliang@gmail.com"
] | zhiliangsuzhiliang@gmail.com |
996a4d8b92259dfe1541dcf13e0dd29de1879fa8 | f67b58f9e3eb5769fe9e6c20d40b5fe407a8754e | /codecademy_scripts/word_file.py | 7f4cb03674d4e510590d53e086077ac49857a614 | [
"MIT"
] | permissive | Faraaz54/python_training_problems | 870b92f1c66ff51d3040474ca3cad63e53ee5c22 | 24c7b42daaf54366759e1d7c4b42f9936316e94b | refs/heads/master | 2021-01-01T05:56:08.095410 | 2017-07-19T18:15:43 | 2017-07-19T18:15:43 | 97,311,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | fin = open('words.txt', 'r')
total = 0
count = 0
while True:
line = fin.readline()
total = total + 1
word = line.strip()
if 'e' not in word:
count = count + 1
if not line:
break
print count
print total
percentage = float(count) / total * 100.00
print percentage
f... | [
"noreply@github.com"
] | Faraaz54.noreply@github.com |
b01eee70d1be29720cb8de8e44af94fb9e7611a5 | 7b858e09aada0d85d223311838137cea4feaf763 | /transform_data/spark_dataframe_func.py | 5d742ac6299de81f88b57dcc660e8986fc8e5e24 | [] | no_license | sarkaraj/Timeseries-processing-with-Spark | 2a86d0e5867e9c174b183613f7ea9c22e8603d7a | 4ffac09a9661aba1b7d4e2eba3f201903321c7db | refs/heads/master | 2020-04-06T18:08:26.930604 | 2018-10-15T10:10:25 | 2018-10-15T10:10:25 | 157,678,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | from pyspark.sql.types import *
def final_select_dataset(join_dataframe, sqlContext):
join_dataframe_return = join_dataframe \
.rdd \
.map(lambda _row: column_selector(_row))
_final_df = sqlContext.createDataFrame(join_dataframe_return, schema=_schema())
return _final_df
def column_sel... | [
"rikirockers@gmail.com"
] | rikirockers@gmail.com |
6c35738d50833f629ce033cf25eb9071b1e45ad4 | de77a51bf27f6fb5d7fce32ee9950d3244dcc1ef | /fault_example/Model/gen_observation_data.py | 2096c125ff13ed1f82a0f867258bf08238978266 | [] | no_license | andrewtbanks/PEST_examples | a42963c88dd7c00ea40dcbeb3cc587e13ce05808 | dce93ad9cb2a19f3b900dc2f8ab03071cb0574bd | refs/heads/master | 2020-05-17T10:49:43.896245 | 2019-06-12T20:01:11 | 2019-06-12T20:01:11 | 183,667,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,833 | py | import matplotlib.pyplot as plt
import os
import numpy as np
import flopy
import flopy.utils.reference as srf
import flopy.utils.binaryfile as bf
import pykrige.kriging_tools as kt
from pykrige.ok import OrdinaryKriging
# sample TRUTH MODEL to get observtions (i.e. field measurements) for use in PEST
# als... | [
"noreply@github.com"
] | andrewtbanks.noreply@github.com |
88bcf722bf36eaa3bb2d33a58a45982947d04238 | ec8792f814a71bd7048d7121940631debcccdf73 | /moviEase/movieApp/migrations/0001_initial.py | 2bc07944c8f650459c06e407ddae5faf5baf8a3a | [
"Apache-2.0"
] | permissive | cs-fullstack-fall-2018/django-template-blocks1-jpark1914 | 4cb8da66aafca9ec633919cdd87f90f8440d0861 | 74586bb5b01c04f2513ca6d1aa2f7cef39e880cb | refs/heads/master | 2020-03-31T23:17:46.898296 | 2018-10-12T03:29:13 | 2018-10-12T03:29:13 | 152,649,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Generated by Django 2.0.6 on 2018-10-11 16:08
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(au... | [
"parkerj4321@gmail.com"
] | parkerj4321@gmail.com |
5963e85f285677d3ba0718ab314b440f7d1e0962 | 01cc5be0b2d0b9d34dba8ae3b1c46c0cc7a320c1 | /random question.py | c4517566a76801cd37f8e9a2dca7a6bea26907a3 | [] | no_license | Kristof910/test-gitdesktop-repo | 21cb46a399c337a56a693421a407e363788b9a95 | 97513482977433804fd7d778b3fee410d85089f3 | refs/heads/master | 2022-04-03T10:26:31.371056 | 2020-02-09T22:07:56 | 2020-02-09T22:07:56 | 239,381,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | import random
import os
def main():
questions = ["What is the purpose of a list (array in some programming languages) data structure? Name some methods of it!",
"What is the difference between a list/array and a set?",
"What is the purpose and methods of a dictionary/map data structure?",
"Fibonacci s... | [
"kristof910@icloud.com"
] | kristof910@icloud.com |
94c86e9730072b32529e4bd24889478de2d09576 | 0cc0bb76ecf846dd912a474aef1e12d2bc1d9c1e | /usexy/middlewares.py | dffcb959415f4f01562035136d16f3df7edc2460 | [] | no_license | Coder-Leo/usexy | f444b80b2ef5b1df465a613e1c9925755b260803 | 1771811ace0fd3125ccedc61d748bd7cf947f9ab | refs/heads/master | 2020-04-04T22:16:54.491129 | 2018-11-06T03:03:08 | 2018-11-06T03:03:08 | 156,317,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class UsexySpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"2427755908@qq.com"
] | 2427755908@qq.com |
dd9b23ca9906e95806ee9c082e6d68f696591cb5 | c799d4b2b864f64392287a56861be613646261e1 | /dashboards/views/question.py | bcb7a0432fa90546cec77f99a9fd41d2abc08f55 | [
"MIT"
] | permissive | losdwind/WellBeingAnalysis | 35773d169239b981af39b7d5ad609ce1377d1459 | d8d8241fcba913ea550f18ad0a85c731591ed18d | refs/heads/main | 2023-06-09T01:40:25.224391 | 2021-06-28T16:17:08 | 2021-06-28T16:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,975 | py | import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import numpy as np
from dash.dependencies import Input, Output
from dashboards.maindash import app
from dashboards.data.collector import question_col
from dashboards.utils.graph import create_graph
from dashboards.utils.stats im... | [
"rmilhazesveloso@gmail.com"
] | rmilhazesveloso@gmail.com |
7fdad68d37f374cadf6b37e0f5f43a6d37e0cd7a | cfb773fb42ec401681f172a8d02a393fde5ba2aa | /preprocessing.py | 77691517459f00e4e4fb8cee7ec0d1eba7071037 | [] | no_license | Telomeresis/ns-project-1 | 19033527a91c5c1d190205965c63d8d200bf4ec3 | 36e1cbcfd250fa5e7d8879ba68dc93950d020a64 | refs/heads/main | 2023-07-03T20:35:47.023661 | 2021-08-12T06:17:38 | 2021-08-12T06:17:38 | 339,268,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,313 | py | # Import for scraping
import pandas as pd
import numpy as np
from bs4 import BeautifulSoup
import requests
import re
import pickle
import random
# Import for network and plot creation
import networkx as nx
from itertools import combinations
import matplotlib.pyplot as plt
def preprocessing():
# S... | [
"telomeresis@gmail.com"
] | telomeresis@gmail.com |
84ee400f23c9aefc9ada9fc5f095513aefc36b5d | a860ad7bf734f446aa8386145c724be326df18e5 | /test_check_alive.py | 2ea7a61994aebc521551d40accb853b6b4ef3b13 | [] | no_license | jsylew/doctorwho-game | 300549ef43703fc07d4cb0f1b44e698b557728d7 | e807bfb2b493cfe96bc628f96e8f8ef2b625fede | refs/heads/master | 2020-12-10T05:11:16.286382 | 2020-01-13T04:18:18 | 2020-01-13T04:18:18 | 233,509,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from unittest import TestCase
from A3.fight import check_alive
class TestCheck_alive(TestCase):
def test_check_alive_yes(self):
player = {"HP": 5}
self.assertTrue(check_alive(player))
def test_check_alive_no(self):
player = {"HP": 0}
self.assertFalse(check_alive(player)) | [
"noreply@github.com"
] | jsylew.noreply@github.com |
cbd6e1bf2f4ef5451bfc4f4c2a31bd38dfeaa3e1 | 1952466ac4e09ba029dc7c0f764c8646457a62d2 | /t-shirt.py | 431096f91ada39fee3905bae907d89731230d280 | [] | no_license | marshalloffutt/functions | b38190fba39b6706b593cf50852600fd1e933153 | 05de247def352183fb25aceb9811ebd7f44fa492 | refs/heads/master | 2020-05-23T17:43:15.358514 | 2019-05-15T20:46:26 | 2019-05-15T20:46:26 | 186,873,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | # 8-3 & 8-4
def make_shirt(text, size = 'large'):
print("One " + size + " t-shirt that says: ")
print("\t" + text)
make_shirt("hello world", "medium")
make_shirt(text="Hello world", size="small")
make_shirt("Hello world")
make_shirt("O'Doyle rules") | [
"MOffutt@trcintl.com"
] | MOffutt@trcintl.com |
23e21edc9da16c847fd7a7e47d1658b3ef0630dc | 5b9e510ae4ec7d2a25f82427a771217081755d19 | /downloadDPD.py | 15e25a7cf8c6c453e50e621c4d0dd8c6d711d896 | [] | no_license | jpike97/CFBAnalysis | b98d97fb15352325890dcdc9f34117ba69855c8f | 3539873528bf44ef257312b7a0732289cca375fa | refs/heads/main | 2023-09-03T00:34:19.741795 | 2021-11-19T23:03:46 | 2021-11-19T23:03:46 | 417,656,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from bs4 import BeautifulSoup
import requests
import json
import csv
dpdDogsPage = requests.get("http://dpdsdogs.com/ncaa/fbsrank.htm")
dpdDogsHTML = dpdDogsPage.content
soup = BeautifulSoup(dpdDogsHTML, 'html.parser')
data = []
table = soup.find('table')
rows = table.find_all('tr')
jsonfile = open('predictions/dpdRan... | [
"jpike@sagepath.com"
] | jpike@sagepath.com |
8c9eb7022dd4eea5d900989e2db7934c1d3ab201 | ba8c3052a8cf65f454f3b34076df6ec47ff12523 | /jsonpipelines.py | 3fd0ec1db27c46493079c588a4f3ad04f83f61c8 | [] | no_license | mybnzs/python_project | 044e58cbdba601f16ba50a19360e223fa13e65eb | 9926ed7b5591033461ec7d59e803c38abe56fe9f | refs/heads/master | 2020-03-27T22:59:37.776945 | 2018-09-04T06:08:30 | 2018-09-04T06:08:30 | 147,279,804 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
class ScrapydemoexamplePipeline(object):
def process_item(self, item, spider):
#print('item----',item)... | [
"mybnzs1229@163.com"
] | mybnzs1229@163.com |
bfc52e8bfdd29e2e465282d59f9833c791eb0446 | 2284069eb2617edaae325d50a1c56fd1bb5cef00 | /sr_topologies/__init__.py | c086e492a9fcb4b15ba1c82449847f7137c18242 | [] | no_license | gkalogeridou/P33 | a1324a73c44b0f0d31ba08c47b15e586fe625d7e | 6b9842e6a2f99ee00898725ae0e096672b1345a0 | refs/heads/master | 2020-12-27T09:43:05.543205 | 2014-09-04T14:21:25 | 2014-09-04T14:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | """
CaMT - Cambridge Mininet Topologies
See README for details
""" | [
"ga288@cl.cam.ac.uk"
] | ga288@cl.cam.ac.uk |
fcb35e9d67611de681ee61b51b31f046ba484d02 | 456f2527f837ac12cff2bfc9ef1d4f65c1f24eeb | /webdjango/src/samsung_elasticsearch/wsgi.py | 4eabd7cd17b56984b41f1cf9d1774cfefdc175bc | [] | no_license | ammyblabla/basic_web_crawler | 435295169b3b27a3b3bd689bcb251c15dd449ecc | 4384e47514f21c2741c21cab1f27c178d70a6297 | refs/heads/master | 2020-03-27T04:37:46.130626 | 2018-11-23T04:46:49 | 2018-11-23T04:46:49 | 145,956,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for samsung_elasticsearch 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... | [
"tanaporn.tha@ku.th"
] | tanaporn.tha@ku.th |
216cb426bf718771d50f2175809be44e24a500e9 | fdd9e3131ead660db9485304438993a2a249fb1f | /src/npc/campaign/reorganizers/character_reorganizer.py | 8dd371ec895f29069f2f9a0994705dbfe635f0a1 | [
"MIT"
] | permissive | aurule/npc | 6807aa0723e765cb33fe5f5b49b0f579a6207153 | 2e1b2e92e2a4908d791846f184ee7e4de2f6682e | refs/heads/develop | 2023-09-02T02:46:47.900892 | 2023-08-30T17:31:00 | 2023-08-30T17:31:00 | 47,045,977 | 14 | 2 | MIT | 2023-08-18T20:49:12 | 2015-11-29T01:40:18 | Python | UTF-8 | Python | false | false | 1,926 | py | from npc.db import DB, character_repository
from npc.campaign import Pathfinder
from .base_reorganizer import BaseReorganizer
from .relocation_class import Relocation
class CharacterReorganizer(BaseReorganizer):
"""Reorganizer for characters
Gets the paths for all character files in the campaign.
"""
... | [
"paige.andrews@modolabs.com"
] | paige.andrews@modolabs.com |
1c21a62dadc880ee9c53de78cabfaa122f8ebdb3 | 5973c1f9c8946bd0c89396156984ace77b4795af | /ok_tests/q09.py | a36b0f60917d0e2e1bb68833d4f88ecfc9dfa390 | [] | no_license | braddelong/PS4S18E101b | 07eb87d68bc14b70d9662158267b05e4534b44c9 | ab4f3ee28d9d4324080e42c4e053a42c95d09ab9 | refs/heads/master | 2021-05-08T11:03:41.324602 | 2020-05-08T14:26:05 | 2020-05-08T14:26:05 | 119,880,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | test = {
'name': '',
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> import numpy as np
>>> np.isclose(YoverLfourone, 5)
True
""",
'hidden': False,
'locked': False
},
{
... | [
"brad.delong@gmail.com"
] | brad.delong@gmail.com |
dde263c1f634e501a3be5b9d48d1aa8402888cc7 | 1d57d947cb57f9170d21d757a862acc50e3ab025 | /teddybearcollector/settings.py | 04d740652eab84c1e08c4a236f9804db47037a65 | [] | no_license | xhaferllari11/teddy_bear_collector | 269329f0f23e6b1d44f71469c6a56f80ba6fbcc6 | fc9627b1845e242788b03c0df0dbfee71b6ee963 | refs/heads/master | 2022-12-08T23:49:19.743181 | 2020-01-05T22:39:52 | 2020-01-05T22:39:52 | 228,254,099 | 1 | 0 | null | 2022-12-08T03:22:46 | 2019-12-15T21:19:07 | Python | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for teddybearcollector project.
Generated by 'django-admin startproject' using Django 2.2.6.
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/
"""
i... | [
"alban.xhaferllari@gmail.com"
] | alban.xhaferllari@gmail.com |
3dd068856c18b39fa67d0eb6e00557e6ea1988b0 | ca9973566bae31dfd6be75062b5b7f058b0db11d | /game_stats.py | 0d0d38dab97aa8ccff0abac52ede47931552f589 | [] | no_license | IkarGhosts/Old_Galaxy | 30869e090dba15028554f23bb888cc0af1da1e51 | f5cc89fc55a1f75fada49bcd72cf928a545eec7f | refs/heads/master | 2020-05-05T01:38:50.391599 | 2019-06-07T10:14:10 | 2019-06-07T10:14:10 | 179,610,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class GameStats():
"""Отслеживание статистики для игры"""
def __init__(self, ai_settings):
self.ai_settings = ai_settings
self.reset_stats()
def reset_stats(self):
self.ships_left = self.ai_settings.ship_limit
| [
"ikarghosts@hotmail.com"
] | ikarghosts@hotmail.com |
4c109c431be0f005cacdb8fcdccf408189403022 | c0f5ccd1e9fbffff1133ffcfabaa71b4931a92cf | /scripts/partial3.py | 8ae3d85da675c25d04a1d0ac45695a3503d23b6f | [] | no_license | shirtd/prelim | 9ed82bba34531ffa28bb6daf1386ad675066fcd1 | c789713c851563726c19932af454f36f7a3fee62 | refs/heads/master | 2023-03-27T06:18:04.523941 | 2021-03-25T21:17:27 | 2021-03-25T21:17:27 | 257,415,279 | 0 | 0 | null | 2020-08-27T16:36:20 | 2020-04-20T22:09:00 | TeX | UTF-8 | Python | false | false | 8,216 | py | import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
import numpy.linalg as la
import numpy as np
import os, sys
from util.plot import SurfacePlot, SurfaceCut
from util.data import *
import dionysus as dio
from mayavi import mlab
SEED = 4869361 # np.random.randint(10000000) #
print('seed: %d' % SEED)
np.... | [
"kirk@apple.local"
] | kirk@apple.local |
29df1b79e74bd7267776cc1b058070ef3e71e7db | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /ShortestWordDistance.py | b282416e497d2bd6465870fb8734ed834ae5c3ea | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | '''
243. Shortest Word Distance
Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list.
Example:
Assume that words= ["practice", "makes", "perfect", "coding", "makes"].
Input: word1 = "coding", word2 = "practice"
Output: 3
Input: word1 = "makes", word2 =... | [
"jerinsprograms@gmail.com"
] | jerinsprograms@gmail.com |
3e4763fc02a1b9d1e3dc377bef8ce6a4f0c4f819 | 09a58fcb72ff3ac697f8a51059dafc680ed9f700 | /aula7/teste2.py | 6ec88b7ec7d90a33ae36863f2551fa212c9133df | [] | no_license | brunozupp/TreinamentoPython | af0e7b59265c720d58858edd767729e83856d17e | 93cac18c0249b5b80c3b406308b6102e6c7fb48b | refs/heads/master | 2023-08-04T09:31:30.667397 | 2021-09-21T20:02:25 | 2021-09-21T20:02:25 | 402,187,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | if __name__ == '__main__':
nome = input("Qual é seu nome: ")
print('Prazer em te conhecer {:20}!'.format(nome))
print('Prazer em te conhecer {:>20}!'.format(nome)) # alinhado a direita
print('Prazer em te conhecer {:<20}!'.format(nome)) # alinhado a esquerda
print('Prazer em te conhecer {:^20}!'.fo... | [
"brunimzuppwolf@gmail.com"
] | brunimzuppwolf@gmail.com |
403ac671cd2d453ae487fd222034d913875fbf84 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/CustomEffectManager.py | c48c868ffdc6cfeced96947c76740f0f529b2281 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 9,781 | py | # 2017.05.04 15:19:58 Střední Evropa (letní čas)
# Embedded file name: scripts/client/CustomEffectManager.py
import math
import Math
import material_kinds
from helpers.PixieNode import PixieCache
from CustomEffect import EffectSettings
from svarog_script.py_component import Component
from vehicle_systems.tankStructure ... | [
"info@webium.sk"
] | info@webium.sk |
a7625641cc8660014bc8bbe5ff844087c7cb99dd | 471bf60a824d5466c0a917e175528aec811e6c01 | /2016-01-Shenzhen/Team 08 - Service-Chaining in Openflow/odl_service_chain/src/services/flowmanage.py | 4cd85f69a5a1f3d1f4adc7909b97c7deb41a06b3 | [] | no_license | donaldh/opendaylight-bootcamps | 4468c5629218c4274be5656bbd9cb0015c9035f7 | 03268f9b8db88e03692f44590960f97185fa05d3 | refs/heads/master | 2020-12-25T21:56:01.486848 | 2016-05-13T01:27:24 | 2016-05-13T01:27:24 | 58,688,772 | 0 | 1 | null | 2016-05-13T01:20:03 | 2016-05-13T01:20:03 | null | UTF-8 | Python | false | false | 6,432 | py | __author__ = 'cmcc'
import utils.openflowutils as ofutils
import utils.constants as const
from utils.restconf import ODLRestRequest
from xml.dom.minidom import Document
global auto_flow_id
auto_flow_id = 0
class OFManager(object):
def __init__(self, ctr_ip=None):
self.controller_ip = ctr_ip i... | [
"ermcgann@cisco.com"
] | ermcgann@cisco.com |
caf1c52fc0df7cec7a621cb608368de64420f42c | 46fa8d974aea2edfc27d73e367ebf01db988e173 | /backgroundSubtraction.py | bb1fc3c1aaaf921cdd5a2520603b259ae03294d9 | [
"MIT"
] | permissive | MayankShrivastava17/opencv-operation-on-image | 696b36cca831aa700c1541a0e34c70805813c832 | c5ade8fa527ad05d99b65016678d8d25db201132 | refs/heads/main | 2023-06-09T22:40:11.231239 | 2021-06-24T18:40:45 | 2021-06-24T18:40:45 | 347,404,375 | 1 | 0 | null | 2021-06-24T18:40:45 | 2021-03-13T15:18:24 | Python | UTF-8 | Python | false | false | 456 | py | # This is used for object subtraction, security enhancement, pedestrian tracking
import cv2 as cv
import numpy as np
cap = cv.VideoCapture(0)
fbgb = cv.createBackgroundSubtractorMOG2()
while 1:
ret, frame = cap.read()
fgmask = fbgb.apply(frame)
cv.imshow('fgmask', fgmask)
# cv.waitKey(0)
cv.imsho... | [
"mayanksri910@gmail.com"
] | mayanksri910@gmail.com |
7688fb7f88563eeb185f6d8b24f0e5caf1fbd99b | e574dce6be0d212bf974148d550cc3349dcaf64f | /formtest/urls.py | 85794274dd619dd78b5c0a8fd589e61d76b9d489 | [] | no_license | da91love/django_ajax_tutorial | edd6717faffa647fbeab88dab6ea0435fb59feef | e4c0cb558ca447a23a5c30af0d4c69dc51520d9a | refs/heads/master | 2020-07-23T04:51:54.527117 | 2019-10-12T05:32:05 | 2019-10-12T05:32:05 | 207,450,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from . import views
app_name = 'formtest'
urlpatterns = [
path('', views.get_name, name='form'),
path('success', views.get_success, name='success'),
]
| [
"daseul.kim@accenture.com"
] | daseul.kim@accenture.com |
fa47095466b95f5493bef006ca22b41146adaaa9 | acd2b9919729ea5e26b84f81c61cf4b3105c97de | /logestic_classifier.py | 786ffd8ecc016a922936f02252f9512517bed010 | [] | no_license | Xiaoxiao9321/Detect-Lead-Agency | e7bf176f1b1013d6841f86181926fc1f416e0aa2 | d913a5233837b039373dfeedcb8bcf066579a69a | refs/heads/master | 2022-06-10T13:01:35.354875 | 2020-05-03T09:56:45 | 2020-05-03T09:56:45 | 260,864,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import pandas as pd
import spacy
import numpy as np
from sklearn.linear_model import LogisticRegression
import csv
from sklearn.metrics import accuracy_score
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.preprocessing import normalize
from sklearn.feature_extraction import text
from sklearn.m... | [
"xiaoxiaochen@dhcp-10-134-162-242.uawifi.arizona.edu"
] | xiaoxiaochen@dhcp-10-134-162-242.uawifi.arizona.edu |
9772ebe57e6ed1743860407f5afac69952cbcd2b | 4021ed4a11981f132e173a304c2e0258f0165f75 | /Bioinformatics_stronghold/49_NWCK/NWCK2.py | 3b9362d0665cf61b881bc086104bc4eaf6d1b28f | [] | no_license | dpflieger/Rosalind | d7289eb367d14707435c44906a96a250a48ff0f2 | d01c295a7a13d109ab4525faa3832a07e0c8aa54 | refs/heads/master | 2021-01-13T09:36:59.431150 | 2019-12-03T20:09:21 | 2019-12-03T20:09:21 | 72,040,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from Bio import Phylo
from io import StringIO
c = open('rosalind_nwck.txt').read().rstrip().split('\n\n')
for i in c:
t, x, y = i.split()
tree = Phylo.read(StringIO(t), 'newick')
ancestor = tree.common_ancestor(x, y)
print(len(ancestor.get_path(x)) + len(ancestor.get_path(y)), end = " ")
#open('rosal... | [
"pflieger.dav@gmail.com"
] | pflieger.dav@gmail.com |
a980109793514b0f95ee8fd3df0ecdfa9e12e53f | 7fbd5c1229bc0fb40c6ec4e0cd21d6701a293588 | /model/mask_rcnn/lib/roi_pool/build.py | 1bcd75870b5c9dd779b707390906a7020da2f456 | [] | no_license | liruilong940607/carnava-image-masking-challenge | 5f318a2481a1da9f50d26470cd4687d2d3e435d5 | 56800803bb3172cc6b47fc66004ea31250bf3f4b | refs/heads/master | 2021-07-16T20:07:08.322438 | 2017-10-15T13:37:54 | 2017-10-15T13:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import os
import torch
from torch.utils.ffi import create_extension
if not torch.cuda.is_available():
raise ValueError('this version is for cuda only! cuda not found')
curr_dir = os.path.dirname(os.path.realpath(__file__))
print('curr_dir is:',curr_dir)
print('Including CUDA code.')
sources = ['src/roi_pool_c... | [
"hchaolee@gmail.com"
] | hchaolee@gmail.com |
498024e186f1d7a4fb2ed543996c1d5f388a7398 | 39763829d9a2c72c4fc882e8dd7b60850cb3278e | /nba_shotchart.py | c962c0952825304d162c1e1e85382b8c64c19e72 | [] | no_license | WilliamYe6/NBA_Shot_Chart_Visualizer | 55b05315bbc15b682ab850dc5cc41bc39f962e78 | 1bbcedebf0e919985c825f16edcc468801228c8d | refs/heads/main | 2023-09-01T13:24:29.593976 | 2021-10-11T21:02:38 | 2021-10-11T21:02:38 | 416,074,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,659 | py | import sys
import numpy as np
import pandas as pd
# nba_api
from nba_api.stats.static import players
from nba_api.stats.endpoints import shotchartdetail
from nba_api.stats.endpoints import playercareerstats
# matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib import cm
from matplotlib.... | [
"williamxye2001@gmail.com"
] | williamxye2001@gmail.com |
69a17ce6fa30b56a604c09ced64fdd5ba04925b5 | 8681719ab6c69efd055e20424bf02f141c054a24 | /CommoditySpider/entrypoint.py | c2e47eff636a75d85e4fdc7460dd3f9cca953d84 | [] | no_license | Hiboboo/CommoditySpider | 36935ac5f95f855cd875a8c1e56077f01ab6b221 | c0666a041e2a9e7536f518dbf708e77e7afb1238 | refs/heads/master | 2021-06-18T11:19:36.548410 | 2021-02-02T07:14:42 | 2021-02-02T07:14:42 | 150,951,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | # -*- coding: utf-8 -*-
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
"""
快速启动爬虫
目的是在爬取 目标站点 之前, 先爬取代理网站的代理地址
"""
class SpiderManager(object):
def __init__(self):
self.setting = get_project_settings()
self.process = None
def start_sp... | [
"loveboboo@vip.qq.com"
] | loveboboo@vip.qq.com |
ec43467506273359e38ad38a663818a3ba951eea | ce4128e47d20f55be4bb1d0bfe8364f790aa84dc | /walkd_infer.py | 0a83c9577c220af1fee800044cefa87a0d6ee20e | [] | no_license | SunTzunami/Walking_data_inferences | 204d72f8c7f4ba492ce524f82d6c675284b69fb8 | 17eaf93a65dfbc230649a3152295da95ca16f4ed | refs/heads/master | 2022-11-09T07:26:20.889472 | 2020-06-16T04:06:55 | 2020-06-16T04:06:55 | 262,536,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | import numpy as np
from scipy import stats
import pandas as pd
from pylab import *
import seaborn as sns
df=pd.read_csv('walkd.txt') #reading the data file
y=[x for x in df['distance'] ] #list of distance traversed o... | [
"noreply@github.com"
] | SunTzunami.noreply@github.com |
800334b3a21a24eba39c814e0cb7ed493b609c35 | 752c3f99a03ca50fd50fa56736eba69c05287534 | /SudokuSolver.py | da79f1ea04414fc7cd1e66a906ade44768089a95 | [] | no_license | mokana99/SudokuSolver | 4dcf575307a557c12fa7aba5fe3463757049a409 | 1ca12a10f8d5361bebaef9c575cc2b98f5439c17 | refs/heads/master | 2022-09-20T04:03:30.102657 | 2020-05-29T10:24:00 | 2020-05-29T10:24:00 | 267,829,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | board = [
[7,8,0,4,0,0,1,2,0],
[6,0,0,0,7,5,0,0,9],
[0,0,0,6,0,1,0,7,8],
[0,0,7,0,4,0,2,6,0],
[0,0,1,0,5,0,9,3,0],
[9,0,4,0,6,0,0,0,5],
[0,7,0,3,0,0,0,1,2],
[1,2,0,0,0,7,4,0,0],
[0,4,9,2,0,6,0,0,7]
]
def solve(bo):
find = find_emty(bo)
if not find:
return True
... | [
"noreply@github.com"
] | mokana99.noreply@github.com |
09d88d911425835b75e4bfff931485def12cf4cc | a57e9c1a75dd1b036b631afec8dce6086297f46d | /assignment-8.4.py | 216ed1415f9242671433b03145790a484553163b | [] | no_license | gibosky/PythonlearnExercises | 2f6a30467dd3fb2152f41f6044ed3e73ad8705b2 | 5d20d936a6082da2c58ae70b73846508988832fd | refs/heads/master | 2021-01-10T10:46:37.448306 | 2016-03-09T14:40:52 | 2016-03-09T14:40:52 | 52,033,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | def openFile (fname) :
try :
fh = open(fname)
except IOError, e:
print 'File cannot be opened:', fname
exit()
return fh
fname = raw_input("Enter file name: ")
fh = openFile(fname)
lstAll = list()
lstLine = list()
for line in fh :
lstLine = line.split()
for word in lstLine :
if word not in lstAll :
... | [
"rogeriopaula@rogerios-MacBook-Pro.local"
] | rogeriopaula@rogerios-MacBook-Pro.local |
dd71af29cdd85503a32d82e89bb9ebeea6df17bc | 6393d3c53f5d6907e161d9991e79acab90bca14c | /server1.py | 3824056531c9c1d0751e6a46fefe9e4a4044131c | [] | no_license | fossbalaji/haproxysetup | 45f653599dbca7349a0b21f28a6fea31149ff3ac | 5836c6be38b512614161be0bc34a83c77f18eac4 | refs/heads/master | 2021-01-17T22:09:35.596519 | 2017-03-07T11:21:32 | 2017-03-07T11:21:32 | 84,189,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import BaseHTTPServer
class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(s):
s.send_response(200)
s.send_header("Content-type", "text/plain")
s.end_headers()
s.wfile.write("Hello From Server 1")
if __name__ == '__main__':
server_class = BaseHTTPServer.HTTPServ... | [
"fossbalaji@gmail.com"
] | fossbalaji@gmail.com |
3e9d621f11c9d317958e65c2dc8cc4bfef1f6de3 | a564ec14337391f1da7fbf09974364a8354ce541 | /algoritimos/Python/fibbo-high.py | 0e2a72141310447b4a6e1c6516c88a7c05742869 | [
"BSD-2-Clause"
] | permissive | Gigers/data-struct | 37b931204e5460b17d9a7060a072a1035eea167e | f54917247a4e75ffe15783b0a025185d2215309a | refs/heads/master | 2021-06-26T11:55:01.686092 | 2019-09-07T17:23:55 | 2019-09-07T17:23:55 | 99,754,591 | 5 | 5 | null | 2017-11-21T09:06:32 | 2017-08-09T02:03:46 | C | UTF-8 | Python | false | false | 264 | py | #Definição de dicionario
dic = {}
#Definição da função
def fib(n):
print ('fib(%d)' %n) #Print para mostrar o valor de n
if n <= 2:
return 1
else:
if n not in dic:
dic[n] = fib(n - 1) + fib(n - 2)
return dic[n]
print (fib(8))
| [
"phelpsmemo@gmail.com"
] | phelpsmemo@gmail.com |
0130b4fb788ec2f71d43c55a1381aa65d006bd39 | 6673bd9425e7670d9d9949cea6845f5fdecfda3d | /scripts/change instance db prefix.py | 5a7290ba1832766ce0557823a95c59e4070d17ad | [
"MIT"
] | permissive | datopian/ckan-cloud-operator | 19b9feae7ac607f37de24c00a65aac841df9eb80 | 30715b32a00bace400df8d6dce763b9469800f83 | refs/heads/master | 2022-12-24T14:07:33.778058 | 2022-03-19T20:23:01 | 2022-03-19T20:23:01 | 163,747,850 | 16 | 8 | MIT | 2022-12-08T03:29:59 | 2019-01-01T15:46:50 | Python | UTF-8 | Python | false | false | 8,115 | py | import datetime
from ruamel import yaml
from ckan_cloud_operator.helpers import scripts as scripts_helpers
from ckan_cloud_operator import kubectl
from ckan_cloud_operator import logs
from ckan_cloud_operator.drivers.jenkins import driver as jenkins_driver
from ckan_cloud_operator.providers.ckan import manager as ckan_... | [
"noreply@github.com"
] | datopian.noreply@github.com |
d8f32d3e9b84c94a5d8883b3f2a1418fb6539d9b | f6596f7eb49b378e1eb7e5e0947c8cfd40df4379 | /demo/predict-taxi-trip-duration-nb/demo/train_sql.py | c0511c6148f7a3b3ba8bba33fb9f190fda1cbd2c | [
"Apache-2.0"
] | permissive | RhnSharma/OpenMLDB | 413bfc85181008f66369a388efb5fcc51edac871 | 14f662558880f0784699eb8339677e5afa6df6cf | refs/heads/main | 2023-07-18T08:37:20.313164 | 2021-09-01T06:30:59 | 2021-09-01T06:30:59 | 401,995,081 | 1 | 0 | Apache-2.0 | 2021-09-01T08:56:49 | 2021-09-01T08:56:48 | null | UTF-8 | Python | false | false | 2,951 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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 ... | [
"noreply@github.com"
] | RhnSharma.noreply@github.com |
c5762aa90cf8cd12cfdfeab9833778e1413529a8 | af77c05777611f3875ef06edaaea88d0253cd997 | /src/pykeen/models/baseline/models.py | 480d4a09f0e53947b6f3c3445996cacb8cd4adbd | [
"MIT"
] | permissive | xlives/pykeen | 5a73433f5c9b65435eb4dfa40217162e0f41281a | 3b6b11e1555218f2bf33883bf7f78bb34ce4dece | refs/heads/master | 2023-08-20T01:43:20.585140 | 2021-10-18T09:48:24 | 2021-10-18T09:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | # -*- coding: utf-8 -*-
"""Non-parametric baseline models."""
from abc import ABC
import numpy
import torch
from .utils import get_csr_matrix, marginal_score
from ..base import Model
from ...triples import CoreTriplesFactory
__all__ = [
'EvaluationOnlyModel',
'MarginalDistributionBaseline',
]
class Evalu... | [
"noreply@github.com"
] | xlives.noreply@github.com |
2ed73877064935d985f2c23e1fff78cbb939d79a | c141efabf44b948c31dfbc65cdaf3d69f3c3a371 | /app/methods.py | 1871dda88dc3f86c323b69755408382278cddc47 | [] | no_license | eengoron/close-crm-razorsync-integration | 552c28f43bf3aaf458f87a67ecf1a91b57006009 | 214a855aff859f10e3bd5d9e51a31fe8f5182bb7 | refs/heads/master | 2023-05-24T21:45:52.505341 | 2020-01-23T17:49:50 | 2020-01-23T17:49:50 | 219,886,006 | 0 | 0 | null | 2023-05-22T22:32:29 | 2019-11-06T01:33:05 | Python | UTF-8 | Python | false | false | 22,188 | py | from closeio_api import Client as CloseIO_API, APIError
import os
import requests
import json
import time
import copy
from .format_rs_to_close import format_address_as_string, format_address, format_new_contacts_array, format_opportunity_data, format_note_data, convert_epoch_to_dt
import logging
## Initiate Logger
log... | [
"eric.engoron@gmail.com"
] | eric.engoron@gmail.com |
1b5c6a64f387fffe68ba362f24dc301ab91a3129 | ef85c7bb57412c86d9ab28a95fd299e8411c316e | /tools/pot/openvino/tools/pot/data_loaders/image_loader.py | 4ba603555e669616ca5883e8b36958c1e9f5749a | [
"Apache-2.0"
] | permissive | SDxKeeper/dldt | 63bf19f01d8021c4d9d7b04bec334310b536a06a | a7dff0d0ec930c4c83690d41af6f6302b389f361 | refs/heads/master | 2023-01-08T19:47:29.937614 | 2021-10-22T15:56:53 | 2021-10-22T15:56:53 | 202,734,386 | 0 | 1 | Apache-2.0 | 2022-12-26T13:03:27 | 2019-08-16T13:41:06 | C++ | UTF-8 | Python | false | false | 1,146 | py | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from cv2 import imread, IMREAD_GRAYSCALE
from ..api.data_loader import DataLoader
from ..data_loaders.utils import prepare_image, collect_img_files
class ImageLoader(DataLoader):
def __init__(self, config):
super().__init... | [
"noreply@github.com"
] | SDxKeeper.noreply@github.com |
3b166ef430ea2084a0b38b6d370739251eb5f175 | 5bf75a46e354b584faa11d508fe4a9e930754879 | /results/mrcpsp/rcpsp_test/plot_smt.py | a0ea809b95d76245d5089b4bcc916934846a1d1b | [] | no_license | gokberkkocak/phd_experiments | 7c5ceda7209e7e26c407e62d2ec6a56ee77657b3 | 4e831eeea6e9a5353287994c478251296848cafb | refs/heads/main | 2022-07-30T01:24:53.510669 | 2022-01-31T15:48:07 | 2022-01-31T15:48:07 | 454,059,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | #!/usr/bin/env python3
import json
import sys
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
TYPE = "solver_time"
show = ['normal','inter'][0]
with open("results_native.json", "r") as json_file:
results = json.load(json_file)
print(len(results.keys()))
scatter = []
for instance in results:... | [
"gk34@st-andrews.ac.uk"
] | gk34@st-andrews.ac.uk |
a1afbbc3c78c8d6c64a19c175c0c40f8cb9546e9 | 413684cf1e2c1ce637ba77f7b7399b0ec14abece | /7/7.1.py | 0b350ee46b3d5afa569dfe3c4c9d58ea6d89340b | [] | no_license | Prozen/AdventOfCode2016 | 1998558ee3371b81833e7854737d0d24c74ae91c | de3fbac45eff3050cdeae8c5a61d35b954eaa230 | refs/heads/master | 2020-06-13T01:15:38.148196 | 2016-12-18T06:04:49 | 2016-12-18T06:04:49 | 75,470,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180,615 | py | data = """dnwtsgywerfamfv[gwrhdujbiowtcirq]bjbhmuxdcasenlctwgh
rnqfzoisbqxbdlkgfh[lwlybvcsiupwnsyiljz]kmbgyaptjcsvwcltrdx[ntrpwgkrfeljpye]jxjdlgtntpljxaojufe
jgltdnjfjsbrffzwbv[nclpjchuobdjfrpavcq]sbzanvbimpahadkk[yyoasqmddrzunoyyk]knfdltzlirrbypa
vvrchszuidkhtwx[ebqaetowcthddea]cxgxbffcoudllbtxsa
olgvwasskryjoqpfyvr[h... | [
"pavel.rozenblioum@jayway.com"
] | pavel.rozenblioum@jayway.com |
2da7c78192808cd7ab3882adb48f76e3c9e465c1 | 8c30945dad70dbef65131034ee18f5106d507131 | /djangogirls/urls.py | c13250824af4e05209b01eab42f41f5328482438 | [] | no_license | SamiBilal/second_first | e29bf0f4ea1b19e228c24da9bfc5459e1eb80329 | 827ec4ad9a7599cfb681e48f44f2c866b374d472 | refs/heads/master | 2020-07-15T07:22:23.653419 | 2019-09-03T12:00:00 | 2019-09-03T12:00:00 | 205,511,550 | 0 | 0 | null | 2019-09-03T12:02:21 | 2019-08-31T07:27:18 | Python | UTF-8 | Python | false | false | 797 | py | """djangogirls URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"samibilal120@gmail.com"
] | samibilal120@gmail.com |
90c212ea86a3574a9503bd9b197917209e803260 | 6256a3fd97d87f94b47e7b2f85caf654e56b9f94 | /day01/test08.py | fa9423f80a966cb4fc8552c6384b1db6ddfac044 | [] | no_license | PythonLxg/spider | 68374e8640b148fe238555ab54fbf6681a39a293 | 63b09c93a9d1ef347a68a7fb7214188754a5ab66 | refs/heads/master | 2020-04-30T20:40:36.208203 | 2019-03-22T04:59:49 | 2019-03-22T04:59:49 | 177,073,947 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- coding utf-8 -*-
# C:\Users\lxg\Documents\Python
# Author:李小根
# Time:2019/3/15
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import Web... | [
"1812852877@qq.com"
] | 1812852877@qq.com |
7d02c2a07c49057a3080847b57e8e673bf857b98 | c8f4dd3c094a2f0e262ba880a4e62e75b121119b | /Chapter03/0305.py | 20bd3bea6ff4598577d14af6b37c592991a2318b | [
"MIT"
] | permissive | 0201shj/Python-OpenCV | 2a87888fe571f6aef0554e629022e74ed4ab0bf1 | 249f8cc9404e547da0f5c68000f29f2e598562a5 | refs/heads/main | 2023-08-30T21:10:14.477881 | 2021-10-01T09:17:55 | 2021-10-01T09:17:55 | 399,083,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # 0305.py
import cv2
import numpy as np
img = np.zeros(shape = (512, 512, 3), dtype = np.uint8) + 255
pts1 = np.array([[100, 100], [200, 100], [200, 200], [100, 200]])
pts2 = np.array([[300, 200], [400, 100], [400, 200]])
cv2.polylines(img, [pts1, pts2], isClosed = True, color = (255, 0, 0))
cv2.imshow('... | [
"noreply@github.com"
] | 0201shj.noreply@github.com |
b541b3836b17fbc61b9b41e819e855ef917a64b2 | d158e9255024945aa62bf85bc84e3cf08ce78c52 | /eeg/eeg-report-annotations/src/main/python/relation/relnet/serving.py | 9721c538c6d3cb38905b0b07e859fcb189ce09e2 | [] | no_license | utd-hltri/l-pcrs | dae2eda0b287e62341e54e3f703a178b1a92e8df | f91f1466fa1a7f5257597fd32b3de270836dbca8 | refs/heads/master | 2021-09-07T17:27:49.819346 | 2018-02-26T21:50:07 | 2018-02-26T21:50:07 | 115,817,252 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,847 | py | """
Serving input function definition.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import tensorflow as tf
from tensorflow.contrib.learn import utils
def generate_serving_input_fn(metadata):
"Returns _serving_input_fn for use with an export str... | [
"travis@hlt.utdallas.edu"
] | travis@hlt.utdallas.edu |
3d4fadd95be4d55758b0ce02e416a77a97530949 | 43a27b80ce1a8cf422142f5a43044917ff17a7cf | /python/leetcode/MinWindowSubstring.py | b0599246769de55011acb2d6e6433f9e173e299d | [] | no_license | bignamehyp/interview | 321cbe4c5763b2fc6d2ba31354d627af649fe4ed | 73c3a3e94c96994afdbc4236888456c8c08b6ee4 | refs/heads/master | 2021-01-25T08:49:30.249961 | 2015-03-07T07:34:00 | 2015-03-07T07:34:00 | 23,125,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | class MinWindowSubstring:
def minWindow(self, S, T):
toFind = dict()
for c in T:
if c in toFind:
toFind[c] += 1
else:
toFind[c] = 1
begin = 0
pos = 0
numMatches = 0
found = dict()
minWin = ""
minL... | [
"huangyp@kalman.(none)"
] | huangyp@kalman.(none) |
90b1a75ac0556371c65e2569c6cee7e8f8d66994 | 919aa09eafc944844d6d99f86122bea96a8ae5a5 | /memcrypt_analysis.py | 02d85b60d3b680c498e3084b485e467b1d22ce1c | [] | no_license | GuyCockitt/MemCrypt-Task | d54e16dab576dfcd52bd4470926054b95a89b5d4 | 08ed804a7e31aa1ed881b03cf31b5951fab30bac | refs/heads/main | 2023-06-27T10:35:39.134675 | 2021-07-31T22:58:02 | 2021-07-31T22:58:02 | 391,477,574 | 0 | 0 | null | 2021-07-31T22:56:41 | 2021-07-31T22:52:32 | null | UTF-8 | Python | false | false | 4,822 | py | import os
from Cryptodome.Cipher import AES
from itertools import permutations
#Below are header values for common file types.
JPEG_HDR = b'\xFF\xD8\xFF\xE0'
MS_OFFICE_HDR = b'\x50\x4B\x03\x04\x14\x00\x06\x00'
PNG_HDR = b'\x89\x50\x4E\x47\x0D\x0A\x1A\x0A'
PDF_HDR = b'%PDF-'
def isIncremental(buffer):
"""TODO 1: P... | [
"noreply@github.com"
] | GuyCockitt.noreply@github.com |
4d5e3db219926f973bb90de678b961cc12ebd31d | cb046e0bcaa2fb64d1f7d3f59a6660cdde787e7f | /question/test.py | b19e6764fe8030eed9dc32db69fc97f83c839574 | [] | no_license | Xyandraa9/truth-or-dare-bot | c0bf0ea445e2611cf90613644a29c84730d084b6 | 79c031bba4838f9b7f6aa76992f5938727c38ed6 | refs/heads/main | 2023-07-28T06:12:58.501619 | 2021-08-23T10:44:58 | 2021-08-23T10:44:58 | 378,641,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import random
count = 0
with open('dare_question.txt','r+') as question:
for i in question:
count+=1
question.seek(0)
rand = random.randint(0,count)
check = 0
for i in question:
check +=1
q = i.split('Q.')
x = q[1].split("\n")
if(check == rand):
p... | [
"rockingbinitagarwal@gamil.com"
] | rockingbinitagarwal@gamil.com |
a20003843812b2540d416661e556290a59c928b8 | 60710a2b6794a028524a997fa9b5c21eb6fe8d70 | /tweeter.py | 8c672e2158e68b07901bac5d7aaba97271e5f59f | [] | no_license | ZachLynch123/miscellaneous-scripts | a68fb0ade4fb0ab328af1ea8f8a04ea3a91467f6 | 8624667e75512523b5d5202648b3c5e8cac3d73c | refs/heads/master | 2021-09-03T12:09:38.389806 | 2018-01-09T00:28:48 | 2018-01-09T00:28:48 | 104,949,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import tweepy, os
def getStatus():
lines = []
while True:
line = raw_input()
if line:
lines.append(line)
else:
break
status = '\n'.join(lines)
return status
def tweetthis(type):
if type == "text":
print "Enter your tweet "+user.name
tweet = getStatu... | [
"Zachary.Lynch1337@gmail.com"
] | Zachary.Lynch1337@gmail.com |
fa7e34e125908a2f0c71c968c0f028d320fc0b7d | 357cb2b92e51657e679a1ae96277d5bdf24e928f | /src/quotationtool/referatory/bibtex/field.py | 3bc1eae29d7740e6f80d9ad5b34f8b806423ccb9 | [] | no_license | quotationtool/quotationtool.referatory | d917342744e90fb1f3d8fb8d4cf6e3d1b02c4372 | c52dc61c3c8370ca67d4d740855104adbe1195b3 | refs/heads/master | 2020-03-08T06:43:51.644618 | 2011-01-26T18:38:14 | 2011-01-26T18:38:14 | 127,978,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,762 | py | # -*- coding: utf-8 -*-
from zope.interface import implements
from zope import schema
from quotationtool.referatory.i18n import _
import ifield
## # boilerplate code
## class Xxx(schema.TextLine):
## __doc__ = ifield.IXxx.__doc__
## implements(ifield.IXxx)
## def __init__(self, *args, **kw):
## ... | [
"christian.lueck@ruhr-uni-bochum.de"
] | christian.lueck@ruhr-uni-bochum.de |
787cabc03551bbc17b236046a6149d8744460138 | 92beb48b5fd7a57353cc03b5656663ccf0645079 | /nkbill/settings.py | 3b4d2db8df992fb12c44380a7b97571cb040f513 | [] | no_license | Nitanshubajpai/InvoiceGenerator | 1d83c2b95e1f97b34c364fa3e865a6a8b98484d2 | 1f02e5b6f277a1cc5e433466ebdf68624082a282 | refs/heads/main | 2023-06-23T01:11:16.472872 | 2021-07-19T15:39:46 | 2021-07-19T15:39:46 | 386,213,558 | 0 | 0 | null | 2021-07-19T13:49:23 | 2021-07-15T08:07:54 | Python | UTF-8 | Python | false | false | 3,583 | py | """
Django settings for nkbill project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
fro... | [
"nitanshubajpai@gmail.com"
] | nitanshubajpai@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.