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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e062c64ad630a4b6f5ecacf7cf97ba2f3af3c09e | 32eee34ffbf57023e39f68e5280f08995ef430f5 | /backend/db/deck.py | eca65f6b4387e2b246c0b6156767ba23a6c9e76d | [] | no_license | yibo-liang/puss_war | 4b43c79288897d242d4f15fd97f5b3039dc73a9e | 614d0dcb1a857a951fae8b84e790ef402ebd21e9 | refs/heads/master | 2021-09-10T15:43:26.670640 | 2018-03-28T19:20:54 | 2018-03-28T19:20:54 | 119,040,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | from db._db_interface import *
class DeckDBInterface:
@staticmethod
def get_deck_by_id(id):
try:
db = NoSQLDatabase()
db.init()
deck = db.find_one_by_key("_id", id, "deck")
except Exception as ex:
print("ERROR")
raise ex
retu... | [
"yibo.insane@gmail.com"
] | yibo.insane@gmail.com |
1920724bea68c7268d4dc99408f617f42c248858 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/aelg/prob4.py | 4fbd0b4d1fa1da615948253f8fc70a6d1a53b3c0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/python3
def solve():
inputList = list(map(int, input().split()))
k = inputList[0]
c = inputList[1]
s = inputList[2]
res = []
students = s
originalTile = 0
while students > 0:
studentPos = 0
for i in range(c-1, -1, -1):
studentPos += originalTile*(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
0d89a89307ef1891e27401a4c39aecfdcbede36d | 99ae4404ddc1ff8e96f0c588b257e1859d6fcb3b | /example_5_1.py | 8bc363eeb6d7b06b04163d281421f5134b5ea132 | [] | no_license | JDTyvand/MEK4470 | 6cd82bcedac4a0aaee0a18689414556ea6bb07cb | d51e1ef5a0af46035404899c3666650d35eb7469 | refs/heads/master | 2020-04-27T09:47:42.821863 | 2015-08-30T09:22:43 | 2015-08-30T09:22:43 | 41,603,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from numpy import *
def solver(u, cells, rho, Gamma, L, phi_A, phi_B):
F = rho*u
dx = L/cells
D = Gamma/dx
aw = zeros(cells)
ae = zeros(cells)
Sp = zeros(cells)
Su = zeros(cells)
ap = zeros(cells)
aw[1:] = D + F/2
ae[0:-1] = D - F/2
Sp[0] = -(2*D + F)
Sp[-1] = -(2*D - F)
Su[0] = (2*D + F)*phi_A
Su[-1] = ... | [
"Tyvand@Tyvand-og-Ratvik.local"
] | Tyvand@Tyvand-og-Ratvik.local |
ddb0c3cc3b8c673ac7ed8f08e70558267f37c936 | 8d4b737885446ccd40628d6a546a141d5e84e5b4 | /Topics/1_migrating_your_DNN_to_candle/original/t29res.py | b788006937bdd0dbffb2b10fdfceff9ce139e438 | [
"MIT"
] | permissive | brettin/candle_tutorials | 3afabd6ba12a9ee2353bd5166d0d0278d79e28ef | 18315a41cf51cbcb267fb78a2e02ffe82d2fc42b | refs/heads/master | 2021-04-28T03:12:17.942290 | 2018-10-19T16:34:16 | 2018-10-19T16:34:16 | 122,134,363 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12 | py | ../t29res.py | [
"rajeeja@gmail.com"
] | rajeeja@gmail.com |
2b52cb702af8721102b26cdfa0391b1b7af6f714 | 1de088d890d2df2cbb9ae13ba82174c9d6e7d0e2 | /lunch/stores/views.py | 5360842bf4e7a71ad0c8945e2147100beccc683e | [] | no_license | ichiaohsu/django_practice | f43a3177652b1020cd96e0ca5513f8153b2f223c | 0cf8248b28ed7292580457e33ecd08fda812b471 | refs/heads/master | 2020-03-22T02:04:13.332156 | 2018-09-20T10:57:09 | 2018-09-20T10:57:09 | 139,347,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from django.shortcuts import render, redirect
from .models import Store, MenuItem
from django.http import Http404, HttpResponse, HttpResponseForbidden
from django.urls import reverse
from .forms import StoreForm, MenuItemFormSet
from django.views.decorators.http import require_http_methods
from django.contrib.auth.dec... | [
"ichiao.hsu@gmail.com"
] | ichiao.hsu@gmail.com |
310934a4d8dd5c80d42789b7a6a7c6bf9cb959ab | 777b2cc83a81debd4e779db736dad1d8818a5a28 | /xbee .py | b0cb207cd0aedfdacc79051f959a95cc2d2b7655 | [] | no_license | rajugokul/python | 2e0c5a00f89af65ef4a59f3c72e3ac3e17b72ed4 | d138d6859ad419089426f06aef4cf5d5feff3249 | refs/heads/master | 2020-04-11T15:26:43.343536 | 2019-04-17T09:38:40 | 2019-04-17T09:38:40 | 161,891,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import serial
import pyttsx
from time import sleep
engine = pyttsx.init()
# Enable USB Communication
ser = serial.Serial("/dev/ttyS0", 9600,timeout=.5)
while True:
ser.write('Hello User \r\n') # write a Data
incoming = ser.readline().strip()
print 'Received Data : '+ incoming
engine.say(' '+in... | [
"noreply@github.com"
] | rajugokul.noreply@github.com |
3030e6f66bb5a663eb05d2735b35dac4684ce27f | 589b8dc78b1cd39f7ee197d0c8f19913a0df2a39 | /hfhh/fengzhuang_1.py | 2c20cb78b275c7ae1cb2ffb2df152f8e07ffdebd | [] | no_license | guoy2019/guoya001 | d36f238ba56a356452d4ed695712db8016ad0a0c | 0148fab5d887ce72af2c6600431b19a5976570b5 | refs/heads/master | 2020-07-22T13:23:24.352471 | 2019-09-09T03:27:03 | 2019-09-09T03:27:03 | 207,215,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from hfhh.fengzhuang_2 import ClassDome_mm # 通过类名找到所在的目录,操作方法:类名alt+enter
ClassDome_mm#使用类名调用ClassDome_qqq类里面的方法
| [
"1355915269@qq.com"
] | 1355915269@qq.com |
5d711d2cce2db7268af97425ebf49d3d9ba087f0 | a65fd5843e5b2cddc18e60583a0f238528a35eb6 | /app/__init__.py | 4510bc00a6f838065edc4847ad9e740963d1b114 | [
"MIT"
] | permissive | alphonce-otieno-odhiambo/HOTLINE-BLINKNEWS | 27df95ddc1d8aeebe42901d76e6a7e432f6e327d | a29fefce2b5925c3c8c0ce86f7f9f7687148b24a | refs/heads/master | 2023-09-02T08:21:05.124307 | 2021-11-04T04:59:00 | 2021-11-04T04:59:00 | 422,959,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
# Creating the app configurations
app.config.from_object(config_options[config_name])
# Initializing flask extensions
bootst... | [
"alphonce.odhiambo@student.moringaschool.com"
] | alphonce.odhiambo@student.moringaschool.com |
f89d573b08fc491c8d680f8aaa351dfe3721afa8 | 671e1340c18c2ab7936e6186505b8936bc4e8824 | /svm-app/plotter.py | 84b869a6c1b515402d113cdcbdd6037968dd7974 | [] | no_license | boidachenkop/svm-app | 8f18fcbd46949e9b06c58450ec3fc700e6b17ced | f6d48f62edb1f5deae6ae05b5b64a7f9ab385b42 | refs/heads/master | 2021-07-13T16:08:26.959414 | 2020-07-22T16:48:20 | 2020-07-22T16:48:20 | 188,828,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,305 | py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.ticker import MaxNLocator
import numpy as np
from scipy.stats import gaussian_kde
import argparse
import sys
import os
class LibsvmPlot:
def __init__(self, filename, nfeatures, dencity=False, bandwidth=0.1,
model_fi... | [
"boidachenkopavlo@gmail.com"
] | boidachenkopavlo@gmail.com |
0a728bbf6943a91fe1e8561cb376fdfc366d4c0b | c81f78af213222d2b3efec7de8b1cc0d5586500d | /search/migrations/0010_auto_20190511_0059.py | e91114a616240481288fef6213951f578c65de04 | [] | no_license | saadchoukry/Tweet-s-Analyzer | bafeab3e3c1df66794ec08897bb50a9493e6c3bb | c78520132ab25ef7919b1152fa822f4e672931f6 | refs/heads/master | 2023-02-02T02:55:42.699125 | 2020-12-20T11:00:20 | 2020-12-20T11:00:20 | 187,795,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # Generated by Django 3.0 on 2019-05-10 23:59
import datetime
import django.core.validators
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('search', '0009_auto_20190511_0022'),
]
operations = [
migr... | [
"saad.choukry@gmail.com"
] | saad.choukry@gmail.com |
bd50b3b453a9ed87c34a4e15867f3ed6f4edf393 | 62646dbd14579a39c09cd3b39ad59c2192684f10 | /tools/plexy/.venv/lib/python2.7/site-packages/bioblend/galaxy/objects/wrappers.py | 777db530570d2a5c9bf6c940969fe5e03f9f8d79 | [] | no_license | StephanieKehr/galaxytools | c5ddf421c197b28ce993580cdc031aa04a4fb282 | 5003218a9254341ce949a18aaef4b23d6ab04a3f | refs/heads/master | 2020-04-19T04:22:11.399141 | 2019-01-28T17:22:02 | 2019-01-28T17:22:02 | 167,960,944 | 0 | 0 | null | 2019-01-28T12:45:36 | 2019-01-28T12:45:36 | null | UTF-8 | Python | false | false | 50,669 | py | # pylint: disable=W0622,E1101
"""
A basic object-oriented interface for Galaxy entities.
"""
import abc
import collections
import json
import six
import bioblend
__all__ = (
'Wrapper',
'Step',
'Workflow',
'ContentInfo',
'LibraryContentInfo',
'HistoryContentInfo',
'DatasetContainer',
... | [
"steffi@bioinf.uni-leipzig.de"
] | steffi@bioinf.uni-leipzig.de |
40a2b9ab3c7c057cd94e07e7ac8d9674d2d53161 | b3c1a3c34fc84cc138a97c7b9d45ed4d5b89e710 | /mysite/mysite/urls.py | b5d35b6870ed050f3d4590aefc84ea7c1311764b | [] | no_license | Aletuominen/Djangoharkka | dd0131cfe984e8fcab1eab56b834940e381cf167 | 930c5f673409b2aea65cc71cd452fb0a66a33970 | refs/heads/master | 2020-05-18T13:01:36.872750 | 2020-04-28T18:08:50 | 2020-04-28T18:08:50 | 184,427,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-based ... | [
"34810204+Aletuominen@users.noreply.github.com"
] | 34810204+Aletuominen@users.noreply.github.com |
74f545ddd8aead850b286517ff15de1cb279c2a1 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_atoms_Polbinds_qsplit_fittedscreens/Jobs_chelpg/PDIF-CN2/PDIF-CN2_cation_neut_inner3_outer0/PDIF-CN2_cation_neut_inner3_outer0.py | 0529c196b51dd6089ab4ee51b1366f451a48a8aa | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,012 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
cad3adcc0cee5d576cedaa1c4dc7c7037e63b841 | f01bc6acb1ba6e42c195afcc340d2efc182ae651 | /DjangoWebProject1/app/migrations/0004_auto_20201219_0627.py | 63603e961e5691e7c9d193e90a27d03b314f3c6d | [] | no_license | sgalaxy2011/DjangoWebProject12 | 2d34b043285e39811cc5a3a5ccbe56313a168691 | e0bfe022a1ecb12e62c8b8f2a4d44278d2ae950c | refs/heads/master | 2023-02-03T02:49:55.041421 | 2020-12-19T05:50:33 | 2020-12-19T05:50:33 | 322,777,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # Generated by Django 2.2.17 on 2020-12-19 03:27
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20201219_0553'),
]
operations = [
migrations.AddField(
model_name='blog',
name='im... | [
"sgalaxy2011st@gmail.com"
] | sgalaxy2011st@gmail.com |
ea5b9b937f47326657b9da399ad06bdf9c9d3f9f | 857d2653df85eec7b740a782005da2872d532bff | /training/reco/k_means/k_means.py | d2dc9088e57ba424bc95239998544ce1abec4e40 | [] | no_license | calzonelover/CMS_DC_ANOMALY | 1621924dc66ec2a80a2aa3af3bb29762bb558073 | 5a02ab59ec52c462c37111f83e286149dd86754b | refs/heads/master | 2020-05-31T15:12:50.074681 | 2019-08-22T15:05:42 | 2019-08-22T15:05:42 | 190,348,831 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,406 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
from sklearn import svm
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler, normalize, MinMaxScaler
# customize
from data.prompt_reco.setting import REDUCED_FEATURES, ... | [
"patomporn.pay@gmail.com"
] | patomporn.pay@gmail.com |
260ff632015d6f5932bddcb9cfb80d61bc74add3 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /codingBat/python/warmup2/stringMatch.py | 885e6c9cdd2dd38ba959c80188a62fe641e07e7d | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,024 | py | #######################################################################################################################
#
# stringMatch
#
# Given 2 strings, a and b, return the number of the positions where they contain
# the same length 2 substring. So "xxcaazz" and "xxbaaz" yields 3, since the "xx", "aa",
# ... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
d5ef243769ad1d7fcedb4dc10348a48e35edebab | d072be4a71e948b75010fda78f9b8b478db7eb7a | /Script Writing/Teststopractice/Arrayandcount.py | 84df9663dc50b277ee246f812c4319746523994e | [] | no_license | Georgieboy68/ICTPRG-Python | 5e095fd72a5fc6e8a1d2734e0dbdbde419382521 | cfb1fb5e0b79ef2bc9a03d8882fa8d718a2c4486 | refs/heads/master | 2022-04-23T06:31:41.456740 | 2020-04-28T09:13:40 | 2020-04-28T09:13:40 | 259,569,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | #PYTHON ARRAYS/LISTS
#2.Develop an application that can accept an input from the user and output how many words they have entered.
#Description.
#prompt user to enter a string
#parse the string and break into substrings using whitespace as a delimiter.
#create a new list and copy each substring into it.
#loop th... | [
"noreply@github.com"
] | Georgieboy68.noreply@github.com |
5f5126f6bfdd8a5609050368d2645ea9aa972b00 | 5ce4791bcda6d355d68e314853613c0ba206c80d | /Histograms/setup_histogram.py | 928b03883f483afd363c88f2d4708998a5312315 | [] | no_license | leosala/python_utils | 0f2c8af742bc807a2d885f5f9ba001159cc0ae83 | f45cc49204dc7c28c21e124beee73b98396e7e28 | refs/heads/master | 2020-04-12T01:44:16.506027 | 2019-01-29T15:37:03 | 2019-01-29T15:37:03 | 43,772,735 | 0 | 1 | null | 2019-01-29T15:37:04 | 2015-10-06T19:15:01 | Jupyter Notebook | UTF-8 | Python | false | false | 489 | py | from distutils.core import setup
from Cython.Build import cythonize
import numpy as np
from distutils.extension import Extension
from Cython.Distutils import build_ext
ext_modules=[ Extension("histogram",
["histogram.pyx"],
libraries=["m"],
extra_compile_args = ["-ffast-math"]... | [
"Leonardo.Sala@psi.ch"
] | Leonardo.Sala@psi.ch |
e48c796d23da7fc3771a12c15b168dc2b66ca289 | 04578408c11fc2f0ce9ab79d396bb9a4fe8d941d | /Models/Segmentation/Parser.py | d13b158f49b6675ad2622d99863a155a6184fccd | [] | no_license | Abdullah-Alrefaey/Automatic-CaScoring-From-Chest-CT | 7724d12699f33f38e18f959748bd9423c6a51fdf | a00015f0a7c9255d17351bb0b78ad5dbb63220e8 | refs/heads/main | 2023-08-29T14:40:14.644677 | 2021-07-25T00:21:43 | 2021-07-25T00:21:43 | 420,287,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,097 | py | #
# Parser.py
# Author: Ahmad Abdalmageed
# Date: 5/21/21
#
import nibabel as nib
from scipy.ndimage import zoom, rotate
from skimage.transform import resize
import numpy as np
import cv2
import os
training = 'Data/Training/'
validation = 'Data/Validation/'
train_target_image = 'Data3/Training/image'
train_target_mask... | [
"ahmedmageed19@gmail.com"
] | ahmedmageed19@gmail.com |
b6dc3753f2deb3cd49598c2f72e82a4369327012 | 5236d4b852abd8a809b71a74f7da8c40712d5eac | /image_process/forms.py | 349836d3bcce656c209d8c0f45c830d11bc95815 | [] | no_license | kbatuigas/imageapp | dd589073338c6e1ad2f939b25cd465643deb3cb7 | 741e05f009a8f78e34e4fdc761604d1cf1221cdd | refs/heads/main | 2023-01-24T00:04:09.952474 | 2020-11-17T00:25:47 | 2020-11-17T00:25:47 | 313,462,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.forms import ModelForm
from image_process.models import ImageFile
class UploadImageForm(ModelForm):
class Meta:
model = ImageFile
fields = ['image']
| [
"36839689+kbatuigas@users.noreply.github.com"
] | 36839689+kbatuigas@users.noreply.github.com |
d89589a79f6bc5e27a53d9bbc7a7207c5236abf1 | e0e64cdbc26c62ab7c29bf8ce80dec809e574a29 | /visitor/car_element_visitor.py | 02987e4edd4786630b76d6887f509dc454a50ebd | [] | no_license | fujimisakari/design-pattern | 0e190080e161e480a7232fd33543c350f5487b38 | 53a893c0c9d2c76c7d0fae4a6464c934cac371e9 | refs/heads/master | 2021-05-06T22:28:20.812744 | 2018-02-21T18:26:41 | 2018-02-21T18:26:41 | 112,838,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import abc
class CarElementVisitor(abc.ABC):
@abc.abstractmethod
def visit_wheel(self, wheel):
pass
@abc.abstractmethod
def visit_engine(self, engine):
pass
@abc.abstractmethod
def visit_body(self, body):
pass
@abc.abstractmethod
def visit_car(self, car):
... | [
"fujimisakari@gmail.com"
] | fujimisakari@gmail.com |
62ce8c123cde10aef1ed6ef12b22aeb33d07370b | 2964c4e8fb72472b9904702bb2e395c206bc714f | /app/migrations/0007_rename_fechasus_suscriptor_fecha_suscripcion.py | 54621927e4e7046fc6e5d824eeb76597381dc461 | [] | no_license | Jonyrgb/ProyectoSemestral-DJANGO | 2a8513cd65b54ce64cde90f184282aa81ba0ba0e | 7624e9c2a922fb37549153dc2a77d8377c3fbd47 | refs/heads/main | 2023-06-21T13:10:39.846812 | 2021-07-21T14:28:01 | 2021-07-21T14:28:01 | 388,145,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.2 on 2021-07-08 03:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0006_suscriptor'),
]
operations = [
migrations.RenameField(
model_name='suscriptor',
old_name='fechasus',
n... | [
"ari.cofre@duocuc.cl"
] | ari.cofre@duocuc.cl |
e4d24ebc652d0bf66a158af5b381614d540f60ec | f30566140c4f7e5108eb55fe7a4fcaa6d32e2ded | /iqspy_gui.py | a5d26393ac2edc22bcdcb5bdbe104ceecea66d3c | [] | no_license | simanwhite/IQSpy | 5dbf80959f78a5ef5109c0610c676c448c3586a0 | 277d36949e58e34ca38fca7e0a5788f76c561ba5 | refs/heads/master | 2021-01-10T03:52:11.535387 | 2016-01-13T18:53:55 | 2016-01-13T18:53:55 | 49,593,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,105 | py | from Tkinter import *
from ttk import *
import os
import pickle
import iqshark
class App(Frame):
def __init__(self, parent=None, shared_q=None, **kw):
Frame.__init__(self, **kw)
self.parent = parent
self.shared_q = shared_q
# button group
self.button_frame = Frame(self.par... | [
"simanwhite@126.com"
] | simanwhite@126.com |
dd63db4cae59ee17f4906194ba652376f0e0003f | b6cd9d4689eec34af3cff23ec002d2795e90b1e2 | /zerone_inc/zeroslack/apps.py | 7eaf1f83f5718ca62863a055cde751c31b226126 | [] | no_license | payamesfandiari/zerone_inc | d4ef3a700a5d26a05131a654f7b62828411844e2 | b88e4ac4c6e3fe4ecb21f1e566c3e890b1b67723 | refs/heads/master | 2023-03-03T12:49:30.252802 | 2021-02-10T21:32:30 | 2021-02-10T21:32:30 | 281,714,847 | 1 | 1 | null | 2021-01-18T13:20:24 | 2020-07-22T15:29:31 | Python | UTF-8 | Python | false | false | 281 | py | from django.apps import AppConfig
class ZeroslackConfig(AppConfig):
name = 'zerone_inc.zeroslack'
verbose_name = "ZerOne Slack"
def ready(self):
try:
import zerone_inc.zeroslack.signals # noqa F401
except ImportError:
pass
| [
"p.esfandiari@samanpr.net"
] | p.esfandiari@samanpr.net |
b318f9c75980357087885a134e83e6072a2f6bbe | 337c1df60759192247f3d2570928b29566d71153 | /Longpoll/info_lp.py | 876de0dd6a51b79c14ad477901dcd78fdc3cbb88 | [
"MIT"
] | permissive | cergey2205/IDM6 | 2e392f13d81bb564f3ba2e41532022ca310131ba | fc1df2adfc6166f63f14d314c00c71206c2d9fa5 | refs/heads/master | 2022-11-05T13:26:35.131081 | 2020-06-29T15:05:08 | 2020-06-29T15:05:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,844 | py | import asyncio
import json
import re
import vk_api
from vk_api.longpoll import VkLongPoll
import messages
import online
import friends_lp
finished = True
async def info(delay, peer_id, command):
global onl
await asyncio.sleep(delay)
if "!н инфа" in command or "!н инфо" in command:
if peer_id > 2... | [
"noreply@github.com"
] | cergey2205.noreply@github.com |
7ac1b5ea52ce4f538442b926ca4de3a266df3014 | ab6a4095d805f1878de3cda5a56e60a6dd3ff5e2 | /2015/Day4.py | 5f7d9e05cc20b96ee6b86447abee1c0289ff5e5e | [] | no_license | arrowbounce/oldAOC | 5748c713a6ac873e853926656db75ac06726c221 | 27aad343016be39a1bcb7c63f0b7effe28c392eb | refs/heads/master | 2020-09-23T10:37:00.897294 | 2019-12-05T04:34:07 | 2019-12-05T04:34:07 | 225,478,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import hashlib
input = "bgvyzdsv"
i = 0
while True:
hold = hashlib.md5(input + str(i)).hexdigest()
if hold.startswith('000000'):
print i
print hold
break
i+= 1 | [
"ts63280@gmail.com"
] | ts63280@gmail.com |
e589e05f36c0d5b92495f79ed537307b58e28139 | 72d42b33dc26de80f398526be38064ed47bdc008 | /combinecsv.py | f57031a2ae620b7f025d4e0cfe09159cb5d811ba | [] | no_license | UBC-Astrophysics/TeachingScripts | 12a6d461d9802bbf076a5f8b061c9a5809e88225 | d5a6068d2d6a96949317c80ebc0a697af693140d | refs/heads/master | 2021-01-10T15:17:25.267091 | 2019-10-18T19:15:57 | 2019-10-18T19:15:57 | 51,566,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | import csv
import sys
dict={}
if (len(sys.argv)<6):
print("Format:\n\n python3 combinecsv.py gradebook.csv ams.csv output.csv number_of_columns_to_sum number_of_output_column\n\n")
exit(-1)
with open(sys.argv[1], 'r') as csvfile:
firstrow=csvfile.readline()
gradebook = csv.reader(csvfile, delimit... | [
"heyl@phas.ubc.ca"
] | heyl@phas.ubc.ca |
c2330fd2578061131f39976e0dd8c71421b64375 | ca3866bce9a6130f0a972476de869a1dec7bf276 | /mblog/settings.py | bcd30141e558824d796caf09f08edcb2cf0e59d2 | [] | no_license | Jammers001/mblog20180228 | 4a812c76e73a7eacca61b34917661fe0e056e655 | e8ed66909c36d10c2671cf9ae64b2892a347203a | refs/heads/master | 2021-01-24T19:24:02.419178 | 2018-02-28T06:34:44 | 2018-02-28T06:34:44 | 123,240,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | """
Django settings for mblog project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"jammers_lee@foxmail.com"
] | jammers_lee@foxmail.com |
2f9afaeeacf9eb5a5b1893e3e8db728e1cf38f06 | 12f83344cdfe561db39ad9106dbf263ccd919f7e | /Projects/miami_metro/debra/migrations/0084_auto__add_field_brands_icon_id.py | 905f99d42b129e430c5245c9813ab6a94d8af89c | [] | no_license | TopWebGhost/Angular-Influencer | ebcd28f83a77a92d240c41f11d82927b98bcea9e | 2f15c4ddd8bbb112c407d222ae48746b626c674f | refs/heads/master | 2021-01-19T10:45:47.039673 | 2016-12-05T01:59:26 | 2016-12-05T01:59:26 | 82,214,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,415 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Brands.icon_id'
db.add_column('debra_brands', 'icon_id', self.gf('django.db.models.fields.... | [
"ivanfridrich1981129@yandex.com"
] | ivanfridrich1981129@yandex.com |
cd9b2621354b41dab2657e8f0bae14493858399f | 6725ff7ad5cbcc1413654c7fbe4d9795a35e50b5 | /L4_task3.py | 9e2c5e6f7a3ba2cb1e763f102fa57d46d7e29e8d | [] | no_license | MaksimKulya/PythonCourse | 59e5a2e67378bfdddf5bd96db8e25782489b7db1 | 40b5559e2fac76d3fb3221ba4b90478dd10f442c | refs/heads/main | 2023-05-03T05:13:05.238092 | 2021-05-18T14:44:44 | 2021-05-18T14:44:44 | 321,064,262 | 0 | 0 | null | 2021-01-20T12:28:47 | 2020-12-13T12:52:01 | Python | UTF-8 | Python | false | false | 414 | py | # Для чисел в пределах от 20 до 240 найти числа, кратные 20 или 21. Необходимо решить задание в одну строку.
# Подсказка: использовать функцию range() и генератор.
import random as rnd
a = [rnd.randint(20, 240) for i in range(100)]
print(a)
b = [n for n in a if n % 20 ==0 or n % 21 ==0]
print(b) | [
"maxk2350@yandex.ru"
] | maxk2350@yandex.ru |
9bb974b43dbf910daa6e0fcf9b42a790f7401030 | 6e031aee02b421c449a30017172a76e62773dc5d | /incleair/urls.py | c63599d46f449850231b70a1d443a97fca70c8de | [] | no_license | armstrong-series/analytics-django | 729b30f03cf0bd87010a3e24ef1113b7afdd34c3 | e5fb00572f1bf04dd2a0f04aa3f6c7f36b574fd9 | refs/heads/master | 2023-03-09T14:52:57.461873 | 2021-02-19T10:40:34 | 2021-02-19T10:40:34 | 339,766,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py |
from django.conf import settings
from django.contrib import admin
from django.conf.urls.static import serve
from django.urls import path, include, re_path
urlpatterns = [
re_path(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}),
# path('admin/', admin.site.urls),
path('', include('a... | [
"enefearmstrong@gmail.com"
] | enefearmstrong@gmail.com |
f9363a95cf7c89213c5d653650782b71e0865a47 | abcfd22028defe9e33610bc89dcbdb73ead10fc1 | /gene/models/CNN3.py | 0b68d695f928ca5d61d7f53eb45dcd542ea2faeb | [] | no_license | jheo4/gene_classification | e46b6443ec4a10e0ce27da88054d6cd3c713e4a9 | 2f85678f6f87433758269ae8720f4d689e40d87c | refs/heads/master | 2020-04-11T20:23:37.080596 | 2019-02-14T02:36:11 | 2019-02-14T02:36:11 | 162,069,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import torch
import torch.nn as nn
class CNN3(nn.Module):
def __init__(self):
super(CNN3, self).__init__()
self.c1 = nn.Conv2d(1, 16, kernel_size=3, padding=1)
self.b1 = nn.BatchNorm2d(16)
self.p1 = nn.AvgPool2d(kernel_size = 2, stride=2)
self.c2 = nn.Conv2d(16, 32, kernel_size=3, padding=1)
... | [
"jin993@gmail.com"
] | jin993@gmail.com |
e68d2f4f4ab44a3e822c784d73212b4ce73eb25e | 02b0d49b2dce19636088a9726decbf226be33b0b | /projects/migrations/0001_initial.py | c51df14e3fe22287e9cb14c4acec96a399af3e72 | [] | no_license | minhch-git/devsearchlive | 083c0b6a8d9dea83e25300867138e7926b297c6d | e4fe082f553ea693dfac5fcf9e2f5780a62d3c38 | refs/heads/main | 2023-07-27T12:54:53.896540 | 2021-09-13T10:15:29 | 2021-09-13T10:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Generated by Django 3.2.7 on 2021-09-13 02:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.BigAutoFie... | [
"minhch.vn@gmail.com"
] | minhch.vn@gmail.com |
53fe24223fbffd0f694c4f4c0faf15c15b2809c4 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /manageusers/apps.py | dca42b37dd05993510c3c0ba37e95721d15238d8 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.apps import AppConfig
class ManageusersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'manageusers'
# def ready(self):
# from .schedulers import scheduler
# scheduler.start()
| [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
38a7e2ff822b6908a35de1dc748a80913365b95a | 853bb5bafbd8c0d7dfcc3430a87052d12b8406c0 | /Challenge 4/Question 1/solution.py | 9ddbd30a847903a133e5b9cf709733baa5f7e80f | [
"Apache-2.0"
] | permissive | Rishit-dagli/Google-FooBar | 3be2945d90b919c8283664f1d2b89f9262de1653 | 85dc2dbb880bffa4568fa84657fc0d1bcd6b8974 | refs/heads/master | 2022-11-11T13:27:13.517662 | 2020-06-30T17:51:13 | 2020-06-30T17:51:13 | 263,262,892 | 5 | 2 | Apache-2.0 | 2020-06-04T04:19:33 | 2020-05-12T07:19:49 | Python | UTF-8 | Python | false | false | 2,835 | py | import math
def generate_dist_vector(size, start, tot_length, length):
tmp = [start]
count = 0
l, r = -length, tot_length - length
for i in range(size):
left, right = tmp[0], tmp[count]
left += (l*2)
right += (r*2)
l, r = -r,-l
tmp = [left] + tmp + [righ... | [
"noreply@github.com"
] | Rishit-dagli.noreply@github.com |
43d41fd4f5157f53f333ca113a52693267e38d94 | b00fc84e34bde330dc6439e7e96a394add7a73d8 | /TicTacToeBoard.py | e58a4a5a571c3092b3e61b382e0c12f3ca020937 | [
"Unlicense"
] | permissive | ivaneduardomv/Q_Learning | 940faedb96794cd1a9baddaf4bddf979201ef5d3 | d8f642252dea446d985c9626bbb37194d79e43c1 | refs/heads/master | 2020-12-27T18:36:57.229093 | 2020-02-03T16:13:21 | 2020-02-03T16:13:21 | 238,006,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | class TicTacToeBoard():
"""docstring for TicTacToeBoard"""
def __init__(self):
for x in range(9):
self.boardArray.append('-')
M = 3
N = 3
boardArray = []
def ThrowX(self, coordX, coordY):
self.boardArray[coordX * self.M + coordY] = 'X'
def ThrowO(self, coordX, coordY):
self.boardArray[coordX * self.... | [
"ivaneduardomv@msn.com"
] | ivaneduardomv@msn.com |
2d01d954434b4d22fadf0abbd4193256393b49fe | 6bd12c11ebfd86d5fa7a1859894ad9ee79c43fdf | /lib/task.py | 17214b4ff1e08f3473f30dc0d234474f5a692de2 | [
"MIT"
] | permissive | taha-ub2/gantt-trampoline | 0f19415b8adbd5550016799e19544707b6636dd4 | 4148151c326471abae3f9d7a6ee78bdfd9b196c1 | refs/heads/master | 2022-04-29T07:49:32.503283 | 2020-04-27T22:35:08 | 2020-04-27T22:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py | '''
__author__ : Erwin Lejeune <erwin.lejeune15@gmail.com>
__date__ : 23/04/2020
__brief__ : Task classes
'''
import json
import sys
import numpy as np
from lib.plot_gantt import GanttPlot
from lib.readTrace import TraceGenerator
# A Task has an activation time, running periods and a termination time
# Tony Maste... | [
"erwin.lejeune15@gmail.com"
] | erwin.lejeune15@gmail.com |
255997393c11703c927617a467958a7455c0b86b | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2and3/Crypto/Hash/SHA256.pyi | 0469b7cb2b4e995bbd9b60c74f5c7d1c887412a6 | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 399 | pyi | from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA256Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
04d3f7f57b86f9d53dc66b09133701d70ba362a7 | 1720de4f3fd52d8d398ed5a498d49bf781847e3e | /learning_python/week3/wk3_exercise5.py | 2471ebdcfbdaba77985a9a18609fd3a9b4e2d15d | [] | no_license | alexDEaraujo/pynet | f5b2629eaeed7e6bf2b9c40a5d183d8e614ffe1b | bb234643a4269b3886f230963044e0acbbdcb81b | refs/heads/master | 2021-06-30T14:34:33.804413 | 2020-12-21T21:50:13 | 2020-12-21T21:50:13 | 204,849,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import os
WINDOWS = True
base_ip = "10.142.86."
base_cmd_linux = "ping -c 2"
base_cmd_win = "ping -n 2"
base_cmd = base_cmd_win if WINDOWS else base_cmd_linux
ip_list = []
for last_octet in range(1, 255):
new_ip = base_ip + str(last_octet)
ip_list.append(new_ip)
for i, ip_addr in enumerate(ip_list):
pr... | [
"aaraujo@corp.gluenetworks.com"
] | aaraujo@corp.gluenetworks.com |
23fd4c7bce265fa37358d997c2af125abc82efb2 | b5802f3419cec6cfe19f2f5e0d658179ce6db096 | /stocks/validators.py | 4ac6467b3b85e073725bf81f05fb24f650405670 | [] | no_license | fjbsantiago/ivalue | 0f137ec663575f8814eb10b6213a36445cb8fc17 | b03bcf472dd6d804d1b862641dbdcb59c1c8e2fa | refs/heads/master | 2021-01-19T14:21:05.948255 | 2017-04-13T15:30:29 | 2017-04-15T20:53:17 | 88,149,548 | 1 | 0 | null | 2017-04-15T20:54:05 | 2017-04-13T09:41:22 | JavaScript | UTF-8 | Python | false | false | 191 | py | from django.core.exceptions import ValidationError
def no_abc(value):
content = value
if content == "abc":
raise ValidationError("Content cannot be abc")
return content
| [
"asdkavir@gmail.com"
] | asdkavir@gmail.com |
47bfc9032bf7353361b1818c44b2797b13363154 | 04d8f0b5a291ec6c3470f4498dd64ab9c1845f96 | /library/third-party/file_formats/pypdf2/pdf_file_merger/info.py | 50f3b155bd7f0b74923a56b302593acd731e7e98 | [] | no_license | volitilov/Python_learn | 8c0f54d89e0ead964320d17eeddeacd5b704b717 | f89e52655f83a9f1105689f0302ef5b0ee30a25c | refs/heads/master | 2022-01-10T13:39:59.237716 | 2019-07-17T11:39:10 | 2019-07-17T11:39:10 | 70,601,503 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | from PyPDF2.PdfFileMerger import *
# Инициализирует объект PdfFileMerger. PdfFileMerger объединяет
# несколько PDF-файлов в один PDF-файл. Он может конкатенировать,
# нарезать, вставить или любую комбинацию из вышеперечисленного
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
PdfFileMerger(
stri... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
6dd0be9d6b07dba30423d4ecfba393cefadaf205 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Python/1-100/96.UniqueBinarySearchTrees.py | 6c59f9a19ecaa76aa1eae5a23d0e85ffde46d062 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py |
class Solution:
def numTrees(self, n: int) -> int:
dp = [0] * (n + 1)
dp[0] = 1
dp[1] = 1
for i in range(2, n + 1):
for j in range(1, i + 1):
dp[i] += dp[j - 1] * dp[i - j]
return dp[n]
if __name__ == "__main__":
solution = Solution()
pr... | [
"xpf6677@163.com"
] | xpf6677@163.com |
8d4e56953936aaa921286a1937fac5ff0b20f0c1 | ea9ad8d33bafcac691abd4f258e689cfac2ca87a | /leetcode/algo/foobar_1_1.py | 376f6f2fe9f743ae88890ee1e9f99eab7572ce72 | [] | no_license | wduncan21/Challenges | 97aa1937e4ba5c290df16b7ca6d4e9528b02af70 | 391328c7c601b5c77ff250ad173600d4d1dd7f57 | refs/heads/master | 2021-01-22T07:42:51.462562 | 2017-09-21T03:45:51 | 2017-09-21T03:45:51 | 102,243,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 31 22:36:11 2017
@author: Mr.Wang
There's some unrest in the minion ranks: minions with ID numbers like "1",
"42", and other "good" numbers have been lording it over the poor minions who
are stuck with more boring IDs. To quell the unrest, Commander Lambda has
tasked ... | [
"wluducan@gmail.com"
] | wluducan@gmail.com |
46fa4aa7fca3759a72ec73b8b86d534e9fc16b54 | 9b5332fb0c728001bde43c95f9d473eee0409e30 | /update/update/settings.py | 89aa679e810bc4a2ce21f99937411d361a68b685 | [] | no_license | azrael1998/Projectv1 | 13c4b35e212b80fc71a2a64c35f377da07ccb39b | 8080cb7cd64e58e969dde41cbdf4ef8c24f7677f | refs/heads/master | 2023-08-20T00:26:01.942294 | 2021-10-05T13:52:50 | 2021-10-05T13:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,686 | py | """
Django settings for update project.
Generated by 'django-admin startproject' using Django 3.2.7.
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 ... | [
"vipinachar2020@gmail.com"
] | vipinachar2020@gmail.com |
fea6f964339fb23f6f9a008d7407e6133306cc04 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/S_EllipsoidTestWaitingTimesACDres.py | af9ab8366b01c94bbb1df7f27d3b20251e3c79dd | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # S_El... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
a094b4dd3338e52ec549cceaad1e8a759808677c | 3d111a528f451103439f2ae4af095a670fa8028f | /ailabeling/sort.py | 20639b09ccd84fa1a0c0b8459827e3a470bb383f | [] | no_license | jiugegelaile/pipeline | b15d375ee9cf6c589181fa40769944762e5c154c | 7cc18a826c5fd38648b464ca6304bd5e7642f955 | refs/heads/master | 2023-02-21T14:55:59.813620 | 2021-01-07T02:41:59 | 2021-01-07T02:41:59 | 327,483,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py |
def sort(list):
list.sort(key=lambda x: (int(x.split('_')[0]), int(x.split('_')[2])))
print(list)
if __name__ == "__main__":
list = ["1_front_1_038-23011016201202092437539.jpg", "1_front_4_038-23011016201202092443539.jpg",
"1_front_3_038-23011016201202092441539.jpg","1_front_30_038-23011016... | [
"790013422@qq.com"
] | 790013422@qq.com |
7569f83cf194ab98454b91e6f75242aa4184ba9a | bd0bdc24b8bd9d132f3dcd735c32977b4bc77489 | /Phasing_and_Imputation/imputation_pipeline.py | f5b5695b3fd50af7ab9241919cd35201bf51bc10 | [] | no_license | scleland01/BIOL-8803-IGen | f6769b53e18d2ab1b75d8e03cceae5160f60b951 | 95c9475c46296af57a731a2d0e65819989c94801 | refs/heads/main | 2023-02-25T13:19:43.450691 | 2021-02-04T03:10:08 | 2021-02-04T03:10:08 | 332,613,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | import argparse
import subprocess
from multiprocessing import Pool
parser=argparse.ArgumentParser()
parser.add_argument("-i", required=True)
parser.add_argument("-t", required=True)
parser.add_argument("-d")
args=parser.parse_args()
#convert 23andme file to vcf
subprocess.call(["bcftools", "convert", "--tsv2vcf", ... | [
"noreply@github.com"
] | scleland01.noreply@github.com |
8c9447c3f292c1307c78143b0de03a14cccc97b9 | 12abbf73f6e0f88c263b50496aa3c9b769a0ba19 | /venv/Lib/site-packages/nb_log/handlers.py | 7d220fe28fa8528f7510ab6682839d4d72d007df | [] | no_license | yangtingting123456/API_Test_Framework | 037f2d3171cecba39f845d646d8db629dfce2ba9 | dd388491c038d635ccfe323032d86b17ea2a48e0 | refs/heads/master | 2023-02-23T00:21:10.321954 | 2021-01-15T09:33:30 | 2021-01-15T09:33:30 | 319,823,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,740 | py | # noinspection PyMissingOrEmptyDocstring
import atexit
import copy
import sys
import os
import traceback
import socket
import datetime
import json
import time
from collections import OrderedDict
from queue import Queue, Empty
# noinspection PyPackageRequirements
from kafka import KafkaProducer
from elasticsearch import... | [
"3048903923@qq.com"
] | 3048903923@qq.com |
2bb70d6a6695aea5c1b72fc92e57b6b8eb639e23 | 66dd1a87c257c1b02a85e0bf0ff38c2da84d5cba | /order.py | 2dd59897baa368189d4bd1f451de24d3033d8531 | [] | no_license | Ofekroz10/Restaurant-Simulator | 2c4c5cd2da25d074cca7392de98f813856290512 | cc015b12cbd32ec27df875fedcab13463603c1ef | refs/heads/master | 2021-01-25T23:32:19.399671 | 2020-03-04T12:07:56 | 2020-03-04T12:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py |
import sys
from enum import IntEnum
from heapq import *
import exceptions
class Priority(IntEnum):
NORMAL = 2
PLUS = 1
VIP = 0
class Order:
""" represent an order, id is class variable """
id = 0
def __init__(self, priority, ):
self.meals_lst = list()
self.order_id = Order.... | [
"ofekrozenkrantz@gmail.com"
] | ofekrozenkrantz@gmail.com |
3c489724580fee1cff01e9a6d5af9cf6c8e318b5 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/inbox/tests/test_move_items.py | 61144957b42114b41d7ac357bcc9e2fa1a33ec6d | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 1,116 | py | from Acquisition import aq_inner
from Acquisition import aq_parent
from ftw.testbrowser import browsing
from ftw.testbrowser.pages.statusmessages import assert_no_error_messages
from opengever.testing import IntegrationTestCase
from plone import api
from plone.uuid.interfaces import IUUID
class TestMoveItemsWithBrows... | [
"pablo.verges@4teamwork.ch"
] | pablo.verges@4teamwork.ch |
8581bebb0515d9f6f5077ab898a270199551fc0a | 48f58a3cbf6ce5f4f6ac0d14486ede6e69310820 | /fastreid/modeling/meta_arch/baseline.py | bbad7de46794558331d2b95973a6fb164e93f649 | [] | no_license | AsuradaYuci/CCFP | 00455fadb3f414352da667fd00454f0ab7e67e65 | 858f57997ce688779d2abe31ee93ca86730f7949 | refs/heads/main | 2023-08-03T12:48:26.975345 | 2021-09-11T07:54:51 | 2021-09-11T07:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,490 | py | # encoding: utf-8
"""
@author: liaoxingyu
@contact: sherlockliao01@gmail.com
"""
import torch
from torch import nn
from fastreid.modeling.backbones import build_backbone
from fastreid.modeling.heads import build_heads
from fastreid.modeling.losses import *
from .build import META_ARCH_REGISTRY
from fastreid.modeling... | [
"noreply@github.com"
] | AsuradaYuci.noreply@github.com |
daface475f5b0ebaca1216489715e0ecde64d1d3 | a9375ae0cecba2f70e01fe9455af7173dab6a3da | /scheduled_tasks/reddit/stocks/AutoDD.py | 96dd32db152c51dc9f3397d42fd14a80b105b866 | [
"MIT"
] | permissive | kannavue/Stocksera | ca3c2680371fb106e7850ed7a1b956f64e56c8a0 | 80fbbfb7d38cf8bf09367d67bda85bdc0c7801d4 | refs/heads/master | 2023-09-04T01:59:27.353642 | 2021-11-04T13:13:09 | 2021-11-04T13:13:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,029 | py | import sys
import os
import re
import locale
import praw
from collections import Counter
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import yfinance.ticker as yf
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
import sqlite3
from scheduled_tasks.reddit.stocks.fast_yaho... | [
"tanguanquan@yahoo.com"
] | tanguanquan@yahoo.com |
16c262e541fc9403bd1ef644a22792cbce34c815 | 3554ec3d9be85b6c66d3ea05828089c20860539f | /qubot/utils/errors.py | 7368b671c59849ed2d4306fba2edc6509313009f | [
"MIT"
] | permissive | anthonykrivonos/qubot | 715b426f058b45b0ffe09114697083f4a46a41e5 | 0cc9623a22fe75a0c8d4a08ac8adc96184dc2ae7 | refs/heads/main | 2023-04-05T09:08:32.801349 | 2021-04-16T06:29:08 | 2021-04-16T06:29:08 | 338,516,226 | 2 | 1 | MIT | 2021-04-14T19:13:17 | 2021-02-13T06:56:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,201 | py | from typing import Callable, Optional
from time import sleep
def inline_try(func: Callable) -> Optional[Exception]:
"""
Try to execute an inline function without throwing an error. Useful when the Exception thrown is trivial.
:param func: A function to call.
:return: None if no exception is thrown or ... | [
"abkrivonos@gmail.com"
] | abkrivonos@gmail.com |
55fbb25fa35077570bd924c3688a57ee9546dea2 | fa5e22528ab8308c4a2bfa902d9ee288aa977233 | /nfb_studio/signal_nodes/signal_node.py | 8abce727dfe358b4ec2b0fb5b8396c0216aa2857 | [] | no_license | bioelectric-interfaces/nfb_studio | 4aa506c27ad693810fad6e884834949b24d6dde8 | 397605cb6beb4d35f0b2dc14dd1efa3d81976461 | refs/heads/master | 2023-04-23T10:27:27.957674 | 2021-05-23T20:17:08 | 2021-05-23T20:17:08 | 237,448,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | """NFB main source signal."""
from PySide2.QtWidgets import QWidget, QComboBox, QLabel, QFormLayout, QLineEdit, QCheckBox, QDoubleSpinBox, QHBoxLayout
from ..scheme import Node, Input, Output, DataType
class SignalNode(Node):
"""A node representing part of the signal in the signal designer.
In the model-view... | [
"andres.zhukov@gmail.com"
] | andres.zhukov@gmail.com |
d429933954f17bdb29a27618c00bf37a8a9ead4c | 335ca7ca235630e6ec4970241af8abefad61b80c | /curso/models.py | 40274cbf67d98c73eb2f12d234c55357c9e287f7 | [] | no_license | VitoriaIzaine/django-escola | 3d99802616f237ec1c3c1f518a840ba3c3b75131 | 1a85d93f6bb56c29ad7a011395c97df60b3055c8 | refs/heads/main | 2023-09-04T19:09:52.449679 | 2021-10-13T14:14:12 | 2021-10-13T14:14:12 | 416,768,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from django.db import models
class Base(models.Model):
create = models.DateTimeField(auto_now_add=True)
update = models.DateTimeField(auto_now=True)
active = models.BooleanField(default=True)
class Meta:
abstract = True
class Curso(Base):
titulo = models.CharField(max_length=50)
url ... | [
"vitoriaizaine@gmail.com"
] | vitoriaizaine@gmail.com |
3f49d4200ab4388cbd1e35a2df376979efb51f35 | d2ee3c418332d6121642ccecafb6e3f47fe08889 | /src/dataset.py | 415915aa776bc671388dc63b3e5d3481e6f909a5 | [] | no_license | DJever23/DyReLU | afa1e19694884ed076c81c6a78740298af14aaee | 4515c4407262c0bc2e61b8bfee61ce698836f8f0 | refs/heads/master | 2023-01-14T01:59:39.962499 | 2020-11-14T10:30:43 | 2020-11-14T10:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from torchvision import transforms
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from utils.load_config import Config
def default_loader(path):
return Image.open(path).convert('RGB')
class MyDataset(Dataset):
def __init__(self, txt, transform=None, target_transform=None, loader=def... | [
"luanshiyinyang@gmail.com"
] | luanshiyinyang@gmail.com |
cc2f09eee84765b5427e394a66b9788ab5cd8916 | 9de1095afb20c2a9067e4a39e0f4ad87bfc17558 | /warrior/WarriorCore/testcase_steps_execution.py | 29cb2f53c9a06edf830a4152e2f78c4cae5c951e | [
"Apache-2.0"
] | permissive | kaheichan/warriorframework | 1c44992b98d99189b9ba25b4c4e8195a1a0c7862 | c18e305ea9d187debf29168876a1fee6b8836239 | refs/heads/master | 2021-01-21T15:26:44.533158 | 2018-01-09T21:53:06 | 2018-01-09T21:53:06 | 85,851,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,853 | py | '''
Copyright 2017, Fujitsu Network Communications, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | [
"sathya.radhakrishnan@us.fujitsu.com"
] | sathya.radhakrishnan@us.fujitsu.com |
59e5bfc5a438f06bf596e960a06c30425b19e745 | 59d5139282681ccd9316d051833517302778f880 | /Python/Cool things/test.py | b0c4fa3e67ad73823cd0ec9df365b2537771bdc5 | [] | no_license | Nikita-bsu/Something | 66ce86387f7865adb4da8b420a7e4743f5deb6fe | 0fa0328e08e45b86453a3984dd4ad99f38ad9f4d | refs/heads/master | 2023-04-16T04:20:53.899131 | 2021-04-30T12:39:39 | 2021-04-30T12:39:39 | 363,136,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | import random
import numpy as np
import _pickle as pickle
count = 16
a = np.zeros(count)
first_time = True
class _Getch:
"""Gets a single character from standard input. Does not echo to the
screen."""
def __init__(self):
try:
self.impl = _GetchWindows()
except ImportError:
... | [
"nik.mikbsu@mail.ru"
] | nik.mikbsu@mail.ru |
84b968169382602afa62062f76d42932913fbcd8 | c0238b72eb5432dcf4100d459bdb954591631d6c | /demo_shared_with_weight_copy_each_time.py | 164d790305efbbae2f95f84bb8da6a1e3bb5a0ad | [] | no_license | edmBernard/mxnet_example_shared_weight | 6419779182b400a31e9097e156cacfc667bff5bc | 88c598a44019906f41e391b3cc064274c064c15b | refs/heads/master | 2021-01-19T12:44:12.298200 | 2020-12-31T16:29:50 | 2020-12-31T16:29:50 | 100,804,769 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | import logging
import mxnet as mx
logging.getLogger().setLevel(logging.DEBUG) # logging to stdout
mnist = mx.test_utils.get_mnist()
batch_size = 100
train_iter = mx.io.NDArrayIter(mnist['train_data'], mnist['train_label'], batch_size, shuffle=True)
val_iter = mx.io.NDArrayIter(mnist['test_data'], mnist['test_label'... | [
"bernard.erwan@gmail.com"
] | bernard.erwan@gmail.com |
8f70da36be4bad5f57453e846ac2e05538819700 | 850c82ae7aead2e7e54234798c47de3952a4b234 | /net/mobilenet_v2.py | 7ee58ae0106c484dda063be448e94e75499a6358 | [] | no_license | lishanlu136/knowledge_distillation | 934c7b818a9e3ce1067d6007171d3a7efee8ca31 | ba65ec350af88e891756761fae43f0c9a3980123 | refs/heads/master | 2022-10-21T16:18:47.729467 | 2020-06-16T10:43:25 | 2020-06-16T10:43:25 | 272,681,165 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,014 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licen... | [
"1078872918@qq.com"
] | 1078872918@qq.com |
13dd7d3399da40bf1282af9a068f620e9bd21560 | 44c196d74c51cbc66c05c97b9d9a377c8aa6bb40 | /grocerybag/grocery/migrations/0005_additem_user.py | b4f1617d15798b505887f9168404897d14d71d42 | [] | no_license | Pratik-ahirrao/grocerybag | 02ee6d438a4df5785c88d8cbeba8df269ec1ba23 | 4d59da4a9a4abeba764c6b32aa3b9a2f3e5e05b7 | refs/heads/master | 2023-08-04T21:28:35.098707 | 2023-07-31T19:21:25 | 2023-07-31T19:21:25 | 403,706,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.2.7 on 2021-09-06 07:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grocery', '0004_alter_ad... | [
"pratikahirrao0@gmail.com"
] | pratikahirrao0@gmail.com |
f3ff80e06ffa6e5b066bd4f24b990dfee599e6f1 | 6d891f7ddfc582e4419825d77dc83023e77c2d43 | /phrase-vec/phrase-interactive.py | 47312f684c0ebdca2d549d580b2f10f06f0f7827 | [] | no_license | SnakeHunt2012/word2vec | 2f2916398279ea5f895b6bec67ae4508af457e73 | d259f790f0a0c55c1ab85529ab49c387ed458091 | refs/heads/master | 2021-01-09T20:49:33.414213 | 2016-06-14T07:56:35 | 2016-06-14T07:56:35 | 52,870,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | #!/usr/bin/env python
# -*- coding: utf-8
from sys import stdin
from codecs import open
from numpy import array, zeros, dot, sqrt
from argparse import ArgumentParser
from theano import tensor, function
tensor_vector = tensor.vector()
tensor_scalar = tensor.dscalar()
normalized_vector = tensor_vector / tensor.sqrt(ten... | [
"SnakeHunt2012@gmail.com"
] | SnakeHunt2012@gmail.com |
14f8bc1f60b9b03ebcd2a95145df7573d739d188 | 1fee0eaa0950488fc473d7d5ab2cffb10aa076be | /mdls/mode13/v13_na_ri_8r64dr_ver101_config/read_snap_quantreout.py | 196ff0eae444ddf505f766a77abab3390aa79e9a | [] | no_license | demorest/vegas_devel | 19a9a18890ffeebb426521c0cc53d31a5c26cd80 | 43633271af6dd1e01b73de5b12bacc40740886ce | refs/heads/master | 2021-01-21T00:07:48.109003 | 2013-03-25T18:31:45 | 2013-03-25T18:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | #!/usr/bin/python2.6
##################################################################
# Script Information
# This script can be used as iADC(2GSps) board testing
# Connect the input I+ with a frequence such as 13MHz and clock
# as 200MHz
# 20120517@CASPER.Berkeley
###################################################... | [
"jayanthc@gmail.com"
] | jayanthc@gmail.com |
63d18cf1b9a01df87b841db87908955f4e15253d | f480cba49c272f52a9e9fb3d21da6dc59aeb0e01 | /lenders/models.py | 1f0a9981f3706ec93f5eca962882ffe7f952b65c | [] | no_license | RomaneGreen/lambada | 3fc2fa9847a7850fc7251a8554999b3951fe4c32 | c037a65a5eadebe38958891691fb8232e9556106 | refs/heads/master | 2022-11-23T07:21:18.687785 | 2020-07-26T17:09:20 | 2020-07-26T17:09:20 | 250,838,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.db import models
from datetime import datetime
# Create your models here.
class Lender(models.Model):
name = models.CharField(max_length=200,blank=True)
photo_main = models.ImageField(upload_to='photos/%Y/%m/%d/',blank=True)
phone = models.CharField(max_length=20,blank=True)
programdate = m... | [
"romaneg@Romanes-MacBook-Pro.local"
] | romaneg@Romanes-MacBook-Pro.local |
0322b410b70fc524c86802fbc9d6d64049867b3e | 2b4bd41f5afc7a3e8c62204fa5226e17247ac0e4 | /server/wellClusterShares.py | 5f49305274da7a9bee3eb3cb66a1df994ea7ab8b | [
"MIT"
] | permissive | kdinkla/Screenit | 0fc7e1914616de1f9080569619be3dcf8279b9e1 | 08ec7de3a24ea07da19062b009ca81a0f5a9c924 | refs/heads/master | 2021-11-16T22:20:50.186679 | 2021-09-29T07:52:20 | 2021-09-29T07:52:20 | 50,079,691 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import tangelo
tangelo.paths(".")
import compute
@tangelo.types(dataSet=compute.dataSet, features=compute.featureSet, exemplars=compute.exemplarDict)
def run(dataSet, features, exemplars):
return compute.wellClusterSharesFlat(dataSet, features, exemplars).to_json()
| [
"kasper.dinkla@gmail.com"
] | kasper.dinkla@gmail.com |
f6c63ede371e0271643d28518bd43b3d85636c61 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Scientist with Python Track Github/22-Statistical Thinking in Python (Part 2)/05-Putting it all together a case study/08-Beak length to depth ratio.py | ee9d31d8f9a75fbdc075f31112ca552fb4842913 | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | """
Beak length to depth ratio
The linear regressions showed interesting information about the beak geometry.
The slope was the same in 1975 and 2012, suggesting that for every millimeter gained in beak length,
the birds gained about half a millimeter in depth in both years. However, if we are interested in the
shape... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
dd188a89cf6826811e25abf70f7d5db8ca841c50 | 50f3206dc7e4db6864473a59eaf598a48210f4b3 | /chapter-07/eg4.py | e37e4a873f42391385c68bc09be549c803a606c7 | [] | no_license | macyapp/python-for-everybody | 335626aa1c244c703079e647fa5bb0dbbb345d97 | 3ea0c4e2c62392e26d60c3c4eb9e8244cbece24f | refs/heads/master | 2022-11-22T23:16:14.383098 | 2020-07-29T12:28:27 | 2020-07-29T12:28:27 | 263,840,594 | 0 | 1 | null | 2020-07-29T12:28:28 | 2020-05-14T07:03:36 | Python | UTF-8 | Python | false | false | 131 | py | fhand = open('mbox-short.txt')
count = 0
for line in fhand:
line=line.rstrip()
if line.startswith('From:'):
print(line) | [
"sidhantn99@gmail.com"
] | sidhantn99@gmail.com |
311455831162a04dc4f76165796faeede2cf28cb | 30d5409a4bd75199b7225aa4e2fd34c2117d6382 | /template.py | a2a9853cbdf468e331418348c7c35c5fb0ab24ae | [] | no_license | jerry-peng/advent-of-code-2018 | 260159646931a12765d79b9eed5d87e0d3fb6bea | b0d00ce515ad38237786a2c387b3372055865f00 | refs/heads/master | 2020-04-11T13:28:00.468222 | 2019-12-11T06:17:36 | 2019-12-11T06:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | def main():
data = readFiles()
print(data)
def readLine(line):
return line
def readFiles():
data = []
file = open('input.txt', 'r')
for line in file:
data.append(readLine(line))
file.close()
return data
if __name__ == '__main__':
main()
| [
"jerrypeng0112@hotmail.com"
] | jerrypeng0112@hotmail.com |
affcd8ba90bbca8974ab39aaac6fd5ac494f3abd | 337dcb11099d411264d6cef29036157c977df5f8 | /shunqiwang/spider/根据地区获取数据.py | 4ec2bf1111bf918b8e7b4e4bb54572c7a55b3e04 | [] | no_license | j38472/worksproject | 980a580318416be9f9de76cab6a40ee0500ea348 | 5182fd49c424bb5c36c6457d04d3020b05fb4b9f | refs/heads/main | 2023-05-13T19:04:36.430107 | 2021-03-30T06:57:40 | 2021-03-30T06:57:40 | 352,859,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,464 | py | from time import sleep
import pymysql
from lxml import etree
import requests
import re
from fake_useragent import UserAgent
class ShunQi:
# 数据库链接
def __init__(self):
self.conn = pymysql.connect(
host='127.0.0.1',
port=3306,
user='root',
password='97655... | [
"34500603+j38472@users.noreply.github.com"
] | 34500603+j38472@users.noreply.github.com |
8ac81263617350772c63aee79f5fba52be9fd4f0 | 7b98ba19faceb53363c05945e9ea2d4f14c8e75e | /insightFinderToServiceNow/ifobfuscate.py | 9233e617bb90381e1d5ed20d17943d536a01cdac | [
"Apache-2.0"
] | permissive | insightfinder/InsightAgent | 9327b93fb42c58040373b8a18aa8d26aeeac4d18 | bcd5d207d19c06d2aa9a916419e69972173ceafb | refs/heads/master | 2023-08-16T23:01:58.598609 | 2023-08-16T20:01:08 | 2023-08-16T20:01:08 | 58,421,337 | 27 | 134 | Apache-2.0 | 2023-09-13T01:32:54 | 2016-05-10T01:53:33 | Python | UTF-8 | Python | false | false | 544 | py | #!/usr/bin/env python
import base64
from getpass import getpass
def decode(obfuscated):
""" decode an obfuscated string """
return base64.b64decode(obfuscated).decode('utf-8')
def obfuscate(to_obfuscate):
""" obfuscate a string """
try:
return base64.b64encode(to_obfuscate).decode('utf-8')
... | [
"noreply@github.com"
] | insightfinder.noreply@github.com |
d0fdb6c1f4e03fc9e0b45dacec33247b3402dc7b | 30d5be10d92bf713874122b6a7676459c3056f4a | /MatchActivity.py | 147efbe7dde6b75aac1f709a80259ba335f52ee6 | [] | no_license | ajaymonga20/Projects2016-2017 | c7b586bc8c6240a55e696164b101d8c0a173ef9e | ca7eea78b0eddd2dbc783470f3a5d638054b3e48 | refs/heads/master | 2020-04-07T06:21:27.098805 | 2018-11-29T17:03:52 | 2018-11-29T17:03:52 | 158,131,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | from gettext import gettext as _
import sys
from gi.repository import Gtk
import pygame
import sugar3.activity.activity
from sugar3.graphics.toolbarbox import ToolbarBox
from sugar3.activity.widgets import ActivityToolbarButton
from sugar3.graphics.toolbutton import ToolButton
from sugar3.activity.widgets import Stop... | [
"noreply@github.com"
] | ajaymonga20.noreply@github.com |
c84ce134627ed330def481a073c53077edbf1216 | 7eb915eb06ea731ea56d3825153cbb3d669ab0d5 | /cs/subsites/tests.py | 093a02d4da1e0cc4cb3952c99e19ff1910d06def | [] | no_license | codesyntax/cs.subsites | 67a8fb475c70639685169ca6e497ffbc160e3a64 | 465f34ac27401a227ad5f1dd47ef36403db3ca54 | refs/heads/master | 2022-07-10T14:24:07.995052 | 2016-09-05T11:08:15 | 2016-09-05T11:08:15 | 45,188,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | import doctest
import unittest
from Testing import ZopeTestCase as ztc
from Products.Five import zcml
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
from Products.PloneTestCase.layer import onsetup
import cs.subsites
OPTION_FLAGS = doctest.NORMALIZE_WHITES... | [
"libargutxi@codesyntax.com"
] | libargutxi@codesyntax.com |
a126c5828114c77e9155a5b1a8ba6140d6156f49 | d615af58892756054cf78758d0f4312cac3f79cb | /Real-Time Data Plotting.py | d42210798df02953b291e9aeced4b6fde545f5c9 | [] | no_license | bky201/Auto-Temperature-Sensor | 93a29409a93cbd8ceccf33e08a39a3508c819de2 | 433743aa4572a554c5e63925d74b21c092a4d69d | refs/heads/main | 2023-08-25T15:07:50.029807 | 2021-10-17T12:51:10 | 2021-10-17T12:51:10 | 418,128,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 27 17:08:18 2020
@author: nyunu
"""
import serial # import Serial Library
import numpy # Import numpy
import matplotlib.pyplot as plt #import matplotlib library
tempC= []
ser = serial.Serial('COM3', 9600) #Creating our serial object named arduinoData
plt.ion... | [
"noreply@github.com"
] | bky201.noreply@github.com |
b06e31be6a8735c81eac773e462ed242c4b888bc | 201a822666c2de47549ced7e34898fbca8eec7c4 | /arcrest/admin/__init__.py | f4e509e7e0ec61a44c562f619eedffcf25c86327 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Esri/arcpy-server-util-rest | e4ad08b41ce18b90e7d1d1d97013f282ce642dc7 | 198c9526f41ab742da36d0eff467475bca7da2fe | refs/heads/hg/default | 2023-08-27T22:31:41.596734 | 2013-02-22T18:09:23 | 2013-02-22T18:09:23 | 5,786,743 | 10 | 5 | Apache-2.0 | 2018-07-26T22:19:37 | 2012-09-12T22:21:04 | Python | UTF-8 | Python | false | false | 73 | py | from arcrest.admin.admin_objects import *
import arcrest.admin.cmdline
| [
"jason.scheirer@gmail.com"
] | jason.scheirer@gmail.com |
6eb5b62fea02661d05c4422bddc8745ab2c8aa81 | 213558636cd89f2105ec0b2e385dcaaf899e41ce | /visualisations.py | 2641985c6f9113be38bf2bdd282814cf0f9fbedc | [] | no_license | Hazarrrd/Books-ONOS | a340c11b71968be84b17f0579a95beb8752857d6 | dca2d0eb7e2bf57870efb2142fe3d30e5b5bdea1 | refs/heads/master | 2022-10-27T15:25:48.919076 | 2020-06-14T18:28:03 | 2020-06-14T18:28:03 | 265,900,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,077 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import KBinsDiscretizer
import data_preprocessing as proc
from igraph import *
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
stopwords = set(STOPWORDS)
def discretize_data(data, strategy="... | [
"jannsieradzki@gmail.com"
] | jannsieradzki@gmail.com |
22b832220ce71eec1a82530e92846372878a2f92 | 5e6b357c1f1efc45b64983c369fe98ea9bbe4e1b | /wakerfarmer/admin.py | 4c800b9748c982413400dff77aa6d0a92f7c3575 | [] | no_license | tanakrit1998/mysite | 6376af9ba04e8f30e496d9f54dc7a277968d88aa | 3b31f67f0e52d25971042a384053f28307471857 | refs/heads/master | 2022-11-25T01:10:10.649501 | 2020-04-13T07:32:53 | 2020-04-13T07:32:53 | 223,328,133 | 0 | 0 | null | 2022-11-22T05:14:02 | 2019-11-22T05:12:08 | JavaScript | UTF-8 | Python | false | false | 225 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Queue)
admin.site.register(Price)
admin.site.register(Mill)
admin.site.register(Farmer)
admin.site.register(Ownermill)
| [
"tanakrit.ja.59@ubu.ac.th"
] | tanakrit.ja.59@ubu.ac.th |
bd6f19cc309ca96b8337ed2d79752fead8b00ed9 | 3346669e5b8bfb5318179819ec46dbe2011d1619 | /Policy Gradient Methods/discretize.py | df79b800c7579d2e851da3e571df2f45185b95da | [] | no_license | alidzhikov/reinforcement-learning | 1d9c5560a66ca7b22e1eb5bc23c6ef2b26e4539b | 83db4325a8d0f034e977d5359d7e825baac7ed74 | refs/heads/main | 2023-07-01T13:14:23.245919 | 2021-08-07T06:59:12 | 2021-08-07T06:59:12 | 357,237,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,629 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 16 22:43:58 2021
@author: Mustafa
"""
import sys
import gym
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# Set plotting options
plt.style.use('ggplot')
np.set_printoptions(precision=3, linewidth=120)
# Create an environment and set random s... | [
"m.alidzhikov2630@gmail.com"
] | m.alidzhikov2630@gmail.com |
ac86219e5e676b4b236828df5e98a6e165f62b41 | d63ca2513aa992d8c44de9e7c1df8c28d1f46e7e | /Semester1/FP/Seminar/S7/Entities/Punkt.py | 9469256eac97f80f68e7d21c4fbbee2d5c97d369 | [] | no_license | ImCODEX/Uni | 36c3c29931b0779f74ea718aedc5f867a295a7d5 | 3aa784e650e1d1b5ef6ee4b23e1a900d7821f877 | refs/heads/main | 2023-08-20T22:43:25.880304 | 2021-10-20T19:13:15 | 2021-10-20T19:13:15 | 352,299,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | class Point:
def __init__(self, x, y):
self.__x = x
self.__y = y
def __str__(self):
return "x = " +str(self.__x) + " y= " +str(self.__y)
def __repr__(self):
return "x = " + str(self.__x) + " y= " + str(self.__y)
@property
def x(self):
return self.__x
@... | [
"razvanpostescu@gmail.com"
] | razvanpostescu@gmail.com |
15d426a7e4643fabc70e15e94441389afefc2ce9 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/v20200701/get_azure_firewall.py | 3e936ac33077dad9aa63947bf571cfffcc65267b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,805 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
4de7ce33e34de4de06b6dfe1dfa17082a880d8c8 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/lib/jnpr/toby/services/cgnat.py | ef4120ad53cc1879e9dad7d03399915732161de7 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110,053 | py | # pylint: disable=undefined-variable
# p-ylint: disable=invalid-name
"""Module contains methods for CGNAT"""
__author__ = ['Sumanth Inabathini']
__contact__ = 'isumanth@juniper.net'
__copyright__ = 'Juniper Networks Inc.'
__date__ = '2017'
import re
from jnpr.toby.utils import iputils
from jnpr.toby.services import u... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
43fdac89fbc88fa12bff6d89944aeae8645420fc | 98e6b1aca114160168cc1e98fc52880121dededd | /blog/migrations/0012_auto_20200924_1506.py | 9d232a9007b7626e1b5e537c912e06b89a9b4e33 | [] | no_license | tidders2000/screenpop | 423cf0133052500aaf3dea9c539ab1523f1cba79 | 0e920fbe32db6c3cc755182b70b6e55e1443d7a9 | refs/heads/master | 2023-08-23T20:53:00.219377 | 2021-10-18T20:04:06 | 2021-10-18T20:04:06 | 288,985,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 3.1 on 2020-09-24 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0011_post_category'),
]
operations = [
migrations.AlterField(
model_name='comment',
name='active',
... | [
"simontidman@Simons-MacBook-Pro.local"
] | simontidman@Simons-MacBook-Pro.local |
e1b06b52231c9bcd3a40ec3a68471706dc7781ed | b471470126befc48d61bf3e17c8231b33e8d3e33 | /1117-mid-term-6.py | ff3fe16f7e1178ab27682245ea8b118fe673391a | [] | no_license | Xi-Plus/KUAS-DIIWS-Code | 5ccd5ff512b3aad5fcf9ca37c7ca095e796aca9d | 60e0e6c8c80847b5270d4d0f45028becabd08230 | refs/heads/master | 2021-09-03T21:48:31.755611 | 2018-01-12T08:37:51 | 2018-01-12T08:37:51 | 105,234,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
url = "http://www.books.com.tw/activity/gold66_day/?loc=P_021_1_more_001"
f = urlopen(url)
html = f.read()
obj = BeautifulSoup(html, "html.parser")
days = []
for i in obj.findAll("div", {"class":"day"}):
days.append(i.get_text())
names = []
for i in ob... | [
"huangxuanyuxiplus@gmail.com"
] | huangxuanyuxiplus@gmail.com |
8593611db4f020a4c49e00ff63f8707ff98d10bb | 9849f3d4ee33f3c3cbad8fd056eeeb38bbdc5e46 | /sv.py | f7830428fdd0620eb379d17a9cc2579c35e15d67 | [] | no_license | Sawa543/kNN | 7db0cc77f273e59594b528a553e12659192eec47 | 969fb8c3a38119f754c59e92cf72bbc36333c326 | refs/heads/master | 2022-10-31T05:06:11.674702 | 2020-06-17T14:13:02 | 2020-06-17T14:13:02 | 261,052,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,752 | py | #程序简述:
#前提:
# 从MNIST官网上下载手写数据集(四个),保存在d盘的文件夹(名字为AI)中
#实验环境:
# Windows操作系统,python 3.8.2,Visual Studio Code 1.44版
#程序运行过程:
#1.程序运行时,首先读取这四个数据集
#2.输入一个k值(整数)作为kNN算法的k值
#3.程序会计算前1000个测试数据集利用KNN算法所得分类结果,计算正确率并显示
#4.输入一个i值(整数)来代表想要测试的数据
#4.对测试集中第i个数据利用kNN算法进行标签分类
#5.在中端显示区会显示测试数据的k个近邻数据的标签,测试数据的实际标签以及利用KNN算法所得的标签
... | [
"noreply@github.com"
] | Sawa543.noreply@github.com |
cb23cbdec39f4a8f003a927370f9f122fac7582d | 0f99b01353d72cff537c02da616428da5da3f11f | /ftp.py | 78ea912dad4aa9ff8b746a5669569d0e32cbba5c | [] | no_license | TENSIILE/Activator | ad752f85597ab645ca25f326b0707ca73acc97ec | e75012b8a1885f17d96ee909b60f521105e5502c | refs/heads/master | 2023-07-19T14:35:02.803304 | 2021-09-19T17:53:41 | 2021-09-19T17:57:29 | 408,197,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from ftplib import FTP as Ftplib
class FTP:
def connent(self):
self.ftp = Ftplib('host')
self.ftp.login('login', 'password')
self.ftp.cwd('public_html')
def disconnent(self):
self.ftp.quit()
self.ftp.close()
def delete(self, file):
self.ftp.delete(file)
... | [
"laptev-vlad2001@yandex.ru"
] | laptev-vlad2001@yandex.ru |
66c5235e59c54e4a6b7c1bc1964d4c95051166fc | 60ea084ad04d882daf234e07cdba5d1d73041887 | /3.django/my_first_django/product/migrations/0002_product_category.py | ee8e62fe1d55895acd73217138b4241a49fde070 | [] | no_license | zzz-gh/Assignment_Week7 | fdc842cd69c83b5b7003d1da0ebeb0606a3f1a0a | 9034b62f2511a35a0cf437b2e164a13d91f0f0e8 | refs/heads/master | 2020-12-08T20:56:25.246891 | 2020-01-10T18:06:14 | 2020-01-10T18:06:14 | 233,093,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.0 on 2020-01-04 08:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='category',
fi... | [
"zinpaing00999777@gmail.com"
] | zinpaing00999777@gmail.com |
72fd0fbf13da481b25826bed1e553261679655c5 | c340835e4444c664fc2b261238e3738cf5bf7196 | /combination_sum.py | 58093ee3ed445d253ce8b136bea5e6b489626c29 | [] | no_license | z-o-e/LeetCode_OJ_Python | 49f2a7378eb98f707c97d7757cc19ef19622db42 | ad7f5152fe404bdd4e91710d9a719f392bec7a96 | refs/heads/master | 2021-03-12T22:39:44.898502 | 2014-10-16T05:30:25 | 2014-10-16T05:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution:
# @param candidates, a list of integers
# @param target, integer
# @return a list of lists of integers
def combinationSum(self, candidates, target):
candidates = sorted(candidates)
self.res = []
self.dfs(candidates, [], target)
return self.res
... | [
"hyzhang22@gmail.com"
] | hyzhang22@gmail.com |
be99bb4d4453b8822acfbb8a234da77e526ecca5 | 7ba76a05a8bf2578610df2487972a5c4e77767e3 | /GetDepartures.py | f4127b81962df4a11f73fb81cc0fb54f44c9c84a | [
"MIT"
] | permissive | jixuqianxing/tpg-offline | 432f2b9a5f31c368fff12b7f7bb469e2b144e0de | e6ef65d8984e15fac18689adb2fca271704f45b2 | refs/heads/master | 2021-05-15T02:46:02.326062 | 2017-08-18T12:37:25 | 2017-08-18T12:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,689 | py | from datetime import datetime
import json
import requests
from tqdm import tqdm
from time import sleep
from urllib.parse import quote
import sys
import argparse
class A:
def waitHour(self, path="Departures/", jour="LUN"):
while 1:
if datetime.now().time().hour == 4 and datetime.now().time().minute == 20:
bre... | [
"remy@dacostafaro.com"
] | remy@dacostafaro.com |
a4e63e88d09e336d2cdf92464b792bd2dd67f833 | 36a1e5889323776d9aa646b0beccae9d2d52d51b | /learn_functools/understand_new.py | 2aba5cb763cf5c1d007fd7eef3a5a698d0563932 | [] | no_license | make-process-everyday/learn_Python | d23ae93b89e618c41ac817156afab59dda7656fe | 469f333d82022d3edffcce404415df6f499b18de | refs/heads/master | 2023-03-19T02:03:56.304131 | 2021-02-27T11:14:25 | 2021-02-27T11:14:25 | 256,760,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import logging
logging.basicConfig(level=logging.INFO)
class Foo(object):
def __new__(cls, x, *args, **kwargs):
self = object.__new__(cls)
self.x = x
return self
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
class LoggedAgeAccess:
def... | [
"838727522@qq.com"
] | 838727522@qq.com |
ceb111a17835bacfc317ed1ec8d49d557761eac2 | fe2ca07ef1d9033de6bfe05f5a54307ccad034b4 | /src/data/binaural.py | a9922e82510373852d1fc0447e296272ea2dd440 | [
"MIT"
] | permissive | ZSL373656560/facing-the-music | 8cef7ff6cd2866e6e17c8c68921b85822efbfe62 | d72cf71e46b652b004d8e1a784adb9e5066a7691 | refs/heads/master | 2023-03-20T13:31:33.433528 | 2020-03-27T14:36:05 | 2020-03-27T14:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,275 | py | import numpy as np
from pyroomacoustics import ShoeBox, MicrophoneArray
import matplotlib.pyplot as plt
from celluloid import Camera
class Binaural:
def __init__(self,
room_dim,
max_order,
speed_of_sound,
inter_aural_distance,
m... | [
"kevin@lumkani.com"
] | kevin@lumkani.com |
7cf4e6b83b9d8709b7cfff6e799f4f578f8f78e8 | 0b8b460606052e3011705d79e25e80c2fc9ce65e | /KNN_Results/KNN_four_feat_model/score.py | 8c10f52525ddc976fb4e7516cfd1690cf24fa3c2 | [] | no_license | gitvivekgupta/Sentiment-Analysis | e0c152efdce227d3827cdd033c7bc1828789d0fb | 891b582d4df8ca2709491c6d80fa84987385489f | refs/heads/master | 2020-03-28T12:09:42.380444 | 2019-10-17T09:20:46 | 2019-10-17T09:20:46 | 148,274,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,825 | py | import csv
import json
import time
from textblob import TextBlob
from features import build_vocab
from google.cloud import translate
from spellchecker import SpellChecker
neu_features = "neu_features.txt"
neu_feature_file = open(neu_features, "r")
neg_features = "neg_features.txt"
neg_feature_file = open(neg_feature... | [
"vivek.gupta.blue@gmail.com"
] | vivek.gupta.blue@gmail.com |
ad0ab0035e26b4cb01dd68bd59e54c98f8298d0d | ed4aca22fc193022cf31279d0561a5846f100609 | /python/scikitklearn_OneClassSVM/OneClassSVM/AnomalyDetection.py | dfbba8a99b46d1127685b8e64d046d3fc49164fa | [] | no_license | otoanX/git | 078cb20229b73b7d7af9d1e9dde2edba8fc0eda5 | 4a692d746df279fd6c9f68edd3d16cfdd6f38400 | refs/heads/master | 2023-03-08T16:26:58.584118 | 2021-02-22T17:19:42 | 2021-02-22T17:19:42 | 255,944,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | #データをOneClassSVMで学習する。
#フォルダを監視して、新規画像をOneClassSVMで予測して結果を返す
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image #画像表示
import os
#「Qiita」One Class SVMを使ってMNISTの数字画像の異常検知がしたい@satoshi_y
# https://qiita.com/satoshi_y/items/5573cacb64168a7a73ed
# https://github.com/mituki-suzu/OneClassSVM.git
#scik... | [
"otoan701090@yahoo.co.jp"
] | otoan701090@yahoo.co.jp |
bc00dc511cc641182e6e0f77d4976d1b1b3a07ca | 9471259e3cf5d6772e553dd847d23a4fef7d7fe7 | /customer_phonecall_feedback/models/__init__.py | 926e3b5eea574f2f44b776d5ef1e68f8db13407a | [] | no_license | TranPhucDang/translate_module | 16e0bae287f83d174f73d2271c4a343f012e0b5e | 9135913921240594babe51362fd5f5fd37803d9f | refs/heads/master | 2020-08-03T13:36:58.899783 | 2019-12-31T15:39:28 | 2019-12-31T15:39:28 | 211,767,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | # -*- coding: utf-8 -*-
#################################################################################
#
# Odoo, Open Source Management Solution
# Copyright (C) 2017 Ascetic Business Solution <www.asceticbs.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | [
"youremail@example.com"
] | youremail@example.com |
49ad7b9ec62effec50730302d0ffcd1b97497993 | 763fcbe6ceba0219067b2abed78493e36c923254 | /gym/wsgi.py | c9629a058113531c16c017ee41680255e5567c8e | [] | no_license | darshil19978/cec | 2f69e271c5fa1ff37e47f9c6e47f427779b1ac65 | 85dcd0e7f965fc42ee3e526ae93cc60790ad394f | refs/heads/master | 2020-05-02T19:02:26.505030 | 2019-03-29T05:27:36 | 2019-03-29T05:27:36 | 178,147,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for gym 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 django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"darshiljoshi2025@gmail.com"
] | darshiljoshi2025@gmail.com |
85ece0b4ef9146f7a9b5cf1aeb1f73bf17fc9587 | 41fa379d2c47ac740a0a904c44aa073eef8f7520 | /venv/Lib/site-packages/fitdecode/cmd/fittxt.py | 120af8f4e6b0ad70463381feb1eb25bd0a37ce47 | [] | no_license | macdet/WahooDataAnalysis | b290d49dca0a7cd1b3c6752520fbfd45cdf1f30c | 16762d42674cd3099b33d9621d5d63a3babc9cf5 | refs/heads/master | 2023-08-18T03:50:45.540497 | 2021-09-19T15:59:56 | 2021-09-19T15:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,668 | py | #!/usr/bin/env python3
# Copyright (c) Jean-Charles Lefebvre
# SPDX-License-Identifier: MIT
import argparse
from collections import OrderedDict
import datetime
import decimal
import os.path
import sys
import traceback
import fitdecode
echo = None
def txt_encode(obj):
"""
Convert a given *obj* to either a *... | [
"tmetzger8@gmail.com"
] | tmetzger8@gmail.com |
9b329bf9c03eb7fd5e50cebfbbc7e2fca726f262 | fbc0d5c081dbfead483a1e1e226a380446bcd56e | /TDT4117 - Informasjonsgjenfinning/exercises/2/subtask2.2.py | 88a2dba3adc75dd1a6e69012d2e012ad9648eba4 | [] | no_license | blauks/ntnu-2 | 58eec17a8f6db7424a6cb44d74e029b68256320a | 38fa0ddfaa726408f087d1792fd0e00810f9243c | refs/heads/master | 2020-08-16T11:01:10.946232 | 2019-08-08T11:28:48 | 2019-08-08T11:28:48 | 215,494,235 | 0 | 1 | null | 2019-10-16T08:15:48 | 2019-10-16T08:15:48 | null | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/python3
d1 = 'an apple a day keeps the doctor away.'
d2 = 'the best doctor is the one you run to and can’t find.'
d3 = 'one rotten apple spoils the whole barrel.'
q1 = 'doctor'
q2 = 'apple orange'
q3 = 'doctor apple'
λ = 0.5
| [
"nikasmh@hotmail.com"
] | nikasmh@hotmail.com |
b1be3d7732abb60ca769f757e92d34af8bb96a42 | 773c115c45b8f2d356ddd6c13af97457e93684f4 | /myapp/migrations/0001_initial.py | 199d717ad16bcc04cc3cedce08df9130fffa6073 | [] | no_license | AmirSohail151/Studydoorway | e02acee2cc897c7e72d03e445dd6d7f1b5decac9 | 26fa6e7c80306c6a5494894a21d9e7ff421c53d4 | refs/heads/master | 2023-01-08T17:31:35.533966 | 2020-11-11T23:39:48 | 2020-11-11T23:39:48 | 306,153,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # Generated by Django 3.1.2 on 2020-10-08 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Classroom',
fields=[
('id', models.AutoFiel... | [
"amiriiui566@gmail.com"
] | amiriiui566@gmail.com |
df840439989d5650df6e6a7988fa5b59caa9850d | 88994e2e840a70ec702cee09e1a13813aa6f800c | /tests/meta/upload/scout/test_scout_config_builder.py | 811298718aac85b422b13148020a410369823810 | [] | no_license | Clinical-Genomics/cg | 1e9eb0852f742d555a48e8696914ebe177f7d436 | d2ec6d25b577dd6938bbf92317aeff1d6b3c5b08 | refs/heads/master | 2023-09-01T02:04:04.229120 | 2023-08-31T13:50:31 | 2023-08-31T13:50:31 | 82,567,026 | 19 | 8 | null | 2023-09-14T15:24:13 | 2017-02-20T14:29:43 | Python | UTF-8 | Python | false | false | 7,857 | py | """Tests for the file handlers."""
import logging
from housekeeper.store.models import Version
from cg.meta.upload.scout.balsamic_config_builder import BalsamicConfigBuilder
from cg.meta.upload.scout.hk_tags import CaseTags
from cg.meta.upload.scout.mip_config_builder import MipConfigBuilder
from cg.meta.upload.scout... | [
"noreply@github.com"
] | Clinical-Genomics.noreply@github.com |
1690c3f498ea17c32f7baadb624686212ee4fa47 | 692c651b7995ec227c6a3510c7df324983fd176a | /traffic_samr/venv/bin/wheel | 195b4ab0cd8060c575ce622f3eb55583073b89bf | [] | no_license | nehalb123/TrafficDetectionSentimentalAnalysis | 2cb5f3582a4d5b80dfbad4217a9aa2261667e69c | 745fb1c174b694d60821777a1eef0b848708d510 | refs/heads/master | 2021-01-20T07:23:40.149025 | 2018-03-02T15:35:48 | 2018-03-02T15:35:48 | 89,993,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/nehal/Desktop/Num_SciPy/venv/bin/python3.3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nehal.borole@gmail.com"
] | nehal.borole@gmail.com | |
3c2f3531c1a09c01e8483053385c05a29bacc7a6 | 00db40a9a8536cec4b7a6322feba47b44972e9c8 | /food.py | 667551b5a11a3abc9c722351e0432b6e202abc60 | [] | no_license | avagners/snake_game | 4678795695439307e7fbc3434a6c54ceb77bb0c6 | 9de0a044e04602f09f5e702dc69fdfa43bb0eba2 | refs/heads/main | 2023-07-26T19:23:43.985284 | 2021-09-09T20:01:17 | 2021-09-09T20:01:17 | 404,852,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from turtle import Turtle
import random
class Food(Turtle):
def __init__(self):
super().__init__()
self.shape("circle")
self.penup()
self.shapesize(stretch_len=0.5, stretch_wid=0.5)
self.color("blue")
self.speed("fastest")
self.refrash()
... | [
"onemybox@gmail.com"
] | onemybox@gmail.com |
1ae967345f5a4499343c6861634d2ec3b7bd5ccc | 1c0487807fb8f72814ece56688456315d0e88caf | /function.py | 64d934a1205e97e577a601a275100956609280bc | [] | no_license | kennypanjaitan/first | bf61fb5bffaf45fd7cd9ed455390b3fd2fe5054e | e756902f2f058c92063c625407a6815cfdee94e1 | refs/heads/master | 2023-03-07T13:26:51.999464 | 2020-06-09T06:24:27 | 2020-06-09T06:24:27 | 270,920,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #def luas_segi4(p,l):
#luas_segi4 = p * l
#print(luas_segi4)
#p_input = int(input("Panjang: "))
#l_input = int(input("Lebar: "))
#luas_segi4(p_input, l_input)
print("YOUR SALARY\n–––––––––––––––––––––––")
name = input("Enter your name: ")
def gaji(work_hour, salary_hour):
if work_hour <= 40:
gaji... | [
"kenny_bnp@TUNASs-MacBook-Air.local"
] | kenny_bnp@TUNASs-MacBook-Air.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.