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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd7fd46fa5732e315777fee1c58704a8ddf8b95b | bb8337a75de8922edadd60bf3114547fb8e097fa | /Graveyard On Fire/track.py | bb2f38f1ca0658a1eaadd9e44f2144c18bd0ad6d | [] | no_license | 888robotiators/2019-Bunny-Bot-Vision-Code | 2e2bf610e0269c73d6e8a982b15ad7810af1394c | baf345053186aea62c097af2de89aae4d951e800 | refs/heads/master | 2020-07-22T13:30:30.664252 | 2020-01-03T05:09:45 | 2020-01-03T05:09:45 | 207,217,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,955 | py | #!/usr/bin/python
#print "looking"
import cv2
import numpy as np
import math
import struct
import socket
import sys
import time
import select
#defines udp server address for jetson
HOST = '0.0.0.0'
#HOST = '10.8.88.19'
PORT = 5809
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((HOST, PORT))
degree_... | [
"ryanpcather@gmail.com"
] | ryanpcather@gmail.com |
1ca5c4f05df4f2c0e0fe6ba6201220fc8b132e3b | 4cb3b119e317802ce1a64dbf6f2b1b654e20f069 | /utilities.py | a913adae795f5fdb60edb79f77358c455ba3c4cc | [] | no_license | thortun/FoodRepo | 7774fa6a586a4b50628e5d1364efc248f0a1be0f | 3297b101ab2fcfaa3a59c425e8e1ee08965c6057 | refs/heads/master | 2021-07-15T07:08:16.750435 | 2020-05-06T21:06:35 | 2020-05-06T21:06:35 | 131,606,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | import urllib2 # Most URL-handeling happens here
import unicodedata # To make unicode to only ascii
from math import ceil
def getElementsByProperty(HTMLData, HTMLTag, prop, propName):
"""Gets all HTMLTags with the given property and name.
<HTMLTab prop="propName">*INNER HTML*</HTMLTag>
Like this my ... | [
"thortun@stud.ntnu.no"
] | thortun@stud.ntnu.no |
f68e1430d3ef31d9016a0553e43d49e0b1324e84 | 3e0e797b388a65fc7b15a908a981ff6c39a31179 | /hw3.py | ef88f11bd2f564618e74f4dd9718de3e36284b1d | [] | no_license | YangLuYang/ML_hw | be51a9d1838fa733ef8e5c4ce68833b36e0646fc | 91dcde04dacea579d6c1a14fe12f889dea03b0c3 | refs/heads/master | 2020-06-24T15:52:56.896837 | 2019-07-26T12:49:17 | 2019-07-26T12:49:17 | 199,006,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | import tensorflow as tf
import keras as ks
import numpy as np
import cv2
import pandas as pd
# def cleanData():
# data = np.loadtxt('./data/train(3).csv', skiprows=1, delimiter=' ', dtype=str)
# # data = np.loadtxt('./data/hw3.csv', skiprows=1, delimiter=' ', dtype=str)
# x_data = np.array(data[:,1:])
# ... | [
"yang@yangluyangdeMacBook-Pro.local"
] | yang@yangluyangdeMacBook-Pro.local |
e05bcb65006e0ceeb16eb2c70a9ef633d6e7c8b5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/knabbers/A.py | bbd8fd315049627fb82af60f5c2e8854e2c57ff3 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | from collections import defaultdict
with open('in.txt','rb') as fin, open('output.txt','w') as fout:
case = 1
it = iter(fin.readlines())
_ = next(it) # cases
for line in it:
print ("\n")
print ("case " + str(case))
N = int(line)
line=next(it)
xs = [int(c) for c in line.split(" ")]
print... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
49de10e7791c48f83e4b5dfd26b337433d8d1e3d | 61a1048329dfa9cb8eb529d36d397f0499ee5ba3 | /main.py | 13212cec35a45070181b2efe129a46e224de34dc | [
"MIT"
] | permissive | Beta-23/PythonResources | 0798ce8e44bfb026ae752476753cc4feb3ec621b | a315206e60b84fc2454ce88127585404d55c673f | refs/heads/main | 2023-02-02T13:46:31.083336 | 2020-12-22T05:15:47 | 2020-12-22T05:15:47 | 316,874,156 | 0 | 0 | MIT | 2020-12-22T05:15:48 | 2020-11-29T04:17:21 | Python | UTF-8 | Python | false | false | 643 | py | # Write your code below this line
print("Welcome to the Band Name Generator.")
street = input("What's name of the city you grew up in?\n")
pet = input("What's your pet's name?\n")
print("Your band name could be " + street + " " + pet)
n = 6
if n > 2:
print("Larger than 2")
else:
print("Smaller than 2")
age = 13
... | [
"alfred.dominguez@gmail.com"
] | alfred.dominguez@gmail.com |
b04c66ef30e0214d32869c57d7ba0b2b3c73a291 | 64f8abd9d141c5cf44ebc6f16ebe4e28c6d04280 | /scatterplot.py | c8da5af93ad91d3a488f9af2b7d65d9b52cf6360 | [] | no_license | neekoleung/marvel-new-avengers-prediction | 20a5c3bddbb89cad549b8cbb25c5c5c56b379b90 | d208ecefe86efa4df3c3ae07262a1310c4fca1da | refs/heads/master | 2022-02-24T13:38:35.125771 | 2022-02-14T18:49:57 | 2022-02-14T18:49:57 | 244,150,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | '''
Name of file: scatterplot
Author: Yan Pan
Purpose: This module is to generate a scatterplot to show the relationship between power and appearence frequency.
Module imports it: main
'''
import matplotlib.pyplot as plt
import pandas as pd
#The function use merge data and load it to the dataframe and then use scatt... | [
"noreply@github.com"
] | neekoleung.noreply@github.com |
38cddd04d579ed5183a248032ea271694482e772 | bfee360e228494749ce1f73f7bc48cf5f4698d3a | /excelplay_echo/manage.py | 38b4c34eb2106926a8aaf47172acc50318243dac | [] | no_license | Excel-MEC/excelplay-echo | 0cc1f8d2305c107f95c8e72f7929651ec44c2b0f | 2b062e2a783adb7abeb05420c0761734fa1d368f | refs/heads/master | 2021-04-18T21:26:59.333703 | 2019-01-14T17:34:54 | 2019-01-14T17:34:54 | 126,799,930 | 1 | 1 | null | 2018-10-26T09:13:41 | 2018-03-26T08:47:40 | Python | UTF-8 | Python | false | false | 546 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "excelplay_echo.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djang... | [
"sivagrenganathan+github@protonmail.com"
] | sivagrenganathan+github@protonmail.com |
b57ba0399975fd87764463dc6ef8424007f3781d | d3a51ed6e814a05640321c5544b13ca7a9c24ebf | /python/ops/script_ops.py | 2c640621cf7dc43435219d411df1f6a579a0e126 | [] | no_license | marketmuse/tensorflow-1.6-w2v-data-builder | a1f55707ea7d0bc06dee277a035465f7e19a5356 | 1e4f5cb0a4a9c37d26ff2ad73e331e9e4d289c56 | refs/heads/master | 2020-03-21T10:01:19.310169 | 2018-06-23T20:11:40 | 2018-06-23T20:11:40 | 138,429,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,606 | py | # Copyright 2015 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... | [
"ulrich.soeffing@gmail.com"
] | ulrich.soeffing@gmail.com |
941ebd3b44068fcd2a3f0f100f5513f5257dedbc | 76691e799e7310ac843f7e7ea784189f4d420d66 | /KeyPublisher.py | 34121ff6ee4813ff8fc74581e72582e341383dd0 | [] | no_license | gingrul/DEIS2020 | 84024dde46efdcc9d07d3b3aa6dbf0ed51ad1751 | 2d89d8f884e3b77eab8a608f7cf932385b1d197d | refs/heads/main | 2023-03-24T22:10:36.269282 | 2021-03-18T14:32:04 | 2021-03-18T14:32:04 | 328,364,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | import rclpy
from rclpy.node import Node
from std_msgs.msg import String
import numpy as np
import cv2
from subprocess import call
import sys
import os
from datetime import datetime
import time
class KeyPublisher(Node):
def __init__(self):
super().__init__('key_presses_sender')
self.pubAction = se... | [
"noreply@github.com"
] | gingrul.noreply@github.com |
8abb3283836f7d5dc13a985b255394ee9d1e1f65 | b3f3f3376f37f4f23c60b849ed097a82e2d860ba | /src/zbx-maint.py | d82d1b6addd6640896035de58adda9cbaa49c003 | [] | no_license | RafPe/hubot-zabbix-scripts | 3dbee8b56b53a848c09cb65798615e3a0259b724 | 32e733b6708646a6cba32054c31bc03df29055ec | refs/heads/master | 2020-04-06T06:56:13.412677 | 2017-08-30T14:10:31 | 2017-08-30T14:10:31 | 64,328,230 | 8 | 5 | null | 2017-07-18T13:33:45 | 2016-07-27T17:25:35 | Python | UTF-8 | Python | false | false | 8,451 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import time
import argparse
import json
import uuid
try:
from zabbix_api import ZabbixAPI
HAS_ZABBIX_API = True
except ImportError:
HAS_ZABBIX_API = False
__author__ = 'RafPe'
parser = argparse.ArgumentParser(description='This is a demo scri... | [
"rafal@pieniazek.nl"
] | rafal@pieniazek.nl |
7d15d4df3900c3c89718de552ccda3a944b99c88 | a07e5cb7052461abac4925767fb9b57088062778 | /projects/detterwr/project.py | 7c540a79bfc4bab2345a7158c6a510f0a1521714 | [] | no_license | detterwr/RobotTeamProject | 28094e73ee3fb70c42778b999600de1133cd77af | 45207c02287e485eb9975ad6e2803f1363fb184d | refs/heads/master | 2020-03-13T06:24:42.098717 | 2018-05-23T22:00:12 | 2018-05-23T22:00:12 | 131,004,134 | 1 | 0 | null | 2018-04-25T12:38:29 | 2018-04-25T12:38:29 | null | UTF-8 | Python | false | false | 643 | py |
import tkinter
from tkinter import ttk
import mqtt_remote_method_calls as com
import robot_controller as robo
def main():
mqtt_client = com.MqttClient()
#mqtt_client.connect_to_ev3()
root = tkinter.Tk()
root.title("Test")
main_frame = ttk.Frame(root, padding=20, relief='raised')
main_frame... | [
"detterwr@rose-hulman.edu"
] | detterwr@rose-hulman.edu |
c781573383d448e1f8f38ddbfe1805f3073f96e1 | 87edf960bdf5eb7202d7cbbfd3d706bc4ca906cc | /pysport/golf/tutorial.py | ea1201893304d8544b60766319d6433468f600ff | [
"MIT"
] | permissive | notbanker/pysport | 65b1bfc24cd44dec2b0a999b365cb53283abf515 | fbeb1f1efa493aa26ffb58156b86ce2aee3482bf | refs/heads/master | 2020-09-19T20:30:52.512482 | 2016-09-13T22:56:37 | 2016-09-13T22:56:37 | 67,849,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | ########################################################################################################
# #
# The module provides one solution to the "horse race problem", though here applied to golf # ... | [
"peter.cotton@gmail.com"
] | peter.cotton@gmail.com |
bfa7526cf02028ee81f5be260236d207fd71ada4 | 88cfeb8f7076450e7a38d31ab2d11883c1818c8d | /net/densenet.py | f37cd38d0ead26afb7480a9c9c2189f1ef9a2c08 | [] | no_license | ZQPei/Alibaba_Cloud_German_AI_Challenge_for_Earth_Observation | 4e5a127c12e0c02ed1914ab000a131e1a7f7d844 | c2efb32763af0a56a3a7ecb9d83c0744f71d5c14 | refs/heads/master | 2020-04-26T04:31:57.731178 | 2019-02-17T01:10:55 | 2019-02-17T01:10:55 | 173,305,034 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,159 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as cp
from collections import OrderedDict
def _bn_function_factory(norm, relu, conv):
def bn_function(*inputs):
concated_features = torch.cat(inputs, 1)
bottleneck_output = conv(... | [
"dfzspzq@163.com"
] | dfzspzq@163.com |
805acfed79164fc851df2a9a99715665096fee50 | b004204644dd3cf9ad922a6cd5c0aab0c0e97598 | /addons_custom/res_partner_phonecall/models/__init__.py | b1530e36cc8f58540eb0fa9d228170ce9c4d9c39 | [] | no_license | butagreeza/korea_spa | 7a2fdd92ca73205945632ead6582ef1df424074e | 1524f87b62998eba29e491d0836714abec7059fd | refs/heads/master | 2023-04-26T09:45:51.931127 | 2021-05-17T16:45:33 | 2021-05-17T16:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from . import res_users
from . import phonecall
from . import res_partner
| [
"tungpd@izisolution.vn"
] | tungpd@izisolution.vn |
b73574370153b8c43fc3ddf4e720d0edec7a8a5f | 6935a3f11efed0698b31677e7f7eff3bdff89ad4 | /EditDistance.py | 3dab181856ae140b22871bdfa5c4c1e47e95106b | [] | no_license | StayErk/KernelMethodsUtilities | aa9cf2b0ee0fc9004eaab1ecd4e90de228d028a5 | c2b6b5a39a5053f3c0a8588a672b26be8bf23712 | refs/heads/master | 2023-07-27T21:19:11.814227 | 2021-09-11T06:11:49 | 2021-09-11T06:11:49 | 395,316,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | from Bio import SeqIO as sio
def min_edit_dist_levenshtein(string1, string2):
deletion_cost, insertion_cost, substitution_cost = 1, 1, 0
length_string1, length_string2 = len(string1) + 1, len(string2) + 1
levenshtein_matrix = [[0 for i in range(length_string2)] for j in range(length_string1)]
for i ... | [
"edrioe@gmail.com"
] | edrioe@gmail.com |
a56555ee45f45ef5b8532d84b6c2cf4870ae0bcc | 5eb8e5ee1b1463840aaf2db79c4d7c81d47f542d | /moldesign/data/atomic.py | d824bc8c9120fd71e9912b30d166a0fb5a99defa | [
"Apache-2.0"
] | permissive | obrien951/molecular-design-toolkit | 1e5be5071e63dd294bd049ec168c6c6c98aebde7 | 345e91ad3ebb5077bc4b94274ec6e1c7eafab749 | refs/heads/master | 2021-01-23T00:44:32.037274 | 2017-06-03T01:07:53 | 2017-06-03T01:07:53 | 92,837,070 | 0 | 0 | null | 2017-05-30T13:42:43 | 2017-05-30T13:42:42 | null | UTF-8 | Python | false | false | 3,371 | py | from __future__ import print_function, absolute_import, division
from future.builtins import *
from future import standard_library
standard_library.install_aliases()
# Copyright 2017 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with ... | [
"aaron.virshup@autodesk.com"
] | aaron.virshup@autodesk.com |
b7540f55e46852e977b05d340efdc5ad013f8970 | cdaaa880338bf10e181be5f331a36ae508c7fd14 | /youtube_scraper.py | e67c216c5a6951a966cea3f459bc31388992331e | [] | no_license | Aneesh-Anand7/Columbia-Summer-2015 | 18fe6fc607aaac852be213672d3f54a4fe67cca5 | 93eb45e5cd46b83bde59ed3cb4a49e5e1a0b9229 | refs/heads/master | 2016-09-01T12:58:13.001083 | 2015-12-20T00:38:47 | 2015-12-20T00:38:47 | 48,301,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import time
import requests
import pandas as pd
#Country specific sales data for movies
sales = pd.read_pickle('wiki_movies8')
#Youtube founded in 2005, not used for movie trailers until 2006/2007
new = sales[sales['year']>=2007]
#insert your own API key
api_key = 'AIzaSyDj6AjmDI45iB9DdrQ-a4t3McMpMj0MdaI'
for i, row... | [
"aanand@mit.edu"
] | aanand@mit.edu |
d7727aae6c4f9edfc496a4fce6b55f72671bd320 | 34039eb012beca4fbd0ed96d523bf88bf39cffdf | /potFieldsClassCode/controller - Nalin Sinha.py | 61b5569e0d89eff72f0548940e364389d95829db | [] | no_license | hsudakar/racecar2019 | c72392edc9e415d584ab2e621b843b8361f03a30 | 40e45bb0490709e5468f303bf37ec19fcf156230 | refs/heads/master | 2020-06-26T03:05:00.533385 | 2019-07-29T17:06:41 | 2019-07-29T17:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | #!/usr/bin/env python2
from math import *
import numpy as np
import rospy
from sensor_msgs.msg import LaserScan
from ackermann_msgs.msg import AckermannDriveStamped
k = 1.0
carCharge = 1.0
jetCharge = 0.8
wallCharge = .6
lidarPoints = 100
initSpeed = 0.2
steeringFactor = 2.3
speedFactor = 0.1
class Racecar:
SCAN_... | [
"bpaez@g.hmc.edu"
] | bpaez@g.hmc.edu |
5f82420827fe3d84a27b93bdb272851e78b8640a | 2970291ff52e98915abb47848aeb71517ed1fbab | /machines/migrations/0028_auto_20200321_2338.py | 7e985c1f5a57f54e980268faea52817ba7736ccf | [] | no_license | dannyswolf/MLShop_Django_Service_boook | dd33f4bb0352836897448bc45bbb09b7c49252c2 | 9ac5f85468487a53465e244ba31b9bc968300783 | refs/heads/master | 2023-07-15T15:06:53.298042 | 2021-08-29T11:49:42 | 2021-08-29T11:49:42 | 255,998,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 3.0.4 on 2020-03-21 21:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('machines', '0027_auto_20200321_2337'),
]
operations = [
migrations.AlterField(
model_name='machines',
name='Μοντέλο'... | [
"ntinisiordanis@gmail.com"
] | ntinisiordanis@gmail.com |
0f3884af9214244c0e87ff8025c0bc6c0d1c1f4b | 99206e2d7bd338e7760be8161c03bf58badc600b | /mul of 10.py | 92b55b6516b13272189a2f84b90d6c53532960ce | [] | no_license | Arun0033/Guvi | 524987307f1b58229293c81f82ab8e9dc9949743 | f49d4b2892bcf6b17ab4bc7acd761300ec9d9043 | refs/heads/master | 2020-05-25T23:00:35.506103 | 2019-07-21T04:27:32 | 2019-07-21T04:27:32 | 188,026,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | m=int(input())
while not(m%10==0):
m+=1
print(m)
| [
"noreply@github.com"
] | Arun0033.noreply@github.com |
e68a12ed2dd20f27609111b77d780a6bbe47ed92 | e72ed9dfc5f90f4772d0b36da249ff7b2d39fd5f | /bible/forms.py | 748bfa871e6d5c9e2b1441ce2ce0f51c7a384224 | [] | no_license | mparkcode/django-retroplay | 58b0626bb4c6e80f96232a0e4886d1a6c2805bbd | 3f76b630469a7105d35708b450eaacb94d384ee4 | refs/heads/master | 2022-12-10T23:26:27.842708 | 2019-10-21T13:46:17 | 2019-10-21T13:46:17 | 143,025,309 | 1 | 3 | null | 2022-12-08T02:49:53 | 2018-07-31T14:25:44 | HTML | UTF-8 | Python | false | false | 186 | py | from django import forms
class IgdbSearchForm(forms.Form):
igdb_search = forms.CharField(max_length=100, widget=forms.TextInput(attrs={'placeholder': 'Search the bible'}), label="") | [
"mparkcode@gmail.com"
] | mparkcode@gmail.com |
3baa222e592a818d7610e2ef226458e1b9d926f0 | d59d5387d545a4cfa3ea3586669224a030ee9524 | /create_table_in_db.py | a0d91d394f471e11fb50c9803e45f154372ef748 | [] | no_license | bopopescu/python-DBMS-Connection | c330d0ba907ea31acf799d587bcf44a2185749bf | 92103b068b019c87c639f5d7ff7ab91e313e9664 | refs/heads/master | 2022-11-19T21:53:07.555449 | 2020-05-03T16:26:15 | 2020-05-03T16:26:15 | 281,300,296 | 0 | 0 | null | 2020-07-21T05:04:09 | 2020-07-21T05:04:08 | null | UTF-8 | Python | false | false | 624 | py | import mysql.connector
#In the below code one can observe there is a extra argument which is database as the name suggest
#it is used to select the database on which on wants to execute a query
mydatabase = mysql.connector.connect(host='localhost',user='root',password='Hello World!',database='adarshdb')
mycursor = my... | [
"badarsh2001@gmail.com"
] | badarsh2001@gmail.com |
1b5f38eed1c75f4e64c747393449d630d42dc140 | e4e99d5f220605e304c3fa4413e5f6c1e25eab42 | /file_operations/file_methods.py | edaa332f9f6dd38406dcaf0a698fea3d92875cfc | [] | no_license | shivendra0802/ml-p | 4dc0aafc5d1673bbeb8d56d8a010f92e2f4df72b | ce3ea7161b7d7a612f2d38302cc6c3b5932209c3 | refs/heads/master | 2023-07-13T18:20:47.615583 | 2021-08-24T13:39:39 | 2021-08-24T13:39:39 | 399,478,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,640 | py | import pickle
import os
import shutil
class File_Operation:
"""
This class shall be used to save the model after training
and load the saved model for prediction.
"""
def __init__(self,file_object,logger_object):
self.file_object = file_object
self.logger_ob... | [
"shivendrad.bluethink@gmail.com"
] | shivendrad.bluethink@gmail.com |
1063916057f1378f0c744a7fe90e4f496c7f8c5a | 10533bb4f5f12be3f520d04c79c25693efd323f8 | /ch01/ex12.py | 49c5b43dcbaace4c41a1d31037d7db924107adfa | [] | no_license | minddonyy/study-python | 4c4c42abda4b3679c94d565f841423e791b4d510 | 2ff70b4d2d30d6c4bc11395744e53504ec0852dd | refs/heads/master | 2021-06-19T17:07:31.242767 | 2017-07-14T11:58:52 | 2017-07-14T11:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #자료형의 참과 거짓
if[]:
print("True")
else:
print("False")
if[1,2,3]:
print("True")
else:
print("False")
| [
"minsun2767@naver.com"
] | minsun2767@naver.com |
c0a939fc2f4d35c78b68504a61727afc980a9f51 | 66c1d5a3abbc2a077af5e813a50bed76b419dd54 | /faceRecog/mtcnn_detect.py | ca940ffadcf3a2c65ef60f5bf6be287e22edf732 | [] | no_license | vanlongvl99/face_attendance_LHP | 5510d66e8daf9d571c5fd3085799af985e81b870 | 5ee05f69931c6790073e1dd0289eb588938b291f | refs/heads/master | 2022-12-18T22:02:57.726383 | 2020-09-29T07:08:47 | 2020-09-29T07:08:47 | 297,871,347 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from mtcnn.mtcnn import MTCNN
detector = MTCNN()
def mtcnn_detect(image):
faces = detector.detect_faces(image)
for person in faces:
| [
"nguyenvanlongt2@gmail.com"
] | nguyenvanlongt2@gmail.com |
a262542abbeddc506222a949117d17383672152e | e3aafc6697f7a52e337dc0a3952687b72bd2a520 | /manage/bitmexManage.py | 3ebf6798201cc4f5e6cdfe3fe5fa88d1be340d9e | [] | no_license | intcpu/tradebot | 93a4a52aba6b9cbd15ba9542b75a3ec4cea20a83 | f11477e960c5f675b4dc2ada02edf3b6d8f7f982 | refs/heads/master | 2022-12-06T20:18:19.311567 | 2020-09-01T12:15:51 | 2020-09-01T12:15:51 | 291,986,769 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,616 | py | # encoding: utf-8
import json
import logging
import time
from manage.baseManage import baseManage
from margin.bitmexMargin import bitmexMargin
from market.bitmexMarket import bitmexMarket
from order.bitmexOrder import bitmexOrder
from position.bitmexPosition import bitmexPosition
class bitmexManage(baseManage):
... | [
"cd@cd.com"
] | cd@cd.com |
5d2d8371de1916f43405f6c23c7bff6cb907759c | 52dc99c73187dc0ec4e8c40b15d0208d473b5cc5 | /px/px/middlewares.py | fcba1450f74fb106be7ab8507a9e5fd78d9067dc | [
"MIT"
] | permissive | 5218664b/WebCrawler | 6aeeeee85fb4eca9197a31ccd1933f46e2241b93 | ac3d7fdf68aa9d8c16dbd73d36bd9df2b3dff7fa | refs/heads/master | 2021-06-05T10:10:42.239676 | 2021-04-20T21:23:18 | 2021-04-20T21:23:18 | 137,985,098 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,379 | 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
from fake_useragent import UserAgent
import random
import scrapy
import os
class RandomUserAgentMiddleware(object):
def... | [
"1141802674@qq.com"
] | 1141802674@qq.com |
bb9a2403c04602d5bd447b0a8a6a2ccf39473e7c | 8c8c0490d692292d22e74c72e08f780101676d6a | /typings/assertpy/dict.pyi | 0100a50341971208bb1a6450eee8e38ef1d28c8d | [
"MIT"
] | permissive | QPC-database/lisa-1 | 769bd2043eabce678a1d3795c624dce392628bcf | 50d049ed9e459a916c41d12db1de8b80cc7af228 | refs/heads/main | 2023-06-16T12:51:57.483769 | 2021-07-05T04:43:22 | 2021-07-05T04:43:22 | 383,304,809 | 1 | 0 | MIT | 2021-07-06T01:26:36 | 2021-07-06T01:26:36 | null | UTF-8 | Python | false | false | 531 | pyi | from typing import Any
from .assertpy import AssertionBuilder
class DictMixin:
def contains_key(self, *keys: Any) -> AssertionBuilder: ...
def does_not_contain_key(self, *keys: Any) -> AssertionBuilder: ...
def contains_value(self, *values: Any) -> AssertionBuilder: ...
def does_not_contain_value(self... | [
"27178119+squirrelsc@users.noreply.github.com"
] | 27178119+squirrelsc@users.noreply.github.com |
9832712fa08bddd90195cdc9b21fdd9be6ae64d3 | 654fc671526e17463b14407bdc24b804737fe5e6 | /out/python/openapi_client/models/pods_result.py | ecc81b60c2cfcfec5e67f7ec269d605bdcf1c497 | [] | no_license | b00033811/sensibo-client | fa42bccd537efaa5ab1a29a22372b69d719b0704 | 1927cccfe67de227b38fc548f400d1b4a00f9483 | refs/heads/master | 2020-12-27T21:58:23.605064 | 2020-02-24T09:06:01 | 2020-02-24T09:06:01 | 238,066,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | # coding: utf-8
"""
Sensibo API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
fro... | [
"b00033811@gmail.com"
] | b00033811@gmail.com |
d62187f95788deb28bf1f3e0bcce52316d802352 | 3c0193b973c6236b4dedc41534fb7d7f4ea2ba51 | /basic_app/admin.py | f74025aa37b243676557fe14d2d27ae8b8132e59 | [] | no_license | argomauro/djangoCRUD | d9088594242c2b38b31ce5fe8ecd9cd44f31a552 | 5b086ab0ddfe5abb9ed7b25b046faa44eb6fc092 | refs/heads/master | 2022-04-25T09:39:02.839545 | 2020-04-26T14:35:32 | 2020-04-26T14:35:32 | 259,047,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
from basic_app.models import School, Student
# Register your models here.
admin.site.register(School)
admin.site.register(Student)
| [
"margoneto@publisys.it"
] | margoneto@publisys.it |
f59b0e05422e2f0ed0e20fd76f2efe583c8387d0 | afd2087e80478010d9df66e78280f75e1ff17d45 | /test/dynamo/test_subclasses.py | 938215cb807c44ef22ce95b85305d0d6a3a17192 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 3,096 | py | # Owner(s): ["module: dynamo"]
import contextlib
import torch
import torch._dynamo.test_case
import torch._dynamo.testing
import torch._functorch.config
import torch.utils.checkpoint
class MockSubclass(torch.Tensor):
@classmethod
def __torch_function__(cls, func, types, args=(), kwargs=None):
if kwa... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
3ef56eb3d07f125020b821651dbf81bc749aaea0 | b2fa94cf2091af2f9bba4fd98771fdc32e35ab6a | /S8/trainModel.py | 12c2fd73ec918dda026ecac90db0656677406485 | [] | no_license | amar-naik/EVA | c51eaa4fa9a0bde6862d83ab0ab4a04378bd5e0e | a2ff3db7b18bad147b640efdb0480e9e1226223c | refs/heads/master | 2020-12-15T15:53:39.943481 | 2020-04-01T19:24:51 | 2020-04-01T19:24:51 | 235,165,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | def train(model, device, train_loader, optimizer, epoch, loss_type, plot_flag, plot_after_epochs):
import torch
import torch.nn as nn
import torch.nn.functional as F
import matplotlib.pyplot as plt
import numpy as np
from tqdm import tqdm
use_cuda = torch.cuda.is_available()
device ... | [
"noreply@github.com"
] | amar-naik.noreply@github.com |
03c8941550894e7c713bfc123c3c6004852193b3 | edebcb77f172f74c7fc3234a9b2b1fc42199d659 | /geatpy/testbed/moea_test/moea_test_IMOP/IMOP1.py | 1a69580bb05b49dd8af8f2f14edee5f2ba02649a | [] | no_license | havefun-hh/software_open_source | 24cc73dc419a583399922a87562893eea5d64624 | fae27daa1097766c72714de50da2420781be175e | refs/heads/master | 2022-12-12T12:44:56.237298 | 2020-08-23T11:50:31 | 2020-08-23T11:50:31 | 289,674,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | # -*- coding: utf-8 -*-
import numpy as np
import geatpy as ea
class IMOP1(ea.Problem): # 继承Problem父类
def __init__(self, Alpha = 0.05, K = 5):
name = 'IMOP1' # 初始化name(函数名称,可以随意设置)
M = 2
maxormins = [1] * M # 初始化maxormins(目标最小最大化标记列表,1:最小化该目标;-1:最大化该目标)
Dim = 10 # 初始化Dim(决策变量维数)
... | [
"1003201801@qq.com"
] | 1003201801@qq.com |
ede045cd625d8d136b1e311fb3549b5c7d6d8d62 | 6363c18857b0497dfa556bf12adc3bcafe04545d | /dlsnake/agents/approxQAgent.py | dbbdc9c0de09faf39f578f10673746603a9bb62d | [] | no_license | metastableB/Naagin-Naggin | 5893b124c1658638b689fe6a4238e510597603a0 | 7a427e16e4635726c705df95adaaf06a47956935 | refs/heads/master | 2021-01-11T13:48:21.679501 | 2017-04-18T11:02:35 | 2017-04-18T11:02:35 | 86,621,413 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,266 | py | #
# @author:Don Dennis (metastableB)
# approxQAgent.py
#
import random
from dlsnake.agents.agent import Agent
class ApproxQAgent(Agent):
'''
Approximate Q learning agent
'''
def __init__(self, **args):
self.alpha = args['alpha']
self.gamma = args['gamma']
self.epsilon = args['... | [
"donkdennis@gmail.com"
] | donkdennis@gmail.com |
788d0b43508cf15d21b227ba7fe7704f7902e291 | 209ec54c14997f29c7e7c3f04931c395c62f7e09 | /Text-Based Browser/Problems/Yearly income/task.py | 37b6309a6afef6ffb402ad89a56d9407405e095c | [] | no_license | smarus/django-projects | d2091609cd907abdb90c12cc56de8d6faf0bbbbe | 63f64526ff357eb7c6b13434eb9ed6106815c9af | refs/heads/main | 2023-03-24T06:23:39.626418 | 2021-03-08T09:38:58 | 2021-03-08T09:38:58 | 306,459,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # write your code here
with open('salary.txt') as f1 ,\
open('salary_year.txt', 'w') as f2:
for file in f1.readlines():
value = int(file.rstrip('\n'))
f2.write(str(value * 12))
f2.write('\n')
| [
"smarus93@gmail.com"
] | smarus93@gmail.com |
c0546b68f5584ad3b7da2cf791a2c1c65b27dbfe | c4e2e1aded20c81fa9ab2a38620cfda71639c4c8 | /print_updates.py | c63e212818cd24e22e2d09f8972571f4a4a7c587 | [
"MIT"
] | permissive | russss/pydsn | 118f341191f2ce6c702e9a81b3c0fd4da00f54b4 | 84e3b441effded7cfb4716cfa04e7b69d98d8ac1 | refs/heads/master | 2020-12-25T17:25:11.405678 | 2020-09-05T11:51:54 | 2020-09-05T11:51:54 | 21,252,624 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # coding=utf-8
from __future__ import division, absolute_import, print_function, unicode_literals
import logging
from dsn import DSN
def to_GHz(freq):
if freq is None:
return None
return str(round(float(freq) / 10 ** 9, 4))
def update_callback(antenna, old, new):
if len(new['down_signal']) == 0:... | [
"russ@garrett.co.uk"
] | russ@garrett.co.uk |
b3b2de53be4b53dd9cf26d91f8d40f7fa4315771 | 71de172e74a1094d3ba769fa3ad2b396823508f1 | /helpdesk_ticket_sequence/models/res_config.py | 9e40477b4c0ac58a05a2089f65feb5f4fdc56ecc | [] | no_license | Elbagoury/vcloud9_prod_11 | e5383d8b2afcac30f6703df4070c8d7340f0331e | 1758b4db0b1a0715245fbb6c4ef661232fa0354d | refs/heads/master | 2022-08-10T09:22:43.702998 | 2018-03-08T22:13:34 | 2018-03-08T22:13:34 | 168,378,034 | 1 | 1 | null | 2019-01-30T16:42:57 | 2019-01-30T16:42:56 | null | UTF-8 | Python | false | false | 2,551 | py | # -*- coding: utf-8 -*-
"""
# License LGPL-3.0 or later (https://opensource.org/licenses/LGPL-3.0).
#
#This software and associated files (the "Software") may only be used (executed,
#modified, executed after modifications) if you have purchased a valid license
#from the authors, typically via Odoo Apps, or if you have... | [
"noreply@github.com"
] | Elbagoury.noreply@github.com |
63de6638e34b22b1f99ed0f0c8e8d52b311c420e | b9eed4733954289e8b74f16bf8e785243b04cf56 | /autodiff/core/node.py | bb27f0b149c6ce658a2db9cd8df6ad88462e738b | [] | no_license | bgavran/autodiff | 4371d367daabfc52f260c9bea9e4e79e7b146b6b | 50de5360d0ed5bbf748d72e146580be39f9f95c1 | refs/heads/master | 2021-11-03T19:58:54.903262 | 2019-04-26T11:45:17 | 2019-04-26T11:45:17 | 83,678,960 | 83 | 13 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | import time
import numbers
import numpy as np
from contextlib import contextmanager
class Node:
epsilon = 1e-12
id = 0
context_list = []
def __init__(self, children, name="Node"):
# wraps normal numbers into Variables
self.children = [child if isinstance(child, Node) else Variable(chi... | [
"bruno.gavranovic@fer.hr"
] | bruno.gavranovic@fer.hr |
4666cb1565b6ace075b1e6cd195ef4585b61a028 | d9b28bce6d832c768d9dd13527b8e8b202522eb6 | /1일차/삼성 sw test 4 구간합.py | 039747dfb267f1c01e17c90e45fcf61f879adbf5 | [] | no_license | jay-95/SW-Academy-Intermediate | 7535341cb73df1719a620262ebac191f6132a42b | 505ee8cf284465dd6a89ee11dd6b607ad05464f6 | refs/heads/master | 2021-05-18T10:13:35.449453 | 2020-03-30T05:21:54 | 2020-03-30T05:21:54 | 251,206,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def Near_List_Sum(List,NearNumber): #이웃값 합 경우의 수 리스트 만들기
Result_List = [sum(List[i:i+NearNumber]) for i in range (0, len(List)-NearNumber+1)]
return Result_List
T = int(input())
# 여러개의 테스트 케이스가 주어지므로, 각각을 처리합니다.
for test_case in range(1, T + 1):
N,M = map(int,input().split())
A = list(map(int,input().s... | [
"dnjswo0205@gmail.com"
] | dnjswo0205@gmail.com |
d1ca97a874633466a009e1022213360cb7589872 | 8e1f4219efdb4703ffe0d14c4d05d8ce87bc51d2 | /templates/publisher_node.py | 700d97a70df4051910f679243266f766722cd2ae | [
"MIT"
] | permissive | Benned-H/SLAM-ROS | 3f88a96007bc958e4f08f1b3098efc0d6ee4a388 | e943b03b9215684f339fae87d88e540e50aef286 | refs/heads/master | 2023-06-09T19:15:08.978562 | 2021-03-12T21:03:24 | 2021-03-12T21:03:24 | 260,617,874 | 1 | 1 | MIT | 2020-11-13T04:52:57 | 2020-05-02T05:06:06 | C++ | UTF-8 | Python | false | false | 1,267 | py | #!/usr/bin/env python
# All Python ROS nodes will have the above line which clarifies that the file should be executed as a Python script
import rospy # Allows use of ROS node functionalities
from std_msgs.msg import String # Allows the use of this message type
def talker():
pub = rospy.Publisher( "chatter", Str... | [
"benned1@gmail.com"
] | benned1@gmail.com |
a6b7674f5ee33ed782f20b0bd6cdea5db4610b89 | e330790a3993f2096c42b3a52b04283c6cfc2b53 | /quotetutorial/quotetutorial/spiders/quotes.py | 6616524a63bb9c542e74a3d7e1f43ed29472d4ad | [] | no_license | MagiRui/python3-spider-learn | d2609b0f4b71ccf33a64e0716b6aafdd7838b061 | 51754120c386b42ba1ac1944b5923c4a3230ab27 | refs/heads/main | 2023-05-25T15:14:46.633786 | 2021-06-15T06:24:51 | 2021-06-15T06:24:51 | 375,654,506 | 1 | 0 | null | 2021-06-15T06:24:52 | 2021-06-10T10:12:06 | Python | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
import scrapy
from quotetutorial.items import QuotetutorialItem
class QuotesSpider(scrapy.Spider):
name = 'quotes'
allowed_domains = ['quotes.toscrape.com']
start_urls = ['http://quotes.toscrape.com/']
def parse(self, response):
quotes = response.css(".quote")
... | [
"jiangrui@91jinrong.com"
] | jiangrui@91jinrong.com |
1c18dc6086f4762520790b65ea7a9d8fbf6ea03a | 3ce98ccd9b0e9b94b50dd1cbf61721c6e4f1cf6d | /time_example.py | ed7e6503f2b97ddd0f7104507917ccfa3ef9374a | [] | no_license | JustAlexOne/try_python | c8a1a024fc2957c73a205d230abcd9a4d556cc81 | c50c790010ad750592d8b11763b10ff70e6df420 | refs/heads/master | 2021-01-01T17:53:29.924943 | 2018-06-13T11:04:34 | 2018-06-13T11:04:34 | 98,188,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import time
import pytz
from datetime import datetime
from pytz import timezone
date_time = '08/29/2011 11:05:02'
pattern = '%m/%d/%Y %H:%M:%S'
parsed_date1 = datetime.strptime(date_time, pattern).astimezone(timezone('UTC'))
parsed_date2 = datetime.strptime(date_time, pattern).timestamp()
print('parsed_date1', parsed... | [
"oleksii_cherevatyi@epam.com"
] | oleksii_cherevatyi@epam.com |
5157797e2f52653562314492758d5bf01699440f | bee63a69c7988fe69c2b6ac20e058c218f361fbf | /intake_questgdal/raster_gdal.py | 31b3f2800f6bb87067045bab46a47685ecf5256c | [
"BSD-3-Clause"
] | permissive | Aquaveo/intake_questgdal | 0aea30b71b3e4fd6a3c2e7c15744160f4cef1ec6 | c11cd111a53b7270391c6923d0e252c4abbbc56b | refs/heads/master | 2020-04-05T06:01:14.156717 | 2018-11-09T23:08:43 | 2018-11-09T23:08:43 | 156,622,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | from .base import quest_gdal_base
import xarray as xr
import numpy as np
from .base import Schema
# from . import __version__
class GDALSource(quest_gdal_base):
"""Reads an XY HDF5 table into a dataframe
Parameters
----------
path: str
File to load.
fmt: str
The requested format t... | [
"dgallup@aquaveo.com"
] | dgallup@aquaveo.com |
b4c98948d06b56b3abe16f50d15b2211226c7ba5 | 9e9d1a5b711191f87a849f2ea34eb00e17587080 | /chalk_line/materials/rhythm/segment_03/rhythm_makers.py | f283ec2f8c528fd879e5d10bb8a44e8c6e0db308 | [] | no_license | GregoryREvans/chalk_line | c72e3bbdd383d6032e8afd8eba6f41d895f1c673 | e333343ccb039b83393690d46d06e4d5225d6327 | refs/heads/master | 2022-02-23T17:40:38.569781 | 2022-02-10T13:52:13 | 2022-02-10T13:52:13 | 241,491,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import evans
rmaker_one = evans.RTMMaker(
rtm=[
"(1 ((2 (1 1 1)) 1 -1))",
"(1 (1 2 3))",
"(1 (1 3))",
"(1 (1 1 2))",
"(1 (1 1))",
"(1 (1))",
"(1 (2 2 1 -1))",
"(1 (1))",
"(1 ((2 (1 1 1)) 1 -1))",
"(1 (1 2 3))",
"(1 (1 3))",
... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
63dfb28677eaa87faeab89b154711257dc907fc9 | 1f9897e86f93438eed2555d6da1716099df54147 | /2020/jokenpo.py | c69ace473e1326c65b70a76621b05b55119baf5f | [] | no_license | AfonsoArtoni/PUG-PE-Dojo | 10371ec321dc11d0280b8ac01dd70f47d29127a3 | 974a5293f58a721491915b2ee4d2e95e2247e745 | refs/heads/master | 2020-12-21T00:44:18.466602 | 2020-01-25T22:03:59 | 2020-01-25T22:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """Jokenpo.
Jokenpo é uma brincadeira japonesa, onde dois jogadores escolhem um dentre
três possíveis itens: Pedra, Papel ou Tesoura. O objetivo é fazer um juiz de
Jokenpo que dada a jogada dos dois jogadores informa o resultado da partida.
As regras são as seguintes:
- Pedra empata com Pedra e ganha de Tesoura
-... | [
"marcusgabriel.ds@gmail.com"
] | marcusgabriel.ds@gmail.com |
b16673acf973b083d35478639924cae56a1d516e | 6a613ed538f2cb9cbd1e0fe112e03f3d99260289 | /sports/migrations/0005_comment_message.py | ac6d038f91c8eb5e238751c9fd409441d75c6454 | [] | no_license | vsoft/nalysis | da221aadd31427cd245abc3afdf0fcc357988f1a | 2221aeb2e945afc51ff3cd2edf6c3c8d72a51637 | refs/heads/master | 2020-06-06T05:30:41.744648 | 2019-06-19T03:25:04 | 2019-06-19T03:25:04 | 192,649,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.0.5 on 2018-08-14 03:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sports', '0004_remove_comment_message'),
]
operations = [
migrations.AddField(
model_name='comment',
name='message',... | [
"anirudh.u@gmail.com"
] | anirudh.u@gmail.com |
4a00eefb9e5d3b32008f9e7e4b32a5af29fe0940 | a7f5f467b8f745fb5f90e697578d8054e76cdf1f | /route_template/RouteTemplate/endpoints/route_template.py | c0d8442720a8c4f14863d76a349e3319e748da6e | [] | no_license | arlex-it/arlex | 4ad6ca2e8907e6c2b432bc8770ce7c19b708f9fe | bad19a17e983cfbcb3337026693167e9bd1b00c5 | refs/heads/master | 2023-02-17T20:39:14.888071 | 2020-06-25T08:20:24 | 2020-06-25T08:20:24 | 267,564,169 | 0 | 0 | null | 2023-02-15T23:45:49 | 2020-05-28T10:48:09 | JavaScript | UTF-8 | Python | false | false | 572 | py | from flask import request
from flask_restplus import Resource
from Ressources.swagger_api import api
from API.RouteTemplateBusiness.business import get_route_template
from API.RouteTemplateModels.models import route_template_input
ns = api.namespace('template_namespace', description='template_description')
... | [
"bauchet.simon@gmail.com"
] | bauchet.simon@gmail.com |
efc49f42016eb52a6c41c83c349b1b910b49c98f | fc8b55ff35193ef7f2a6dfcb055495301a1475b5 | /devel/lib/python2.7/dist-packages/beginner_tutorials/msg/__init__.py | 03e023a13f8fdcad980d6495a4b3333a1d20b2fa | [] | no_license | ZhuFengting/workspace | 0e37d5313a3a701b4981a5a313b44147efbfe2e4 | d8f085cb23f2f29a91bff42412dd1ff09c1f5268 | refs/heads/master | 2020-09-24T17:13:28.016553 | 2019-12-21T04:08:41 | 2019-12-21T04:08:41 | 225,805,285 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | /home/zft/workspace/devel/.private/beginner_tutorials/lib/python2.7/dist-packages/beginner_tutorials/msg/__init__.py | [
"562141235@qq.com"
] | 562141235@qq.com |
81b6f3a5b069370355a6c9ebfc3d2044b4a1241f | b49eca0f4db20615203e507b6e8ba6d5a9e8abb0 | /cron-channels.py | fcbf2f00f7e0a524cd776cfed0feb15de36cf31b | [] | no_license | AmandaOwen/Television-Notifications | 9e26296c8ffcfd6251180c816c8d781175445e17 | b7bbd838e20b3623588e12f3e117d8e5be10500f | refs/heads/master | 2021-01-01T20:06:38.901361 | 2012-05-02T12:55:58 | 2012-05-02T12:55:58 | 3,937,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | import urllib
import os
import cgi
import datetime
import commonstrings
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
from google.appengine.ext import db
from google.appengine.api import mail
from google.appengine.api i... | [
"amanda.owen@gmail.com"
] | amanda.owen@gmail.com |
9e4a4eca4f22a7c88e1b5a2531a42f53f4d90628 | 5e9819875445541c704764519a664c800b10a949 | /doctor/models.py | 67d6ebcfb17db0be4081d3a9e8af71831c040e03 | [] | no_license | zahidcserana/Djang-api-pms | ab2963f5492a555602c6bcc1eddeab0b808e4cc4 | b172f68331a1b1689e00f340c23cccd5c098671d | refs/heads/master | 2022-12-10T04:35:59.579912 | 2022-02-28T01:27:24 | 2022-02-28T01:27:24 | 241,264,822 | 0 | 0 | null | 2022-12-08T03:38:59 | 2020-02-18T03:37:29 | Python | UTF-8 | Python | false | false | 1,061 | py | from django.db import models
from enum import Enum
class Doctor(models.Model):
ACTIVE = 'ACTIVE'
INACTIVE = 'INACTIVE'
DELETE = 'DELETE'
Status = [
(ACTIVE, 'Active'),
(INACTIVE, 'Inactive'),
(DELETE, 'Delete'),
]
status = models.CharField(
max_length=10,
... | [
"zahid1004048@gmail.com"
] | zahid1004048@gmail.com |
55e3148b5aeeb063494f48ac7bd9b89bf3a4ea54 | 315a34cdfb30b96d1bfd5ca0eae036f7f3e8cc0c | /bookings/models.py | e7629e4300ad208d3d9a3abfb375668bc2821ceb | [] | no_license | msluhabe/mzansi-ndiza | 1f8158b6406ce35eaf78f2879907837011d39206 | 9e51957068d92194fb2cc00cd18db78ba282748b | refs/heads/master | 2023-03-14T22:06:05.202711 | 2021-02-27T18:26:58 | 2021-02-27T18:26:58 | 300,851,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from django.db import models
import math
# Create your models here.
class SiteImages(models.Model):
site_pic = models.ImageField()
class Meta:
verbose_name_plural = "BookingPics"
def __str__(self):
return self.site_pic.name
class BookingFlights(models.Model):
flt_no = models.Cha... | [
"msluhabe@gmail.com"
] | msluhabe@gmail.com |
56c5a8cd1f5ecfcd9f5fc4a61d5ededab83f2334 | 46176147f331a9f722578aef99ae0c3ab891324a | /migrations/versions/834dbe88654b_users_table.py | bf9e0245239ae60758329e13443e98cb8d5c6bdf | [] | no_license | phrasmotica/MusicMate | c4125aba949c4d07c0fcaff347d97e78d56de500 | 753c9649b2f3119079f29fc13f5528e96158858e | refs/heads/master | 2022-08-25T06:46:27.887425 | 2019-10-15T17:20:32 | 2019-10-15T17:20:32 | 215,355,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """users table
Revision ID: 834dbe88654b
Revises:
Create Date: 2019-10-13 17:40:44.717497
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '834dbe88654b'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"julian.lawrance@gmail.com"
] | julian.lawrance@gmail.com |
a7a87ab1f5b3f9840ad16506f5c1c84c64b63e21 | 949633cd7f09a68b19304af14562b29514261ecc | /EgammaAnalysis/ElectronTools/test/reminiaod_withRegression.py | 5713a07e709ca3fb7b4311aa5fec79f49f2379c7 | [] | permissive | gsfs/cmssw | eabfe97b0594287ce25556e6b091956b72baad72 | fdbcb59c16cafd2a9b56177064bc0b6b93cc51dc | refs/heads/CMSSW_8_0_X | 2021-01-21T23:41:29.108786 | 2019-04-11T16:11:14 | 2019-04-11T16:11:14 | 226,406,411 | 0 | 0 | Apache-2.0 | 2019-12-06T20:39:25 | 2019-12-06T20:39:24 | null | UTF-8 | Python | false | false | 4,228 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: reminiaod --conditions auto:run2_mc --eventcontent MINIAODSIM --filein file:step3.root -s EI:MiniAODfromMiniAOD --datatier MINIAODSIM --run... | [
"rclsa@fnal.gov"
] | rclsa@fnal.gov |
e671bba83ff2deb7126e9fe918e971adbaa0a0f0 | 39181fc1bf8d89d0e19a50706f07a07a267fbade | /Apps/Alter_execute/apps.py | 75e10bf9ac1c4db7ef32b2977aea2e642b664af4 | [] | no_license | Aoi-shiori/AlterSys | 336fe148c8531cb2ec607d54512120b13b72e9a9 | 1748c86593643ea770a6f972edf7c6465f8bd5ea | refs/heads/master | 2020-05-24T22:39:51.919566 | 2019-10-11T14:35:00 | 2019-10-11T14:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class AlterExecuteConfig(AppConfig):
name = 'Apps.Alter_execute'
| [
"391350540@qq.com"
] | 391350540@qq.com |
021179724b5f6caed7d365d503f469ed81a77bae | 55b14afd3f80d4a3d866ca3e7b14d7a66e07b2af | /projects/01_fyyur/starter_code/forms.py | af97736ab8a12d82f1e1321944c3f51b54cb535f | [] | no_license | briansegs/fsnd-projects | 17f3a7f44f6df85d75f97f2278c4a7f578a7e4ae | 5c06c3d8c2f8f1a7f173bd8efccb2c6390f8f03b | refs/heads/main | 2023-03-01T22:43:55.185404 | 2021-02-10T22:18:22 | 2021-02-10T22:18:22 | 325,046,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,409 | py | from datetime import datetime
from flask_wtf import FlaskForm
from wtforms import StringField, SelectField, SelectMultipleField, DateTimeField, BooleanField
from wtforms.validators import DataRequired, AnyOf, URL
class ShowForm(FlaskForm):
artist_id = StringField(
'artist_id'
)
venue_id = StringFie... | [
"briansegs@gmail.com"
] | briansegs@gmail.com |
b38ef9db9f0b58dc95aa22e818f34fd752add9ff | 530d560d74a0565e11dd9ba27dbcf65c183455ef | /app/polls/tests.py | f4702fe6e2807ef0a2f66de03e0341975ae4617b | [] | no_license | annopo/django-tutorial | 317635400a2daf6456c4e33fda82a7419c320437 | bbeecd299ebf592c7cfce9a7e32cc19c52f09312 | refs/heads/master | 2022-01-22T15:23:14.393886 | 2019-05-01T08:37:25 | 2019-05-01T08:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | # Create your tests here.
import datetime
from django.test import TestCase
from django.utils import timezone
from .models import Question
class QuestionDetailViewTests(TestCase):
def test_future_question(self):
"""
The detail view of a question with a pub_date in the future
returns a 404... | [
"pecorium@gmail.com"
] | pecorium@gmail.com |
e7e2fdc0be261ec8073de724a7a727fb1ffe1e90 | df38fa10c0bf934232e86daa06d832b6ef4304aa | /hola_mundo/asgi.py | b3d84af8953d2598d543f12c59e4567b19e27231 | [] | no_license | beltenebror/Hola_Mundo_Django | 9b23e66a58774c74157d0ae63b393f695506180f | 2614c5563b3c096283b62d57bb81d13d1ed3c5f2 | refs/heads/main | 2023-03-02T15:49:59.721747 | 2021-02-09T11:18:15 | 2021-02-09T11:18:15 | 337,377,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for hola_mundo project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"lasupercintia@gmail.com"
] | lasupercintia@gmail.com |
a201d0b7f2b0f2c8f1fe41358c627601603c7315 | 7011972bec078e23e31e85cbe06144e6514ccea7 | /desafio112/utilidadecev/__init__.py | ed5268ef118f80e11f33483f8dea4e5b265f8d3e | [] | no_license | pldorini/python-exercises | cfb1639664a93edc0c01fb4bc337d73342f0e737 | fdc6f06ade774b7bab8902d3213a7862f3bd976c | refs/heads/master | 2023-04-06T16:21:21.965700 | 2021-04-14T01:49:02 | 2021-04-14T01:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def leiaInt(msg):
ok = False
valor = 0
while True:
n = str(input(msg))
if n.isnumeric():
valor = int(n)
ok = True
else:
print('\033[0;31m ERRO! Digite um número válido.\033[m')
if ok:
break
return valor | [
"pedro.dorini@unesp.br"
] | pedro.dorini@unesp.br |
b6eddba7260c3a2e60971e711b10b075fd9e296b | 918cde4a00ba0aaf4bdce92b5767a5353ca75f15 | /demand_prediction/supplementary_experiment/lstm_prediction_conv3x3_seqLength_7.py | 8bf2b12b81e5d0f23bd5ee5d712bce874b9fc83c | [] | no_license | haocdp/trajectory_handle | 112a74eecd3f040bbadf30a485fcaeb922bd8519 | 89a68f8f930cca4a4a9f14ead1b234efe06a6479 | refs/heads/master | 2022-01-15T08:48:37.512374 | 2019-05-09T07:36:01 | 2019-05-09T07:36:01 | 155,372,147 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,660 | py | import os
import sys
if sys.platform == 'linux':
sys.path.append('/root/trajectory_handle/')
import torch
from torch import nn
import torchvision.datasets as dsets
import torchvision.transforms as transforms
import numpy as np
import torch.utils.data as Data
import torch.nn.functional as F
import random
import lo... | [
"1134675798@qq.com"
] | 1134675798@qq.com |
a99b3ca8e6d6065fb3075e2e4f09e290eec95063 | 5be56db5f9f51c75e12d7cd12374c5714fe22d56 | /scheduler.py | 5ebed7077b272918f36ea025cb4797241df16120 | [
"MIT"
] | permissive | zhangdm/DataScheduler | b3cd362aeda73a01b85da2ded10d6eff9dae4d74 | f496180db6ea1eb21f375cba8ab92c8cb3b97e9f | refs/heads/master | 2020-11-29T23:50:46.804085 | 2019-12-26T10:34:40 | 2019-12-26T10:34:40 | 230,244,189 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,425 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import commands
import sys
from datetime import datetime, timedelta
def is_valid_date(date_time):
"""判断是否是一个有效的日期字符串"""
result = False
... | [
"zhangxiang@mail.jj.cn"
] | zhangxiang@mail.jj.cn |
d97fb5e036ce84302558f1b3f2d9360d690141e6 | 4dd43e6e93a5488697ddb76d58cd954ed094c706 | /cnn_demo.py | 319ecf4618192c274d2226809cd3554e493c93d7 | [] | no_license | baoweike666/DL-CV | 6273168a6262cde30aba43ec4d1f30e33e17c58c | f340c50244be75a8282ac4160b9d1d5dc389bd89 | refs/heads/master | 2020-03-24T16:56:35.911382 | 2018-08-16T17:08:22 | 2018-08-16T17:08:22 | 142,843,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | """
Know more, visit my Python tutorial page: https://morvanzhou.github.io/tutorials/
My Youtube Channel: https://www.youtube.com/user/MorvanZhou
Dependencies:
tensorflow: 1.1.0
matplotlib
numpy
"""
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import matplotlib.p... | [
"noreply@github.com"
] | baoweike666.noreply@github.com |
6b04c076db9194da2d768378783a9857f6a315c5 | b7398da111ea1668ee1eb34130fc993587ec0f7b | /todo_api/settings.py | aae0cf3a316815ad3426f28a83801e84abfa20eb | [] | no_license | nickgiegerich/django-todo-rest-api | e50716c1bf9305d833b6db9a0627e9617b4bcc17 | c66310b7a86a76ac0eb0d2645433acc47cb87627 | refs/heads/master | 2022-04-17T11:46:23.358983 | 2020-04-07T23:37:07 | 2020-04-07T23:37:07 | 252,209,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | """
Django settings for todo_api project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"nickgiegerich@u.boisestate.edu"
] | nickgiegerich@u.boisestate.edu |
d01d75a65987fd8147235d653219aef9beacf7df | aa13f8474ee9f25bda7f424bfcc17354b9cbe0bd | /shopee/variation.py | 7e942c010813fe22e15867dd5b76997bd558b685 | [] | no_license | ketu/shopee_api | 5dfff2f4b9621d5848de779ef6d67a330e98ac5b | b0f54968e9a86e05d12f7566ed51a74e255c3b54 | refs/heads/master | 2022-02-18T13:27:17.604874 | 2019-09-11T03:13:18 | 2019-09-11T03:13:18 | 113,559,391 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # /usr/bin/env python
# -*- coding:utf8 -*-
from .base import BaseModule
class Variation(BaseModule):
def add(self, variation_data):
"""
Use this call to add item variations
:param variation_data:
:return:
"""
return self.client.execute("item/add_variations", "POST... | [
"ketu.lai@gmail.com"
] | ketu.lai@gmail.com |
11b783c144e14582679c433280f0488415cc33f3 | 9f0b191586139ad8bb41edd1d4ef2c32cedd466f | /process_aff_training_data.py | da9bda3ddf442d4d0dff03a884e10b98188fce6a | [] | no_license | new2scala/python-plot | c70a95559843f8ba7595319a3005287a170687a7 | bd848ce19da0f24ac154a191c6079293e696c40a | refs/heads/master | 2021-01-23T00:29:06.933041 | 2017-06-15T15:06:29 | 2017-06-15T15:06:29 | 92,814,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | def read_conll(fname):
r = []
with open(fname) as f:
lines = f.readlines()
trimmed = [l.strip() for l in lines]
curr_lst = []
for tl in trimmed:
words = tl.split()
if (len(words) > 0):
curr_lst.append(tuple(words))
else:
... | [
"jiajiwu.icare@gmail.com"
] | jiajiwu.icare@gmail.com |
091a9424420358b3ed9ba3e230a989f86525cafd | c3998b61e8644efc51aff860372b80247666232c | /backend/tracim_backend/tests/library/test_webdav.py | c7b6d9a2b2ee9c26c50c3ca240763664e43e8477 | [
"MIT"
] | permissive | buxx/tracim | 55c60201d44ff87c73c0201ef881dde9af484578 | 3348e5c169859da9204068071d6a17cb1661841a | refs/heads/master | 2021-01-21T03:49:22.447651 | 2019-02-15T13:11:56 | 2019-02-15T13:11:56 | 45,355,659 | 0 | 0 | null | 2018-01-21T06:36:47 | 2015-11-01T20:10:51 | JavaScript | UTF-8 | Python | false | false | 21,186 | py | # -*- coding: utf-8 -*-
from unittest.mock import MagicMock
from wsgidav import util
from tracim_backend import WebdavAppFactory
from tracim_backend.fixtures.content import Content as ContentFixtures
from tracim_backend.fixtures.users_and_groups import Base as BaseFixture
from tracim_backend.lib.core.notifications im... | [
"guenael.muller@algoo.fr"
] | guenael.muller@algoo.fr |
0cc8dc6447958f0d1ae2c4592706c40edc3f05ca | 4ef688b93866285bcc27e36add76dc8d4a968387 | /moto/support/__init__.py | 560832ad6cc4d47ff83106b5e3ee71520a925355 | [
"Apache-2.0"
] | permissive | localstack/moto | cec77352df216cac99d5e0a82d7ada933950a0e6 | b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff | refs/heads/localstack | 2023-09-01T05:18:16.680470 | 2023-07-10T09:00:26 | 2023-08-07T14:10:06 | 118,838,444 | 22 | 42 | Apache-2.0 | 2023-09-07T02:07:17 | 2018-01-25T00:10:03 | Python | UTF-8 | Python | false | false | 127 | py | from .models import support_backends
from ..core.models import base_decorator
mock_support = base_decorator(support_backends)
| [
"info@bertblommers.nl"
] | info@bertblommers.nl |
4b5ff730b98141aff25b02205c218f76f75b0aa1 | 8adea60caaa368cc6eee2c20f5b6c9f01c997116 | /Rock , paper, scissors.py | c5768df7e83e96e3a7e569fba3ef36a8d4316219 | [] | no_license | lupecamas/School-Work | 66b2e686a0f636af53896d9969c6ea905f967ff9 | ebcf4152d1e0245a35002ba4a1f3edafcb65e646 | refs/heads/master | 2020-04-21T09:48:40.245534 | 2019-02-14T18:12:15 | 2019-02-14T18:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,804 | py | import random
choice_list = ['Paper','Rock','Scissors']
random_ch = random.SystemRandom()
choice = random.choice(choice_list)
print("Let's play Rock,Paper,Sissors?")
playagain = input("Do you want to play?").lower()
while (playagain == "yes" or playagain == "y"):
#user_input1
answer =input (... | [
"noreply@github.com"
] | lupecamas.noreply@github.com |
06090b0239a978312419a779703c53036287657d | 92c789de21fb6fd6fa65e1b507ef91e1f51537cc | /drmsd.py | d01db714f76a75f9126f8ba71cf387440afab0cc | [] | no_license | heweiblog/bind_switch_stat | d744de2f463dc15f528f2e6e1b8dda1a7dde8665 | e428fbaa0f0bcc192cd615ae2e774567cadd904d | refs/heads/master | 2020-06-27T18:10:05.704746 | 2019-08-01T09:02:46 | 2019-08-01T09:02:46 | 200,015,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,659 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import print_function
import os, sys, re, time, datetime, logging, random, string, logging.handlers, gzip, paramiko
import multiprocessing, subprocess
from threading import Timer
from configparser import ConfigParser
from Crypto.Cipher import AES
from iscpy.... | [
"ww.he@yamutech.com"
] | ww.he@yamutech.com |
1be5c4366b2e44354b072ea584a93740e2172ae9 | ff48d7f1dbd5f08dfac9d13bfec6027e733114c7 | /server/settings.py | c933b83cc93f72946b485b43b5ab7011e6fed6f4 | [] | no_license | ameydeshpande30/server | aa857ec1dec23cc8d5718f238878204281fca03b | 016e61b3d39def25a01579b5221d70918927d1cf | refs/heads/master | 2020-04-07T21:29:53.002507 | 2019-01-08T15:52:14 | 2019-01-08T15:52:14 | 158,729,439 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | """
Django settings for server project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"ameydeshpande30@gmail.com"
] | ameydeshpande30@gmail.com |
1a2c312399d2472dde204fc5e36017a06ffad7c6 | 6336828aeab3ea2ba3e1cf9452a8a3f3a084b327 | /fundooNotes-master/virtual-env/bin/nosetests-3.4 | 121dcd17ab6d074ffdd65beef38adefe3c734d61 | [
"MIT"
] | permissive | kalereshma96/DjangoNewRepository | 85f2eaed6b689be273af48d328c0a388244bbe2b | 37fd232c2ac91eb6940300f20118f93d17926f9a | refs/heads/master | 2020-04-12T18:12:15.698279 | 2019-01-21T13:46:37 | 2019-01-21T13:46:37 | 162,672,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 4 | #!/home/admin1/PycharmProjects/mynewpythonproject/fundooNotes-master/virtual-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nose import run_exit
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_exit())
| [
"kalereshma96@gmail.com"
] | kalereshma96@gmail.com |
39bcce6d8c07acb5b7784097c481a4bdf43cf134 | 2fa6f489af0dd0038b66edd77da62af5017bfd55 | /bot/recognizer_bot/voicy.py | 7c80995580a6f29d69dc523130f2d5b818d5f998 | [
"MIT"
] | permissive | kprokofi/animal-recognition-with-voice | a2093a0b00bc64f39ac7912da6d66b39aa6fe66e | e9e5235315255eb6e17df3dba616b2ed4c902c92 | refs/heads/main | 2023-06-03T19:21:24.984199 | 2021-06-16T15:26:33 | 2021-06-16T15:26:33 | 348,752,074 | 3 | 0 | MIT | 2021-06-16T15:25:32 | 2021-03-17T15:05:12 | Python | UTF-8 | Python | false | false | 2,765 | py | import os
labels_to_voice = {
# birds: jay, chickadee, water_ouzel, kite, partridge, hornbill, jacamar
# toucan little_blue_heron American_egret crane European_gallinule
# redshank pelican
'Japanese_spaniel': 'dog',
'Newfoundland': 'dog',
'Afghan_hound': 'dog',
'Cardigan': 'dpg',
'kill... | [
"brightcolors46@gmail.com"
] | brightcolors46@gmail.com |
171e741636082093ffe9bf030069bba65f5daa2c | d32487a4bf4e0a4f2446b11a3439feb3487826c5 | /hybrid-action-benchmark/src/Algorithms/Action_rep/embed_DPG.py | bd5e6ea5defd8a48ff8116714d3bd60e9066c9e1 | [
"MIT"
] | permissive | LiBoyan97/hybrid-action | 75baba9f52e345380ee200550767b155adc43f16 | 9a049804bcb5f4328f133c9a810abf448347c4ab | refs/heads/master | 2021-05-27T11:50:07.209792 | 2020-04-17T15:31:37 | 2020-04-17T15:31:37 | 254,262,121 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,243 | py | import numpy as np
import torch
from torch.autograd import Variable
from torch import tensor, float32, long
import torch.nn as nn
import torch.nn.functional as F
from Src.Utils.utils import MemoryBuffer, OrnsteinUhlenbeckActionNoise, soft_update, hard_update
from Src.Algorithms.Agent import Agent
from Src.Utils import ... | [
"245615091@qq.com"
] | 245615091@qq.com |
0ce51ae9e6435c96a41e44cfc6d9a78b30e6bebe | d38a6c0c9d9f5afa0f9fa22d0e7b0c92cd967af4 | /train.py | f7ffad9be1971f6576489fc34e731c14c7f6febd | [
"MIT"
] | permissive | liangsi03/waifu2x-chainer | c6a3e81ae278bb199551d99e8df651d3fa49e9f9 | e19c571527b4098db6a06ec21765c63de0f32199 | refs/heads/master | 2021-01-21T20:29:11.651137 | 2017-06-27T17:02:18 | 2017-06-27T17:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,015 | py | from __future__ import division
import os
import shutil
import warnings
import chainer
from chainer import cuda
from chainer import optimizers
import numpy as np
import six
from lib import iproc
from lib import srcnn
from lib import utils
from lib.dataset_sampler import DatasetSampler
from lib.loss.clipped_weighted_... | [
"nstm101339@gmail.com"
] | nstm101339@gmail.com |
fa2040d9ebbed0992ae0ee96028146a433a50ecb | 263607bb0158ab9ddc55dcd752ce61ccb4d0f1b2 | /Team.py | f50bd1379e934b225213296e9a75e11a76909eb8 | [] | no_license | dmelles/ChessLab | df8e8eedc58505a06368c744245336b45431dfd6 | e4c3c7ad643dd6d924ec7967c4399487fda1b799 | refs/heads/master | 2021-01-13T00:16:49.572271 | 2016-03-14T04:44:54 | 2016-03-14T04:44:54 | 51,164,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # Team.py
# Written by: ShastaRamachandran
# Date: 2/21/2016
# Provies a team functionality to a list of pieces
class Team:
def __init__(self):
"""Creates a team."""
self.pieces = []
def addPieces(self, pieces):
"""Adds pieces or a piece to the team."""
# Determine whether to add 1 or many pieces
if(type... | [
"sramachandran@csus.org"
] | sramachandran@csus.org |
c5b24563692c7be59ada5e6c4bae377ad2ee98b4 | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/SciPy/circle_1.py | 58a991f780e853de703aa238f4858b7803f7d0fc | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """
Program name: circle_1.py
Objective: A circle is a special case of an oval.
Keywords: canvas, oval, circle
============================================================================79
Explanation: A circle is a special case of an oval and is defined by the
box it fits inside. The bounding box is specifie... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
6f7216e9925917a9c0d6036688b73468118e1863 | 1fcb09533ae683e905e528412efbbe5dc5923a7e | /Programming101/Week15/simple_user_man/website/reg_log/migrations/0001_initial.py | e81045b348a3b45b28a733377ebee3139abee6a8 | [] | no_license | VikiDinkova/HackBulgaria | ac7ca668489986ca2262ced587801d8abd2de4f1 | e2f226bf29b87f6d3b33bdc2b981e1224a8237aa | refs/heads/master | 2021-01-10T14:34:03.201644 | 2016-03-24T17:03:45 | 2016-03-24T17:03:45 | 46,211,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-09 18:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"vikidinkova94@gmail.com"
] | vikidinkova94@gmail.com |
345a08371f7d1ce7a43509add41d7e6c6db67cf3 | c00591a609aefe428b3aa67a4784210d9f1a21b4 | /L200180198_Modul4_G/nomor 8.py | d6ab5dcb06e907fda4047050504258f5f6c4e35a | [] | no_license | L200180198/prak_algostruk | 02c1998ef17ed25cd948d424cd4d64f1018125d3 | b77c62b0d163879dc621c678269725f4513f89eb | refs/heads/master | 2021-02-07T03:24:03.360127 | 2020-04-22T15:01:14 | 2020-04-22T15:01:14 | 243,977,033 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | print
"""Dalam hal ini digunakan konsep Big-O. Dimana menggunakan
rumus O(log n),Di mana log berasal dari pangkat log berbasis 2
dengan rincian 1 = 1, 2 = 2, 4 = 3, 10 = 4, 100 = 7, 1000=10.
Dengan begitu kita dapat mengetahui jumlah maksimal tebakan.
Untuk pola sendiri:
apabila ingin menebak angka 70
... | [
"noreply@github.com"
] | L200180198.noreply@github.com |
5c40de5392621022c043aa6b16b4466166b125b6 | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/crawler/news/sspai_news.py | bb4925dc81d735b591cce05730a0c9da5dc5cc28 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,219 | py | # -*- coding: utf-8 -*-
import os, sys, re
import datetime, time
from lxml import html
from pyquery import PyQuery as pq
from pymongo import MongoClient
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '..'))
import BaseCrawler
sys.path.append(os.... | [
"hush_guo@163.com"
] | hush_guo@163.com |
6d80e206119e7cc95fe492bd7d96f1362301a4a6 | a2def16b3883cb09b2ea892da6585bc10ff8103b | /ren_soundex/soundex.py | a3741cf1ac17b90d321ef853696b3e012b074a16 | [] | no_license | jasonren5/ren_soundex | 7e7b1ef5f7181543ea5b890f9a2cf3a818e5285d | df158cef375d5a86cd66fc011447dbb9107a8af1 | refs/heads/master | 2020-04-02T03:11:21.891241 | 2018-10-23T05:12:33 | 2018-10-23T05:12:33 | 153,950,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | class soundexer:
#length is the length of the soundex returned by the object
def __init__(self, length=4):
self.DICT = {}
self.DICT.update(dict.fromkeys(["a", "e", "i", "o", "u", "y", "h", "w"], ""))
self.DICT.update(dict.fromkeys(["b", "f", "p", "v"], "1"))
self.DICT.update(dict... | [
"31326470+jasonren5@users.noreply.github.com"
] | 31326470+jasonren5@users.noreply.github.com |
0d397371234c9823008e948ebac04d9d4d94813f | 3c036fae2243c6e78646d00423af68ea755176fc | /东楼贺朝西楼谢俞.py | 7f527af36646744276085b9b99b61a3aae6aa9cf | [] | no_license | C-H-coder-team/Zhaoyu-Bank | 19691348e45cd524073269a0f10ea103eee23dda | 9f2a67f2d67710c90f0134b5052bf8986379709a | refs/heads/main | 2023-03-31T11:36:06.176860 | 2021-04-04T03:11:36 | 2021-04-04T03:11:36 | 354,443,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,840 | py | import tkinter
import tkinter.messagebox
# 账户类
class Account():
def __init__(self, name, password, balance, operation):
self.name = name
self.password = password
self.balance = balance
self.operation = operation
print(self.name, "账户"+self.operation+'成功')
#... | [
"noreply@github.com"
] | C-H-coder-team.noreply@github.com |
aadfe15c418416eaf2918df92dc2a46ff4040b20 | 0d9e219285b20446fa82fbf27c78beef474933c0 | /Baekjoon/16928_뱀과사다리게임.py | 1a42a55ee0d95bd0184fc8a73611281d91c31e50 | [] | no_license | BK-notburgerking/Algorithm | 8cb9391a2b081d9688c9ae41b320e0f2d9acc88e | dd8aea37e0ea1ac5728218225e03746b03a7a0cd | refs/heads/master | 2023-06-25T12:47:27.800981 | 2021-07-21T15:11:27 | 2021-07-21T15:11:27 | 330,661,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from collections import deque
import sys; input = sys.stdin.readline
board = [0] * 101
dis = [101] * 101
l, s = map(int, input().split())
for _ in range(l + s):
s, e = map(int, input().split())
board[s] = e
q = deque()
q.append(1)
dis[1] = 0
while q:
v = q.popleft()
for i in range(1, 7):
w = ... | [
"oij1234567@gmail.com"
] | oij1234567@gmail.com |
912e0ef322d0210628742b89e0e9105897dc42f6 | 1e14e73b66aa4e60a528addf6358d5c009705e9e | /scripts/visualize.py | 8f3dca025adabe11f2e73709dd4ea46d5d23a0ed | [
"MIT"
] | permissive | cannin/covid-sicr-test | aeaa5935c5ddc99e616bdf1b9527a82eedcaa641 | f842946357428730265b7d0a6640172dc757ecae | refs/heads/master | 2022-10-08T04:46:31.415917 | 2020-06-11T21:06:30 | 2020-06-11T21:06:30 | 271,634,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | #!/usr/bin/env python
# coding: utf-8
import argparse
import logging
from multiprocessing import Pool
import pandas as pd
import papermill as pm
from pathlib import Path
from tqdm import tqdm
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
for lib in ['blib2to3', 'papermill']:
logger... | [
"rgerkin@asu.edu"
] | rgerkin@asu.edu |
79d1db28daa0f9b8cbec82d425285fffa088ed88 | c92522f114920b769301cd19c834d5201989f7af | /scanner_port.py | 12c3efff8a3409370aa0ddfa89b4a564100b9faf | [] | no_license | Sunshine334419520/protscannertools | b60522bace8e21520f83691d4b68f8da8dc1b3f8 | 06feb89b60dc99bdc4752765c6773836bf483096 | refs/heads/master | 2021-08-23T23:40:53.812797 | 2017-12-07T03:43:52 | 2017-12-07T03:43:52 | 113,399,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # @Author: sunshine
# @Date: 2017-12-03T21:56:43+08:00
# @Email: guang334419520@126.com
# @Filename: scanner_port.py
# @Last modified by: sunshine
# @Last modified time: 2017-12-06T21:04:09+08:00
import argv_argparse
import porttest
def main():
args = argv_argparse.parser()
if (args.host == None) | (ar... | [
"guang334419520@126.com"
] | guang334419520@126.com |
e00598d3208ab4f0d5f65740b9b1facdec624691 | aa092804a74fa6d2814d1ebcd2262f4f068ae594 | /scraper.py | a14c96db313b75c51c03085275ab4e9cec744e73 | [] | no_license | hsiehkl/COSI-Case-Study | 1db05df421d96171292ce6d16ee9edffe5e2197d | 0424f893509b0d3351d45b177f702082e44ee3f4 | refs/heads/master | 2022-12-14T08:03:03.758617 | 2020-09-16T13:27:06 | 2020-09-16T13:27:06 | 295,536,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | # https://www.freecodecamp.org/news/scraping-wikipedia-articles-with-python/
import requests
from bs4 import BeautifulSoup
import pandas as pd
import datetime
from concurrent.futures import ProcessPoolExecutor, as_completed
import time
class Scraper():
def __init__(self, year):
"""initialize a scraper"""... | [
"st4465@gmail.com"
] | st4465@gmail.com |
6faa12de5325fdb7df6c196ae891e13bc449f102 | e62847432ddfd35095dc522185cf859c7c56413a | /train_chatbot.py | be9861ba57585673f900ab6b33ca1cbed35ba924 | [] | no_license | Weikang01/python_chatbot | d80d883feea4b60ec704085c685d290bc4a22be6 | ab0f8c4caf73a66095957c1bf95ef0b603cc4c83 | refs/heads/master | 2023-08-07T22:55:09.445592 | 2021-09-07T17:43:33 | 2021-09-07T17:43:33 | 404,070,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | import nltk
from nltk.stem import WordNetLemmatizer
import json
import pickle
import numpy as np
from keras.models import Sequential
from keras.layers import Dense, Activation, Dropout
from keras.optimizers import SGD
import random
lemmatizer = WordNetLemmatizer()
words = []
classes = []
documents = []
ignore_words = ... | [
"lwkdota@qq.com"
] | lwkdota@qq.com |
e4f08b71f4e386dd6bb9dd4fc07573d38934c713 | 0a495d0f354aadb099faaac670194e397823e281 | /dataset.py | c93f194cc5651567c19e9bc34ee271405f32f409 | [] | no_license | KengoAraki/WSI_Predmap | b743472f255be78bdee7ef2f8a969af839a9b6aa | 247b070bcda8240ac35bdc8ef4d0795c106af887 | refs/heads/main | 2023-06-02T06:13:11.689726 | 2021-06-23T08:31:15 | 2021-06-23T08:31:15 | 379,533,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | from PIL import Image
import numpy as np
import torch
from torchvision import transforms
class WSI(torch.utils.data.Dataset):
def __init__(
self,
file_list: list,
classes: list = [0, 1, 2, 3],
shape: tuple = None,
transform=None,
is_pred: bool = False
):
... | [
"kengo.araki@human.ait.kyushu-u.ac.jp"
] | kengo.araki@human.ait.kyushu-u.ac.jp |
c7149dc18f366d6963b71234d30238aee0956a24 | 5a6128dfb3ade793f23e78e3be469e33a65171dd | /HOME/house_password.py | 22164d2f61c9b5657be0aec63c53fab52185d26d | [] | no_license | PeriLara/Checkio | f56ca42ebc6dd7221d1979e96409e52e46e1ee37 | 737effca3c6b5920825178ba5da0d5d2f865ecb5 | refs/heads/master | 2021-07-04T21:27:43.460203 | 2021-01-30T12:28:49 | 2021-01-30T12:28:49 | 222,951,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | """
Stephan and Sophia forget about security and use simple passwords for everything. Help Nikola develop a password security check module. The password will be considered strong enough if its length is greater than or equal to 10 symbols, it has at least one digit, as well as containing one uppercase letter and one lo... | [
"perilara@Laras-MacBook-Pro.local"
] | perilara@Laras-MacBook-Pro.local |
559b60ae85737d17f7cb0d83f37c85d666ce8aca | d685212d2015c019c534bcdbdf4391a44b4b40f7 | /src/duckduckgo_dep.py | 72603ec39fdbd182fbb8117da85dd130e70688aa | [] | no_license | 0x00-0x00/gadreel-bot | 89d27238add5cf683f2b3185a981103aee36970f | 335fe1321f3b5c08cc85e3510d25d678e63e5f2b | refs/heads/master | 2021-09-12T20:14:24.692275 | 2018-04-20T15:32:09 | 2018-04-20T15:32:09 | 81,461,562 | 1 | 0 | null | 2017-04-22T20:56:33 | 2017-02-09T15:00:04 | Python | UTF-8 | Python | false | false | 5,427 | py | import urllib2
from urllib2.parse import urlencode
from urllib2.request import Request, urlopen
import json as j
import sys
__version__ = 0.242
def query(query, useragent='python-duckduckgo '+str(__version__), safesearch=True, html=False, meanings=True, **kwargs):
"""
Query DuckDuckGo, returning a Results ob... | [
"andre.marques@fatec.sp.gov.br"
] | andre.marques@fatec.sp.gov.br |
a2c4032568581403b868b0b2465c36cc3cbb2b0a | 3e028580f5406f2f4c29f32816fc754c203093e9 | /venv/bin/flask | 89d03decbdca605b8f449e98bcc64bdd7f389618 | [] | no_license | Zekun-Yang/flask-rest-api-example | 6fbbcf343ac43704a00e1ea1df72ab43a9782c90 | b4af127a72211ee513fe59ff6fdda91bbcbbc0e9 | refs/heads/master | 2021-01-06T17:47:55.898899 | 2020-02-20T21:43:36 | 2020-02-20T21:43:36 | 241,422,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/Users/zekun/Documents/PythonProject/author-manager/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zekun.yang@outlook.com"
] | zekun.yang@outlook.com | |
907229b3d1a59901de7211acf9a38b7811a1d316 | 61bab2105b35a31fc4920530d08f5ad53bd547e2 | /processing/similar/ComputeSimilarity.py | b6df755c0e73a71e5cb1e060c6da477ec1ca48f1 | [] | no_license | MarkAWard/Web-Search-Engine-Final-Project | a675de811daca317d0695920800260ad034b4a6b | 02b9b23eae908f352db5c55ebaa90d3482163067 | refs/heads/master | 2021-01-01T06:32:29.144842 | 2015-01-08T00:46:52 | 2015-01-08T00:46:52 | 27,162,744 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from mrjob.job import MRJob
class ComputeSimilarity(MRJob):
def mapper(self, _, line):
bus_pair, count_pair = line.split('\t', 1)
bus = eval(bus_pair)
counts = eval(count_pair)
yield bus, counts
def reducer(self, key, values):
num = 0
for counts in values:
... | [
"markmaw@gmail.com"
] | markmaw@gmail.com |
6f1b19e51551df7f4708c8e9dfb45b1f69947f41 | ccaa67856451c8ed5dadfa3e178bcb2da9a3d715 | /msb_client/MsbClient.py | b69bb10d87bf9135498748102559dbbd865a418e | [
"Apache-2.0"
] | permissive | fossabot/msb-client-websocket-python | d8a91b7bd6ec75fd75d13c1fcc4984414d57dc5b | ecf124aeb6768bac7221c7d1aa2545342e418254 | refs/heads/master | 2020-06-17T17:02:52.352185 | 2019-07-09T10:21:06 | 2019-07-09T10:21:06 | 195,985,859 | 0 | 0 | Apache-2.0 | 2019-07-09T10:20:58 | 2019-07-09T10:20:58 | null | UTF-8 | Python | false | false | 36,824 | py | # -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
Authors: Daniel Stock, Matthias Stoehr
Licensed under the Apache License, Version 2.0
See the file "LICENSE" for the full license governing this code.
"""
import websocket, threading, json, jsonschem... | [
"Matthias.Stoehr@ipa.fraunhofer.de"
] | Matthias.Stoehr@ipa.fraunhofer.de |
31bdc859ceb0a3f22ed84d0b9c586aa397f9ddfb | c005d35e393d9635282e76bcfca0468dc7069317 | /guia/manage.py | ea4e5e63738aa87be7cb6713b3a9853f1bcb4081 | [] | no_license | carloscurs/mi_primer_repositorio | 142b66387897e223a8d3859ff5721929e9d98796 | d2572c8220bbb80b84b1561e98e512a9ed90f2db | refs/heads/master | 2022-12-19T17:38:52.473441 | 2020-10-06T16:16:47 | 2020-10-06T16:16:47 | 298,043,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'recetas__project.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"carloscurs@gmail.com"
] | carloscurs@gmail.com |
ef288bafaa9df5d59b06b4ae422f5ee3e341b44f | d2dcbd08e062d77ee5b3be5af9419aad53857f72 | /1a Evaluacion/Tema 1/Practicas/Ejercicio 2/3.py | 8fca0eed010ac5ca5f2e4c35fe5a712a22167847 | [] | no_license | JoanJSimpson/DesarrolloInterfaces | ac6b9136e12a833c2c8ceb4755364540159e91eb | a7e7e7915ca2b8705eb4587e73d4292fd9ee8b64 | refs/heads/master | 2021-01-10T16:33:15.172336 | 2016-02-12T13:00:34 | 2016-02-12T13:00:34 | 45,482,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*-coding: UTF-8 -*-
#!/usr/bin/python
numero = int(input("Dime un numero: "))
lista = []
for i in range(1,numero):
contador=0
#print ("Numero: ",i)
for j in range(1,i+1):
#print (j)
if (i%j==0):
contador+=1
if contador == 2 and i>2:
lista.append(i)
listaString... | [
"milimetrosexual@gmail.com"
] | milimetrosexual@gmail.com |
5cec1f15050f4fc321a686578e283d8cdceef6e9 | b350801b78b2522d22d1c339ea94645b754d8f50 | /scratch/test_availpix.py | 1bc7ca18321348070ea141bd970d36077bb601ce | [] | no_license | amirjabal/RoboVision | f3c32ca0234fd7a61bd1f000cf0e9be93fdb8228 | 5298364838ca5a3ba0907818b06808aa134c3cd5 | refs/heads/master | 2020-12-03T06:36:14.955506 | 2017-06-28T18:27:18 | 2017-06-28T18:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import cv2
import numpy as np
import python.findendsjunctions as fj
import python.availablepixels as ap
from timeit import default_timer as timer
if __name__ == '__main__':
# global EDGEIM
# global JUNCT
# global ROWS
# global COLS
im = cv2.imread('bw_lambda.png')
gray = cv2.cvtColor(im, cv2.... | [
"qwertybot1@gmail.com"
] | qwertybot1@gmail.com |
c54f068616a54a1288edb085913937d732e6abd3 | 5c273653feaad65f18e41c587ccd0e2dbad3427a | /a116_buggy_image_ar_ladybug_version_32-37_ladybug.py | 207786956ca49c4bacb23211b77cbc5cd318ee27 | [] | no_license | AntonioR0211/bugs | 1b740b06886aa6ed6b6d1fd40720458fc0a2d7bb | acec11b999fe418116f356a2373ce16bd5d4223b | refs/heads/main | 2023-01-20T08:21:16.937033 | 2020-11-14T07:47:07 | 2020-11-14T07:47:07 | 312,766,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import turtle as trtl
# The Big Head
ladybug = trtl.Turtle()
ladybug.pensize(40)
ladybug.circle(5)
# Legs From Spider Code But Instead With 6 Legs.
legs = 6
leg_len = 60
degree = 270 / legs
ladybug.pensize(5)
counter = 0
# Draw The Legs.
while (counter < legs):
ladybug.goto(0,-35)
ladybug.setheading((degree*cou... | [
"noreply@github.com"
] | AntonioR0211.noreply@github.com |
809e15e8c97fec14f1187a7f5c9189c43e53ad04 | a1b8b807a389fd3971ac235e46032c0be4795ff1 | /testrepo/Zips/script.module.streamhublive/resources/modules/downloader.py | 97608f2e48e1c7d67e403ad3122dc6daeb436677 | [] | no_license | sClarkeIsBack/StreamHub | 0cd5da4b3229592a4e2cf7ce3e857294c172aaba | 110983579645313b8b60eac08613435c033eb92d | refs/heads/master | 2020-05-23T09:09:54.898715 | 2020-02-29T12:15:32 | 2020-02-29T12:15:32 | 80,440,827 | 9 | 20 | null | 2017-10-04T07:32:52 | 2017-01-30T16:43:46 | Python | UTF-8 | Python | false | false | 2,512 | py | import xbmcgui
import urllib
import time
from urllib import FancyURLopener
import sys
class MyOpener(FancyURLopener):
version = '[COLOR ffff0000][B]StreamHub[/B][/COLOR]'
myopener = MyOpener()
urlretrieve = MyOpener().retrieve
urlopen = MyOpener().open
def download(url, dest, dp = None):
start_tim... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
b9e96932a14e41fe2293414f813539a41dac1547 | e60487a8f5aad5aab16e671dcd00f0e64379961b | /python_stack/Algos/Fundamentals/bracesValid.py | 1cf44dec62b3abd0f888db3f006ddf5ae829bf98 | [] | no_license | reenadangi/python | 4fde31737e5745bc5650d015e3fa4354ce9e87a9 | 568221ba417dda3be7f2ef1d2f393a7dea6ccb74 | refs/heads/master | 2021-08-18T08:25:40.774877 | 2021-03-27T22:20:17 | 2021-03-27T22:20:17 | 247,536,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # it are valid. For example, given the input string
# "w(a{t}s[o(n{c}o)m]e)h[e{r}e]!" , return
# true . Given "d(i{a}l[t]o)n{e" , return
# false . Given "a(1)s[O(n]0{t)0}k" , return
# false .
def bracesValid(str):
mapping={"(":")","{":"}","[":"]"}
myStack=[]
for c in str:
if c in ('(','{','['):
... | [
"reena.dangi@gmail.com"
] | reena.dangi@gmail.com |
6d095ec3fb24bd379d4acd316d4b0936602b69a5 | 536fc58ff6c68ea411bfbbb140429c69a5f124af | /bugs/__init__.py | 4a64b8528e0abbaa7b56c3a1a6d42ad37b3b82b6 | [] | no_license | Severogor/tt | 60435440a37e8b859fa93ea19f6eaca77661b4fd | 13a5cbc62dc7a161e96070df6bd3ac37a5f54140 | refs/heads/master | 2021-07-11T09:35:29.871966 | 2020-07-10T01:42:56 | 2020-07-10T01:42:56 | 155,297,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from math import floor, ceil
# (c) Severogor
def bugs(b, s, verbose=False):
"""
Calculate free right and left fields by bits shift
b : "bugs" number
s : "stones" number
verbose : verbose output
returns : [ left , right ] free "stones"
"""
#... | [
"severogor@localhost"
] | severogor@localhost |
1decf9196f85bd2df931b614dc21e2e8dfdf42b4 | b785549e66a6c5a6e8b00218acc54ffd4efdb2f0 | /pythonCrashCourseWork/Chapter 6/6-2-FavouriteNumbers.py | 73fd93d776bbf57f19ae81197ee01035e14d53b3 | [] | no_license | RyanMolyneux/Learning_Python | 970ae92abac65dc0881a7aaef1f74322c0c7fbdd | e9a613da2f9d24c0a0cd54d84542b9f7c7d5c13c | refs/heads/master | 2021-01-21T20:11:30.780622 | 2017-09-20T18:38:18 | 2017-09-20T18:38:18 | 92,203,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #Chapter 6 ex 2 date : 12/06/17.
#Variables
favourite_numbers = {"ryan M" : 27,
"jim": 18 ,
"tim H" : 120,
"jamo" : 23,
"hector":35}
#Main Body
print("\n\nFriends Pole\n-----------------------\n",
favourite_numbers["ryan M"],
"\n",favourite_numbers["jim"],
... | [
"noreply@github.com"
] | RyanMolyneux.noreply@github.com |
913f07474baaab607d06187cb7e73d8da81dbeea | 66b2f208c1da55b76ee08e0110ec47978707b27a | /datasets/dataset.py | d7826b787200e8cf9ef68156400cd4be45f67973 | [] | no_license | felix468/DLAM21-Audio-Sup-Res | b7b5789efdbf5e3684ce52ad1f9e81211773474c | aece7506364cbc48dd5daed8f43a8fe952fc5534 | refs/heads/master | 2023-07-18T16:08:51.869424 | 2021-09-14T07:57:45 | 2021-09-14T07:57:45 | 405,915,248 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | import os, torch
from typing import Tuple
from torch.utils.data import Dataset
import torchaudio
import numpy as np
from scipy import interpolate
from scipy.signal import decimate
import h5py
import soundfile as sf
def upsample(x_lr, r):
x_lr = x_lr.flatten()
x_hr_len = len(x_lr) * r
x_sp = np.zeros(x_hr_l... | [
"git@felixkaiser.me"
] | git@felixkaiser.me |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.