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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7d8f662b47b19b1207a866a5facfa1516f5aeb8 | 02680f3057c3acd9c5a70474d37f76ac9fe39cd2 | /Python Environment Setup/Alternate/1. Python/1. Installer/Python-3.4.0(Linux)/Lib/test/test_tempfile.py | cf2ae080bed9269d4cb4c40d27e964fefb779988 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Python-2.0"
] | permissive | tpsatish95/Python-Workshop | 1b43e25487b48d51185947e244845b41f199da6f | 5f4da07c96cfd0ae76a502efc8acb94409347946 | refs/heads/master | 2022-11-04T02:31:49.286334 | 2017-02-26T13:35:29 | 2017-02-26T13:35:29 | 44,395,862 | 1 | 2 | Apache-2.0 | 2022-10-21T00:22:22 | 2015-10-16T16:02:24 | Python | UTF-8 | Python | false | false | 41,583 | py | # tempfile.py unit tests.
import tempfile
import errno
import io
import os
import signal
import sys
import re
import warnings
import contextlib
import weakref
import unittest
from test import support, script_helper
if hasattr(os, 'stat'):
import stat
has_stat = 1
else:
has_stat = 0
has_textmode = (tempf... | [
"tpsatish95@gmail.com"
] | tpsatish95@gmail.com |
b44c80c1722c93ac0ba0dae957fc214ed4cbfa59 | cca62aba8bc6b8ad498a0f40485529eefc10c713 | /shoptutorial/lib/python3.6/site-packages/aldryn_forms/migrations/0001_initial.py | bf9f2ffe2c39dfd8d3121cfb18fbe3d6359e5cc0 | [] | no_license | hamzafaisaljarral/scoop | 22af9f1362ed78f395ac558b7043ae2270e93217 | 72809299eea0e71a38e035fd15533c4dc13cdd37 | refs/heads/master | 2023-01-11T23:50:20.483475 | 2019-08-02T13:43:37 | 2019-08-02T13:43:37 | 158,827,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,713 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import filer.fields.folder
from django.conf import settings
import cms.models.fields
import sizefield.models
class Migration(migrations.Migration):
dependencies = [
('filer', '0002_auto_20150606_2003... | [
"hamzafaisaljarral@gmail.com"
] | hamzafaisaljarral@gmail.com |
12f18400f128855b6ff8b05703994fd4e52cd2a6 | 62fe88bdfc12262dac265478f97cac6abd041ea3 | /Pages/AddEmployeePage.py | dad24f5fca9a3d88cf07a473e1d9fccbc114f85f | [] | no_license | sdjukic980/humanity | 090fc3ce82194649da93e29bdf3e735490aa5d2c | bbcc10eab16a76fb2a65fd6224eafccc14c7eb99 | refs/heads/master | 2020-12-03T00:18:56.030709 | 2017-07-04T19:12:54 | 2017-07-04T19:12:54 | 96,013,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from Framework.basepageclass import BasePageClass
from Locators.AddEmployeePageLocators import AddEmployeePageLocator
class AddEmployeePage(BasePageClass):
def add_employee_name(self,name):
self.wait_for_element(*AddEmployeePageLocator.FIELDADDNAME1)
name1 = self.driver.find_element(*AddEmployeePa... | [
"sdjukic980@gmail.com"
] | sdjukic980@gmail.com |
43a04e5ac41572106ab3ff879af6d0b36c7e0e92 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Data Science and Mechine Leraning/99.py | a816c6cc8a35dc07365ddd5a9e3c00881cf640da | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import numpy as np
import pandas as pd
li = {'A': [1, 2, np.nan], 'B': [1, np.nan, np.nan], 'C': [1, 2, 3]}
li2 = pd.DataFrame(li)
li3 = li2.fillna(value='FILL VALUE')
print(li3) | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
dbca292cb3bff6282f1d9cf3497023769aa3cd45 | e913d49911ad8b2c583e1bccaece8307091022b5 | /tk_test.py | c6d62747ae2cc08341d1b04cc4f4edefca6fa7d8 | [] | no_license | akaProgramer/python_tkinter | 6531c1c0fe3523a4df0b5c3fc2b65e77a90b5ae4 | 57d166b8d4e05051959b311e9b0e0b03715fbe5e | refs/heads/master | 2022-12-13T21:11:25.930960 | 2020-09-08T17:53:47 | 2020-09-08T17:53:47 | 282,791,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,887 | py | # from tkinter import *
# import math
# import parser
# import tkinter.messagebox
# root = Tk()
# root.title("Scientific Calculator")
# root.configure(background = 'green')
# root.resizable(width=False, height=False)
# root.geometry("480x568+0+0")
# calc = Frame(root)
# calc.grid()
# #********************************... | [
"51360466+akaProgramer@users.noreply.github.com"
] | 51360466+akaProgramer@users.noreply.github.com |
ccbd6d4fef4e78de38c9276cc38f6fa7330b80d5 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/097_beautifulsoup_ii_scrape_us_holidays/save1_passed.py | 23b546430bed3f5a69c3ef251e95a5ae2acb06fc | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,037 | py | from collections import defaultdict
import os
from u__.r.. import u..
from bs4 import BeautifulSoup
# prep data
tmp = os.getenv("TMP", "/tmp")
page = 'us_holidays.html'
holidays_page = os.path.join(tmp, page)
u..(
f'https://bites-data.s3.us-east-2.amazonaws.com/{page}',
holidays_page
)
with open(holidays_pa... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
132621d5f6ab373ae23b1baefd99716e1277af0d | 9be8a12c1fe2dc4758f490a5bf7ca45d4d1c42ab | /KCCScripts/runFileSamplerForBackups.py | ece95704d0ed69ebd26f0154456250bf421709ec | [] | no_license | nathanwisla/PythonScriptCollection | 06e1952f2de2334fb7fe86c2897c70ed8e1c1994 | 569215b5f4360b9cfa11628c66bef21a35963908 | refs/heads/master | 2023-04-17T10:19:02.387485 | 2021-04-22T19:24:58 | 2021-04-22T19:24:58 | 180,291,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from playground import FileSampler
import datetime
srcRoot = 'D:\\Backup\\23610009_CUS_Rogers_Network_Optimization_Program\\CA_Campaign_02\\System2\\Raw_Data'
dstRoot = 'D:\\BUDump'
date = datetime.date(2019,8,23)
print('Collecting .trp files...')
a = FileSampler(srcRoot,dstRoot,date,backup=True)
print('.trp files ... | [
"noreply@github.com"
] | nathanwisla.noreply@github.com |
b66cd2a75f8274f5c9bc8c2a4438c8fd301d226e | bd727166524fcacd93f6cdc739e9437ebd418b56 | /05_capstone/heroku_sample/models.py | ca800c5e3d6b972207d6e9696092ce5940e22b66 | [] | no_license | jmval111/full-stack-web-projects | 317af54da8bbdb0695ae007644c7dbb32ad52882 | a411741eaf04944b5d7411bc1e696ad580bd1a98 | refs/heads/master | 2023-04-20T23:33:01.025798 | 2020-09-30T12:52:25 | 2020-09-30T12:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import os
from sqlalchemy import Column, String, create_engine, Integer
from flask_sqlalchemy import SQLAlchemy
import json
database_path = os.environ['DATABASE_URL']
db = SQLAlchemy()
'''
setup_db(app)
binds a flask application and a SQLAlchemy service
'''
def setup_db(app, database_path=database_path):
app... | [
"akueisara39@gmail.com"
] | akueisara39@gmail.com |
e4387b17b1c180a54707d3c99af0986563228ab2 | bdbbd34b0fb75669ac60ce1774e2484f6ef3b07c | /ch1/Mouse.py | ec83a965d465bf0905a67b82493b204d43f35d46 | [] | no_license | yuling111/opencv | 66e96f1c753dd43111bcd9cc09c93ae220bf13e8 | a017434aba3b64e4663a11bfeefa3f33e5958632 | refs/heads/master | 2023-06-25T12:56:49.435972 | 2021-07-30T09:47:19 | 2021-07-30T09:47:19 | 389,839,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import numpy as np
import cv2 as cv
# 鼠标回调函数
def draw_circle(event,x,y,flags,param):
if event == cv.EVENT_LBUTTONDBLCLK:
cv.circle(img,(x,y),10,(255,0,0),-1)
elif event == cv.EVENT_RBUTTONDOWN:
cv.rectangle(img, (x,y), (x+50,y+5), (0,0,255),3)
# 创建一个黑色图像,一个窗口,然后和回调绑定
img = np.zeros((512,512... | [
"waini1023@gmail.com"
] | waini1023@gmail.com |
bb02dddbd6ef8c599eda31ca5a6d7365c3f4b787 | 636ba2700eaf3a151b73144b510f38c75ab1919d | /ml/m11_kfold_estimators2_cancer.py | 83c224be41b0db487d18733b67d449cc86ebf928 | [] | no_license | Taerimmm/ML | 17997f388e18c28dfd9de83af98a6d4bebe7e1f0 | 6147cede81ebcc95f21adebf75731fbbb11edfab | refs/heads/master | 2023-06-10T14:26:45.335219 | 2021-07-05T15:30:47 | 2021-07-05T15:30:47 | 324,874,959 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | from sklearn.model_selection import train_test_split, KFold, cross_val_score
from sklearn.metrics import accuracy_score
from sklearn.utils import all_estimators
from sklearn.datasets import load_breast_cancer
import warnings
warnings.filterwarnings('ignore')
dataset = load_breast_cancer()
x = dataset.data
y = dataset... | [
"xofla7560@naver.com"
] | xofla7560@naver.com |
11b20acbca4a4bd934ba49818f71c81446229c4e | 888c8c1e251b99b582ab9080ea10924c30a7b7a1 | /modules/reminder.py | 43e2ee4ceb4ef161ad657c73ffe9b2edfaa553fe | [] | no_license | lijianzwm/step-everyday | e4385a538c32bbfef6b93f631fb70777bdbe89f5 | 719fad41a330882d65a52947271cf36f71e7d3fc | refs/heads/master | 2021-01-01T17:48:53.569473 | 2017-09-12T05:25:05 | 2017-09-12T05:25:05 | 98,161,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # -*- coding:utf-8 -*-
"""定时提醒模块"""
import datetime
from modules.db import DB
from modules.mail import MailBox
from config import Config
from modules.mail import MailSender
class Reminder:
interval = [1, 2, 7, 14, 30, 90] # 时间间隔,单位是天
def __init__(self):
pass
def _review_date(self):
dt =... | [
"lijian8931@163.com"
] | lijian8931@163.com |
43b64d2dd71ecb0c76c663205e0bfac8317835b3 | 315af6a46b15e6eff887ae37aff9737286dfc1d8 | /celuchop2/urls.py | 07ce8135356e2dd5919b4260caeaf5b93a90a397 | [] | no_license | andresx213/clase | b5c8c9b1f2fc4d9fdda180dcfd825f639085d676 | 1d27456e3ef236e2764f363cd3cacd783a69ca7e | refs/heads/master | 2022-11-29T19:38:25.918295 | 2020-08-10T19:52:18 | 2020-08-10T19:52:18 | 286,567,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """celuchop2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"andresortega2015@gmail.com"
] | andresortega2015@gmail.com |
b73865ffa809ff7d0b2a4617221883370eeb59a5 | ca23ecd39c84a42879dbb35f2dbae09cb62db750 | /simulators/switch_matrix/__init__.py | 5d8ddd9aebedc7fc4f0c7bfc9fdcabb65b18fbed | [] | no_license | discos/simulators | 41753cd38f732914a7727fa8663b3c467c68bbbe | 5d5db291939b75ec07253c203b103fd9f515fbd2 | refs/heads/master | 2023-07-21T06:40:08.071685 | 2023-07-10T13:32:09 | 2023-07-10T13:32:09 | 96,300,452 | 5 | 0 | null | 2023-09-08T13:36:07 | 2017-07-05T09:11:41 | Python | UTF-8 | Python | false | false | 2,339 | py | # Author:
# Lorenzo Monti <lorenzo.monti@inaf.it>
import re
from socketserver import ThreadingTCPServer
from simulators.common import ListeningSystem
servers = [
(('0.0.0.0', 13200), (), ThreadingTCPServer, {}),
]
class System(ListeningSystem):
commands = {
'set IF_switch_config': 'set_IF_switch_c... | [
"noreply@github.com"
] | discos.noreply@github.com |
54e9459c1b681d912fbe6e5ccad6d73b8cc6d3e8 | 0ff483891f3b0008b0384f95d1045e635934fa37 | /pre_kakao.py | 9400f3159bee5dff96263208ca4616277dcb7767 | [] | no_license | wjb127/predict_stock_price | 0646475c090f4ca931d45a62da95f80d1120704e | d44f157cb46d2366911c71bea54d697fe9cd0be8 | refs/heads/master | 2023-06-12T00:12:28.265197 | 2021-07-06T02:12:48 | 2021-07-06T02:12:48 | 383,311,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,410 | py | import torch
from torchvision import transforms, datasets
from torch.autograd import Variable
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
# 랜덤 시드값
torch.manual_seed(77)
# 활성화 함... | [
"wjb127@naver.com"
] | wjb127@naver.com |
00c75c7761a99938db0045e90ef7b8228a83fa45 | 9c2a72534a269f7aa5f8106de0657f49112c92e3 | /upper.py | c0b16d59796da79b7395ffe4754812ead93f75a2 | [] | no_license | TonySteven/Python | 40f02d25ac3f8e3c81754828c826eb4229d6d71b | 567216212aedc546ea5583070e3664cd58046344 | refs/heads/master | 2023-08-17T20:36:07.111444 | 2023-08-07T10:13:35 | 2023-08-07T10:13:35 | 38,110,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2018/7/27 10:40
# @Author : StevenL
# @Email : stevenl365404@gmail.com
# @File : UUID.py
a = input("请输入字符:")
b = []
for n in a :
if "a"<= n <= "z":
b.append(n.upper())
# elif"A" <= n <= "Z" :
# b.append(n.lower())
elif n == " " :
... | [
"stevenl365404@gmail.com"
] | stevenl365404@gmail.com |
b1b4ec5b7ef30c526700e6d6dd317d13cb72b24e | 377ac4d28db18b3f24d4046e58564c11a0a4cb29 | /tasks.py | d21fa4d277de8991a098b176fe81bc5b9594ad7a | [] | no_license | sotchatzi/ACC-7 | 24b34d03ce58075fc56f6fd553f1e3acab3f1330 | cf51ec13975c48136b20066e0a69c4674f91e510 | refs/heads/main | 2023-01-01T01:45:31.192963 | 2020-10-23T10:58:21 | 2020-10-23T10:58:21 | 303,402,715 | 0 | 1 | null | 2020-10-20T16:45:20 | 2020-10-12T13:35:35 | Python | UTF-8 | Python | false | false | 1,327 | py | import subprocess
import pandas as pd
from glob import glob
from celery import Celery
app = Celery('tasks', broker='amqp://js:js@192.168.2.162/jsvhost', backend='redis://:js@192.168.2.162/0', task_track_started=True)
WORK_DIR = '/home/fenics/shared/murtazo'
GMSH_DIR = WORK_DIR + '/cloudnaca'
AIRFOIL_DIR = WORK_DIR + ... | [
"g478551654@gmail.com"
] | g478551654@gmail.com |
6576e116871b8d685309cd0229812abdd8c309f9 | 53f808dbd19355abf25fe7f000958dffa31593ce | /price/admin.py | daaf6a1e9c8c5e16ce0c40f93db02c1531de1f23 | [] | no_license | qurg/chain | f43df017d75b52c1baf43ebad913db0e881f4747 | 1a969acfe601d57ade22b912c4028ee07c82363d | refs/heads/master | 2020-05-29T21:46:11.413607 | 2019-06-14T00:55:18 | 2019-06-14T00:55:18 | 189,391,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | import time
from django.contrib import admin
from django.contrib.admin import ModelAdmin
# Register your models here.
from price.adminForms import InquireForm, QuoteForm
from price.models import Inquire, Quote
class QuoteAdmin(admin.StackedInline):
model = Quote
form = QuoteForm
fieldsets = (
(N... | [
"qurg@outlook.com"
] | qurg@outlook.com |
f781104f0fd71fcc98d41aeec72b8325ec220ab3 | 8d0fc0a476f7de69e4dad9c7279e379eb67d3dba | /OpenGL/Geometry/PointCloudTest.py | c25b7096824f9f7ad4d57c950c1a5e088e7c4592 | [] | no_license | coderbyheart/hsrm-mi-cg | 485996c6361e4b96f149efb5120e1f5fb5ea3004 | 1c6ff5e94eb6e821798975cd970e3247a488c171 | refs/heads/master | 2021-01-23T18:49:43.876739 | 2012-01-30T16:09:41 | 2012-01-30T16:09:41 | 2,681,057 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # -*- coding: utf-8 -*-
import unittest
from PointCloud import PointCloud
class PointCloudTest(unittest.TestCase):
"""Unittests für PointCloud"""
def test_wuerfel5(self):
pc = PointCloud()
pc.readRaw('data/wuerfel5_points.raw')
bb = pc.getBoundingBox()
self.assert... | [
"m@tacker.org"
] | m@tacker.org |
3efab5071a2ea200eb632218546c7f35d498b77e | 44431ab9299367df80667fc5e7b38c0dd916bf98 | /Django/mainRandomWordGenerator/mainRandomWordGenerator/settings.py | 8ca379a0bc589320e2f8cb692bb54f6835fb9728 | [] | no_license | isoetandar/DojoAssignments | 14df2b0cefe08be8f39975c6ffa1a617dfba243c | ef4e6d75b77d69ccffc0eca91e9083e6e034d4dd | refs/heads/master | 2020-03-11T15:33:04.825745 | 2018-07-06T00:41:32 | 2018-07-06T00:41:32 | 130,087,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | """
Django settings for mainBlog project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"irwansoetandar@Irwans-MacBook-Pro.local"
] | irwansoetandar@Irwans-MacBook-Pro.local |
476e1aaa13a5d3caf85e716770bd3a375b390ac8 | 4a427ec26d3734e3c8ffa92728d36fe1b9ae200f | /torch/01-intro.py | dd037586a8dd28ea8755888e256fb322edb5d930 | [
"MIT"
] | permissive | ShixiangWang/MLnotes | 0c82a777788d3866048ab12a5d965aa18285e305 | 10ef8b0be51c3e7eb1973a30410f0501f43db21e | refs/heads/master | 2021-03-12T02:44:38.724062 | 2020-12-27T16:44:25 | 2020-12-27T16:44:25 | 246,582,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | # source: https://pytorch.apachecn.org/docs/1.4/blitz/tensor_tutorial.html
# Run in R start
reticulate::use_python("/Users/wsx/Library/r-miniconda/bin/python", required = T)
# reticulate::repl_python()
# Run in R end
from __future__ import print_function
import torch
# TENSOR ----------------------
# Empty tensor
x... | [
"wangshx@shanghaitech.edu.cn"
] | wangshx@shanghaitech.edu.cn |
8b4e5247879570909d58dd7ce8f1c75b67082f07 | 7bc8807c261adccb2e71c97e01ce48b8c13d529d | /Day_14_01_RnnJenaClimate.py | 9e47d0fdf370ad1bbe5a34b779cdaddfec9b524a | [] | no_license | yunhui21/CB_AI_3_NLP | 4e090f028123621978164ad29d9789767c1ec0b0 | 20485ce5bae472d1b63b58adf69207a2837bb96a | refs/heads/main | 2023-01-30T11:10:41.385293 | 2020-12-17T03:56:53 | 2020-12-17T03:56:53 | 309,216,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,821 | py | # Day_14_01_RnnJenaClimate.py
import pandas as pd
import tensorflow.compat.v1 as tf
import numpy as np
tf.disable_eager_execution()
# 문제
# 파일에 있는 'T(degC)'컬럼을 RNN 알고리즘을 사용하지 말고
# 리니어 리그레션 알고리즘을 평균 오차를 계산하세요.
# baseline model
# print('mae:', np.mean(np.abs(degc[:-144]-degc[144:])))
# 문제
# jena파일에 있는 온데 데이터를 RNN 알고리즘... | [
"system290!"
] | system290! |
672536c5a78c1821ed185f29deec88d12a96c027 | 4a59725520ec67cd3223ca79406a5c05263b8174 | /venv/bin/numba | 88963b566e8c81ce2d2fd66c61c6b11e08fd280c | [] | no_license | cem-ergin/yapayzeka | 5dc9d9b8ed092e0c61c8de3bb1f8daf3af299b8d | 13a0e37e3d88a8588bd3c409703e3499b5f332b4 | refs/heads/master | 2020-05-24T05:26:29.324399 | 2019-05-29T16:35:25 | 2019-05-29T16:35:25 | 187,115,522 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | #!/Users/cemergin/PycharmProjects/yapayzeka/venv/bin/python
# -*- coding: UTF-8 -*-
from __future__ import print_function, division, absolute_import
from numba.numba_entry import main
if __name__ == "__main__":
main()
| [
"cemergin@Cems-MacBook-Pro.local"
] | cemergin@Cems-MacBook-Pro.local | |
b803320c41ef1cc5d7a03074a2f5d6ec58e89096 | 2dbe308f30eb82043d3b366ffa176312b0133000 | /apps/accounts/urls.py | 123eda75119040a6bf6fc2c2c83977a7bd358c47 | [] | no_license | begalievv/food_blog | f923038f93cbe52c417e364b12872a92de91192d | 7cc32f90ba45cd25c7299920551a1d00abd26108 | refs/heads/master | 2021-02-04T22:36:12.853155 | 2020-03-11T13:18:30 | 2020-03-11T13:18:30 | 243,717,061 | 0 | 0 | null | 2020-02-28T11:56:43 | 2020-02-28T08:45:54 | CSS | UTF-8 | Python | false | false | 1,112 | py | from django.urls import path, include
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
# path('login/', views.user_login, name='login')
path('cabinet/', views.CabinetView.as_view(), name='cabinet'),
path('register/', views.register, name='register'),
path('login/... | [
"begaliev0020"
] | begaliev0020 |
a8bff56768deed40c1ce40e95c7cd3fc9a647f51 | ea42b426901e76f31a97112fc147f6855c422de2 | /plugins/CPS_ALID_P1_SD5.py | b91692544c355548f03794ce0953e6c9c17d7e43 | [] | no_license | SidduSai/CPS-data-retrieval-and-manipulation | 51d426eee49ace8dd066e0bacfbc361388588e6e | d890a247ca8e12b12d07b24f56d16f7cd355b028 | refs/heads/master | 2021-07-05T20:41:02.855279 | 2017-10-01T16:48:26 | 2017-10-01T16:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from data import Pump, PLC
from data import LIT
import time
name = 'CPS_ALID_P1_SD5'
def isViolated():
p101 = Pump(1, 101)
p102 = Pump(1, 102)
lit301 = LIT(3, 301)
p1 = PLC(1)
if lit301.isLow and p1.isNotOne:
time.sleep(12)
if all(p.isOff for p in [p101, p102]):
retur... | [
"noreply@github.com"
] | SidduSai.noreply@github.com |
2b330045f3055f985f7d6be73ed716a8c547a2b8 | a309d0b9e7a0dd23764125892d59de4911d9186c | /Sipder_origin.py | 0e60dfa0895ffafc34dbb4bbe3132401ce010811 | [] | no_license | fengx1a0/EmojiSipder | 7d8a24831ce8e025128793cf855b3e4576c938f5 | b3be463d233323f1f344eb8dd2fe23947a0d97bc | refs/heads/master | 2023-08-25T21:02:03.982817 | 2021-10-14T16:46:22 | 2021-10-14T16:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import requests
import re
import os
import time
import sys
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36"
}
def get_info(_id,page_num):
url = "https://fabiaoqing.com/tag/detail/id/%d/page/%d.html"%(_id,1)
res = requests... | [
"m16605296117@163.com"
] | m16605296117@163.com |
4a21840fb38bac5c76ca8f9866e2127559e177c1 | a4a236c776b7c51ee0022fbf9e40296047f3fbb2 | /ll_roman_to_int.py | d176d68c48077af86e36e3a94db1672b503ac094 | [] | no_license | NataliyaPavlova/LeetCode | 28349b4e4b8f08524b462fefc385c0c781cf447a | 2ee1d892ab7cc24804e22f653b6641562de637cf | refs/heads/master | 2020-04-04T17:17:23.663085 | 2019-01-25T08:58:09 | 2019-01-25T08:58:09 | 156,114,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | '''
Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.
'''
class Solution(object):
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
answer=0
roman_dict={'I': 1,
'V': 5,
... | [
"nataliya.s.pavlova@gmail.com"
] | nataliya.s.pavlova@gmail.com |
1ced1e5bd8b38f823f7c72e74c340613a4c11f63 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/lib/python3.6/site-packages/pathspec/tests/test_gitignore.py | af1ee7a82daa8a6f90fb940d7c15e127faf3eb7e | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 5,066 | py | # encoding: utf-8
"""
This script tests ``GitIgnorePattern``.
"""
import unittest
import pathspec.util
from pathspec import GitIgnorePattern
class GitIgnoreTest(unittest.TestCase):
"""
The ``GitIgnoreTest`` class tests the ``GitIgnorePattern``
implementation.
"""
def test_00_empty(self):
"""
Tests an empty... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
2c84e1184dcff48a9f0361defaecc42d83e013f5 | 3136e4218e913212fda9c64b68155d4dd203ee2a | /UMAP_paper.py | aa9a9cd577ab9a37ff34d8bd1d036f69c2f7e36f | [] | no_license | anhlpham/kmeans_Femodel | 8ff27c94c8c25f3bac5a0064a70da3b04cadc53b | 8588f190ea06321224f59929a0e922bc653b962a | refs/heads/master | 2021-07-18T06:19:24.545755 | 2020-07-09T15:36:31 | 2020-07-09T15:36:31 | 191,383,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # -*- coding: utf-8 -*-
"""
Created on %(date)s
@author: %(username)s
"""
import numpy as np
from sklearn.datasets import load_iris, load_digits
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
from scipy.io import loadmat
fro... | [
"noreply@github.com"
] | anhlpham.noreply@github.com |
e914343fa85ca6d3f23aeda9938362687fbe0344 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc146/abc146_c/8937880.py | ee9c12a0ce700fce574a65e29313213efa3efaa3 | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | A, B, X = map(int, input().split())
minN = 1
maxN = 10**9
ans = 0
while(1):
N = (minN + maxN) // 2
n = A*N + len(str(N))*B
if n <= X:
ans = N
if minN == maxN:
break
if n < X:
minN = N+1
else:
maxN = N
print(ans)
| [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
034fbb107abd9dc6e34d47c3bcf37d032990de10 | ba22c05a40f965d5aae44a3d1a909fb23195645a | /test_hvlfilereader.py | b9d35962ddf521c556d1c2e66a385b2f0e31c12c | [] | no_license | bernienor/hvlreader | dd6021c27f4ea092d53345c999b7074c37719bd5 | 9fee58c2946bac24fcf0c888bb596fc7175c86a4 | refs/heads/master | 2020-03-13T19:49:30.756512 | 2018-05-16T13:06:20 | 2018-05-16T13:06:20 | 131,261,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # Unittest module for hvlfilereader
import unittest
import hvlfilereader as hvlfr
import numpy as np
'''>>> dir(self.fr1)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__',
'__eq__', '__format__', '__ge__', '__getattribute__', '__gt__',
'__hash__', '__init__', '__init_subclass__', '__le__', '__lt__',
'__m... | [
"bhhe@hvl.no"
] | bhhe@hvl.no |
30ac3811a3b1bd1fe781ad76f925c49dc1176111 | 84888c7f9d6d7195917053b2d14b2d30e1e5e375 | /stress_testing/tcp_syn_flood.py | 165848ca4522c0e0c341fb99281fc5f23da65896 | [] | no_license | codeandrew/offensivesecurity-python | a8d48c565d2434430e6f0e3069385b19dfbdef60 | 364ff7233c31a4a853f9ef185f96078e50c7bef4 | refs/heads/master | 2023-08-17T11:23:44.852329 | 2023-08-02T14:54:37 | 2023-08-02T14:54:37 | 242,969,080 | 12 | 5 | null | 2023-09-04T16:45:25 | 2020-02-25T10:10:59 | Python | UTF-8 | Python | false | false | 628 | py | from scapy.all import *
import sys
def main(target_ip, target_port, rounds=10_000):
print(f"Target IP: {target_ip}")
print(f"Target Port: {target_port}")
print(f"Rounds: {rounds}")
# Define the payload to send in the packets
payload = "A" * 1024
# Create a loop to send a large number of packe... | [
"jeanandrewfuentes@gmail.com"
] | jeanandrewfuentes@gmail.com |
ed59c8429e16034cc54de92822ca1098379ed85b | ea9cdb2e9a4d47d4f5e4141dbdb271d57133a20d | /input.py | d6bb96a93a6553a5ec42ad6705b4e87dbfe4f2ad | [] | no_license | ActronikaSAS/libtup-python | 1295a1d06e600f63874c1b138f249b6c1492c58f | d81c76e8846708f56c4c8f895b6200470a7e2a57 | refs/heads/master | 2020-12-15T13:33:47.590182 | 2018-03-21T09:05:56 | 2018-03-21T09:05:56 | 235,119,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | INT32_MAX = 2**31 - 1
INT32_MIN = -1 * 2**31
class Input(object):
def __init__(self, id=0, value=0):
self.id = id
self.value = value
def __str__(self):
return "<id: {}, value: {}>".format(self._id, self._value)
def __eq__(self, other):
return self._id == other._id and sel... | [
"jeremy.cheynet@actronika.com"
] | jeremy.cheynet@actronika.com |
0a0bbbc2c5c386530dc1a01181c8d65e714baa27 | b39146ab2217325034b197a1398a421d9121b5ea | /DB.py | 6fbd069796528110508776881079f69972edfcf0 | [] | no_license | CalirDeminar/WHHistory | 11ca8523f5b9f399d0812f1a1c3e0aae84868beb | 7e5238ec2aa0c3f62bb25ede204df895395f3274 | refs/heads/master | 2023-05-31T02:10:36.919252 | 2021-06-19T16:21:34 | 2021-06-19T16:21:34 | 366,289,744 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | import sqlite3
import requests
import json
import datetime
import Transfer
def split(array, n):
return [array[i * n:(i + 1) * n] for i in range((len(array) + n - 1) // n)]
class DB:
@staticmethod
def set_up_tables(db):
db.execute('''CREATE TABLE IF NOT EXISTS corps (id number, name text)''')
... | [
"edward.firespinner@gmail.com"
] | edward.firespinner@gmail.com |
069ed29ea5a3a37cd84c94ed6edec5292f7aae54 | fe43fda2fa2d70f098d42d8a66498ab89d6dfcec | /projdemo/projdemo/wsgi.py | 2d09f247e93c7b20bd4c04c4f6ef591fc115f0e6 | [] | no_license | Candy128x/chat-bot-dl | be5b0a711f579720744b9ce50b003b6ee0565670 | 5ebd0b1832be82a04947f12fd2da2f41e322e08a | refs/heads/master | 2022-12-12T16:55:05.296789 | 2019-10-27T17:32:45 | 2019-10-27T17:32:45 | 217,884,328 | 0 | 0 | null | 2022-12-08T01:03:48 | 2019-10-27T16:35:46 | Python | UTF-8 | Python | false | false | 393 | py | """
WSGI config for projdemo 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('DJANGO_SETT... | [
"sondagarashish@gmail.com"
] | sondagarashish@gmail.com |
e67db8d886f24e7f5427f3b95f18f2dd7b50a12c | ce73253b1f80678d27e04f65577d1e24eb1587be | /ScrabbleGame.py | 801a3b588c297bdfc66cc27e691179a4a2926a28 | [] | no_license | karolminuth/Scrabble | 011f7c66f139c6905bddb5e7aafbddba437e3be0 | c0048f6c612035aa6b425a0275c0d94c31be19e9 | refs/heads/master | 2020-04-12T23:30:39.312961 | 2018-12-22T15:26:11 | 2018-12-22T15:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | import random
class Scrabble:
def __init__(self, f):
self.SCRABBLES_SCORES = [(1, "E A O I N R T L S U"),
(2, "D G"),
(3, "B C M P"),
(4, "F H V W Y"),
(5, "K"),
... | [
"karolminuth@gmail.com"
] | karolminuth@gmail.com |
7c9e003239f263252fb0adea540bb5e1962cd733 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /src/sims4communitylib/enums/common_species.py | eacddcd09423a491b7c32754f111f81175abc65a | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from sims.sim_info import SimInfo
from sims4communitylib.en... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
a10701bb04036178579d66ffefcb5e613494d8ab | 8540476da336da252dc9b00b66fb8b666981cee6 | /Pattern_25.py | d83bf2de5436d1981beae259ad49acc24cde7628 | [] | no_license | Sagar-VV/Patterns | a54f3cc2a203b565d5f267109b44377b30f411bc | 5891c17c86b0e4547d345ee45fe0f7daa8aaf295 | refs/heads/main | 2023-03-05T01:53:33.935021 | 2021-02-20T08:45:59 | 2021-02-20T08:45:59 | 336,732,347 | 0 | 1 | null | 2021-02-20T08:46:00 | 2021-02-07T07:52:49 | Python | UTF-8 | Python | false | false | 364 | py | # This was the required output, Please find the code below for the same.
# 1
# 2 2
# 3 3 3
# 4 4 4 4
# 5 5 5 5 5
def numpat(n):
for i in range(n,0,-1):
for y in range(i - 1, -1, -1):
print(' ', end=' ')
for z in range (n-i+1):
print(n-i+1,... | [
"noreply@github.com"
] | Sagar-VV.noreply@github.com |
413f0b7b9ab12d75b76ef41418717665a490a242 | d489eb7998aa09e17ce8d8aef085a65f799e6a02 | /lib/modules/python/collection/osx/keychaindump_decrypt.py | 64015ea23ade2de15835ef86ce40b32770ac9187 | [
"MIT"
] | permissive | fengjixuchui/invader | d36078bbef3d740f95930d9896b2d7dd7227474c | 68153dafbe25e7bb821c8545952d0cc15ae35a3e | refs/heads/master | 2020-07-21T19:45:10.479388 | 2019-09-26T11:32:38 | 2019-09-26T11:32:38 | 206,958,809 | 2 | 1 | MIT | 2019-09-26T11:32:39 | 2019-09-07T11:32:17 | PowerShell | UTF-8 | Python | false | false | 3,432 | py | class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'Sandbox-Keychain-Dump',
# list of one or more authors for the modu... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
26612a2b9ce408c47f5b491ad96a276677aaa755 | e4c10bdbbc1dc31fbcff7e46f1c5df1279aa6bac | /plot_energies.py | d43631cffb3a537ac46e4e4ff1b4ab56a89b72c1 | [] | no_license | Yliu566/Uselfuls_Scripts | 898dbf17c8de3058002451178737d1ff25bc2be0 | c8e6296d54dfa57d7afb9a67803c228368741e36 | refs/heads/master | 2021-05-21T18:20:47.420650 | 2020-11-13T14:13:15 | 2020-11-13T14:13:15 | 252,751,186 | 0 | 0 | null | 2020-04-03T14:10:39 | 2020-04-03T14:10:38 | null | UTF-8 | Python | false | false | 1,312 | py | #!/usr/bin/python
# Anna Tomberg
# Plot info from orca run using *.out file
# Last updated : 02-12-2015
import sys
import re
import matplotlib.pyplot as plt
from matplotlib.ticker import FormatStrFormatter
# ------------- GET INPUT FILE ------------- #
if len(sys.argv) <= 1:
name = raw_input("Enter path to input: ... | [
"anna.tomberg@gmail.com"
] | anna.tomberg@gmail.com |
c1f9bdee162eb8870f5e99d07e1132ddbc03d481 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14019.py | 78da2db51c32750262ee6905da1673496452c3d7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # If comparison statements in Python
random.randint
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
97cf5f474dbcb921ff3bb64b3d27c55e10d7af24 | c0aa558e50e03250a7b397536aaa5a50cd6adb1d | /abstract/models.py | 987d640bae74e6aafc8169671add22273bdd999a | [] | no_license | Stevvvvvi/djangoapifinal | 04264ee0de4fa0d116428b04c2ab20715b8a5530 | 9eca3111f6bb2177a01cadd6b0f38222f6ab85a3 | refs/heads/main | 2023-07-26T21:09:24.487022 | 2021-08-22T10:33:45 | 2021-08-22T10:33:45 | 396,653,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from django.db import models
from django.utils import timezone
class AbstractModel(models.Model):
created = models.DateTimeField(editable=False)
modified = models.DateTimeField(editable=False)
def save(self, *args, **kwargs):
''' On save, update timestamps '''
if not self.id:
... | [
"lly363893886@gmail.com"
] | lly363893886@gmail.com |
19638813a0f884202f522998d7ee776521014b31 | ba712db29e8bf09b506ec4c1adbc2b3eeb359098 | /InputOutputOperations/argv_demo.py | a60ab784f9615d7fdbd6fc258d10286f70ccb271 | [] | no_license | Prog-keith/Learning_Python | a7c20b6e42fb59282d0aba109bc70dc0bb8bf553 | c949862c8817e6ac73bb41ff8ad7a7811a432870 | refs/heads/main | 2023-08-27T21:37:49.107754 | 2021-10-14T11:39:38 | 2021-10-14T11:39:38 | 416,299,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | '''Accept command line arguments to the module'''
program = 'agrv_demo.py'
source = 'default.src'
dest = 'default.dst'
def show_config():
print('Here is the currant configuration : ')
print('Program : %s' % program)
print('Source : %s' % source)
print('Destination : &s' % dest)
if __n... | [
"noreply@github.com"
] | Prog-keith.noreply@github.com |
683dd671bc35020db12458343d8ca3a19d8b0fdb | 3090af6950b8edb465c5e67ac5a88bf6428330f4 | /ESP32/main_sendRandom.py | 33bd84c35132ea80749bfc51d03df502451991a1 | [] | no_license | NickBaik/SAP_IoT_Test | 8f63b8d54f940d7f61b43716b0dd5f3dcd95291b | f505b3aaf742169ac3be30812a2bcda40cba2149 | refs/heads/master | 2021-04-12T12:04:24.024763 | 2018-04-13T01:56:39 | 2018-04-13T01:56:39 | 126,653,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import network
from time import sleep
from umqtt.simple import MQTTClient
from machine import Pin
from dht import DHT11
import random
station = network.WLAN(network.STA_IF)
station.active(True)
station.connect("Baek","82388238")
sleep(5)
SERVER = '192.168.43.251'
CLIENT_ID = 'ESP32_DHT11_Sensor'
TOPIC = b'temp_humid... | [
"sollip1228@gmail.com"
] | sollip1228@gmail.com |
eba8df431abff8bd3ccc3b669c965283f356be6d | 1c6db771456c0ad1c09d7aebf8c202cdd3f20cb8 | /src/driver/chrome_driver.py | 61a1092763ddc54aa0fc1946c513554ac941c5c0 | [] | no_license | dicebattle/DynamicCrawler | e964badf57d127e0d0b536e92c5810c9184aad93 | 3c9e0b490c44280ffb61e598b14761d237de2334 | refs/heads/master | 2021-01-23T01:08:32.730729 | 2017-06-09T17:43:07 | 2017-06-09T17:43:07 | 85,880,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | import os
from selenium import webdriver
from driver.abstract_driver import AbstractDriver
class ChromeDriver(AbstractDriver):
def load_webpage(self, url):
self.driver.get(url)
raw_html = self.driver.page_source
def __del__(self):
super().__del__()
self.driver.quit()
d... | [
"dicebattle@gmail.com"
] | dicebattle@gmail.com |
fd993c1ce8b8ab1eac686e7002a4c8c17b291d47 | 727b31431a9a5cf5c2c7c9c98cf610b274cc9c9a | /WIFI_similarity/Init_process_wifi.py | 2712e29b1ca39de993e537db159e359bdeba48e4 | [] | no_license | wangfengfighting/GPS_Similar | 46c9b97c92d055a7c7d96288ae11727c7ecfe927 | 0f1d5da6820782284c6e90eeda83d4e3fb73a19f | refs/heads/master | 2021-01-21T04:59:24.846677 | 2016-07-26T03:17:08 | 2016-07-26T03:17:08 | 44,645,011 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # coding: utf-8
__author__ = 'Administrator'
from getDir import GetDirName
import os
import json
import numpy as np
import sys
def get_fenlei_user():
wifi_path=[]
getdir=GetDirName()
parent_path = os.path.dirname(os.getcwd())
AllUserFiles,AllFiles,other=getdir.getUserFiles(parent_path+os.sep+'starlog'... | [
"757001119@qq.com"
] | 757001119@qq.com |
574ef5e88ee135257b5f436296d7e5aa2e4dc576 | f87c0fabadacc1db3892de6aae6792e870866999 | /DjangoDemo/wsgi.py | 621037ca69a528ad7c44d9f4dd4f3e4365f3b914 | [
"Apache-2.0"
] | permissive | wangjianxiandev/DjangoDemo | c263c013bee615e21e9878af5dec59202a4260b8 | 36dc24f64745b3bec1aedf857525aaa9961a3e46 | refs/heads/master | 2022-12-23T20:47:59.755777 | 2019-05-10T00:08:37 | 2019-05-10T00:08:37 | 155,325,131 | 0 | 1 | Apache-2.0 | 2022-06-21T21:30:02 | 2018-10-30T04:37:58 | Python | UTF-8 | Python | false | false | 430 | py | """
WSGI config for DjangoDemo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from dj_static import Cling
from django.core.wsgi import get_wsgi_application
os.en... | [
"jianxianwang198@163.com"
] | jianxianwang198@163.com |
72459b0f1f791bab9d41e5408b39c9a351bd2ddc | c92d6e56c9859d80a57c43898123b4ae6b7128e0 | /chatbot_tutorial/migrations/0015_allcalls_user.py | 07c4624c8331ab96b75b72b5ff4ca1dc14c5995b | [
"MIT"
] | permissive | Jishin4477/Djangobot | 566ee8fabdf443b8bded9c82e8808a26317364a2 | f7a4d78b8d12253a8e6726931c85ee76f436d440 | refs/heads/main | 2023-06-08T02:59:03.707985 | 2023-05-31T06:43:33 | 2023-05-31T06:43:33 | 354,270,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-02 15:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depend... | [
"jishinc@growthplug.com"
] | jishinc@growthplug.com |
ae46f6212c12031979831196073e280f171689bd | 082adc8ad69722c1d927e7a3a799a8667cf51a9c | /tfs/core/layer/fc.py | bfe77246e9b93474fa0dfae7482082f2a1d7fe3b | [] | no_license | crackhopper/InitCNNKernel | c04164365367a71e706c46391ce6a9b51b0f9793 | d0e5e8def9ef01dd0f25d191fc9f9da9acab6d23 | refs/heads/master | 2021-09-04T02:21:30.971073 | 2018-01-14T15:56:29 | 2018-01-14T15:56:29 | 115,786,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | import tensorflow as tf
import numpy as np
import tfs.core.initializer.init_func as init
from tfs.core.layer import ops
from tfs.core.layer.base import Layer
class FullyConnect(Layer):
def __init__(self,
net,
outdim,
activation = ops.relu,
name=None,
... | [
"Xiang Li"
] | Xiang Li |
6ad85fa1a294e558957c5db9cd527a55dc2c2245 | 8d863809a4e9a1a907e2e12845d5b7dad7353035 | /tests/test_my_custom_player.py | 9322b854f59bc894fc66b19bd00de9fdb5012fc8 | [
"MIT"
] | permissive | AekachaiTang/AINDP3 | c2cbba5832f3115213edd413cf422a942111bbbf | b50a3d522f4e7a2b74b294a141804873ea8d8182 | refs/heads/master | 2021-04-12T16:50:01.096182 | 2020-03-22T08:54:01 | 2020-03-22T08:54:01 | 249,093,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py |
import unittest
from collections import deque
from random import choice
from textwrap import dedent
from isolation import Isolation, Agent, fork_get_action, play
from sample_players import RandomPlayer
from my_custom_player import CustomPlayer
class BaseCustomPlayerTest(unittest.TestCase):
def setUp(self):
... | [
"noreply@github.com"
] | AekachaiTang.noreply@github.com |
61ddc0bcbbe298d39cd724efda1b2e1fef76e38a | 92d2e5f894c4ad714497246f2ebfb669f195f5c6 | /PageSpider/utilities/database_utilities.py | 2548027b12cbacf79e566058867bd36a26189e25 | [] | no_license | glennsobs/glennsobs | 3b800c609c1b14883f36e2d81bfb50f3d2f0b799 | d0307371102436c1ae151e9f6a8813e1f56b1a29 | refs/heads/master | 2020-07-03T05:59:46.259167 | 2019-09-08T21:04:49 | 2019-09-08T21:04:49 | 201,808,020 | 0 | 0 | null | 2019-08-16T01:03:23 | 2019-08-11T19:43:47 | null | UTF-8 | Python | false | false | 197 | py | def create_database(database_path: str):
#todo: generate database
pass
def save_words_to_database(database_path:str, words_list: list):
#todo: save the words to the database
pass
| [
"54005758+glennsobs@users.noreply.github.com"
] | 54005758+glennsobs@users.noreply.github.com |
497a37accb9bca07ff11a2b40b7c4eef68a23c2b | 4ffa02a24fcfc553c767ce581f8a9c1433cdda18 | /Algorithms on Graphs/week2_graph_decompostion2/1_cs_curriculum.py | 780d20c599b4fb68cc2fa1e8924487c595acd3c6 | [] | no_license | chensandian/Coursera_Data_structure_and_algorithms | 9198e24f3f73968e30fb0d5d01bb1ab3a7a159fd | ff166b743a6efd7d252397a157a2613f3beb73cd | refs/heads/main | 2023-07-15T07:52:29.116465 | 2021-08-23T00:13:44 | 2021-08-23T00:13:44 | 385,505,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # Uses python3
import sys
def acyclic(adj):
visited = [0 for _ in range(len(adj))]
rec_stack = [0 for _ in range(len(adj))]
for i in range(len(adj)):
if not visited[i]:
if dfs(adj, i, visited, rec_stack):
return 1
return 0
def dfs(adj, x, visited, rec_stack):
... | [
"noreply@github.com"
] | chensandian.noreply@github.com |
3ab2e88cab6ef1dcb9caf2b4448277d18674f61f | 2d307cb2da18f35e2d4e73f6e042a48cdcd8af5e | /finder.py | c6b440ead672bdf61860f237a09a569b0960c9b5 | [] | no_license | andrewcunningham33/Where-s-Waldo-Finder | f6c1ca64e8aadf5c9ceb0892a2528ae6cf7bffb0 | be64784c1a2375372410342db9a744a06d98cd03 | refs/heads/master | 2022-07-26T00:35:26.667876 | 2020-05-19T13:10:30 | 2020-05-19T13:10:30 | 265,250,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # import the necessary packages
import numpy as np
import argparse
import imutils
from matplotlib import pyplot as plt
import cv2
# Use command line arguments to read puzzles
ap = argparse.ArgumentParser()
ap.add_argument("-p", "--puzzle", required = True,
help = "Path to the puzzle image")
ap.add_argument("-w", "... | [
"noreply@github.com"
] | andrewcunningham33.noreply@github.com |
25e0f060c6bbb381ef0adce82ef475fb49accea2 | 7a23870e9b0b56b112f634d26760282ff7a4f46c | /Projects/Archived Tk code/From extensions folder/Pmw/Pmw_1_3/contrib/PmwFileDialog.py | b11001ca1e80505bdb49d27b9cd04f81218da196 | [] | no_license | leo-editor/leo-editor-contrib | 0c671998c4ec7fd7c4ce890a201395afe340481b | 28c22721e1bc313c120a8a6c288893bc566a5c67 | refs/heads/master | 2023-06-25T04:28:54.520792 | 2023-06-14T20:18:12 | 2023-06-14T20:18:12 | 16,771,641 | 6 | 6 | null | 2023-06-09T11:26:42 | 2014-02-12T15:28:36 | Python | UTF-8 | Python | false | false | 14,836 | py | #
__version__ = '$Id: PmwFileDialog.py,v 1.1 2007/12/13 16:06:01 edream Exp $'
#
# Filename dialogs using Pmw
#
# (C) Rob W.W. Hooft, Nonius BV, 1998
#
# Modifications:
#
# J. Willem M. Nissink, Cambridge Crystallographic Data Centre, 8/2002
# Added optional information pane at top of dialog; if option
# ... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
69b6c313d154bab481291751409ec6d20fb06afe | 1c8530ab4bbc6c4f842f374b623eb32f1e7670b1 | /App/PomApp/apps.py | 268a68f35a8029010500812df059c85d41d53425 | [] | no_license | moon05/pomodoro_todoList | 81aa5908c265e7f703b3cd924967b1201ba5a59f | d2417ecfb30041c924e53b7bac36744c1313801c | refs/heads/master | 2021-01-01T05:24:06.670644 | 2016-05-17T18:14:52 | 2016-05-17T18:14:52 | 57,882,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class PomappConfig(AppConfig):
name = 'PomApp'
| [
"amamun@u.rochester.edu"
] | amamun@u.rochester.edu |
efa55d788ff68fe0cf919b7a45220e24baccb822 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_25489.py | 0e0cbd91234b9936d47833c2c46fd67b71ab0056 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | # y = 3 (#This is not a comment)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
28b09522528bf2b49286473587332a3dea34ab4d | ba626e194e510cca0e0f52fb61b565522f129504 | /blog/basicapp/admin.py | 538bc1945ac946aac1b6086f66c0cda68009131c | [] | no_license | arungarg14/BLOG-DJANGO | f0e66d425dfb390c065f2198b1a2b595322cd6f0 | 4a5f322b7a4ffb9438c9ffec0eb4b1af288ca924 | refs/heads/master | 2022-01-05T04:37:36.631073 | 2019-06-05T10:01:15 | 2019-06-05T10:01:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from basicapp.models import Post,Comment
# Register your models here.
admin.site.register(Post)
admin.site.register(Comment)
| [
"arungarg1414@gmail.com"
] | arungarg1414@gmail.com |
b9c35bacbba1122e7bf5ad1531e085007384e51a | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderRegularContest/132/C.py | 3e94b88d37560e4a0f7c839099cf78a2907fed1a | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 1,979 | py | """
解説AC
変則dp
"""
# import sys
# sys.setrecursionlimit(10 ** 6)
# # for pypy
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
# import bisect
# from collections import deque
# import string
from math import ceil, floor
inf = float('inf')
mod = 10 ** 9 + 7
mod2 = 998244353
# from decorator import stop... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
069869c1802fa40cf5d5a5437907958a0bfa9e2d | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/nonNegativeInteger/Schema+Instance/NISTXML-SV-IV-list-nonNegativeInteger-enumeration-3-1.py | 0a96f1ef465b374d9e5d0791ff5bc20220dcdd83 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 695 | py | from output.models.nist_data.list_pkg.non_negative_integer.schema_instance.nistschema_sv_iv_list_non_negative_integer_enumeration_3_xsd.nistschema_sv_iv_list_non_negative_integer_enumeration_3 import NistschemaSvIvListNonNegativeIntegerEnumeration3
from output.models.nist_data.list_pkg.non_negative_integer.schema_insta... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
f0a01841cbcc2d97cfac73560a3bc1c1da27e906 | bebe6e9195dce6f47fe2f52a06ac85519ab969ac | /reverse_linked_list_3_pointer.py | 46ab8f6cce4bdfd720c819daefb65f082fd65761 | [] | no_license | jbobo/leetcode | f038ee934c4435a2f5a3e987b3d5b70b860a25e2 | 3894425256f8504f7c8f1903e47f670c6fa32a92 | refs/heads/master | 2022-11-05T07:19:48.897066 | 2020-06-24T01:20:25 | 2020-06-24T01:20:25 | 274,544,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python3
class ListNode:
def __init__(self, val, next=None):
self.val = val
self.next = next
def print_list(self):
pointer = self
print(pointer.val)
while pointer.next:
pointer = pointer.next
print(pointer.val)
def reverse_list(... | [
"nedbobo@Neds-MacBook-Pro.local"
] | nedbobo@Neds-MacBook-Pro.local |
77c42398c663140e51b3695cc0e08a4439cab5ed | a106fdc6041bd3484141d82838114e5908b1d6a2 | /lab12.py | 7ba10394a11392ce5079e517ff20562a39f082b7 | [] | no_license | cbailey234/gitlab | e04e134505da753e898a69b037377a384701ae7b | b7fca1e4b8035bf2bdc7dbd236f7d75a9fcd60ab | refs/heads/master | 2022-07-15T16:21:22.363501 | 2020-05-06T23:11:29 | 2020-05-06T23:11:29 | 260,273,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from datetime import date
today = date.today()
print("Today's date:", today)
print("EE 250")
print("Chris Bailey")
| [
"cbailey234@yahoo.com"
] | cbailey234@yahoo.com |
1a1f7e2e20c9814a1a315e305fffb0ffc7a62585 | 07d3655c652d4a89e344c4bb0a3d63e8cb34288d | /forel.py | 214e1cf25e4958061c4c4b11fc3fdb88af6398ee | [] | no_license | tsolakghukasyan/FOREL-clustering | a621231f157738cdaf694cd75398f65202985414 | 180c1d4e693a5c94ee0a59e1bbc696d921a62886 | refs/heads/master | 2020-03-19T00:07:03.492902 | 2018-05-30T14:23:27 | 2018-05-30T14:23:27 | 135,454,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | import numpy as np
def cluster(points, radius, tol=1e-1):
centroids = []
while len(points) != 0:
current_point = get_random_point(points)
neighbors = get_neighbors(current_point, radius, points)
centroid = get_centroid(neighbors)
while np.linalg.norm(current_point - centroid) >... | [
"tsggukasyan@edu.hse.ru"
] | tsggukasyan@edu.hse.ru |
779a4db766d92b742db3f5ff015980bf64b76e20 | d4b5f42050b0eee01134afeef806956df60c9746 | /Date 2 Day Converter.py | 56044c0120e924e7268e0ba41afe3b9c8e3f2d67 | [] | no_license | touhidrahman/my_first_ever_codes | 007c5fc4c287a4144ed962148417c73265285ecf | a373e972e9f84d8cb8d9d982e0623dcd3d9a9a61 | refs/heads/master | 2021-04-15T09:01:17.302880 | 2018-03-23T22:42:38 | 2018-03-23T22:42:38 | 126,545,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | """ DATE TO DAY CALCULATOR
Successful on 29 Feb 2012 - 1940 Hrs"""
def date2day(date):
"""This def converts date into flat day no. It adds leap year accordingly"""
x = date.split('-')
year = int(x[2])
month = int(x[1])
day = int(x[0])
if year % 4 == 0:
month_... | [
"touhidrahman1987@gmail.com"
] | touhidrahman1987@gmail.com |
a99e5fd938668998f40d71595197fe4eabfea880 | 7cd36fa026bb922e438905819e97d7ed208dc49e | /examples/advanced/thinplate_morphing.py | d0515987197e12cfdcdd0e91e7e65d6ca9ab8b07 | [
"MIT"
] | permissive | lxychuanhai/vtkplotter | b267bfcbbee5c7733ac98f5327e311c9529c74b1 | bc1b8b8821095263a46bba20ca345cab1d70cc42 | refs/heads/master | 2020-11-25T15:25:33.597049 | 2019-12-17T18:49:05 | 2019-12-17T18:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """
Warp the tip of a mesh using Thin Plate Splines.
Red points stay fixed while a single point in space
moves as the arrow shows.
"""
from vtkplotter import *
mesh = load(datadir+"man.vtk").normalize()
meshd = mesh.clone().decimate(N=100) # a heavily decimated copy
sources = [[0.0, 1.0, 0.2]] # this point moves
... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
23e8fec245ac80d5a5ad58bdf2aad8d3e7bb5bd5 | 5e78e4eb81af0bbee63391b501cb771bbeb65d48 | /config.py | 0e18a1f8574a5a49a21a0a0b276bb1b2176ea695 | [] | no_license | ArvindRamachandran14/TAC-2.0 | 7479e451bcc3edb1360b42dbbccf313268a6be80 | 13c252c99be69f0f7c23c523ecd53e2707057b10 | refs/heads/master | 2023-03-20T08:09:21.930630 | 2021-03-09T06:58:00 | 2021-03-09T06:58:00 | 318,014,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import json
class Config():
"""class that holds the PID parameters for humidity control loop"""
def __init__(self):
self.cfgFile = 'pH2O_PID.json'
self.cfg = json.load(open(self.cfgFile,'r'))
self.pH2O_P = self.cfg["pH2O_P"]
self.pH2O_I = self.cfg["pH2O_I"]
self.pH2O_D... | [
"aramac13@asu.edu"
] | aramac13@asu.edu |
1d94a7aaf0160f003ff3934bba18e8f21ae50052 | 69a576aa60918b3b846963da2238931468e354ab | /utils/spatial.py | 48c11f134472aad99921594a9b5bfddc25d536b5 | [] | no_license | parallel-ml/stand-alone | 3d04a31d442bf422d67d2f0a1f03eb04bdb841c7 | c86ce0d632188e9e16fb5539a7e2baed2c40ecdb | refs/heads/master | 2020-03-29T10:49:48.426742 | 2018-11-20T16:40:35 | 2018-11-20T16:40:35 | 149,824,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | """
This module implements single Conv2D layer spatial split.
It provides an example of 2 division and another generalized
example. The arithmetic technique is discussed in 2 division
example.
"""
from keras.layers import Conv2D, Lambda, ZeroPadding2D
from keras.layers.merge import Concatenate
import ke... | [
"caojiashen24@gmail.com"
] | caojiashen24@gmail.com |
e3bffe4732ee4bf7605b867c07cc21b165766526 | b6ab4693aa077097a8b503aeacafb53c8761aeaf | /src/falconpy/_endpoint/_detects.py | da37c54240368cb1744719d1aae736953fa17171 | [
"Unlicense"
] | permissive | woodtechie1428/falconpy | 36bd2ed85f629b43e7644c2c29d369eda3800ff7 | fcbec209f04a8d2340c66a5bea5c27c421f550d1 | refs/heads/main | 2023-08-03T09:14:10.930495 | 2021-09-10T15:58:39 | 2021-09-10T15:58:39 | 406,604,183 | 0 | 0 | Unlicense | 2021-09-15T03:44:50 | 2021-09-15T03:44:48 | null | UTF-8 | Python | false | false | 6,483 | py | """
_______ __ _______ __ __ __
| _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----.
|. 1___| _| _ | | | | _ | 1___| _| _| | <| -__|
|. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____|
|: 1 | |: 1 |
|::.. ... | [
"noreply@github.com"
] | woodtechie1428.noreply@github.com |
4fd1a36063610493d16705b91faca3442fdc810a | 480e33f95eec2e471c563d4c0661784c92396368 | /Geometry/HGCalCommonData/test/python/dumpTBGeometryDDD_cfg.py | 998122a85ad6a346ff919cce319dcc301f314db8 | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 821 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("DUMP")
process.load("Geometry.HGCalCommonData.testTB181XML_cfi")
process.load('FWCore.MessageService.MessageLogger_cfi')
if 'MessageLogger' in process.__dict__:
process.MessageLogger.categories.append('G4cerr')
process.MessageLogger.categories.ap... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
cc13959b1a9094efbf53216060b6eaf7feafd9ae | fa6c1bb73b6c779b3e37dedb0b45fed44424ca49 | /ch11/tcp_client.py | e11599c678d28c25ca2bdfefba0f230b4b94075f | [] | no_license | choidslab/IntroducingPython | 7f9d4ddb4a8f107b20d1a02ee75dbe2490ab22e1 | 7d0a3c9efffe1c69fd93fcc21123126051b44893 | refs/heads/master | 2020-04-02T17:37:48.975059 | 2018-11-03T03:50:23 | 2018-11-03T03:50:23 | 154,665,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import socket
from datetime import datetime
server_address = ('localhost', 1234)
max_size = 1000
print("Starting the client at", datetime.now())
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 소켓 생성
client.connect(server_address) # 서버에 연결
client.sendall(b'Hey!') # 서버에 데이터 전송
data = client.recv(max_size) ... | [
"dslab0915@gmail.com"
] | dslab0915@gmail.com |
60c30503a5fef6b3d8da46f31bfc23e7c8d4f000 | df65ecba3a23bc054758b429f45a92f53e131904 | /Lights/DMX_Driver.py | 8d410c05e6fb432929762cc821a280ca5cdb6dc7 | [] | no_license | tahaase/LeapLights | d1ef7893a8de6cca8e6eaab6dbd00be702ff216b | 198ae63de9b3b29448a142aa04459cee44f47eaf | refs/heads/master | 2020-03-21T02:11:11.735731 | 2018-06-20T06:29:32 | 2018-06-20T06:29:32 | 137,985,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,024 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 9 16:49:27 2015
@author: Thomas Haase
"""
import pysimpledmx
class DMX_Controller():
def __init__(self, usb_port,start_port,start_color,inverted):
self.dmx_com = pysimpledmx.DMXConnection(usb_port)
self.x_channel = start_port
self.y_ch... | [
"tahaase10@gmail.com"
] | tahaase10@gmail.com |
b64fd5f3af9a2a05ac6bdb4d8311adc85cdf8381 | 46ddd2e23181e5ad4dc0e2960a37379f5865f677 | /7-3_SocialNetwork.py | 0956428a9bcfd79db9f684e5aa84a257ab67d219 | [] | no_license | marekbrzo/PythonDataAnalysisNotes | abbbdd6abb5a9472c1ccdbf3d64b6e983095bfc3 | ba139cb623fbda8e3581c557ced0f1290a830040 | refs/heads/master | 2020-05-05T02:42:08.111646 | 2019-08-10T04:34:43 | 2019-08-10T04:34:43 | 179,647,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | # Simulating a Social Network
# Three easy steps: 1. Generate graph object and edge list. 2. Assign attributes to graph nodes. 3. Visualize the network
#%%
import numpy as numpy
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sb
import networkx as nx
from pylab import rcParams
... | [
"noreply@github.com"
] | marekbrzo.noreply@github.com |
095cfe669aa0d686acc36de7f75e80eed2b7571f | 519ec05d3e86863e334655d79635afa58523a78a | /lib/get_series_imdb.py | 84362c6baa898a386bf3b9bdc0a3492d7a2db10e | [] | no_license | orionwinter/datasets | 56fa8af238849befc4c1251efbef54d2e37c02d9 | 6b2b9c1cd81a8635f54722f16be10187d638c492 | refs/heads/master | 2020-05-21T01:08:58.222562 | 2020-02-14T17:58:10 | 2020-02-14T17:58:10 | 185,849,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # coding: utf-8
import pandas as pd
import numpy as np
series_imdb = pd.read_csv("https://raw.githubusercontent.com/nazareno/imdb-series/master/data/series_from_imdb.csv")
got_e_bb = series_imdb.query(
"series_name in ['Breaking Bad', 'Game of Thrones', 'Vikings', 'Better Call Saul', 'Homeland']"
).reset_index(
... | [
"orion.winter66@gmail.com"
] | orion.winter66@gmail.com |
5549e1a88fac1ca44072cd16340c142248867b94 | 45444446d97b85859a3b378e00d6a8148e4f2697 | /authentication/urls.py | dbcbad67c900796a95dfac81c2f6c722a8fa7260 | [] | no_license | StepanTita/goli | d89f42d106b8080d0bcf604c77550b603c135f21 | 622b3427fa4c650f8677657c626da1ca5c6cf726 | refs/heads/master | 2022-12-23T09:06:23.545816 | 2020-10-04T11:55:09 | 2020-10-04T11:55:09 | 300,861,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.urls import path, include
from rest_framework.authtoken import views as auth_views
from django.contrib.auth import views as login_views
from django.views.decorators.csrf import csrf_exempt
from rest_framework.authtoken.views import obtain_auth_token
from authentication import views
urlpatterns = [
# p... | [
"stepan.tytarenko@nure.ua"
] | stepan.tytarenko@nure.ua |
37483fd1e0d9006657489d14e97b898faed7670f | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/worksheet/test_cond_format22.py | 4c5f28418e89a70c30d923a17b0cf44b9f5c802f | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 8,726 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ..helperfunctions import _xml_to_list
from ...worksheet import... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
bce38b1477870007035b59a1dc2f07b2775b04fa | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Himanshu.Mishra/problem.py | abd5a6a5b627365883042f53a6cc564bc5e737e7 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,389 | py | def isprime(n):
if n == 2:
return True
if not n & 1:
return False
return pow(2, n-1, n) == 1
# def isprime(n):
# """Returns True if n is prime."""
# if n == 2:
# return True
# if n == 3:
# return True
# if n % 2 == 0:
# return False
# if n % 3 == 0:
# return ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
a748b503eca025f4b05eaf27620d517b548809cb | 2c66c1babb836e1c3e18d0f741992485a3e25be3 | /web/domains/application/_import/models.py | aa24f57f9a7f2c63d212837f63a556e422f3ade1 | [] | no_license | PaoloC68/icms | 29a3a980fee4dfb8fc39d9ef47af113fbb140b2d | ec47aa10750072b9df355a2c82f8f5f6471e8157 | refs/heads/master | 2022-11-21T08:29:09.339666 | 2020-02-10T11:23:26 | 2020-02-10T11:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,858 | py | from django.db import models
from web.domains.case._import.models import ImportCase
from web.domains.commodity.models import CommodityGroup, CommodityType
from web.domains.country.models import Country, CountryGroup
from web.domains.importer.models import Importer
from web.domains.office.models import Office
from web.d... | [
"b@androsaxon.co.uk"
] | b@androsaxon.co.uk |
e18a40f8cbff093d6c6e8d5e541bf41c3d67daa8 | ff4fe07752b61aa6404f85a8b4752e21e8a5bac8 | /challenge-209/spadacciniweb/python/ch-1.py | 88e7289f52bc8ddaa8483854bb105e9772513e22 | [] | no_license | choroba/perlweeklychallenge-club | 7c7127b3380664ca829158f2b6161c2f0153dfd9 | 2b2c6ec6ece04737ba9a572109d5e7072fdaa14a | refs/heads/master | 2023-08-10T08:11:40.142292 | 2023-08-06T20:44:13 | 2023-08-06T20:44:13 | 189,776,839 | 0 | 1 | null | 2019-06-01T20:56:32 | 2019-06-01T20:56:32 | null | UTF-8 | Python | false | false | 1,119 | py | # Task 1: Special Bit Characters
# Submitted by: Mohammad S Anwar
#
# You are given an array of binary bits that ends with 0.
#
# Valid sequences in the bit string are:
#
# [0] -decodes-to-> "a"
# [1, 0] -> "b"
# [1, 1] -> "c"
# Write a script to print 1 if the last character is an “a” otherwise print 0.
#
# Example... | [
"spadacciniweb@gmail.com"
] | spadacciniweb@gmail.com |
fcb2b9c1af9aa02b56bcb31befdd9f08992b561d | 430770c2da5c003d009b2196419180cb3680d07b | /test_code.py | 9d33f85eb34a990a395a9b46dfb6bb587613f8b9 | [
"MIT"
] | permissive | Nick-Bridges/ProcessEntropy | 99611f3a481d092eb53861ab7e62c75f216df54c | f1573d06d5ce5e4079af827712db401e8e3631e8 | refs/heads/master | 2022-12-29T11:47:46.063857 | 2020-10-01T06:14:31 | 2020-10-01T06:14:31 | 300,165,977 | 0 | 0 | MIT | 2020-10-01T06:08:22 | 2020-10-01T06:08:21 | null | UTF-8 | Python | false | false | 2,262 | py | # This is a temporary testing file until I get around to adding an actual testing package.
from ProcessEntropy.SelfEntropy import *
from ProcessEntropy.CrossEntropy import *
def test_self_entropy():
test_input = [1, 2, 3, 4, 5, 1, 2, 3, 3, 4, 5, 4, 4, 1, 2, 3]
test_output = [0, 1, 1, 1, 1, 4, 3, 2, 4, 3, 2, 2, 2... | [
"tobin.south@gmail.com"
] | tobin.south@gmail.com |
d27b73807835afcd3d5ac7165b6fb8e9fd049a0c | 6fa6288bd21694bb144798d63b77a8e2924603e5 | /DataStructures/designs/desgin_tic_tac_toe.py | cda2095d7f338e82a64fc50c03ee2c3d3b6f7b1f | [] | no_license | akshatakulkarni98/ProblemSolving | 649ecd47cec0a29ccff60edb60f3456bf982c4a1 | 6765dbbde41cfc5ee799193bbbdfb1565eb6a5f5 | refs/heads/master | 2023-01-03T19:03:49.249794 | 2020-10-27T06:28:02 | 2020-10-27T06:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # https://leetcode.com/problems/design-tic-tac-toe/
# TC: O(1)
# SC: O(N)
class TicTacToe:
def __init__(self, n: int):
"""
Initialize your data structure here.
"""
self.rows=[0]*n
self.cols=[0]*n
self.prin_diag=0
self.sec_diag=0
self.n=n
... | [
"noreply@github.com"
] | akshatakulkarni98.noreply@github.com |
8f178d02ad011b921b4130cb50f82470c3ed2dfa | 963625032645b4080c0c2606cc86391d0600e54c | /VCF-Converter.py | 5fd3d5bd33a0998b7b4cbc5c2fe1e352d353998a | [] | no_license | 3bdelrhmann/Save-Numbers-VCF | bb087257a227a607ecaca653c5411161f375e17c | 614f61fb082c8bdf34c2c6b204b7a325ae869347 | refs/heads/master | 2020-08-12T17:55:59.649210 | 2019-10-13T17:53:42 | 2019-10-13T17:53:42 | 214,814,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | from random import randrange
FileName = input(str('What is your file name :?: '))
while '.' in FileName:
print("Please write file name without extention")
FileName = input(str('What is your file name :?: '))
def MainFunc(ListFileName):
try:
Mobile_List_File = open(ListFileName+".txt",'r')
except... | [
"abdelrhman_m@outlook.com"
] | abdelrhman_m@outlook.com |
59aec718fce53f6051be2ea2d5f6ec1380b3bfd2 | c7027edceeae907ce7d21112336e84f101eeb89b | /airflow/providers/sqlite/hooks/sqlite.py | 5a14249ca5902174edf5d6b29c533545cbd950d7 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jao6693/airflow | 0a8027ce33e20ee8f6032facb1b8ab453c2d20d4 | 269b608246b015c55e6cae4ed0f50b1e2bb0fa95 | refs/heads/main | 2023-01-30T18:53:23.431745 | 2022-11-05T14:59:27 | 2022-11-05T14:59:27 | 320,338,180 | 0 | 0 | Apache-2.0 | 2020-12-10T17:08:36 | 2020-12-10T17:08:35 | null | UTF-8 | Python | false | false | 1,618 | 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... | [
"fabien.beuret@delaware.pro"
] | fabien.beuret@delaware.pro |
c643c289d6a7b2f99414e9f9a7bb4a558e5ac8c3 | d79f3a31d173f18ec112c521acdcee8e8e73724d | /test5.py | 7cd08b85a12191df9c24b5d26bcedcd5412f72de | [] | no_license | k156/hello | 3de815de569b38f8260e774e57b138f4da43f480 | f5a7f386d3f78d15d7f166a95ad25724e168f472 | refs/heads/master | 2020-04-04T23:15:38.252126 | 2019-05-03T05:57:00 | 2019-05-03T05:57:00 | 156,352,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from bs4 import BeautifulSoup
import requests
from time import sleep
headers = {
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
}
url = "https://www.melon.com/chart/index.htm#params%5Bidx%5D=1/"
html = requests.get(url, headers = ... | [
"jm_91@live.co.kr"
] | jm_91@live.co.kr |
669262236461f63becc76d8b5f7e36e0ea7b5338 | 5166b9a3d04a74d664007315782a257bbec8226e | /test.py | 332337fdd2c92281d14b52d721e513e96581afe7 | [] | no_license | SergiuDeveloper/Lexical-Complexity---V3 | 23423291da74456525db0aa70b35f5f875f8a4ae | 86c02faf63bc5a8521bacce399b9ae75c737c95c | refs/heads/main | 2023-04-08T05:53:57.944274 | 2021-04-21T15:45:55 | 2021-04-21T15:45:55 | 357,539,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from gensim.models.fasttext import FastText
from joblib import load
import sys
fasttext_mdl = FastText.load('models/FastText/model')
hgbr_mdl = load('models/HistGradientBoostingRegressor/model')
input_word = sys.argv[1].lower()
input_word_ngrams = fasttext_mdl.wv[input_word]
predicted_complexity = hgbr_mdl.predict([... | [
"sergiu.nistor@info.uaic.ro"
] | sergiu.nistor@info.uaic.ro |
b224e3cebfd3bb2602c4d7a2d4917aa1c84cf623 | d616dc1ef6fe075f15f2d83d8680dded8fecd35e | /example.py | 0f53a2dbd0bb07330f675f304753f0111bd31b28 | [
"Apache-2.0"
] | permissive | hellcoderz/pytrie | adb136aa1414c82d9a944e7a35d57c5060d0bf5e | 1cfc167c5201d855763714bd9f88e312e56402bd | refs/heads/master | 2020-04-01T23:03:49.833436 | 2014-02-03T11:07:34 | 2014-02-03T17:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | #!/usr/bin/python
"""trie module example code."""
__author__ = 'Michal Nazarewicz <mina86@mina86.com>'
__copyright__ = 'Copyright 2014 Google Inc.'
import os
import stat
import sys
import trie
print 'Storing file information in the trie'
print '===================================='
print
ROOT_DIR = '/usr/lo... | [
"mina86@mina86.com"
] | mina86@mina86.com |
0fdb15d008b4ea1de32bbfa7b86fb81240226cb8 | c96c77b9943fe884c63ea14b8dae233b6d4c5369 | /h2o-algos/src/test/java/hex/example/workflowtest.py | 75db4e4935720a83986f49c93b2f71db8af0026c | [
"Apache-2.0"
] | permissive | ChiahungTai/h2o-dev | c23b154b3ad54ccdd8eed652005a798c2fd89aec | f9f33ac3ba96e1b157caa7136286b749de3ba9d9 | refs/heads/master | 2021-01-18T07:48:35.665781 | 2015-02-07T01:19:08 | 2015-02-07T01:49:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | import h2o
# Connect to a cluster
h2o.init()
# Pick either the big or the small demo.
# Big data is 10M rows
small_test = ["bigdata/laptop/citibike-nyc/2013-10.csv"]
big_test = ["bigdata/laptop/citibike-nyc/2013-07.csv",
"bigdata/laptop/citibike-nyc/2013-08.csv",
"bigdata/laptop/citibike... | [
"cliffc@acm.org"
] | cliffc@acm.org |
8ee9c7efec2c921b88454de864a1af7b8fe6d6d5 | c831d5b1de47a062e1e25f3eb3087404b7680588 | /webkit/Tools/Scripts/webkitpy/xcode/simulator.py | 8af9add23fcd564619efa3a85604a9706e310311 | [] | no_license | naver/sling | 705b09c6bba6a5322e6478c8dc58bfdb0bfb560e | 5671cd445a2caae0b4dd0332299e4cfede05062c | refs/heads/master | 2023-08-24T15:50:41.690027 | 2016-12-20T17:19:13 | 2016-12-20T17:27:47 | 75,152,972 | 126 | 6 | null | 2022-10-31T00:25:34 | 2016-11-30T04:59:07 | C++ | UTF-8 | Python | false | false | 21,174 | py | # Copyright (C) 2014, 2015 Apple 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:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | [
"daewoong.jang@navercorp.com"
] | daewoong.jang@navercorp.com |
5d34c6e9071fafae363483890c7e561f7ba6a451 | 2cadada30d1034dda64e2f1b08cb42b50d309bdf | /posts/migrations/0009_auto_20170829_1143.py | fe7568dedd79a82a0012d92ef6dd9411880b28ca | [] | no_license | sparsh0204/Ask-Lnmiit | 123d262023c39d9aacfe13a6d7a21996b418ac8e | 0b69f64ee2a23fc686df248d34f032c470c2d306 | refs/heads/master | 2022-12-11T03:25:26.368977 | 2020-01-13T07:29:28 | 2020-01-13T07:29:28 | 102,007,285 | 3 | 1 | null | 2022-12-08T00:42:12 | 2017-08-31T14:06:49 | HTML | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-29 11:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0008_auto_20170829_1141'),
]
operations = [
migrations.AlterField(... | [
"sparshcode@gmail.com"
] | sparshcode@gmail.com |
2367b2c940668ee9e4ef5b53807358cb108491b3 | 42704268be9dc9c92f0c31d29e4c87ef5452862e | /add_strings_2.py | 72876c2346b38a93f526b9846af010bfc866fd6a | [] | no_license | djassal/python | 08af33e061cfbea8785d999ce88a768ae0ac6f1e | 4c902ee3c625dd7d8b486cd7821110e7f6a0d70b | refs/heads/master | 2020-06-25T07:35:27.449249 | 2019-07-28T05:44:50 | 2019-07-28T05:44:50 | 199,247,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | domains = ["google","www.unix","oracle.com"]
for x in range(0, len(domains)):
if not "com" in domains[x] and not "www" in domains[x]:
print("www." + domains[x] + ".com")
elif not "www" in domains[x]:
print("www." + domains[x])
elif not "com" in domains[x]:
print(domains[x] + ... | [
"noreply@github.com"
] | djassal.noreply@github.com |
71e949188be81367e2b96ae89c790224fd52a025 | ffc8eb0ba8b9ec73e896ffe9a8c2d594cd614e99 | /vis.py | bf35e0d577616f92e1dd812b664b36cbe5bcd90e | [] | no_license | nachmc3/2D_Vis | b67623471df99ac5c014c8059eb639ec2319f578 | 1a3b5a6bc10cecb06699b2fcba96a5ac2bb77d64 | refs/heads/master | 2023-04-16T19:32:31.908242 | 2021-04-25T16:52:22 | 2021-04-25T16:52:22 | 354,744,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,788 | py | import numpy as np
import pandas as pd
import glob
import plotly.graph_objects as go
import os
from jupyter_dash import JupyterDash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.io as pio
pio.templates.default = "plotly_white"
class ma... | [
"ignaciomc18@gmail.com"
] | ignaciomc18@gmail.com |
54229a86e150c2add9cea94da86d074a6cb921f2 | 72008ae16bd4f8ec0862d1bcce06c66ba24a11dd | /codecheftest.py | 60481d69266655862bd95a6c03a7498f8ed4a534 | [] | no_license | Tarique-web/CODECHEF_CONTEST_SOLUTION | 67fb90c31a8ee6f7f2366e2d76f1c0c806465889 | 594cdc4d317ea12c72ce70135c75b587b7abe7a8 | refs/heads/master | 2022-12-27T14:53:07.949412 | 2020-09-29T04:15:13 | 2020-09-29T04:15:13 | 299,498,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # -----------------------SMART PHONE----------------------
test_cases=int(input())
budget=[]
for i in range(test_cases):
budget.append(int(input()))
budget.sort()
budget_len=len(budget)
budget_max=[]
for j in range(budget_len):
budget_max.append((budget[j]*(budget_len)))
budget_len-=1
max1=budget_max[0]
for l in ra... | [
"noreply@github.com"
] | Tarique-web.noreply@github.com |
b71088a81e42ad63fdfe6b910308c7bb658194e4 | 0b4d7da0bb47fd94c2590999e59414934411e176 | /venv/Scripts/easy_install-script.py | 5aa1e510ba8baa011f381e864b0eb921d133e172 | [] | no_license | toddAwesome/UWB-postion-analysis | e308299a480893263a85637b57ead59fb5d4c4fa | 622f940f9472a074ef7b5d45e5945df94e8456c6 | refs/heads/master | 2022-12-10T15:19:14.502856 | 2018-08-22T15:17:37 | 2018-08-22T15:17:37 | 145,459,844 | 4 | 0 | null | 2022-12-08T02:22:48 | 2018-08-20T19:10:43 | Python | UTF-8 | Python | false | false | 459 | py | #!D:\pyCharm-workspace\IndoorPositionDataAnalysis\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"toddrobb11@gmail.com"
] | toddrobb11@gmail.com |
4f8e9dcd97ab00a31aed0513093605e614165a2c | 23f33b344828717f3e7b5b85bd45d69b5ba0b1ce | /python/paddle/fluid/dygraph/varbase_patch_methods.py | 10f448fe8075cb551c29e6f1eeb27cea0e29c435 | [
"Apache-2.0"
] | permissive | abbasidaniyal/Paddle | 2f5ef4dadbbedb66c6ac7c2e3c82ffad0d2ef000 | c3527f5526ee96398760cbef11d7de48f41fe998 | refs/heads/develop | 2020-12-02T05:12:22.353302 | 2019-12-30T06:38:44 | 2019-12-30T06:38:44 | 230,898,990 | 0 | 0 | Apache-2.0 | 2020-06-11T15:12:33 | 2019-12-30T10:53:00 | null | UTF-8 | Python | false | false | 10,440 | py | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | abbasidaniyal.noreply@github.com |
5143a8db1daaaf86a81a2b7dc43ea8d0137537fd | 9ae6a45b4f5534243248bf5cd2bdfea6d932a857 | /eshop/shop/search_view.py | d3b2b2fc2a9d9e9e8be36355366b9af70377afb4 | [] | no_license | derekCRO/djangoforeshop | 05f5da66c5ab2c43c29c5dc9b899db099406e170 | 824a57d00fa63b21fe52fc0ab839de57a84a4efa | refs/heads/master | 2023-01-19T13:36:14.683403 | 2018-08-09T14:58:41 | 2018-08-09T14:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/7/10 18:37
# @Author : zhl
# @Site :
# @File : search_view.py
# @Software: PyCharm
from haystack.generic_views import SearchView
class MySearchView(SearchView):
# def get_queryset(self):
# # print("get_queryset")
# # queryset =... | [
"tiop08317@gmail.com"
] | tiop08317@gmail.com |
9357a8f90907e0020b4d6950974fa58909570709 | 260ff9e3b9dfeb208c78499914491b4e5125a025 | /xianc/wikitravel/pipelines.py | e45fe029956518e0fde52e2c8bc3f353fd1b327c | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | Soni96pl/Xian-C | 51284a6d4f316eb34c402dbce5a91c4905c1b2ed | 16170ae9ecc0d2a49c57c7833e538c18a1ade216 | refs/heads/master | 2021-06-09T21:27:32.941546 | 2016-11-27T11:33:33 | 2016-11-27T11:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class WikitravelPipeline(object):
def process_item(self, item, spider):
item['db']['story'] = item['story']
... | [
"jakub@chronow.ski"
] | jakub@chronow.ski |
bcf0008e7c32cc0962365c810680c301ab8abedb | 58497ad5ed78d82a2519faeaecbec724fb7d4f60 | /mfscrm/urls.py | 91c49b2982226924dc96662772a5b0c41a7aa6d3 | [] | no_license | harry2491/MSD-Assignment-1-Part-B | 94c2d092c1a7f5428e17f4eeaf812a26a102cee9 | 3593f530014809a6105e039ad7353d51d61eae01 | refs/heads/master | 2020-03-28T22:08:09.320251 | 2018-09-20T16:52:01 | 2018-09-20T16:52:01 | 149,207,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | """mfscrm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"hharwinderkaur@unomaha.edu"
] | hharwinderkaur@unomaha.edu |
f64a006d037948ac99c6973eceedbf33367de8e5 | 87716f71b04a28f9e7828193b701a617f54959ba | /Android-All researched document and past demo required by client - not used/Python demo/Capstone_Face.py | 1a8e2f6ab51b8e29b4b943447bbaa171cf9ab66b | [
"Apache-2.0"
] | permissive | CanTri/CheckingAttendent | 935b5b37df074c83313a400be36268cf79ff30e2 | d3f946cc435de3b45952b287664750bebac5f55d | refs/heads/master | 2021-03-21T23:56:58.914605 | 2018-04-20T15:13:15 | 2018-04-20T15:13:15 | 109,378,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | py | import face_recognition
import cv2
import copy
class Face:
def __init__(self,person,file):
image = face_recognition.load_image_file(file)
self.encoding = face_recognition.face_encodings(image)[0]
self.person = person
self.file = file
def nothing(x):
pass
#obama_image = face_reco... | [
"tbthiep@apcs.vn"
] | tbthiep@apcs.vn |
e2749e0d9cb867ef80f5ae4149656804e1cad032 | d17cb92b16c2cf32d6d8a69867a352052d87910d | /PYModules/GorGon/KLWrapper/KLStruct.py | 897a56e8ae0baaa8d6f288d60f583bc7e55624de | [] | no_license | sbertout/GorGon | cd420babe3f63eccc63819e83c7d0d1229069b15 | cf95dfc5375de251cf859d96eb44bb2d8375f592 | refs/heads/master | 2021-01-21T13:57:13.289976 | 2017-08-04T23:07:35 | 2017-08-04T23:07:35 | 91,816,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,800 | py | from KLFunction import KLFunction
from KLMember import KLMember
class KLStruct:
def __init__(self, name, members=None):
self.__name = name
self.__members = []
if members is not None:
self.setMembers(members)
self.__constructors = []
self.__hasDestructor = Fals... | [
"sbertout@gmail.com"
] | sbertout@gmail.com |
5202d463d31de81cbb64c1e559dfe2024235644d | 5db0c193e6de720b199c2736c70911aca7fe35c5 | /archiver1/settings.py | c6e25c5c7f9a31adf83fa074f20c8c8304fc094b | [] | no_license | cheslip/archiver-py | 5926cd1e2d3fe1ce129896b599220da20ae25b7e | 13cf49d1420b4edc5ad816c5f52f7f92971fe1b9 | refs/heads/master | 2021-01-01T06:55:30.285580 | 2012-08-02T06:42:47 | 2012-08-02T06:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # Django settings for archiver1 project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'archiv... | [
"cheslip@mac.com"
] | cheslip@mac.com |
dd1444d5ca080d334504e7dd0362c639af1c7e2c | d9b02979df31f64cd6683a522fe0eb5d51f876b2 | /auto_test.py | b2450078abd0854b21f6eb2b5192051879f918e7 | [] | no_license | ZVampirEM77/SubuserAutoTest | a5f58b6b736d3c1ec67d317b76310db207add034 | 28bdc0f1a22d23c024653201fb59bd7f7ed0218b | refs/heads/master | 2020-12-03T07:55:38.151064 | 2017-07-03T05:59:14 | 2017-07-03T05:59:14 | 95,639,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153,317 | py | '''
By Enming Zhang
Email: enming.zhang@umcloud.com
2017-06-27
'''
import sys, os, json
import time
import argparse
import subprocess
ceph_version = '<K'
ceph_path = "/home/zvampirem/subuser/ceph/src/"
py_dir = os.getcwd()
def exec_command(command):
p = subprocess.Popen(command, shell=True, stdout=subprocess.P... | [
"enming.zhang@umcloud.com"
] | enming.zhang@umcloud.com |
05ea985615632303be491be1f8e52b26dc8a23b5 | 87f57cf6e925c8d3aaac36f1dce33c613ce92cad | /publishers/wubytes_publisher.py | 7856fc67c78e26b3b2dccb6b4849a360f192d892 | [
"MIT"
] | permissive | weapp/miner | a0fe10ad1c7111a0641d535e90616da79b4f08c2 | e89bc2dc043889a9bbee21bd5c611154c2f84d06 | refs/heads/master | 2020-04-09T07:43:50.925072 | 2014-06-03T21:26:46 | 2014-06-03T21:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from base_publisher import BasePublisher
from pprint import pprint as pp
from wu_client import WuClient
from shared.path import Path
class WubytesPublisher(BasePublisher):
def __init__(self, conf):
BasePublisher.__init__(self, conf)
self.wc = WuClient(conf["client_id"], conf["client_secret"], con... | [
"weap88@gmail.com"
] | weap88@gmail.com |
48ee6be5fa369aab7a24d7f1be33ef53dfa886a5 | e452f89c51180487f2ed68c33ca2fed54e14a967 | /1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/02_Conditional-Statements/01.Lab-01-Excellent-Result.py | 4d9450ac08bdcaf06642e2351b5898ce2cc0b984 | [
"MIT"
] | permissive | karolinanikolova/SoftUni-Software-Engineering | c996f18eea9fb93164ab674614e90b357ef4858a | 7891924956598b11a1e30e2c220457c85c40f064 | refs/heads/main | 2023-06-21T23:24:55.224528 | 2021-07-22T16:15:59 | 2021-07-22T16:15:59 | 367,432,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # 1. Проверка за отлична оценка
# Първата задача от тази тема е да се напише конзолна програма, която чете оценка (реално число),
# въведена от потребителя и отпечатва "Excellent!", ако оценката е 5.50 или по-висока.
grade = float(input())
if grade >= 5.50:
print("Excellent!") | [
"Nikolova@eum.root.eumetsat.int"
] | Nikolova@eum.root.eumetsat.int |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.