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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f5a1e69f6e0742a54a7689ee09059a75e9ae7e8 | 2696e2ee70780d77fb723a5770b71293cb97de05 | /tests/test_homoglyph_fang_model.py | a6c009e8cb9a5458b96ba41e5df119dbf978213d | [
"MIT"
] | permissive | nryang/fangfangfang | 5d54c704617d8103861af41355625854bb2c7b0d | 6afe43d8491a5b88bec785025e094bb1e242d052 | refs/heads/master | 2023-05-13T04:12:15.408438 | 2019-08-11T22:39:02 | 2019-08-11T22:39:02 | 201,163,311 | 0 | 0 | MIT | 2023-05-01T21:15:05 | 2019-08-08T02:34:17 | Python | UTF-8 | Python | false | false | 3,051 | py | import unittest
from fangfangfang.controllers.impl.models.homoglyph_fang_model\
import HomoglyphFangModel
from parameterized import parameterized
class TestHomoglyphFangModel(unittest.TestCase):
_ioc_to_defanged = [
('https://somewebsite.com', 'һttрƽ://ƽоmеɯеƄƽıtе.соm'),
('http://192.168.1.1'... | [
"nathanryang@gmail.com"
] | nathanryang@gmail.com |
76bfe6f4a0ccba1f3c383b7975577f04f83a1f7a | b9caf4cc951cf27ff45dc55d47f8ae8917b68781 | /Python 2.7 Files/Classwork/CS 110/Homework 4 for fun.py | 6f8a208e848b338db601ad4941427c09aa088642 | [] | no_license | benrose258/Python | 2a751d5c4a316800db493b26fe5794c93c27a1df | edf49681bee0232ebbb0cab07df6a1757380e9fc | refs/heads/master | 2022-12-05T05:30:50.773750 | 2020-08-28T05:58:06 | 2020-08-28T05:58:06 | 134,332,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #Homework 4, redone for fun
#Question 1
def head(mylist):
if mylist == []:
return "Error: the empty list has no head."
else:
return mylist[0]
#Question 2
def tail(mylist):
if mylist == []:
return "Error: the empty list has no tail."
else:
return mylist[1:]
#Question ... | [
"39503320+benrose258@users.noreply.github.com"
] | 39503320+benrose258@users.noreply.github.com |
ae2a41847bd7e598d3c83eb81e0a5362feb1c120 | 82dcd300ad33a0af17125c16c388147333c6ba4d | /subwin.py | 416a77d6d69193d9cf84022971bee9588a165ba3 | [] | no_license | defMyself/PyQt | 3a0d99fcce8e04d3313343314f85725e2975652e | 87bd5ac337274b556c2c93d926dcdd0add21f1ba | refs/heads/master | 2023-04-09T16:12:54.550783 | 2021-04-27T00:12:30 | 2021-04-27T00:12:30 | 361,927,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from PyQt5.QtWidgets import *
import sys
class Main(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("主窗口")
button = QPushButton("弹出子窗", self)
button.clicked.connect(self.show_child)
def show_child(self):
self.child_window = Child()
sel... | [
"anxinyucomputer@163.com"
] | anxinyucomputer@163.com |
6558bc46bd0bb630653daeaf80e9d7262206f1b8 | 7c4fd92bfcbd183a956fb0a8cddb2e34daaf1a05 | /test_ten_unittest.py | 9012c1a3e56e48d3ea327105d1dd91c95bfd2212 | [] | no_license | babosina/stepic_selenium_py | 47fda6f098d3c9c365a15c60ce53810abd608f4d | ab1371e29b686b26f0c30ba96abfa190f13a066d | refs/heads/master | 2021-06-13T15:31:45.317323 | 2019-06-22T16:20:55 | 2019-06-22T16:20:55 | 190,057,493 | 1 | 0 | null | 2021-04-20T18:15:56 | 2019-06-03T18:12:42 | Python | UTF-8 | Python | false | false | 3,793 | py | from selenium import webdriver
import time
import unittest
class TestTen(unittest.TestCase):
def test_reg1(self):
link = "http://suninjuly.github.io/registration1.html"
browser = webdriver.Chrome()
browser.get(link)
# Ваш код, который заполняет обязательные поля
input1 = b... | [
"astankevich@bekitzur.com"
] | astankevich@bekitzur.com |
f7907cf0c85848bf52a74d65f2d3187b0fff88ad | eb9ee5031694454e5b9a14999e2b86d1e3edbf98 | /scratchpad/crawl.py | 43294ca27827b63eaa46679e16c8a2c54987cff5 | [] | no_license | paracrawl/targeted-crawling | 2e017c59c3954ec81f27e4ef040b3dd9b5f1611b | d3ad1bd45a3f8dea2929e5c8c6411797b869ada6 | refs/heads/master | 2021-02-25T20:33:40.641548 | 2020-03-06T16:10:03 | 2020-03-06T16:10:03 | 245,463,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,790 | py | #!/usr/bin/env python3
import argparse
import base64
import datetime
import os
import sys
import urllib
import requests
import tldextract
from bs4 import BeautifulSoup
######################################################################################
def strip_scheme(url):
parsed = urllib.parse.urlparse(url)... | [
"lpla@dlsi.ua.es"
] | lpla@dlsi.ua.es |
6f82dd2029931ad5fc063a657e54d160138e87c1 | b83549b518cd2df6c09b392b5b888f3ef2f0f27d | /recommendations/actions/ask_from_another_user.py | f824daf28f94d095ffa9a80e810e047e665ee484 | [] | no_license | jalletto/movies-by-phone | 931f643ad9ccaac3bdc8f141f16984a9be80be77 | 69170c23c2633a2a416a90adcd29d584657c6f78 | refs/heads/master | 2020-06-01T05:15:56.744778 | 2019-06-06T01:18:34 | 2019-06-06T01:18:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from recommendations.models import User, TrustedUser
from recommendations.sms_sender import SmsSender
class AskFromAnotherUser:
@classmethod
def execute(cls, payload):
asker = User.objects.get(phone=payload['asker_phone'])
askee = User.objects.get(username=payload['askee_username'])
... | [
"joshalletto@gmail.com"
] | joshalletto@gmail.com |
0daff7427930d8664fc5e081e3e1c12a687623ae | 8bd348e7a2197aaa859197a6c383e52e75ae5b32 | /pure_aionsq/connector.py | 3ff5588b9132239fa7177cc756c36468538ce47e | [
"MIT"
] | permissive | RafRaf/pure-aionsq | 00c0285b304b9e216925842079fc6f79267ad7ab | b22defeb52393d3ffea71845fa73591731a88c3f | refs/heads/master | 2020-03-17T00:57:20.899722 | 2019-01-28T14:08:44 | 2019-01-28T14:08:44 | 133,135,219 | 0 | 0 | MIT | 2019-01-28T14:08:45 | 2018-05-12T10:16:46 | Python | UTF-8 | Python | false | false | 1,880 | py | from functools import partial
class Connection:
def __init__(self, transport, protocol, nsqd_tcp_address, port):
self.transport = transport
self.protocol = protocol
self.nsqd_tcp_address = nsqd_tcp_address
self.port = port
@property
def connection_string(self):
ret... | [
"smartrafraf@gmail.com"
] | smartrafraf@gmail.com |
393dc39d316852f188fb8a3831f531918b95a2a5 | 88caf0c76660397d5d495b865e0595935d1b5d03 | /section04-2.py | 734a88183d209f19559572485f690a144bbc5e35 | [] | no_license | jyryuitpro/python_basic | 252018d6ea28d52fbdbf4272dca87b007caa02de | bbe602b5bbf67ff7df4721c5fcff99a913b5ddad | refs/heads/main | 2023-01-23T12:27:03.970312 | 2020-11-07T13:29:58 | 2020-11-07T13:29:58 | 301,707,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # Section04-2
# 문자열, 문자열연산, 슬라이싱
str1 = "I am Boy."
str2 = 'Niceman'
str3 = ''
str4 = str('ace')
print(len(str1), len(str2), len(str3), len(str4))
escape_str1 = "Do you have a \"big collection\""
print(escape_str1)
escape_str2 = "Tab\tTab\tTab"
print(escape_str2)
# Raw String
raw_s1 = r'C:\Programs\Test\bin'
print(... | [
"jy.ryu.itpro@gmail.com"
] | jy.ryu.itpro@gmail.com |
d01e1f605a83f23084895d8115091e03446da2c4 | b2a20fff6388537895b4bf4a69e0986ac9560fb5 | /scripts/test1.py~ | 906c7f90aa5f26bd52041699872a4ea40a428b38 | [] | no_license | Pedestrian1671022/ur10_moveit_config | 5679cab3319f1473eefcb7cb88dfd4b1291b4100 | 5f97f1a086898a2d4ce4d7ecf876d338877b4dc5 | refs/heads/master | 2020-03-24T11:01:02.377872 | 2018-07-28T11:55:02 | 2018-07-28T11:55:02 | 142,673,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | #!/usr/bin/env python
import rospy, sys
import moveit_commander
from moveit_msgs.msg import RobotTrajectory
from trajectory_msgs.msg import JointTrajectoryPoint
from std_msgs.msg import Int32
from geometry_msgs.msg import PoseStamped, Pose
from tf.transformations import euler_from_quaternion, quaternion_from_euler
c... | [
"1172012891@qq.com"
] | 1172012891@qq.com | |
a404a262a2832ba9e0bd998852c68e4b8204e264 | c43f5ba0d9d908fd56511f5c965d844dfee2f5ab | /lstm.py | 8795f790e1e5a3f931b88ffb161fdb7d892706a3 | [] | no_license | paulodder/nlp-code | 7414fdc649e580952018beb1c6115a87c18800ec | a225e99b135d97c0e61bcbc9248edc58bdc52173 | refs/heads/master | 2023-01-28T07:05:16.757902 | 2020-12-13T18:40:29 | 2020-12-13T18:40:29 | 321,134,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,266 | py | import torch.nn as nn
import torch
import math
class Gate(nn.Module):
def __init__(self, input_dim, hidden_dim, nonlinear):
super(Gate, self).__init__()
self.Wx = nn.Parameter(
nn.init.kaiming_normal_(torch.empty(hidden_dim, input_dim))
)
self.Wh = nn.Parameter(
... | [
"paul_lodder@live.nl"
] | paul_lodder@live.nl |
5921868391a1039f49b855aecd7de97fe94693fb | 20febfd781eec805f45ee204ca3bbbb1c531e6fa | /anuvaad-etl/anuvaad-extractor/sentence/etl-tokeniser/repositories/hin_sentence_tokeniser.py | 17233676aa49d4458e183c14675c47f946231c6f | [
"MIT"
] | permissive | DhanviDesai/anuvaad | f4460a0aca375b2689cac281f2693a3907e52457 | eb372283d2c3a1be29b708476ab5771dcdb1f35b | refs/heads/master | 2023-03-04T09:03:15.887679 | 2021-02-11T05:43:35 | 2021-02-11T05:43:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,648 | py | # Anuvaad Toolkit: Anuvaad Hindi Tokenizer
#
# Author: Aroop <aroop.ghosh@tarento.com>
# URL: <http://developers.anuvaad.org/>
import re
from nltk.tokenize.punkt import PunktSentenceTokenizer, PunktParameters, PunktTrainer, PunktLanguageVars
from nltk.tokenize import sent_tokenize
"""
Utility tokenizer class for anuv... | [
"amit.tiwari.min11@gmail.com"
] | amit.tiwari.min11@gmail.com |
5c412220b0fa5c4251332a80c86254ad70860688 | 3053455508093eec8a3076db613582394646efa4 | /aliop/aliop/views.py | 0cd7560691ac393c6542045c38e9dc564c526866 | [] | no_license | Astro9113/aliop | 35fb522d0041e14d5db94fa3192bf5e9657bfd70 | 7b4b05c5dc6949344af63ab9aa6c110c4deb37ca | refs/heads/master | 2021-01-18T06:46:44.858946 | 2017-05-18T13:15:45 | 2017-05-18T13:15:45 | 84,284,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,818 | py | #!/usr/bin/env python
# encoding:utf-8
from django.shortcuts import render
from django import forms
from models import User,Record
from django.shortcuts import render,render_to_response
from django.http import HttpResponse,HttpResponseRedirect
from django.utils.safestring import SafeString
import aliapi
import json
... | [
"astro913@163.com"
] | astro913@163.com |
063885bbafdd84f79b07f613ca2f0672204c5a69 | 15b9f05ea302b8d2d456b14bff939f5004f2db88 | /Starting Out with Python By Tony Gaddis/5.Distance Traveled.py | 5590de2e375d5c0eebda3c3e85113dd225af78d6 | [] | no_license | FokhrulAlam/Programming-with-Python | 0742defd1749ee7cced883e317e15529b377d22e | c8c3603d97049410e4586e1dda2726dce5455425 | refs/heads/master | 2020-07-30T06:07:08.753726 | 2019-12-24T05:57:18 | 2019-12-24T05:57:18 | 210,112,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #Assuming there are no accidents or delays, the distance that a car travels
#down the iner-state can be calculated with the following formula:
#Distance=Speed*Time
#A car is traveling at 70 miles per hour. Write a program that displays:
#The distance traveled in 6 hours
#The distance traveled in 10 hours... | [
"noreply@github.com"
] | noreply@github.com |
a250f2d38bc8a879287e4cabe00553626452d0ef | 9bb91f0f9731bc1e6fa9db3c2d395ae193a33d4f | /app/core/config.py | 30199dc4876ce852999b107c422ed9cb16f1dd0a | [] | no_license | gleb89/users-service | 5e577f11fbf620d737e5ee3894ff5e439c465842 | 46d7e8d0acf3bd3b7159229128d2c58df0d70bce | refs/heads/main | 2023-05-07T03:03:30.418808 | 2021-05-30T10:02:15 | 2021-05-30T10:02:15 | 346,367,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from pydantic import BaseSettings
from app.secretfirebase import *
class Settings(BaseSettings):
SECRET_KEY = 'jdhfjhjei3ei87787383'
service_name: str = "users"
log_path: str = "/var/log"
log_filename: str = "users.log"
log_level: str = "info"
log_rotation: str = "20 days"
log_retention:... | [
"glebhleb89@icloud.com"
] | glebhleb89@icloud.com |
4ffcc832ad8a0bae2d06c9d2a9d8422a44cdc5ff | bd9af5af5a1c21aff4a63a07d3d1810431f06ea8 | /day01/mission05.py | 3fbdd927d32ffe34881b1f77d2571a33c284e06d | [] | no_license | SHLIM1103/python-basic | a37c715750f4d8dbe1a8a4de962c0b1b8be94e6f | ad93a2332e671505d254143082ec5658694563a7 | refs/heads/master | 2023-04-03T18:01:47.550654 | 2021-04-16T08:23:17 | 2021-04-16T08:23:17 | 357,798,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | month = int(input("월 입력 : "))
# if-elif 이용
print("if-elif 를 이용한 날짜 찾기")
if month == 1:
print(31)
elif month == 2:
print("28 or 29")
elif month == 3:
print(31)
elif month == 4:
print(30)
elif month == 5:
print(31)
elif month == 6:
print(30)
elif month == 7:
print(31)
elif month == 8:
pri... | [
"gusl5525@gmail.com"
] | gusl5525@gmail.com |
e5013a8634f961854d429a44905a148c553490fc | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/libraryManager.py | eb2bfd17f26d7d9e8e79fdfc1d61ba2439c6cd68 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,028 | py | bl_info = {
"name": "texture library manager",
"author": "Antonio Mendoza",
"version": (0, 0, 1),
"blender": (2, 72, 0),
"location": "View3D > Panel Tools > Texture library manager panel (sculpt mode)",
"warning": "",
"description": "Load and unload image libraries",
"category": "Learnbg... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9508fe00e842a4cd45885ffc69f497a69c311379 | 252df809b736a71a99d2abd1e380853d77f7b75d | /.ipynb_checkpoints/base_game-checkpoint.py | c4aacbdb18286910d3f61bbc37d2f2d52325b76e | [] | no_license | JanaarthanaHarri/Wacky-1v1 | 28a04574801c0fb90d96e9b34084c0af41c8e622 | a14d709562f3695705a52582a0ffe1b917c16967 | refs/heads/main | 2023-04-25T05:04:14.436695 | 2021-05-16T06:16:51 | 2021-05-16T06:16:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,069 | py | import random
import sys
import math
import pygame
import os
# Set False if audio works for you; pygame has audio problems on my desktop. -William
audio_compat = True
pygame.font.init()
if not audio_compat:
pygame.mixer.init()
# General game attributes
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED ... | [
"wilson289296@gmail.com"
] | wilson289296@gmail.com |
62a4f1b5eab737b0347ac01a75ae6ed2997f9769 | db259ea23fabb6bdddfc26ad6d3c8fd852d6a9fc | /python/city_hop.py | 8f9eca732c964f01ef179e8d5f73e65a6d1720e0 | [] | no_license | bizzcat/codeguild | f5333996d80d1bb81373746f3368df5c72c9558d | 08d87d55107466dca8c6d7e80a2bd61ecbb95a7c | refs/heads/master | 2020-12-25T16:54:03.717775 | 2016-08-10T17:04:17 | 2016-08-10T17:04:17 | 55,080,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | # ********************************************* INSTRUCTIONS *********************************************
# Traveling from one city to an adjacent one is called a **hop**.
#
# For this sort of problem, you'll want to iteratively visit cities you know you can access while updating:
# 1. Cities you can access.
# 1. Citi... | [
"khubb74@gmail.com"
] | khubb74@gmail.com |
db0bd7684e89bae9fe495fe2120401995a899f23 | b42d138383f25d6883c1cfb31d789d80acefa878 | /configuration.py | 75936639384cc824693f62f964bdd7421ad437d3 | [] | no_license | maszaa/replay-gain-calculator | aca12d4d2cd6cc41f594e4d8e03f3dedfc82140b | 6108b64d0a629f11b9daab68774f7b5c0d73631e | refs/heads/master | 2021-02-19T06:07:23.266971 | 2020-05-28T17:24:39 | 2020-05-28T17:24:39 | 245,283,093 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | import datetime
import logging
import sys
import threading
PYTHON3_PATH = "/usr/bin/python3"
REGAINER_PATH = "/usr/bin/regainer.py"
REGAINER_ARGS = ["--preserve-album-gain"]
ALLOWED_EXTENSIONS = [".flac"]
MODIFICATION_DATETIME_DELTA = datetime.timedelta(days=5)
MODIFICATION_DATETIME_THRESHOLD = datetime.datetime.no... | [
"samuli.kohomaki@gmail.com"
] | samuli.kohomaki@gmail.com |
52a076549a096a6812f13518a93e53c2fea2a3c7 | 223f97f2dde2bb24fc5c08f3f7416672fdf06af7 | /adventofcode2019/day08/part1.py | c89911d8bcf57be41f30fd51b84aa38be7d00eeb | [] | no_license | wlockiv/AdventOfCode2019 | 916645b5b9c83d78d9b15c24320a5abe1c920f6f | 24ed44e11575113efa4edfb52266c3cb9e928123 | refs/heads/master | 2020-09-22T13:38:15.699869 | 2020-04-06T22:29:59 | 2020-04-06T22:29:59 | 225,219,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import os
from adventofcode2019.solution import Solution
class Day08P1(Solution):
def __init__(self, input_file='input', test_input=None):
super(Day08P1, self).__init__(input_file, test_input=test_input)
@staticmethod
def parse_raw(raw_input):
return list(raw_input)
@property
de... | [
"walker.b.lockard@gmail.com"
] | walker.b.lockard@gmail.com |
c186ea27dd086f1f17abab4489555608195dd527 | b7a32a77d2f989fe562f2adc2c5776544e6fbd27 | /tracers/qemu/qemu/scripts/tracetool.py | 83bde7bda905b5a10fc58171479ff35bd93c4121 | [
"MIT",
"GPL-1.0-or-later",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-copyleft",
"GPL-2.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | trusted-ws/qira | 22f058502e22f282eb3b6974f0400e2bd521a1c3 | bfa04c0089cd8c81a5cd96e1bd0c97fcf7355d97 | refs/heads/master | 2022-11-13T08:12:27.083485 | 2020-06-29T00:19:45 | 2020-06-29T00:19:45 | 266,877,987 | 0 | 0 | MIT | 2020-05-25T20:52:45 | 2020-05-25T20:52:44 | null | UTF-8 | Python | false | false | 4,095 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Command-line wrapper for the tracetool machinery.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintai... | [
"eth0.db0@gmail.com"
] | eth0.db0@gmail.com |
c47fd75ec4339af66bdfdec0cf255987b62ca9d4 | b56c44b0c22385cc678335d65469ef8aaabbde67 | /yilitm/yilitm/items.py | 03a8d901524f6a33047c4e1654fee72b1566efb4 | [] | no_license | bainiu87/scrapy | f785e6435521dd4e81f306da29d7b6cffef633eb | 1b3bd7ba3c4ee733a79027d9507fdc3f270dfd40 | refs/heads/master | 2020-06-17T06:46:07.643633 | 2017-01-20T03:27:02 | 2017-01-20T03:27:02 | 75,032,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class YilitmItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
name=scrapy.Field()
sell_num=scrapy.... | [
"baiyun5522359@163.com"
] | baiyun5522359@163.com |
68a97c5e0039fe548806b01382d8c3e28c492f04 | e5c69c08e5a4d49b3e2251f5ac36f30080956ccf | /cfripper/rules/IAMRolesOverprivilegedRule.py | ffdc4225b1acebdcecffd553418f4a01d97af894 | [
"Apache-2.0"
] | permissive | jeshan/cfripper | cf1017d5120da718a0467edb677a665316e62bb8 | d339dd5209ebd5c3f32fa5952554201e5f789b72 | refs/heads/master | 2020-04-18T09:03:24.038160 | 2019-01-18T13:42:23 | 2019-01-18T13:42:23 | 167,420,589 | 0 | 0 | Apache-2.0 | 2019-01-24T19:00:34 | 2019-01-24T19:00:33 | null | UTF-8 | Python | false | false | 3,063 | py | """
Copyright 2018 Skyscanner Ltd
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 writing, software dis... | [
"valentin.tunev@skyscanner.net"
] | valentin.tunev@skyscanner.net |
7625f389a157bb9a0259c40f1f9b272e0fbd1d49 | 75a9e0a957fe39f7dea8bf3eaee75513f6ccff65 | /compare_time.py | c0699331d57c61ed7ee968d5749593d6638c2af6 | [] | no_license | Ngamer06/Sort2 | b53890413df846cd32fb3675bbcc34c0d2c440c1 | 3bc479b15530ae493420df3728e95b20dd58883a | refs/heads/main | 2023-02-16T01:26:21.364308 | 2021-01-13T16:43:56 | 2021-01-13T16:43:56 | 329,287,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | import timeit
code_to_test = """
import sys
from random import randint
def partition(array, begin, end):
pivot = begin
for i in range(begin+1, end+1):
if array[i] <=array[begin]:
pivot +=1
array[i], array[pivot] = array[pivot], array [i]
array[pivot], array[begin] = array[... | [
"NGamer06@ya.ru"
] | NGamer06@ya.ru |
e086eda2496c310a06840292336539270a37fa7c | 82e57ddf893ec8b1d3c19e4eeab758eb2cb4ace4 | /but/trades/views/send_email.py | ded5f2cabc1f01788ff32fda5c6f102a6c146d22 | [
"MIT"
] | permissive | yevgnenll/but | 1cf072afdb95492aae7efc9847040d1770a623c7 | 2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1 | refs/heads/master | 2021-01-21T04:55:31.408608 | 2016-06-09T02:53:42 | 2016-06-09T02:53:42 | 55,655,016 | 4 | 0 | null | 2016-06-09T03:14:06 | 2016-04-07T01:54:33 | Python | UTF-8 | Python | false | false | 535 | py | from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from trades.models import Contact
from users.models import User
def send_email(request):
title = request.POST.get('title')
content = request.POST.get('content')
accept = request.POST.get('user_id')
contact = ... | [
"yevgnenll@gmail.com"
] | yevgnenll@gmail.com |
001637de1f9026b1ae0c52d556e284edfd518224 | 07a11262aede31abf130ca2a93fca210083da14b | /ga_bp/ga_bp_real/ga_encoding.py | d31e7c852c6006709a76218ea4c8fb890ca0965b | [] | no_license | guangit1/ga_bp | dd974ecab050e7470c42c21fed3679745348c014 | c0ac7d706c5f309784ab85ded61aaee6835361c7 | refs/heads/master | 2020-05-22T11:50:28.823145 | 2019-10-18T08:16:52 | 2019-10-18T08:16:52 | 186,332,681 | 0 | 0 | null | 2019-05-13T02:35:47 | 2019-05-13T02:35:47 | null | UTF-8 | Python | false | false | 430 | py | '''
Created on 2017年11月21日
@author: ljs
'''
import random
def ga_encoding(pop_size,num):
pop = [[]]
for i in range(pop_size):
temp = []
for j in range(num):
temp.append(round(random.uniform(-0.5,0.5),8))
pop.append(temp)
return pop[1:]
if __name__ == '__main__'... | [
"ljscyn@gmail.com"
] | ljscyn@gmail.com |
56f1c883e8021be17c0479ddf05c910dcebf5f12 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/compute/virtual_machine.py | dbc0cf23804156f5474f9678ad015327f98ecc81 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,321 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | noreply@github.com |
11a45b9ad60a928533cf97b931c095c713897445 | aeac2867b6e6cd60c71eb8162ed00e76e2507349 | /greet.py | 31b63a8e2e1a5229c10d4001eb0c9dd8b8fb04ba | [] | no_license | cabrerosj/Angela-Yu-Bootcamp | bcdb7b886bdf7f35d1b471067d69d6476ca7b879 | fb80cd1c0b3c418bbd60e1ce83257dfa888f024b | refs/heads/main | 2023-06-05T15:06:05.340426 | 2021-06-28T15:03:10 | 2021-06-28T15:03:10 | 381,066,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from math import ceil
def paint_calc(height, width, cover):
cans = ceil(height * width / cover)
print(f"You will need {cans} cans of paint to cover a wall that's {height} x {width} feet.")
test_h = int(input("Height of wall: "))
test_w = int(input("Width of wall: "))
coverage = 5
paint_calc(height = test_h, ... | [
"noreply@github.com"
] | noreply@github.com |
1185038b5add6d6e2bb70633f7fb38a0bd4a4477 | f324cd2cbebd303fd34cd2e26fe1a51c44202d55 | /test/integration/vint/linting/policy/test_prohibit_encoding_opt_after_scriptencoding.py | 867a2e0269f74fa396c1c0c04952e24076736d24 | [
"MIT"
] | permissive | Vimjas/vint | d71579154d177daf458ec68423a66055f90fa308 | e12091830f0ae7311066b9d1417951182fb32eb5 | refs/heads/master | 2023-09-02T07:31:31.299270 | 2022-10-24T13:06:33 | 2022-10-24T13:06:33 | 20,857,415 | 191 | 11 | MIT | 2022-10-24T13:10:00 | 2014-06-15T14:38:32 | Python | UTF-8 | Python | false | false | 2,200 | py | import unittest
from test.asserting.policy import PolicyAssertion, get_fixture_path
from vint.linting.level import Level
from vint.linting.policy.prohibit_encoding_opt_after_scriptencoding import (
ProhibitEncodingOptionAfterScriptEncoding,
)
VALID_ORDER_VIM_SCRIPT = get_fixture_path(
'prohibit_encoding_opt_... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
7761e5f25a807647a04357adc679ee7e8ac02fa0 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /dp/금광.py | 8190eebcd06649d3cf24238703d4170ac0996cbf | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | T=int(input())
for _ in range(T):
n,m=map(int,input().split())
arr=list(map(int,input().split()))
dp=[]
index=0
for i in range(n):
dp.append(arr[index:index+m])
index+=m
for j in range(1,m):
for i in range(n):
#왼쪽 위에서 오는 경우
if i==0:
... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
076cf2edeb38036316e575bf5611e0df4742847d | 6cb67c5ae32faf6168d87858b43d3457282a022e | /esercizi/exchange2.py | 082747f748f13162d798425ecbe6a739df126a5b | [
"Apache-2.0"
] | permissive | formazione/formazione.github.io | 4d64320ab524db5a47eb1ee25bcfd8afc5c7a238 | 161e7fdf8b7b8aaeab6e44ad360b3a5dfd90503d | refs/heads/master | 2023-08-10T15:57:22.646132 | 2023-07-25T11:08:04 | 2023-07-25T11:08:04 | 125,328,356 | 0 | 0 | Apache-2.0 | 2020-02-15T09:02:12 | 2018-03-15T07:25:29 | Python | UTF-8 | Python | false | false | 4,043 | py | import random
class Exchange:
'''e1 = Exchange(dollars=1000, euro=1, cambio=1.18) will give you the euro for 1000 $\
d1 = Exchange(dollars=1, euro=500, cambio=1.18)
'''
def __init__(self, dollars, euro, cambio):
"If euro = 1 it changes dollars into euro and viceversa"
self.dollars = dol... | [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
3330e6af9a7afcaeab778627fc09d2e7b6eedf0e | c3dcf555bc000e818579626ad533d95e98c4e48b | /blogs/migrations/0001_initial.py | aaefc521ec23205fdbc4a6f567cecaa82b1dafc5 | [] | no_license | SrinivasJoshi/ECell-Website | 0d7b5e073465d40789095b8bc21aafd90479c100 | ecbd10db095e14a686250481a47dd2a73190ec43 | refs/heads/master | 2023-06-27T19:21:59.736849 | 2021-07-24T20:40:27 | 2021-07-24T20:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Generated by Django 3.1.2 on 2020-12-06 17:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BlogPosts',
fields=[
('id', models.AutoFiel... | [
"soccerganesh@gmail.com"
] | soccerganesh@gmail.com |
f3ddad894ff8f8182129fc2162a3078825a010c8 | a0d4a7be6ee4587c8623b7d1081c6681b9a1f5d0 | /prob1.py | dcbdd857196b30a425401fd646ebdc8c6fd2ecb2 | [] | no_license | pangacademy/projecteuler | 3fb1cf93ceca4c59195c708fdbe77a0cc8a5c6a2 | bd1b9f613a0e77f8beda757d3eebe22439b03f55 | refs/heads/master | 2022-09-11T23:09:16.415856 | 2022-08-12T14:55:11 | 2022-08-12T14:55:11 | 74,609,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 450 | py |
'''
https://projecteuler.net/problem=1
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
'''
sum = 0
print("Please enter an maximum number that you want")
N = int(input())
for i ... | [
"pangacademy@gmail.com"
] | pangacademy@gmail.com |
25d875712d847ff5331efc882b0a32e303df0b65 | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /api/v2010/incoming_phone_number/create-test-post-example-3/create-test-post-example-3.6.x.py | d8100d65b045e9b542be53429173ac37acc793ac | [] | no_license | synackme/sample-code | 013b8f0a6a33bfd327133b09835ee88940d3b1f2 | 5b7981442f63df7cf2d17733b455270cd3fabf78 | refs/heads/master | 2020-03-17T04:53:07.337506 | 2018-05-07T16:47:48 | 2018-05-07T16:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = '"ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
incoming_phone_number = c... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
a16451915cb098f399c81332762d71fd8b49807b | 6fde33edbcb7c88a35bf86de821520ee37f4dbfd | /training_tweets.py | 3f337dd726e34182dba878442a3996ceba11eb7e | [] | no_license | chinchelliott/cs491 | 7c062bb6b08b94e0faa2254a272fb0783d0d93fa | 037e4cb66c7555796c157e0156f942bb1b5d7762 | refs/heads/master | 2021-08-23T06:53:01.217585 | 2017-12-04T01:10:03 | 2017-12-04T01:10:03 | 109,784,887 | 1 | 1 | null | 2017-11-22T16:16:44 | 2017-11-07T04:00:57 | Python | UTF-8 | Python | false | false | 4,145 | py | #-----------------------------------------------------------------------
# Elliott Miller
# Programming Assignment 3
# CS 491 with Dr. Aibek Musaev
# Due date: 10/15/2017
#-----------------------------------------------------------------------
from __future__ import division
from numpy import average
from utils import ... | [
"noreply@github.com"
] | noreply@github.com |
c98b39e54c5ab0c6cd1fcb7107a698179b026e11 | 18a5c897c208c02defb157a2e0625a2ef77e371e | /EchoServer/server.py | 097dbe0b0f5cfdafe03decc05f0c49eb1db81b8d | [] | no_license | tutushubham/Python-Scripts | 894f773c6b139b8567104f82bca7a58c3e043292 | a1a31963cd8afa8620d7911b35ac8ad04b7c2299 | refs/heads/master | 2021-07-09T08:42:22.312742 | 2020-10-22T12:16:53 | 2020-10-22T12:16:53 | 204,479,978 | 1 | 2 | null | 2020-10-22T12:16:55 | 2019-08-26T13:19:12 | Python | UTF-8 | Python | false | false | 470 | py | import socket
HOST = '127.0.0.1'
PORT = 12345
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((HOST, PORT))
s.listen()
print('Server, is listening on port', PORT)
conn, addr = s.accept()
with conn:
print('Server is connected to', addr)
while True:
... | [
"chinmayrane16@gmail.com"
] | chinmayrane16@gmail.com |
b72d8e80581194d6d047c2771a49ce52bda338ea | 49d8547e537a0ab7f0ce254f85c62355d91e6bd0 | /simple_parser.py | 7fdcff824b96d9cd8e773fbef8234d90f3b264ca | [
"MIT"
] | permissive | HS88/Object_detection | 69b98d5035fd8bc611a47f9ed0cbdd4ae05072e1 | a64995f4569070a9c3e1ca17a4a1ba6dff277135 | refs/heads/master | 2020-06-02T05:57:33.075949 | 2019-06-14T23:27:35 | 2019-06-14T23:27:35 | 191,061,669 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,195 | py |
import sys
sys.path.insert(0, '..')
import __init__
def attach_classes(vsrl_data, coco):
"""
def vsrl_data = attach_gt_boxes(vsrl_data, coco)
"""
anns = coco.loadAnns(vsrl_data['ann_id'].ravel().tolist());
vsrl_data['category_id'] = \
np.nan * np.zeros((vsrl_data['role_object_id'].shape[0], \
... | [
"harmeet.2303@outlook.com"
] | harmeet.2303@outlook.com |
97bc21efb714b6a2cc1e6a2990ee2c76d630de5b | bce71024867dadc7246818dec0b1a3d9f47e10cd | /OpenCV with Python/Ex_Files_OpenCV_Python_Dev/Exercise Files/Ch03/03_10 Begin/03_10.py | 82a83a08096fdf4544475961bffe4a5c6b0f2215 | [] | no_license | vitaliAI/Computer-Vision | 44e7b69be924ce88054692095eacf6961033cee4 | ab113f812c1f78d9aaf753d6d7b37838fcef3741 | refs/heads/master | 2021-07-17T15:09:45.080716 | 2017-10-24T21:50:36 | 2017-10-24T21:50:36 | 105,700,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import numpy as np
import cv2
import random
img = cv2.imread("fuzzy.png",1)
cv2.imshow('Img', img)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
blur = cv2.GaussianBlur(gray, (3,3), 0)
thresh = cv2.adaptiveThreshold(blur, 255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY_INV, 205, 1)
cv2.imshow('Binary', thresh)
... | [
"vitali_mueller@yahoo.de"
] | vitali_mueller@yahoo.de |
a2a6608ddadb48a38f9bb235ecf3d86b3614a531 | ea20dde4cef4550ad2a34854a51e58c401198c39 | /example/forms.py | 490a00b63bf6fa0aab48a4cb21f08fbf208196eb | [
"BSD-3-Clause"
] | permissive | fynjah/django-pimp-my-filter | bc81ae1ee5423ff4c108c17a351890e816da927a | acdd6024ab291dde80e009dd7a15624045d41c2f | refs/heads/master | 2016-09-05T17:53:49.603773 | 2013-09-30T11:01:55 | 2013-09-30T11:01:55 | 10,077,472 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # -*- coding: utf8 -*-
from django import forms
class Login(forms.Form):
name = forms.CharField(
widget=forms.TextInput(attrs={'class':'special','type':'text','name':'username'}))
password = forms.CharField(
widget=forms.TextInput(attrs={'class':'special','type':'text','name':'password'}))
| [
"fynjah@gmail.com"
] | fynjah@gmail.com |
6968b12d234a6f8ae49bdb058b8205ef524799cc | 3b7862ae1ef76dc9fb429323069c6efc855cc399 | /dictionary/dict_hue.py | f18bfb5ecf44e3658f3f5fbe2cbc1f2012483fcf | [
"MIT"
] | permissive | giuliapuntoit/RL-framework-iot | fbbd542d9cfbc007aafec1e2397605af0545f852 | 1c0961f10f0477415198bbee94b6eb3272973004 | refs/heads/master | 2023-08-19T17:55:38.963597 | 2021-10-01T12:55:56 | 2021-10-01T12:55:56 | 263,190,618 | 7 | 1 | MIT | 2021-05-14T09:24:15 | 2020-05-12T00:26:57 | Python | UTF-8 | Python | false | false | 1,929 | py | import pprint
import json
bridge_ip_address = "192.168.1.1"
id = 0
base_address = "http://" + bridge_ip_address + "/api/username/lights/" + str(id) + "/"
# username there is always unless:
# exceptions are creating a username and getting basic bridge information – Login Required
get_method = "GET" # get informatio... | [
"giuliapuntoit96@gmail.com"
] | giuliapuntoit96@gmail.com |
9f0a0bf605738ce0c564688ecefe4d4e4854cf20 | 276e60f69b51de7c50a333ce12212c823aeef71a | /char-lm-ud-wiki-classify-boundaries-report-errors-upToEndOnly-lexCountBaseline-tokenized.py | 7a4b304861e0b4842c3e46e0841d36d078d3ce3c | [] | no_license | m-hahn/probing-char-lms | e6ea3b00f82326140e28656290447d6c998278d6 | 5ab45883cefb1f69788e441b60d56d886833b3e4 | refs/heads/master | 2020-03-21T20:50:58.949446 | 2019-04-29T03:06:26 | 2019-04-29T03:06:26 | 139,032,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,540 | py | # python char-lm-ud-wiki-classify-boundaries-report-errors-upToEndOnly-lexCountBaseline-tokenized.py --language english
from paths import WIKIPEDIA_HOME
from paths import LOG_HOME
from paths import CHAR_VOCAB_HOME
from paths import MODELS_HOME
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
4c8997d7f8de9b04e3f925b38338ed41f2d4bd3a | 8b9625166a2163e4637a075d5e0ca01fe6cc9302 | /supersalarios/settings.py | fff6354a0a84c526570ec249824d85494bb90f5c | [] | no_license | barraponto/supersalarios | d86326c638dd733acbb151c25e04defdd093b07c | dd8b46fab515cb335753021acd890a09e6140668 | refs/heads/master | 2016-09-05T11:46:59.307731 | 2015-07-16T00:31:59 | 2015-07-16T00:31:59 | 39,168,001 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | # -*- coding: utf-8 -*-
# Scrapy settings for supersalarios project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/... | [
"barraponto@gmail.com"
] | barraponto@gmail.com |
2fd91934da21e0817169ec72e1fb4efe4286f4a0 | e9adec9828c079d90e685c8cfc3cce0c70e81a4c | /app/tasks.py | 8282efc8c86c6a56474caaed89ef82bcfc4287b2 | [] | no_license | zacharydenton/anthology | fe61f87642146e4aca43268c1446cf836c1961a7 | 168bbb84b75bd6c6b4938471c3d6b2efc6b6da61 | refs/heads/master | 2020-05-18T02:02:12.742285 | 2013-01-27T00:36:49 | 2013-01-27T00:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from celery import task
import lib
from app.models import Article
from django.contrib.auth.models import User
@task
def fetch_content():
lib.fetch_reddit()
@task
def classify_content():
docs_new = Article.objects.filter(users__isnull=True)
for user in User.objects.all():
classifier = lib.build_cla... | [
"zacharydenton@gmail.com"
] | zacharydenton@gmail.com |
cf1c41d87c32d455eb3d638cc973ab6d68461589 | 47a57473264ac3f721a9ccfbbb93705ca71575a0 | /train_and_compute_corr.py | 8cb6d24a5b3d053a7dbe19aca6e3249cff72b3eb | [
"MIT"
] | permissive | PythonNut/backdoor_data_poisoning | 2eb66363f40ccd31ef24cc9e87dc6c39905e5055 | 39a2afb35ca2b4ea0df1806cc69c438f9e3780e0 | refs/heads/master | 2022-11-23T19:50:55.068988 | 2020-07-26T22:44:02 | 2020-07-26T22:46:43 | 277,701,190 | 0 | 0 | MIT | 2020-07-07T02:54:11 | 2020-07-07T02:54:11 | null | UTF-8 | Python | false | false | 106 | py | import subprocess
subprocess.call(['python', 'train.py'])
subprocess.call(['python', 'compute_corr.py'])
| [
"btran115@deep-gpu-2.csail.mit.edu"
] | btran115@deep-gpu-2.csail.mit.edu |
27077317d775d648e9952eb6f38bdea573da39f1 | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day05-函数-模块与包的使用/00/day05/包/aaa/m1.py | 6e8d32de7ff947708601f6e898b0ae5ad0231af2 | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | def func1():
print('f1') | [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
663b87517554847f85f756083b55562af5062418 | 24b1258616111c3b585e137ee64f1395e73f18db | /torch/testing/_deprecated.py | 3cf7338bff889e10f349fd6b7aab1548aed2db30 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | neginraoof/pytorch | 9ca47c2d32e5b71a24f13232329bea1e5744acda | ed79eff6d3faf126fec8895e83bf5ac28aa1041c | refs/heads/master | 2021-12-13T16:03:02.260731 | 2021-09-09T20:37:36 | 2021-09-09T20:37:36 | 193,156,038 | 1 | 0 | NOASSERTION | 2021-01-15T23:15:32 | 2019-06-21T20:23:32 | C++ | UTF-8 | Python | false | false | 2,590 | py | """This module exists since the `torch.testing` exposed a lot of stuff that shouldn't have been public. Although this
was never documented anywhere, some other internal FB projects as well as downstream OSS projects might use this. Thus,
we don't internalize without warning, but still go through a deprecation cycle.
""... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6b511d19244e574fcd3136bdc4ce1388d22015d1 | dc42551b91ccb14541730975f4c377aedb0ad7c4 | /model/bert_ce.py | 764390df746ee82ab6f70c7c758eb374c71a677d | [] | no_license | liqinzhang/ChineseNER | df862eef8d19204c9f9f9e72ac7f716ed6237f7c | 7d1c6c107b5cc5c57391c0feb1a57357ee519b6a | refs/heads/main | 2023-08-29T18:05:04.404609 | 2021-11-18T01:15:33 | 2021-11-18T01:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | # -*-coding:utf-8 -*-
from tools.train_utils import *
from tools.layer import *
from tools.loss import cross_entropy_loss
from tools.utils import add_layer_summary
from config import TRAIN_PARAMS
def build_graph(features, labels, params, is_training):
"""
pretrain Bert model output + cross-entropy loss
""... | [
"lixiang.2533@bytedance.com"
] | lixiang.2533@bytedance.com |
4298c3737468598270839efff3011bedf2e31660 | 8f4c59e69cce2f6e932f55b3c65aae376b206a2c | /笨办法学python/projects/setup(1).py | 332fa7f39039701ec9d8ae239e60aa76c3237f66 | [] | no_license | zmjm4/python | ef7206292f1c3a3a5763b25527024999de5e8e79 | 44cf74c0f16891c351ce214762218ccf2d7353a0 | refs/heads/master | 2020-05-27T17:23:48.776167 | 2018-05-24T07:14:16 | 2018-05-24T07:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # -*- coding: utf-8 -*-
try:
from setuptools import setup
except:
from distutils.core import setup
config={
'description': 'My Project',
'author': 'My Name',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': 'My email.',
'version': '0.1',
'install_requires':['nose'],
'pack... | [
"715073608@qq.com"
] | 715073608@qq.com |
833b7978be8a7f9978c1a75adf44c28808105db7 | 6c978330ce6efbd6c8e2b80e46ed988bfb1c19f9 | /Acme_corporation/back/urls.py | 50c3d854dc82a2a93861251f587629b77519f869 | [] | no_license | Daniel-Barrera-D/Carros | ba4e2338b8de68182d8c91ba931d6cc90fa8f898 | 7c76b1397d4d7967e75ca1e709cd8aef65a782ad | refs/heads/main | 2023-07-21T03:59:49.034817 | 2021-08-29T20:17:17 | 2021-08-29T20:17:17 | 401,133,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from django.contrib import admin
from django.urls import path,include
from .views import CarrosDetail,CarrosView,CompraDetail,ComprasView,IntermediarioDetail,IntermediarioView,PersonasDetail,PersonasView
from .views import UsuariosDetail,UsuariosView,VentasDetail,VentasView,MarcasDetail,MarcasView
urlpatterns = [
... | [
"barreradeviadaniel@gmail.com"
] | barreradeviadaniel@gmail.com |
dcfd31ae243cdcd79dcfe606108422852abf2078 | 06daf393a194f1b9c6770599bb5a0a446a5a5c55 | /sdk/identity/azure-identity/tests/test_cli_credential.py | 7377d330455e371a02ea6f12ad58dc5287fd6697 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | aalapatirvbd/azure-sdk-for-python | a173c2decdcac57da0cc523d38f59b4f579fa66f | aae867a31f53286b123cf008a43cf0cd3746f8ba | refs/heads/master | 2022-09-13T21:47:23.064354 | 2020-06-04T16:25:39 | 2020-06-04T16:25:39 | 269,188,618 | 0 | 0 | MIT | 2020-06-03T20:32:53 | 2020-06-03T20:32:53 | null | UTF-8 | Python | false | false | 4,884 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import json
from azure.identity import AzureCliCredential, CredentialUnavailableError
from azure.identity._credentials.azure_cli import CL... | [
"noreply@github.com"
] | noreply@github.com |
3291928f557fad555617d4211c9cc286437b86a7 | 4f0c349ae1bac3c48a1ba20a99990485436a0a36 | /raw_algorithms/diff/edit_distance.py | 447a85a3964bd47c736395e3ee02e3c0617dc0eb | [] | no_license | nekozing/playground | 1e0886fbf4fceb03008b13db216e9f1639bfcd2f | 496b318f8e07746d82c77932826d5ccfc937aa82 | refs/heads/master | 2016-09-05T13:16:14.111281 | 2013-12-25T10:02:34 | 2013-12-25T10:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import sys
"""
edit distance algorithm ( recursive )
"""
"""
this is so wrong because of the case
a = "a"
b = "bbbab"
def edit_distance(a, b, i, j):
if i + j == 0:
return diff(a, b, 0, 0)
elif i == 0:
return edit_distance(a, b, i, j-1) + 1
elif j == 0:
return edit_distance(a, b, i-1, j) + 1
else:
return mi... | [
"nekozing@gmail.com"
] | nekozing@gmail.com |
223d60e807f2a2863e9ab4d7fcf6346fd75b2fcc | 795d4691d4f0b7b80fa399f9d7e9f4e2388cb6a4 | /filter_moevenpick_csv.py | ed6b15c656455eca8cbff1b7e419569947ccf9bf | [] | no_license | ChristianPetersen/winereccsv | 0bb41dba59a71bcf86219b3a613dcde7c221816c | 6e1a79503b47443ffe30889395219c74138e5649 | refs/heads/master | 2020-12-24T07:45:04.796293 | 2016-11-10T10:23:04 | 2016-11-10T10:23:04 | 73,373,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | #!/usr/bin/env python
# coding=utf-8
import csv
completecontent = csv.DictReader(open('moevenpick_raw.csv','rb'))
g=open('moevenpick_wein.csv', 'wb') #vielleicht mag auch rb besser passen
# writer = csv.DictWriter(g, ['ProductName', 'ProductPrice', "ProgramId", 'Zupid','MerchantProductNumber','CurrencySymbolOfPrice','V... | [
"cpetersen@christisensimac.localdomain"
] | cpetersen@christisensimac.localdomain |
481c646b1d16d587e716f81b84ad67c96269341f | a02a2da4ca761b74544ab0fe819847074930fed8 | /mrpy/discretization/ARK_ESDIRK3_2I_4L_2_KC_2003.py | 4b7d815086f2dbc8b7f1a66f59849894540dbdc8 | [] | no_license | marc-nguessan/mrpy | 40ac7a11404ed97ab5824f4dc8fd57e8d51caf95 | 6fb0bce485234a45bb863f71bc2bdf0a22014de3 | refs/heads/master | 2020-12-03T08:28:11.312333 | 2020-01-01T19:05:05 | 2020-01-01T19:05:05 | 231,252,927 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,951 | py | from __future__ import print_function, division
"""The temporal-modules contain the functions needed to comute the advancement in time
of the physical variables simulated. We need a specific temporal scheme to
advance a system of variables. Here, each scheme is implemented in a class. The
class is supposed to be insta... | [
"arthur.nguessan@gmail.com"
] | arthur.nguessan@gmail.com |
b80a3c17374ed5af3e048ab0f6b6d98f6b73168d | 6bbce8cd09289eddc97b2654a47c4c6746faaafc | /env/bin/pip3 | be48aa32de2b85d22cbb903c8428e9e28b8f6340 | [] | no_license | thommiano/cs-6501-004 | 5049c799ee22b0efa9e7002f5263555f63d944dd | bd1cb927076b99daef54c251abfb2abb5394634f | refs/heads/master | 2021-05-01T17:40:21.186154 | 2017-01-20T03:07:15 | 2017-01-20T03:07:15 | 79,520,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/Users/tmiano/Desktop/cs-6501-004/env/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tmiano@rti.org"
] | tmiano@rti.org | |
d461b9cdc71bded4fea50f645a0375461c19b6ba | 06718751e5d7f09d6fec0d007170a07e36cb3ad8 | /blog/views.py | a814f87381a979ed2506f5c937b07d5a9e91e503 | [] | no_license | renangustavo22/djangogirls | 3e3120cd796a0fb0fc7e4bce07380b8d59663ae0 | 53607fe0bd4279a206c3c7c1ea9ab210b8062a5a | refs/heads/master | 2020-08-22T04:21:33.033705 | 2019-10-22T22:27:03 | 2019-10-22T22:27:03 | 216,316,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | 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
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('... | [
"renan.sa@b2wdigital.com"
] | renan.sa@b2wdigital.com |
a4dcb8c9e705a5d5079d0347c1906ccc25446d79 | af2d581659d052968ac75f8866076a86fe605ed1 | /social/settings/models.py | f1e1970129cb6771b5f1919ddd6dd88e3062a643 | [
"Apache-2.0"
] | permissive | iameric1986/BearlySocial | 59f2174fb9e5d209e9824da08bc2a491331ebb3a | 1261cc10e6fe95ee700edc38b0922f478a7b8bf6 | refs/heads/master | 2021-01-19T13:47:05.005685 | 2017-04-11T08:16:19 | 2017-04-11T08:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from django.db import models
class Settings(models.Model):
auth_required = models.BooleanField(
default=True,
verbose_name="Node Authentication"
)
send_images = models.BooleanField(
default=True,
verbose_name="Send images to nodes"
)
send_posts = models.BooleanField... | [
"emmettu@gmail.com"
] | emmettu@gmail.com |
ebda7187c990755ed5402fe5d8d27ea22d320b99 | a84b99ce26f86a467df95b3ef2b57dd15cb1b49e | /boston_housing_v1.py | 3422493d35a3c0ff7bae1422e2c0fc0720a5c705 | [] | no_license | yanqinghao/KerasDL | 3ea6246495bc01bda5792a7146ad4519088375dc | 853f2872fff600fdd62d882d52d6dd6f82200cd8 | refs/heads/master | 2020-03-28T14:07:10.799496 | 2019-05-20T06:17:51 | 2019-05-20T06:17:51 | 148,458,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | import ptvsd
# Allow other computers to attach to ptvsd at this IP address and port.
ptvsd.enable_attach(address=('10.122.24.46', 3000), redirect_output=True)
# Pause the program until a remote debugger is attached
ptvsd.wait_for_attach()
import ssl
ssl._create_default_https_context = ssl._create_unverified_context... | [
"187280967@qq.com"
] | 187280967@qq.com |
1467080cc60312b2af114571aaf42827195feca1 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/LQ/LQToCMu_M_800_TuneZ2star_8TeV_pythia6_cff.py | 1e0c27817afa82ce4cc3f09aea6c3fd1520590fb | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,777 | py | import FWCore.ParameterSet.Config as cms
source = cms.Source("EmptySource")
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity... | [
"sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch"
] | sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch |
fda823e4ff9fd41caa89712a06a68c2511ddc01b | 96cd11c23631b7289d3dbba8ef095e44434118c9 | /Max_exposure/HRC_Scripts/hrc_dose_extract_stat_data_month.py | ba0b876b785406a066d3c8a28664d949f9c73e23 | [] | no_license | chandra-mta/MTA_old | 0735f7b3ddda03b2e0f9b107650989efb7d888d6 | 15dcee7aac06996ae0e37a8bd10d747802cb3b48 | refs/heads/master | 2023-04-07T21:27:11.013080 | 2023-04-07T17:48:50 | 2023-04-07T17:48:50 | 151,128,337 | 0 | 0 | null | 2023-04-07T17:48:51 | 2018-10-01T17:24:44 | IDL | UTF-8 | Python | false | false | 11,868 | py | #!/usr/bin/env /proj/sot/ska/bin/python
#################################################################################################
# #
# hrc_dose_extract_stat_data_month.py: extract statistics from HRC S and I fi... | [
"isobe@c3po-w.cfa.harvard.edu"
] | isobe@c3po-w.cfa.harvard.edu |
c4166f9d26df53b1e991a74fb3dd41c6032084d8 | 75c903567168c968ceb8ff780ff9b7c596620655 | /tests.py | cce6586afa285416561ed2d27e0ae3797ce08c31 | [
"MIT"
] | permissive | AxelVoitier/streams | 5f09e109c3743746e597f93d1bc13c0970c16f1e | 7624472790f33a1a268697cec3173224c60af74b | refs/heads/master | 2021-01-15T23:07:31.112439 | 2014-04-06T09:52:46 | 2014-04-06T09:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,234 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
from itertools import chain
from operator import mul
from random import shuffle
try:
from cdecimal import Decimal
except ImportError:
from decimal import Decimal
try:
from unitt... | [
"nineseconds@yandex.ru"
] | nineseconds@yandex.ru |
c511ab9a17004263e44e304edfdbd80f906cadb8 | b782ca0e8bdc754dda1c88e16699d1354dc04a7c | /5.0/HighlightTextBox.py | 8cd97ae3726d83af6e9d85f4e40148b3a08978aa | [] | no_license | zlmonroe/tkinterIDE | 4bb6e9168c572c138afddeda631a0db5194fd574 | bfdb216f95e754e5a9385cd49c83c1f25cd1771d | refs/heads/master | 2021-01-13T05:12:53.228327 | 2017-02-08T17:16:18 | 2017-02-08T17:16:18 | 81,263,759 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from ColorDelegator2 import ColorDelegator
from idlelib.Percolator import Percolator
from tkinter import Text
class HighlightTextBox(Text):
'''Implements a Text box with a syntax highlighter'''
def __init__(self, root, *args, **kwargs):
Text.__init__(self, root, *args, **kwargs)
self.d ... | [
"noreply@github.com"
] | noreply@github.com |
15fcda7f35352aff4cd510c32ccaa4e34eb169bc | f2e1bc264261fb58904cf4103b7a7a8f173dca00 | /blog/migrations/0001_initial.py | 7976813b3967f4b6d8b036b0b8b2b5b5db8cbcf0 | [] | no_license | simongawlik/my-first-blog | 09304dd3aa8cdd42b976eb65c3eee1582b99a650 | ffcf78e745105fe26c10c6e284d53fddf484a0da | refs/heads/master | 2020-12-24T18:55:33.431311 | 2016-05-24T19:16:12 | 2016-05-24T19:16:12 | 59,129,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-19 06:17
from __future__ import unicode_literals
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
depen... | [
"sgawlik@gmail.com"
] | sgawlik@gmail.com |
8ca1d0d099d4eae0f02fb3aeb83088230cee69bb | c18254794feda61bec013206b3d19a58b0565876 | /configs/face/2d_kpt_sview_rgb_img/topdown_heatmap/cofw/hrnetv2_w18_cofw_256x256_dark.py | 19075a4c3b312906696c5271972462d92cdf3525 | [
"Apache-2.0"
] | permissive | SummerVideoAnalysis/mmpose | eebfff87658128825c487f4037abd1c86635b86c | 70d60e03b7eaa0ae1ec66cc7a22c00916f00c9e1 | refs/heads/master | 2023-07-15T20:17:47.603214 | 2021-08-29T12:03:54 | 2021-08-29T12:03:54 | 378,733,264 | 0 | 0 | Apache-2.0 | 2021-06-20T20:22:14 | 2021-06-20T20:22:13 | null | UTF-8 | Python | false | false | 4,625 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=1)
evaluation = dict(interval=1, metric=['NME'], key_indicator='NME')
optimizer = dict(
type='Adam',
lr=2e-3,
)
optimizer_config = dict(grad_clip=None)
# learnin... | [
"noreply@github.com"
] | noreply@github.com |
4fccac5da665fe6364d42b23370e4b00b9e42227 | 13ceb518b347b0e6fe7c6cc17a78e783e1e073df | /ProTwo/AppTwo/models.py | e3e44603cc15b38592ec26eb541d41485e3433cc | [] | no_license | shinchri/Django_Project_U | ccc8b649f45bfc6dc0d51f8b3d1b78e4e0fb7d0e | efc364874dd0de06df8e7dbf8d4bebefd4d6cdae | refs/heads/master | 2021-04-09T11:48:26.561004 | 2018-03-17T00:25:56 | 2018-03-17T00:25:56 | 125,582,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from django.db import models
class User(models.Model):
first_name = models.CharField(max_length=264)
last_name = models.CharField(max_length=264)
email = models.EmailField(max_length=264, unique=True)
def __str__(self):
return self.first_name + " " + self.last_name | [
"shinchri7@gmail.com"
] | shinchri7@gmail.com |
32d68d090c8a27cb436b9d09c1bee0e8e9633b49 | d4a78a9099884c1e1c203f7e5b78b844de053ff7 | /tensorflow/contrib/boosted_trees/estimator_batch/estimator_test.py | ee052ac60387d8f993e4942dd7dff39e191dd3a4 | [
"Apache-2.0"
] | permissive | pint1022/tensorflow | b4b7632c0f833135a0bb37ab5a939a6c1ec51ef6 | ab1f872bbcf7749112f76a7f9ba17406e8fbbf4e | refs/heads/master | 2020-04-15T00:16:48.132100 | 2019-02-05T17:48:11 | 2019-02-05T17:48:11 | 164,233,910 | 2 | 2 | Apache-2.0 | 2019-01-05T16:53:25 | 2019-01-05T16:53:25 | null | UTF-8 | Python | false | false | 31,748 | 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
ea99ab62f052826985d7a00560bde46433bb15ae | f2956692b2e69cd8212c0f666ea2075ceafe3484 | /addons/computer_store/controllers/controllers.py | 906dfc6cc102fd60bc9b216139c65f97424256bc | [] | no_license | neroswords/Erp_computer_store | aac51c7eeb009b51db7fc1d5254bed9d7bca7c20 | 03901d07438c3887b563da3d410763d6a588ddab | refs/heads/master | 2023-02-04T06:33:21.107082 | 2020-12-11T04:54:13 | 2020-12-11T04:54:13 | 320,242,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class ComputerStore(http.Controller):
# @http.route('/computer_store/computer_store/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/computer_store/computer_store/objects/', auth='public')
# def list(self, **k... | [
"tanathep.min@gmail.com"
] | tanathep.min@gmail.com |
5779d87cfd07184b508bd9691bbe64b81a7bcefc | d3bb87661f3322e90a49d34961d42a6deb615aff | /match/multiprocessor.py | 05222391be25deb0aa459bfc8dcabbdd3f005de1 | [] | no_license | UW-Macrostrat/map-processing | 07b0a248305488ec3e76f0424f1357ccf993ce91 | 0d33dabf4fecd4c9c3b8573e4db914470d38d191 | refs/heads/master | 2020-05-17T00:04:41.262573 | 2015-07-10T15:11:16 | 2015-07-10T15:11:16 | 30,981,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | # Adapted/borrowed from http://stackoverflow.com/a/7556042/1956065
import multiprocessing
import psycopg2
from psycopg2.extensions import AsIs
import sys
import os
sys.path = [os.path.join(os.path.dirname(__file__), os.pardir)] + sys.path
import credentials
class Processor(multiprocessing.Process):
def __init__(s... | [
"jczaplew@gmail.com"
] | jczaplew@gmail.com |
f014d2569f7060a20871dfa5ca632207d0a9645e | 74e0c71ca7b2045e96d8774d95d82ac99871cd43 | /code/detection_pipeline/detection_process.py | 197b14d5a59e4149c1964d2624fedfe68bee513f | [
"MIT"
] | permissive | wakeful-sun/vehicle-detector | 198ad587cdbf108dd473be0647996e8982181fca | 080eab6acb2fc11dc5ea5a93ee5437347612aab2 | refs/heads/master | 2021-01-24T10:10:29.775621 | 2018-03-12T13:26:09 | 2018-03-12T13:26:09 | 123,042,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import matplotlib.pyplot as plt
import cv2
import numpy as np
class DetectionProcess:
def __init__(self, image_handler_fn):
self.image_handler_fn = image_handler_fn
def run_on_video(self, video_path):
video = cv2.VideoCapture(video_path)
while video.isOpened():
... | [
"al.v.bondarchuk@gmail.com"
] | al.v.bondarchuk@gmail.com |
6c37a11631c8d21df652ef5193f5e25f491bc9ae | 1130580e5eb8ce39f77db0d2e855a54739bc4535 | /config/urls.py | 71e74fa521d17cd84e7c341c75fd97c9ebec7f92 | [
"MIT"
] | permissive | mikewolfd/ronatrack | 9dc87a1555390254cddd82c5f36b674b4c509ffa | 03efa4d1dc03d56ccb5cb1be2ebfbdb4895eb354 | refs/heads/master | 2022-12-21T12:13:45.459524 | 2020-09-16T03:34:41 | 2020-09-16T03:37:53 | 286,084,490 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | """ronatrack URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"michael.f.deeb@gmail.com"
] | michael.f.deeb@gmail.com |
f291c5c8e8e3d0c521a4f62a41aa1a29469dbf74 | c54722779374bf15b0e1bfef9cbc5b98001bbea8 | /Reinforcement/R-1.7_squareSumOddComprehension.py | aabe1a4b5f91911bd642b8a2f4c3161bb0374fbc | [] | no_license | fahrulardiannugroho/struktur-data-tugas-1 | f210e035045d3a685fb2e1972f2ec7bf9e017d1a | 500345debcd6ea4cd67d0010be83424edc06bd29 | refs/heads/master | 2023-05-03T12:22:02.062493 | 2021-05-31T12:44:27 | 2021-05-31T12:44:27 | 372,419,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | def squares_sum(n):
return sum(number**2 for number in range(0,n) if number%2 != 0)
print(squares_sum(6))
| [
"fahrul.sultra@gmail.com"
] | fahrul.sultra@gmail.com |
39f7d60114108abc7ea34aea009d006dc49c9354 | de949750764e464d2b0c0075eae927e6bb6b7c05 | /face_recognition.py | 8090c76597ca10267a8f978fe22ad4cc951adcbd | [] | no_license | DorAzaria/OpenCV_Course | 6a7b9e82f2e84ed773d16c6e33f801d39075a2f0 | e3b03085a86446b7e947c781aeeb48b79c8cbeb1 | refs/heads/master | 2023-04-23T06:23:10.152717 | 2021-05-13T15:11:21 | 2021-05-13T15:11:21 | 363,653,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import numpy as np
import cv2 as cv
haar_cascade = cv.CascadeClassifier('haar_face.xml')
people = ['Ben Afflek', 'Elton John', 'Jerry Seinfield', 'Madonna', 'Mindy Kaling']
# features = np.load('features.npy')
# labels = np.load('labels.npy')
face_recognizer = cv.face.LBPHFaceRecognizer_create()
face_recognizer.read... | [
"46644036+DorAzaria@users.noreply.github.com"
] | 46644036+DorAzaria@users.noreply.github.com |
ee60220531833dfa58713b25b02f69e80e9248c1 | 80d97603f03fb7be9569930eb5cc825c2c3550a6 | /plugins/modules/cloudwaf_app_delete.py | 5c8401fdc23dc934026ccb64bb39d3bcff2965c0 | [
"MIT"
] | permissive | satishkori/fortiwebcloud-ansible | af7d5d1c4639f3dae81bf35bc15def66c8bc4d84 | 0e6579004cb08a6509ea2c234f887de3ff5f51c1 | refs/heads/main | 2022-12-26T20:04:29.110882 | 2020-09-24T08:12:25 | 2020-09-29T02:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from ansible_collections.fortinet.fortiwebcloud.plugins.module_utils.fortiwebcloud.app import del_app
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.connection import Connection
from ansible_collections.fortinet.fortiwebcloud.plugins... | [
"yangsong@fortinet.com"
] | yangsong@fortinet.com |
ee1a652380900718aa678df41079f242c313c58e | a0232212194e3c928b074b1ef0f3a847b800ebce | /img_resize.py | 21ba95a311040319ae37e84f5da4130e0df3715b | [] | no_license | Lp-wu/image-processing | 6e3c07e2ee3283dfb603edc6802c7aeb5fc16960 | 6f16140eee76f702f452c893c1547be11944e7ba | refs/heads/main | 2023-04-24T01:37:23.528752 | 2021-05-19T03:31:20 | 2021-05-19T03:31:20 | 302,572,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import os
import glob
import numpy as np
import cv2
infolder = r'set12/'
outfolder = r'set12_resize/'
files = glob.glob(os.path.join(infolder, '*.jpg'))
files.sort()
filecount = 0
for i in range(len(files)):
filename = os.path.basename(files[i])
in_path = infolder + filename
out_path = outfolder... | [
"noreply@github.com"
] | noreply@github.com |
c9d58c17e864ab025f0a150793e137ea2d21d2f7 | 009628e385aca8552dad5c1c5cba018ca6e5954d | /scripts/cazalsconnolling | 63c09a69565fefe3cdc31f78c056fdc17bca2aa8 | [] | no_license | csrocha/python-mtk | 565ebcfeb668a6409d48135bf081321d8121b263 | c3ba520f55c2e204feb6b98251abcb046e51c6cd | refs/heads/main | 2023-01-12T02:46:44.457520 | 2020-11-17T20:20:59 | 2020-11-17T20:20:59 | 313,939,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | #!/usr/bin/python
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
import sys, os
import os.path as path
from math import copysign
from numpy import array, zeros, arange, float, abs, argmax, all
from numpy import ndenumerate,round, dot, outer, arccos, pi, nan
from numpy.linalg import det, norm
from mt... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop | |
50bd7570885a37538e5495edb934943821ee50dd | 771559e2a67798375e818e845acfb96f6aa87045 | /google_POM/scripts1/test-reports/test_arre.py | 6023ef97a1f36f43e1752d30a211688d0adcecd1 | [] | no_license | krishnareddygajjala/flash | 1bd723f26c8d41feffbabf2cb4111402ff309f7a | f59b3de0726a8836c27cc550071e534b8edb4230 | refs/heads/master | 2018-11-08T06:43:49.345685 | 2018-08-28T13:05:46 | 2018-08-28T13:05:46 | 114,076,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py |
import time
from selenium import webdriver
from common.page_Actions import hover_over_element
#driver = webdriver.Chrome(executable_path="C:\Users\Ram\PycharmProjects\untitled2\divers\chromedriver.exe")
driver = webdriver.Edge(executable_path="F:\Drivers\MicrosoftWebDriver.exe")
driver.get("http://www.arre.c... | [
"gvkreddy71@gmail.com"
] | gvkreddy71@gmail.com |
4eb4c15215fad3c28c6db96248ae0dc6d40e2f77 | ec6adc47fb40b00b8e0cc8fce2ca001fd66221ed | /Solution62.py | 23ba39185126783643196133dfa4d97d235a424c | [] | no_license | zzz24512653/LeetcodeSolution | 49b26d7397cd8aa0f8fd98e7b4886e7b80388ed7 | 169fa999c66d31876fa07691ac7125898f7865f1 | refs/heads/master | 2021-01-16T19:30:14.046602 | 2017-09-04T09:01:21 | 2017-09-04T09:01:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
if m == 1 or n == 1:
return 1
dp = [[0]]
for _ in range(1, m):
dp.append([1])
for _ in range(1, n):
dp[0].ap... | [
"zzz24512653@gmailcom"
] | zzz24512653@gmailcom |
93711dfae1b2e8f3ec1c4f048ea9d43acc00039e | 3f3b4d0cb18e85cdc3598851cd75a31efb89bf8f | /record_plugin/cms_plugins.py | 0008a32b2f440b82320c1e9d93314c28eeb57330 | [] | no_license | dovietnga0909/feellove | 79d94fa607ea515c9594e27ef1ddb56f84003f2e | 579ad21f2f0eda51500954ea03b176c2821512e2 | refs/heads/master | 2020-12-02T22:24:04.272462 | 2017-06-25T06:08:43 | 2017-06-25T06:08:43 | 96,126,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from record_plugin.models import RecordPluginModel
from django.utils.translation import ugettext as _
class RecordPluginPublisher(CMSPluginBase):
model = RecordPluginModel # model where plugin data are saved
module = _("Record"... | [
"apnguyen@bmi-system.com"
] | apnguyen@bmi-system.com |
06e0d0a07a42eb28a097d792b5d9b6f07823ca92 | 0ad72d1789391c20e20ed4d60d95298149c0cd06 | /mofan_python/CNN_demo.py | c50200bf5450f98c3f8382fa6b806c6ecc3ccb78 | [] | no_license | Jambobo/learn_pytorch | 6634cbf90b9e93ed96ca59f957144d8d3c0c2bc0 | a0a6b23915c976c713085f67a3b91bf880888841 | refs/heads/master | 2020-06-06T06:36:45.044824 | 2019-06-19T05:57:46 | 2019-06-19T05:57:46 | 192,666,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import torch
import torch.nn as nn
import torch.utils.data as Data
import torchvision
import numpy as np
from torch.utils.data import sampler
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
DOWNLOAD_MNIST = False
BATCH_SIZE = 50
LR = 0.01
EPOCH = 1
train_data = torchvision.dataset... | [
"49688345+Jambobome@users.noreply.github.com"
] | 49688345+Jambobome@users.noreply.github.com |
b2514650358f9f9158ce3d6cff20a73195fa8295 | c18bdb1abf3bb9be1997a568e2260850c11137ab | /lib/tinyusb/hw/mcu/microchip/samd/asf4/tools/update_from_atmel_start.py | 0ef2a04c372b36a6d8f7d128ead7f5776f2a39e1 | [
"MIT"
] | permissive | diybitcoinhardware/micropython | a730026ad7fa4e3cff4cb5ed14dd6b3f1fb54734 | 6bdf1b69162b673d48042ccd021f9efa019091fa | refs/heads/master | 2022-11-23T04:42:47.976301 | 2022-11-07T14:25:09 | 2022-11-07T14:25:28 | 182,322,508 | 4 | 4 | MIT | 2022-10-16T11:47:28 | 2019-04-19T20:34:49 | C | UTF-8 | Python | false | false | 2,514 | py | import requests
import zipfile
import os.path
import shutil
import os
import os.path
import sys
import subprocess
if not subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], universal_newlines=True).strip() == os.getcwd():
print('Please run "{}" from the top directory in the asf4 repo.'.format(sys.argv... | [
"snigirev.stepan@gmail.com"
] | snigirev.stepan@gmail.com |
b83c0bf1980c39b0880fdc0f3f37a0e32f6fec7d | e00dda386747efa92083bdd8bb2e8d4445655a93 | /second_stage/爬虫.py | 5a80c57c4a19e38499563223add746a426744505 | [] | no_license | shenlinli3/python_learn | 6047e4e5bb3f34051d9436386974a5c98515651f | 4d1586ed220b1cb2e2a715b34dfaafe5a1a7ed50 | refs/heads/master | 2023-05-02T17:35:48.267583 | 2021-05-23T13:13:03 | 2021-05-23T13:13:03 | 369,990,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | # -*- coding: utf-8 -*-
"""
@Time : 2021/05/21 19:20
@Author : shenlinli
"""
import requests
import re
import threading
import time
if __name__ == '__main__':
# print(len(list01))
# print(list01[len(list01)-1])
def get_content(head_html,list_):
# tmp = []
# i = 0
... | [
"shenlinli3@163.com"
] | shenlinli3@163.com |
2413e4039f0c7fa8ec94d206ceb8d88bcf7894a6 | 197d4dd78d6d2d59d0efb50c7f7076354d47b94e | /web/app.py | 6bb20b532a2565ade202bb14c3f838f764ee01c8 | [] | no_license | AlessandroCapelli/Information-Retrieval | 83cd13c3dd0b48eaa14893cb1b0ab31091e371a2 | 67ee674c6a4c738926f0e502e31f3e152241292d | refs/heads/main | 2023-02-19T06:27:52.357767 | 2021-01-21T19:22:58 | 2021-01-21T19:22:58 | 331,729,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,712 | py | from flask import Flask, render_template, request
from elasticsearch import Elasticsearch
app = Flask(__name__)
es = Elasticsearch("http://elasticsearch_1", port=9200)
index = "tweets_index"
users_index = "user_profile_index"
users_id = {}
users_id["JoeBiden"] = 0
users_id["BarackObama"] = 1
users_id["KamalaHarris"] ... | [
"noreply@github.com"
] | noreply@github.com |
75d7f5ee708f7a5a626a4bd5afff1ef969fd835d | f76cd5e2b13d9477994f911f06cfb778420e57b5 | /tools/LUBM/prepare.py | 2c028d1f5a1aa6a2638c9f7f21b8dde7846ec8a7 | [
"Apache-2.0"
] | permissive | azaat/CFPQ_Data | 98d82420fc2c7f96d5a32875ec2ed8360997adc2 | 0c189c26785df451f6fac9d82817b06b40b07573 | refs/heads/master | 2021-07-25T08:35:17.227280 | 2020-09-08T20:09:11 | 2020-09-08T20:09:11 | 216,022,931 | 0 | 0 | Apache-2.0 | 2019-10-18T12:49:47 | 2019-10-18T12:49:45 | null | UTF-8 | Python | false | false | 348 | py | import os, sys
if len(sys.argv) < 2:
print('Usage: prepare.py <prefix> <new>')
exit()
prefix = sys.argv[1]
new = sys.argv[2]
files = os.listdir()
for f in files:
if f.startswith(prefix):
name = f.replace(prefix,new)
try:
os.rename(f, name)
except Exception:
print('Failed to rename f... | [
"egororachyov5@gmail.com"
] | egororachyov5@gmail.com |
8a75284ae8a12edc15e07c5ea68562b0c8a4b9ca | a8befc6d4f8f490557a980cc48412209b27f8a1b | /sortnew.py | 206d33ebcaa64f2c47d58859cb6a8a2c87b29987 | [] | no_license | Artimeo/ObjectTracker | 3aba52fead664c8440e7eb5e5cbf861bfc6b28c3 | db5c72afd294946484fd2ce50d259dcdcdf629ee | refs/heads/master | 2020-07-30T08:30:41.406750 | 2020-06-28T03:40:46 | 2020-06-28T03:40:46 | 210,156,044 | 0 | 1 | null | 2019-12-12T21:29:19 | 2019-09-22T13:56:36 | Python | UTF-8 | Python | false | false | 10,429 | py | """
SORT: A Simple, Online and Realtime Tracker
Copyright (C) 2016 Alex Bewley alex@dynamicdetection.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Li... | [
"artemvb98@mail.ru"
] | artemvb98@mail.ru |
20e4571064a0dca967d5b425fe4fcb10d3139d26 | bbedd09faaec5be15aeeac918c2768d530773167 | /devel/github-cli.watch.py | 0b9cf7d8175335c172f9354db87bb5006f6c0c01 | [] | no_license | pmiess/apps.0install.net | 86110be0e4d5ea72ea7643676a9d784822e44e8b | 637df1b289cc29830a0dd8158d83ae4e0739f13f | refs/heads/master | 2021-07-13T11:04:27.598221 | 2021-02-20T08:03:17 | 2021-02-20T08:03:17 | 230,488,084 | 1 | 0 | null | 2019-12-27T17:41:49 | 2019-12-27T17:41:48 | null | UTF-8 | Python | false | false | 302 | py | import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from github import releases
releases = [{
'version': release['tag_name'].strip('v'),
'released': release['published_at'][0:10]
} for release in releases('cli/cli') if not release['prerelease']]
| [
"bastian@eicher.net"
] | bastian@eicher.net |
2b21d1be3b1a32f23cc147e1cc53f5d752653ca1 | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Text/__init__.py | 740ee3c117f9b4b8520efecb912e7b6b83d5b0bd | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 139,587 | py | # encoding: utf-8
# module System.Text calls itself Text
# from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# ... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
b9e0e8358d49cd1ef8cfc2ec4671176112d20265 | 7ce4502ef839e0ad8c31bc4f642ac266d39d75dc | /Part_4/exercise_answer_files/circles_script.py | 7d60a9ecd568cb32070aa2617665912e52629334 | [] | no_license | nuitrcs/intro-programming-python | 8d558999c7b43f5cbfe3f57f41cff81381af9a49 | 97cd2296de3b9ffe362ea10ab59b27ae30b92380 | refs/heads/master | 2021-06-24T22:15:30.884539 | 2019-04-22T15:21:49 | 2019-04-22T15:21:49 | 134,481,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from circles_mod import circumference, area
with open('circle_rad.input','r') as finput:
diameter=2*float(finput.readline())
# circle_rad.input doesn't exist in the repo, you'll have to create it
print('The circumference is:', circumference(diameter))
print('The area is:', area(diameter))
with open('circle_area.out... | [
"christina.maimone@northwestern.edu"
] | christina.maimone@northwestern.edu |
cc5975ce2fe8ed7d1317b4a0746ef95a8ea0ff6a | ca65de008f386a09872029b8da2f70954a4ab0b6 | /pod_cr_to_jira/pod_sunset.py | 92fdd26a580288edd49e4b228529c3c9e500d816 | [] | no_license | KevinJMcGrath/CloudFunction-SFDCtoJIRA | 0dbab8ff2001e627e008f80669ebe89bea31e262 | cef2dccbeaf93e37a66e319840ab91513f6dd59f | refs/heads/master | 2023-05-24T19:19:41.535166 | 2019-12-05T20:00:59 | 2019-12-05T20:00:59 | 221,784,923 | 0 | 0 | null | 2023-05-01T21:16:33 | 2019-11-14T20:53:00 | Python | UTF-8 | Python | false | false | 425 | py | import sfdc_data
class Sunset2JIRA(sfdc_data.POD_ChangeRequest):
def __init__(self, inbound_json, pod_data):
super().__init__(inbound_json, pod_data)
def get_description(self):
pass
def get_sre_service_catalog(self):
return "14840" # Pod sunset
def build_jira_tree_sunset_pod(... | [
"kevinmcgr@gmail.com"
] | kevinmcgr@gmail.com |
a85ab262f2dae7a7d2fc500e09780c100468289d | 14b5e45af984315e55ef0a1abaf5d0f2c2485ae0 | /scrapy_demo/tutorial/tutorial/middlewares.py | 736e2aaee5d5019ffe998412ec71e25c2b67facf | [] | no_license | chensource/BeginningPython | ee784458a44cd42da225de8a1896222f70325eb8 | 7f23a7ca0c928f52380741a7de42bdcde0b05629 | refs/heads/master | 2021-01-15T15:32:45.380389 | 2018-03-06T06:15:16 | 2018-03-06T06:15:16 | 63,028,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
import random
from tutorial.settings import IPPOOL
class TutorialSpiderMiddleware(object):
# Not all methods need to be... | [
"280580216@qq.com"
] | 280580216@qq.com |
a0f7d764e965e2a2a6b2307b6cffc09c9e55114e | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_timeout.py | 48fdc0108adcd87a0723272de8ee9ff835c08394 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 7,061 | py | """Unit tests for socket timeout feature."""
import unittest
from test import test_support
# This requires the 'network' resource as given on the regrtest command line.
skip_expected = not test_support.is_resource_enabled('network')
import time
import socket
class CreationTestCase(unittest.TestCase):
... | [
"278688386@qq.com"
] | 278688386@qq.com |
ebbc51facb34ea1a2e21063d80cc00e727601163 | e68b775b72a684d194dd46c3fd8f04d2cf99783a | /module2/L2.1.2.py | 283dafbde0fe876459ba29de3e650e709c6fd20f | [] | no_license | vadya8z/stepik_selenium | f86ffa5cc4a2e2cc028c2cce9b124117ce8f741d | b2245f9ac8326ee9c7041f1cb505c42072f78556 | refs/heads/master | 2022-08-08T23:13:07.719730 | 2020-05-23T11:44:33 | 2020-05-23T11:44:33 | 266,322,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | #https://stepik.org/lesson/165493/step/5?unit=140087
from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select
import math
# link = "http://suninjuly.github.io/selects1.html"
link = "http://suninjuly.github.io/selects2.html"
try:
browser = webdriver.Chrome()
browser.get(link... | [
"ksvolodar8@gmail.com"
] | ksvolodar8@gmail.com |
a9073a3c45f27c3e59b9a301fc69128b69d2a9a2 | 9a607614527cfdd91c77a5166b5a5553d7cfce80 | /IC/IC2/app.py | f1d10727c3c2f999250b6d2141f11fdb03152d9f | [] | no_license | Youail38/Image-captioning | 6584413ceca74a064ee4fffe2418077e5df15fd9 | b421c7fcdf32b56139836d7908ca8bdcd318981d | refs/heads/main | 2023-05-12T12:09:25.571163 | 2021-05-31T16:34:42 | 2021-05-31T16:34:42 | 372,567,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | from flask import Flask, render_template, request
import cv2
from keras.models import load_model
import numpy as np
from keras.applications import ResNet50
from keras.optimizers import Adam
from keras.layers import Dense, Flatten,Input, Convolution2D, Dropout, LSTM, TimeDistributed, Embedding, Bidirectional, Acti... | [
"noreply@github.com"
] | noreply@github.com |
839c40ab38b010f46d4212c50bea2d8e27bd9408 | aa336590a6ca731efa94a27ed8199e32fec61694 | /visual/controls.py | 7983ca9c63924d3a24c7995373729494a4446e98 | [] | no_license | Incatec/visual | a9d5ce73ec869abab5c639f0d850885088f74c42 | b6ea1862442c866a018d90bae4d606380b6f334d | refs/heads/master | 2021-05-05T16:35:02.961947 | 2017-09-12T08:28:28 | 2017-09-12T08:28:28 | 103,243,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,622 | py | from visual import *
__all__ = visual._fix_symbols( globals() ) + [
'controls','button','toggle','slider','menu']
# Bruce Sherwood, March 2002
# Import this module to create buttons, toggle switches, sliders, and pull-down menus.
# See test routine at end of this module for an example of how to use controls.
las... | [
"jleuven@denc.nl"
] | jleuven@denc.nl |
78e4d6e8879b9564aec075ff7b4915458fce4c85 | 9650a6dbb9ed3190f5596175197709a014d143fb | /app/student/routes.py | 09080cdd63c0073a923bd0cbba1545bb7acff6d4 | [] | no_license | nvhoan69/classsurvey | 463530552a4fa392bcbf08c08f8f3e570027fc23 | 1f13564c95ecbb408ac511a75b12f2fd0576f8fa | refs/heads/master | 2020-04-07T12:33:49.989026 | 2018-12-27T03:25:37 | 2018-12-27T03:25:37 | 158,372,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from app.student import blueprint
from flask import render_template
from flask_login import login_required
from app.base.helpers import requires_access_level
@blueprint.route('/')
@login_required
@requires_access_level('student')
def index():
return render_template('student.html') | [
"boy98tx@gmail.com"
] | boy98tx@gmail.com |
c5fecb5038b9d59752653477be97a8b421e32895 | f69565187e60a66a2228f17e00a48c03861477bf | /11/remote_proxy/gumball_machine.py | 862ada0ea001ecf19fd1f5dca70a7000bbaef134 | [] | no_license | luoshizhi/design_pattern_python | c196e209cc9c57e124342706691a65ee49ed0d13 | 1d4e4f1fda176fd77935df168fcae47b12ec7377 | refs/heads/master | 2020-11-24T18:47:47.089110 | 2019-05-14T05:06:51 | 2019-05-14T05:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | class GumballMachine(object):
def __init__(self, count, location=''):
self.count = count
self.location = location
self.state = 'Init'
def get_report(self):
report = dict()
report['count'] = self.count
report['location'] = self.location
report['state'] = ... | [
"kailizhu@KailideMacBook-Pro.local"
] | kailizhu@KailideMacBook-Pro.local |
970ae72a1bff7a527d6201408d4040ea5d6d4ef7 | 11b1e5c1542bd6c160562bcf80090f88edf80606 | /learning_logs/models.py | 461c9a29683928dc87d0ef3e3a1a54bc7d3f754c | [] | no_license | clipklop/learning-log | b41fec2d99cc2d6d0a60263fdce0616ad61fe6d0 | 19d148da77db0acdd057d0ceac965768a234bc7f | refs/heads/main | 2023-04-23T23:09:42.168350 | 2021-05-10T21:35:38 | 2021-05-10T21:35:38 | 355,488,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | from django.contrib.auth.models import User
from django.db import models
class Topic(models.Model):
"""A topic the user is learning about."""
text = models.CharField(max_length=200)
date_added = models.DateTimeField(auto_now_add=True)
owner = models.ForeignKey(User, on_delete=models.CASCADE)
def... | [
"mishayartsev@gmail.com"
] | mishayartsev@gmail.com |
f483556e93224387175f7eff33d87b0a7556d008 | c6ba08d1ae4aa133b7820185252817907d06f6c8 | /tests/express/test_express.py | 0dc8354587a5e6fdcf7540f4f99e0a7aef35a13d | [
"MIT"
] | permissive | cdeboever3/cdpybio | 8b085522bc4e6e04a8cfa60efede890651f80f2f | 893010dc42e4c324af6cdd1c93ca415466fab0cf | refs/heads/master | 2022-02-07T03:40:18.089134 | 2019-05-21T22:31:18 | 2019-05-21T22:31:18 | 19,328,822 | 2 | 2 | MIT | 2022-02-02T20:31:24 | 2014-04-30T22:07:05 | Python | UTF-8 | Python | false | false | 3,155 | py | from copy import deepcopy
import os
import pandas as pd
from pandas.util.testing import assert_frame_equal
import pytest
import cdpybio as cpb
FL = [os.path.join(cpb._root, 'tests', 'express', 'results.{}.xprs'.format(x))
for x in ['a','b','c']]
TG = os.path.join(cpb._root, 'tests', 'express', 'tg.tsv')
T... | [
"cdeboever3@gmail.com"
] | cdeboever3@gmail.com |
597034f0609230850f3ec2c130e0c0eb24051355 | 1efd8c138a7062b9810f0859be8e0c4592ef8543 | /course/lesson05/task05/numbers.py | d0af03e8e3aa15536d16a2d18ac242c5b0b5cca2 | [
"MIT"
] | permissive | mstepovanyy/python-training | 5c38983dc053eb5a7ad8ae11cc5cfa531ac3404f | 0a6766674855cbe784bc1195774016aee889ad6c | refs/heads/master | 2021-01-17T19:57:56.196771 | 2017-04-14T10:57:18 | 2017-04-14T10:57:18 | 68,795,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/python3
"""
Print a number of numbers in a file; each number shall count only once (e.g.
``1234`` shall count only once, not 4 times).
"""
import re
def count_numbers(file_name):
"""
Count numbers in provided file, and return total amount of it.
Args:
file_name (str): path to a file
... | [
"Mykola.Stepovanyi@aerlingus.com"
] | Mykola.Stepovanyi@aerlingus.com |
1e1a748b19f0731d23e5fced0230d6c28117b9d0 | 0ffd9743f764fd77fbe57feb9bc80689ed367757 | /FDP/aula3/notafp.py | 39cd22dd69ab4ecdf1ebf9bce2562947a1b1d5f9 | [] | no_license | joanaritacouto/fdpython | 7df5528fc2a57fd654ffbb5cad5460c49fb0ff65 | 41904318a363668e944864009fa7dec8ea1e6522 | refs/heads/master | 2021-05-13T13:55:27.847342 | 2018-01-08T20:23:46 | 2018-01-08T20:23:46 | 116,722,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | x= float( input('API: '))
y= float( input('ATP: '))
z= float( input('EP: '))
n= 0.30*x + 0.30*y + 0.40*z
print('nota a fundamentos de programação', n)
if n >= 9.5:
print ('aprovado')
else:
print ('reprovado')
| [
"joanaritacouto@ua.pt"
] | joanaritacouto@ua.pt |
eb41704997bf530667ea55f44b8a1c784eaeb6b5 | 871454bb6203d26f93c144cb8604e5c6276ab94b | /auth/demo/serializers.py | eae85b34749d46389279c7317dc7fb45f67302a9 | [] | no_license | netology-code/DJ_code | 1b13a51b7f85c1f35dcfb2b2d010fe2ded7eb297 | a9b657aa6e2d9b3a9f4f4c4c120bb30e8802c042 | refs/heads/master | 2023-06-20T11:35:44.791530 | 2021-07-25T14:41:21 | 2021-07-25T14:41:21 | 388,563,577 | 3 | 44 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from rest_framework import serializers
from demo.models import Adv
class AdvSerializer(serializers.ModelSerializer):
class Meta:
model = Adv
fields = ['id', 'user', 'text', 'created_at', 'open']
read_only_fields = ['user',] | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
795ce022a7581a0756870eed38d850db7139a756 | 1a03c112ad5d75647074ee262575ca5a45614514 | /pharmacy-cybo-com-spider/drug_store/drug_store/utils_drug_store_au/urls_cleaning_script.py | f2f6557c002efc468faea83f084bd91614e92c26 | [] | no_license | mtaziz/scrapy-example-spiders | 405da3df8f5ead1755e42a063ad58a4dfac1070b | 7b5abe94826daf4af871201e42594c9be8e98bf8 | refs/heads/master | 2021-01-10T06:47:39.813405 | 2016-03-20T08:31:36 | 2016-03-20T08:31:36 | 54,181,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | #!/usr/bin/env python
import os
import sys
# from utils_drug_store_au import urls
import csv
import csv
with open('urls-cleaned.csv','w') as csvfile:
csvReaderData = csv.reader(csvfile)
header = csvReaderData.next()
linkIndex = header.index("store_url")
empty_list = []
for row in csvReaderData:
stor... | [
"mdtariqaziz@gmail.com"
] | mdtariqaziz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.