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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
915f7fac1fa7ff2c9cefb93c878e95e308abf16e | dbd45f2b256b32b35f22812314ce723836178aeb | /setup.py | 13237d8ad8f8a0b2f23d6b707af42e711f65bca7 | [
"MIT"
] | permissive | oskar456/dzonegit | 85cbbec2d8220a57c1e284b448d62d02f0d1fee7 | 17cbd099de1224e55009834677fbbfa8df59f53d | refs/heads/master | 2021-12-28T09:37:25.803247 | 2021-12-21T21:28:36 | 2021-12-21T21:28:45 | 141,398,916 | 47 | 13 | MIT | 2021-12-21T21:36:08 | 2018-07-18T07:37:20 | Python | UTF-8 | Python | false | false | 1,477 | py | from setuptools import setup
from pathlib import Path
readme = Path(__file__).with_name("README.rst").read_text()
setup(
name="dzonegit",
version="0.15",
description="Git hooks to manage a repository of DNS zones",
long_description=readme,
long_description_content_type="text/x-rst",
url="https... | [
"ondrej@caletka.cz"
] | ondrej@caletka.cz |
d0f9fd666d948269f7c93cf1615cd40a63779a1c | bd5fe73b28c5f4e83e14b07d6a53fcbc6c03a62f | /markdown_parser.py | e9fddd135c97e537783e0baf476f34053fa4f843 | [
"MIT"
] | permissive | qandrew/evernote-analysis | 1b712465f117a111cdaa6d447cc94756c022d3d5 | f85683484b2678733eb93a00b4066bc4acb5fa8b | refs/heads/master | 2021-01-21T14:48:52.596848 | 2017-07-07T01:55:00 | 2017-07-07T01:55:00 | 95,338,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # July 7 2017
# Andrew Xia
# this program will read in a markdown file and be able to do some stuff
# import pandas as pd
import matplotlib.pyplot as plt
import numpy
import nltk #natural language toolkit
import sys
reload(sys)
sys.setdefaultencoding('utf8') #some encoding issues
class MarkdownParser:
def __ini... | [
"axia@mit.edu"
] | axia@mit.edu |
685c1ca6032a2e511df6dd672b224cdad9a943b5 | 84eb1c9d793e674d7777a01b75517c9c5c13a23d | /best_champs.py | 9a4da6040075a7fccf3fe5fbd50528672dfd1d49 | [] | no_license | Barcode534/League-of-Legends-API-stats-analysis | 3e749950e41739deaa98008b149aed7124f504bb | 21866d301723947179576399dbf1623767d69eb3 | refs/heads/master | 2020-05-16T07:11:33.870387 | 2019-05-30T11:44:45 | 2019-05-30T11:44:45 | 182,872,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from convert_functions import num_to_string, string_to_num
import ast
baseline = open("baseline_dataVladimir.txt", "r") # has dicts of appearances, wins and winrates for each champ number
lines = baseline.readlines()
print(lines)
wr = lines[2] #wr dict is this one
wr_dict = ast.literal_eval(wr)
apps_dict =... | [
"noreply@github.com"
] | Barcode534.noreply@github.com |
5d46dce1968984f73b9c337ec989712c1533506a | 6393e3e0455e28d18541f82583385a92850717ca | /ping/accounts/models.py | 94bb2982e167947bff0b7d15fdc3def2940673da | [] | no_license | uahoo/deneme | 66364811f0a35fc95b42ac9f6de9d5fa3c0fc6b0 | 55991a5bdde088006c968b17bfe72620160bd727 | refs/heads/master | 2022-12-05T12:09:24.570144 | 2020-08-18T15:59:06 | 2020-08-18T15:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | from django.db import models
from django.contrib.auth.models import User
"""from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
class MyAccountManager(BaseUserManager):
def create_user(self, email, username, password=None):
if not email:
raise ValueError("Users must have ... | [
"51791764+berkersooy@users.noreply.github.com"
] | 51791764+berkersooy@users.noreply.github.com |
bba715e1af829ea34c66dd42895a46395de5450f | e092d45af03a0ec7b237e74bf3157bb3deb04d47 | /mosquitto/send.py | 57a2c932de937de746e7100bdff6b649c0c3bca0 | [] | no_license | john-Lyrics/John | 9f3de5a65eef8e59b1c36c9cabd38a1e259f326b | aaacb560cb7d853e429b3847e57ae282738bc110 | refs/heads/master | 2020-06-18T08:00:46.021811 | 2019-07-19T16:07:24 | 2019-07-19T16:07:24 | 196,224,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import paho.mqtt.client as mqtt
import time
def on_connect(client, userdata, flags, rc):
if rc == 0:
print("Connected to broker")
global Connected # Use global variable
Connected = True # Signal connection
else:
print("Connection failed")
Connected = False # global ... | [
"johnbledua362@gmail.com"
] | johnbledua362@gmail.com |
8b4a3a1772e9d321a786be6aed034ed3e7dfb22e | 038fc13bbbee68f7112ae7a67b1f18ea75c627dc | /website/migrations/0024_auto_20200321_1728.py | 5eb8e4eff165a903ea4ce5ab39f4dc484e0a4649 | [] | no_license | hassam361/demand-drive | 2065eb8b946296a3733b7b7a5b13e5b3d435012e | d6a61109ec13170edacf4b5f09d3334f978f8a11 | refs/heads/master | 2021-12-02T11:32:00.352734 | 2021-08-25T12:05:35 | 2021-08-25T12:05:35 | 226,549,785 | 0 | 0 | null | 2019-12-07T17:24:33 | 2019-12-07T17:20:10 | PHP | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.0.3 on 2020-03-21 17:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0023_auto_20200321_1727'),
]
operations = [
migrations.AlterField(
model_name='fulfillcontent',
name='f_s... | [
"hassam.asif48@gmail.com"
] | hassam.asif48@gmail.com |
f9a26bc8e4860c9939d3032229a1b7c3bd531d21 | 98eb043d32613815cf098decaa360fae98b913c5 | /mn-v5r.py | 5eb99333e2af8383cb22602e3f728f91bcf82bf7 | [] | no_license | hankhuynh1011/sdn-lfr | 100e38fc29092ab934dd5e5588ba175c8e6b68b1 | 19bb3ca7cf0261d70b748145e582307c14ce386d | refs/heads/master | 2020-05-27T15:35:05.449616 | 2019-05-26T12:57:28 | 2019-05-26T12:57:28 | 188,682,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | # Author: Hank Huynh
# use for the paper: https://ieeexplore.ieee.org/document/7779007
# For simulate the topology.
#
import time, sys
from mininet.node import Host
from mininet.topo import Topo
from mininet.util import quietRun
from mininet.log import error
from mininet.examples.vlanhost import VLANHost
class MyTop... | [
"noreply@github.com"
] | hankhuynh1011.noreply@github.com |
8af719c8ebf36b8c75d00e1e29806f0e699c388a | c3aec72f243f0e2c9da7eed5cab8fcb869bd1f72 | /edabit/Bottle_deposit.py | c5583d18e794394213e1dc80029637ea17b74f27 | [] | no_license | karkyra/Starting_out_with_python3 | 5219c0201abab2aa74e546ed70681ed795a736e0 | 7ad9f5df47e5ee2f679376d2177aa285c9451ec5 | refs/heads/master | 2021-06-23T19:47:36.194433 | 2021-01-19T14:46:51 | 2021-01-19T14:46:51 | 164,492,175 | 0 | 0 | null | 2020-12-17T22:02:31 | 2019-01-07T20:41:16 | Python | UTF-8 | Python | false | false | 325 | py | # Compute the refaund amount for a collection of bottle
LESS_DEPOSIT = 0.10
MORE_DEPOSIT = 0.25
less = int(input("How many containers 1 litre or less? "))
more = int(input("How many containers more than 1 litre? "))
refaund = less * LESS_DEPOSIT + more * MORE_DEPOSIT
print("Your total refound will be $%.2f." %refa... | [
"suin-i@mail.ru"
] | suin-i@mail.ru |
4c90e7ccc1436f439a89264bc78bae5968b2552a | 4793bd9b63a01fc9e69477ef4c10b09c47fb036b | /C7_Flask-DebugToolbar.py | 6fdade85f2367bf2f2eef0fa1c70a8d9151e1081 | [] | no_license | NaoiseGaffney/BookODM | c8187e3ed9eca9a3f62732d8f638b859fa937b63 | d7e2427209d99dcc7b1b321934f144ab52f81299 | refs/heads/master | 2022-12-16T20:55:39.508256 | 2020-09-23T21:14:07 | 2020-09-23T21:14:07 | 298,045,885 | 1 | 0 | null | 2020-09-23T21:14:08 | 2020-09-23T17:31:52 | HTML | UTF-8 | Python | false | false | 4,915 | py | import os
from flask import Flask
import gunicorn
from flask_mongoengine import MongoEngine
import datetime
from flask import Flask, render_template, redirect, url_for, request, flash, session
from dotenv import load_dotenv
from pathlib import Path
env_path = Path(".") / ".env"
load_dotenv(dotenv_path=env_path)
# FDT... | [
"61478687+NaoiseGaffney@users.noreply.github.com"
] | 61478687+NaoiseGaffney@users.noreply.github.com |
d3930fcd5569ff795869cbce29d26dee4a4a1439 | e00052a9c36f72e5b50ab0605fbd47f956f3d44f | /bigml/tests/test_40_local_from_file.py | cf221e7ad822415b9ed180a2f8e9fae2615dcfe1 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | Bakage1016/python | e0e97541732af1c3a22c29b9e1fe982c46a41521 | d844258dbf43d5ae285fee793765aae95866ca58 | refs/heads/master | 2023-02-05T14:28:07.933696 | 2020-12-22T18:57:32 | 2020-12-22T18:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,488 | py | # -*- coding: utf-8 -*-
#
# Copyright 2018-2020 BigML
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"merce@bigml.com"
] | merce@bigml.com |
ea8d7d96c0226cb39788f41eaf019db365d62368 | 1a704da6de6aaf13b4f03daab01c8ed314c7d659 | /votersite/settings.py | d91ef99eaed6553fa7db772223a3c39ebac2c3a8 | [] | no_license | catonalake/dav | 182bb89cd40d5b38be1b3ab2a00603e8a7a2bdc5 | 04170bd81456899bc325cb6b058d41f88751e08d | refs/heads/master | 2021-01-10T13:28:05.751140 | 2019-02-23T05:40:12 | 2019-02-23T05:40:12 | 55,928,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,195 | py | """
Django settings for votersite project.
"""
import os
"""
when getting ready to deploy - review ALLOWED_HOSTS settings:
- http://stackoverflow.com/questions/19875789/django-gives-bad-request-400-when-debug-false
"""
DEBUG = True
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'catonalake.pythonanywhere.com']
ADMINS ... | [
"detectavoter@gmail.com"
] | detectavoter@gmail.com |
1374334266148ee72eb5cafd47aa48f10f54381c | 37866090464fdee23ba78040c354b4b667064e58 | /web_app/user/test.py | 0dfc532d660e86218692aacac725cbda0f4ce107 | [] | no_license | Xuuuuu/test2 | 87e50dcab2969c9d2a883974005b1ae16cdb4f2c | 3ae6617534a2d3295081c81caa9d87218305b49d | refs/heads/master | 2020-12-30T14:34:13.816737 | 2017-05-12T08:26:49 | 2017-05-12T08:26:49 | 91,068,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | a= 0
if a==1:
print(1)
else:
print(0) | [
"1026169337@qq.com"
] | 1026169337@qq.com |
4182bab025ff0c9a6cf3caf024927a9d6edc1a12 | 45f01e252acda91ab3efd8f1f2b6cbf3ab0527b9 | /setup.py | ba5d11c4e79fc15dfefa73c4b9f39d355ecb3c16 | [
"MIT"
] | permissive | kwcooper/flapAI-Bird | 3075e9793b96e838c07a52abf2f8aece78590d77 | 717c1bbe509b5083cea08b9615087722e9e884f2 | refs/heads/master | 2021-10-11T13:43:35.385383 | 2019-01-26T23:42:27 | 2019-01-26T23:42:27 | 113,087,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import os
import sys
from distutils.core import setup
import py2exe
origIsSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
dlls = ("libfreetype-6.dll", "libogg-0.dll", "sdl_ttf.dll")
if os.path.basename(pathname).lower() in dlls:
return 0
return origIsSystemDLL(pathna... | [
"officialkwade@gmail.com"
] | officialkwade@gmail.com |
835223e821c59ceef8863f8fe623ab7eb0747115 | 3386d3f9bef799ff7742844350d31b61836b7ca5 | /models/1_solubility_physical-descriptors/03_flask_deployment_AWS-EC2/2_html/flask_api/app.py | 4844dc197b734988695a274ef34622fadbf8242a | [] | no_license | rnaimehaom/solubility-2 | 091d1a9899bac5743a21b0e6b2ed7630915fc0de | 55330e102b23a2f101dceac04e22992a7cc284e5 | refs/heads/master | 2023-03-20T20:19:07.057952 | 2020-11-28T11:07:16 | 2020-11-28T11:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | # run it with:
# python3 app.py
#import the necessary libraries
import numpy as np
from flask import Flask, request, jsonify, render_template
import pickle
import pandas as pd
from rdkit import Chem
from rdkit.Chem import Descriptors
app = Flask(__name__)
# load the model from disk
loaded_model = p... | [
"bogdan.tarus@gmail.com"
] | bogdan.tarus@gmail.com |
1bc588a37778df955ee49ad2e48e96bf755d3a5a | ec70db9faba0eb9eeb5c6dc93b5ae9b3e4d3d11a | /AutomateTheBoringStuff/Ch-12-SpreadsheetToText.py | 4dc7a00b402456cef02449206c29d8dfaa95c8e2 | [] | no_license | jain-aayush/AutomateTheBoringStuff | 12150ebe577d70921a14e47458e21ea6ed1c160b | fa1523ffeceee126aaa8026d102effa13079a414 | refs/heads/master | 2020-03-27T13:01:08.201344 | 2018-11-03T17:28:38 | 2018-11-03T17:28:38 | 146,584,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | """
Write a program that performs the tasks of the previous program in reverse order:
The program should open a spreadsheet and write the cells of column A into one text file,
the cells of column B into another text file, and so on.
"""
import openpyxl
spreadsheet = input("Enter the name of the spreadsheet you want t... | [
"patni.aayush1998@gmail.com"
] | patni.aayush1998@gmail.com |
3afd9866a37000da97a5bae4e35cf4934ba1a2ad | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/qichamao_cmpInfo_20210203092107.py | f91c112ba48f192dce00f481f0f2d683966be121 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,230 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : qichamao_cmpInfo.py
@Time : 2021/02/03 09:17:24
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
import requests
from bs4 import BeautifulSoup
import time
import cs... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
2c00845769b93f3283d0fc495c7635a9f4aa901e | c55d7180e2000e7d216a4fd08bf5b9b6ae62d1d0 | /social/tests/backends/test_appdotnet.py | de64ec9283c28a72fd4eb6ebb2e598540d543b14 | [
"BSD-3-Clause",
"Python-2.0",
"BSD-2-Clause"
] | permissive | berg/python-social-auth | 5eeb28619144628550b5dfc74d1174ec173b49a3 | af21b60930a3985ed2d166ceb2d528f20b56932b | refs/heads/master | 2021-01-18T07:36:35.445054 | 2014-03-19T00:20:07 | 2014-03-19T00:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,573 | py | import json
from social.tests.backends.oauth import OAuth2Test
class AppDotNetOAuth2Test(OAuth2Test):
backend_path = 'social.backends.appdotnet.AppDotNetOAuth2'
user_data_url = 'https://alpha-api.app.net/stream/0/token'
expected_username = 'testuser'
access_token_body = json.dumps({
'access_t... | [
"bryan@mixedmedialabs.com"
] | bryan@mixedmedialabs.com |
b8aafb5b60e806817d8bb6084aae738c01bfca0b | 22b1ca0d3e93c10356a95aa4377a798e3615bcc3 | /djoauth/djoauth/urls.py | 7566acb7c068796cad8ba9fafab4d105db12ece4 | [] | no_license | xtornasol512/djoauth | b99142640356d454a738a5047a315449d3a5315a | dede596ecc0fee3010f331b01975b5cb51c122dd | refs/heads/master | 2020-04-09T14:43:15.017259 | 2018-12-04T20:37:31 | 2018-12-04T20:37:31 | 160,405,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """djoauth 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')
Class-ba... | [
"xtornasol512@gmail.com"
] | xtornasol512@gmail.com |
e61138fdabff455fc399bfe8f5afb0dceb0e32ce | 71811040518c98269282d94ed298d97060a3a769 | /problem29.py | f56796f54bda88a5f0f347690a2588b740b013d9 | [] | no_license | beesknees18/dailycodingproblems | d823bf02615b85bd383a63e6b9ec7c0f5e9dc0a3 | a115b1d3a37cf686e6510842e05207d7d2b79aa2 | refs/heads/master | 2021-09-12T15:33:50.081497 | 2018-04-18T03:53:36 | 2018-04-18T03:53:36 | 126,124,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | # This problem was asked by Amazon.
# Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as a single count and character. For example, the string "AAAABBBCCDAA" would be encoded as "4A3B2C1D2A".
# Implement run-length encoding and decodin... | [
"hariharan.b18@gmail.com"
] | hariharan.b18@gmail.com |
b4ccb64fb9f5a2c0c23bf3b386d43e9fbc4568bd | 01a085bb89225d0390316036a915b2b8d7403219 | /bin/dynamodb_dump | 8550b8bc85167f6177c7a589e20cdfa1b46810ab | [] | no_license | vipinsachdeva/elasticluster_full | 0199ee00e716f285173c8974fdf9570ab5d43470 | 71160196682a8d18a9547d5d28e8a885b067924d | refs/heads/master | 2021-05-15T11:35:44.706476 | 2017-10-25T22:37:37 | 2017-10-25T22:37:37 | 108,333,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | #!/home/vsachde/elasticluster/bin/python
import argparse
import errno
import os
import boto
from boto.compat import json
from boto.compat import six
DESCRIPTION = """Dump the contents of one or more DynamoDB tables to the local filesystem.
Each table is dumped into two files:
- {table_name}.metadata stores the t... | [
"vipin@kryptonite"
] | vipin@kryptonite | |
d90e23db3bd5e848709470467b7d59d38716a555 | 832a6c38ddcb05d1b32ac0bfc3334a8a05c73111 | /smsapp/urls.py | 0c3d4341baf867653eb33cfa16162b0d1cc657f3 | [] | no_license | Archanavigeesh/newapp | 619f2c8362fc5ee4f380ecba15cc323210fe99c3 | 90822006d2e242518fb9714583ea1e15e56aa0f0 | refs/heads/master | 2023-08-21T04:39:03.651136 | 2021-10-19T10:50:23 | 2021-10-19T10:50:23 | 334,850,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('', views.index,name='index'),
path('new',views.new,name='new'),
path('newlogin',views.fnnewlogin,name='newlogin'),
path('newhome',views.fnnewhome,name='newhome'),
path('grid',views.grid,name='grid'),
path('home',view... | [
"archanavigeesh@gmail.com"
] | archanavigeesh@gmail.com |
db69009c6d605dc22d7667b5a809f8a804e75ad6 | 7c26657018dbd179f0f5c6ce3f719894249017ff | /Macros/VeliMacros/Select all LED GREEN and Blue channels.py | dc714a931faf011207fcf34d8f85a3f7b6ec002f | [] | no_license | dago/dmxis-preset-generator | 3e3a83cc71d8c16d51042f239b91720993f469a4 | 812bbc0a97321fac26d30e1e8b0a4d7181088ac5 | refs/heads/master | 2020-04-15T05:33:00.835476 | 2016-03-11T02:59:16 | 2016-03-11T02:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #===============================================================
# DMXIS Macro (c) 2010 db audioware limited
#===============================================================
found=False
for ch in range(1,511):
SelectCh(ch, 0)
for ch in range(16,48):
nm = GetChName(ch).lower()
if nm in ["g", "b"]:
... | [
"jay@hdmessaging.com"
] | jay@hdmessaging.com |
823128232096e5a64b6c166ca62a3b471935bf31 | 4d01bd8003ac64b2a688db12108b472387c999c4 | /Q_Q.py | a27e43ccf178755bb31aa68761a4fffd6c588111 | [] | no_license | BlackHat-S/PWN | 2ef6aa7db3baafe009ac31631bdaffaf043f3b85 | cde1f9ee3258aa56c2634995d5baec14b500a399 | refs/heads/master | 2021-01-07T00:44:20.208899 | 2020-03-21T04:16:14 | 2020-03-21T04:29:47 | 241,529,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from pwn import *
#p=process('./Q_Q')
p=remote('121.40.92.129',28022)
#gdb.attach(p)
s2='you\x11need"pwntools!3'
#s2=p32(0x11756F79)
#s2=p32(0x6e11756f)
p.sendline(s2)
payload='a'*19+p32(0x8181B1B)
p.sendline(payload)
p.interactive()
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
626be4db5c0fe451d49f061b73c4ded0c23674f6 | 9ef785d0a412f8f6fdad61573436399e0646ee87 | /blog_backup/models.py | 638d55dc4f59822cdfd81b31eef99a624458f193 | [] | no_license | samueljr/my-first-blog | 6f136768f1ebb986ed334f9d901c2f006a5475b9 | c0e6f8626b3ce049d3b1400826d0001c32e4c33d | refs/heads/master | 2016-09-14T01:18:41.822559 | 2016-06-01T00:10:59 | 2016-06-01T00:10:59 | 59,263,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
name = models.TextField(default="")
party = models.CharField(max_length=1)
state_code = models.CharField(max_length=2)
np_score = models.CharField(max_length=7)
id =... | [
"samueljr@princeton.edu"
] | samueljr@princeton.edu |
c08a761826a0a22a919f2284ff1fb2075e1e2c8b | 974fe767ebe0745667a1e9240d43f963f342e02b | /second_module.py | 5ae1e030f550c72f7c05a3df9a63e3041852cda8 | [] | no_license | pachai22/Thoughtworks-Learning | 7cd58cbd46788c36fa5268b97fbfae7dcc9cbd08 | c2aa32b94a64139c58eca2870459386919572345 | refs/heads/master | 2022-12-08T06:10:07.848843 | 2020-09-01T11:14:36 | 2020-09-01T11:14:36 | 267,534,401 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | import first_module
print(first_module.my_name("Pachai"))
print(first_module.var(10,20))
| [
"pachai4477@gmail.com"
] | pachai4477@gmail.com |
3b2fd0e045240de508f3065bee83649c42f71948 | fd2601e0d47a8644c0e17a28b510466a297a0ac5 | /services/redispublishservices.py | 1da8b1db61a1de71241db12a2a73dc859e2f0fdc | [] | no_license | KrishnanSriram/RedisPythonMicroservice | fce8426823eb2a1714dc7bb51fbcecf23bb122eb | b11b67cd2bc79ab36ee417083d57c3132a76713f | refs/heads/master | 2023-03-22T10:23:23.608318 | 2021-03-15T13:53:54 | 2021-03-15T13:53:54 | 347,753,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # This class will take care of all Redis publish operations
# This will take PDF2ImageRedisCommand & SettingsService as parameters
class RedisPublishService:
pass | [
"krishnan.sriram@hotmail.com"
] | krishnan.sriram@hotmail.com |
15c3e065ccc64d3d3f1dec17d35600524114924f | 0aa8489dc5fd2c6488cddb68046412b8f93c150c | /comment_section/comments/serializers.py | 8683f9e6597b10f33c0e6f581c666048595af521 | [] | no_license | Daleyar/Youtube-Clone-API | b14608365eddb00528e1e4c4c717d9ca96a35899 | a50d4b13f6b77b1dbe1f92162734f08af887733b | refs/heads/main | 2023-08-05T06:41:01.353484 | 2021-09-17T19:23:48 | 2021-09-17T19:23:48 | 406,847,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from rest_framework import serializers
from .models import Comment
class CommentSerializer(serializers.ModelSerializer):
class Meta:
model = Comment
fields = ['id', 'video_id', 'like', 'dislike', 'comment']
| [
"ali.daley72@gmail.com"
] | ali.daley72@gmail.com |
1801f478f73579ae23ce3d61b2ed1d64b5c7e40f | 1cc8604dff9713d3879599f1876a6ea313ebe1fb | /pysc2/lib/stopwatch.py | 6c4202c859716afb77ef1155c82b1955ffcfd8d1 | [
"Apache-2.0"
] | permissive | SoyGema/pysc2 | c363ec768ebf94e7b0fa08e136b36b7432ae1b44 | e5de62023ec45ac212016b5404dd73272109d9d4 | refs/heads/master | 2022-02-08T21:41:46.530129 | 2022-01-29T13:11:15 | 2022-01-29T13:11:15 | 143,897,552 | 1 | 0 | Apache-2.0 | 2018-08-07T16:06:23 | 2018-08-07T16:06:22 | null | UTF-8 | Python | false | false | 7,935 | py | # Copyright 2017 Google Inc. 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 applicable law or ... | [
"tewalds@google.com"
] | tewalds@google.com |
6a67160c7fa7f2f3822b409582df472a396991ab | f0551d822fa62f558785b9944c58f29067a6cd81 | /Parameters_set_1.py | ff5d43db042116fc6fbfebddf5a30136192ff411 | [] | no_license | Foeni91/NadirEchoSuppressio | 9e8281be78feeb50081fb4d98c036cb07934f123 | ecb410e21f16a1fd92934fbaa6be397d44a803f4 | refs/heads/master | 2023-02-08T21:23:21.924698 | 2020-12-29T23:24:10 | 2020-12-29T23:24:10 | 325,405,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import numpy as np
import math
from scipy.io.idl import readsav
class Parameters:
def __init__(self):
# %%%%%%%%%%%%% SCENE INPUTS %%%%%%%%%%%%%
# Signal scene:
# 1 -> Lake
# 2 -> City
# 3 -> Forest
# 4 -> Town
self.signal = 1
# %%%%%%%%%... | [
"fabian_glatz@web.de"
] | fabian_glatz@web.de |
a965074e01b495959b05eef1d6d79bf7788c6567 | 0d831c803692a6309c31c4d90b1be1636edbcdac | /beocat_codes/python_scripts/affinis_without_transfer_learning.py | 75bf6c83d50f1db0c1eeb6d19d166b81f644d9fe | [] | no_license | divyavani450/bumble_bees_detecttion | 018504847d60cce4342d9870e4ab529b97fb0e48 | f8061fd3ff35874e05cd5fd23c35675a5df5cf4d | refs/heads/main | 2023-08-02T20:03:11.945484 | 2021-09-18T23:40:10 | 2021-09-18T23:40:10 | 408,216,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,793 | py | # -*- coding: utf-8 -*-
"""dcgan64-beemachin3v3.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1GcGDF4sukJsaDUUjRWm7YkhOGu5VeBJS
"""
"""### Here, we train the discriminator on samples from normal frames ###"""
#from google.colab import driv... | [
"demolaoau@yahoo.com"
] | demolaoau@yahoo.com |
afd08dfdb5fdaa16718ddf70c0b0f61f1921f557 | 18b6da5a52df8cf3fc57fb38bb7a304183a921f2 | /cogniable_application/cogniable_application/wsgi.py | 48e86a0dcb777757c0b3d5a4c57e9f6cd693f453 | [] | no_license | bluesky49/cogniableApp | 4d077c64ada49bd3a9261d746b059a75021bbc7c | ef9400969a5792d1df49c1dbe86d41e0f4abaea5 | refs/heads/master | 2022-12-10T19:33:53.336419 | 2020-07-22T16:29:47 | 2020-07-22T16:29:47 | 294,920,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for cogniable_application project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"yaghdevpaliwal@gmail.com"
] | yaghdevpaliwal@gmail.com |
bab4d9f341b3b7a0ad4fc8ed7b39028c5185ccc1 | 1f82ec60619d333b14ab1f17cac7086d6905480e | /uriref/__main__.py | 4ceed3ee40150ee1dd7691e42aa22025f36fd828 | [] | no_license | dotmpe/uriref | ce29812c86ede3c01322ab5b838269e5eb15dcd6 | 56c37d68f8544de130bfdb0c1df6ab2c2717daa1 | refs/heads/master | 2021-12-30T11:54:19.669118 | 2021-12-23T17:49:13 | 2021-12-23T17:49:13 | 1,965,261 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from . import *
### Testing
def bug1():
"http://host"
m = absoluteURI.match("my://host/path")
gd = m.groupdict()
# problem 1, what should the net path be?
assert gd['net_path'] == '/path'
# my guess:
#assert gd['net_path'] == '//host/path', gd
# problem 2, this be a hostname:
m = absoluteURI.match("my://ne... | [
"dev@dotmpe.com"
] | dev@dotmpe.com |
d15374227af9925fe01c4ae57e4de03233a34919 | 86a680dcb7f1f0f93da15f9fc45a6362b012360d | /build/lib/ocr_image/__Init__.py | 512318fee589da69d550cf22a38a0ce8e7f6810e | [] | no_license | SANGJUN12-KIM/NIA_image2table | d156fd84b4631a3e549e60d845b26e826ad226d8 | 44eccb7f8da03ff04f87affe86d29f6262e65881 | refs/heads/master | 2023-06-30T21:07:32.333760 | 2021-08-05T06:35:51 | 2021-08-05T06:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | import math
import os
import sys
import cv2
import numpy as np
import easyocr
def ocr_images(image_file, reader):
"""
OCR the image and output the text to a file with an extension that is ready
to be used in Tesseract training (.gt.txt).
Tries to crop the image so that only the relevant text gets pas... | [
"mame-mame@kakao.com"
] | mame-mame@kakao.com |
39763dada35168638ae5e1e8b7ec0faa6847b5ba | 0775a2175ddc9f41b4f7637a388623ca9ef15259 | /chap8/16.子数组的最大累加和问题/16_maxSubArray.py | fb63c569d4ab173bbb1254567316ee40c6b6c431 | [] | no_license | huang-jingwei/Coding-Interview-Guide | 6839876457b3cf01a08c5623463e66fe9efa7416 | a42f45213c94d529f69a61f0bda92eddfe5bdfea | refs/heads/master | 2023-04-16T20:05:40.615475 | 2021-05-05T03:32:25 | 2021-05-05T03:32:25 | 286,343,194 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
if len(nums) == 1: # 只有一个元素
return nums[0]
maxSubArraySum = [0] * len(nums)
for index in range(len(maxSubArraySum)):
if index == 0:
maxSubArraySum[index] = nums[index]
eli... | [
"2194454302@qq.com"
] | 2194454302@qq.com |
94906fee4d91ee0c65cd48ef33dcbd1f226e1ae7 | a6479bbbf4d65278fe35abc46c094a595cca74e5 | /choosinggame.py | 456c1f532f752fae5814580fe39efaf0a097a8ca | [
"MIT"
] | permissive | yonatank21-meet/meet2019y1lab5 | 68dc5a854656da8b1cac89d451b8c34ed6859b77 | 148320de4de3ba80270fcb1f107d146f58c3dcbc | refs/heads/master | 2020-06-21T01:54:41.387096 | 2019-07-25T11:29:46 | 2019-07-25T11:29:46 | 197,316,683 | 0 | 0 | null | 2019-07-17T04:44:53 | 2019-07-17T04:44:53 | null | UTF-8 | Python | false | false | 610 | py | print("Hey there and welcome to the game!")
name = input("How would you like to name your charapter?")
print("nice to meet you " + name +", I hope you survive!")
print("Lets begin!")
#question one:
print("Your on your way to work and you see a sick old lady sitting on the side of the road, what do you do?")
#answers
pr... | [
"yonatank21@meet.mit.edu"
] | yonatank21@meet.mit.edu |
2bb41b97fabc89ae81151489395fb337486608cd | ef03fc373249e4c4b9e58c2587b3ae9cbdca3cea | /venv/bin/easy_install-3.5 | 82f76550ac58e0815d86976db1dc59a0830a09cd | [] | no_license | tewinsid/ReptileSystem | c7927d5a35db4459c69bc85c35a011905326b126 | 897e7daf08463d1395f8d7aebc975b8d8955d779 | refs/heads/master | 2020-04-09T05:19:21.407299 | 2019-01-08T15:02:20 | 2019-01-08T15:02:20 | 160,059,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | 5 | #!/home/tewinsid/PycharmProjects/ReptileSystem/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"vipwanggang@outlook.com"
] | vipwanggang@outlook.com |
2395a9a09b13c29f37cde235713f8f3c21ed0b97 | 14ce468074dff4b4aa4a8cc92f3ac1550fb4f038 | /blogs/migrations/0006_auto_20200608_1235.py | 76edc6ef5f0c4db05bd324bc7369d9d9ce5d61b6 | [] | no_license | zybk23/Develop-blog-Python-Django | 67944fe59d82b0c769bd4da7fcd4fb44e5d350ed | 301501eca460ede7af0843399968b10bff9fe61f | refs/heads/master | 2022-10-11T02:23:35.768340 | 2020-06-09T14:37:07 | 2020-06-09T14:37:07 | 271,025,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # Generated by Django 2.2 on 2020-06-08 09:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogs', '0005_post_category'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
fie... | [
"tahazeybek5@gmail.com"
] | tahazeybek5@gmail.com |
2359b73367e408f711677161745663919226af11 | 97a235b5501a981f3715903d6dd9e16e293ebdac | /Imagedatasets/FID_Measure_single.py | e8834aed735297dcfcf68c6e69a60cefbff260ab | [] | no_license | JosephineRabbit/Relation-GAN | 19fc8608c0cce4dde34710092e4ab4d5ba06728b | 563d80107a76029db3495dda1f52d4c7de9686f3 | refs/heads/master | 2021-01-14T16:36:16.409211 | 2020-07-04T15:02:43 | 2020-07-04T15:02:43 | 242,682,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,522 | py | # -*- coding: utf-8 -*-
from options.test_options import TestOptions
from data import CreateDataLoader
from models import create_model
import os
import torch
import numpy as np
from inception import InceptionV3,_compute_statistics_of_path,calculate_frechet_distance,adaptive_avg_pool2d
def text_save(filename, data):
... | [
"429774648@qq.com"
] | 429774648@qq.com |
4cf50892a6da71cd428aab359b8f3dc06f606392 | 80c9b1baa262883d69f9f155b662142ec5b1888b | /bin/buddy/tests/unit_tests/test_validation_classes.py | 96b87d468b86e85be952541f3a60e68f35d78728 | [] | no_license | russHyde/bfx_201909 | b054eaf72073b29fc3d4bd2f71f291445cb6c486 | 58923e9eb3e83e2c64d647a1647a71f0d5212b33 | refs/heads/master | 2020-07-04T16:10:44.143091 | 2019-10-01T13:59:54 | 2019-10-01T13:59:54 | 202,333,892 | 3 | 0 | null | 2019-10-01T13:53:45 | 2019-08-14T11:07:37 | Python | UTF-8 | Python | false | false | 2,462 | py | import buddy.validate_file_contents
from buddy.validation_classes import Md5sumValidator
# user
# .. can ensure the md5sum for a file matches a given value
#
class TestMd5sumValidatorConstruction(object):
def test_can_construct_md5sum_validator(self):
validator = Md5sumValidator(
test_name="... | [
"noreply@github.com"
] | russHyde.noreply@github.com |
57a5905a90e26c9e8169ceaa34665630789421d9 | e4d4e1324514bc9708dca78839038565bc27aa1b | /manage.py | 79162c0a7dddf201464fc4d4cb2fcdcdf76761dd | [] | no_license | NeilujD/theodo_test | 9be020829ec157d5c962b8cd2b7b09ec5bea4584 | 8e27c94c3a0d4ddafc6106a832a663e753455859 | refs/heads/master | 2021-09-24T19:16:52.600844 | 2020-02-29T10:18:44 | 2020-02-29T10:18:44 | 243,732,010 | 0 | 0 | null | 2021-09-22T18:39:38 | 2020-02-28T10:04:41 | Python | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'theodo_test.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"julien.collard14@gmail.com"
] | julien.collard14@gmail.com |
00ef30496fb8281677180c17a9e7e258de62ec10 | 30edfb786863e502403c8f5690d82ffe3a7fc8a9 | /UserInterface/Variables.py | 6c76b88e3ffd8f36f265c8930ac4d10a508bface | [] | no_license | Vich3rlys14/chessEngine | c9be8550343eb66966474e507cc3c8ac44a5296b | a545086d418006ccb12b6fbc806bd2b1d7bfe86b | refs/heads/master | 2021-06-26T11:55:08.544700 | 2021-05-01T17:03:19 | 2021-05-01T17:03:19 | 222,399,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | import pygame
case_size = 50#px
# Colors
black = 0x333333
white = 0xffffff
covercolor = 0xfafa00
#Pieces
wpawn = pygame.image.load("./Sprites/whitePawn.png")
bpawn = pygame.image.load("./Sprites/blackPawn.png")
wKing = pygame.image.load("./Sprites/whiteKing.png")
bKing = pygame.image.load("./Sprites/blackKing.png")
w... | [
"vich3rlys@gmail.com"
] | vich3rlys@gmail.com |
070a1e9064fa7ea3e71735d8fd08affab920ce2f | e4b036b011032ddc0d2f696206588824e8f100c5 | /api/province/migrations/0011_auto_20200215_2207.py | fd23ce41a8d8922cec937429c21e6aa93f877b4f | [] | no_license | zifeng175mo/Minipro_Backend | 36193a0082ee1b0e8cc0f2ddd4bd9efd354b16ff | 9025e958c89e69e14f01f5652ca532b0503fffd0 | refs/heads/master | 2020-09-15T23:59:13.491651 | 2020-09-14T02:43:35 | 2020-09-14T02:43:35 | 223,590,377 | 0 | 0 | null | 2019-11-29T08:48:27 | 2019-11-23T13:10:27 | Python | UTF-8 | Python | false | false | 1,672 | py | # Generated by Django 2.2.7 on 2020-02-15 14:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('province', '0010_auto_20191211_1643'),
]
operations = [
migrations.RemoveField(
model_name='pro... | [
"378663429@qq.com"
] | 378663429@qq.com |
35abada8bdd33271954c4889d29820e82575a201 | d9864e8273b11dd0155cf2f0b4b14344015f19cf | /chapter3_nn/test_filter.py | 052fdc8277ee8f611afe638ab09a102f92cbe7dc | [] | no_license | nihaizai/PyTorch | 11130c71bc6bf6f8b555547eb1bd240c93db2673 | a8661ca19fbf5bd9d1ac05d786aab9d3faba2068 | refs/heads/master | 2020-03-26T13:38:51.994578 | 2018-11-15T06:18:48 | 2018-11-15T06:18:48 | 144,545,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 16 17:31:54 2018
@author: mmg
#lambda filter map reduce
"""
#print [(lambda x : x*x - 4)(x) for x in range(4)]
#
#print (lambda x:x*x - 4)(3)
#
#g = lambda x: x*x-4
#for i in range(10):
# print g(i)
#print filter(lambda x:x*x-4,range(10))
#print ma... | [
"noreply@github.com"
] | nihaizai.noreply@github.com |
ea06394e335fad81afcb39da877df9cf15fbc2d3 | bc441bb06b8948288f110af63feda4e798f30225 | /translate_sdk/model/ops_automation/job_tasks_pb2.py | c0f92286f95c90cdfcca776560baf3bce86aceeb | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,518 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: job_tasks.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | [
"service@easyops.cn"
] | service@easyops.cn |
f7c079b554bdb7b64950930a5c1ae88ac595d901 | 26c09ac04542a3cc2809ade8e9ceefc60e67b797 | /Method2/test.py | e7ffe0dba114b7293043290e28548adf973d2c27 | [] | no_license | Saketspradhan/Image-caption-generation-using-attention-model | 104f09bb054d7c8543d54ff1787eef72d49d1210 | 6fcc4ab01d8ee039f7e3932273e9900ccaa5a1ad | refs/heads/master | 2023-03-15T21:32:55.342165 | 2020-09-18T05:38:22 | 2020-09-18T05:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import pickle
from keras.applications.vgg16 import VGG16
from keras.models import load_model
model=load_model('app\\vgg16_weights_tf_dim_ordering_tf_kernels.h5')
# model = VGG16() | [
"bhaseen.varun@gmail.com"
] | bhaseen.varun@gmail.com |
45e65e737977b0c9da8233100bab548fff1c956c | e4c07358ee0b461272a66f359892486bc5b622bb | /factbookPages.py | 01eca2521185f08b79b697750bb8553bc2a0978c | [] | no_license | Romyellenbogen/finalproject | cf6c5ec92ef503834dea09d1862a59a83a50574f | e02efda866f9ef745ab7091f394af74b14828882 | refs/heads/master | 2020-05-16T21:27:14.402587 | 2019-04-25T17:11:51 | 2019-04-25T17:11:51 | 183,306,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import time
import csv
html = urlopen('https://www.cia.gov/library/publications/the-world-factbook/docs/profileguide.html')
bsObj = BeautifulSoup(html, "html.parser")
f = open('factbookPages.txt', 'w')
fName = open('factbookNames.txt', 'w')
links = bsO... | [
"43319351+Romyellenbogen@users.noreply.github.com"
] | 43319351+Romyellenbogen@users.noreply.github.com |
4022b440f893cb8eaf445656b659588640bbe5fb | 083c0bf626240d00928307ea379911f23b3018e4 | /govtjobs/venv/bin/jupyter-nbextension | fba54f73ec268c834de785ddea3a696019d6f01f | [] | no_license | Minali24/govtjobs | 731931cd9b759ca6e4b7aa92a79e814cb380b3e9 | 8c3d04381637e75064c9831f3265587cb44d025d | refs/heads/master | 2020-04-23T15:07:02.596416 | 2019-02-19T12:23:22 | 2019-02-19T12:23:22 | 171,253,707 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/collab/Documents/govtjobs/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from notebook.nbextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"urmisaha.88@gmail.com"
] | urmisaha.88@gmail.com | |
3da0dd89f52f37d5240c661c4e7a1aa151811436 | 6ed541d5ae2203d2b2fe68863568e5dfce45f9c1 | /Bubble Sort_20200320.py | 281adec6e9b3be9f3144d2523d7cfeaec1b65601 | [] | no_license | max2004boy/Hackerrank-Problem-Solving | c79763f2da7865ab8972f126fd02b23d302a101e | 4e9a4c562e79bb177f1c0fb72a14da48c0a2a434 | refs/heads/master | 2022-11-05T04:39:33.765297 | 2020-06-18T03:48:03 | 2020-06-18T03:48:03 | 257,767,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 20 18:47:32 2020
@author: max20
"""
n = int(input().strip())
a = list(map(int, input().strip().split(' ')))
# Write Your Code Here
swap_counter = 0
for i in range(len(a)):
temp_counter = 0
for j in range(len(a)-1):
if a[j]>a[j+1]:
... | [
"noreply@github.com"
] | max2004boy.noreply@github.com |
ea8c4b27fd517c9af906d3e872bdb853046b1c47 | 7a2d80bb2f8a041832c06acb8806b43f05ca5751 | /main/lessons/lesson_13/lesson_13.py | eaf38097ef865f11cb2cd623f4c15bb0fd223b9c | [] | no_license | EvgeniiMorozov/studying_Python | d18ec7e0e6f34b6b609bc1bdf182324d28c10cf7 | 3e53babc2b283f33478c99243f75a7c8d8c8f4d1 | refs/heads/master | 2023-08-11T01:13:38.674826 | 2021-09-17T04:23:52 | 2021-09-17T04:23:52 | 332,633,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # Работа с GIT.
def sum_func(a, b):
return a + b
def main():
pass
if __name__ == '__main__':
main()
| [
"emorozov1101@gmail.com"
] | emorozov1101@gmail.com |
89b4b28c46c9bc5e322d3087373c235b7802e3fc | 6408fc66b832c6f4917a204d2ae8ec061833c732 | /server/classes/hc_sr04.py | 9a6072451a03af394243b72a7431bf21d8853185 | [] | no_license | FilipBruehl/camera_slider | 323a30536dd8a64d6194f21f4e29e84526ead91f | 890be086ee5d2b24a00932baec1ee15f694df5d8 | refs/heads/master | 2020-09-13T23:38:13.217089 | 2020-01-27T18:10:30 | 2020-01-27T18:10:30 | 222,940,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,115 | py | import time
from RPi import GPIO
class HcSr04:
"""
Klasse HcSr04 für die Kommunikation mit einem Ultraschallsensor
"""
def __init__(self, trigger_pin: int, echo_pin: int):
"""
Konstruktor der Klasse HcSr04.
Stellt die GPIO-Pins für die Verwendung des Ultraschallsensors ein.
... | [
"filip.h.bruehl@student.fh-kiel.de"
] | filip.h.bruehl@student.fh-kiel.de |
eb1e6ec6f9fd273c302a1013e5b04142e70669fd | e40e4247341de99f62fb577910c3699eb5175c37 | /Movies/drop_table.py | 1c05726ebf9815eb87d5a304a09ec7063d9a9d65 | [] | no_license | Life-Turner/Douban-Fantagsy | f7028854d814f0707d03495e60643a2c65c7ac9a | 5a916b9f0888d1f6f98231220019d797cabbd615 | refs/heads/master | 2020-03-30T00:11:59.968105 | 2018-11-23T01:17:06 | 2018-11-23T01:17:06 | 150,510,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | #-*- coding: UTF-8 -*-
import mysql.connector
def drop_table(my_host, user_name, my_password, db_name, drop_table):
conn = mysql.connector.connect(host = my_host,
user = user_name,
password = my_password,
database = db_name,
)
#-*- coding: UTF-8 -*-
cur = conn.cursor()
cur.execute("USE " + d... | [
"noreply@github.com"
] | Life-Turner.noreply@github.com |
60add865f956ed97a1c0a414612777706b456e42 | 9a7af7eeb170309fbe19693ce52082bb165bb912 | /Apps-track/homeproject/homeproject/urls.py | 9a198630b1e7af4ef5dee0d36c8fcc4c2577d332 | [] | no_license | SriRoopaK/RnDSummer2019 | c2574cab9eb1ac08970ea0d07946f817251756be | 1f70dfac8e15ddf108fc69f26c52bf7012db1609 | refs/heads/master | 2020-06-10T19:27:23.224096 | 2019-06-25T15:01:29 | 2019-06-25T15:01:29 | 193,721,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | """homeproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"noreply@github.com"
] | SriRoopaK.noreply@github.com |
9bbf367d553645ebc901e018c407d6c607954db4 | ca0dc5d0678ba8c993f1108170bbaf63178ad3cc | /ex11.py | 928cbfecc52f44049caa56c8675557118220c45e | [] | no_license | coco-0610/Py104 | 7c4d127f669252937b5deee71f07761a2ffe964b | f4990bbbda51490132c555603139cc48424bae22 | refs/heads/master | 2020-12-30T10:11:59.469885 | 2017-08-06T12:38:04 | 2017-08-06T12:38:04 | 99,237,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | print "How old are you?",
age = raw_input()
print "How tall are you?",
height = raw_input()
print "How much do you weight?",
weight = raw_input()
print "So, you're %r old, %r tall and %r heavy." %(age, height, weight)
| [
"noreply@github.com"
] | coco-0610.noreply@github.com |
952a9418739af6d153ce34c7d3b7571f7bb0e5f6 | 8a3c5ec4c21edaa6d1e2acf6225874dc96468ec5 | /timingperformance.py | f990ff731ac03662ee07797e805bf035f4494621 | [] | no_license | phonchi/SCA-Algorithms | c29f79cd9a08482a8457e66bd8c589702f3381cb | cd765a3aef606eb4b42a23c117417e83d493d960 | refs/heads/master | 2021-01-22T17:29:15.735607 | 2015-07-21T07:07:59 | 2015-07-21T07:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,351 | py | #! /usr/bin/python
import numpy as np
import Success
import SNR
import DES_DPA
import DES_CPA
import LoadTraces
import des_block
import RDM
import PI
from matplotlib.pyplot import *
import sys
import pickle
from timer import Timer
if __name__ == "__main__":
# Fill in the appropriate tracefile name, Correct DES K... | [
"alvincai@gmail.com"
] | alvincai@gmail.com |
8ea422ab7d7637a015b6fe31a0e25db3f3cae371 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_75/561.py | 36d9557ad1663cf9120d0f6c51352667ae7b8581 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import sys
import re
input = sys.stdin
T=int(input.readline())
for i in xrange(1,T+1):
data = input.readline()
data = data.split()
C = int(data[0])
cs = data[1:1+C]
CS = {}
for s in cs:
CS["%s%s" % (s[0], s[1])] = s[2]
CS["%s%s" % (s[1], s[0])] = s[2]
D = int(data[1+C])
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f2372d3b47e6c0f72d686ef9581739eb3178bdb7 | a56844e7a4197d7da771921a8df5710386c29e7c | /logger.py | bc94747217c06f8c7a7885f59d993360bfd88b3d | [] | no_license | H1N2/auto_lai_ci_gou | a810966db248ce9505d1a477886bf1ab6e860d42 | 8b07a018155e8b7d0ee6a7515503899c05a53035 | refs/heads/master | 2020-03-17T00:09:48.680709 | 2018-05-11T10:45:31 | 2018-05-11T10:45:31 | 131,787,747 | 1 | 0 | null | 2018-05-02T02:31:09 | 2018-05-02T02:31:09 | null | UTF-8 | Python | false | false | 232 | py | from datetime import datetime
import time
def log(msg):
t = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print('>> {0}: {1}'.format(t, msg))
if __name__ == '__main__':
log('log A')
time.sleep(2)
log('log B')
| [
"xausee@gmail.com"
] | xausee@gmail.com |
5c58545a203686272ba3167fe7ce718e7dfd97f5 | 48bf785aee951fcb8e391578a7228cd2b07b5f0d | /Python/DWT/make_watermark.py | a3a0a630d27e94eee2107278f78c2ff04e757955 | [] | no_license | fujimuram/watermarksc | ef2b07ce7442d7d696af2f5d1d6cc84e49ff53bd | b8e9e89bfb3212c109e7ae250a64b7cdea42e037 | refs/heads/master | 2022-03-10T05:01:51.775992 | 2022-02-24T05:12:34 | 2022-02-24T05:12:34 | 235,070,258 | 0 | 2 | null | 2021-07-16T12:30:52 | 2020-01-20T10:00:44 | MATLAB | UTF-8 | Python | false | false | 1,411 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 21 16:53:54 2022
@author: matsunaga
"""
import numpy as np
import cv2
import matplotlib.pyplot as plt
import os
from my_packege import tool
savepath = 'Watermark\\overlap'
os.makedirs(savepath, exist_ok=True)
w = cv2.imread('Watermark\\16_16\\0.pn... | [
"noreply@github.com"
] | fujimuram.noreply@github.com |
facbae77040528fb6f59caa209243c49e927764a | 9deafaaca10878cc11219aa4913441f0f79d8218 | /virtual-environment/bin/chardetect | 221b3760aa1f65b8e910262ba3279a1bd2f2bb26 | [] | no_license | jamalamar/flask-dance-test | f0661aa4238c393f94d476d2672978c75247d2c6 | 51a2a8afff25f5778da755d46db3e02cfa4d5fc0 | refs/heads/master | 2022-12-10T18:09:02.549494 | 2019-02-28T21:00:58 | 2019-02-28T21:00:58 | 173,183,224 | 0 | 0 | null | 2022-12-08T01:39:07 | 2019-02-28T20:33:23 | Python | UTF-8 | Python | false | false | 286 | #!/Users/jamal/GeneralAssembly/labs/flask-dance/virtual-environment/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jamal_ab22@hotmail.com"
] | jamal_ab22@hotmail.com | |
b285e650543b5e44db84725c890dff44ffd937a0 | a0fc9ddad79420167f72bd4b8bd5ac98eb314ec1 | /setup.py | 05dea913b9377628b1a2ca70315130418b05d85a | [] | no_license | erikfenriz/trackingBE | e55b181651d7155dff1b43cfe2716ca486bd0da3 | a0743d0965ddb426b199deb1308eb274bb925e08 | refs/heads/master | 2020-03-26T02:31:52.928197 | 2018-08-12T11:07:37 | 2018-08-12T11:07:37 | 144,414,398 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from setuptools import setup
setup(
name='tracker',
version='0.0.2',
py_modules=['tracker'],
include_package_data=True,
install_requires=[
'flask-cors==3.0.3',
'flask-sqlalchemy==2.2',
'flask-basicauth==0.2.0',
'flask-socketio==2.9.2',
'flask==0.12.2',
... | [
"noreply@github.com"
] | erikfenriz.noreply@github.com |
ba8f248e167c9f66df5daef7912a58393749c774 | 93528ead09bb67aff4c0b4942a014274fe0f2619 | /code/role2vec/weisfeiler_lehman_labeling.py | 30cf8e53b896e61b208d6c13ed3ece5bfc7639fd | [] | no_license | AliceGuichenez/ALTEGRAD | 9773962f892c30d70bae19cc33ec93420b314a3e | d797f20974cca063175995798706d4543d9c3ce8 | refs/heads/master | 2020-04-24T22:42:56.763374 | 2019-04-08T15:08:11 | 2019-04-08T15:08:11 | 172,320,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | import hashlib
import networkx as nx
class WeisfeilerLehmanMachine:
"""
Weisfeiler Lehman feature extractor class.
"""
def __init__(self, graph, features, iterations):
"""
Initialization method which executes feature extraction.
:param graph: The Nx graph object.
:param ... | [
"ntoussai29@gmail.com"
] | ntoussai29@gmail.com |
16bfa8d7df1e10ac1dbd5644e3a510a5973db9d0 | 239caba71eee9bdf3def44464421107fb61b078b | /execute_game.py | b1782b17fef993bbd5abad02b7905549567ed08e | [] | no_license | Natomaro/EE551_Project | 17113a58babf8d3b29d2c206d1a1723e5d7e932f | 82771c8ce32d34ccad9c78b327bf87a289f69e05 | refs/heads/master | 2020-04-23T03:21:39.549057 | 2019-04-26T18:04:29 | 2019-04-26T18:04:29 | 170,876,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | import game
game.Main_menu() | [
"natomaro3@gmail.com"
] | natomaro3@gmail.com |
388632c590d800f35c439aa424255c94ea0536a4 | dd1341107903c7a58fc80a4a543688da794dce97 | /features/steps/ica_test_01.py | 04e7fac9c53a6fa2717796bec7fb02aa3feaa2d0 | [] | no_license | ASimpleCompany/icaplanilla-tests | 7a63587b5c1550ce559a07da69a9969386a7fefe | 5746ecaf38a46beeccf6770640b32e56437a2e69 | refs/heads/master | 2023-01-23T17:05:55.431135 | 2020-12-02T23:19:15 | 2020-12-02T23:19:15 | 310,958,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import time
from behave import *
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
@given('se navega a "{site}"')
def step(context, site):
... | [
"cris@pop-os.localdomain"
] | cris@pop-os.localdomain |
c5b635fd5e643210db9ccdaa8987853d81a1ec72 | a053087c859f90493cc29f40a1d94aaa7cfdc8e3 | /setup.py | 11cfe6202a6b03b3646f669b7a0579551af1be90 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | gstaubli/runtime_stats | fdf9dde4daf02e52b297eeed65f0a9909dc72e1b | 2ca2adf01e6eff0b250cda4d9bf6ee99b438fbc8 | refs/heads/master | 2021-01-12T17:36:34.568277 | 2016-10-22T05:07:44 | 2016-10-22T05:07:44 | 71,616,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from setuptools import setup
setup(
name='runtime_stats',
version='0.1.2',
author='Garren Staubli',
author_email='gstaubli@gmail.com',
packages=['runtime_stats'],
url='http://www.github.com/gstaubli/runtime_stats',
description='Python decorator function to track runtime stats on function ca... | [
"garren@ispot.tv"
] | garren@ispot.tv |
ff28f2c7bdd57e1dae6fe7fd5658380c59e032c2 | 4733692f123d3942cca1980764d83f6da19dc609 | /stairClimber/stairclimber.py | c88b0946ac143b30a579516f2a118ff10e9bce23 | [] | no_license | bharddwaj/AlgorithmsCourse | c10e76568f357340500f8d6ccf8c814f94d7b689 | 0cf274047863ca80bbe0a25b4751fcd0faf41d46 | refs/heads/master | 2022-12-02T01:40:11.970574 | 2020-08-22T19:36:28 | 2020-08-22T19:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | """
Basic (not most efficient) algorithm for generating all ways to
climb n stairs, going up 1, 2, or 3 stairs at a time.
Last modified: February 19, 2019
"""
def get_ways(num_stairs):
ways = []
if num_stairs <= 0:
ways.append([])
else:
for i in range(1, 4):
if num_s... | [
"noreply@github.com"
] | bharddwaj.noreply@github.com |
30e0b0144e04defa93cad0eb27b40a954f54ea1e | a17d7fca9d12ceb865fae1671b25e41ea2dc2e35 | /myblog/settings.py | fa634c5b08fbfbabf99edc13a26d13b6495c9103 | [] | no_license | andriy1112/myblog | 80427784ef7857dc3d467a3440ad062861200606 | 245b2478b8a73ee1c7a5033421dd9c3f46f48430 | refs/heads/master | 2021-02-11T05:54:01.568690 | 2020-03-03T17:41:06 | 2020-03-03T17:41:06 | 244,461,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"noreply@github.com"
] | andriy1112.noreply@github.com |
5086d0c87552db0c15609520b21e6dc23d2ff753 | fea3aca116112b1f7f0fbad2781c01d2edef213f | /libs/python/test/test_updated_interpretation_roi_dto.py | b0e104c1d7ff400859a12c03df747e77ea95c337 | [
"MIT"
] | permissive | Scripta-Qumranica-Electronica/SQE_API_Connectors | a708c0d6f185a047bb1d47f7099abe0f2155171a | aaa9b9eb8709d4257c32ea57321a179c6b1e041a | refs/heads/main | 2022-12-28T00:19:32.576336 | 2020-10-14T09:26:48 | 2020-10-14T09:26:48 | 302,660,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | # coding: utf-8
"""
SQE API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
impor... | [
"bronsonbdevost@aim.com"
] | bronsonbdevost@aim.com |
cadebaaebd1756499df95af0462381104f4d7b5a | e49da4c26b4197db4367b8c929a275c1329ac9b8 | /Assignment 3/house.py | 5eb90e7ec7a5b1728bc1a02708f31dfe61f9ad20 | [] | no_license | nehaahmed538/Machine_Learning | db106eab80a788ce8531ba0348f47d90e43aaf2c | 7696ff5465540ed6200db757149e1536d908d72a | refs/heads/master | 2021-01-27T23:06:13.140118 | 2020-04-10T14:57:59 | 2020-04-10T14:57:59 | 243,488,454 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py |
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.metrics import mean_squared_error,r2_score
df = pd.read_csv('housing price.csv')
X = df.iloc[:, 0:1].values
y = df.iloc[:, 1].values
#print(df)
from sklearn.tree import DecisionTreeRegressor
regressor = DecisionTreeRegr... | [
"noreply@github.com"
] | nehaahmed538.noreply@github.com |
1adf8f13377ad07300c8ac73b54cc564fb261e4e | 450ff77b7b3cc2ee2af4d6fca0166623d50a737f | /app.py | 6713d74f3479b114f97bd49f1c02eacd9103a8e8 | [] | no_license | JessieYF/flask-celery-docker-demo | 37a32a38233187d69a73dff6f818e3fb7f3ee0f1 | f6052006e76351a3647f52ed17b5f3abfd8ecd23 | refs/heads/master | 2020-03-17T20:26:48.213029 | 2018-05-18T06:02:28 | 2018-05-18T06:05:47 | 133,910,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | from __future__ import absolute_import
from os import path, environ
import json
from flask import Flask, Blueprint, abort, jsonify, request, session
import settings
from celery import Celery
from celery.task.control import inspect
import time
app = Flask(__name__)
app.config.from_object(settings)
def make_celery(app)... | [
"fenyang@thoughtworks.com"
] | fenyang@thoughtworks.com |
c1593a4a96d2d54158ae1f08f9eba12543e74a59 | b7743620446cdd2a1b1e82a3df5f39ab623ac42e | /BrandImpersonationDbv1.py | 000edd2036998cb67a5c40adf710eca10f57e514 | [] | no_license | mdtahsinasif/DeepLearning | 126fcf3f67fbe2564bf40a6f92349f03593c0d77 | 9f195172f4f745fa5fb342c62e1ff6b877990f9f | refs/heads/master | 2021-06-07T05:56:01.160347 | 2021-05-21T11:19:32 | 2021-05-21T11:19:32 | 165,226,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,428 | py | import logging
import requests
from bs4 import BeautifulSoup
from pymongo import MongoClient
import re
import time
#pip install langdetect
from langdetect import detect
#pip install google_trans_new
from google_trans_new import google_translator
from nltk.corpus import stopwords
from nltk.tokenize import wo... | [
"noreply@github.com"
] | mdtahsinasif.noreply@github.com |
ec9270b8ce68c3e65580b5e36dd39ebcb17cd1bb | 66beba464a65fc50763f0dea3a7537b11175d7ad | /neuro.py | 50bb9b60ad910b6e8df2e1352c3e3d3f98210fc0 | [] | no_license | drozdziak1/neuro | 8cc5255dec851bf2e6b41888fbdb53fd50dd418e | 521148ecc885837ad8cd214fecbcda1a9a10e7f5 | refs/heads/master | 2020-06-15T02:52:49.110108 | 2016-12-17T22:09:01 | 2016-12-17T22:09:21 | 75,336,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
class NeuralNet(object):
def __init__(self):
# hyper parameters
self.inputLayers = 2
self.outputLayers = 1
self.hiddenLayers = 3
# weights
self.W1 = np.random.randn(self.inputLayers, self.hiddenLaye... | [
"drozdziak1@gmail.com"
] | drozdziak1@gmail.com |
62cb22669072ff1e224be98f36817be8899fa801 | b3ba7762ae4e209a02bf3a47dc40ceff421087d2 | /evm/chains/tester/__init__.py | fd1cdb4b31fe590a3b5ecfd0a0e1dfd75159d7ee | [] | no_license | nicksavers/py-evm | 3c740ae328c5dd0f10c967660a4e452d257fdfa3 | 70631e3b726d093749a7315b8a4c6b1ebc4d7322 | refs/heads/master | 2021-08-15T21:35:19.556248 | 2017-11-17T21:20:24 | 2017-11-17T21:20:24 | 111,194,384 | 3 | 0 | null | 2017-11-18T09:56:00 | 2017-11-18T09:55:59 | null | UTF-8 | Python | false | false | 4,795 | py | from cytoolz import (
assoc,
)
from eth_utils import (
reversed_return,
)
from evm.chains.chain import Chain
from evm.vm.forks import (
FrontierVM as BaseFrontierVM,
HomesteadVM as BaseHomesteadVM,
EIP150VM as BaseEIP150VM,
SpuriousDragonVM as BaseSpuriousDragonVM,
)
from evm.utils.chain imp... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
536ac9a1cb0fade425284581c33b25ee3f3b8d58 | 7b26a592392339c4f17608736fde3c4e3089d9a9 | /get_facevetor_and_label.py | a40ee33ee8f2e88c2a95b19eba409cf5fa54eda9 | [] | no_license | IamaGitHub/FaceRecognition_deeplearning | 842743870193d62e38fc7662928036c68eb74636 | 41fb520fbc5f3a94b91fe75eda44307b6ef81b6f | refs/heads/master | 2020-04-27T20:35:16.609575 | 2019-03-09T07:43:15 | 2019-03-09T07:43:15 | 174,663,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import cv2
import dlib
import numpy as np
import json
import os
img_path = 'D://PycharmWorkspace/pyopencvLearning/dlib_opencv_recognition_face_withCNN/img/'
data = np.zeros((1, 128))
label = []
#load face key point detector
sp = dlib.shape_predictor('./net/shape_predictor_68_face_landmarks.dat')
face_vect... | [
"noreply@github.com"
] | IamaGitHub.noreply@github.com |
01a2e6b7af0a367e62438e4d324ed24336970776 | 9c1b28d9564cfde450f6590031ede667650d494f | /player/tasks.py | ade314e4fae37740ac46ba2df18ee15c5805a719 | [] | no_license | gdmurray/rankedgg-backend | 90f887f4d64ca5a38741ac8e9482f08fc5d6fd7e | ac312750a09a70907fe3e5a9ae9e1172c5e341d8 | refs/heads/master | 2022-12-18T16:54:27.302293 | 2019-03-24T05:24:23 | 2019-03-24T05:24:23 | 177,320,244 | 0 | 0 | null | 2022-12-08T04:54:05 | 2019-03-23T17:36:14 | Python | UTF-8 | Python | false | false | 746 | py | from ranked.celery import app
from .models import Player
from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync
@app.task
def update_ranked_data(pk, region=None):
player = Player.objects.get(id=pk)
print(f"Updating Ranked Data for {player.username}")
metadata, updated_player... | [
"gd-murray@hotmail.com"
] | gd-murray@hotmail.com |
fbdec2d42733ce17db58b0d6a034d10a0172b13e | 248f5251b58c266f75dbda9e8fed479278465c2c | /decor.py | 6e11744d2caa42f8a6db1cfeb4a9936c77fd43ed | [
"MIT"
] | permissive | sergeybatukov/OOP | 276f46a970fc106b7cf773d13070c7671440784f | 9287866d04d7511b87941312d52f0bb14472c5a3 | refs/heads/master | 2022-04-08T17:37:11.295921 | 2020-01-12T15:56:37 | 2020-01-12T15:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | def Decorator(f):
def wrapper(arg):
print ('befor')
f(arg)
print ('after')
return wrapper
@Decorator # либо: Function = Decorator(Function)
def Function(x):
print ('function', + x)
Function(23) # декорированая функция | [
"shizadance69@gmail.com"
] | shizadance69@gmail.com |
70119b6e17e4c3c145db1b8d9c71189a80de7ab4 | c47918979509f9a0a60f8cea63dd321eec344d1a | /perlin_generator/voronoi_generator.py | 97e72b6adfbe28cb4c0385f418781b1689543283 | [
"MIT"
] | permissive | sjsafranek/fantasy_map_generator | 7740e343455ef65c6b7d3411de72f7b10673b930 | 5c3aa0de15e35924e3f1e7298e46f73602901433 | refs/heads/master | 2020-03-31T18:51:48.747827 | 2018-10-17T00:30:52 | 2018-10-17T00:30:52 | 152,475,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import os
import random
from osgeo import ogr
import numpy as np
from scipy.spatial import Voronoi
import shapely.geometry
import shapely.ops
def newLongitude():
return random.uniform(-180, 180)
def newLatitude():
return random.uniform(-85, 85)
# Save extent to a new Shapefile
outShapefile = "tmp/voronoi.s... | [
"stefan@stefan.stefan"
] | stefan@stefan.stefan |
11630875b2a7c10724446e207f432eabf6ced868 | f69ffc4bda2b3e300869419ca6bd443464f20e24 | /栈/155. 最小栈.py | 5570f0c86c75f412278e1ad3afda6448c8ac4894 | [] | no_license | Gorazor/leetcode | bfcad8937930d9c3774d4d3c979a568fbcbedbad | a09cc62f3970e07baf89c66c839824c222d625a1 | refs/heads/main | 2023-04-01T08:52:06.258062 | 2021-03-26T13:33:07 | 2021-03-26T13:33:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack=[]
self.min_stack=[float(inf)]
def push(self, x: int) -> None:
self.stack.append(x)
self.min_stack.append(min(x,self.min_stack[-1]))
def pop(self) -> None:
... | [
"u7076906@anu.edu.au"
] | u7076906@anu.edu.au |
824ebf54d09009395529bc3dace8594328a8f055 | b084e9c8af25221593a229470cd929413a1d1403 | /hw9/hw9.py | 3c1b608011ed73696802e62a98920c37b55b8948 | [] | no_license | ChengDe1996/NTU-CV | c71ef7ca61eaf672a5f0b0f74e564e3bbe9e31c3 | 23b338547fbc57c74a3446c6a5845e50a8897a0d | refs/heads/main | 2023-02-03T05:38:03.489900 | 2020-12-23T18:46:19 | 2020-12-23T18:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,234 | py | import numpy as np
import cv2
class Solution:
def gradient(self, v1, v2, threshold):
val = (v1**2 + v2**2)**0.5
if val <= threshold: return 255
return 0
def Roberts(self, image, threshold):
res = np.ones((512, 512), dtype = np.uint8)
h, w = image.shape
for i in range(1, h-1):
for j in range(1, w-1):... | [
"noreply@github.com"
] | ChengDe1996.noreply@github.com |
ae6738fc408a88ff1d59e3d10f2f06ca7d87e08b | af922f12961a8e721e706cfd57ee1974bc6a9bfb | /stimulus_presentation/generate_Auditory_P300_v2.py | 8a7ace49cf7a1ea63d0ccf955813e86a51a89a21 | [
"BSD-3-Clause"
] | permissive | hyha0310/muse-lsl | 28a9869218117250a6d3b50f7cccffd374f1392c | 083c50fce6ec9c2d648ae9aeb6451516baf583d8 | refs/heads/master | 2021-05-14T03:59:00.049887 | 2018-01-08T04:26:47 | 2018-01-08T04:26:47 | 116,630,325 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,475 | py | """
Generate Auditory P300
======================
Auditory oddball paradigm stimulus presentation.
"""
from time import time
from optparse import OptionParser
import numpy as np
from pandas import DataFrame
from psychopy import prefs
from psychopy import visual, core, event, sound
from pylsl import S... | [
"hha005@gmail.com"
] | hha005@gmail.com |
95ab80f3fc1195c06b5ffcbf8b1f17dc0ef31ab7 | 291fe7fb4cc5b682e560b0c5958e2220054451c6 | /Big41/ch4/조건문1.py | c57b278f55bd2e596e39e220b35dc5942d768772 | [] | no_license | MinksChung/BigdataCourse | 44dc5e7e578515e1dafbb7870911e09347a788f4 | 293803415da5d9f354059ea556818cc7610f36a5 | refs/heads/master | 2022-12-22T06:14:59.880933 | 2020-01-26T14:58:09 | 2020-01-26T14:58:09 | 202,575,724 | 0 | 0 | null | 2022-12-15T23:28:43 | 2019-08-15T16:29:35 | Python | UTF-8 | Python | false | false | 761 | py | # print("파이썬 2번째 날입니다.")
# age = 100
#
# if age >= 20:
# print("성인입니다.")
# else:
# print("미성인입니다.")
# 비교연산자를 스트링 비교에 사용할 수 있다.
# 제어문에 중간괄호({ })대신 :(콜론)을 사용한다.
# :을 사용하면 반드시 다음 아래줄에 들여쓰기를 해야한다.
# 들여쓰기 후, 꼭 처리 내용이나 pass를 써주어야 한다.
# login_id = 'root'
# if login_id == 'root':
# print('로그인 ok'... | [
"minkschung@gmail.com"
] | minkschung@gmail.com |
0412325572d786d5ff622d57872828e3ac3f1281 | d6c117812a618ff34055488337aaffea8cf81ca1 | /scenes/Breakout_Clone.py | 17e3ecd37edfce711d910432545e1bc7b564035f | [] | no_license | c0ns0le/Pythonista | 44829969f28783b040dd90b46d08c36cc7a1f590 | 4caba2d48508eafa2477370923e96132947d7b24 | refs/heads/master | 2023-01-21T19:44:28.968799 | 2016-04-01T22:34:04 | 2016-04-01T22:34:04 | 55,368,932 | 3 | 0 | null | 2023-01-22T01:26:07 | 2016-04-03T21:04:40 | Python | UTF-8 | Python | false | false | 7,869 | py | # -*- coding: utf-8 -*-
# https://gist.github.com/SebastianJarsve/5305895
# Created by Sebastian Jarsve
# 9. April 2013
from scene import *
from sound import play_effect
from random import randint
def centered_rect(x, y, w, h):
return Rect(x-w/2, y-h/2, w, h)
class Field(object):
def __init__(self):
size = scree... | [
"itdamdouni@gmail.com"
] | itdamdouni@gmail.com |
cfd826edde745a9864abe9b24341ad86a477b5ea | 81a41ec4979121564d3e7c9f0dc687adab460bde | /Simulation/test/stoppedHSCP_300_250.py | 44c9da489dbebc89c92c06cfe43de2ee9a971981 | [] | no_license | allenji/StoppedHSCP | 01e37dc34b4c5f88b933164ebe5e8a2bf5561573 | c49f18914c7fa36b59c9fbb046e6c8be4f3aa42d | refs/heads/master | 2021-01-17T13:33:42.889485 | 2016-03-29T18:10:13 | 2016-03-29T18:10:13 | 35,041,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py |
from StoppedHSCP.Simulation.stoppedHSCPSim import *
process.maxEvents.input = 10000
process.source.PythiaParameters.SLHAParameters = cms.vstring("SLHAFILE = \'StoppedHSCP/Simulation/data/Rhadron_1jet_300_250.dat\'")
process.VtxSmeared.stoppedData = cms.FileInPath('StoppedHSCP/Simulation/data/stopped_rhadrons_gluino30... | [
"weifengji@yahoo.com"
] | weifengji@yahoo.com |
2b8ccf7ee04042a9ad7272f32f36ad641f5af449 | ee2e9e086f29a7d3bff342aa8876fc367b807d8b | /createl LL.py | 9b2120c7d787366835d98829e68e95b6db0cc77b | [] | no_license | Piyush-Kurkure/Linkedlist | bb7b5157835f571c4f1d356a233f6f048e1da7ae | f8ee22cfc56ebc130342673361ceec4eb0a7b724 | refs/heads/master | 2020-07-27T23:25:14.793122 | 2019-09-18T07:21:26 | 2019-09-18T07:21:26 | 209,243,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | class Node:
def __init__(self,data):
self.data = data #assisgn data
self.next = None #assign next as NULL
class LinkedList:
def __init__(self): #initialize LL object
self.head = None #assign initial node as NULL
def printlist(self):
temp = self.head
whi... | [
"noreply@github.com"
] | Piyush-Kurkure.noreply@github.com |
d28e684c5bfc05d42a0888af9fb2df9877d4d315 | 2032da979714988270e0fa30f3bbeb20550a7e38 | /ftpjiya.py | 1d0bcbf7a2dc8377c0bd439c21f4fb2fc08bc5fb | [] | no_license | xiaojun54767193/python | eb6d57a5e1993559607ed9279cb16f0322bb478d | dacc8890c286d067fbc6ed4e537cc50c8ee0a199 | refs/heads/master | 2021-01-10T22:15:29.554484 | 2017-12-25T04:19:17 | 2017-12-25T04:19:17 | 70,330,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/python
import os
def ftpjiya(PlatDir):
"""Find which directory had jiya
"""
filelist = []
faildir = '/data05/faildata'
for file in os.listdir(os.path.join(faildir,str(PlatDir))):
filelist.append(file)
filenum = len(filelist)
if filenum > 0:
print '{0} had {1} files'.format(PlatDir,filenum)
if __n... | [
"noreply@github.com"
] | xiaojun54767193.noreply@github.com |
6282006f5e732e392a55b28824349500e70e3739 | 9db00d1610cf3e16d3dddd60832217180995a8ee | /batterydispatch/__main__.py | 88382ac1391b11f923977f4a0a974db100635d03 | [
"Apache-2.0"
] | permissive | danbolinson/BatteryAgent | eeb99bef1383730e1e0f2a65e4b4cb614658a453 | 56d691b6d130bdfb87104e23f6a11b57b5cd7cd6 | refs/heads/master | 2020-05-22T11:15:15.865195 | 2019-07-25T19:48:33 | 2019-07-25T19:48:33 | 186,317,489 | 2 | 2 | Apache-2.0 | 2019-07-25T19:48:34 | 2019-05-13T00:06:45 | Jupyter Notebook | UTF-8 | Python | false | false | 73 | py | from batterydispatch import app
if __name__ == '__main__':
app.run() | [
"33603775+danbolinson@users.noreply.github.com"
] | 33603775+danbolinson@users.noreply.github.com |
6613a2608f40911dfb3451279fbf1f98996ef1de | 33f8b8c25d7d8fbc06d7d59de9008d82d4484262 | /update_checker.py | 0624b6d88e2e5e5f626749cce49809e92e709d0d | [] | no_license | tanmoysrt/Auto-Update-Telegram-Bot-JU | 76beda8d4aa5f625655b18b7f08a8b216e9b8e29 | ef8c99f7d15d1082d94ef9be657a71496b156ecb | refs/heads/main | 2023-05-25T23:21:27.001517 | 2021-03-28T19:45:16 | 2021-03-28T19:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | from bs4 import BeautifulSoup
import requests
from urllib.parse import urljoin
import hashlib
import db_commands
# This Function will return all tables listed in the website
def returnAllTables(url):
r = requests.get(url)
soup = BeautifulSoup(r.content, 'html5lib')
table = soup.findAll('table')
return ... | [
"57363826+Tanmoy741127@users.noreply.github.com"
] | 57363826+Tanmoy741127@users.noreply.github.com |
acafcee721e06c4272142c36a3deca0a91574319 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_2/models/object_store_access_policy_rule.py | c48033b9db845a618c81bd67851d063292b423c6 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 5,091 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"msholes@purestorage.com"
] | msholes@purestorage.com |
686d4a09006935b2436d5ba3ed978785656b1a02 | 40809bb14e113e6bacee77494dc82d3512139d0c | /backend/app/models/users.py | 84b5da7a75b391b3c083df6af08fa58ee2f69887 | [] | no_license | zekaio/2020_timecapsule_retrieve | 94af85d9b2ed7f2a99512b72eb8b3b0cf00a2961 | 40a60c6fd5de8efe26ab018225e753a7c22c79c5 | refs/heads/master | 2023-03-29T14:54:50.645523 | 2021-03-31T11:50:34 | 2021-03-31T11:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from app.extensions import db, Model
class User(Model):
__tablename__ = 'users'
uid = db.Column(db.Integer, primary_key=True)
open_id = db.Column(db.Text)
nickname = db.Column(db.Text)
phone = db.Column(db.Text)
email = db.Column(db.Text)
| [
"zekailing@gmail.com"
] | zekailing@gmail.com |
1c6a147b2f4b41755c69e039daa777857f29fe12 | 01c0d7dfb0003c203c539e12b481d3475ac03941 | /Competitions/migrations/0005_competition_tickets_remaining.py | a796881ebaa290fc6326e22d9520d8df963bf031 | [] | no_license | JackReynolds/PremierCompetitions | 2cf5a725bdbc8e8bf81882c0aa5ee0ae138ad87e | 34562fd3e635a7a08ec8b674b7aca1356161987a | refs/heads/master | 2022-04-04T09:41:08.659029 | 2020-02-21T23:21:19 | 2020-02-21T23:21:19 | 207,147,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # Generated by Django 2.2.3 on 2019-07-20 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('competitions', '0004_auto_20190719_1154'),
]
operations = [
migrations.AddField(
model_name='competition',
name='tic... | [
"jack@Jacks-MacBook-Pro-2.local"
] | jack@Jacks-MacBook-Pro-2.local |
c328e2178a1886907f2c5c98afd36de38d54d425 | 492a809b21203133b3863d7fb3911202b663139d | /run.py | 0b83d757b76ddd8f90f7aef3994f85f250a75c82 | [
"MIT"
] | permissive | kelvinndmo/me | f9ce3680af8341e4013d2bf3806b319426da9985 | 06b9959b4284abc20b5ee365223381c75ec574d9 | refs/heads/master | 2022-12-10T17:10:48.820361 | 2019-04-25T20:16:08 | 2019-04-25T20:16:08 | 148,412,219 | 1 | 0 | MIT | 2021-06-01T22:38:15 | 2018-09-12T02:54:42 | Python | UTF-8 | Python | false | false | 250 | py | import os
from app import create_app
app = create_app(os.getenv("CONFIG_STAGE") or "default")
if __name__ == '__main__':
app.run(debug=True)
source venv/bin/activate
export FLASK_APP="run.py"
export MODE = "development"
export FLASK_DEBUG=1
| [
"ndemokelvinonkundi@gmail.com"
] | ndemokelvinonkundi@gmail.com |
95ed3ebf9418039cb36fd809dcb13026d8ffb163 | 4ca6c75b8cfe7604827827aeee83b104fa7c93d9 | /tests/apigateway/tests.py | a4c13a38821d83909c9775a29a08392a8dee52c7 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ZextrasGiacomoMattiuzzi/gordon | 3767800c64caf4444a13c15e890f84505b62296d | b6e4e8d5998c2b2c4c4edb3a2ec7124290f46e8b | refs/heads/master | 2022-12-22T02:21:09.422648 | 2020-09-16T15:03:06 | 2020-09-16T15:03:06 | 285,250,476 | 0 | 1 | NOASSERTION | 2020-08-05T10:05:08 | 2020-08-05T10:05:08 | null | UTF-8 | Python | false | false | 3,393 | py | import os
import json
import boto3
import requests
from gordon.utils_tests import BaseIntegrationTest, BaseBuildTest
from gordon.utils import valid_cloudformation_name
from gordon import utils
class IntegrationTest(BaseIntegrationTest):
def test_0001_project(self):
self._test_project_step('0001_project... | [
"me@jorgebastida.com"
] | me@jorgebastida.com |
cd172a9a17577c24aa1f6da412c61dafbdc9a7b0 | 4526dfc364330b95110cf987fc75ed9cc4bb1a8f | /products/migrations/0001_initial.py | 06adc4d6bd8e9ccff38e35240157fa31fb8c0ed7 | [] | no_license | kenwals/BoWood-Audio | e65f72533770d228407224f6a35d23c0e829eeb4 | 7046b030fdef95f745fbd389fa3f2140ad09ece4 | refs/heads/main | 2023-07-16T13:23:53.245462 | 2021-08-19T19:52:31 | 2021-08-19T19:52:31 | 387,548,996 | 0 | 2 | null | 2021-08-19T19:47:50 | 2021-07-19T17:47:11 | HTML | UTF-8 | Python | false | false | 1,713 | py | # Generated by Django 3.2.5 on 2021-07-25 10:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"kenwals@gmail.com"
] | kenwals@gmail.com |
9ace0e2c18b1d5a9c7d895552e9558ec70c9f4d8 | 0294f4158d4519e6cdb5893eeadc1f4397d4ee0b | /utils.py | e4e02b672d819b8e6eea7b8ef77c559b017869c6 | [] | no_license | andreiionutdamian/TicketEmails | 3905d072b36d4df5de294ec7a1cc5576976e8291 | 059a8023bd7f733396274cab2d73792fb0907b3f | refs/heads/master | 2022-04-21T23:45:41.544339 | 2020-04-21T06:33:27 | 2020-04-21T06:33:27 | 256,752,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 21 08:02:18 2020
@author: Andrei
"""
import numpy as np
from datetime import datetime as dt
import pandas as pd
class Log():
def __init__(self):
self.lst_log = []
self._date = dt.now().strftime("%Y%m%d_%H%M")
self.log_fn = dt.now().strftime("logs/"+s... | [
"andrei@lummetry.ai"
] | andrei@lummetry.ai |
26d6ddad8285870df5057d6ccabf8e80206457e9 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_network_address.py | d733d83fb937e590c374c7132fc314a75cc127e8 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
d4b37786cf07d0f9cd9ae09ba3d5ca0f5f104be7 | 5af8562438f764bce5fcf29e291d914ec42e448c | /src/main/resources/cloudfoundry/discover-services-metadata.py | ee1774a6c71ceefdc7dba0c3b52cfe2addde8f0b | [] | no_license | wayofthepie/xld-cloud-foundry-plugin | 22412a1a1334bbd49c3f8ac4821001988d876144 | 5ceba3fe9f674b5ab4a8b1cd8420866674a3e39e | refs/heads/master | 2021-01-17T14:03:00.763800 | 2014-10-30T10:24:05 | 2014-10-30T10:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | #
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
#
from cloudfoundry.util import CFC... | [
"jdewinne@localhost.localdomain"
] | jdewinne@localhost.localdomain |
a2d02282bf4358c612127e590c788e524a36ebac | 4017575c465a9eeda2846d04c9791d275bf3db51 | /天气查询Old.py | 9c84fe5532ff4195c64d579915e694d20cce13c2 | [
"Apache-2.0"
] | permissive | 8055aa/Python3Code | 458ba756c8cfe6ed04eaeb5f72474e735062e411 | ac832241b87c02a3b3e1b216dbcd3cfbd0293b7c | refs/heads/master | 2020-12-03T00:44:25.375732 | 2018-07-16T01:25:09 | 2018-07-16T01:25:09 | 96,074,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import urllib.request
import json
import pickle
pickle_file=open('city_data.pkl','rb')
city=pickle.load(pickle_file)
password=input('请输入城市:')
name1=city[password]
File1 =urllib.request.urlopen('http://m.weather.com.cn/data/'+name1+'.html')#打开url
weatherHTML= File1.read().decode('utf-8')#读入打开的url
weatherJ... | [
"noreply@github.com"
] | 8055aa.noreply@github.com |
3bdbf3683b1878dc93193e0e837e635938a0c77a | 1c03fb592b04926193466ae1a1a4046b195983ba | /tsantsa/scss_compiler.py | dc27b0b1d6b14b4d7fd43fcb9a06d173de61a245 | [
"MIT"
] | permissive | akissa/tsantsa | 32fc861fa4733ca019e660779f4ffcd748e7af5f | 0822a67afc5ba10265cf9a09d56b0cd149d37e57 | refs/heads/master | 2020-05-01T14:48:11.402325 | 2012-10-19T09:20:46 | 2012-10-19T09:20:46 | 6,262,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,958 | py | # -*- coding: UTF-8 -*-
# Copyright (c) 2012 Andrew Colin Kissa <andrew@topdog.za.net>.
# Based on minify Copyright (c) 2011-2012 Sylvain Prat
# This program is open-source software, and may be redistributed
# under the terms of the MIT license. See the LICENSE file in this
# distribution for details
"""
Tsantsa - SCSS... | [
"andrew@topdog.za.net"
] | andrew@topdog.za.net |
2dfd45cbd4308213e05b748eeca0e94c887cb457 | b50f43c7c8cba1c0f349870596f12d1a333e6f42 | /axonius_api_client/api/json_api/lifecycle.py | 1b1fa1e637e4ac6cc877cd9a193ee9d9678de93e | [
"MIT"
] | permissive | zahediss/axonius_api_client | 190ca466e5de52a98af9b527a5d1c132fd8a5020 | 8321788df279ffb7794f179a4bd8943fe1ac44c4 | refs/heads/master | 2023-08-01T14:35:17.095559 | 2021-09-13T21:04:23 | 2021-09-13T21:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | # -*- coding: utf-8 -*-
"""Models for API requests & responses."""
import dataclasses
from typing import List, Optional, Type
import marshmallow_jsonapi
from .base import BaseModel, BaseSchema, BaseSchemaJson
class LifecycleSchema(BaseSchemaJson):
"""Pass."""
last_finished_time = marshmallow_jsonapi.fields... | [
"jimbosan@gmail.com"
] | jimbosan@gmail.com |
f358f1920e267a1597d1f28b3099aca2c7245215 | cd5aa6791bbbc1b84da26936ba4ae1a2ea08a1ba | /show_passwords.py | 27d3b62fb79f03990a1e0042e1a9ce1edb84d456 | [] | no_license | kgritesh/shell-utils | 4dec295ca38b858a77853bb797e08f97f44bfdbf | df7a7d1668f016c3a47e2e04f45cd854586e096f | refs/heads/master | 2020-12-24T15:23:25.616879 | 2013-02-20T06:27:43 | 2013-02-20T06:27:43 | 4,134,593 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk # sets app name
import gnomekeyring
def hack():
for keyring in gnomekeyring.list_keyring_names_sync():
for id in gnomekeyring.list_item_ids_sync(keyring):
item = gnomekeyring.item_get_info_sync(keyring, id)
print '[... | [
"k.g.ritesh@gmail.com"
] | k.g.ritesh@gmail.com |
78eb277b9aba2af3890f89a4f2b36c94d50cd1f8 | 1ab3fffe647d6cf168c3fafd6b29b16893302b15 | /lab7.12.py | 9d5c9c1fccc00daa36a9acf2fead0638bce0fcd1 | [] | no_license | Dyndyn/python | 789e9b32d946782ccf5e0bbc8727abf431636b3c | d5ffc1c291328dda034101537923274c81d21f0b | refs/heads/master | 2021-09-05T03:13:07.040703 | 2018-01-23T22:10:10 | 2018-01-23T22:10:10 | 106,127,671 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
import re
s = input("enter the string ")
def remove_spaces(s):
return re.sub('( )( )+', r'\1', s).strip()
print(remove_spaces(s))
| [
"dyndynroman@gmail.com"
] | dyndynroman@gmail.com |
62d0e0bb9ae6823f07924b56f20e211d04c91598 | 71dc727f9056934cd51692f8a3d26cf0dda44ef0 | /sample-programs/week6/credit_card.py | c01ecf9751b6232aa66da9be53bfaadfc1851845 | [
"MIT"
] | permissive | justinclark-dev/CSC110 | 9d255020a50bbfdb195465c3e742dd2fcd61e3a4 | d738ec33b757ba8fa9cf35b2214c184d532367a0 | refs/heads/master | 2022-12-08T08:08:30.667241 | 2020-09-04T01:05:34 | 2020-09-04T01:05:34 | 232,606,910 | 0 | 1 | MIT | 2020-09-04T02:05:47 | 2020-01-08T16:28:37 | Python | UTF-8 | Python | false | false | 2,153 | py | # credit_card.py
#
# How long will it take to pay off a credit card balance??
# This program makes use of a loop to perform a SIMULATION
# of a real-world situation.
# CSC 110
# Fall 2011
### Get and validate inputs
interest_multiplier = float(input('Enter an ANNUAL INTEREST RATE ' \
+ 'as a PERCENTAGE, >= zero:... | [
"justinclark.dev@gmail.com"
] | justinclark.dev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.