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
d40e6c6ccb0a6eaf2d8ae58103faca2b2a47851c
5efd154bac2e8bd5d4aedb710df8a6ddce98a13b
/titanic/titanic/build_pipeline/preprocessors.py
2aeba597a7e60eb45bd969aa96861fb36f6c68d5
[]
no_license
dbmikus/kaggle-competitions
b2c64e9b0ca7c642957e05d23ab9415a4b2af173
fbc6ecc7fd43a8d3d78d9b90d0862f963927482d
refs/heads/master
2020-12-04T07:51:18.402030
2020-01-06T03:44:39
2020-01-06T03:44:58
231,684,751
0
0
null
null
null
null
UTF-8
Python
false
false
1,663
py
from sklearn.compose import ColumnTransformer from sklearn.impute import SimpleImputer from sklearn.linear_model import LogisticRegression from sklearn.metrics import mean_absolute_error from sklearn.pipeline import Pipeline from sklearn.preprocessing import OneHotEncoder, StandardScaler from .. import clean_data de...
[ "dmikus@hioscar.com" ]
dmikus@hioscar.com
df44354a0e9ba11e598574ff072588cf831c4eab
b1800b94248ed661136176abf4bc017b760a74f8
/venv/bin/python-config
9dd06e3d53006f05de765622568a0bdbbc14d0c3
[]
no_license
kilik42/craigslistBot
96f7b26bd5523428ea8793c46cc663f279817dd8
56e5bff138f0f2f9855965666c5a23c9255d6e5e
refs/heads/master
2021-01-14T03:53:22.349664
2020-03-07T23:01:20
2020-03-07T23:01:20
242,591,225
1
0
null
null
null
null
UTF-8
Python
false
false
2,367
#!/Users/marvinevins/Desktop/craigslist_scrape/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags')...
[ "maevins@cps.edu" ]
maevins@cps.edu
9be3dcb242b2f80c8e342caa7a134dfd8c9449fa
ba2f9884bd4f378dbbc3ad27fd4ae98ba4d60af6
/eddietest/test.py
8f40309517fce1b8af9ed296d3d97909813e10db
[]
no_license
EddieCarlson/Taskbasket
50a9cf3b0af19a60178bc1883515765d40ef1dc3
36d87af79f43981c65bcf9acf38998f8f2dd7741
refs/heads/master
2021-01-19T11:02:16.531501
2011-01-31T05:30:41
2011-01-31T05:30:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from operator import itemgetter from messages.models import Message #from eddietest.messages.models import Kind from messages.models import Task stasks = [] ftasks = [] tasks = Ta...
[ "carlson.eddie@gmail.com" ]
carlson.eddie@gmail.com
57a622ec59ebe93a1a1c999e5976d3f0c975abfd
6529bcd79ebe6114372345c5ab1b930b1894a809
/advanced/tree.py
1630bcc3342186fe9715adf248f440d9942387ea
[ "MIT" ]
permissive
rocket3989/ACCA2020
4202752ed6c4d1f42df5a9fa768672b6292557b4
24ae77df2ca428cf761a987fb2bb2f1a35285804
refs/heads/master
2021-01-13T18:38:07.170860
2020-02-23T05:00:17
2020-02-23T05:00:17
242,459,202
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
from collections import defaultdict class node: def __init__(self): self.right = -1 self.left = -1 self.val = -1 def getInd(char, S): for i, char1 in enumerate(S): if char == char1: return i while True: nodes = defaultdict(node) sIn = inpu...
[ "rocket3989@gmail.com" ]
rocket3989@gmail.com
d4ddcf35379ac1b72dda69366f4af64a658d9779
3ec575ad10f10c8364438a05c6fbd20d8afaa5f5
/ordinary_data/views/export/export_meter.py
fd3250645c6a32659e49f3707c6eef227453cb11
[]
no_license
haubourg/qwat-data-model
e182c6e7e20b545696e57139fb83b87330828eed
a6f504ada51bcee3f9daaeb94c2af0ed2985df22
refs/heads/master
2020-06-11T15:27:51.255858
2017-04-24T10:09:50
2017-04-24T10:09:50
75,641,114
0
2
null
2017-01-19T18:18:54
2016-12-05T15:53:11
PLpgSQL
UTF-8
Python
false
false
944
py
#!/usr/bin/env python import yaml import sys from sql_export_view import SqlExportView if len(sys.argv) > 1: pg_service = sys.argv[1] else: pg_service = "qwat_test" definition = yaml.load(""" name: qwat_od.vw_export_meter from: qwat_od.vw_element_meter exclude_join_fields: - geometry% - label_1% - label...
[ "denis.rouzaud@gmail.com" ]
denis.rouzaud@gmail.com
927ac184628e437c055bab2f36900998fbdc2c7d
5adf788186c67671542a9b8933f14f53d4b2ce19
/reattach_caps.py
0c007165f5d9027547deff90d0b92e3d4ae3d4e3
[]
no_license
Arielbs/beta_solenoids
6c2bcc14a917c564aeed4827530ae44db65d4ce0
73f662da5a800dbe1f09d56ffdc368f7266cbafb
refs/heads/master
2021-01-23T16:40:53.078386
2014-12-11T21:16:12
2014-12-11T21:16:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,594
py
#! /usr/bin/env python InfoString = ''' Run on expanded pose with src range tag in pdb name like: .*src13_26__15_28.*.pdb ''' # ''' ### external ### libraries from multiprocessing import Pool import numpy as np import subprocess import argparse import glob import time import sys import os import re if '-h' not in...
[ "pylesharley@gmail.com" ]
pylesharley@gmail.com
49d9a8ec5cc5ed5985d21d452dd07bc47e43e1ca
274bb29d09e4ebc97aaf8376066a1239f9cf179e
/tests/conftest.py
447bcdbc6c079901764264736de9cc8d71bcd621
[ "MIT" ]
permissive
Brewgarten/storm-softlayer
86a5d17994d01260929fedfbc93158936c36e809
9f64fb972f26fa367f151d5e25f5077ba1bf5467
refs/heads/master
2021-07-11T01:20:28.026350
2017-10-02T21:19:01
2017-10-02T21:19:01
106,289,957
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
import logging import os import pytest from libcloud.compute.providers import get_driver log = logging.getLogger(__name__) logging.basicConfig(format='%(asctime)s [%(levelname)s] [%(name)s(%(filename)s:%(lineno)d)] - %(message)s', level=logging.INFO) def getSoftLayerDriver(): import storm.drivers.softlayer ...
[ "martin.kuehnhausen@us.ibm.com" ]
martin.kuehnhausen@us.ibm.com
3112a7712ea5bdf4b9b3cea414797d8b41d7e58c
f7024a61e980f026a557b80fb7b064a14a631699
/src/Rover3D_On_TriangleMesh/MechTests/MechTest2/qdots.py
2a50fca60890d4568f5d3861ac35276c315d1be4
[]
no_license
siconos/rover
b3c5ad566d071a4fc2f14451b57b3cb9b6eff543
60bd2ae0658d166b8124ff3d3bac020c737c8312
refs/heads/master
2021-01-21T23:16:30.523546
2017-06-23T14:40:38
2017-06-23T14:40:38
95,217,410
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
#! /usr/bin/env python # plotting rover q generalized coordinates. import matplotlib matplotlib.use('Qt4Agg') import numpy as np import matplotlib.pyplot as plt from matplotlib import rc, rcParams rc('text', usetex=True) #wheel's qdot t, x = np.loadtxt('VELOCITY.dat', usecols=(0, 8), unpack=True) #mass center qd...
[ "vincent.acary@inria.fr" ]
vincent.acary@inria.fr
0d6229d2d38942de75e024f1434dad829f57195e
1ec6fe8811cb2b21b68eca7d75ac6b3c88e0f8ba
/Week_07/G20200389010080/hotspot_crawler/spiders/TencentHotspot.py
05a0c40073ef36235158660a17124073320a1c84
[]
no_license
hopeqpy/Python000-class01
5f0aa8f3aaba7da97819ec073fd9d16c0cd902e8
73b8f8606c5cce0ea8982aed3705ad4cfc70cc70
refs/heads/master
2022-06-26T13:36:58.766271
2020-05-07T07:24:24
2020-05-07T07:24:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,510
py
# -*- coding: utf-8 -*- import json import re from json import JSONDecodeError import scrapy from ..items import HotspotCrawlerItem class TencentHotspotSpider(scrapy.Spider): name = "TencentHotspot" allowed_domains = ["qq.com"] allLink = [ "https://pacaio.match.qq.com/irs/rcd?cid=137&token=d0f1...
[ "kitezz@junyudeMacBook-Air.local" ]
kitezz@junyudeMacBook-Air.local
49cdd13d7ed5a5dbe0c370db1b883a88b7635dd4
2e45ed5925c2f27e14606f4b1fced2f8924e65f2
/test.py
562a47799dfe7ac7918debd0c73a8290233fedd0
[]
no_license
jenkins-cd-workshop/multiple-stages
c8c3b3560db935d26012a3b2a70ccb727b628eb5
d6314e847ad5bff8728d38209c25720cb81f503b
refs/heads/master
2021-01-22T21:54:16.705594
2017-05-29T14:00:56
2017-05-29T14:00:56
92,744,571
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
from unittest import TestCase class MyTest(TestCase): def test_answer(self): answer = 42 self.assertEqual(answer, 42);
[ "noreply@github.com" ]
jenkins-cd-workshop.noreply@github.com
2450f5bbe7e32581c7f7d407c655e8a243140def
f109a5d3c71cc591e9ccc6278b382d6ac27a8195
/RK4/grafica2RK4.py
71762aabbe0bdbec0c9cecbe946571161474da2f
[]
no_license
KarenChincoya/MetodosNumericos
c9bd648b1c546083e0bd2206f7f55bc411f7b92b
f57e7f7b02c81b1fc6f8ae7e2daa3a09c5438967
refs/heads/master
2020-04-09T17:43:12.526595
2018-12-05T17:02:18
2018-12-05T17:02:18
160,489,271
0
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
#requiered libraries import numpy import matplotlib.pyplot as plt #Initial parameters alpha = 0.1 # Prey growing up rate beta = 0.02 # Predator successful rate gamma = 0.3 # Predator decrease rate delta = 0.01 # Pretator hunting successful rate && feeding rate, cuanto alimenta cazar una presa #Function euler (...
[ "karenchincoya@gmail.com" ]
karenchincoya@gmail.com
979a3054aaeebf98a39f6aee0faa382c5c86d234
df704d25a8d2dd8e36043cbb153a70e9537b4c66
/rating_use_query.py
d83f1682822c02d2a871441e3db8d864960ae9ac
[]
no_license
lethelimited/Graph-For-Movie
cd7eb254be82750660556b0b90de91cf47b057e2
4d7fc56426a4ffe3c1a0e654c29b8895fa88d79b
refs/heads/master
2020-03-30T10:49:13.091134
2018-10-04T01:03:54
2018-10-04T01:03:54
151,137,961
0
0
null
2018-10-01T18:28:54
2018-10-01T18:28:54
null
UTF-8
Python
false
false
1,789
py
from py2neo import Graph, Relationship, NodeMatcher, Node import sys db = Graph("bolt://localhost:7687", password="123") # tx = db.begin() # tx.commit() def ready_to_load(): # Replace "::" to "," with open('/Users/Lim/Documents/DAnalyticsWorkspace/ml-10M100K/ratings.csv', 'r', encoding='UTF-8') as f: ...
[ "limed.kevin@gmail.com" ]
limed.kevin@gmail.com
6e21c6403d218298734c0f324988cf29f74bc51e
52b5773617a1b972a905de4d692540d26ff74926
/.history/equiLeader_20200827132135.py
83e3ff7f1c7937960dd74336f7b723351b899079
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
25
py
def equi(A): equi([])
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
f564e673cf4088066560d3ab08d2ec371b8f5da5
0e93a805e17d7ab73b8e94c66c85500a0ef4e865
/reddit/store/datastore.py
64c03ff69896b50eae8ed35b92efa586a2180ecb
[]
no_license
charulagrl/reddit
506222722ed2e6b88ab9a77485754e743ebf66ad
cd58b4343094da49e37379e05bce85de27cb2fbd
refs/heads/master
2020-03-18T19:18:21.579766
2018-06-04T03:01:49
2018-06-04T03:01:49
135,146,575
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
# -*- coding: utf-8 -*- from reddit.models.upvote import Upvote from reddit.models.downvote import Downvote class DataStore(object): def __init__(self): self.topics = {} self.upvotes = Upvote() self.downvotes = Downvote() self.users = {} self.current_user = None def get_topic(self, topic_id): topic = ...
[ "charul.agrl@gmail.com" ]
charul.agrl@gmail.com
c0cee13a06c45bab1b2225770ddb43da0ae3d15b
f21231e5dfe9f6240ea3d6da56b6ccfff6ef99ca
/python/Ball.py
d64bed074ae64bb6dfee323fefcb7b95c9f22c31
[ "MIT" ]
permissive
anwar0101/Basketball-Game
d2454f17e668ad88dfac690b133a9ea89c4f2ea5
f03eea17bca7ab23e12ad335eb07dfa27e637b8d
refs/heads/master
2020-05-04T23:22:53.115531
2018-10-16T18:08:54
2018-10-16T18:08:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,717
py
import pygame import numpy as np from scipy.integrate import ode class Ball2D(pygame.sprite.Sprite): def __init__(self, imgfile, radius, mass=1.0): pygame.sprite.Sprite.__init__(self) self.image = pygame.image.load(imgfile) self.image = pygame.transform.scale(self.image, (ra...
[ "seantan@singtel.com" ]
seantan@singtel.com
dc7d94b33b00888d12d6e212621095425ed0c9ec
353d8d910513e64017a6c0f2a254eda845373730
/cult/registration/migrations/0001_initial.py
7eb96cc7419beb66ba45d1bd07603074c08af9f0
[]
no_license
AshwiniS-ui/cultApp
bb41ee3ab9b9337da85f0b4e1313b7bbdba6cab2
44dce09bfd76dec28c3b972bb3d15fffa65fa35a
refs/heads/master
2023-08-05T03:14:08.951536
2021-09-19T09:42:52
2021-09-19T09:42:52
408,081,563
2
0
null
null
null
null
UTF-8
Python
false
false
679
py
# Generated by Django 3.0.3 on 2020-02-22 10:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='registration', fields=[ ('id', models.AutoF...
[ "ashwinis9632@gmail.com" ]
ashwinis9632@gmail.com
ea5422ae5d22e6da43e48d0a14ad4febe6d563d7
661a8b8b4b7a0295c44268f2b3d5b208e472c093
/scraper.py
c3e97dad8a39451394d0f69c0555987c35065f19
[]
no_license
royerguerrero/La-Republica-Web-Scraper
75be56a1e3551a156b80721733d9bbcefe4d9798
29d2e15a5be5388de2e4079880b87fe506ba8cee
refs/heads/main
2023-01-31T10:57:10.038151
2020-12-16T17:49:52
2020-12-16T17:49:52
322,060,041
1
0
null
null
null
null
UTF-8
Python
false
false
2,616
py
import requests import os from datetime import datetime from lxml import html HOME_URL = 'https://www.larepublica.co/' XPATH_LINK_TO_ARTICLE = '//text-fill/a/@href' XPATH_NEWS_TITLE = '//div[@class="mb-auto"]/text-fill/a/text()' XPATH_NEWS_SUMMARY = '//div[@class="lead"]/p/text()' XPATH_NEWS_CONTENT = '//div[@class="...
[ "royjuni3431@gmail.com" ]
royjuni3431@gmail.com
1b6cf0089d6fa968fd06bde42a43eded2f0981a2
6bea1b91c980c9e87a109019be3879e456d009ba
/hackerrank/hackerrank/pattern/pattern3.py
c992d70135019a2b64eb6f237ed45e7918086bf5
[]
no_license
Bawya1098/Hackerrank
631c886f4fcacbb28c637f3073b316059c579c58
7eb02f71a5c3c02115301288c9e71b0cfdd5eb3d
refs/heads/master
2020-04-22T03:15:16.233413
2019-05-02T05:43:45
2019-05-02T05:43:45
170,079,916
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
maxLength = 5 height = int((maxLength + 1) / 2) for row in range(1, height + 1): stars = (maxLength - 2 * (row - 1)) for col in range(0, row - 1): print(" ", end='') for star in range(0, stars): print("*", end='') print("")
[ "admin@Intern3-MacBook-Pro.local" ]
admin@Intern3-MacBook-Pro.local
8198cb149c7daeff52703cb382cec19dd300f4fb
e9c4239c8064d882691314fd5b37208f10447173
/leetcode/101-200题/149maxPointsOnALine.py
2513ef40fbc59c951045392b37c3fe62af35e376
[]
no_license
IronE-G-G/algorithm
6f030dae6865b2f4ff4f6987b9aee06874a386c1
6f6d7928207534bc8fb6107fbb0d6866fb3a6e4a
refs/heads/master
2020-09-21T03:02:20.908940
2020-03-22T15:19:41
2020-03-22T15:19:41
224,658,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
""" 149 直线上的最多点数 给定一个二维平面,平面上有 n 个点,求最多有多少个点在同一条直线上。 示例 1: 输入: [[1,1],[2,2],[3,3]] 输出: 3 解释: ^ | |        o |     o |  o   +-------------> 0  1  2  3 4 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/max-points-on-a-line 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 """ class Solution(object): def maxPoints(self, p...
[ "linjh95@163.com" ]
linjh95@163.com
449683a2ea90d6f3f95d067503a36be2a684bfb9
8a75eca2c5ced9c9700a87592dfd5f103217fb73
/mysite/settings.py
d9f0f14584f7231771278f1501f26ef251d87d2e
[]
no_license
myerkes/polls
f463ab3f91ca4790a501346acda1b889fc0c3fb5
9a49fdff914bbe9ebb2a1a6984456c9140e83f16
refs/heads/main
2023-06-12T05:00:05.878186
2021-06-29T18:32:22
2021-06-29T18:32:22
371,468,724
0
0
null
null
null
null
UTF-8
Python
false
false
3,295
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib ...
[ "mattyerkes23@gmail.com" ]
mattyerkes23@gmail.com
bfdfbc285c7836f84dfbcfd36e94844e3b963418
8da26dd597e7c2dc9ca4b337aac1c77137a3f20a
/fixture/contact.py
4a16e89fcb83d61bef88e159403d4ac6f6606de7
[ "Apache-2.0" ]
permissive
spirit-87/python_training
d4432a8063a5cee13208b97e61134b885c2d0047
f2e2389ba4e96139d666365abecf16a2db89cd6e
refs/heads/master
2021-01-30T16:40:16.412104
2020-04-22T10:03:18
2020-04-22T10:03:18
243,503,756
0
0
null
null
null
null
UTF-8
Python
false
false
12,097
py
from selenium.webdriver.support.ui import Select from model.contact import Contact import re class ContactHelper: def __init__(self, app): self.app = app def open_newcontact_page(self): wd = self.app.wd wd.find_element_by_link_text("add new").click() def create(self, contact): ...
[ "spirit_87@list.ru" ]
spirit_87@list.ru
1fca69c251833c7b43d945f04d92a07733cdab58
c7b941b50f04d526f45b05515f41001298a68b11
/bicycleparameters/rider.py
eadb40254cad07c41da6584886c3978510b709df
[ "BSD-2-Clause" ]
permissive
helloxss/BicycleParameters
cbb26ae833d44c168c00b36485fdec2796936cc6
424056406c662c7ace2feef02f59e8babe4cd5d2
refs/heads/master
2020-12-25T12:57:21.665589
2014-10-10T02:37:43
2014-10-10T02:37:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,346
py
#!/usr/bin/env python import os import numpy as np from numpy import sin, cos, sqrt from scipy.optimize import fsolve import yeadon from io import remove_uncertainties from inertia import combine_bike_rider def yeadon_vec_to_bicycle_vec(vector, measured_bicycle_par, benchmark_bicycle_p...
[ "moorepants@gmail.com" ]
moorepants@gmail.com
28dc472c1553c59b56d20300f3625cc15980d1fd
f0cbc90651160b6eb34d55564f7ffb42bf835530
/NNCancellation.py
dae249d04d289d46d5b104741ed2a1de107bd33c
[]
no_license
ChaoRong-Zhang/fdnn
95dfad55a0b98bad8e85cee3660a2396faef507d
7b880c27faa781d551025f31a3a61f42c8048b15
refs/heads/master
2022-04-05T13:30:59.356655
2020-01-03T19:46:29
2020-01-03T19:46:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,452
py
import scipy.io from scipy.signal import savgol_filter import numpy as np import fullduplex as fd from keras.models import Model, Sequential from keras.layers import Dense, Input, SimpleRNN, Dropout from keras.optimizers import Adam import matplotlib.pyplot as plt import os # This line disables the use of the GPU for ...
[ "a.k.balatsoukas.stimming@tue.nl" ]
a.k.balatsoukas.stimming@tue.nl
d06b847172ee459aa81f54ed944958591033cca8
a45c581547c676e0d82e40ed0879f77ab9ba6d40
/KeyPressModule.py
3d299d93061d00810e978cf1b72cb31379752db1
[]
no_license
saidzalehan/AIR-DRONE
b975b03aa221f9cc9458c1828362ac583fc6e44b
a3fbd6f050000a28a2007f7fcf374922d8432359
refs/heads/main
2023-06-03T03:59:24.656213
2021-06-29T07:23:54
2021-06-29T07:23:54
381,253,016
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
import pygame # The libraries that need to install to run this program def init(): pygame.init() pygame.display.set_mode((200, 200)) pygame.display.set_caption('Emergency Button') def getKey(keyname): ans = False for _ in pygame.event.get(): pass keyinput = pygame.key.get_pressed...
[ "noreply@github.com" ]
saidzalehan.noreply@github.com
290790ec3f76145d981ed8c61a532b3b99fedf6f
aaa2b1fde3025bd882081cae68c0fba67de45da5
/VSB_Partial_Discharge_Detection_Due_March_2018/source/dataexplorer.py
c443e34f690dc888db1c6c00485d0fb7efb3112d
[]
no_license
mnight08/MachineLearningProjects
e8827cf17143dd19517a146282fbae6a78e0c1a6
b45ce50a2b908951096f5d304e64fe2d7ae29daa
refs/heads/master
2023-06-16T13:02:48.757398
2021-07-10T06:13:26
2021-07-10T06:13:26
384,750,431
0
0
null
null
null
null
UTF-8
Python
false
false
5,513
py
# -*- coding: utf-8 -*- """ Created on Fri May 18 16:14:17 2018 This file will take a data frame and create various visualizations of the variables and combinations. @author: vpx365 """ from datamanager import DataManager import matplotlib as plt from scipy import signal import matplotlib.pyplot as plt import pandas ...
[ "alejandro.martinez@utrgv.edu" ]
alejandro.martinez@utrgv.edu
adddceb83c81ca6f6f4b8d0b2c685f9ff4fe8289
ea18b356682ec77b127a077579286b89383f62a5
/network/server.py
e1bf70b90eaa32bf5f86b9f055971cd839685609
[]
no_license
neoniemand/python
d37a6cbb03adfb6f2f3b12387ccd6e184bd94118
1733463851c701fafe654d0da793f3977f09c70c
refs/heads/master
2023-08-29T04:59:03.895000
2021-10-26T02:25:32
2021-10-26T02:25:32
246,759,251
0
0
null
null
null
null
UTF-8
Python
false
false
2,221
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 22 18:26:54 2020 @author: julian """ import socket # 접속할 서버 주소입니다. 여기에서는 루프백(loopback) 인터페이스 주소 즉 localhost를 사용합니다. HOST = '127.0.0.1' # 클라이언트 접속을 대기하는 포트 번호입니다. PORT = 9999 # 소켓 객체를 생성합니다. # 주소 체계(address family)로 IPv4, 소켓 타입으로 TCP 사용합니다. server_soc...
[ "niemand@naver.com" ]
niemand@naver.com
be4b8b0f92c24c4a2fd5b424d69dbc1337852880
4dbf21735357b99403f092c74fd3462e2b2d40db
/make_wish/djangoPy3Env/bin/pip
b07934d40f0f0b58f4d6ff638bb16ae8d36625e2
[]
no_license
uamahmood/Wishes
dcb1413cbc694d4456c2f7404f3e45f4614de973
6ae5a77242736aeacdfdd8d44b29adc2e1cca17e
refs/heads/master
2022-12-10T14:41:24.152950
2020-08-29T23:13:11
2020-08-29T23:13:11
291,363,843
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/Users/UmerMahmood/Desktop/12/make_wish/djangoPy3Env/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mahmoodumer@hotmail.com" ]
mahmoodumer@hotmail.com
88c6858fc1679d76e8c850158e5ec133528912a6
7ef49f5af8d0ae58ff2d45dbe8feb9cdabd1640a
/Python2/RFID1.py
d3aeef9ee7fe914cc9f4f3f818c6adda4365e378
[]
no_license
achoi2/RFID
d36e67dfd6a8dd20c754018241ad3319d30d92b6
d436b0540df98d3f7f4bb2c7727591fcae35e67e
refs/heads/master
2020-04-28T06:47:27.786474
2019-03-14T21:02:49
2019-03-14T21:02:49
175,071,221
0
0
null
null
null
null
UTF-8
Python
false
false
5,001
py
#!/usr/bin/env python ######################################################################## # Filename : RFID.py # Description : Use MFRC522 read and write Mifare Card. # auther : www.freenove.com # modification: 2018/09/08 ######################################################################## import RPi.G...
[ "andrewchoi1@hotmail.com" ]
andrewchoi1@hotmail.com
5200c915c304e4b215c13c04001bd670f3f2201d
947c65092c2628d29e9e20d55921316c10ea43cc
/tests/test_all.py
3a5bf2f4540381a06fd820493bd45916e34010a5
[ "Apache-2.0" ]
permissive
mmatuson/SchemaSync
257d44fa10cb1f99953e17274b86bb2c5fa23e33
7c4bfecdb60a8ab4c35c48347191a192128556eb
refs/heads/master
2023-08-13T11:45:31.993533
2020-01-27T07:50:24
2020-01-27T07:50:24
367,914
251
97
NOASSERTION
2019-06-05T08:25:53
2009-11-10T19:18:54
Python
UTF-8
Python
false
false
1,635
py
#!/usr/bin/python import unittest from test_sync_database import TestSyncDatabase from test_sync_tables import TestSyncTables from test_sync_columns import TestSyncColumns from test_sync_constraints import TestSyncConstraints from test_utils import TestVersioned, TestPNames, TestPatchBuffer from test_regex import TestT...
[ "mitch@mitch-2.local" ]
mitch@mitch-2.local
734dd55c239e86a08f161f887237cb6e79536fc9
df7a630449e104acef2826b95b154f423717c628
/pages/views.py
82cc73fa7c0ffb41bdd215e96f9d8ebd258a4dc1
[]
no_license
DanielSup/MI-MPR2
e6265d01f64f8601279f5b811c2894fc211bd18e
3359c415881945296e5ad15c542aa6c085e8f482
refs/heads/master
2020-12-28T06:44:03.286087
2020-02-04T13:46:18
2020-02-04T13:46:18
238,215,979
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
import os from django.http import HttpResponse from django.shortcuts import render from forms import MyForm from speedcheck import loadInputAndProcess from django.conf import settings import datetime def home_view(request, *args, **kwargs): today = datetime.datetime.now().date() if request.method=='POST': ...
[ "supdanie@fit.cvut.cz" ]
supdanie@fit.cvut.cz
bc99270cd0e781b4de2801db63b825af6347e5f5
a4b56daaca218129f9bf3ec13dec3c4b69d0b43c
/code/nmf/beta_nmf.py
b2c82531c6d931c5042b2fafd94b18590ec6d7a5
[ "Apache-2.0" ]
permissive
Sandy4321/pof
8e78fdddc29fcd2f5231c31793ef48f105b4dd11
9b580a4bf5d37c29a5a2a29417b60b3df5501594
refs/heads/master
2021-01-22T12:20:48.197136
2014-11-25T01:12:24
2014-11-25T01:12:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,567
py
""" Beta-divergence NMF with multiplicative updates Translate from MATLAB code by Minje Kim <minje@illinois.edu> CREATED: 2013-09-16 03:04:33 by Dawen Liang <dliang@columbia.edu> """ import numpy as np eps = np.spacing(1) def NMF_beta(X, K, W=None, beta=None, maxiter=500, tol=None, seed=None, normal...
[ "dl2771@columbia.edu" ]
dl2771@columbia.edu
36630e3c4ae14aff5e3e8187c3761c48caa6972a
8b6a4ead4fe1c38b8bfc5d1d8ae4ea1ac31ba2ac
/vacancy/urls.py
2994e196bbf649eb1d84cd930d04ec2a7ee3be3a
[]
no_license
infernowadays/hr_itmo
99f38d86fd21a8b08a7789ae3f8a0786ac16f26c
d9232afe01d4dc84874adb3e1c76d3864e674928
refs/heads/master
2023-06-25T07:42:18.987465
2021-04-20T04:00:35
2021-04-20T04:00:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
from django.urls import path from django.views.decorators.csrf import csrf_exempt from vacancy import views urlpatterns = [ path('vacancies/', csrf_exempt(views.VacancyListView.as_view())), path('vacancies/<int:pk>/', csrf_exempt(views.VacancyDetailView.as_view())), path('favouriteVacancies/', csrf_exemp...
[ "maximus1998g@mail.ru" ]
maximus1998g@mail.ru
495632157b92ea029f13f8b863a4d624397b5f76
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/packaging/language/test_maven_artifact.py
2f01414a47d9c3ec2c3a416f0f1af5274aff458a
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,510
py
# Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible_collections.ansible.community.plugins.modules import maven_artifact from ...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
51f4f498079a910c7fcc1fbaa739bb50a94e60a0
5089105e64999f7affe1627e2b2d6ec0e67a4720
/django-import-export-master/tests/core/admin.py
67e347dc9efaa974231480e0a7502fdb8a91306f
[ "BSD-2-Clause" ]
permissive
MWTechnology/API_EXCEL
914f1ddff8685f09d6a3ccd960bbe924cec055e3
39ebf98632f72e045bd72205553acd8dbbb7ce64
refs/heads/master
2022-07-31T19:43:27.351437
2020-05-25T11:04:31
2020-05-25T11:04:31
266,739,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
from django.contrib import admin from import_export.admin import ExportActionModelAdmin, ImportExportMixin, ImportMixin from import_export.resources import ModelResource from .forms import CustomConfirmImportForm, CustomImportForm from .models import Author, Book, Category, Child, EBook class ChildAdmin(ImportMixin...
[ "MWTech@mail.ru" ]
MWTech@mail.ru
286365df9076f0e9091ead9c909ed81d3dda9940
f2922e79d4fb292c75cef24b60912f7b403e2db0
/back_end/back_end/common/Renderer.py
df7489d3a410256fbe20e0cdefd5533b601c1257
[]
no_license
rixingw/DocuScan
8a4e2f05d7cb9e0c995fee5736fb8f192baa6de4
d2a00d312c1bc12add84a5fd6537775b73318bf8
refs/heads/master
2020-03-17T06:46:55.122768
2018-08-08T17:42:28
2018-08-08T17:42:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,832
py
from django.conf import settings import os import math import uuid from PIL import Image import fpdf class Renderer(object): MAX_WIDTH = 215.9 MAX_HEIGHT = 279.4 MARGIN = 5 MARKER_WIDTH = 5 x1 = MARGIN y1 = MARGIN x2 = MAX_WIDTH - MARGIN y2 = MAX_HEIGHT - MARGIN def createBoxes(s...
[ "wur1@wit.edu" ]
wur1@wit.edu
83e75209f2bacc14d06c126a68a7eeea79b89029
ff26eafc192f053c0c8fcd49bda26607e52e0d49
/flask_app/scripts/process_phase.py
da1ec266e9affd0ae25fcbc7104cd33f6b51d84d
[]
no_license
csu-anzai/chaudiere
e8342fb95464d85e2bf9027866d500feb5a4ee57
e4ff5036fcd660c3abec3afb86fd070da738bd1e
refs/heads/master
2020-07-19T13:31:11.423917
2019-09-04T22:30:12
2019-09-04T22:30:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,972
py
# -*- coding: ISO-8859-1 -*- """ # script process_phase.py ## Summary This script determines the `phase` value of ChaudiereMinute entries. This script is supposed to be run every 1 or 2 minutes by cron ## CLI Usage : Idem archive_minute.py ## CRON Config : 1-59/2 * * * * /home/pi/Envs/dev/bin/python /home/pi/...
[ "matthieujouve@gmail.com" ]
matthieujouve@gmail.com
cfed8b87698352893ca84ff62078e002f03646b4
2b6645da81eadf45e8df1573befaa8e84a0f52ea
/Aggregator/feed.py
c30cb24c8ceb2cd82aed3fc0d20b2afd7158071c
[]
no_license
jamesfebin/NewsReaderApp
da4817a262361ca57cf95a06f6c3ad7c136d859f
0ede5e9d3f6af80560a4638fc56700c9d8764148
refs/heads/master
2022-11-24T03:27:55.710326
2016-08-23T14:31:30
2016-08-23T14:31:30
65,388,244
0
1
null
2022-11-22T00:31:43
2016-08-10T14:15:01
Python
UTF-8
Python
false
false
2,735
py
import feedparser import time import MySQLdb import re from BeautifulSoup import BeautifulSoup import HTMLParser import datetime import urllib, cStringIO import MySQLdb.cursors import requests import json server='myfirstdb.cgl42w3ennqs.us-west-1.rds.amazonaws.com' database='myfirstdb' username='febin' password='febin1...
[ "jamesfebin@gmail.com" ]
jamesfebin@gmail.com
27e85e7a355675b6b4ac3e2e40d629554bc2caf4
7bab49987d21cdbad08536a7fa5627757cca546d
/AS1115/__ref/AS1115-master/AS1115-master/Python/AS1115.py
9450766e835ba6a03ff6bea7c8b02eb88be9c276
[]
no_license
leehands83/raspberrypizero
7321df6f044b9a127076d8fd6cdd5b154da7e63b
e5f2dade2115800260646c1abf12d8c5e0e9a1ac
refs/heads/main
2023-03-23T08:17:24.200788
2021-03-01T03:08:59
2021-03-01T03:08:59
342,430,079
1
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
# Distributed with a free-will license. # Use it any way you want, profit or free, provided it fits in the licenses of its associated works. # AS1115 # This code is designed to work with the AS1115_I2CL_3CE I2C Mini Module available from ControlEverything.com. # https://www.controleverything.com/content/LED-Display...
[ "leehands83@icloud.com" ]
leehands83@icloud.com
f69aeef790b0710eee14082b761cf37a520d9511
52a2260be6a8ff7baab861f1e79d9095b37bf347
/gentripstat2.py
dfe8bd0df29920bdef4476d35b01933536d3eec0
[]
no_license
jittat/hcr-scripts
af9b5ba2067fc00b5a1be0fb7ba66d6abd75d157
75c0a70abc36ea963096924e0b14a65398de7ab4
refs/heads/master
2016-09-11T02:44:12.754535
2014-10-08T02:01:38
2014-10-08T02:01:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,696
py
import sys import config from distance import map_distance from mapgraph import MapGraph from mapgraph import map_to_frame_point MAP_FRAME = config.MAP_FRAME SVG_SIZE = config.SVG_SIZE SVG_SCALE = config.SVG_SCALE def generate_svg(map_graph, trips, frame, scale): header = "<html><body>" svg_element_open = '<s...
[ "jittat@gmail.com" ]
jittat@gmail.com
0c113ce6b913465b8c49211d4864ea8c81210f3f
ca29a816efe420df9490b6056a77ff078cd2aa0f
/distribution.py
b7c897c3c2b1e583950353cc769eda91f21abd7d
[]
no_license
Martin819/NumGenProbDist
5bc0f01a643133319f57a3557804f842e2eca333
09f8566789ba0eb4b61f2bb4c7c365d3ef164f44
refs/heads/master
2021-10-08T06:30:35.394767
2018-12-09T12:20:17
2018-12-09T12:20:17
159,064,644
0
0
null
2018-12-08T15:10:04
2018-11-25T19:03:44
Python
UTF-8
Python
false
false
1,674
py
import random from math import sqrt, cos, pi, log, exp import numpy ## Uniform def getUniform(low, high): return random.uniform(low, high) ## Triangular def calculateTriangular(a, b, c): U = random.uniform(0.0, 1.0) F = (c - a) / (b - a) if (U <= F): return a + sqrt(U * (b - a) * (c - a)) else: retu...
[ "polreichmartin@gmail.com" ]
polreichmartin@gmail.com
a0500e29e662f0d40278b41d8bd1a22179bded49
90c8f09838360c4d31cd927e252e8a81f6b143f3
/plugins/afishareviews.py
1545ea0b45dace558d7c494d770009e4353348cf
[]
no_license
9seconds/ZineStorekeeper
9859b63ad8c3dde825dc178654ca37001c3307be
1eb06e3b4c5345adb4adf8f261154467d356d52a
refs/heads/master
2020-05-26T23:28:50.444851
2012-01-06T09:26:54
2012-01-06T09:26:54
2,992,937
0
0
null
null
null
null
UTF-8
Python
false
false
4,080
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # afishareviews.py # # Copyright 2011 Serge Arkhipov <serge@aerialsounds.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
[ "nineseconds@yandex.ru" ]
nineseconds@yandex.ru
85c1bb8420286b68f79239dbbeddde3f837944e1
1ef558babdbbf4b45d40b1ab63222f8800e4bd21
/SConstruct
5bed8a6a10526bcc0c035abb66ffa0ee5ee7daa2
[]
no_license
maroxe/maroxe3d
e74aac4256d43d1331b950154172c275458d5812
f83bb68c4783db6669460542392c8108594a95d0
refs/heads/master
2020-05-31T17:44:23.428060
2011-03-07T18:47:22
2011-03-07T18:47:22
1,451,345
0
0
null
null
null
null
UTF-8
Python
false
false
249
env = Environment(CPPPATH = ['.']) libs = [ 'Irrlicht', 'BulletDynamics', 'BulletCollision', 'LinearMath', ] files = Glob('*cpp'); env.Program( 'myprogram', files, LIBS=libs ) Repository('/usr/include/bullet/')
[ "bachir009@gmail.com" ]
bachir009@gmail.com
1ac92e7c1cd1ada7a4efc691a7fceb9c9662e58c
bef33b66de0645c60981ce81d1c59b5edfed28da
/edwin_groundwater_model/modflow_offline.py
f0a1060b995ff4e90b46673f640ed3221c663ff3
[]
no_license
edwinkost/rahasia_edwin
4b4a09b80581406a355f3346d433b44920737ee7
1e9b85c07c0794267f3ba5fb366cffb3c34f722b
refs/heads/master
2023-03-17T20:36:56.497559
2023-03-04T14:14:59
2023-03-04T14:14:59
33,725,683
0
0
null
null
null
null
UTF-8
Python
false
false
3,443
py
import os import sys import math import gc import pcraster as pcr import virtualOS as vos import groundwater_MODFLOW import logging logger = logging.getLogger(__name__) ''' Created on May 20, 2015 @author: Edwin H. Sutanudjaja ''' class ModflowOfflineCoupling(object): def __init__(self, configuration, cur...
[ "edwin@workstationedwin.geo.uu.nl" ]
edwin@workstationedwin.geo.uu.nl
5f4e3f9359c4b587f02c13d234bc79142af780ce
df000d3eff14f4c4714d688a9173672303672e4e
/olpc-sugar/network.py
0e25d731ad27a634b2112efe238824e4520cbef8
[]
no_license
dannyiland/OLPC-Mesh-Messenger
bd370fcb2fb78d5ce2dfb5acf812c62ddc0e4418
6cc17391420b05fe64966a6c8b7ac709c0c0e7a2
refs/heads/master
2021-01-01T18:23:07.980696
2012-04-13T11:37:36
2012-04-13T11:37:36
3,792,600
2
0
null
null
null
null
UTF-8
Python
false
false
10,365
py
# Copyright (C) 2006-2007 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is dis...
[ "dannyiland@gmail.com" ]
dannyiland@gmail.com
9819bf6e91ec963b55aa396ebec70a5559039d37
0896bfbf84c6fdf33b5d2790f633d5dab9d5b386
/blog/urls.py
a74813ea33b354b991217b78c9dd4bfd6f3035d3
[]
no_license
wlsdnrsmell/HelloKorea
b88f788a04f126c140e3e2b4595558fea52af8ef
e3d9a61c60c34b891d82136abe9287f693c1d03e
refs/heads/master
2021-01-01T05:18:46.238950
2016-04-28T03:42:12
2016-04-28T03:42:12
57,102,004
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$',views.post_list, name = 'post_list'), #문자열 표현하는 정결표현 url(r'^(?P<pk>\d+)/$',views.post_detail, name = 'post_detail'), ]
[ "jin3670@gmail.com" ]
jin3670@gmail.com
bbb28e56d8c01176b8a73e2d3a56b3d1b959658e
56d5b5ec8b528e7518d47e7704bd0c93fee2682f
/genomics/conversion/containment2csv.py
9f321407adf83d7c73078da587af9b7db985363c
[]
no_license
sethips/scripts
4c55a123d72bae475dad961802d2ee3f21d3493d
58ce36f30391531d7add6ff412e8aa86cc2ffb82
refs/heads/master
2020-04-01T18:30:08.030427
2016-01-16T06:27:51
2016-01-16T06:27:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse # ---------------------------------------------------------------------------- parser = argparse.ArgumentParser() parser.add_argument('-c', '--containment', required=True) parser.add_argument('-s', '--csv', required=True) args = parser.parse_args() # -...
[ "kuleshov@stanford.edu" ]
kuleshov@stanford.edu
be91097f8dd7ad8ebf07bb6e5d0d496ec1966715
2010834b349c0a0c99e675c9b4b10b3f7e6d6a1d
/interface_django/interface_django/settings.py
8189de7cbb085fab1ff68cb61f8ef6ab42cf7d5f
[]
no_license
gperroch/Interface_Informations_gatherer
40903fae8d5f0564dbb38c740d4601a98566d09d
55f21772ed8f270cd952caf8e74b99c9046d7f9b
refs/heads/master
2021-06-14T18:48:05.905200
2017-03-25T17:57:12
2017-03-25T17:57:12
86,177,557
0
0
null
null
null
null
UTF-8
Python
false
false
3,237
py
""" Django settings for interface_django project. Generated by 'django-admin startproject' using Django 1.11.dev20160717191839. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/s...
[ "gperroch@student.42.fr" ]
gperroch@student.42.fr
3ab12b9e1c9dbf14a106add3cb2c61501846d75f
2f18669c3103856e230ad6e6016a6cc4cb2c8d6d
/module.py
476bccb5113d636c1c82d04790025b6dabbe7ef9
[]
no_license
mtsatsev/new-devices-lab
58c942b08044ac1eb583e83d19fb6b560713a042
da3920a5cd0008446efe12908c630bf99cad20e1
refs/heads/master
2022-10-09T20:10:53.152100
2020-06-09T00:15:58
2020-06-09T00:15:58
267,870,085
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
import numpy as np import cv2 class Device(): def __init__(self): self.device = 0 self.capture = cv2.VideoCapture(self.device) if not(self.capture.isOpened()): print("I failed") self.capture.open(self.device) if self.capture.isOpened(): print("HE...
[ "mario.tsatsev@student.ru.nl" ]
mario.tsatsev@student.ru.nl
b0d6022b68e4134075b56f5041dbad99d551e348
45803e79987429bc3685d9bd3a79e124631a9dad
/read_data.py
bdf7fe654a934d85b97b45fcafafd36deb4c77cd
[]
no_license
qiuyumo208/NSCaching
ec1a56b25422693f156a2268c12e2a60afe592fb
183da2023be6a654efa7a2e147939b3831873a49
refs/heads/master
2020-05-17T07:02:06.988134
2019-03-25T05:43:10
2019-03-25T05:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,582
py
import os import torch import numpy as np from collections import defaultdict class DataLoader: def __init__(self, task_dir, n_sample): self.inPath = task_dir self.n_sample = n_sample print("The toolkit is importing datasets.\n") with open(os.path.join(self.inPath, "relation2id.txt...
[ "yzhangee@connect.ust.hk" ]
yzhangee@connect.ust.hk
738cbf07d2935862dba2c498ee1e47730367a1c5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03694/s635934204.py
90dc16375dd7f23d2ceba7c002a5c596fdaaa5cd
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
n = int(input()) list_a = sorted((int(n) for n in input().split())) print(list_a[-1] - list_a[0])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d09f709088884cf99d562490eeb1218f436d42db
175813b661f6ec1b8403fda2beb3ec42365a0501
/Algorithms/026-删除有序数组中的重复项.py
63c52c6aee0dedef7155a7d4a7a90becd688bbbe
[]
no_license
jty-cu/LeetCode
21eccc9958e590f8093a5a47d853727b45ca94a5
16aed82c76c9e9adc8e04ce0730160601f8f17a4
refs/heads/master
2023-05-26T11:58:12.887504
2023-05-25T05:48:34
2023-05-25T05:48:34
287,852,496
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
## 数组;快慢指针 ''' 注意快慢指针是怎么使用的 快慢指针进行赋值操作时, index变换的顺序 ''' class Solution: def removeDuplicates(self, nums: List[int]) -> int: slow, fast = 0, 0 while fast < len(nums): if nums[slow] == nums[fast]: fast += 1 else: ## 注意顺序 slow += 1...
[ "eden1519@outlook.com" ]
eden1519@outlook.com
ccb789e24d4482568e50f13c82c13a90c42ef5ca
e81026ef08ccb6109fbe0ac44db3aed9d86bb196
/src/app/pyserver_development/tests/packing_advisor_gravity_check_tests.py
6762128231cc8a39662fe474b60f96bb3dee92ab
[]
no_license
sheikhomar/axolotl
a6573a11875938b3017583a7c31c81e7353992fe
ccf80aa16bf5feec7a3bfc9ecc8ab06c7074f15d
refs/heads/master
2021-03-30T17:27:11.764826
2016-12-20T18:38:07
2016-12-20T18:38:07
67,419,013
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
import unittest from lib import Bin from lib import Package from lib import PackingAdvisor class PackingAdvisorGravityCheckTest(unittest.TestCase): def test_gravity_check(self): bin1 = Bin(4,4,3) pa = PackingAdvisor(bin1) p1 = Package(2, 2) p2 = Package(4, 2) p3 = Pack...
[ "Frederik_KKristensen@hotmail.com" ]
Frederik_KKristensen@hotmail.com
2e00f22fba30e14fcd9fcdefa4a10f3e22b18248
58553afdd5dd51b5b2a84abb536a3b5c20c5e19e
/Decider/utils.py
210433aefe249065ba9da482ae1b7ad2832dcc4a
[]
no_license
magentanova/decider
819ad4fe4529de48187f7afdbcb8f7aa2ca8163b
4e73f47ddb4a6b7d07c457cb4bee77794490a056
refs/heads/master
2020-04-08T16:48:16.341117
2018-11-30T04:55:14
2018-11-30T04:55:14
159,535,933
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
def serialize_query_result(ClassName): return map(ClassName.to_dict, ClassName.query.all())
[ "richards.justind@gmail.com" ]
richards.justind@gmail.com
9442cca3e5807f52ba4a9fe7804330d87d241097
c0425cb3c67b0f9e9077475d70e463c06aa176f6
/decompress_compressed_string.py
3a54dbe729043c8cc29371a643f7036455eeb061
[]
no_license
EugeneStill/PythonCodeChallenges
e3eba938c74cb64347843cb7e8c8937b6d50aed8
4ddeb506f984503d83cb0ad1a2fa2e915009c38f
refs/heads/main
2023-04-29T00:26:26.537946
2023-04-15T01:18:33
2023-04-15T01:18:33
145,318,074
0
1
null
2023-04-15T01:18:34
2018-08-19T16:09:34
Python
UTF-8
Python
false
false
878
py
import unittest class Decompress(unittest.TestCase): """ Your input is a compressed string of the format number[string] and the decompressed output form should be the string written number times. For example: 3[abc]4[ab]c Would be output as abcabcabcababababc Number can have more than ...
[ "eugenestill@eugenes-mbp.lan" ]
eugenestill@eugenes-mbp.lan
941cc73462d265c18ea95e53a1fa2f7fd4a76a01
fda7d21dea4a6c5c478804cf3664729c64820176
/rpmci/cloudinit.py
669b31e409dca273e55144cf076e5871307c75e8
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
msehnout/rpmci
8c3eb4d1865c0c85dac0730294911a3dab6c5048
e679226951e5a1a377c32853a78cd2c534a67fea
refs/heads/main
2023-04-07T10:39:13.335099
2020-12-07T10:52:38
2020-12-07T10:52:38
301,734,388
0
0
null
2020-10-06T13:22:39
2020-10-06T13:22:39
null
UTF-8
Python
false
false
5,891
py
import base64 import logging import pathlib import subprocess from pathlib import Path import yaml class CloudInit: def __init__(self): self.repos = {} self.user = {} self.ssh_keypair = None self.ssh_configs = {} def add_repo(self, name: str, baseurl: str): self.repo...
[ "sehnoutka.martin@gmail.com" ]
sehnoutka.martin@gmail.com
6764cba22e307454492da2ab7d46f84b4f731f33
e11dc1b8affc293ff4eb38b5506c7a43f080441a
/multipage.py
7b30c0398070ad8c9ef410e7499314c514b31f52
[]
no_license
YYx00xZZ/olxer
c8231b838630f69e9b4e3547e33ce0570b1b64fd
2d26d79974c1ad37de662a537897d0d747e453c1
refs/heads/master
2022-04-19T21:29:28.603619
2020-04-21T06:00:24
2020-04-21T06:00:24
256,202,863
1
1
null
null
null
null
UTF-8
Python
false
false
665
py
# import click # import requests # import random # import logging # from time import sleep # from itertools import cycle # # from bs4 import BeautifulSoup # from fake_useragent import UserAgent, FakeUserAgentError from helpers import random_header, get_proxies, create_pools, getSoup def getPages(link): #remove soup ...
[ "47386361+YYx00xZZ@users.noreply.github.com" ]
47386361+YYx00xZZ@users.noreply.github.com
33aba823f1d698ffa709894f8619f24b983a7bcb
3429ae58db1573fd67fe1b71adb88f33e33c567c
/剑指20-表示数值的字符串/solution.py
d4c74d985271d53029b7e2cc31c779d6a0064a3e
[ "MIT" ]
permissive
zhikunluo175/daily-leetcode
3855197c21554705e4d059cddb5a19eed1e348d7
03532ad697562495724f579e33dacc087711eea4
refs/heads/master
2022-12-18T14:34:04.439281
2020-09-14T02:25:20
2020-09-14T02:25:20
292,040,523
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
# coding=utf-8 class Solution(object): def isNumber(self, s): """ :type s: str :rtype: bool """ try: s_f = float(s) except ValueError as e: return False return True
[ "zhikun.luo@train042.hogpu.cc" ]
zhikun.luo@train042.hogpu.cc
3984879dca7b2eb8a533b2a2e27f2befe03e82e2
82f1b4c0bccd66933f93d02703a3948f08ebc1a9
/tests/pytests/unit/states/test_boto_dynamodb.py
b8a59a2e6adb3ee1d5b4ce7fa5429b580ab4667b
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
waynew/salt
ddb71301944b64f5429e0dbfeccb0ea873cdb62d
ac9f139f795295de11be3fb1490ab8cec29611e5
refs/heads/master
2023-01-24T10:43:53.104284
2022-03-29T04:27:22
2022-03-29T13:45:09
163,890,509
1
0
Apache-2.0
2019-01-02T21:17:12
2019-01-02T21:17:11
null
UTF-8
Python
false
false
3,478
py
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import pytest import salt.states.boto_dynamodb as boto_dynamodb from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {boto_dynamodb: {}} def test_present(): """ Test to ensure the DynamoDB t...
[ "megan.wilhite@gmail.com" ]
megan.wilhite@gmail.com
10c996ab1d3ff3f0d6e4a33e010b34379ce8aa0f
49ee6a519bf54b83cd30c57b773497272f6c81a8
/res/sequential.py
b2ccd644518775f5df358eb14b7872cb10201bc0
[]
no_license
DeepLearningLibrary/Recurrent-Neural-Networks
f106e571d4c0279045c6e2210b3d454263ffba27
c10588c36401dfbf5798371b21316807ea434685
refs/heads/main
2023-02-09T11:31:46.119626
2021-01-04T05:15:56
2021-01-04T05:15:56
326,567,491
0
0
null
null
null
null
UTF-8
Python
false
false
10,025
py
import numpy as np import six def pad_sequences(sequences, maxlen=None, dtype='int32', padding='pre', truncating='pre', value=0.): if not hasattr(sequences, '__len__'): raise ValueError('`sequences` must be iterable.') lengths = [] for x in sequences: if not hasat...
[ "noreply@github.com" ]
DeepLearningLibrary.noreply@github.com
f771de59dc398f4da0e47876b27c7e3ed7250b0f
07fc1f52826d6b88a230a49a0818d4595788dba8
/setup.py
cb3824fbdb36b4475ab5166ed9dc35bc5eb08dc3
[ "BSD-3-Clause" ]
permissive
parietal-io/module-2-library
a69f17970334ba6689c31921eb795439cc178fa8
e4d1cb798dc24dca21f9d455cd97491e5ff39f78
refs/heads/master
2020-03-16T10:14:33.742498
2018-05-16T23:33:12
2018-05-16T23:33:12
132,632,425
0
1
null
null
null
null
UTF-8
Python
false
false
553
py
from setuptools import find_packages, setup import versioneer setup(name='module-2-package', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='Create Python packages from single modules', packages=['m2l'], package_data={'m2l':['templates/*/*']}, ins...
[ "parietal.io@gmail.com" ]
parietal.io@gmail.com
a3f192be9d3d1d6d638d044739492a103e9df043
bc4ac4d9874142337050e7777b6c180c0f19bdde
/wc3.py
9feb943dd883dc94dac3916b19859655f14947de
[]
no_license
Techypanda/Warcraft-III-Reforged-Lobby-Refresher
ec5d3f6b1fe2668fb3f2cb0b1babdd4094b5961c
27ed0e313ec81aa721ca7db221339eb9bc3b9ec7
refs/heads/master
2020-12-21T15:46:51.806688
2020-01-27T11:36:05
2020-01-27T11:36:05
236,477,301
1
0
null
null
null
null
UTF-8
Python
false
false
2,314
py
import pywinauto import pyautogui import time import keyboard from pynput.keyboard import Key, Controller ################################################################################ # PURPOSE: This function will type the inputted word through a keyboard. # IMPORT: inWord - String # EXPORT: NONE ############...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
68d1e3ef04ed10a6155d43bdc9731908c84a8c4d
c078e13700b237a063b95beda9997a8c8a6c6e9d
/client.py
097429df303eb84994cc1d134d8f6a428d9df8cf
[]
no_license
hwchen/log-agg-py
81fdf05aa70d1c1c319ca91fcd02f89a7462b081
a75d977445e451847e4f16611bfdc3ede17608c1
refs/heads/master
2021-01-16T18:56:33.117661
2015-03-23T21:19:38
2015-03-23T21:19:38
32,759,408
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
#! /usr/bin/env python3 import random import sys import zmq context = zmq.Context() print("Conecting to log aggregator server...") sender = context.socket(zmq.PUSH) sender.connect("tcp://localhost:5555") # possible log messages for randomly constructing log_messages = ["successful login", "unsucces...
[ "walther.chen@gmail.com" ]
walther.chen@gmail.com
87a04ffa4aa0d5c213e7825a9c366ed150f20d23
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/GUI/ColorTransferEditor.py
c576aa950de1866e4c8fc0a275e7777da6235b44
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
38,261
py
# -*- coding: iso-8859-1 -*- """ Unit: ColorTransferEditor Project: BioImageXD Description: A widget used to view and modify a color transfer function. The widget draws the graph of the function and allows the user to modify the function. Copyright (C) 2005 BioImageXD Project See CREDITS.txt for details Thi...
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
78c30514dd058404baecd9f213d6b9316b21ba4c
cff8402b68fadc94f4119d09ca6a72ce5419705b
/mnist_data.py
22aebf5e2b4d9474c4e6da66d496dbe896de9e4f
[]
no_license
fabienpesquerel/cppn
b1b1d2805514f163b89c356d17ed4b719fcdcbc5
1e5779f80ea63a2acb7ace0f25898a7615aa6e5b
refs/heads/master
2020-04-27T18:24:49.944320
2019-03-11T16:53:17
2019-03-11T16:53:17
174,568,565
3
1
null
null
null
null
UTF-8
Python
false
false
842
py
import torchvision.datasets as datasets from torch.utils.data import DataLoader import torchvision.transforms as transforms transform = transforms.Compose([transforms.ToTensor()]) class MNIST(): def __init__(self, download=True, transform=transform, batch_size=1): train_im = datasets.MNIST( r...
[ "fabien.pesquerel@ens.fr" ]
fabien.pesquerel@ens.fr
500aa9e39fc258cd7469315698df58d1ec6a24fe
ee027978e04ce2b97a235ee4b59a813941d09c0e
/find_stream_memebers_tgas.py
71d19fa0c05b2f1167c816fc0799cff56f7f8a5e
[]
no_license
kcotar/Aquarius_membership
da45816d39b822df67071a396ec6f977f624dfcf
97a95cc3f9197eadcfd9bcb6d34eeb61dbb35a9e
refs/heads/master
2021-03-16T05:21:04.357609
2017-07-05T06:42:48
2017-07-05T06:42:48
83,285,021
0
0
null
null
null
null
UTF-8
Python
false
false
5,223
py
import os, glob import numpy as np import matplotlib.pyplot as plt import astropy.units as u import astropy.coordinates as coord from astroquery.simbad import Simbad from astropy.table import Table, join, Column from velocity_transformations import * # -------------------------------------------------------- # ------...
[ "cotar.klemen@gmail.com" ]
cotar.klemen@gmail.com
ac8ceb44c203595713de778e4c11270b14cd678e
6e601105760f09d3c9f5306e18e4cf085f0bb4a2
/1000-9999/3020.py
0d82feec7e02c057f5ee0431af44c4cc9bf6c8c6
[]
no_license
WSJI0/BOJ
6412f69fddd46c4bcc96377e2b6e013f3bb1b524
160d8c13f72d7da835d938686f433e7b245be682
refs/heads/master
2023-07-06T15:35:50.815021
2023-07-04T01:39:48
2023-07-04T01:39:48
199,650,520
2
0
null
2020-04-20T09:03:03
2019-07-30T12:48:37
Python
UTF-8
Python
false
false
1,829
py
''' 3020번 개똥벌레 ''' import sys def biSearchLeft(e, target): left=0 right=len(target)-1 while left<=right: mid=(left+right)//2 if target[mid]>e: right=mid-1 elif target[mid]<e: left=mid+1 else: while mid>0: mid-=1 ...
[ "lifedev@naver.com" ]
lifedev@naver.com
2d5f4d8a08f7ead666b5e713009d7cf2d07a0ce4
3271c4619c9c83293132379647122e2bd654e5bd
/jubatus/classifier/client.py
5eab8d830571c0d78641f2ff2bb36722311e4db5
[ "MIT" ]
permissive
hirokiky/jubatus-python-client
bba24667d9236c23f24f6a2f0a2dee23adef6692
7d8597e3fa1038db607e8b56e4e6c333ee272ad1
refs/heads/master
2021-01-24T21:53:48.929755
2015-06-22T05:12:32
2015-06-22T05:12:32
37,836,530
1
0
null
2015-06-22T03:53:13
2015-06-22T03:53:12
Python
UTF-8
Python
false
false
1,223
py
# This file is auto-generated from classifier.idl(0.6.4-33-gcc8d7ca) with jenerator version 0.5.1-457-g49229fa/master # *** DO NOT EDIT *** import msgpackrpc import jubatus.common from .types import * from jubatus.common.types import * class Classifier(jubatus.common.ClientBase): def __init__(self, host, port,...
[ "hirokiky@gmail.com" ]
hirokiky@gmail.com
af34bd61ab24bbcf5232ffdc1c7af0d23b6f5950
269eb633ee96ee2b8089f4c54603825d4b46cd5c
/post/views.py
135facdfb1eab061b2248520f53d1ec641120531
[]
no_license
ExMiracle/idm-board
c00026970e79e6b75bd998a4692177acc4c449a4
14dd4e19a3d689e57fe2995d3283e18c6aac645e
refs/heads/master
2022-11-30T12:20:45.785838
2019-11-09T23:23:01
2019-11-09T23:23:01
209,656,458
0
0
null
2022-11-22T04:46:46
2019-09-19T22:06:25
Python
UTF-8
Python
false
false
2,394
py
from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response from .models import Post from .serializers import PostSerializer from itertools import chain class PostViewSet(viewsets.ModelViewSet): """ API endpoint that shows all posts. """ ...
[ "exmiracle2@gmail.com" ]
exmiracle2@gmail.com
1e0c5c10d7cb631437246a0b6cd5dcefa164091d
504344fc66e8d54081a17306d3012a16bbb81ee7
/screen_parameter.py
ad5885fe04aa3eef465c8c6bc8fd54d0eadcb399
[]
no_license
Ryanshuai/auto_pubg
814753644a8e8e7aa3d7ca3c346a9e05b825c00d
696f33f888efc441a74e142db878e836bbf3efee
refs/heads/master
2022-09-21T12:13:24.155393
2020-11-12T20:03:43
2020-11-12T20:03:43
153,748,441
1
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
from win32api import GetSystemMetrics screen_width = GetSystemMetrics(0) screen_high = GetSystemMetrics(1) screen_h_factor = screen_high / 1080 screen_w_factor = screen_width / 1920 show_position_y = 300 * screen_h_factor show_position_x = 1650 * screen_w_factor show_size_y = 50 show_size_x = 200 min_icon_area = 10 ...
[ "1018718155@qq.com" ]
1018718155@qq.com
b62d522b0129de39dc58b5fa10a7f267a9442bfe
fee47505c5352b1c65ff365ec36d80dc6448ecba
/BonusAccountTask/urls.py
68a2a28bd8934fd48c209144cfa2e62f8502e95d
[]
no_license
esheloncr/bonus_account
62ffb5b2a5667451cb168817086e4a3f106b998a
2e917ad7831b65bd035facfd32b2daedf5d2efd6
refs/heads/master
2023-07-26T19:37:47.036587
2021-09-06T11:07:11
2021-09-06T11:07:11
353,766,749
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
"""BonusAccountTask URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "igoninalexeynn@gmail.com" ]
igoninalexeynn@gmail.com
e307844074128dcc81cf48921700f732bae83d10
f8bdc46409c9f5eaf3d85ef157260589462d941a
/demos/selective_dualarm_stowing/python/selective_dualarm_stowing/models/dualarm_alex.py
e516d9c01775ef3f72bfc8ebf3630f36b34503c3
[ "MIT", "BSD-3-Clause" ]
permissive
start-jsk/jsk_apc
2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750
c4e349f45ef38457dc774e33f6902acf1a1540a6
refs/heads/master
2023-09-05T09:06:24.855510
2023-09-01T17:10:12
2023-09-01T17:10:12
25,620,908
36
25
NOASSERTION
2023-09-01T17:10:14
2014-10-23T05:28:31
Common Lisp
UTF-8
Python
false
false
5,285
py
import chainer import chainer.functions as F import chainer.links as L class DualarmAlex(chainer.Chain): def __init__(self, n_failure, n_class, threshold=0.5, pt_func=None): self.threshold = threshold self.pt_func = pt_func self.n_failure = n_failure super(DualarmAlex, self).__init...
[ "shingogo@hotmail.co.jp" ]
shingogo@hotmail.co.jp
740c1c584f9b2893fd67d3413b16390781eb0b4f
ff2c39ac2ef4827b0627adb8e6865b6d4e1d7f42
/data_gathering/create_pickle.py
e54e2c95584fcfcce8dd28b26522406af51a22ee
[]
no_license
lancejchen/ssd_vehicle_detection
7d939ff1f50d26d66a0e6f5f708da4d4f271cbe6
d5deac90ce3a9e92d94fd48fbe585779eda1dc0a
refs/heads/master
2021-01-23T03:27:58.703101
2017-03-24T01:55:14
2017-03-24T01:55:14
86,083,059
1
0
null
2017-03-24T15:29:42
2017-03-24T15:29:42
null
UTF-8
Python
false
false
6,012
py
''' Create raw data pickle file data_raw is a dict mapping image_filename -> [{'class': class_int, 'box_coords': (x1, y1, x2, y2)}, {...}, ...] ''' import numpy as np import pickle import re import os import time from PIL import Image # Script config RESIZE_IMAGE = True # resize the images and write to 'resized_image...
[ "georgesung@gmail.com" ]
georgesung@gmail.com
19005500e56a8cfd4cd8d73586cef78ba54b0b6a
c253e3c94b66e85d52b1c274e649a8431db0d7d5
/IT-Lab/assignment-13/codes/3.py
cbacaf8b1655d28044d63039e819c9100d1397c2
[]
no_license
Abhinal/college-assignments
bfecc9d8dd05b7da5348def9990f42ff28329328
a93aeee086eb681f946cc343869610e4588af307
refs/heads/master
2023-08-16T12:04:35.543135
2021-10-22T16:27:33
2021-10-22T16:31:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
f = open("demofile3.txt", "w") f.write("Woops! I have deleted the content!") f.close() f = open("demofile3.txt", "r") print(f.read())
[ "ayushdubey70@gmail.com" ]
ayushdubey70@gmail.com
2aa08601d81f1ab298de2b62bce3c9cd19f4e78d
db9d7648ac9de73a208fad70565a7be208be0438
/main.spec
abd2fdaa7eca7bcfca8b4e0a75c0e71520a2260e
[]
no_license
testerchan/TestFish
5d71aa8bfd595bf2f53cc46fde90557eba7f8e19
fc285c726a76f279b345eb9cb093fe9fa48c387e
refs/heads/master
2020-05-17T17:27:15.147945
2019-04-28T14:51:39
2019-04-28T14:51:39
183,853,018
0
0
null
null
null
null
UTF-8
Python
false
false
808
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['main.py'], pathex=['D:\\xampp\\htdocs\\TestFish'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redi...
[ "aku_soku_zan_1bantai@hotmail.com" ]
aku_soku_zan_1bantai@hotmail.com
dfc904b97c5ed6fadac821366f8e95d574bdc177
5a0e22f9f09768d794007cc6ab919c366eb22775
/v2/blog/migrations/0010_auto_20210314_1832.py
23998fb39c9484946526a9b147bcf48892b5205e
[]
no_license
baseplate-admin/Help-The-Helpless
641367638a209712a8570ef1b3f8059883750786
a4a962f3efa61226412d816c624a961d5aaf833e
refs/heads/main
2023-03-22T01:00:13.615010
2021-03-18T08:16:43
2021-03-18T08:16:43
323,393,934
0
1
null
null
null
null
UTF-8
Python
false
false
1,199
py
# Generated by Django 3.1.7 on 2021-03-14 12:32 import blog.blocks from django.db import migrations, models import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('blog', '0009_blogauthorsorderable'), ] operations = [ migrations.RemoveField( mode...
[ "zarifahnaf@outlook.com" ]
zarifahnaf@outlook.com
c4c48ba19943ea2b09ca9f6068fe744487016ade
3d1f2dfb4da9f485f9ef6b5c00f74473352f6a7c
/exporter/yml_exporter.py
4328262a5702ac5a4314a1cfb13da392c551c17a
[]
no_license
jfmacdonald/cell-library-gof-example
513a85a491e565c963767a625c30b84f6598ff64
f7013d722b6fc1c4d98d68fa1425cf7370226ca5
refs/heads/master
2021-04-05T23:28:21.641733
2018-03-09T00:26:45
2018-03-09T00:26:45
124,459,155
1
0
null
null
null
null
UTF-8
Python
false
false
2,248
py
from warnings import warn from yaml import load_all from os import path from .exporter import Exporter from library import * from entity import FileEntity class YmlExporter(Exporter): def __init__(self, library): super().__init__(library) self.__stre...
[ "john@jfmacdonald.com" ]
john@jfmacdonald.com
c848438c2077621875d0c82384721542d7d07365
b4dee0c084c357cdb5445d13efe9af6aad4618dd
/utils.py
ab7b03928b9e5b17e418cb3a8f4c063246c8a397
[ "MIT" ]
permissive
L226/wikiflat
b5f322d5d55a249ec148bc69ae50eb9c5b8f22ff
db006d677d878e2678ec77630aff3d15914fde54
refs/heads/master
2021-01-23T13:09:44.641890
2017-06-05T11:12:10
2017-06-05T11:12:10
93,229,627
2
0
null
null
null
null
UTF-8
Python
false
false
4,641
py
""" general utils for unravel project - web get - text parse - hyperlink traverse - word similarity - text reconstruct - job metadata """ import os import logging import logging.config import redis import HTMLParser import wikipedia import nltk from nltk import tokenize try: import cPickle as pickle except: import pi...
[ "luke@ninyo.com" ]
luke@ninyo.com
0332360f22339757bb6bfc0d7e4464b8daec0377
d65521827b65f4026bc05e2cf453b15a5580461b
/flask_introduction/library/_03_template_str_inside_view.py
9c25631877fa6f2f1981451d34385865e24fae75
[]
no_license
monu11296/flaskIntroduction
1990bc8dec0d13192e0ae5227065bce248b98d2c
bef935b2e67b66a0563b5c28e2e96e7fd52946d6
refs/heads/master
2020-04-18T10:11:56.849501
2019-01-25T00:51:02
2019-01-25T00:51:02
167,459,904
1
0
null
2019-01-25T00:58:24
2019-01-25T00:40:06
Python
UTF-8
Python
false
false
829
py
"""Using Flask template engines. In this example we're using Flask template engine (Jinja2) to simplify the process to generate the resulting HTML. **TODO** In our previous example we had to do a lot of string handling to create the <ul> with authors. It's your turn to use the template engine to build the same result...
[ "you@example.com" ]
you@example.com
249132e1095f862e9e13a552da227b3333ebfaa4
7739085d1d4650cd84a4f6be054988801a863275
/SocketProgrammingAssignment/assignment1/WebServer_2.py
0a9e0fbb6296d3bc3d76be5bea33ce6a8d9d5ac5
[]
no_license
wesleynowlin/Computer-Networking-A-Top-Down-Approach
66886936200fa32f2757934b8f06aa915c2b3810
652458177d2457f25edc2b75bd308497a08b6e3d
refs/heads/master
2020-05-07T11:17:12.665745
2018-11-18T08:05:28
2018-11-18T08:05:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
# import socket module from socket import * from threading import Thread def deal(connectionSocket,addr): try: message = connectionSocket.recv(1024) # 获取客户发送的报文 filename = message.split()[1] f = open(filename[1:]) outputdata = f.read(); # Send one HTTP header line into sock...
[ "1194620498@qq.com" ]
1194620498@qq.com
54aa4af75f6d0908dfb7bc0bd4c363a2228b9c43
7a3b2857ba2cb2702e7e3b6e8b9f7db621db293a
/coronacheck_tools/verification/mobilecore.py
0f4b2751941516bef806c43628d8b550c660877e
[ "MIT" ]
permissive
p0epvlieg/coronacheck-tools
e3178cfdadfdf92559a76079ac890532998b52ef
4686a72d5516668a5617930a77200da1a1593823
refs/heads/main
2023-09-03T07:02:35.786054
2021-11-09T07:51:00
2021-11-09T07:51:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,972
py
from appdirs import user_config_dir from coronacheck_tools.lib import loadlib, listlibs from pathlib import Path from datetime import datetime, timedelta import json import base64 import requests import shutil def list_native_libs(): return listlibs() def validate(raw: str, lib='auto', allow_international=Fals...
[ "thomas@tphil.nl" ]
thomas@tphil.nl
e650a4e141d28eedd6ec302a9ec21e1665454c1d
c6e859f5b303c2d6117dbe907f49fbfcf55efa98
/postman/3. larger_response.py
7aa203a21f381244f33dfaa5dee72fcc6a017d3b
[]
no_license
sirkp/DSA
4d883d735e5225dbdaf81d8a8e19c09d7de88376
1920bb4d3907ad3a79bfa9476e9d2eaaa7602fab
refs/heads/master
2022-12-25T01:58:58.084578
2020-10-03T03:47:48
2020-10-03T03:47:48
273,150,641
1
0
null
null
null
null
UTF-8
Python
false
false
439
py
# larger Responses def largerResponse(filename): file = open(filename, 'r'); n = 0; sum = 0; for line in file: words = line.split(); bytes = int(words[-1]); if(bytes>5000): n += 1; sum += bytes file.close(); file = open("bytes_"+filename, "w"); ...
[ "sirkp@gmail.com" ]
sirkp@gmail.com
73cf4bbcd3801b9fdcd472525956202d729d23f9
3d67043f56f566a2f822c2db68ff1c8cc8974dc2
/CS384_Final_Structure/End_Sem_Code/end_sem_group_allocation.py
27657b395f948d3678d51d89cbb762a28386139d
[]
no_license
cs3842020/CS384_2020_skeleton
8d6995455522fd96c868f40523240dec9851fcad
9f920415a24599beed445ac8bf31e005753d05a4
refs/heads/master
2023-01-30T21:03:47.616396
2020-12-02T19:47:29
2020-12-02T19:47:29
295,760,785
0
6
null
null
null
null
UTF-8
Python
false
false
288
py
def group_allocation(filename, number_of_groups): # Entire Logic # You can add more functions, but in the test case, we will only call the group_allocation() method, filename = "Btech_2020_master_data.csv" number_of_groups = 12 group_allocation(filename, number_of_groups)
[ "cs3842020@gmail.com" ]
cs3842020@gmail.com
57581795f2b9526f736df142af26cc4f424a7aa8
5a671c25778638c9807fcddfb49d149e55db4c8f
/apps/users/migrations/0005_auto_20180308_1700.py
1563fe8368738145f49805e4eee2ea435c033339
[]
no_license
FathallaSelim/OnlineCourses
629386cff5acba0722e8d896d817a379952a1837
560da03ef66ab83f75958063eb69f1a22b5393b4
refs/heads/master
2023-01-13T20:00:45.146188
2019-12-24T09:39:48
2019-12-24T09:39:48
228,176,413
1
1
null
2022-12-27T14:58:31
2019-12-15T11:55:44
CSS
UTF-8
Python
false
false
444
py
# Generated by Django 2.0.2 on 2018-03-08 17:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20180307_1959'), ] operations = [ migrations.AlterField( model_name='userprofile', name='image', ...
[ "noreply@github.com" ]
FathallaSelim.noreply@github.com
e3988c53722da59a2e6154d465c2f2904696e35e
2635b9bf6d3d77344257ce4cfc345843bbd6dabb
/tests/test_functions.py
3f10c69d40e603d3cbcd6244099395a8d942792f
[ "Apache-2.0" ]
permissive
icecrime/graphite-api
da94be76213752133db356ee806b3663afa74ebc
99e87a1e666910648dbe90bcba463b6c2078ddfc
refs/heads/master
2021-01-14T10:38:43.783149
2014-03-08T13:32:16
2014-03-08T13:32:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,599
py
import copy from mock import patch, call, MagicMock from graphite_api import functions from graphite_api.app import app from graphite_api.render.datalib import TimeSeries from . import TestCase def return_greater(series, value): return [i for i in series if i is not None and i > value] def return_less(series,...
[ "brutasse@gmail.com" ]
brutasse@gmail.com
866603de50181b3fa18d54d50a6cb9afbb90ce37
b1bbfe2fa31d761d6a4658b022d344b5a0cb7dd8
/863-all_nodes_distance_K.py
9d181bbe57de2cd3949917d448ea134564b08c8f
[]
no_license
stevestar888/leetcode-problems
f5917efc3516f8e40d5143b4dc10583c1e22dabd
844f502da4d6fb9cd69cf0a1ef71da3385a4d2b4
refs/heads/master
2022-11-12T05:01:02.794246
2022-10-28T16:45:48
2022-10-28T16:45:48
248,663,356
2
2
null
null
null
null
UTF-8
Python
false
false
2,386
py
""" https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/submissions/ Strat: (general) Find a way for you to access your parents. Do a traversal, treating your parent like a child. (specically) Use a dictionary to store the parent for every node. Use DFS traversal, and add the gi...
[ "noreply@github.com" ]
stevestar888.noreply@github.com
6f6eaa158bddd373d9110edf52d4eec558f46461
15d8377c6ea9570017024b86cc68df19a14b8f6e
/BaseAdb.py
d90d4b62a32199388e03ae770188bb5c9067a69d
[ "MIT" ]
permissive
xuzhou1859/MonkeyTest
00970bf6e0c7fe781a9f209be748d1a7de57663a
0bdbde0146851a22910c3c4e867ed9f3ba6b26f1
refs/heads/master
2021-09-05T12:09:26.549436
2018-01-27T10:46:07
2018-01-27T10:46:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,100
py
#!/usr/bin/env python # coding=utf-8 import os class BaseAdb(object): """ Fundamental operations of adb. """ def adb_call(self, command): """ get the command. """ command_result = '' command_text = 'adb %s' % command print(command_text) results =...
[ "hust.wanglin@gmail.com" ]
hust.wanglin@gmail.com
a89f050f9e68a630e4312c8b4c9c97ba41e1138a
0e73f78466b2a7d928be8033522d591405d22b40
/irt/text/__init__.py
d5075606f537fc72af23c64738e256ef2d7be7c3
[ "MIT" ]
permissive
cthoyt/irt
0cf7c34035107e1b9afedf60e8bef12da6f2a955
bb923ce9859cf7a50b14776fb3a70e1b8a92a7b2
refs/heads/main
2023-06-21T00:58:35.418466
2021-07-25T16:24:26
2021-07-25T16:24:26
389,444,545
0
0
MIT
2021-07-25T21:31:57
2021-07-25T21:31:56
null
UTF-8
Python
false
false
333
py
# -*- coding: utf-8 -*- import enum SEP = "|" MASK_TOKEN = "[MASK]" TOK_MENTION_START = "[MENTION_START]" TOK_MENTION_END = "[MENTION_END]" class Mode(enum.Enum): CLEAN = "clean" MARKED = "marked" MASKED = "masked" @staticmethod def filename(mode: "Mode"): return f"contexts.{mode.va...
[ "felix@hamann.xyz" ]
felix@hamann.xyz
ab30dd41a89456e73e07931f0d91d5647c8d2497
73e6f26fade2192d59bce06cac606a721855248d
/Library/settings.py
928b004ceb497b8abd5d355ef9024fefc1dd934b
[]
no_license
SaudFaisal923/library_management
e11edd6fe92d269bc3a52fc2bd76ee4321580a73
fa57a603a39297840cf5db41687f3ba71dde6644
refs/heads/main
2023-06-20T14:01:50.490314
2021-07-11T17:08:12
2021-07-11T17:08:12
385,005,394
0
0
null
null
null
null
UTF-8
Python
false
false
3,260
py
""" Django settings for Library project. Generated by 'django-admin startproject' using Django 3.2.3. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
[ "faisalsaud923@gamil.com" ]
faisalsaud923@gamil.com
209d8760a7423a45deac02e12cd91e27141f2a11
fd3adde3dc8ef07bbe617840d52f0f2afcc0ac5e
/FactorCreator/20180201/ElementSegregator.py
41efcc7265ba9e7fc690b3e47a8520439c09fab3
[]
no_license
dxcv/MyMultiFactor
7a6d669dc898ceb1b6a9117d498e68e3ddc40616
3cf463a06d89cef32adf1357dac7722d209f90bb
refs/heads/master
2020-06-30T23:26:54.931596
2018-03-21T10:21:30
2018-03-21T10:21:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
# -*- coding: utf-8 -*- """ Created on Mon Jan 22 17:23:42 2018 @author: xtuser08 """ import os import pandas as pd import time #判断路径是否存在,不存在则建立 def Create_Path(Path): if not os.path.exists(Path): os.makedirs(Path) def Segregate_Then_Merge(InputPath,OutputPath): Create_Path(OutputPath) #获取全部文件...
[ "xiaomin.lin.2015@mqf.smu.edu.sg" ]
xiaomin.lin.2015@mqf.smu.edu.sg
611c784236972142d1c76ef51d49aeb2a35b195b
e18201cc4d9b0102b74219b85eda3efd1b1abece
/PythonExamples/PythonEssentail/IndexASlicing/HW/star_data/star_data_solution.py
8a3efe07112029a23fc4b2525033e65707011f05
[]
no_license
vhalyolee/PyScripts
3b696a6165a58d3f408e1fc87375adc1dc29a281
c5fc76617121cf1cc96c40759e40cdc0ab22c0ac
refs/heads/master
2021-01-13T08:48:21.619816
2017-06-26T17:05:59
2017-06-26T17:05:59
70,178,442
0
0
null
2016-10-06T17:55:19
2016-10-06T17:50:26
null
UTF-8
Python
false
false
2,209
py
# Star Data Exercise # ================== # # The data file for the "Third Catalogue of Nearby Stars" contains information about nearby stars in lines which look like the following: # # <pre> # Proxima Centauri M5 e 11.05 15.49 771.8 # Alp1Cen G2 V 0.01 4.38 749.0 # Alp2Cen K0 V ...
[ "vhalyo@gmail.com" ]
vhalyo@gmail.com
b0af46c45ab53bc78f1fa8c039487dbbe0469192
e4666cb9597fc094ce74121cd6c73765718f1aff
/config.py
66c9ceb0247e43d8cb91aa325006093050f03a3f
[]
no_license
ccuulinay/view-d-data
edbdd0449e2f366e93d3bcb021cc10db6f50cef1
5de812c5453ede2fcf163ac8d385e8371aae77b2
refs/heads/main
2023-07-14T15:47:24.297668
2021-08-28T07:52:55
2021-08-28T07:52:55
387,171,912
0
0
null
null
null
null
UTF-8
Python
false
false
1,444
py
import os import logging import json import pathlib from datetime import timedelta ################### Get logger ################### # set up basic config - logging to console logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(asctime)s: %(name)s: %(message)s', # ...
[ "ccuulinay@gmail.com" ]
ccuulinay@gmail.com
d320e4e866cc7cda8f8204b7e6ca8aec4202bfb9
e2426d7c01500ca4a2df4e4555f217f957baf957
/cows/service/imps/wms_gdal.py
624e30293f59af81a8d6f05c3ab93789be0978fe
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
cedadev/cows
959a5e1ad220cfe0cce48a2131d6971106c765aa
db9ed729c886b271ce85355b97e39243081e8246
refs/heads/master
2020-03-16T15:17:45.710584
2018-05-09T10:35:47
2018-05-09T10:36:37
132,736,968
2
0
null
null
null
null
UTF-8
Python
false
false
7,312
py
# BSD Licence # Copyright (c) 2009, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. """ An implementation of cows.service.wms_iface that uses GDAL to support warping between multiple coordinate refer...
[ "ag.stephens@stfc.ac.uk" ]
ag.stephens@stfc.ac.uk
a68052900e87d22e20f286a50536c416392d3dcf
43cdd7cb26fe44b1ed7de6a46f8b5e680c9b1372
/openpeerpower/components/sms/__init__.py
328aa2a919bc4a9522a555d6536f83b3d31420c0
[ "Apache-2.0" ]
permissive
OpenPeerPower/Open-Peer-Power
02ec5c133564b47c6f72f669e844a666643cacd6
940a04a88e8f78e2d010dc912ad6905ae363503c
refs/heads/master
2022-08-16T09:38:49.994009
2021-05-29T03:54:13
2021-05-29T03:54:13
183,174,237
1
0
Apache-2.0
2022-07-15T18:43:02
2019-04-24T07:35:47
Python
UTF-8
Python
false
false
930
py
"""The sms component.""" import logging import gammu # pylint: disable=import-error, no-member import voluptuous as vol from openpeerpower.const import CONF_DEVICE from openpeerpower.helpers import config_validation as cv from .const import DOMAIN _LOGGER = logging.getLogger(__name__) CONFIG_SCHEMA = vol.Schema( ...
[ "pcaston@arach.net.au" ]
pcaston@arach.net.au
939e7d058fe04d55211e0d4fcea6573e3821c895
33eb8ed192179a8104b9e04008f8890c2255d7f3
/A2/hw2/test.py
94331b3dd86b61ea7fffc7b979bc5c0be3466bed
[]
no_license
ayuj6/CS540-AI
f5e0d7a256fab8be1b35429c45d37ec0957e3bf6
deaea3f996fd66a3ec9317805b79aa31c901d679
refs/heads/main
2023-05-05T06:51:39.190006
2021-05-28T19:33:09
2021-05-28T19:33:09
371,794,586
0
0
null
null
null
null
UTF-8
Python
false
false
8,264
py
''' HW4 is to be written in a file called classify.py with the following interface: create_vocabulary(training_directory: str, cutoff: int) create_bow(vocab: dict, filepath: str) load_training_data(vocab: list, directory: str) prior(training_data: list, label_list: list) p_word_given_label(vocab: list, training_data: ...
[ "ayujprasad1999@gmail.com" ]
ayujprasad1999@gmail.com
b436c1884518402d04f67b999bb6ece4df3fb38d
930fa404212252c6e925c38ed2e6cae614ce4ec8
/sdne-dec.py
48694035afbe7cc74b80a012bc28e44dddaa2465
[]
no_license
klovbe/graph_clustering
0b778d3055a91bb2cd6d049c7a975a6679173a9b
15fd0296631b9b0e21455f0f51e40ed65319bc0d
refs/heads/master
2020-04-07T04:59:40.752665
2018-12-11T15:05:40
2018-12-11T15:05:40
158,079,652
0
0
null
null
null
null
UTF-8
Python
false
false
22,360
py
disp_avlbl = True import os if 'DISPLAY' not in os.environ: disp_avlbl = False import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import scipy.io as sio import networkx as nx import sys sys.path.append('./') sys.path.append(os.path.realpath(__file__)) from keras.en...
[ "klovbe@gmail.com" ]
klovbe@gmail.com
057ade53206a1e43f6ff9b28dc78a967904c96bf
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/480/usersdata/334/110622/submittedfiles/Av2_Parte2.py
e11e2a6b49056c7a5f5f6a12af476f55d4ff8dad
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
# -*- coding: utf-8 -*- x = int(input('Digite um número: ')) soma = 0 while (True): if x!=0: soma = soma + x%10 x = x//10 else: break print(soma)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1a71a9961e299b2092ae9063b2a5fbf394b7517d
ab4bf61695c200bc1cad19a1313a0d9e3893cba9
/programmers/heap-doubleQueue.py
eeadc481f475a4ed0c2c18ba8a002fbe8059a80f
[]
no_license
aibees/algorithm
fc19afd587b71a6d1395826efe813529bbeb999e
08b923eaa7c7b6e76aad44a1a7cb3ff6bf200380
refs/heads/master
2021-08-31T11:53:34.055946
2021-08-11T15:29:52
2021-08-11T15:29:52
164,192,026
1
0
null
null
null
null
UTF-8
Python
false
false
724
py
import heapq def solution(operations): queue = [] for oper in operations : print(oper) if oper.startswith("D") : num = int(list(oper.split(" "))[1]) if num is 1 and len(queue) is not 0 : queue.pop() elif num is -1 and len(queue) is not 0 : ...
[ "aibees1129@naver.com" ]
aibees1129@naver.com
29865e4eea4bce9834d13137459eed5c0cd0acc9
18f8bbe0e32ab2964b779091e84054a3c4bad69e
/lame_sender.py
5c745caa512bbe87c574812864b4a7aaa9eae001
[]
no_license
elanwu/lame_sender
b48d7085288248cc448a807025d75434ec7a5bbe
996f4b36c2221cfad5ccc7654a9cb708719475ad
refs/heads/master
2022-12-01T23:12:08.305332
2020-08-11T06:45:16
2020-08-11T06:45:16
282,705,036
0
0
null
null
null
null
UTF-8
Python
false
false
6,371
py
#!/bin/python3 # Not complete Xmodem serial file (e.g. binary mcu firmware) transmiting program. # Free to use, with your own risk. # elanwu@yeah.net import serial import hashlib import datetime import struct import time import binascii import random ## DESIGNATE: 1) BINARY FIRMWARE FILE NAME, 2) SERIA...
[ "elanwu@yeah.net" ]
elanwu@yeah.net
503f4adc6d38797e5af48405cb4b1924392660b6
5af21bf4f558001dbaecb4bc55d5d508a85cb761
/photoData.py
0d66dcf8743d11daa5056cafe06b774d659144e3
[]
no_license
zhxjnkjbh/imgDetecter
14314cac4e4d3209bf945e0382499300040e7ab5
dee88846b4e22bf84814d12db090732eea0aecf6
refs/heads/master
2020-07-27T21:56:42.419808
2019-10-09T03:34:07
2019-10-09T03:34:07
209,226,948
0
0
null
null
null
null
UTF-8
Python
false
false
4,348
py
# -*- coding: utf-8 -*- import cv2 import numpy as np from PyQt5 import QtGui class PhotoData: def __init__(self): self.img_raw = None self.img_rgb = None self.img_gray = None self.img_r = None self.img_g = None self.img_b = None self.img_show = None self.img_binary = None self.qimg_show = QtGui.QIm...
[ "zhxjnkjbh@163.com" ]
zhxjnkjbh@163.com
93843ecba39e6406a7648888f5cdf768deb2e2b6
dac49880ab446c0d5e4bd7f216fd27ca900ae03d
/Python_CGI/App_3/cgi-bin/sentimentAnalysis.py
256e46003ad9b81dad0380b03aa5b6b2ff3ff083
[]
no_license
AkhileshPandeyji/Python_All
bf961cc7c775d58ff0856a9b8d5ef656c1f8756e
d2f33f0fe37fcc8d9864d886c46391c355d716af
refs/heads/master
2020-06-13T04:38:01.637083
2019-07-11T17:03:05
2019-07-11T17:03:05
194,537,089
0
0
null
null
null
null
UTF-8
Python
false
false
2,692
py
import pandas as pd import numpy as np from nltk.tokenize import word_tokenize,sent_tokenize from nltk.corpus import stopwords from nltk.stem import PorterStemmer,WordNetLemmatizer from sklearn.feature_extraction.text import CountVectorizer,TfidfVectorizer,TfidfTransformer from sklearn.linear_model import LogisticReg...
[ "pandeyakhilesh5372@gmail.com" ]
pandeyakhilesh5372@gmail.com