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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa4f38de6dfce95c0c0dc316ce9a42a7aee5a2fe | 28182465be65e04eebeaa6d849183c48a5841258 | /goodie/migrations/0006_auto_20150928_2058.py | b8387ccad4c0d2d28930ce495e351b15aaa90ca8 | [] | no_license | singhpriyanshu5/uscan_backend_2 | 184b017c05782bcf080a993ccbf7a97ff04cb468 | a0462032283f5c379ef444a7a0f7270d72ac087e | refs/heads/master | 2021-01-23T04:20:39.284019 | 2017-03-26T10:00:32 | 2017-03-26T10:00:32 | 86,190,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('goodie', '0005_auto_20150928_2040'),
]
operations = [
migrations.RemoveField(
model_name='event',
na... | [
"root@ubuntu-ustudy.localdomain"
] | root@ubuntu-ustudy.localdomain |
516036f8a0bc3f47d5d771b46101d15d00bbf14f | 22295cda10cf11472fee987093e0b245f6f96ef3 | /nick/twophoton/imag003_depth_report_signals.py | 40243b4470c47a81c063c4888295fcf8c03f4476 | [] | no_license | sjara/jaratest | aecb9e3bcc1ff91db35e7cd551c0f4f3da0b690a | 09bf2c76bd5bf45191a2c37c14171ae1e8902c4b | refs/heads/master | 2023-08-11T09:55:17.684814 | 2023-08-03T22:03:31 | 2023-08-03T22:03:31 | 63,100,718 | 2 | 5 | null | 2023-04-11T18:14:08 | 2016-07-11T20:43:04 | Python | UTF-8 | Python | false | false | 1,259 | py | import os
import numpy as np
from scipy import io
from jaratoolbox import loadbehavior
from jaratoolbox import extraplots
from matplotlib import pyplot as plt
from skimage.external import tifffile
dataDir = '/home/nick/data/2pdata/imag003/'
# sessionsToPlot = [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 17, 18, 19]
sessi... | [
"nickponvert@gmail.com"
] | nickponvert@gmail.com |
33e25699c7796189faf0322b741f7eff15feb1f7 | 80253a90b63f2240a46609fd7e8cebfae88ed319 | /database.py | e24059434028471de23e81bb2baa665198e2fafa | [] | no_license | mcnz/authserv | 6575e7f1e2cc7f3a45c1b9d5851fafe0aebf1245 | 4d25b1f8f9c43afd3c2918664f83351009b30f09 | refs/heads/master | 2016-09-06T05:27:00.831856 | 2014-01-19T06:02:02 | 2014-01-19T06:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # encoding: utf-8
from logging import getLogger
from MySQLdb import connect as MySQLConnect
MYSQL_HOST = '127.0.0.1'
MYSQL_USER = ''
MYSQL_PASS = ''
MYSQL_DB = ''
MYSQL_TABLE = ''
class Database():
logger = getLogger('database')
def __enter__(self):
self.logger.debug('Connecting to database.... | [
"jm@dcd.net.nz"
] | jm@dcd.net.nz |
951eb0ce9a9891008f70a4cefef56826c2bf67c7 | 519af368b3bab9e683e86e547b7d8f4d8fab6700 | /extract_image.py | 863b32f38feb343a14dafb17892f7694da44935b | [
"Apache-2.0"
] | permissive | sovichea-sinath/SynthText_kh | 52306365825a61ca965797aa695dada879c0a6b3 | 21e6b1fe851bcc6687259919253030c01442d9b7 | refs/heads/master | 2022-12-29T21:15:15.412841 | 2020-10-22T09:25:06 | 2020-10-22T09:25:06 | 295,613,964 | 1 | 0 | Apache-2.0 | 2020-10-14T03:59:14 | 2020-09-15T04:27:01 | Python | UTF-8 | Python | false | false | 2,292 | py | # Author: Ankush Gupta
# Date: 2015
"""
Visualize the generated localization synthetic
data stored in h5 data-bases
"""
from __future__ import division
import os
import os.path as osp
import numpy as np
import matplotlib.pyplot as plt
import h5py
from PIL import Image
import operator
from common import *
def break_... | [
"sinathsovichea@gmail.com"
] | sinathsovichea@gmail.com |
01d364f9afb6d44a3afb118a88213941ef85ff06 | d42a6ba8e54ae8fa0b04bc767766c8181bac599a | /dataProcess/relaImport.py | bd4a622896f583f05e84a5c96a41bab05e433a62 | [] | no_license | realcopycat/relaDataBuild | 0f7a80ec2fda55608097d8af9b02dc675cbde611 | f4942ca981160c1c5532309c6f5e8f35fad9a8e6 | refs/heads/master | 2020-07-24T04:37:54.441094 | 2019-09-25T12:34:21 | 2019-09-25T12:34:21 | 207,803,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #
from neo4j import GraphDatabase
from pymongo import MongoClient
import time
class Neo4jDataDriver:
def __init__(self):
self.driver = GraphDatabase.driver("bolt://localhost:7687", auth=('neo4j', 'gzcd15728'))
def close(self):
self.driver.close()
class MongoDataDriver:
def __init__(se... | [
"yehan_PPU@126.com"
] | yehan_PPU@126.com |
b74a99aff57291de84a78f67392c544950db66a5 | 685b4b450c9b47d1d782b6d6a16f908331389a33 | /pygem/massbalance.py | 9a79e685f59eb0c8b3455b521d3790faf83e8b1a | [
"MIT"
] | permissive | mlummus/PyGEM | 53f309bb1bfe38593a4f10e31daf7c50bb55cc2e | 96c0844b6e807505a36c469b1a299b92c157a1bf | refs/heads/master | 2023-02-18T09:04:58.914859 | 2020-12-01T22:09:17 | 2020-12-01T22:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67,983 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 3 14:00:14 2020
@author: davidrounce
"""
# External libraries
import numpy as np
import pandas as pd
# Local libraries
from oggm import cfg, utils
from oggm.core.massbalance import MassBalanceModel
import pygem.pygem_input as pygem_prms
from pygem.... | [
"david.r.rounce@gmail.com"
] | david.r.rounce@gmail.com |
233ec664d76eb03f29e15468d33fb1bece7bd0bf | 9501588d1378658f24860683289a3e73b35ce1df | /ash_autograder/views/user.py | 71c8b441c30ac6f416c1496f76474c9e754bae05 | [] | no_license | ashirvadv/ash-autograder | cef9c768f32c6c07dbeb2db1706f496e6bbe30d2 | 6745e02a7ad8e8658cfe9474dbed23cf6619091f | refs/heads/master | 2021-09-29T05:04:19.164897 | 2018-07-05T23:38:53 | 2018-07-05T23:38:53 | 122,984,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from functools import wraps
import flask
from flask import session, redirect, url_for, request
import ash_autograder
from ash_autograder.views.globals import get_projects, logged_in, get_user
@ash_autograder.app.route('/user/', methods=['GET'])
def show_user():
"""Show users."""
if logged_in() == False:
... | [
"ashvarma@umich.edu"
] | ashvarma@umich.edu |
eda3282371c7064c19cafb623ccdc91e41ef139e | 8c03ae11387b659164fbf6ac2f6370eaf505d87c | /spad/dform/old/doc/doc/conf.py | fe93c380d3b4c7b2498daea697632f22e3a623db | [] | no_license | nilqed/fricas_input | bbfa3f479a0ba5cf853af19ab9ad731a212a8073 | 8cf20ba234b1fe4754ca133d3ba4af95d8200957 | refs/heads/master | 2021-06-13T21:50:33.784426 | 2021-04-01T13:53:38 | 2021-04-01T13:53:38 | 47,598,067 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,794 | py | # -*- coding: utf-8 -*-
#
# DifferentialForms documentation build configuration file, created by
# sphinx-quickstart on Sun Apr 17 00:19:29 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated f... | [
"nilqed@github.com"
] | nilqed@github.com |
269bf66d37d33754342bddb0248ac1f47af381c5 | 0246c0ded95e8cfb1139159c267f6c024ca83f7a | /5kyu_rgb_to_hex_conversion.py | 1296ce04e6bd1bdea4d07c74e38cbcc1fec3c027 | [] | no_license | cromox1/KodPerang_kata | e40a4f2c3f4eba029caabc3312236aac1bea43bd | 242effc71fef40c0c9a7dc46653845a20da5f239 | refs/heads/main | 2023-01-21T00:18:00.232300 | 2020-11-26T12:13:17 | 2020-11-26T12:13:17 | 312,572,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | def rgb(r, g, b):
int_to_hex = lambda number: "%0.2X" % number if (0 <= number <= 255) else '00' if number < 0 else 'FF'
return int_to_hex(r) + int_to_hex(g) + int_to_hex(b)
# def int_to_hex(num):
# if num <= 0:
# num = 0
# elif num >= 255:
# num = 255
# return "%0.2X" % num
class ... | [
"xixa01@yahoo.co.uk"
] | xixa01@yahoo.co.uk |
34981c786a6a05d121e33da0996a6c7a9609fa8a | 1dc6d81494e33c5eb8b83e0d8c624fc93449febc | /interfaceRequestsGet2.py | b5124297eb385f92c156ef40b284205fe257d7a6 | [] | no_license | kungunier/interfaceAutomation_study | bce429aabe57d39c3196ae7f4fa854fd87ec5a14 | 5b3bf0b789c277a8c82ce4ac7c9e3116937c40ca | refs/heads/master | 2023-01-03T00:57:12.406127 | 2020-10-28T06:38:31 | 2020-10-28T06:38:31 | 292,737,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import requests
url = 'http://www.baidu.com'
# 第一种传参方式:
# params = {"id" : 1001}
# 第二种传参方式:
# params = {"id" : "1001,1002"} # %2C 是ASCI值中逗号
# 第三种传参方式:
params = {"id" : 1001,"kw" : "北京"}
# res = requests.get(url,params='id=1001') # 用字符串传参不推荐
res = requests.get(url,params=params)
print(res.url)
print(res.status_... | [
"liuhailong0511@163.com"
] | liuhailong0511@163.com |
47799d1b8b783dfbf00b975a5437985f568546a2 | da2590b259afa1db3f072d473153fca93e553e62 | /landing/forms.py | 678552ef118e8594f8e9a68027dbbfdcf731d3cd | [] | no_license | leenett/FirstProject | 24ff29b6cda72868e0c4a2e0bb0e13c39c5fd346 | 7ff92b5e67a40168a0a42a8d5bd59493119ba741 | refs/heads/master | 2020-03-19T11:05:36.848821 | 2018-06-20T10:28:42 | 2018-06-20T10:28:42 | 136,429,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django import forms
from .models import *
class SubscriberForm(forms.ModelForm):
class Meta:
model = Subscriber
exclude = {""}
| [
"svetlana.yuzvak@gmail.com"
] | svetlana.yuzvak@gmail.com |
83ee26e4699a443e0a9b8be550608345ba964bff | d7322d028bb003de90a9cfb9768b9c0d744bca25 | /Display/_Core.py | 0abb202156640aa690687ba0089c8bb8a93e343e | [] | no_license | cth7/mricoils | d1c68493b900bdfe6750b960191a032851960246 | 8a0d1af646e739d019c65284e5f26c8c03d297ec | refs/heads/master | 2022-02-14T17:02:41.371155 | 2019-09-03T14:39:19 | 2019-09-03T14:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | """
Code made available for the ISMRM 2015 Sunrise Educational Course
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Alan Kuurstra
Philip J. Beatty (philip.beatty@g... | [
"phil.beatty@synaptivemedical.com"
] | phil.beatty@synaptivemedical.com |
80444d94b4f8c4175a2a0cd97920d6e8062720d2 | 684c1cc16fb065819ea5c5334e447c6e4e3a0e2c | /udemy/01_walkthrough/strip_split.py | e1f43dea1d12cce2dcf410d4fb293b160c46e41c | [
"MIT"
] | permissive | inderpal2406/python | 394e171be00228f9076f0940f828e610846d7cfc | 7bd7d03a6b3cd09ff16a4447ff495a2393a87a33 | refs/heads/master | 2021-06-25T01:58:35.995052 | 2020-11-07T19:44:51 | 2020-11-07T19:44:51 | 153,904,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python3
name=" Inderpal "
print(name)
print(f"{name.strip()}")
name=" Inderpal Singh Saini "
print(f"{name}")
print(f"{name.strip()}")
name="python"
print(f"{name}")
print(f"{name.strip('p')}")
print(f"{name.strip('n')}")
print(f"{name.strip('t')}")
string="Python scripting is easy"
print... | [
"inderpal2406@gmail.com"
] | inderpal2406@gmail.com |
7766bc9c5b58eaf1179a048808aa72c6f6e9c239 | 4c27bba20b606b9b3b4991b15521d17ef39b36f0 | /hiCloth/hicloth/rest/migrations/0007_auto_20150820_1633.py | e0e1141d8bc0641a2fc4014333f102d4e697e0dc | [] | no_license | ayyoobimani/Cloth-server | 5156e5063bc9103c34a1510ee4ecb08f19b37784 | b888473e1b9deb93edf7824cf1e2a115bc42330a | refs/heads/master | 2016-08-12T02:23:32.485789 | 2016-02-24T08:43:38 | 2016-02-24T08:43:38 | 52,425,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('rest', '0006_auto_20150810_1606'),
]
operations = [
migrations.CreateModel(
name='TagRelationship',
... | [
"ayyoob.imani@gmail.com"
] | ayyoob.imani@gmail.com |
b9ff55c607bf96c6460a434a3c8e50bf40892ffe | d2c016a2b8ce4704042aff182827756c26d50482 | /Captain/tools/drone.py | 71298925826546cfe0405cfff75b5cfb0a23d934 | [
"MIT"
] | permissive | HerouFenix/rl_bots | 90a31ca3593a8d51166f03599a2dd33d656113d2 | 948b2b718a5777265f9571fa0297a17cec985064 | refs/heads/main | 2023-04-26T06:40:38.626589 | 2021-05-27T22:14:04 | 2021-05-27T22:14:04 | 360,172,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from typing import Optional
from rlbot.utils.structures.bot_input_struct import PlayerInput
from action.maneuver import Maneuver
from rlutilities.simulation import Input, Car
class Drone:
def __init__(self, car: Car, index: int):
self.car = car
self.index = index
self.control... | [
"tiagomelo@ua.pt"
] | tiagomelo@ua.pt |
38236755eccebc4e6beb4ad2d215acf36bb72eaa | d7386e4c2e9a1c9c8543239702c9f36f98ec7431 | /Scrapy/test01/test01/settings.py | c6bc7a4f85f533c2b18cb940074b15d02a2998b5 | [] | no_license | SalingerMa/Spider | 6f36fee328d592fa56625c49b40df60074acb227 | de1137585dcd44a47cfd10f8aabec53663f7cba1 | refs/heads/master | 2021-07-11T11:47:07.960418 | 2021-06-23T16:03:42 | 2021-06-23T16:03:42 | 163,784,688 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,072 | py | # -*- coding: utf-8 -*-
# Scrapy settings for test01 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics... | [
"ma_huimeng@163.com"
] | ma_huimeng@163.com |
7fb2df29e49fb98890afcb76700c6a0b13a9146c | 87ea7c59c25e872b46eb7b7c2f18a09849fa7579 | /parse_args.py | 45ffd8724f0efb5543e61db2981bc7e42df6fb54 | [] | no_license | kl2806/atis | c99999bb88fcb3107c518ce8a8b7978d07be160c | c8fb558c7c6e47b08f7728ff3b70bb2210538149 | refs/heads/master | 2020-03-30T13:49:50.858858 | 2018-07-24T22:06:22 | 2018-07-24T22:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,100 | py | import sys
import dynet_config
args = sys.argv
dynet_config.set(mem=10500, autobatch=True, requested_gpus=0 if "--no_gpus" in args or "--no_gpus=1" in args else 1)
import dynet as dy
import os
import argparse
def interpret_args():
""" Interprets the command line arguments, and returns a dictionary. """
parser... | [
"als495@cornell.edu"
] | als495@cornell.edu |
95bf734be7fdaa0b2654fcc7a66bf2819c430ff7 | 834ffa127ae5af8e03d40bd34439857d999df6ad | /profiles_api/migrations/0002_profilefeeditem.py | 06d73a3e25a98e86bc8b44f4ac06a6ed06e27b19 | [
"Unlicense"
] | permissive | pratik217/dj-profiles-rest-api | d274b7232e81186dc1588fc5eb4e72742a1c0f17 | 0fd23c33cc8d2014a6b3442a56840a77af1e4f48 | refs/heads/main | 2023-04-27T17:26:28.733098 | 2021-05-16T05:20:56 | 2021-05-16T05:20:56 | 367,528,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | # Generated by Django 2.2 on 2021-05-16 03:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles_api', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"kpratik217@gmail.com"
] | kpratik217@gmail.com |
d57bb865836da6b50b08d1e0795f50aef737cded | 74f0c966d09786f447ad60bf837ea342cb405874 | /neutron/db/sqlalchemyutils.py | b720554d8bfe626a674b13cc47b1c6054d97fa9f | [
"Apache-2.0"
] | permissive | mrwukang/neutron | ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e | ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506 | refs/heads/master | 2020-04-11T18:24:09.601969 | 2019-01-02T15:42:05 | 2019-01-02T15:42:05 | 161,997,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,493 | py | # Copyright 2011 OpenStack Foundation.
# 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 req... | [
"wukangmr@163.com"
] | wukangmr@163.com |
677a337f2ee78ec39388123a46cd41ac6a7d18d4 | 4aad999dc67da2ba491842828f18c89d221858bd | /BaoYihang/downloadclass/networkclass.py | eb6191361e9c535a574fb0b24d9f7ef04228dbaf | [] | no_license | wanghan79/Code-Training | a1779699635f9743db998c41e0245df07f433396 | a3b3ed291c94afa932fe72bd2d84967bf751efd4 | refs/heads/master | 2020-07-22T07:33:41.153464 | 2019-10-25T11:23:46 | 2019-10-25T11:23:46 | 207,117,760 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | '''
python download method
Attention:
The path must contain the filename that stored
the data. eg:'/Users/roarboil/Desktop/kkk.html'
Author : BaoYihang
'''
import requests
class FileDownload(object):
@classmethod
def download(cls,file_url,file_path):
r = requests.get(file_url, st... | [
"boilroar@gmail.com"
] | boilroar@gmail.com |
ff29d5acbcd3bb29c714470d0233da15db9470ac | ceec409d8986478f570841412c9186aa9259584f | /shop/models.py | 74c2c941d244c08139abb7ddc32ef7c19a6e9d52 | [] | no_license | Zhou-ly/django_mysql_myshop | 8bb8ac47dcd6c4b399dfcb61b6b7d80aa6606918 | 6aff268e8ba4d79d0d50106731f778d89dab3b44 | refs/heads/master | 2023-01-27T14:10:12.259943 | 2020-12-03T09:48:36 | 2020-12-03T09:48:36 | 318,141,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | from django.db import models
# Create your models here.
from django.urls import reverse
#商品品类模型
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True) #db_index=True 则代表着为此字段设置索引
slug = models.SlugField(max_length=200, db_index=True, unique=True)
# 元数据
class Meta:
... | [
"1959649788@qq.com"
] | 1959649788@qq.com |
60f8e10331cb589b67e7ba72b65706dc13efa91e | c017ba62e91b85aacc12704d8dc210e2df54c736 | /src/env/bin/django-admin.py | 9b1b57529f668c18fc5d164df26aad9c12f372af | [] | no_license | artomate/artomate | 669b18c004e10b63f9d90a03721d004774a630f6 | 759abeb2c3b705fa5fe01215095f6bedc55dd268 | refs/heads/master | 2022-12-20T20:04:32.851370 | 2019-11-14T12:42:30 | 2019-11-14T12:42:30 | 221,693,711 | 1 | 1 | null | 2022-12-13T02:49:41 | 2019-11-14T12:34:21 | Python | UTF-8 | Python | false | false | 162 | py | #!/root/Homestead/artomate/artomate/src/env/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"karansai1994@yahoo.com"
] | karansai1994@yahoo.com |
7ff1da19ed1abc4b07971fddb5000f118d39913e | 6e0958cef934277726b6190486c41735d63ffae3 | /baselines/chexnet/DensenetModels.py | bbb81091e8ad2cef68e2d3022b5ba4d7852dd3dc | [] | no_license | jind11/MLHC19-CXR | 0166538fbdebda2710a6cbea4070cbfc08d87dbe | c7b87f20ade9d26735e59e7c1336af84aa2a0fbb | refs/heads/master | 2020-05-24T06:33:08.537870 | 2019-05-18T16:50:46 | 2019-05-18T16:50:46 | 187,139,572 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import os
import numpy as np
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import torchvision.transforms as transforms
from torch.utils.data import DataLoader
from sklearn.metrics import roc_auc_score
import torchvision
class DenseNet121(nn.Module):
def __init__(self, c... | [
"noreply@github.com"
] | noreply@github.com |
ed847b99f59370265ad6b30306e30f5009e41458 | 018b7c9dc6af0e1077189f8b17adada186c4ed21 | /djangokalendar/djangokalendar/urls.py | 84848e9a42082f46f835206a60ee81c00d94a6b7 | [
"MIT"
] | permissive | daniel-sjkdm/DJKalendar | 22c01eb6d8be9b186fe239b571aaed73692fe5fb | 7361770159664d1e125655fb00046ac45f4b9429 | refs/heads/master | 2022-12-04T10:39:11.713458 | 2020-08-19T23:41:16 | 2020-08-19T23:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """djangokalendar URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"daniel.py.216@gmail.com"
] | daniel.py.216@gmail.com |
8cb1ed187c7880720ce641b8247c885e11baf556 | 4b6d2271da3b53c8b4d4284440d0b113b74d7b46 | /pyngete/service.py | efd410dcde36b751bd1e7c4846452c31531e71fc | [] | no_license | fkei/pyngate | b421848562b93b5c5e583056d8ce227f6c158a15 | 40d22fc436ff61878531a08070ff2fe96e035e36 | refs/heads/master | 2021-01-22T14:40:11.390361 | 2011-05-22T14:14:38 | 2011-05-22T14:14:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pymongo
config = None
def _oped(func):
def wrapper(self, *args, **kwargs):
db_host = kwargs['config']['db']['host']
db_port = kwargs['config']['db']['port']
db_name = kwargs['config']['db']['name']
connect = pymongo.Connection(... | [
"kei.topaz@gmail.com"
] | kei.topaz@gmail.com |
8f26cca891d5fc17f41cc48ce56b69ae5fa114de | fe13d4b4824d5651d87a9bc29b7159485e13a189 | /tinyschool/workbog/HTMLTestRunner.py | ecd4e34786cfdbce62c6038e0db85a772a74f960 | [] | no_license | huanhuan0203/qtjy | a80f1f7003516d9429daa9759599967ae7fee395 | 100d7da2d6d16bf0f89041f2df5318076c8f7128 | refs/heads/master | 2022-12-09T02:14:26.822658 | 2020-09-25T09:29:10 | 2020-09-25T09:29:10 | 298,501,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,422 | py | # FileName : MyHTMLTestRunner.py
# Author : walkpython
# DateTime : 2018/10/9 21:04
# SoftWare : PyCharm
"""
A TestRunner for use with the Python unit testing framework. It
generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
... | [
"1091355780@qq.com"
] | 1091355780@qq.com |
56229c9f8f7ddd54a7e71192b3359536b3420ebf | 95ccee67bbd27ec40f1218ab9083665e0b4ea792 | /files_ext1.py | b317409306bcf0d0975222a26c6240cca1a397bb | [] | no_license | naveenoblum/pynet_test | 289a759d6eab81953ac546d6f59a5bfb5ef544ed | 546dac6a5d8e413f147b635961d208bfda97758d | refs/heads/master | 2021-05-15T14:02:45.764408 | 2017-10-17T13:12:50 | 2017-10-17T13:12:50 | 107,160,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | #!/usr/bin/env python
fin=open("file1.txt")
print(fin.read())
fout=open("file2.txt","w")
fout.close()
fout=open("file2.txt","a")
fout.write("test+file")
fout.close()
| [
"naveeno@hotmail.com"
] | naveeno@hotmail.com |
2ae42b978d71d43926552f21e39aae0b6a9188ff | c3e37aa83a70f2c5fdbc5cf9582cda1f8d95b73c | /rayvis/analytic.py | 3ff85e17ad1643375af1bb4dc05abc24b28f782a | [
"MIT"
] | permissive | SachCZ/rayvis | 30787c229509426c5084b0eea83041555c6a04c8 | e6208d578c1bf8ab33bc18a28ec6d30740ff78b0 | refs/heads/master | 2022-12-24T02:10:19.683375 | 2021-06-14T19:07:03 | 2021-06-14T19:07:03 | 253,021,186 | 0 | 0 | MIT | 2022-11-22T06:46:08 | 2020-04-04T14:41:19 | Python | UTF-8 | Python | false | false | 715 | py | from matplotlib import pyplot as plt
import scipy.integrate as integrate
import numpy as np
def right_hand_side(s, variables):
y, z, theta = variables
return [-np.sin(theta), -np.cos(theta), np.sin(theta) / z]
def analytic_solution(initial_x, initial_y, vec_x, vec_y):
theta = np.arctan(vec_y / vec_x)
... | [
"martin.sachin@gmail.com"
] | martin.sachin@gmail.com |
4af98763c8ac11ae1d5f3146561e55c5d5409196 | 3c6c684ae317ba74fd669f5cba9b64ea321bb586 | /Wrapping/Python/Binding/generate_all_modules_file.py | 898af7b1b75843f970df9a476cdcd09c41c6cbec | [
"BSD-3-Clause"
] | permissive | imikejackson/SIMPL | 6bdbe330adda6fb41d2d73993463b1aeda55c0f5 | f61686691d977c234d23320be714e11243e72231 | refs/heads/develop | 2023-07-11T19:28:10.639852 | 2023-06-28T17:44:52 | 2023-06-28T17:44:52 | 89,543,705 | 0 | 1 | null | 2017-04-28T21:36:26 | 2017-04-27T01:49:05 | C++ | UTF-8 | Python | false | false | 442 | py | import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('module_list_file')
parser.add_argument('output_dir')
args = parser.parse_args()
with open(args.module_list_file, 'r') as module_list_file, open(f'{args.output_dir}/dream3d.py', 'w') as d3d_file:
lines =... | [
"jared.duffey@bluequartz.net"
] | jared.duffey@bluequartz.net |
f99b7ff41f17b7c89c26a8a420ea3bc70a663edb | 6a8e4a564320fd44f6f5829cc6cdbe1b08132d95 | /draw.py | 0dd2da6b4551a040a2475a73a9a1b11ee7c471cc | [] | no_license | ChanYvonne/transform-graphics | b5414cfb16019c69123d00c696f70a0f561d1307 | 159d51cd10331d02fc1482e6bf11b2ffc90a339e | refs/heads/master | 2021-01-20T02:19:05.703955 | 2017-03-09T06:27:05 | 2017-03-09T06:27:05 | 83,815,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | from display import *
from matrix import *
def draw_lines( matrix, screen, color ):
if len(matrix) < 2:
print 'Need at least 2 points to draw'
return
point = 0
while point < len(matrix) - 1:
draw_line( int(matrix[point][0]),
int(matrix[point][1]),
... | [
"ychan1352@gmail.com"
] | ychan1352@gmail.com |
12773f151707596988078c66d295a28579590999 | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /eet/Distant_Barcodes.py | 9c536919456a6b4b5ac94f5b3db75a3e8443f3df | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | """
In a warehouse, there is a row of barcodes, where the ith barcode is barcodes[i].
Rearrange the barcodes so that no two adjacent barcodes are equal. You may return any answer, and it is guaranteed an answer exists.
Example 1:
Input: barcodes = [1,1,1,2,2,2]
Output: [2,1,2,1,2,1]
Example 2:
Input: barcodes = [... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
bb5cd5fb06f1e6557e7da3428fd7adefe6b9a714 | e9d536252095226d757d1352d8db9a30151ccede | /Indicators.py | dd7bc4a6071af45777a98e63854a553abbb0c5d5 | [] | no_license | ProjectFE595/Project | 94760916a540322f78a845c188704c031354d7ec | fd7013eda60edd804b3eca444da09f54e014760e | refs/heads/master | 2021-01-12T14:17:13.126885 | 2016-12-08T03:27:04 | 2016-12-08T03:27:04 | 69,836,319 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,268 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 25 15:22:15 2016
@author: Hugo Fallourd, Dakota Wixom, Yun Chen, Sanket Sojitra, Sanjana Cheerla, Wanting Mao, Chay Pimmanrojnagool, Teng Fei
This file implements an Indicators class which calculates many different
technical indicators using TA-Lib library and insert res... | [
"hugo.fallourd@gmail.com"
] | hugo.fallourd@gmail.com |
f363b5702de6e51a5585b6f238a2603361d946ba | 62f9ddc080ec33c5ca0194df00f69e663c1a7620 | /AcceptanceAnswerPredictionTool/urls.py | 94bf86a342e7fc38a9a21e0eb1a98d5ca89c0ee0 | [] | no_license | shaionbd/accepted-answer-prediction | c2b17e45b6f123ff45a74d913cb9b2c00b4620cd | 23897627415bf246727e14f81afc947457f81d5c | refs/heads/master | 2021-05-16T11:01:59.971264 | 2018-03-28T18:38:58 | 2018-03-28T18:38:58 | 104,916,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """thesis_tool URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"shakil.shaion@gmail.com"
] | shakil.shaion@gmail.com |
cfe6c7cf81fdc5a65a1d132a04faf47bb11eabea | 667349b5f2d547c7b581c74875b29927a6669b15 | /hw3.py | cebe6189bb658c2845627c3fb8f130f49bf04db3 | [] | no_license | aliyah8/aliyah8.ds2000hw3 | 8615e955b8ec1174f8ce0248bcc9ea32b32772b5 | 425ec0882a90a7c74a40ed1b9f08912a2e24806f | refs/heads/master | 2021-09-07T08:14:22.139546 | 2018-02-20T02:01:50 | 2018-02-20T02:01:50 | 80,477,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | #Aliya Tyshkanbayeva
#Homework3
def getYear(date):
return date // 10000
#Given integer date returns
#the month as an integer
def getMonth(date):
return ((date // 100) % 100)
#Given integer date returns
#the day as an integer
def getDay(date):
return date % 100
# function to read the given file and outpu... | [
"noreply@github.com"
] | noreply@github.com |
5816095d02686182c4cc3f9e02f65d91965b2fe6 | e6f1137903b9658e5e3c1ee51201a931894303b9 | /util/melt/layers/__init__.py | 4324748862ecebf1960d5f5dae2b09531e22e1a5 | [] | no_license | fword/hasky | 8ed69ef85bb34823d9ade27bb3b19aac02872440 | d3c680ffa04f7487b931a5575977798157b42b7e | refs/heads/master | 2021-01-23T01:18:49.275631 | 2017-03-18T13:01:27 | 2017-03-18T13:01:27 | 85,898,744 | 1 | 1 | null | 2017-03-23T02:39:06 | 2017-03-23T02:39:06 | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
# ==============================================================================
# \file __init__.py
# \author chenghuige
# \date 2016-08-16 16:36:38.289129
# \Description
# ==============================================================================
from... | [
"29109317@qq.com"
] | 29109317@qq.com |
4124230949240f0c5ecafeed29e8afc368e4d106 | 98ad18efdbe1f9059401077a3a01b4ff25da72a8 | /core/urls.py | 4eb09d3ef86055b8552963de90599c5c64d9bcd9 | [] | no_license | zicodehub/ecolio-backend | 0de0c8b8ab4d14c6f1afcdb91fb3335a917f1ca6 | 974f82413e70bd1e81570a8cc27094b410a5eb00 | refs/heads/main | 2023-07-28T11:02:31.384368 | 2021-09-13T15:16:09 | 2021-09-13T15:16:09 | 402,658,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.urls import path
from . import views
urlpatterns = [
path("clientdb", views.ClientDBViewSet.as_view({"get": "list", "post": "create", "put": "update", "delete": "destroy" }) ),
path("clientdb/activate/<int:id>", views.ClientDBViewSet.as_view({"get": "activate"}) )
] | [
"marcleord@gmail.com"
] | marcleord@gmail.com |
1fca2fcbc8be7883d52e1d4c38d138fd41772ff9 | 3c2aef6fab741dd2b3faafeacfc8a7b1686e1670 | /函数.py | 29f938fe73d1a9aad11601c898571facb68a730b | [] | no_license | notveryfamous/python1 | ab3e389ba359cde6210526dab96f6e43c282ff6d | 50f748f1b05813cb35ee979484f9f257132a9771 | refs/heads/master | 2022-12-25T23:47:24.909830 | 2020-10-04T07:10:29 | 2020-10-04T07:10:29 | 288,355,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | """
函数的基本格式
def square(x):
s = x * x
return s
def为关键字
square()为函数名
x为参数
s = x * x为函数主体
return为关键字,意思是返回
s为返回的变量
"""
def f1(a): # 定义了一个函数
print(a, '函数f1被执行了')
f1('666,')
def add(a, b, c, d):
e = a + b + c + d
return e
print('结果为:', add(14, 545, 656, 44))
def zzj(fruit):
if fruit == '苹... | [
"Jerry1751@163.com"
] | Jerry1751@163.com |
d6052d7e21578d6aa6d9d4d6a3d2ed9829b9fa87 | 983d1873dd6867e3adf870100d50819107a09851 | /server/python/user_dataframe.py | ff7ccda72fc1e0f9a3a0c1ff95d781a1451ca8fa | [] | no_license | robbypark/movie_recommender | 44cb3d91acd4657b056f2e308cc03534f95bf94d | e6e35c2f23032d45197d0aa52c7795197a0a05b4 | refs/heads/master | 2023-03-03T22:04:13.046754 | 2019-10-13T21:34:02 | 2019-10-13T21:34:02 | 201,776,082 | 0 | 0 | null | 2023-03-02T01:18:45 | 2019-08-11T14:36:23 | JavaScript | UTF-8 | Python | false | false | 855 | py | import pandas as pd # To read csv file into DataFrame
movies = pd.read_csv('./python/ml-latest-small/movies.csv',
usecols=["movieId", "title", "genres"])
ratings = pd.read_csv('./python/ml-latest-small/ratings.csv',
usecols=["userId", "movieId", "rating", "timestamp"])
links... | [
"rbpark@ucdavis.edu"
] | rbpark@ucdavis.edu |
6b8ae9f60a98fca7b86cae7b4f309b5e5823dbb3 | 7b263cf22e3adda95f7aa87a9bdeb35d4c72037f | /convert_np_arrays.py | 882fc134de3b9bde506f20858fa0ef54eb357586 | [] | no_license | RabbitMai/Image-Classification-with-Tensorflow | ace60b51afc6462d1f937d62e6568a3996361572 | 57fb5a0a12803dd2b9e1647eadba5dae41ddd369 | refs/heads/master | 2020-05-05T01:55:27.508137 | 2019-04-06T01:16:54 | 2019-04-06T01:16:54 | 179,617,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #convert images to floating points
def convert_img(directory,size):
lst_files = os.listdir(directory)
#create numpy array for 1st image
first_file = directory+ '/' +lst_files[0]
first_image = np.array(ndimage.imread(first_file,flatten=False))
first_resize_image = scipy.misc.imresize(first_image,siz... | [
"wmai87@gmail.com"
] | wmai87@gmail.com |
a5029a40beecd0024fa75c932d27715d6608d931 | 3820ef118f6f31470a02bc878c90415474b46ca0 | /sc/test_002.py | c344abf42b678834bf04a043d44b5dc35f94a94f | [] | no_license | lou2795849212/pythonlianxi7yml | a6e25f89d4bc854003887b75c2a5b0f9171de633 | ac839a65fd6c1e280ec2f25d950c21d6e2216750 | refs/heads/master | 2021-04-16T17:13:02.592070 | 2020-03-23T08:41:01 | 2020-03-23T08:41:01 | 249,353,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #使用yml写入文件,先导入yaml
import yaml
data = {'Search_Data': {
'search_test_002': {'expect': {'value': '你好'}, 'value': '你好'},
'search_test_001': {'expect': [4, 5, 6], 'value': 456}}}
with open("w_data0.yml", "w") as f:
#第一个参数是要写入的数据,第二个是写的对象,第三个设置字符集为utf-8,第四个是开启字符码格式
yaml.dump(data,f... | [
"2795849212@qq.com"
] | 2795849212@qq.com |
563d3990e69840038fef91948f24751f7baf76ca | efaeda12546cd609d460d7dcb34757f0de7277b0 | /python/dev/file/__init__.py | b4cf93e422cda1498692d76c4199ac804f62f068 | [
"Apache-2.0"
] | permissive | kaanayvaz/yt-videos-list | cd51b9742ffb627a69bc071a1c781f75845e1c19 | 8869cded9cf94ab1fd4013c5b6745f08fe9f422c | refs/heads/main | 2023-03-18T04:46:12.843281 | 2021-03-16T02:49:12 | 2021-03-17T22:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | from . import write
from . import scroller
| [
"shailshouryya@gmail.com"
] | shailshouryya@gmail.com |
75c0f023556c19ce152dd2ed15092cba945a4cb9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_enchant.py | 30a2682435ccb97a29ce664927597299802bbdb4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py |
#calss header
class _ENCHANT():
def __init__(self,):
self.name = "ENCHANT"
self.definitions = [u'to attract or please someone very much: ', u'to have a magical effect on someone or something']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def ru... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f4b13f4fcd3412449248a9ca6929d2741ef05eba | 0662d077d50e98f87551ebf714890eeecc2a7975 | /stock_analysis_tool/utility/keras_model_decorators.py | f0f98da6422c381761534819ebddc86a71ac5a8d | [] | no_license | ryans2014/nindex_stock_prediction | dc18f11aed6006fba78d9c5e828fda18787c26fd | 70a612fde8c6098fd1a8a87d9daceeb07e165607 | refs/heads/master | 2020-07-06T14:26:37.469978 | 2019-10-07T04:28:37 | 2019-10-07T04:28:37 | 203,048,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | import functools
def named_model(fun):
"""
:param fun: function to generate keras models. Need to return a keras model.
:return: model.cname = fun.__name__
Side effect: insert model name to map
"""
@functools.wraps(fun)
def call_and_set_cname():
model = fun()
model_name = f... | [
"ryansu2011@gmail.com"
] | ryansu2011@gmail.com |
facce1dd0ae0e979ec432e8a3d4697e93750f24b | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Bachelor/H2017/ITGK/Eksamensøving/Øving 6/Mynter.py | 473758343370ecab300a3a1f0300f96a8752c55d | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def count_coins(coins):
summen = 0
for coin in coins:
summen += coin
return summen
def num_coins(numbers):
coins = []
temp = []
for num in numbers:
if num > 10:
enere = num % 10
tiere = num // 10
if tiere % 2 == 0:
tjue = tie... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
6ad1a5ea925bfbde36109ee805d28fb83b48ed36 | b50ec7e25b4af2b391dc5082e940766c78654a03 | /cart/views.py | 7fa5f92a828d464a2a93b6cad1c10eea8c174763 | [] | no_license | Code-Institute-Submissions/stream3_project | 5393ad1b3a1922b6075e3321545904a099cbcdf9 | 0cfffda8a4d6f8950e42aa7b0eb9b3096b5b7867 | refs/heads/master | 2021-07-17T01:08:27.456708 | 2017-10-25T12:50:41 | 2017-10-25T12:50:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from django.contrib.auth.decorators import login_required
from shop.models import Product
from .cart import Cart
from .forms import CartA... | [
"coylec@users.noreply.github.com"
] | coylec@users.noreply.github.com |
b196d5e4c76aff8234188e226fe680e023fc0f89 | 21c7e3bd66187d6ae8194d23d26823f1e55bb95f | /chefserver/top/api/TbkTpwdCreateRequest.py | da04f2f89c5cd163c72e57b93b736adbb7653d06 | [] | no_license | whisnos/guanfan | 1058dc81c9d0762717a531a5ad6a19decc62eff9 | 79bb44d1231bcc2bacdfcdaf601b2ec269599a56 | refs/heads/master | 2022-11-06T18:43:05.309164 | 2020-06-16T02:20:01 | 2020-06-16T02:20:01 | 252,395,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from chefserver.top.api.base import RestApi
class TbkTpwdCreateRequest(RestApi):
def __init__(self, domain='gw.api.taobao.com', port=80, KEY=None, SECRET=None):
RestApi.__init__(self, domain, port, KEY, SECRET)
self.ext = None
self.logo = None
self.text = None
self.url = No... | [
"zhangdezhao@bangboquan.com"
] | zhangdezhao@bangboquan.com |
69d1f1d6c3c6c4c911b19d88c4953d469307148f | 1e0ae1f039668a65e480065d671235fc0fff9b52 | /s11day2/backend/b2.py | bb0b3891a46e924deb3ce5866e6a53261cb4ac70 | [] | no_license | aixocm/svndata | a4da91c3c9e1d376abfd46e7cecc3c5c2e340e83 | ee205301f3a1ce11acef98bba927877cb7c4fb0b | refs/heads/master | 2021-01-21T04:39:41.607117 | 2016-07-01T01:48:36 | 2016-07-01T01:48:36 | 47,066,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#date:2016-1-11
import time
import hashlib
import pickle
import ConfigParser
import day
info = {}
def regiest():
global info
while True:
username = raw_input('please input your username:')
passwd = raw_input('please input your password:')
if n... | [
"1755897532@qq.com"
] | 1755897532@qq.com |
2ce6df0cf404994e93ae1f837cf173c771bdb69d | edeea3af5cd0bf60c834bcab81bd0484fb2d618f | /desarrollo/SIRP/codigofuente/srip_IA/env-pr/bin/flask | a4ffb8f2a7931bf4b57ed87e89c3e7f1091aa366 | [] | no_license | randhu-solutions/randhu-solutions | 73fc9cd797d4e1666625104fe732055716939217 | 6f7cd290dd7c2f0787669fe20bbf22936f5914ec | refs/heads/master | 2022-12-27T20:55:56.920355 | 2019-12-10T22:41:11 | 2019-12-10T22:41:11 | 207,953,694 | 0 | 1 | null | 2022-12-11T15:01:16 | 2019-09-12T03:07:10 | Vue | UTF-8 | Python | false | false | 293 | #!/home/anthony/Desarrollo/cms/randhu-solutions/desarrollo/SIRP/codigofuente/srip_IA/env-pr/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())
| [
"anthodev1195@gmail.com"
] | anthodev1195@gmail.com | |
ff20da3bb6653d84bb69a3bba2612d8fed925ca2 | 6efa42eaa9e92d1d5e68ab9a24f1fc12cfee346f | /avançado/clientes/models.py | 41a20670d54399fc46b7eb15cc38a3de47143705 | [] | no_license | toledoneto/Python-Django | 4e2347d79724aab04407dec7e0ce0b027c5c1122 | 9f5dc6a6e079a0fb91b0b455a49174bd4775a82f | refs/heads/master | 2022-12-11T15:38:45.540194 | 2019-03-15T16:37:29 | 2019-03-15T16:37:29 | 175,497,970 | 0 | 0 | null | 2022-12-08T04:52:13 | 2019-03-13T20:58:35 | JavaScript | UTF-8 | Python | false | false | 1,722 | py | from django.db import models
from django.core.mail import send_mail, mail_admins
from django.template.loader import render_to_string
class Documento(models.Model):
num_doc = models.CharField(max_length=50)
def __str__(self):
return self.num_doc
class Person(models.Model):
first_name = models.Ch... | [
"toledo.neto@outlook.com"
] | toledo.neto@outlook.com |
4868c91a122515b42bcef42c0c1005f784f9c5d5 | 083a99bdcaece28f08c9389ee0fa8f6a30d9ab5d | /basics/runietests.py | ab32ecbb8a7648179594b978b22d1adc75008320 | [] | no_license | jamesnewking/selenium_wd2 | a25b20fadc78615fcfa77773f78f3c56b023fbcb | 66c731a6b8faa780bf8d1665ed1007c7ed94072a | refs/heads/master | 2020-03-26T23:03:27.824241 | 2018-08-28T03:36:45 | 2018-08-28T03:36:45 | 145,506,778 | 0 | 0 | null | 2018-08-28T03:36:46 | 2018-08-21T04:33:51 | Python | UTF-8 | Python | false | false | 448 | py | from selenium import webdriver
import os
class RunIETests():
def test(self):
driverLocation = "C:\\Users\\james\\Documents\\Personal\\selenium\\lib\\IEDriverServer_64.exe"
os.environ["webdriver.ie.driver"] = driverLocation
# Instantiate Chrome Browser Command
driver = webdriver.Ie(d... | [
"jamesnewking@gmail.com"
] | jamesnewking@gmail.com |
697c8244219b17cfa1b86dfb0845d71c6654f5b7 | f821aed8441c82be4074317a1ce2539de2d4a0ba | /time.py | 14f0d42a29a5e625f1896982ce7f5ddab0ed6781 | [] | no_license | virgo-deity/python | 28e09662eee1602ddb64d2c2c985b6c16f7d8eae | 5defc22487c40240d8d99c8c6f4be70d115593e4 | refs/heads/master | 2022-09-21T22:48:08.851759 | 2020-05-29T08:30:22 | 2020-05-29T08:30:22 | 267,740,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # import time
# import datetime
# print(help(time))#打印time帮助信息
# print(time.gmtime())#打印结构化时间
# print(time.localtime())#打印本地时间
# struct_time=time.localtime()#用变量接收本地时间
# print(time.strftime('%Y--%m--%d %H:%M:%S',struct_time))#根据localtime打印自定义结构时间格式
#通过给定的一个时间转换为结构化时间,然后取特定的年月日和时分秒
# print(time.strptime('2020--05--05 ... | [
"chinajiweiyao@gmail.com"
] | chinajiweiyao@gmail.com |
dd825169a7e52a6ad884d02fdd6500cf7257a189 | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/mypy/typeshed/stdlib/3.4/tracemalloc.pyi | 462b03ca1c46a82c921e5591f87aaf07cc326d2c | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | pyi | # Stubs for tracemalloc (Python 3.4+)
import sys
from typing import Any, List, Optional, Sequence, Tuple, Union
def clear_traces() -> None: ...
def get_object_traceback(obj: object) -> Optional[Traceback]: ...
def get_traceback_limit() -> int: ...
def get_traced_memory() -> Tuple[int, int]: ...
def get_trace... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
7dfb6020c16cdc7abc3b1b8bc01fc5ee7232a21d | 0d0f3d11cc0326318e193f4365eb63185d5eab2a | /Reply Code Challenge - Teen Edition 2021/Competition/Code/placing_antennas.py | ad5756d6155c9e2777c68ddeaeb942d64cc45a43 | [] | no_license | dronrp/Pythenerife | 8fb538af3bc8c5724e1b19bd3d1edcff4783b33b | 0bc5d450fe403422c948bea5a56f02440b6b9c3d | refs/heads/main | 2023-03-29T19:51:46.710589 | 2021-04-04T12:47:17 | 2021-04-04T12:47:17 | 345,177,166 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | # Pytherife Teen
import sys
# Analizar los datos del input
def parse_testcases(io):
# Leer el número de casos
T = int(io.readline())
tc = []
# Para cada test case
for _ in range(T):
# Leer los datos del input
#n = int(io.readline())
n,k = map(int, io.readli... | [
"noreply@github.com"
] | noreply@github.com |
8b4ecf37197f1bf3a416459742b7d0638c031bea | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-airec/aliyunsdkairec/request/v20181012/ListScenesRequest.py | e28838ca25f5a9c7bf5a3172116db39b3d94cbdb | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,647 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ded09e44634a6c69a66cad4017e63a15258b6b35 | 67d4025c8b006a4342ce78bf4831d50432a4ed7a | /flow controls/current.py | b858a670d03af0b448bdb3d27cb8ffeb47d14c81 | [] | no_license | Anju-PT/pythonfilesproject | fd21484e98dc6c27fd9fd00feea0ede76ca8db17 | fee8351a1610921700ee15ea88c6f765fe3d21cd | refs/heads/master | 2023-04-29T18:13:46.490301 | 2021-05-19T08:06:51 | 2021-05-19T08:06:51 | 368,791,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | #year
#month
#date
#birth year
#month
#date
#print year
cyear=int(input("enter current year"))
cmonth=int(input("enter current month"))
cdate=int(input("enter current date"))
byear=int(input("enter birth year"))
bmonth=int(input("enter birth month"))
bdate=int(input("enter birth date"))
dyear=cyear-byear
dmonth=cmonth-... | [
"anjuthankachen2012@gmail.com"
] | anjuthankachen2012@gmail.com |
5f6c2cc23bfa6be883b2211c1cbe82dfdc70fee1 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_menu.py | eed0ca7ad1bdec1ef6ddb3227edc9944a2341163 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,532 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
8436d7f1670a2ef115032f4ab329e743426fbc8a | f08d137b7821d79672c91e5f06967ffa1f90e278 | /.history/Python/Main_py_20211020222353.py | b9f2db00c2e594197b452733fbbbb1d47c75cb3b | [] | no_license | anhviet-key/hello-cac-ban | a39ffb1731a77dd171523ea145f5d8b62fccde7c | 18411b51add7e3277d42869f8a50c67111337983 | refs/heads/main | 2023-08-23T09:02:01.074958 | 2021-10-27T07:48:47 | 2021-10-27T07:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from Sub_py import num2
print("Hello, Word")
num2()
| [
"92666546+anhviet-key@users.noreply.github.com"
] | 92666546+anhviet-key@users.noreply.github.com |
a625854340662b78f1dd25eae635d0127e4ce021 | 0f5ae893b4f594f1cdc68aa79550f7897fb4592e | /2000-3000/2585. Number of Ways to Earn Points.py | d3b6094c095f3c3341e59c550312125fae060877 | [] | no_license | dianachenyu/AlgorithmPractice | c4c95cb6c64c2ae5fb13ea740ef1f3d81ffa3b42 | 1e4b259b58b43f53a872cfff3275e92030b52a4f | refs/heads/master | 2023-06-27T10:38:52.342861 | 2023-06-19T15:42:00 | 2023-06-19T15:42:00 | 229,684,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | class Solution:
def waysToReachTarget(self, target: int, types: List[List[int]]) -> int:
types.sort(key=lambda x:-x[1])
MOD = 10 ** 9 + 7
@functools.cache
def dfs(total, idx):
if total == 0:
return 1
if idx >= len(types):
... | [
"noreply@github.com"
] | noreply@github.com |
68d3d0258f3819baf4ea7512c916f0d67cdda7e2 | 05f6a98aa835cb9941755d2a936c76e3d37539d9 | /2019/amgm.py | 135e0630ca92284442e32491e7114e5063fe64f9 | [] | no_license | khynantoque/ICPC | 4c57b7117a8485a086c4410c34a80522a9fd40ce | 6fb4be26cac22a56eb2c373429520860aff5e4ed | refs/heads/master | 2022-04-06T16:53:15.269297 | 2020-02-10T03:19:21 | 2020-02-10T03:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | length = int(input())
numbers = list(map(float, input().split()))
print(sum(numbers) / length)
base = 1
for i in numbers:
base = base * i
print('{:.2f}'.format(base ** (1/length))) | [
"kantoquetrue@gmail.com"
] | kantoquetrue@gmail.com |
7165bc2aac273c2c37828b9f5f7caf4e44727c2a | d84b1bb81446012fbfbc23a08f7844ddf05c040f | /paddle.py | 23191886819492c00f093d4917267f7665f0d2a7 | [] | no_license | avlee10/pong_project | 280aa0855da03f78bca436022d34be4848f0b903 | 751ee5439d84124b75ef3d6703c7a77b2b4f6069 | refs/heads/main | 2023-08-27T17:21:27.184044 | 2021-11-09T20:24:09 | 2021-11-09T20:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from turtle import Turtle
class Paddle(Turtle):
def __init__(self,position):
super().__init__()
self.shape("square")
self.color("white")
self.shapesize(stretch_wid=5, stretch_len=1)
self.penup()
self.goto(position)
def go_up(self):
"""Function to go up"... | [
"iamnetsua@gmail.com"
] | iamnetsua@gmail.com |
3dd6dc39bcb21f0af71641e5d5903311f2e1412f | 13e33957736289d171c33ccc782e3aff213709c5 | /stock-market-calculator/holdingperiodreturn.py | 8b7b6428fc33f3a1735f20863027559fb470167a | [] | no_license | stockmarketcalci/stock-market-calculator | 2d6cf107fc139ef51952bd4b8451e02fefc8fe4b | 08ac0960fb707f7ede007c80ae5bf906ed876de3 | refs/heads/master | 2023-08-13T21:34:19.654155 | 2021-08-26T03:58:03 | 2021-08-26T03:58:03 | 380,217,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | from flask import Blueprint, render_template, request
from flask_wtf import FlaskForm
from wtforms import FloatField, SubmitField
from wtforms.validators import DataRequired, NumberRange
hprmodule = Blueprint('hprmodule', __name__)
@hprmodule.route('/holding-period-return', methods=['GET', 'POST'])
def holdingperiod... | [
"stockmarketcalci@gmail.com"
] | stockmarketcalci@gmail.com |
c0dcd406a609585002fe242dd79f2e2161baa1c1 | c6a7d6d51e9b6c8080fb935fe3f35bc0ffd8b29c | /basic6.py | f522e806a58ce4e775892ac77802447e9d169a2a | [] | no_license | astrrr/OpenCV-Tutorial | 51f0ad679d1ec5bc2a8be89d6bfda8629ba1f093 | 707dee656e7875cc5be7dbf51a9f95d10fca43b7 | refs/heads/main | 2023-07-25T11:15:58.691137 | 2021-09-08T09:15:15 | 2021-09-08T09:15:15 | 394,672,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | #บันทึก video
import cv2
cap = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID') #ตั้งค่า four cc
result = cv2.VideoWriter("output.avi", fourcc, 20.0, (640, 480)) #เตรียม file
while (cap.isOpened()):
check, frame = cap.read() #รับภาพจากกล้อง frame ต่อ frame
if check == False :
break
... | [
"invisibile.sek@gmail.com"
] | invisibile.sek@gmail.com |
7f694fdc451b69b4d243421d5899f21f20bebfb2 | f9558e3001cf1fb549eec2775dfede6b90deab0d | /wifi-raspigopropano.py | c62dbe744503201836c7cf4782707518e79a86b9 | [] | no_license | zmxu/raspigopropano | 06724bcfbccee227c2fa29d16310eaf93de72752 | a09e6ec6e45c86a27a4b43735067b144174eb0b5 | refs/heads/master | 2020-12-26T12:59:31.968737 | 2014-01-31T15:55:01 | 2014-01-31T15:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | # Raspberry PI GoPro Pano WiFi option Python file
import time
import urllib2
import {stitch.py}
import RPi.GPIO
def set(property, value):
try:
f = open("/sys/class/rpi-pwm/pwm0/" + property, 'w')
f.write(value)
f.close()
except:
print("Error writing to: " + property + " value: " + value)
def setServo(angle):
se... | [
"github@chernowii.com"
] | github@chernowii.com |
dc151184a7be117c9ba30d0fd60a18f811bcf66d | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/candidate_sampling_ops.py | 7731e73922876cf6de3e9aa25344c6f7d4f4dcf1 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/candidate_sampling_ops.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
5980856a4919bc073e4f8e609869010a726f9957 | 1a221b795ae5f32789a95d603d7b7af0e4e25f2a | /Trabalho de Redes/colors/Color.py | e54cc00c7cd7c1a80ddc4141f0569339a97734fa | [] | no_license | hgms00/Projeto-AB2-Redes | c38ed69dcf9b2683494d11327f2c884fed97c784 | 32ebeac9cd3d4477bbafffa1070b753022e66eb4 | refs/heads/main | 2023-02-24T16:36:47.489296 | 2021-01-28T01:23:09 | 2021-01-28T01:23:09 | 333,599,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | class Color:
BLUE = '\x1b[96m'
PURPLE = '\x1b[94m'
PINK = '\x1b[95m'
WARNING = '\x1b[93m'
GREEN = '\x1b[92m'
RED = '\x1b[31m'
FAIL = '\x1b[91m'
GREY = '\033[90m'
END = '\x1b[0m'
| [
"noreply@github.com"
] | noreply@github.com |
c2f220b3b5f0bf91bfad97fd447ebc7840a3f497 | f04fb8bb48e38f14a25f1efec4d30be20d62388c | /牛客Top200/41最长无重复子数组.py | 925b34c978b77ae75f52c81087d78fbe3d6366fb | [] | no_license | SimmonsChen/LeetCode | d8ef5a8e29f770da1e97d295d7123780dd37e914 | 690b685048c8e89d26047b6bc48b5f9af7d59cbb | refs/heads/master | 2023-09-03T01:16:52.828520 | 2021-11-19T06:37:19 | 2021-11-19T06:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution:
# 用队列:当前数字在队列中,则一直出队直到当前元素不在队中,然后将当前元素入队。
# 每入队一个元素都要计算当前队长度,返回值即是队列长度的最大值。
def maxLength(self, arr):
n = len(arr)
if n < 2: return n
queue = []
ans = 0
for number in arr:
while number in queue:
queue.pop(0)
queu... | [
"15097686925@163.com"
] | 15097686925@163.com |
a9b5323042276894d6c0ed9d93f1a3bc79da30c9 | ab5d53cc00772ff2ac4c0747cbbd4ecc0c88079e | /DeepLearning/C1_Intro/P5/linear_regression/test.py | 3cb756c64b4c666296bd6217eb3173285496e947 | [] | no_license | TragedyOwl/UDACITY | a341222703334f6c7d1cb15839036cc15ebb3e8c | 96c87cb8a2344847a10475c0cc4261e364c70c4d | refs/heads/master | 2022-12-09T22:28:31.467271 | 2018-01-03T08:47:55 | 2018-01-03T08:47:55 | 105,650,296 | 0 | 1 | null | 2022-12-08T07:15:22 | 2017-10-03T12:41:45 | Jupyter Notebook | UTF-8 | Python | false | false | 640 | py | import pandas as pd
from sklearn import linear_model
import matplotlib.pyplot as plt
#read data
dataframe = pd.read_fwf('./data/challenge_dataset.txt')
# print(dataframe)
x_values = dataframe['data'].str.split(',', expand=True)[0]
y_values = dataframe['data'].str.split(',', expand=True)[1]
# print(x_values)
df = pd.... | [
"598249974@qq.com"
] | 598249974@qq.com |
7dbb35ef97c86bff94f16c396abd2af4cffca794 | e1b88ad94f6a7203923ef4a74a05ece603a72e48 | /treehacksServer/treehacksServer/quickstart/migrations/0005_auto_20210213_1157.py | c679f3829fae147318ccb0d1c2664f400d71dbf8 | [] | no_license | anjanadev96/note-worthy | 258025758205613bf91c7e69035210c18a7831eb | 5b20fabf8087934ce0e2e5ccae168aa09dddf843 | refs/heads/main | 2023-03-08T16:35:06.314235 | 2021-02-14T18:05:20 | 2021-02-14T18:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1 on 2021-02-13 11:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quickstart', '0004_question_class_session'),
]
operations = [
migrations.AlterField(
model_name='question',
name='answ... | [
"bansal.pawan96@gmail.com"
] | bansal.pawan96@gmail.com |
5e9b55c7e11701cf118c379aee0a21777950c221 | 179671e6a9984624131b4e75f7a0ea273ebcef69 | /alternative/gesture_model.py | d50d6e39e01e5a29e1a1a07d3104ca4d4a2e1933 | [] | no_license | ITT-21SS-UR/assignment9-cm2 | 2e41cfdcd4088178ecb65fe397e0d662ada353bc | 10a4031271150c2951fafe4c0ee9bb27dd9d23fd | refs/heads/main | 2023-06-08T09:29:54.186057 | 2021-06-30T16:39:49 | 2021-06-30T16:39:49 | 379,228,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | import sys
from PyQt5.QtCore import QObject, pyqtSignal
import dollar_1
"""
copied from previous task with modifications
GestureModel saves and processes relevant data for the GestureWidget and MainWindow.
Is used to add, remove, predict, retrain, train gestures.
Emits signals when a layout element should b... | [
"mai-claudia.schoenherr@stud.uni-regensburg.de"
] | mai-claudia.schoenherr@stud.uni-regensburg.de |
63ab6446bacc30dd89798f16300dc8f1a0ff5314 | bffd457e17dc250c81d7bd9e25c20a483f1a1ed5 | /pandatools/results/ResultMerge_vehicle.py | a79cdd8a1a92074001b014b03305d8cb1a2fdca4 | [] | no_license | Harzva/gigavision | 3121f183b8cfc66f9c89f4afe1bd0bdf1c1fe104 | 1fb1ad9b9d5aac6c18dc83184a52c484964be7fb | refs/heads/master | 2023-02-20T10:34:21.735085 | 2021-01-24T10:07:30 | 2021-01-24T10:07:30 | 332,416,570 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 31,144 | py | # --------------------------------------------------------
# Result merge modules for PANDA
# Written by Wang Xueyang (wangxuey19@mails.tsinghua.edu.cn), Version 20200321
# Inspired from DOTA dataset devkit (https://github.com/CAPTAIN-WHU/DOTA_devkit)
# --------------------------------------------------------
fro... | [
"562282219@qq.com"
] | 562282219@qq.com |
f02ee849a5bd03afb22e7412495422836d4521cf | 4596704015bdc8e19d07012564e2edd0bb48279f | /py/munits/__init__.py | f811689d151e6322644d455c722cd8bcdb5123c2 | [] | no_license | blint587/MUSys | 67e50a4a6b7b076beb922d44066ff02da0382fcf | 0ab97418c1ab6cfac3fb11294a1c2afcead47eab | refs/heads/master | 2021-01-17T14:29:07.808849 | 2016-06-22T09:24:37 | 2016-06-22T09:24:37 | 54,308,126 | 0 | 1 | null | 2016-06-14T10:44:13 | 2016-03-20T08:41:27 | Python | UTF-8 | Python | false | false | 29 | py | from munits.quantity import * | [
"85Worlan30"
] | 85Worlan30 |
d6b0e3a76c586bd0d5d6e07779d7492bc728b6e6 | a580a0bc53d8d9494cfe1d6dc10e7e196f781360 | /random_forest.py~ | 8a8d9d6119a5d932a3ba9d383e5d2ec3657e8868 | [] | no_license | ankita1236/AI_mygov | 59061054147df9006f1d14aa18b4fc988e4bdace | 682664c83ec72a33891557ad8f7ed8e2861e966a | refs/heads/master | 2021-01-25T06:06:43.415220 | 2017-06-06T13:54:50 | 2017-06-06T13:54:50 | 93,524,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | print "Creating the bag of words...\n"
from sklearn.feature_extraction.text import CountVectorizer
from bs4 import BeautifulSoup
import numpy as np
import codecs
import pandas as pd
# Initialize the "CountVectorizer" object, which is scikit-learn's
# bag of words tool.
with open ('nounf.txt','r') as f:
train= f.r... | [
"ankita1236@gmail.com"
] | ankita1236@gmail.com | |
18e296be11eaf84d124e43a4b589ea13cd2a83b3 | 6204bb1342d2eb4c924b13193ed452bfa653ad2b | /pipe_transformer/data/base_data_manager.py | 306d5e2ad7213f49c80b0711b3c394d512e95729 | [] | no_license | Young768/PipeTransformer | 998d7fc609afeb1edd540f300262643ae7de9197 | 8d099008bde7dd07513041dd90747c853c2ccc1b | refs/heads/master | 2023-06-29T23:51:31.783108 | 2021-07-24T05:12:13 | 2021-07-24T05:12:13 | 388,994,452 | 0 | 0 | null | 2021-07-24T04:01:08 | 2021-07-24T04:01:08 | null | UTF-8 | Python | false | false | 396 | py | from abc import ABC, abstractmethod
class BaseDataManager(ABC):
def __init__(self):
pass
@abstractmethod
def get_data_loader_with_node_rank(self, epoch, batch_size, node_rank, num_replicas, local_rank):
pass
@abstractmethod
def get_train_sample_index(self, epoch):
pass
... | [
"me@chaoyanghe.com"
] | me@chaoyanghe.com |
e7a188d04d0cb04c69b3fb5dbe1314f40cab8666 | 84c7261004c2683cc6ca5bf3dcc095b07f714175 | /todoapp/views.py | 6eca631b727091a77333ec480f9fb447f5eed92b | [] | no_license | filwillian/django_api | eab4640aa11d18e8aa16ab8b73525fbe9e2c5be3 | 595b2ba9a5da1cea76be6ad27cbe19d2bf1890ea | refs/heads/master | 2023-05-03T14:04:11.456635 | 2022-03-17T13:36:33 | 2022-03-17T13:36:33 | 200,193,652 | 0 | 0 | null | 2023-04-21T20:36:51 | 2019-08-02T08:08:11 | Python | UTF-8 | Python | false | false | 1,227 | py | from django.contrib.auth import authenticate
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.models import Token
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from rest_framework.status import (
HTTP_400_BAD_REQU... | [
"filwilliano@gmail.com"
] | filwilliano@gmail.com |
5362ea6c41429cce7def121b934368e4497ef541 | 4ff62294c1be2fc0b07a4470b3a1ba53678c4f0a | /devops/celery.py | c48760e8a489c36e70d4d9ca76e2a4072967fd57 | [] | no_license | longwenchen/devops | d7aed58b664aba104804ec29a9e8ab6f79055022 | 57ddc7d38134da1fdcbfb3b21d3cabf593e3c8e6 | refs/heads/master | 2016-08-03T19:17:29.988653 | 2015-04-30T14:02:18 | 2015-04-30T14:02:18 | 29,540,264 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from __future__ import absolute_import
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'devops.settings')
from django.conf import settings
app = Celery('devops', backend='amqp', broker='amqp://')
# Using a strin... | [
"chenlongwen@gmail.com"
] | chenlongwen@gmail.com |
38393a5e17fedcdc54796b08c80b2d08c98836a2 | 7ff0fc359736aba6cba0247585e2dec0cc28a28c | /Transfer2Vedio/model.py | 6193fa57445019663b0af360cc4b32d24c4d7336 | [] | no_license | shen1994/DeepFaceSwap | 5319d8b760ad3cd9e55769150929c0b11173e096 | 23f20652e999e591e2addc168f356ca29279bb35 | refs/heads/master | 2020-04-14T10:14:49.178661 | 2019-01-02T01:48:12 | 2019-01-02T01:48:12 | 163,781,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 27 15:23:23 2018
@author: shen1994
"""
from keras.models import Model
from keras.initializers import RandomNormal
from keras.layers import Input, Conv2D, Dense, Flatten, Reshape, concatenate
from nn_blocks import conv_block
from nn_blocks import self_attn_block
from nn_... | [
"843224306@qq.com"
] | 843224306@qq.com |
7248eda378633edef7b4bfaed6caf91e45b279c8 | 21d7a6d0566b07dc4103a97be1c91e05e6784128 | /configs/wsgi.py | d9169dacadc338e03ae338ff6b664329db4c7347 | [] | no_license | simonw/squirrelspotter | 60c28dfcf3851676a37457db6e28704f2dfdcdf2 | 4d56e3843b6de9caf23f180b0cee19f4cd0a6b73 | refs/heads/master | 2021-03-19T18:09:02.960853 | 2012-09-25T14:56:44 | 2012-09-25T14:56:44 | 5,900,675 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "configs.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
| [
"simon@lanyrd.com"
] | simon@lanyrd.com |
df1e1b2efa5dc475ee5b76e61cad469f2164c2bf | 052a89753a7917b7fa0ccdf5718d5250a1379d2c | /bin/explode.py | 792bb4609f5f71183a72a0d26597362977ad7e7b | [] | no_license | bopopescu/aws.example.com | 25e2efda3bd9ae2a257c34904ccb53043fe20b55 | 97254868688c3c3a991843fcacc973c93b366700 | refs/heads/master | 2022-11-22T07:06:30.386034 | 2016-10-25T15:22:14 | 2016-10-25T15:22:14 | 282,553,417 | 0 | 0 | null | 2020-07-26T01:22:26 | 2020-07-26T01:22:25 | null | UTF-8 | Python | false | false | 2,499 | py | #!/Users/deanarmada/Desktop/projects/python-projects/aws.example.com/bin/python
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
abb2c0c6e5d8bcdcb3ecb44cf721b9ea22719323 | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py | 2c41cd2a18d5e92fc59baa5618929090f74565d0 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 14,619 | py | # Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
36d1293350f5b67bf202eb4d0c02875b0fb70e92 | 63f6ce221f6ac10f33761b6e57cf47725fd3d1cb | /08_Inteligencia_Artificial/01_Mineracao_de_Emocoes_em_Textos/base.py | d5d26c33f96c0e78d5a32f8964b53b1eae32c865 | [] | no_license | iamferreirajp/python-notebook | 7dcc4305fec2a133a28b5449d77d486dcaca2f5f | c9056024bc7a7715db3607ec00f886a7b9eaf0c0 | refs/heads/master | 2020-05-03T09:54:43.612078 | 2019-03-24T07:07:21 | 2019-03-24T07:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | base = [
('eu sou admirada por muitos','alegria'),
('me sinto completamente amado','alegria'),
('amar e maravilhoso','alegria'),
('estou me sentindo muito animado novamente','alegria'),
('eu estou muito bem hoje','alegria'),
('que belo dia para dirigir um carro novo','alegria'),
('o dia está... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
28c8ad392ae8fb4734f517f1bbe7082530750ef7 | ca48d0e9a823608b942e34f6dbcac2e959950170 | /P17/test.py | 5892694886478d43fd8a6767e4bd0fc57a18854c | [] | no_license | lulichn/python-99 | ccc626dd0007407d182e270e49fc5e28b875405f | 3f7da8aa491689e4adcf0386f1abbfce83067ba2 | refs/heads/master | 2020-03-08T04:36:03.695539 | 2019-08-28T17:57:23 | 2019-08-29T02:41:28 | 127,926,748 | 1 | 8 | null | 2019-08-26T01:11:01 | 2018-04-03T15:09:55 | Python | UTF-8 | Python | false | false | 622 | py | import sys
sys.path.append('../')
import unittest
from P17.main import split
class Test(unittest.TestCase):
def test(self):
self.assertEqual(split([1, 2, 3, 4, 5], 0), [[], [1, 2, 3, 4, 5]])
self.assertEqual(split([1, 2, 3, 4, 5], 1), [[1], [2, 3, 4, 5]])
self.assertEqual(split([1, 2, 3, ... | [
"daisuke.develop@gmail.com"
] | daisuke.develop@gmail.com |
7edc10aae0ce3274fae330d8d208338346bf9bea | 56b769e40f016eddf7c20778f2ddbcca17216219 | /theWall/settings.py | 0f242b234a54ccbb8f08e962e9d61da347dfeae1 | [] | no_license | Shawnpcw/The-Wall | 93268f0fbf516bc6d2ee79f3f81bb3175d419678 | adcc7b211b61eb3c50307415f2d2601307030584 | refs/heads/master | 2020-03-26T15:35:26.778567 | 2019-04-08T02:02:12 | 2019-04-08T02:02:12 | 145,052,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | """
Django settings for theWall project.
Generated by 'django-admin startproject' using Django 2.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
# B... | [
"s.cannon.williams@gmail.com"
] | s.cannon.williams@gmail.com |
faa95ec98e22a82f5cfcdfed51a9b6f43b11ed2c | 214276e470b08a9d72a644fc84838608a4e19d59 | /arena.py | 1515f33c600f3208fc6d3b565c01ca9b9b3ccc1e | [] | no_license | brianross93/pythonsuperherodueler | 6f804bc747dfc19b58231afa27aee6b6b9c71de5 | e7139bfe3f0717b7aba477382e018499fa2eaa81 | refs/heads/main | 2023-01-20T21:18:25.125905 | 2020-11-24T07:02:04 | 2020-11-24T07:02:04 | 314,718,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | from ability import Ability
from weapon import Weapon
from armor import Armor
from hero import Hero
from team import Team
class Arena:
def __init__(self):
self.team_one = None
self.team_two = None
def create_ability(self):
'''Prompt for Ability information.
... | [
"brian.ross@students.makeschool.com"
] | brian.ross@students.makeschool.com |
2a4d84e2f774b9f96415442e2e3d014da7db7d79 | 5333ef6a2907a7e61a8c2d9bc0da240b29fcd536 | /blog/form.py | 999d71db5e9d2b4e8e1cc5bb64ce766af3a18f39 | [] | no_license | MaitreWaff/waffo | ec5be0615812bd7f4a3e83cda60e9aa9260a24ed | 1ae7d22e8e7a1f991da7c392bd1440a27900068f | refs/heads/master | 2022-12-13T08:39:52.965532 | 2017-09-27T22:35:36 | 2017-09-27T22:35:36 | 100,083,251 | 4 | 0 | null | 2022-12-08T00:36:08 | 2017-08-12T02:14:48 | CSS | UTF-8 | Python | false | false | 3,091 | py | from django import forms
from profiles.models import UserProfileModel
from .models import Blog, BlogPost, CommentBlogPost
# Formulaires du Blog
#
# New forms.
class DesktopBlogForm(forms.ModelForm):
theme = forms.CharField(
widget=forms.Textarea(
attrs={'rows': 5, 'cols': 20, 'placeholder': "... | [
"waffoluc@gmail.com"
] | waffoluc@gmail.com |
264b500238e2e0aa50fbf23ec1a26dff5741e31c | 9c88b0ca37b37b939117e73f8e03b0525b672b39 | /tira.py | 5ac0624565ff350a362a04fc54429eafed653e93 | [] | no_license | antonio-fiol/tren | f603176b0c08597bdab1bb41d9aa8d96664144ea | 8c62f28b9b4af3f609ae88c7ffa22fef45b99c24 | refs/heads/master | 2021-01-11T16:03:31.335779 | 2018-04-06T14:38:58 | 2018-04-06T14:38:58 | 79,994,660 | 0 | 0 | null | 2017-08-17T06:50:40 | 2017-01-25T08:05:06 | Python | UTF-8 | Python | false | false | 12,576 | py | from Antonio_I2C import Adafruit_I2C
from PIL import Image
from memoized import memoized
from os import walk
import os.path
import datetime
import webcolors
from tornado import gen
import tornado.web
from eventos import Evento, GestorEventos
from representacion import IdDesc
from parametros import expuesto, ... | [
"antonio@fiol.es"
] | antonio@fiol.es |
ad83ee7217dd5b80d563866a27a9b2c1024e21ab | ce25541aae1affd34224af0d9a0397ffca2a7d5b | /src/SSSP.py | d4ee52b7bf53f44b5cec89676a8bec0de2bb0032 | [] | no_license | abasak24/ece594Neuromorphic | 8a12c297c9351b3b58a6f00eae76ccb7722175df | 68727086de0e16c776319f5a18b36830c4a40eb7 | refs/heads/master | 2020-08-29T21:34:34.132042 | 2019-12-05T05:12:58 | 2019-12-05T05:12:58 | 218,179,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | # GOAL: read an input file, parse vertices and edges; build the appropriate network of neurons; set correct parameters for neurons and synapses; perform SSSP
# Requires 2 parameters to run this code: 1) input edge file and 2) the total number of nodes in the graph
# Example: python SSSP.py ../datasets/ultraSmallKronec... | [
"18584733+abasak24@users.noreply.github.com"
] | 18584733+abasak24@users.noreply.github.com |
1d985001aa8cb066283ba9bf7d051e057fa13f97 | a204895c89b15eab24d68b5340da440419966bcc | /rea/apps.py | 086161dfe20fc8b3cf22684419423465d07f66bf | [
"MIT"
] | permissive | Ecotrust/regional-equity-atlas | c98855be70aa35cebff48d94d89e2cbd2077cfe2 | 66911330ea29ac6ed2ba5b172e9171f22d995756 | refs/heads/master | 2020-03-23T06:18:13.817698 | 2018-07-31T20:08:02 | 2018-07-31T20:08:02 | 141,202,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from django.apps import AppConfig
class ReaConfig(AppConfig):
name = 'rea'
| [
"ryan.d.hodges@gmail.com"
] | ryan.d.hodges@gmail.com |
ac60c8f095376835613db058072b466b085377e0 | e5ebf8d209c2720fa2cb123541a90d30a0e6c364 | /Web_Program/venv/Scripts/pip3-script.py | f12831ab8c696f096993b5f0c1f66522c71baf1e | [
"Apache-2.0"
] | permissive | Incipe-win/Games | f235482d98fbfb8f98c120e11604973c6115bb79 | 902e6c7631fa75b57cfabf0e8be8f8d8486ec432 | refs/heads/main | 2022-12-25T17:31:21.968194 | 2020-10-09T13:42:53 | 2020-10-09T13:42:53 | 302,651,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!F:\Repositories\C_Cplusplus\Games\Web_Program\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"whc_9_13@163.com"
] | whc_9_13@163.com |
8580447ff21854bfe181506e9b30bc9ffb85ebe5 | c243cff9218b72b4171a3fc294607fa830561d08 | /4_Sorting/maybe/[maybe]baekjoon_1431.py | 092d14f8719e35301a0ae46164e19c5b68894514 | [] | no_license | ISANGDEV/Algorithm_Study | 31e65cc6916be92d2a56aef1ad18eacb5b04f787 | 0eec5e3b2321f521e617d7bdc99fca8a4103f0bb | refs/heads/main | 2023-07-24T08:18:20.794903 | 2021-09-01T14:05:54 | 2021-09-01T14:05:54 | 347,665,106 | 0 | 0 | null | 2021-09-01T14:03:32 | 2021-03-14T14:51:24 | Python | UTF-8 | Python | false | false | 686 | py | numOfGuitar = int(input())
sNums = []
sNums_sum = {}
for i in range(numOfGuitar):
serialNum = input()
sNums.append(serialNum)
total = 0
for j in serialNum:
if j.isdigit():
total += int(j)
sNums_sum[serialNum] = total
sNums = sorted(sNums, key=lambda x: sNums_sum[x])
for i in se... | [
"cks0229@hanmail.net"
] | cks0229@hanmail.net |
b5e0fbba01c81b4c51a91e08acdded6d09a64a5c | 727a12137c5e5254a75ae8d1ef7cec8afacb1db0 | /polls/urls.py | 8fa82b531f7344ea46da38d8cc4c4bf8ae786c07 | [] | no_license | reazahmed/mysite | 6bb444403a2e047539ed0e3c676e2b5c7622692d | ff3706b7d19c2b93b3d8fd202dd07e2d1eefba9c | refs/heads/master | 2022-12-27T08:55:07.553290 | 2020-10-16T03:34:04 | 2020-10-16T03:34:04 | 299,406,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from django.urls import path
from . import views
app_name = "polls"
urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('<int:question_id>/', views.detail, name='detail'),
# ex: /polls/5/results/
path('<int:question_id>/results/', views.results, name='results... | [
"reaz.ahmed93@gmail.com"
] | reaz.ahmed93@gmail.com |
89dfad23f21087ab1b9c820f37999309d1580b94 | f46caa5ce999d600e3ed88c3c2477e2bf4036bac | /Feature_Extractor.py | b643189b9662fc2d82e78dcf26e963cfdae87fa0 | [] | no_license | linsea423/Lung_Cancer_Prediction | ad6f5c8194a9d750217cfe9d34c7ad3940e1a048 | d01d0f2ef616ae86e883385c09aeaa9e9ce803f5 | refs/heads/master | 2020-06-08T19:10:24.783444 | 2019-06-22T23:51:25 | 2019-06-22T23:51:25 | 193,289,158 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,390 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 5 21:45:26 2017
Extract features from the images
@author: linhaili
"""
import pandas as pd
import numpy as np
import time
import os
################ResNet50 Model############################
from keras import backend as K
from keras.applications.resnet... | [
"linhai_li@hotmail.com"
] | linhai_li@hotmail.com |
4b506f7672b6171bcf62eada7d62d8318cc31746 | cbf1574b98767aaecd37672df188e185ee34a274 | /main.py | 4445e8e27bb52094fff540e70b2e1766151c5ae6 | [] | no_license | Stexyyy/BellaGameMLG | 45cdfb858e1bba0e6c7b3e8418821201967ba234 | 971d218018f64cb5fa80a21dff231bfe24a9103f | refs/heads/master | 2023-05-01T18:00:59.867014 | 2021-05-20T15:32:10 | 2021-05-20T15:32:10 | 366,092,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,148 | py | import pygame
import Introcutscene
pygame.init()
pygame.display.set_caption("Bella game!")
screen = pygame.display.set_mode((500, 500))
shootl = pygame.image.load('images/BellaShoot.jpg')
shoot = pygame.image.load('images/InverseShoot.jpg')
image2 = pygame.image.load('images/AFKBella.jpg')
imageR = pygame.image.load(... | [
""
] | |
fdec0a78839c4b2acdb336c7a23b2cc37975b2f3 | 21c0fc7e960cd526eea576ad81a74eb3de87139a | /tpot_marketing_example.py | 51745882030f7877c6c9b1b7cfebd76d279eb9de | [] | no_license | ShubhangiGoyal/AutoML | be86df564f3ae4b295c02cc5f5d9f65a355b1724 | 2fe468bd1fb8213660460331f4add47f26765b28 | refs/heads/master | 2022-11-22T18:18:46.078842 | 2020-07-27T10:32:19 | 2020-07-27T10:32:19 | 265,242,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
# NOTE: Make sure that the outcome column is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtype=np.float64)
features = tp... | [
"noreply@github.com"
] | noreply@github.com |
220ce88c93ffcc2537e57efa0217492df0a9e1bb | 04fcab9be0ed31868a18508db7a84d22b8eb534d | /music_player/PlayerList.py | e492e52169d54b85d27fde905ae7a5d7132af689 | [] | no_license | dannieldwt/console-music-player | f9a0c773bf1fc5307c3d4f080dff0637250136fa | 8db45209383490481c5afc87eca39db537e3b9e1 | refs/heads/master | 2020-05-09T10:23:05.574475 | 2019-06-12T04:15:36 | 2019-06-12T04:15:36 | 181,039,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: 10858
@license: (C) Copyright
@contact: xxx@qq.com
@software: PyCharm
@file: PlayerList.py
@time: 2019-04-19 22:08
@desc:
该文件包含了播放列表抽象基类
普通播放列表,收藏列表,拉黑列表的定义
'''
import time
import abc
from music_player import ListItem
class Abstract_PlayList(object):
'''
播放... | [
"13411054963@163.com"
] | 13411054963@163.com |
3525230e6582ac8fb4a3bf6c92b455c2a313d89d | 6024f40efc417c5349446774f1bdff744c01a766 | /test1.py | db299d77b6fed16e4b463b4bf69ff488899899e2 | [] | no_license | Lib-P/apiAutoTest | 92e9f416c0225c11ceba2e0d1c0471af5c8a8d2a | b6ddff580f66c8cff9bac974749cfe57069f7a94 | refs/heads/master | 2023-03-21T01:26:43.120546 | 2021-03-08T03:42:38 | 2021-03-08T03:42:38 | 343,345,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | # -*- coding: utf-8 -*-
print("github") | [
"18225068337@163.com"
] | 18225068337@163.com |
22f46e7b9fd80fbc5b20ee78035a5b03bceae19c | 4fe6566f8281437c8e9098457276957db022db87 | /build/TF_test/catkin_generated/pkg.installspace.context.pc.py | a0eff4f9f43b99b7d790a0165bc24a1d5ecc6446 | [] | no_license | heyan0118/robot-programming-with-ROS | ad0d79af865ed1af3c7ed92cddb1e6efc1a4fc10 | e9d1b8de42707ba317f50a7694bc071816f950d3 | refs/heads/master | 2022-11-29T22:06:45.329528 | 2020-08-11T16:30:13 | 2020-08-11T16:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "TF_test"
PROJECT_SPACE_DIR = "/home/w... | [
"2466913104@qq.com"
] | 2466913104@qq.com |
e9ee44e68a5887f995b45f9f2a065aefe199c6fd | 2549f28dd6d0d3b809cf6c8f2af2fda9a1903a19 | /Final/matrixvm-rev/prob_src/encrypt_flag.py | 6421e15297d4b1e00821612d5ef5ad8a7c869687 | [] | no_license | c0m0r1/Codegate-2020 | ab6a378e2012f61bffba9306c5c54974f00bad82 | debfc7f964dbb65028bb3319232cc248103b7835 | refs/heads/master | 2021-05-21T01:24:09.269635 | 2020-09-04T19:03:27 | 2020-09-04T19:03:27 | 252,484,969 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | #!/usr/bin/python
import numpy as np
import random
flag = "welcome_to_MatrixVM_world"
assert(len(flag) == 25)
key = "we_will_miss_you_procfs.."
flag_li = []
key_li = []
for i in range(5):
flag_li.append([])
key_li.append([])
for j in range(5):
flag_li[i].append(ord(flag[i * 5 + j]))
key_l... | [
"ehddhr4454@kaist.ac.kr"
] | ehddhr4454@kaist.ac.kr |
f989364fcb94660e3bdd37182643dad78e55e126 | 73576276d29be09f0ea55b001ef5af43ce3741c1 | /encounter/admin.py | 56d7794d84052c2075f2b166a13759fed15b2747 | [] | no_license | kejistan/DM-Nightmare | 09d5e40f0b6cab660e2a962108498ab5e7ef5456 | a14e5e3f4176b92c0dcde4a5f3c1e0c04753b4dc | refs/heads/master | 2021-01-16T23:23:37.096567 | 2010-12-13T20:43:19 | 2010-12-13T20:43:19 | 1,143,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from django.contrib import admin
from dm_nightmare.encounter.models import *
admin.site.register(CreatureClass)
admin.site.register(CreatureInstance)
admin.site.register(Action)
admin.site.register(Encounter)
| [
"nicolay2@illinois.edu"
] | nicolay2@illinois.edu |
165af226c922ba23d17d9d829f43a3aab369517d | 06ee1cf699457dea38913bc89768c69b6982a56e | /10-fold/data_process/test/my_extract.py | b7c0532cd59eb702afc8957c196f03755f02d98d | [] | no_license | ImbaPlayer/anomaly_detection | 14343f76fe2570ef32fc89dc02c87dfeb8efc75a | fb432da31c4d6fe44f084bab4509cba8baabc205 | refs/heads/main | 2023-01-29T18:34:30.268634 | 2020-12-13T09:40:23 | 2020-12-13T09:40:23 | 309,416,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | # -*- coding: utf-8 -*-
# @Author: Guanglin Duan
# @Date: 2020-11-14 22:02:33
# @Last Modified by: Guanglin Duan
# @Last Modified time: 2020-11-16 16:43:08
#!/usr/bin/env python3
"""pcap2csv
Script to extract specific pieces of information from a pcap file and
render into a csv file.
Usage: <program name> --pcap <... | [
"983002995@qq.com"
] | 983002995@qq.com |
fcd5aad7822ee93458a0b4ecab236b995e531f7d | fc31822ffe7b02baeedecd838607b28457b172de | /monitor/monitor.py | 3c6eda34a09f7b70cc1fb4e163130fadbd3b9e14 | [] | no_license | m-przybylski/PZ_Monitoring | 556db840a6096ad4beab191b41bed9f17c4ea542 | aa8edf43f733b4fada15a9010a36f1dc1b611639 | refs/heads/master | 2020-12-30T18:37:47.120925 | 2012-05-22T11:45:41 | 2012-05-22T11:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,057 | py | #-*- coding: utf-8 -*-
import urllib
import urllib2
import time
import uuid
import sqlite3
import os
from threading import Thread
from flask import Flask, request, redirect, abort, session, escape, make_response
class WrongSubscriptionID(Exception):
"""
Klasa wyjątku informująca o nieistniejącej subskrypcji.
... | [
"kamdad@tlen.pl"
] | kamdad@tlen.pl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.