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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53ff9198dfe47a214fb9a2f6bd7b7738da26a9cf | dfe78d0296c2f2497d323bc6d0516e3d03f6e5c3 | /learning_templates/app1/urls.py | ec7eefe116f7b638f3fae7bd3beb5c4ebd257c51 | [] | no_license | tekam47/django-deployement-trial | 49ac22a6683d0156d694ec67432bdc8fa21e2514 | c96b4bb8ef7104b6dbab2bd33b4fce65c627925a | refs/heads/master | 2022-11-21T14:47:16.097166 | 2020-07-22T10:54:03 | 2020-07-22T10:54:03 | 281,641,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from app1 import views
from django.conf.urls import url
#TEMPLATE TAGGING
app_name = "app1"
urlpatterns = [
url(r'^other',views.other,name="other"),
url(r'^relative',views.relative,name="relative"),
] | [
"kounatzepi@gmail.com"
] | kounatzepi@gmail.com |
e514273c815a754c9cc94115339b8f0ab6c3c284 | 58e8117c418a8931d56fe57ba0edd38214c79642 | /ate/context.py | ed59e79081a32350eef9099c194c3270b9fc91da | [
"MIT"
] | permissive | 229051923/ApiTestEngine | 90b495ee7be037a35f63ffa3b2c95f6ba24f43ce | 4a529068f451c8880681286518ff6a643ecf9067 | refs/heads/master | 2021-01-01T16:09:10.737245 | 2017-07-19T15:29:29 | 2017-07-19T15:29:29 | 97,780,015 | 2 | 0 | null | 2017-07-20T02:09:36 | 2017-07-20T02:09:36 | null | UTF-8 | Python | false | false | 7,621 | py | import copy
import importlib
import re
import types
from collections import OrderedDict
from ate import exception, testcase, utils
def is_function(tup):
""" Takes (name, object) tuple, returns True if it is a function.
"""
name, item = tup
return isinstance(item, types.FunctionType)
class Context(ob... | [
"mail@debugtalk.com"
] | mail@debugtalk.com |
2272af86ec47659657698bd4b83b445ace287269 | 4b4ff2c0d135d3615caaeb80735c2ad6ee987914 | /venv/bin/pip | f5f3cb0efa2f979b5fd036420c2b2dc08b10a062 | [] | no_license | Nicolas-Turck/Tuto-deployement-heroku | 23060837b47f195d9af2eb280a85836d1a8f8efd | 54d104054c06070420ae36b6bbb45089492da286 | refs/heads/master | 2023-08-01T07:18:13.563988 | 2021-05-20T16:07:56 | 2021-05-20T16:07:56 | 257,563,781 | 0 | 0 | null | 2021-09-22T18:54:33 | 2020-04-21T10:46:23 | Python | UTF-8 | Python | false | false | 263 | #!/home/nicos/PycharmProjects/Tuto-heroku/venv/bin/python
# -*- 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())
| [
"nicolas.turck@gmail.com"
] | nicolas.turck@gmail.com | |
a1df8914c35f5e949416165a0782c85926e4e9f7 | 2cf9f165cb4d6e8e9009d74b43020fe2d5c1964f | /chat/migrations/0001_initial.py | a2db3bb2cfb40b358f72ef4113b611bc648018b0 | [] | no_license | jimy1824/chat | 29f5039c6284083b8328502932795bee586dec14 | 627ad4678c6215d37322737b38b3e5eb6d69696f | refs/heads/master | 2023-04-27T15:10:51.316824 | 2019-11-08T05:00:12 | 2019-11-08T05:00:12 | 220,081,959 | 1 | 0 | null | 2023-04-21T20:40:47 | 2019-11-06T20:17:20 | HTML | UTF-8 | Python | false | false | 1,194 | py | # Generated by Django 2.2.6 on 2019-11-06 19:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"jamshaid1824@gmail.com"
] | jamshaid1824@gmail.com |
4357f72ea71e855c96174c243f3d51a84d1b6c8e | 57a8986e7622e471f392ffefa1e1d959c6a1bb7c | /mazeSolver.py | 1e522304e60f9ee925eee57e47874b7821dff42c | [] | no_license | pandyakaa/MazeProblem | 394b5f99eef5ee61e0f4f206c29cc393ced2fa64 | 8ca7d6b5dd96697632326322ff1e3272d9d6fbea | refs/heads/master | 2020-05-01T16:38:48.006105 | 2019-03-29T06:45:58 | 2019-03-29T06:45:58 | 177,577,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,601 | py | import sys
from collections import deque
from point import Point
from priorityQueue import PriorityQueue
# Fungsi inputMaze, dengan parameter sebuah file
# digunakan untuk memasukkan matriks sebagai representasi dari maze
# dari file eksternal dengan nama filename
# Sekaligus mencari titik awal masuk dan keluar, disim... | [
"pandyaka.aptanagi@gmail.com"
] | pandyaka.aptanagi@gmail.com |
1b13c4cc42e2710f2aa2c196f9030cf2e7b9ae1d | 7a2573f5539fe6de33fe4e355fde5df366cedb1f | /pl3.py | 11eb70e73311b185b4cecea5fcc5e87fa406b57f | [] | no_license | anujasubbarao/anuja | 508c2d5e777d854cdc1387560590f7c345f25134 | c840cdcf99986f3e2d842ee24045178e72da6e9c | refs/heads/master | 2021-07-06T01:52:17.420722 | 2019-03-06T14:26:53 | 2019-03-06T14:26:53 | 142,555,136 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | n=int(raw_input())
rev=0
while n>0:
rem=n%10
rev=(rev*10)+rem
n=n//10
print rev
| [
"noreply@github.com"
] | anujasubbarao.noreply@github.com |
554c7aabf1e3a0c07792dec86ac77d8c958f7099 | 37faa935d3af283be72423821a25d17172f2df6a | /projects/analysing_baseball_data/isp_baseball_template.py | b091cf8da7961c40e7fd65bcc195823b729a3dae | [] | no_license | rogeriolaguilar/python | 2b214fccbb32ca269c745b26fbc082cb20981c23 | fef86ca360e5a47fcd86f9ab99c04c58d353705b | refs/heads/master | 2020-03-19T11:00:51.367723 | 2018-09-16T12:56:39 | 2018-09-16T12:56:39 | 136,421,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,560 | py | """
Project for Week 4 of "Python Data Analysis".
Processing CSV files with baseball stastics.
Be sure to read the project description page for further information
about the expected behavior of the program.
"""
import csv
##
## Provided code from Week 3 Project
##
def read_csv_as_list_dict(filename, separator, quo... | [
"rogerio.l.aguilar@gmail.com"
] | rogerio.l.aguilar@gmail.com |
a6db9d0ebe8e9a8f0ab0a1cacff578441a2234ba | 4fcfc6834f598954e069e9481e4f69d6f7205f3b | /Week1/day_3/Flask_Intro/first_flask_app/server.py | a7693151c6981a66648352d4cf8857f87de47de7 | [] | no_license | sadieBoBadie/jan_2020_python_stack | dadc77a8a76fd4b900bc31ad83ed4680a0802aa1 | b91da3da23ea57a27c086075f4b86c5bfec413d0 | refs/heads/main | 2023-03-02T22:27:46.877290 | 2021-01-26T19:04:57 | 2021-01-26T19:04:57 | 326,852,429 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def puppies():
return "<h1 style='color: red'>Puppies are cute!</h1>"
@app.route('/<animal>/<color>')
@app.route('/<animal>')
@app.route('/<animal>/<color>/<int:num>')
def display_animal(animal, color="blue", num=5):
print(f"Ani... | [
"sflick@codingdojo.com"
] | sflick@codingdojo.com |
25724b55aa4d29b7d7541545d4b7a257d6a3af48 | a2accf55b7b57a376344689e1f8fa4d64acdd6be | /salaray_to_csv.py | 692da5634ca9d92a5b99a5746186df6cf7f8d942 | [] | no_license | Thybat/EulerProject | 8e590455f2fbebceeec031e667ac77a97fd5d35c | 54ee77fac34de4c13b33bf5459f6b6258d6cca1f | refs/heads/main | 2022-12-27T23:19:25.058389 | 2020-10-09T09:57:54 | 2020-10-09T09:57:54 | 302,599,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pandas as pd
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
df = pd.read_csv("data_reg_age_salary.csv")
x = df.values #returns a numpy array
min_max_scaler = preprocessing.MinMaxS... | [
"noreply@github.com"
] | Thybat.noreply@github.com |
3b930951163c7e85c90c1df23c7a762af58fc623 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/pyinstaller/tests/unit/test_modulegraph/testpkg-relimport/pkg/relimport.py | 0e76e39fedf777016e011f2daa0a233827236b57 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 127 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b1c982ab98ef0425093ad8bafe4c9deb7aad009260b384b762696e8fc4c0e375
size 22
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
0843c71fc383feb3fad8512aa89bc2e6a0434ce9 | 760b47b46574552c5371270036b391a6a3b7dc2f | /src/loggedfs/_core/fs.py | ced81b475209403f3dcd7fbc2e7e3a9c1a7796b4 | [
"Apache-2.0"
] | permissive | pleiszenburg/loggedfs-python | 7ae2ba90780f700b3ec5153b8b7447452bf643c7 | 1c0740f6f38e7795d6f834d08d9bab59d911b454 | refs/heads/master | 2023-04-06T05:00:50.457663 | 2020-07-11T08:33:41 | 2020-07-11T08:33:41 | 113,670,055 | 31 | 3 | Apache-2.0 | 2023-03-31T02:14:20 | 2017-12-09T13:07:44 | Python | UTF-8 | Python | false | false | 14,726 | py | # -*- coding: utf-8 -*-
"""
LoggedFS-python
Filesystem monitoring with Fuse and Python
https://github.com/pleiszenburg/loggedfs-python
src/loggedfs/_core/fs.py: File system core
Copyright (C) 2017-2020 Sebastian M. Ernst <ernst@pleiszenburg.de>
<LICENSE_BLOCK>
The contents of this file are subject to the Apache ... | [
"ernst@pleiszenburg.de"
] | ernst@pleiszenburg.de |
f64c6ffb584cd043d80268c613a23fadf9f3d960 | d0e268862f359bbeec426b00a0c45788f6fb0b4e | /lesson22-优化小实例/main.py | 10fefdf9bbed196814d0bc20e94497752dbfa13d | [] | no_license | jpegbert/PyTorch | f87c2e38572c51842785de5ed1b39bb641402ac6 | 482421c76a093312ffeff7e5af4ecd3ab0cdcf30 | refs/heads/master | 2023-08-27T03:56:26.883297 | 2021-11-08T06:03:30 | 2021-11-08T06:03:30 | 326,677,679 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import numpy as np
from matplotlib import pyplot as plt
import torch
def himmelblau(x):
return (x[0] ** 2 + x[1] - 11) ** 2 + (x[0] + x[1] ** 2 - 7) ** 2
x = np.arange(-6, 6, 0.1)
y = np.arange(-6, 6, 0.1)
print('x,y range:', x.shape, y.shape)
X, Y = np.meshgrid(x, y)
print('X,Y maps:', X.shape, Y.shape)
Z = hi... | [
"jiangpeng.jiang@zhaopin.com.cn"
] | jiangpeng.jiang@zhaopin.com.cn |
853ea408b40f36263a1ac3f6bb6b89829d2bbd39 | a639206e5849432d6613c9af093b14f97e9dd794 | /manage.py | 3cda76ad753a5eb70246fda28e6126466f0d11c0 | [
"MIT"
] | permissive | Bazulenkov/primorsk-cup | 6a37139b56b3b3df605f9fa49b1ef652a08d8020 | 13c227f9fb8289eb3e25d21e1de7a0fde8cb5f87 | refs/heads/main | 2023-06-10T00:21:27.939260 | 2021-06-30T12:36:04 | 2021-06-30T12:36:04 | 336,052,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "primorsk.settings")
try:
from django.core.management import execute_from_command_line
except Imp... | [
"anton@bazul.ru"
] | anton@bazul.ru |
035504981c5c4ce873430a3439ea302e21244885 | 53c3462ff265b6273f4a4fa17f6d59688f69def0 | /剑指offer/65_hasPath.py | fc4f3bf5633e263578be82adeacb409feea73759 | [] | no_license | 17764591637/jianzhi_offer | b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4 | 27e420ee302d5ab6512ecfdb8d469b043fb7102d | refs/heads/master | 2023-08-03T01:32:51.588472 | 2019-10-13T07:56:21 | 2019-10-13T07:56:21 | 197,692,548 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | '''
请设计一个函数,用来判断在一个矩阵中是否存在一条包含某字符串所有字符的路径。
路径可以从矩阵中的任意一个格子开始,每一步可以在矩阵中向左,向右,向上,向下移动一个格子。
如果一条路径经过了矩阵中的某一个格子,则之后不能再次进入这个格子。
例如 a b c e s f c s a d e e 这样的3 X 4 矩阵中包含一条字符串"bcced"的路径,但是矩阵中不包含"abcb"路径,
因为字符串的第一个字符b占据了矩阵中的第一行第二个格子之后,路径不能再次进入该格子。
分析:回溯算法
这是一个可以用回朔法解决的典型题。首先,在矩阵中任选一个格子作为路径的起点。如果路径上的第i个字符不是ch,
那么这个格子不可能处在... | [
"17764591637@163.com"
] | 17764591637@163.com |
c672da054ce83d887363f44a14b4d22240729758 | 131d941a4d1df110afe09733fe010da816597bb4 | /PASA/alameda/input/motion-detection-camera/mmal/motion-detected.py | 5cf1a72a7454179e2769cc7877f1faf7f8313954 | [] | no_license | onebeartoe/electronic-signs | 386cfb7288c211634a3afad55d334d4602178a95 | 621099b7d81995a9c7e977ca683bb3c3d02c9d17 | refs/heads/master | 2020-12-24T11:06:57.754906 | 2018-11-01T16:40:35 | 2018-11-01T16:40:35 | 13,177,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | #import sendint;
print "nothing happened in motion-detected.py"
#print "motion detected"
#sendint.sendInt(ser, '2')
| [
"onebeartoe@gmail.com"
] | onebeartoe@gmail.com |
5c65745999dcd0d78e74ff5c2c30969e2bf57ef8 | b75aedc25188b059189df7654dacd32818a86de2 | /Facial Emotions/emotions.py | ef7d2650e5198354441345cbe25e5092c2c92730 | [] | no_license | scorpiocodes/ComputerVision | 2308c9dcfb07fc85fdb8c46f45891ae0e4b106fa | a346ce69c81ae1a74cbd94f1ad8749a50aa44fbd | refs/heads/master | 2020-03-22T01:53:54.861885 | 2019-06-11T18:39:34 | 2019-06-11T18:39:34 | 139,337,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | import cv2
import numpy as np
from keras.models import load_model
from statistics import mode
from utils.datasets import get_labels
from utils.inference import detect_faces
from utils.inference import draw_text
from utils.inference import draw_bounding_box
from utils.inference import apply_offsets
from utils.inference ... | [
"noreply@github.com"
] | scorpiocodes.noreply@github.com |
c8217fd5718d9e8ce56aa8984ec31a0f48ea85a3 | d95cd6f18f9f83df625362dd28ab6b733fa98c90 | /extract_bboxes.py | ca82fd055ca9f70678b1b8d0c449e0586a5e3a0a | [] | no_license | hassony2/yolo2-pytorch | 477196349ee1d44ad09376b8f02cb08cced559a2 | b9e1e905115694df5dd33b8a7485977263e19caf | refs/heads/master | 2021-01-20T21:41:48.529189 | 2017-09-21T13:24:54 | 2017-09-21T13:24:54 | 101,783,945 | 1 | 0 | null | 2017-09-21T13:24:56 | 2017-08-29T16:40:30 | Python | UTF-8 | Python | false | false | 5,011 | py | import numpy as np
import os
from PIL import Image
import torch
from torch.autograd import Variable
from torchvision import transforms
from tqdm import tqdm
import cfgs.config as cfg
from darknet import Darknet19
from datasets.gteagazeplusimage import GTEAGazePlusImage
from datasets.smthgimage import SmthgImage
from d... | [
"yana.hasson@inria.fr"
] | yana.hasson@inria.fr |
4b35f9e5c7f11f607452a11c9cd445ed2278b7b9 | 54e8ac0398bfa33d9a1d40e5a8d6477e3806bb17 | /RaspberryPiCode/getHSV.py | f25d56d310c28ed15cd468d7255e72f710e71a4d | [] | no_license | RoboLions/frc2016-vision | ac46a15ba3c85f713f2d86619bce8b27aa996174 | c32e559485e956a33794fa5a453c7202d042c27c | refs/heads/master | 2021-04-30T22:59:30.402487 | 2016-03-30T03:26:17 | 2016-03-30T03:26:17 | 50,622,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import cv2
import numpy as np
# move u* and l* sliders to find upper and lower end of hsv range respectively.
# hit q to quit
cap=cv2.VideoCapture(0)
def nothing(x):
pass
cv2.namedWindow("result")
h,s,v=100,100,100
cv2.createTrackbar('lh', 'result', 0, 255, nothing)
cv2.createTrackbar('ls', 'result', 0, 255,... | [
"alan.glaser@gnail.com"
] | alan.glaser@gnail.com |
87e04c086ca8fcfe065781aaefdf79add1f73023 | 14a93d1114c26f1483b711793297cd00c1abd37f | /data/data_dav/export.py | 2cc46ba94df22917591e14f70aef822629e3ec10 | [] | no_license | csmfindling/bci_eeg | 7c50eca0c150e760a0e70892c1182f8862df3902 | a5a4ab8456f0354904cae8d3817017861ebd192d | refs/heads/master | 2021-05-09T21:34:35.513477 | 2018-01-29T16:10:54 | 2018-01-29T16:10:54 | 118,730,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | import pickle
import sys
import numpy as np
from scipy.signal import butter, lfilter, detrend
from numpy.fft import fft, fftfreq
import time as timelib
import pickle
# functions
def butter_bandpass(lowcut, highcut, fs, order=9):
nyq = 0.5 * fs
low = lowcut / nyq
high = highcut / nyq
b, a = butter(order... | [
"charles.findling@gmail.com"
] | charles.findling@gmail.com |
e06e1100601a1bacb795bb1f1efe4a2e96a3d781 | 221d5405763d1a6ab3c6755583e557c14b9f3742 | /gusregon/gus.py | ca34d58334fd1bd2383ff69dfbb77899f224cc07 | [
"BSD-2-Clause"
] | permissive | tpro/django-gusregon | 4bd7253be9d43345376e36312d763d4653d0bbcd | 75d4f291ae805bd986e1b4cb03b3b94e52a48076 | refs/heads/master | 2021-01-18T18:11:50.746453 | 2015-04-19T11:00:49 | 2015-04-19T11:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import requests
import json
GUS_API_URL = 'https://wyszukiwarkaregon.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc/ajaxEndpoint/'
LOGIN_ENDPOINT = 'Zaloguj'
CAPTCHA_ENDPOINT = 'PobierzCaptcha'
CHECK_CAPTCHA_ENDPOINT = 'SprawdzCaptcha'
SEARCH_ENDPOINT = 'daneSzukaj'
COMPANY_DETAILS_ENDPOINT = 'DanePobierzPelnyRaport'
cla... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
3ec809e921148f10c35e5d7afb4098a0d5cfa51e | 3a107debc014817103fd6cf18a346ba87cd4a896 | /indexapp/views.py | 19013ae175afb5a1629f37931d307a8c04c3468e | [] | no_license | shuang3322/itsm_new_hj | 20c979bb682af084d347a10f773591dc090e3a8d | a99384243ec0dc667e04edda30754e9cead96bbf | refs/heads/master | 2021-08-22T22:30:20.032674 | 2018-11-27T06:17:27 | 2018-11-27T06:17:27 | 147,472,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import HttpResponse
from indexapp.models import IPdata
def visit(request):
ip = request.META.get('REMOTE_ADDR')
print(ip)
all = IPdata.objects.all()
# for item in request.META:
# print(item,request.META.get(ite... | [
"shuang0528@hotmail.com"
] | shuang0528@hotmail.com |
26c0479d73b4773d979b4de73b5383b4ceeb2883 | ff5705d2813486da67b8aca48cfd5bf2c6cce068 | /2_text_classification.py | 0fa709be5b6d1b79dc77f3609155e88c78f26369 | [] | no_license | m-nasiruddin/text_blob | 61934763586413115054f1557c62e0301ab70f87 | 1f95f7ee0632ddc6bc09cc619a0510114a6a93c6 | refs/heads/master | 2022-07-15T03:48:56.591056 | 2018-07-20T10:48:13 | 2018-07-20T10:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | from textblob.classifiers import NaiveBayesClassifier
from textblob import TextBlob
# creating a custom sentiment analyzer
# loading data and creating a classifier
train = [('I love this sandwich.', 'pos'),
('this is an amazing place!', 'pos'),
('I feel very good about these beers.', 'pos'),
... | [
"mohammad.nasiruddin@gmail.com"
] | mohammad.nasiruddin@gmail.com |
842f5307feedb014785782c8f52774517fee51a9 | 969be1a2865722374293a286fa0923d6247d54d5 | /language/bert/bert_code/fairseq/optim/lr_scheduler/fairseq_lr_scheduler.py | 1732e2e495edd65fe93ea60644562119ae0b2e80 | [
"MIT"
] | permissive | Relwayg/Differentially-Private-Deep-Learning | 36935e882cd37482f690b7f5888835065aa5e127 | 55eb9a1b75472895588d388de7567f012c9bc9ed | refs/heads/main | 2023-09-06T01:23:44.915967 | 2021-11-23T06:53:29 | 2021-11-23T06:53:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .. import FairseqOptimizer
class FairseqLRScheduler(object):
def __init__(self, args, optimizer):
super().__init__()
... | [
"yudakuai18@163.com"
] | yudakuai18@163.com |
444b7127cd68eeab661ca9a41c8296181217f564 | 2a527f6fdee469bf1c3d76c2519149d916fa51d2 | /python-client/victorops_client/models/on_call_log.py | 870c6428c3097ccdca27122e1b5ff2514712c456 | [] | no_license | ArjunSangitrao/python-victorops | e261971800adb337da36b716f2c0fd0fc5c5973c | a9de3c93d141ad19213bdef6aa3790988bf03c66 | refs/heads/master | 2022-03-26T19:19:06.556731 | 2017-02-26T12:39:08 | 2017-02-26T12:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,018 | py | # coding: utf-8
"""
VictorOps API
This API allows you to interact with the VictorOps platform in various ways. Your account may be limited to a total number of API calls per month. Also, some of these API calls have rate limits. NOTE: In this documentation when creating a sample curl request (clicking the TR... | [
"vincent.desmet@honestbee.com"
] | vincent.desmet@honestbee.com |
eb66983747fd37d5bad2b03c62aa2cb5b9820300 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /A_Primer_on_Scientific_Programming_with_Python/input/c2f_cml_v3.py | 9d13a354db2390ff9b57049d4ab8c67135d83538 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 217 | py | import sys
try:
C = float(sys.argv[1])
except:
print 'You failed to provide Celsius degrees as input '\
'on the command line!'
sys.exit(1) # abort
F = 9.0*C/5 + 32
print '%gC is %.1fF' % (C, F)
| [
"bb@b.om"
] | bb@b.om |
625ab94e1d6b0ee32774ffd6931f538b4fdb913f | 6298ff0f597ec09633696622c42321dd6bbaab6d | /znachkov_oleksandr/03/task3.1.py | 061a601d2277c930b0c29708f2bee2eb8ab3078c | [] | no_license | Neckmus/itea_python_basics_3 | 94db7ea756cbb164b8705445b1ab027bb5ff4d93 | 9d76fc3d081fa407805e98d12f7f9960c8976366 | refs/heads/master | 2022-05-28T08:28:00.415625 | 2020-04-22T11:03:25 | 2020-04-22T11:03:25 | 254,841,391 | 0 | 0 | null | 2020-04-11T10:14:57 | 2020-04-11T10:14:57 | null | UTF-8 | Python | false | false | 455 | py | from random import randint
ELEMENTS = 5
HIGHLIMIT = 10
exclusion_list = [4,2]
def array_diff(source_list):
print ("souerce list:", source_list)
print ("exclusion list:", exclusion_list)
#print (exclusion_list)
return [ elem for elem in source_list if not elem in exclusion_list]
source_list = lambd... | [
"alx.inferno@gmail.com"
] | alx.inferno@gmail.com |
2d46fb8bfbd693468cd059acdc41ca93221da9c6 | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/copytest_20200502124009.py | 413d6f42f34cf44c8b5ee71050cdd80e9dccb60d | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
def encrypt(message: bytes, key: bytes) -> bytes:
return Fernet(key).encrypt(message)
def decrypt(token: bytes, key: bytes) -> bytes:
return Fernet(key).decrypt(token)
infile = open('jeff.pkl','rb')
z = pickle.load(infile)
key = Fernet... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
4ff5f832176e95271a6ca6a4df8efc6d8ebb25b5 | 2dba100f7ebbbb7b6f1850371b8640e0d3c0fc04 | /ScientificProgramming/mu.py | 1df2355ea7dc71793588406a3bf9cbbd0ecb49f6 | [] | no_license | lukasrieger-dev/python-beginner-projects | ea88fca0dc818ed2a63145305e49481dfa5b11af | d7cb2970a4067d150db57985e67e3cb6d3da7009 | refs/heads/master | 2023-01-04T12:19:34.881748 | 2020-11-06T18:10:52 | 2020-11-06T18:10:52 | 255,638,385 | 10 | 1 | null | 2020-10-03T07:25:23 | 2020-04-14T14:51:22 | Python | UTF-8 | Python | false | false | 1,059 | py | %matplotlib inline
import re
import matplotlib.pyplot as plt
def load_mu_data(path):
mu_data = dict()
with open(path, 'r') as file:
for line in file:
if re.match(r'(^ *$|^#.*$)', line):
# omit empty lines and comments
continue
*... | [
"rieger.lks@gmail.com"
] | rieger.lks@gmail.com |
68870acb9c8c92e4ebbaf015abbd0b6109358e24 | 97aa1181a8305fab0cfc635954c92880460ba189 | /torch/__init__.py | 4442d7e952cc12a7e75937c35b091330e7c69570 | [
"BSD-2-Clause"
] | permissive | zhujiang73/pytorch_mingw | 64973a4ef29cc10b96e5d3f8d294ad2a721ccacb | b0134a0acc937f875b7c4b5f3cef6529711ad336 | refs/heads/master | 2022-11-05T12:10:59.045925 | 2020-08-22T12:10:32 | 2020-08-22T12:10:32 | 123,688,924 | 8 | 4 | NOASSERTION | 2022-10-17T12:30:52 | 2018-03-03T12:15:16 | C++ | UTF-8 | Python | false | false | 14,830 | py |
r"""
The torch package contains data structures for multi-dimensional
tensors and mathematical operations over these are defined.
Additionally, it provides many utilities for efficient serializing of
Tensors and arbitrary types, and other useful utilities.
It has a CUDA counterpart, that enables you to run your tenso... | [
"zhujiangmail@hotmail.com"
] | zhujiangmail@hotmail.com |
a19137e2bc295d4d4e9c77c15d61e3a9e4d708f9 | ff20661ef00b2db927c78f95a08cd6c40f950ee0 | /inputmorethanone.py | 81994128fa875ec38b52ef7cf8ec19866fc7810f | [] | no_license | Techsrijan/mppython2021 | 57ca26e1acdf5adad2afa692dd5ae23336273603 | 583a991f85e2414c6b8ffe0405f727f3f5d38eee | refs/heads/main | 2023-06-18T22:05:44.602220 | 2021-07-16T00:42:26 | 2021-07-16T00:42:26 | 374,290,977 | 0 | 9 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | '''f=int(input("Enter the first number"))
s=int(input("Enter the Second number"))
'''
f,s=input("Enter two number").split(',')
print("F=",f,"S=",s)
j,k=input("Enter two number").split(' ')
print("j=",j,"k=",k)
print("add=",j+k) | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
9436483bd9dce7f9bd3c1c1c7e5b4682ce2f8b80 | e357f337ef80487aa6fafacb3e61cd5b56c78b60 | /src/verification/__init__.py | 9c7d02b050afd632c953e658bd2ee2c42fdd8642 | [] | no_license | kaleissin/django-verification | 1537b7e78a8ca07a091bcad5fd014a4544809ba5 | 33f7d0b7d9cc1494269f16b6f07f6077ca974fff | refs/heads/master | 2021-07-15T20:12:43.628199 | 2021-07-05T11:43:39 | 2021-07-05T13:08:50 | 18,205,426 | 12 | 2 | null | 2021-07-05T13:13:16 | 2014-03-28T08:19:41 | Python | UTF-8 | Python | false | false | 60 | py | default_app_config = 'verification.apps.VerificationConfig'
| [
"kaleissin@gmail.com"
] | kaleissin@gmail.com |
ac8d8c76de9def04f8aad137f4e5827afd1ca93c | 1d70ee049c5198b75567e0000c45ef879f6d39be | /JobMatchPonos/server/utils/word2vec/wordEmbeddings.py | 7f5247842cca39719da0f18965c455959fc9dc9c | [] | no_license | alexawl/Job-Match-Ponos-Back | 95f28185f71c38733973bc6d730947455c2e6c93 | c48b4bfddfbf2f4f5aa95409fd2c6ee4f469d9dd | refs/heads/master | 2022-09-30T15:07:19.875016 | 2020-02-01T06:50:34 | 2020-02-01T06:50:34 | 237,575,072 | 0 | 0 | null | 2021-05-06T20:07:41 | 2020-02-01T06:49:35 | Python | UTF-8 | Python | false | false | 4,009 | py | from gensim.models import Word2Vec, KeyedVectors
from os import listdir
from os.path import isfile, join
import numpy as np
from scipy import spatial
from sklearn import decomposition
import matplotlib.pyplot as plt
from jobmatcher.server.utils.pattern import text
# def read_All_CV(filename):
# text = textract.... | [
"alexawl@bellsouth.net"
] | alexawl@bellsouth.net |
0fa20eaa5571bbbc09e2573aff18620152ed29dc | 8f8d426ee581545cd3c58f9879305f6536a02426 | /extractFramesEverySecond.py | d6cc95318f833a855b945a48b44f163a61dd46f9 | [] | no_license | tomtillo/video | bb0c0fabf93f804cf2e9bd7a6b2f781684a840d7 | 8be7eee7400fc3c5648e8eef90f14c667b7fc9c0 | refs/heads/master | 2020-06-11T20:32:44.092864 | 2019-06-27T11:35:43 | 2019-06-27T11:35:43 | 194,077,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # ---------------------------- Function to get frames every second ( and not all the frames)
# Using tqdm to show progressbar
# Usage :extract_frames_every_second(videos1,OUT_DIR)
# Returns: times taken
import cv2
import math
import time
def extract_frames_every_second(video_file, output_folder):
import tqdm
... | [
"noreply@github.com"
] | tomtillo.noreply@github.com |
ba3177e820dd8a4793158eb218326d48229866ef | bb372428bb90fa80f2e87820b3c8c5ba305dcd4c | /python/bot/eups.py | 0e4812155219126d211b7dcd779287ab6d1ce9ec | [] | no_license | TallJimbo/lsst-bot | 7eb9b7a71a87a1ed416397c193931c80639bd746 | 0843afb2fdd5cc9ba62cf424a7dd73672b10e28f | refs/heads/master | 2021-01-19T05:43:55.451321 | 2016-06-04T00:07:25 | 2016-06-04T00:07:25 | 60,484,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | #!/usr/bin/env python
from __future__ import absolute_import
import eups.table
import os
import logging
__all__ = "get_dependencies"
def get_dependencies(config, path, pkg, recursive=False):
"""Return immediate dependencies from inspecting a table file.
NOTE: recursive=True has not been tested.
"""
e... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
b3aaed8088ac0f6dc6a87eed88943c27eea6fcb9 | c9dd27f95f7a1a25963e0bd107a8fd72033c2168 | /src/main.py | 562ecf88d07a12c56bdfd8f9c24e342b1632865e | [] | no_license | RamazanDemirci/pythonML | 3f807c5ec8e8881fe04197c75c98010b2feb7095 | 86d7e9286f03f099f64bf39615a9ee8841e3c021 | refs/heads/main | 2023-02-02T02:55:40.429272 | 2020-12-27T13:42:00 | 2020-12-27T13:42:00 | 319,462,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py |
if __name__ == "__main__":
print("Program Entry Point")
| [
"radem18@gmail.com"
] | radem18@gmail.com |
f5762a0a3bcd4f5ba6d65173ea4d994aece629be | 1eb73b6d3801156620cad8707ab9fe70baca3e7c | /library/writer.py | edf9aa2fa31712f34a5cb3209693bb4a227c47d2 | [
"MIT"
] | permissive | santiago26/vk4xmpp | 732b75ef0a2a4c86d7d704da888e9be76953ec68 | 369f2550f2b422e6d27f06679ddda8ecd7cae026 | refs/heads/master | 2021-01-16T19:22:26.318690 | 2013-09-28T11:37:05 | 2013-09-28T11:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | # /* encoding: utf-8 */
# © simpleApps, 2010
import os, sys, time, logging, traceback
logger = logging.getLogger("vk4xmpp")
fixme = lambda msg: Print("\n#! fixme: \"%s\"." % msg)
lastErrorBody = None
def wFile(filename, data, mode = "w"):
with open(filename, mode, 0) as file:
file.write(data)
def rFile(filenam... | [
"mrdoctorwho@gmail.com"
] | mrdoctorwho@gmail.com |
924236479976a262f093bcadbe5e2db823bb810b | a6aada9cb93cc23bd17e4213c7a0b5114905a34a | /introduction/lab6.py | fed0db889f02668cb3f0910318040399a0aece3a | [] | no_license | SethKwashie/PythonLabs | 90caf6a4fc5159536a892c84245b26bab4e48fbd | 0a9578ce2f09fbec5ab0f1accb1e0d10f7792117 | refs/heads/main | 2023-01-04T12:57:54.497264 | 2020-11-02T14:46:18 | 2020-11-02T14:46:18 | 307,773,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | age = int(input("Enter your age >>> "))
total = 0
start = 1
while start <= age:
total += start
start +=1
month = total * 12
days = total * 365
hours = total * 8760
print(f"{total} years ----> {month} months ----> {days} days ----> {hours} hours")
| [
"seth.kwashie@turntabl.io"
] | seth.kwashie@turntabl.io |
88a1436030cb0e0d641a755da900e1e5e1086035 | d123e83108ffb222a2bceb57e4dcd5d7fd2b5b41 | /api/controllers/jobscheduling/build/config.gypi | b4e5770be03aa67be34c86283b682796d7fe765f | [] | no_license | ajaxtream/smart2 | 0aede425b17f8666750427e4a89e3817995e43b5 | 7701b98d66f3da201e096eee43a0724c9a494dd1 | refs/heads/master | 2021-01-10T14:58:08.529403 | 2015-12-16T04:42:33 | 2015-12-16T04:42:33 | 48,087,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"noEmail@anonymous.com"
] | noEmail@anonymous.com |
389f4af608abd72b7016e5c50c3de3b32f56bf4e | 394e0b00b35c61f7f9c2d34b11cb6aa29f6a1eb5 | /Used_Others/CRT-Button/g.log.py | 0946926cce66bb3bd59dc504aa9555cffe710af9 | [] | no_license | congzheng-git/myProject | ecca28eafb129e014981b6fc74d4f8362ea3386b | da4cac92d87520d20036513616609bbffe9d9bef | refs/heads/master | 2022-12-18T02:40:21.425117 | 2020-07-01T07:33:38 | 2020-07-01T07:33:38 | 207,499,868 | 0 | 0 | null | 2022-12-08T01:49:32 | 2019-09-10T08:03:20 | Python | UTF-8 | Python | false | false | 311 | py | # $language = "Python"
# $interface = "1.0"
import signal
def main():
crt.Screen.Send('\x03')
crt.Sleep(200)
crt.Screen.Send('cd ../../../opt/jelly_current/logs/' + '\r')
id = crt.Dialog.Prompt("输入要查的ID")
crt.Screen.Send('tail -f out.log |grep ' + id + '\r')
main() | [
"cczz1226@sina.com"
] | cczz1226@sina.com |
31a96cf391d906b0d3d59fcd37437e16f21f474b | fd326562890d4f1987c384fc7c60374938231222 | /OOP/ExamPrep/Exam10April21/project/decoration/ornament.py | 90d7980c034613da08f4ee857bf726562ac89427 | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 151 | py | from project.decoration.base_decoration import BaseDecoration
class Ornament(BaseDecoration):
def __init__(self):
super().__init__(1, 5)
| [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
4e6eca2f88c65a14f8f7950765320058fffc7784 | 6cd24d192fe83e2d4a23b2d7f2fe0c038940a5d9 | /trip/models.py | c05e3e881cdb57c13e1a086d6c7b5744615c8a64 | [] | no_license | nabeelakhtar20/trip_app_sample | d5370864ae0c872b0bc24bd9c47361c2fcae413c | ae6ab820d9a39fa4072267f09349b2c0d794b979 | refs/heads/master | 2022-05-18T03:30:03.315671 | 2019-10-13T12:06:58 | 2019-10-13T12:06:58 | 214,809,376 | 1 | 0 | null | 2022-04-22T22:32:11 | 2019-10-13T11:38:27 | Python | UTF-8 | Python | false | false | 1,491 | py | from datetime import datetime
from neomodel import StringProperty, StructuredNode, RelationshipTo, \
IntegerProperty, DateTimeProperty, UniqueIdProperty, JSONProperty, DateProperty
from auth.models import User
class Trip(StructuredNode):
uid = UniqueIdProperty()
destination = StringProperty()
start_... | [
"nabeel_akhtar20@hotmail.com"
] | nabeel_akhtar20@hotmail.com |
7dc8d99db40e13c4050036693a90c23d2732f5d1 | 6af90d24f1f081c1f1046346dc1c7cdb98bcaddb | /tests/django/run_unit_tests.py | 9270e1793369a22bae93f3dd891a9bc5c60bb34c | [
"Apache-2.0"
] | permissive | aolabNeuro/brain-python-interface | e4d8fd4682ed63611d44f83e7889f35a71a80b59 | bc215d97fe95765c2bf40d1be793d6ffa83586d1 | refs/heads/master | 2023-08-18T09:53:24.212536 | 2023-08-17T21:22:01 | 2023-08-17T21:22:01 | 250,614,460 | 3 | 3 | NOASSERTION | 2023-09-08T16:44:08 | 2020-03-27T18:31:13 | HTML | UTF-8 | Python | false | false | 240 | py | from django.test.utils import get_runner
from django.conf import settings
from db.boot_django import boot_django
boot_django()
TestRunner = get_runner(settings)
test_runner = TestRunner()
failures = test_runner.run_tests(["tests/django"])
| [
"leo.scholl@gmail.com"
] | leo.scholl@gmail.com |
70f76d0921495935a8af0e489fc2de27af2fdd67 | 0fb2607ba5dff6c86e806dd67ba16b158c68b7a3 | /bellorest/takeaway/apps.py | 8530766b1735e6d11564a7d76bae23c34f085d6f | [] | no_license | shashankiit/Restaraunt-Mangement-System | 204259b4b7c0dbd984f4d38dcdbbab39bef2ee02 | 8a246ff56023a04c996e7fcf0ffb7d9093de1446 | refs/heads/main | 2023-04-23T06:14:30.348021 | 2021-05-07T18:14:15 | 2021-05-07T18:14:15 | 358,109,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.apps import AppConfig
class TakeawayConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'takeaway'
| [
"ambeloskar@iitb.ac.in"
] | ambeloskar@iitb.ac.in |
fad1fce49448f8fa4f4b57f21e6b48648aff90b7 | 282234bf6467224f769b67c923b111add740c775 | /Course_2_Python_Data_Structures/ex_06_05/ex_06_05.py | 82c9334e74a4ad3f1c8c105755813523c36f1ccb | [] | no_license | gravitonGB/python_for_everybody | 73d0767db1cf0c705144e287fba3fe66bc42ec43 | 8b3d197247bf52c66551867f2851d3006f7da484 | refs/heads/master | 2020-03-09T11:45:37.238749 | 2018-04-09T12:35:03 | 2018-04-09T12:35:03 | 128,765,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #Exercise 6.5
#print("Excercise 6.5")
text = "X-DSPAM-Confidence: 0.8475";
pos = text.find(':')
t2 = text[pos+1:len(text)]
last_text = t2.strip()
last_value = float(last_text)
print(last_value)
| [
"gokhanbegce@gmail.com"
] | gokhanbegce@gmail.com |
2725285e31284db439a824eacbd0d0ddf6681c04 | 7a6d30770cd56c2900aa7ef969b3ecfd679078a5 | /WebGame/WebGame/game/classes/postgres.py | 1dc642d5a3d31b85d596a939756c32fbda900e56 | [] | no_license | sherkd/zombiegame | 519e1f7166e8e4ca192347682b2e55675757dff5 | 1438d2267ab2c615e14cf6e5d13525b38f7cb7a1 | refs/heads/master | 2020-06-14T12:54:40.043993 | 2017-01-05T12:24:31 | 2017-01-05T12:24:31 | 75,178,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import psycopg2
import sys
class Postgres(object):
def __init__(self):
conn_string = "host='localhost' dbname='zombiegamers' user='postgres' password='project3'"
print("Connecting to database\n ->%s" % (conn_string))
self.connection = psycopg2.connect(conn_string)
self.cursor = s... | [
"sivarwerrie@hotmail.nl"
] | sivarwerrie@hotmail.nl |
fbcf2fca48d9207fd6d531d83f43f44da2312148 | 0120813c649236fcb4732723c4b25f6538de04fb | /Image Stitching/Source/main.py | a232db81366c8c7dc347f44a463ca2d9345047ab | [] | no_license | shubh0906/Computer-Vision | 47f1e8e55f54138acd070f5f39b722b17a5747b2 | e83bd827f1ed9de9218af5e973e69510d826d100 | refs/heads/master | 2021-01-25T11:15:36.124527 | 2018-03-06T09:01:35 | 2018-03-06T09:01:35 | 123,387,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,840 | py | # Instructions:
# Do not change the output file names, use the helper functions as you see fit
import os
import sys
import cv2
import numpy as np
import matplotlib.pyplot as plt
import math
def help_message():
print("Usage: [Question_Number] [Input_Options] [Output_Options]")
print("[Question Number]")
print... | [
"noreply@github.com"
] | shubh0906.noreply@github.com |
efc58d0b9b812e8507cfe77bd976ff7d1d82c672 | 342b0835ad165d8fcb647792e13440ed8d0579c0 | /posts/views.py | e7bd842707ebd9559bd68fbdda4e6b4983a21463 | [] | no_license | Str8jckn/mb | a2d1df745840a7654bef179e4088b2964f0608bc | d64fd91397eb979ca85e7cabefe7c290c04434e2 | refs/heads/master | 2023-02-23T11:37:24.684042 | 2021-01-25T05:10:35 | 2021-01-25T05:10:35 | 332,100,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.shortcuts import render
from django.views.generic import ListView
from .models import Post
from django.contrib import admin
from django.urls import path, include
class HomePageView(ListView):
model = Post
template_name = 'home.html'
context_object_name = 'all_posts_list'
urlpatterns = [
path(... | [
"jaebrownjr@gmail.com"
] | jaebrownjr@gmail.com |
fb935ebf7929bf8547c110f220afd9dd747ddc54 | a90792aec007ab37cdd7d21dfb5340a88b87132f | /shorten/views.py | 41aca3353713eacb4762171447c1d714b33da29e | [] | no_license | chetangargnitd/url_shortener | fee4b837c79b118bf1cfea3f80582c05326a0c3d | b94c1f83ac56e623fedb3e2ca211a9f2f5b35ff2 | refs/heads/master | 2021-06-24T04:20:27.291801 | 2019-06-17T14:22:18 | 2019-06-17T14:22:18 | 191,707,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from __future__ import unicode_literals
from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.http import Http404
from django.shortcuts import get_object_or_404
from .models import URLs
import urllib
import hashlib
def home(request):
context = UR... | [
"chetangarg1102@gmail.com"
] | chetangarg1102@gmail.com |
aee5135a64857c7423190a714cc62b15b207d49f | 9612da0b14b7e9f883a2ae50f00af87571bccabc | /Analyzer.py | 2f1b4c07946a7828146daa3d16607d8aad4e94ea | [] | no_license | andrewghaly/HandwrittenEstimation | e56bb5489b5833a515dff529e0f9172ed7c380db | 97424d64a4b3ae784499d0bcf660797f056fc026 | refs/heads/master | 2021-01-23T03:27:17.421327 | 2017-03-24T14:45:44 | 2017-03-24T14:45:44 | 86,078,278 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | import cv2
import numpy as np
drawing_averages = []
for imageNumber in range(1,51):
img = cv2.imread('C:\\Users\\ghalya\\Pictures\\Hands\\Saunders_hand\\al_r_' + str(imageNumber) + '.png', 0)
if img is None:
print "Error loading image"
exit()
newImg = cv2.cvtColor(img, cv2.COLOR_GRAY2RGB)... | [
"ghalya@wit.edu"
] | ghalya@wit.edu |
588948095f2db1f4d431c649e77a76b72ecf54b8 | 68f57fd1dd274be72af6d85762b67bbf8d2ef6d6 | /tests/test_cosine.py | 3ac719652f889a7529befb8bcbf87a328c003cfa | [] | no_license | afcarl/simplecosine | 287cbf40ef8aa2251ea538b7b3c2d28c5b6f2488 | 1ba869198ab3211dd4b0412e80e670308007f687 | refs/heads/master | 2020-03-17T23:56:28.854494 | 2017-06-15T21:33:36 | 2017-06-15T21:33:36 | 134,069,251 | 1 | 0 | null | 2018-05-19T14:29:05 | 2018-05-19T14:29:05 | null | UTF-8 | Python | false | false | 2,909 | py | import unittest
from simplecosine.cosine import CosineSetSimilarity, CosineTextSimilarity
import numpy
import pickle
class TestSetCosineClass(unittest.TestCase):
def setUp(self):
self.ilist = [('a', 'b', 'c'),
['b', 'c', 'd k'],
('d k', 'e', 'f')
... | [
"fgregg@uchicago.edu"
] | fgregg@uchicago.edu |
362e1c5d6c3bd62bae910a57c6d2f267d85924f0 | 6cf9b92459bb6bc5d9941728f9b0d697bd5db29f | /task.py | 121bdbcc4864c0ce62df6fde1bfd892db04b2cf0 | [] | no_license | mehar13hamza13/competetive-learning-using-python | 6eb2da2ab6ccdc17bc47e432a27e5582ddd5186c | f62f079c1facd7536c51fb4dad3e8edf867482c3 | refs/heads/master | 2023-06-24T22:22:41.173546 | 2021-07-27T15:55:52 | 2021-07-27T15:55:52 | 390,043,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py |
import numpy as np
class CompetetiveLearning():
def __init__(self, input_nodes, output_nodes):
self.input_nodes = input_nodes
self.output_nodes = output_nodes
#initializing random weights
self.weights = np.random.uniform(low=0.0, high=1.0, size=(output_nodes, input_nodes)).round... | [
"hassaanfarooq71@gmail.com"
] | hassaanfarooq71@gmail.com |
71099406ad6fc49075c14031a16a80c20794895f | a5315e8edc48c5fabcf6aaaa56de737d9594cddf | /deepc/modules/resnet.py | 6e109cf6e94138f8dae8fb9e4efd2080ec7f1fd4 | [] | no_license | elirshabat/deepc-pytorch | efead7622d09c0c14f2b2c941cc7202e0278bbc8 | c946ad55c5a8fedff1055f34b92b1a8e9cb3df2a | refs/heads/master | 2020-03-23T01:41:05.212437 | 2018-11-06T07:31:50 | 2018-11-06T07:31:50 | 140,931,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,955 | py | import torch
from torchvision import models
import torch.nn.init as init
import numpy as np
def initialize_weights(method='kaiming', *models):
for model in models:
for module in model.modules():
if isinstance(module, torch.nn.Conv2d) or isinstance(module, torch.nn.ConvTranspose2d) or isinstan... | [
"shabat.eliran@gmail.com"
] | shabat.eliran@gmail.com |
40c87a8686a9baae4fa8aeedbe59625b342a5fff | 485384a2e1faa338d3372a8c000ccab6f6891cfa | /CGAT/Mali.py | 6337aeb47d18672ec25b144ac94a69699dfb9d3a | [
"BSD-2-Clause"
] | permissive | wangzhennan14/cgat | 30c8ec4f8d1e14413c5d8193352348137d60a611 | 38ff24edc2a1f8b0da5716aea4fbf6a9328342b0 | refs/heads/master | 2021-01-18T15:43:02.544097 | 2017-03-16T15:27:11 | 2017-03-16T15:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,924 | py | '''
Mali.py - Tools for multiple alignments
=======================================
:Author: Andreas Heger
:Release: $Id$
:Date: |today|
:Tags: Python
Code
----
'''
import re
import string
import math
import copy
import random
class AlignedString:
mGapChars = ("-", ".")
mGapChar = "-"
def __init__(... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
9e8faea111d72f8b2e5ec2a6e79cd03f082cad11 | 8f24e443e42315a81028b648e753c50967c51c78 | /python/ray/train/examples/horovod/horovod_pytorch_example.py | f4d15ae0515b7fad3547711c35c685f4407f2ced | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 8,402 | py | import argparse
from filelock import FileLock
import horovod.torch as hvd
import os
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.utils.data.distributed
from torchvision import datasets, transforms
from ray.air import session
from ray.air.config import ScalingConfig
fro... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
188c2472291601922fddbb95d9c6cdbe3ca24173 | d12e13bab06ba7083a41aba7e7f74fa40926f0cc | /seq2seq-affect-attention/model/Decoder.py | 4205fde03a3c06a698c12fa5da91565c6a50e86d | [] | no_license | HengYangDS/seq2seq-affect | 39ca15998f7824f29932832c880cba416a478682 | e5c40651540fea258a2d683be0fe532763168853 | refs/heads/master | 2020-09-25T16:09:53.663929 | 2019-12-05T02:10:13 | 2019-12-05T02:10:13 | 226,040,899 | 1 | 0 | null | 2019-12-05T07:21:28 | 2019-12-05T07:21:27 | null | UTF-8 | Python | false | false | 1,031 | py | import torch.nn as nn
# 解码器
class Decoder(nn.Module):
def __init__(self, cell_type, # rnn类型
input_size, # 输入维度
output_size, # 输出维度
num_layer, # rnn层数
dropout=0): # dropout
super(Decoder, self).__init__()
assert cell_type in... | [
"1759567121@qq.com"
] | 1759567121@qq.com |
9cee7ee01989eaac94944331ddf1326936e6d652 | b45df36da7d09b3170c503753dabf62ac28db8d8 | /book/exercise/Key-valueOperations/Python/TweetService.py | da23adede52957c795737d066a9b02e35525edcb | [
"MIT"
] | permissive | skatsuta/aerospike-training | 42b9a6e9372bd396d3489ec73778df7c00f5829e | d08d1805e19277b08327df5670e4c335ee63b853 | refs/heads/master | 2023-08-16T13:03:09.930256 | 2014-12-12T17:18:02 | 2014-12-12T17:18:02 | 27,905,857 | 0 | 0 | MIT | 2023-08-03T19:46:21 | 2014-12-12T04:52:47 | C# | UTF-8 | Python | false | false | 8,093 | py | #!/usr/bin/env python
#
# * Copyright 2012-2014 by Aerospike.
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to
# * deal in the Software without restriction, including without limitation the
# * rights... | [
"katsuta_soshi@cyberagent.co.jp"
] | katsuta_soshi@cyberagent.co.jp |
73f8ddeef35504d0ce12496657651f487254073c | 9edff345ec24494058d5ce01b4fb46012dc8bf29 | /中级算法/回溯算法/单词搜索.py | 180c8e196a24a8a9cd990344a4e486c18e38aac9 | [] | no_license | gump1368/leetcode-python | 65909bb9931e3840d29743222d92af3a77902f33 | 2d4f47e21cc105700feccb0d525408bdc54c663c | refs/heads/master | 2023-01-24T03:50:19.447898 | 2023-01-12T07:03:12 | 2023-01-12T07:03:12 | 235,063,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | #! -*- coding: utf-8 -*-
"""
@Author: gump
@Create Time: 20220714
@Info: 单词搜索
"""
from typing import List
# def exist(board: List[List[str]], word: str) -> bool:
# """
# 输入:board = [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]], word = "ABCB"
# 输出:false
#
# :param board:
# :param word:
# ... | [
"guan_dongpu@gowild.cn"
] | guan_dongpu@gowild.cn |
5db923fb9cbe244877c30b08690665cc6022a117 | 2b98c555e146487a08b0f9c2e94f2564977623dd | /main.py | 14aeb66d5b362c719da26bf8648a29d9ed64f39f | [] | no_license | RossT18/Binary-Tree | 400eb9efc79f3c3072a46d6e5c7ae2e37be4940b | 5f22c8d76208cfe6283f0bfef573b481002c209e | refs/heads/main | 2023-03-27T00:25:06.151084 | 2021-03-28T17:57:01 | 2021-03-28T17:57:01 | 331,387,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import BinaryTree as bt
# https://upload.wikimedia.org/wikipedia/commons/d/da/Binary_search_tree.svg
root = bt.Node(8)
tree = bt.BinaryTree(root)
tree.add(3)
tree.add(1)
tree.add(6)
tree.add(4)
tree.add(7)
tree.add(10)
tree.add(14)
tree.add(13)
# Expected output order:
# 1,3,4,6,7,8,10,13,14
print(tree)
print("L... | [
"rtinsley1199@gmail.com"
] | rtinsley1199@gmail.com |
a06a1754d3ec0bbd190006a04d477e5c50c00b20 | 4e3f83be95d2225fd18047fc6eaf09992d4491ea | /src/utils/Datetimes.py | b01224589683651301f55b46dc3ec0fa6b2561c3 | [
"Apache-2.0"
] | permissive | Gabvaztor/TFBoost | 7f1d56e44498a23f2e9d884fcd66942cb9e6d622 | a37b906f5cb47becc3275def8282ff395d06ef45 | refs/heads/master | 2021-06-06T07:56:05.995559 | 2019-10-14T15:27:29 | 2019-10-14T15:36:43 | 83,965,500 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from datetime import datetime
def date_from_format(date, format="%Y-%m-%d %H:%M:%S"):
return date.strftime(format) | [
"gabvaztor@gmail.com"
] | gabvaztor@gmail.com |
7adb46a971ce547c265474004b96ae65283904dc | a0cfde6971fbe3b2c1de726a7bfc1c60fba3a137 | /userbot/plugins/git.py | 8d3857c9917303b94e1f9cebb82f052502dce43e | [
"MIT"
] | permissive | No-OnE-Kn0wS-Me/FridayUserbot | 6efb25dfd2eb06674b99bc158a6bbddcd128012c | 9ef60066b72fa085300408855010ea05b9026f82 | refs/heads/master | 2022-11-19T23:10:49.342679 | 2020-06-22T13:49:56 | 2020-06-22T13:49:56 | 274,447,417 | 2 | 1 | MIT | 2020-06-23T15:52:27 | 2020-06-23T15:52:26 | null | UTF-8 | Python | false | false | 648 | py | from telethon import events
import asyncio
@borg.on(events.NewMessage(pattern=r"\.(.*)", outgoing=True))
async def _(event):
if event.fwd_from:
return
animation_interval = 0.1
animation_ttl = range(0, 101)
input_str = event.pattern_match.group(1)
if input_str == "githubs":
... | [
"66051049+StarkGang@users.noreply.github.com"
] | 66051049+StarkGang@users.noreply.github.com |
48a149e36e40844f00d5d10b8710b2422b11ab35 | 4bbb4fca1829ec8b146f9c73d2358b897e28d4ae | /main/views.py | 4070691290ea2909d585902532f0a46b40ad40be | [] | no_license | richardwalkerdev/handofcards | e54e1bc4bf868b2a9e02c63a063706daf1573f98 | 312e77884695e5e1442bff40660b6be08623604b | refs/heads/master | 2022-12-16T00:35:24.096302 | 2020-02-04T17:12:38 | 2020-02-04T17:12:38 | 234,924,220 | 0 | 0 | null | 2022-12-08T03:27:57 | 2020-01-19T15:49:12 | Python | UTF-8 | Python | false | false | 959 | py | from django.shortcuts import render
import requests
import os
from django.core.exceptions import ImproperlyConfigured
from .models import Hand
import datetime
def hand(request):
def get_env_value(env_variable):
try:
return os.environ[env_variable]
except KeyError:
error_ms... | [
"rwalker@rwalker.remote.csb"
] | rwalker@rwalker.remote.csb |
93e2cb9162dfaedfe3a58c9892ccb9936f9405c9 | 9e7d7b4d029554eed0f760a027cd94558b919ae2 | /CHAPTER15/overlaying.py | e320bf396d4410f1a0cc189810fc886ac93deca0 | [] | no_license | pooja1506/AutomateTheBoringStuff_2e | 8247b68a195d5e1976c6474f0e97d947906ffd35 | 5bab9ccdcdb22ee10fe1272c91042be40fd67c17 | refs/heads/master | 2022-04-10T19:21:44.402829 | 2020-04-05T12:10:32 | 2020-04-05T12:10:32 | 249,620,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import PyPDF2
minutesFile = open('meetingminutes.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)
minutesFirstPage = pdfReader.getPage(0)
pdfWatermarkReader = PyPDF2.PdfFileReader(open('watermark.pdf', 'rb'))
minutesFirstPage.mergePage(pdfWatermarkReader.getPage(0))
pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter... | [
"pooja.dmehta15@gmail.com"
] | pooja.dmehta15@gmail.com |
b3d7305f178eead8c1316698c2989f3d44540d31 | 71b3715408330a42c62c7176a0f8fb1901d3ba6c | /src/day01/HelloWorld.py | 3767e64837fc2b4f8dab04a81c60ccf1cac9530c | [] | no_license | hubin9218/LearnPython | 41fac40b4d883fde62c4a0f0405da76da0bda5df | a9fd0e55bddc5f1a2a07212a7f80c603ea2dc735 | refs/heads/master | 2021-02-17T06:13:48.945425 | 2020-03-23T09:49:39 | 2020-03-23T09:49:39 | 245,076,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | """
绘制小猪佩奇...
"""
from turtle import *
def nose(x,y):
"""画鼻子"""
penup()
# 将海龟移动到指定的坐标
goto(x,y)
pendown()
# 设置海龟的方向(0-东、90-北、180-西、270-南)
setheading(-30)
begin_fill()
a = 0.4
for i in range(120):
if 0 <= i < 30 or 60 <= i <90:
a = a + 0.08
# 向左转3... | [
"hubin9218@163.com"
] | hubin9218@163.com |
5a4ce30950656174d6f9d7daeedd4c6f6fb567c7 | 7e83e6b4e1f6c461e8b77eb620a9a1c851b611e8 | /hello_django/hello_django/urls.py | f5dc4fe5f9d8a8d42a862b0098131600a0887911 | [] | no_license | guess3233qa/opendata | fa64e6331b1c1f08972d44a339966444dc45ff96 | b3d95ce69ce6cfd23947a2f32b7ab2f058eb7ed2 | refs/heads/master | 2021-01-17T05:17:38.871841 | 2017-06-28T01:06:27 | 2017-06-28T01:06:27 | 95,610,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """hello_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"noreply@github.com"
] | guess3233qa.noreply@github.com |
cce85590e54ae1deb81edc2cb58d4281f38508e8 | 2d27f9735aa104cffb0701683d70021d61729f57 | /template.py | 8d2e3a024ba2f3223f9cdd13efe292b2c6176d09 | [] | no_license | indexample/AOC2020 | 2b84f07fd479c4fc7df0b1b3c2b65176fcf6a7de | 300363a693e933173f3a5edfc3bc1797428f0346 | refs/heads/main | 2023-02-06T03:19:43.667864 | 2020-12-22T13:04:18 | 2020-12-22T13:04:18 | 318,496,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import os
import timeit
#import numpy as np
#from itertools import count
# ideas
# part1:
# part2:
def log(*args):
if LOGGING:
for i in args:
print( str(i) )
def timefunc(iter, function, *args):
def wrap():
function(*args)
t = timeit.Timer(wrap)
return t.timeit(iter) / ... | [
"3052927+devale@users.noreply.github.com"
] | 3052927+devale@users.noreply.github.com |
03295f3478f5d7e47e2204ea64855e9de3926e54 | 121ab18bfbdb690a3365e84b7da6d1b143fb8768 | /tabTools/add_tag.py | aacad3786e6de8bf2b6c20cec752c44ac4347af1 | [] | no_license | zy041225/python_bin | 1661ef120ce22d63f7f8929dfe637bf12e7b31b4 | 4b0219b4a99394b48c3dad19727cbfb2038d2e3e | refs/heads/master | 2020-09-13T15:34:02.145545 | 2019-11-20T02:07:34 | 2019-11-20T02:07:34 | 222,830,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | #!/usr/bin/env python3
import sys
import getopt
if len(sys.argv) != 6 or sys.argv[5] == '-':
sys.exit("python3 %s <tab> <tab_column> <tag_lst> <tag_column> <tag_name>\n<tag_name> should NOT be '-'"% (sys.argv[0]))
dict = {}
tag_lst = open(sys.argv[3])
for line in tag_lst:
line = line.rstrip()
tmp = line.split('\t... | [
"zy041225@gmail.com"
] | zy041225@gmail.com |
d8db374595ea9b2c375ef52a5364a9fa9f258336 | 626a08cf643775368dff313e1049ba55d559e986 | /libs/metrics/type_composite_index.py | 01973da142755b0460a52ac3eddbd4907af9cfba | [] | no_license | NashLea/SecuritiesAnalysisTools | 3fd995a4d4d714cff81cd60cb6f885880c175d19 | 3fd5ae12714f56efd5dc395ae7a1e5acc7778aba | refs/heads/master | 2022-11-06T06:43:09.399530 | 2020-06-20T03:27:22 | 2020-06-20T03:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,056 | py | import os
import json
import pandas as pd
import numpy as np
from libs.tools import cluster_oscs
from libs.tools import windowed_moving_avg
from libs.utils import download_data_indexes
from libs.utils import dual_plotting, generic_plotting
from libs.utils import ProgressBar, index_appender
from libs.utils import STAND... | [
"ngamell@mmm.com"
] | ngamell@mmm.com |
da60ebdb0c9f8856df41a22fbe7a5925c0a77927 | a4d250ce393012dc251cb955096cb8f284c57439 | /gunion/data/battle.py | 2e86c5bc5fb1e0344791a01e941d7330c554ed7e | [] | no_license | daxingyou/test-2 | b02af312784d06a46e29acd42e756e92afee6ed9 | a16c872ba781855a8c891eff41e8e651cd565ebf | refs/heads/master | 2023-03-16T04:21:23.704482 | 2018-09-28T00:51:23 | 2018-09-28T00:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,188 | py | #coding:utf8
"""
Created on 2016-07-28
@Author: jiangtaoran(jiangtaoran@ice-time.cn)
@Brief : 联盟战争
"""
import base64
from utils import logger
from utils import utils
from datalib.data_loader import data_loader
class UnionBattleInfo(object):
"""一场联盟战争
"""
BATTLE_STAGE_INVALID = 0 #非法
BATTLE_STAGE_... | [
"luhongwei1@ice-time.cn"
] | luhongwei1@ice-time.cn |
64c56cb8b06a7ea97fa9eaa40bc7a4d99d330d48 | 11b0c124262ac40de87d756389082462d8452e4d | /keras/keras44_3_cancer_conv1d.py | 7aaef711d66a0e504dbd364159570a7de778fe5d | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | from sklearn.preprocessing import MaxAbsScaler, RobustScaler, QuantileTransformer, PowerTransformer, StandardScaler
from tensorflow.keras.callbacks import EarlyStopping
import numpy as np
from sklearn.datasets import load_breast_cancer
from icecream import ic
from tensorflow.keras.models import Sequential
from tensorfl... | [
"nbaksa3@gamil.com"
] | nbaksa3@gamil.com |
da4d9970097abb9879bdaf10f8d859c5287053b0 | 5b8fcb1bf82a7c1ef5b6c2a939b1d1597bc7a24b | /create_json_for_airtable_operator.py | e00238b2f39eae43c6d55eae4974dcf2d194d262 | [] | no_license | katerinekhh/airflow_custom_stuff | 2420c3ee95dab01e5eeeb8248500e253126e5b48 | 43ba78d96770a575ba7ab11a691b101e6d6604af | refs/heads/master | 2022-10-12T13:55:01.916266 | 2020-06-12T13:17:06 | 2020-06-12T13:17:06 | 271,645,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | from datetime import datetime
import json
from airflow.utils.decorators import apply_defaults
from airflow.models.baseoperator import BaseOperator
from airflow.hooks.http_hook import HttpHook
class CreateJsonForAirtableOperator(BaseOperator):
@apply_defaults
def __init__(
self,
endpoi... | [
"you@example.com"
] | you@example.com |
cf4cd861229bcd84028e5670c4292b18a9ce0692 | e0cf5219ff9ad4eab2000516739ee651d7aa4c8f | /models/nets.py | ca62b8e0f15aec8c1b12dff278ba3f28a6d8c6c6 | [
"MIT"
] | permissive | Perfec-Yu/Lifelong-ED | cbf32f6e2d3ccf393eec08e5dbfb29e5e3c1b28b | f1af49129dd6ed4ff545f84e680565cccdb5b55a | refs/heads/main | 2023-07-19T23:52:41.932196 | 2021-09-02T15:26:36 | 2021-09-02T15:26:36 | 402,468,387 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 32,092 | py | import numpy
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import autograd
import math
from typing import Any, Dict, Tuple, List, Union, Set
import warnings
from collections import OrderedDict
from torch.nn.modules.linear import Linear
from torchmeta.modules import MetaLinear, MetaSequen... | [
"life4pf@163.com"
] | life4pf@163.com |
9dce78213c77274a834e67aa526b49d3187883d8 | 767318c4ddf2713a8a035aa3bf68cd8260409aa0 | /travellow/urls.py | a644dc789f9aa6062a14454cf7171e52bf44b7fb | [] | no_license | sag-coder/travelbooking | 704573b145ca04587bbaf2415f4bbdb6ad50b26f | dfc482ca01d1be324aba900075b2a64dc2fd1d88 | refs/heads/master | 2023-06-11T23:22:44.114545 | 2021-07-10T23:47:37 | 2021-07-10T23:47:37 | 384,562,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
path('', views.index, name='index'),
]
urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| [
"sagar@sagars-MacBook-Pro.local"
] | sagar@sagars-MacBook-Pro.local |
0757a5984a57b6a43f6f9c8dbc15fe28c3b58c96 | 9f77118ac2fdfbdc3174c1fdfaa32bcf2b5ead40 | /ALL_FILES/poxresources.py | 71b122023b8723299b5cc25a607861109073ad60 | [
"Apache-2.0",
"MIT"
] | permissive | gilneidp/FinalProject | 309979cb65a115a980c58433decc921e295147bf | ec4f35d154bc4383ccde113126e493c1521ad21a | refs/heads/master | 2021-01-01T18:42:30.789219 | 2015-10-30T10:40:47 | 2015-10-30T10:40:47 | 41,107,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import os
import sys
import datetime
from datetime import timedelta
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "madapp.settings")
from django.core.management import execute_from_command_line
from django.db.models import Count, Avg
from madapp import settings
from madapp.mad.models import *
import psutil
cpu = p... | [
"gilnei@gilnei.com.br"
] | gilnei@gilnei.com.br |
ff8cefcde863d2211483e1d36ab5250a2795db09 | 667e52d9501e04ad9d301c405a1ffc57dabc439e | /checkio/find_friends.py | dcb04ca3265d5c32614ffd7993960e1e3624939c | [] | no_license | merryjane/python | c9ab15f09b83a0f0069b49fe5f2f7ed6e601831c | 423aa3cdf226404b2bf9f5958b5d03fe84b93f74 | refs/heads/master | 2021-01-23T16:37:05.387564 | 2014-07-25T14:17:13 | 2014-07-25T14:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #!/usr/bin/env python3
def look_for_neighbors(network,node):
neighbors = set()
for couples in network:
if couples.split('-')[0] == node:
neighbors.add(couples.split('-')[1])
elif couples.split('-')[1] == node:
neighbors.add(couples.split('-')[0])
return neighbor... | [
"ibiryulin@qsoft.ru"
] | ibiryulin@qsoft.ru |
ef2911b4133217bc48dbf92e02a62bd1d9b5d171 | e168a16fdd43d3023d16d8a643ccca318a44c327 | /evm/logic/call.py | 42acedd0f1791f1cebd63438077524bdee541b46 | [] | no_license | DavidKnott/py-evm | c589c88af55c121ea375bfdb0a53ecc6a4836119 | 66c47f58a62e995b5ce89e47007c8b03796c80b9 | refs/heads/master | 2021-01-01T04:08:39.921768 | 2017-07-18T13:03:45 | 2017-07-18T13:03:45 | 97,128,228 | 1 | 0 | null | 2017-07-13T13:54:57 | 2017-07-13T13:54:56 | null | UTF-8 | Python | false | false | 7,349 | py | from evm import constants
from evm.opcode import (
Opcode,
)
from evm.utils.address import (
force_bytes_to_address,
)
class BaseCall(Opcode):
def compute_msg_gas(self, computation, gas, to, value):
raise NotImplementedError("Must be implemented by subclasses")
def get_call_params(self, com... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
f0a82e1bd0914b8007e6b425025033a3628ec23c | 3badd0d2ea861e56748f5c16beba67e1685dc7c3 | /functional_tests.py | 75114b2d2c52b96f38a980fbc54472aef4cb095d | [] | no_license | chris-seals/tdd-book | a8b72c0ba83e1a27088783225a3fd30fc32bdb28 | 28d9742e19d510fd07fe21928ede7c316958f4fa | refs/heads/master | 2022-11-22T03:34:23.940099 | 2020-07-19T14:27:00 | 2020-07-19T14:27:00 | 258,937,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Firefox()
def tearDown(self):
self.browser.quit()
def test_can_start_a_list_and_retrieve_it_later(... | [
"christopher.seals@gmail.com"
] | christopher.seals@gmail.com |
848257d62f49ecdcc747c38384d79aa0afb7700b | 8db1ab4f9a2e47f7e8d69a685837d7e747bf9442 | /cocos2d-x-tool/py_tool/syncResToProject.py | 0773ceebfd0313dd7ab2c0df0f04cec7b688b661 | [] | no_license | tanzuoliang/python | 051d6e46cebd7fdb74a0173aca0ca7a2b3ef5986 | 70f782cf3c72d2b7043727910509eb2d2f2fe065 | refs/heads/master | 2021-10-20T05:36:03.732738 | 2019-02-26T02:37:18 | 2019-02-26T02:37:18 | 111,288,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | #!/usr/bin/python
#encoding=utf-8
from myutil.utils import syncDir,checkSVNStatus
import os
fromRoot = '/Users/tanzuoliang/art_resource'
toRoot = "../res/new_ui"
toLanguage = "../res"
ll = [
('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/00\ icon','天天坦克/UI 效果图+输出 20170214 优化版/00 icon','icon'),
('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/0... | [
"ysjwdaypm@163.com"
] | ysjwdaypm@163.com |
3f60cafc9d44646bf3475d2b1f730a3648b8e27b | 863c2fcfd5ebed9153c43a298488abeb6e96d627 | /time_series_classification.py | ee0ba8dbea36985a0524ff0d3e4a63708bed7170 | [] | no_license | liang112233/time-series-classification | 6d51dd7e80b044f6fbc7e64c2dd4e4bf6f1ae8f5 | d5e847b302d855bb9dc975e888b2c0e50be32f8e | refs/heads/master | 2022-11-25T13:18:35.772054 | 2020-07-30T15:16:58 | 2020-07-30T15:16:58 | 280,761,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # https://www.analyticsvidhya.com/blog/2019/01/introduction-time-series-classification/
import os
import pandas as pd
import numpy as np
# matplotlib inline
import matplotlib.pyplot as plt
from os import listdir
import tensorflow as tf
gpus = tf.config.experimental.list_physical_devices('GPU')
for gpu in gpus:
... | [
"sisheng.liang@ttu.edu"
] | sisheng.liang@ttu.edu |
87a0d04e73c54c1e0daef6dcf0e338c6af43be21 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc024/B/answers/111654_Gale.py | b31d17de7f8e5d4c0d019d4cbf95c0c6f7e11513 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | n, t = map(int, input().split())
a = [int(input()) for i in range(n)]
ans = t
for i in range(1, n):
ans += t
if a[i] <= a[i - 1] + t:
ans = ans - (a[i - 1] + t - a[i])
print(ans)
| [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
0b583e86f97c1a537be2b27d6980f3a3dd93df1a | 528c811306faa4a34bf51fca7955b7a24ac2e30c | /Python/Valid Anagram.py | 263508830b33b30fd769bcad02fa5dbf91901f61 | [] | no_license | ganjingcatherine/LeetCode-1 | 1addbd7e4d9254a146601f9d5e28b8becb8235a6 | 488782d3f1e759da2d32b4e82dbf55b96c431244 | refs/heads/master | 2021-05-11T03:15:16.810035 | 2016-02-06T06:19:18 | 2016-02-06T06:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
Note:
You may assume the string contains only lowercase alphabets.
"""
class Solution(object):
def isAnagram(self, s, t):
"""
... | [
"anthonyjin0619@gmail.com"
] | anthonyjin0619@gmail.com |
626be54fe2c402a3a685abc6d8479c10ea8a75aa | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CalibMuon/RPCCalibration/python/l1MuonOutputModule_cfi.py | 6dbdc357f06e53ed7641a5fc49576123b5f1a25e | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 419 | py | import FWCore.ParameterSet.Config as cms
from CalibMuon.RPCCalibration.l1Muon_EventContent_cff import *
L1MuonEventContent = cms.OutputModule("PoolOutputModule",
l1Muon_EventContent,
l1MuonEventSelection,
datasets = cms.untracked.PSet(
filterName = cms.untracked.string('l1Muon_Filter'),
dat... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
73fb980e24519d85b6a114bf1263927c71ea7335 | 88deebcc2251f406c0c34325025cd0cbccb142e7 | /Drosophila/ABC/melano_simulans_simulate_ms_ABC.py | 0c443a1bf2620a4e48345ce53a52e4623d284f5e | [] | no_license | cllong112s/CNN_spDelimitation_Piloso | 27dab9269253c4ca360e6f8c4f1d70560bf15d84 | 5a5cae2498e89291357733f8614c5399558be7c0 | refs/heads/master | 2023-08-15T20:15:52.292721 | 2021-09-16T15:08:42 | 2021-09-16T15:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | #!/usr/bin/python
## in order to use this code you have to have ms installed on your computer
## ms can be freely downloaded from:
## http://home.uchicago.edu/rhudson1/source/mksamples.html
import random
import os
import math
### variable declarations
#define the number of simulations
Priorsize = 10000
## nDNA sam... | [
"manolo@macbook-pro-de-manolo.home"
] | manolo@macbook-pro-de-manolo.home |
fb82d01ee42c4f74d1b66246033ac584b40173c8 | 9bb28ccac08cbb00b3b973ed1283a4e63db045de | /venv/Scripts/pip3.8-script.py | 6f8e9a2a91deacf7a08089af0bac8dcaf76cb0fa | [] | no_license | sanghee5/polls_example2 | 762202280519efdddff7015cb4399cf80fac94d4 | 6f0511a6bf0994f46168902c54266ef8f9107519 | refs/heads/master | 2022-08-21T03:59:38.140488 | 2020-05-26T11:47:10 | 2020-05-26T11:47:10 | 267,026,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!C:\Users\woo\PycharmProjects\polls_example2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"dnstks12345@naver.com"
] | dnstks12345@naver.com |
2bff7ce472c638cc2952ee313e844673778ab37c | 5faecec9b20d262150e48ac9f31c396f840b1f2f | /migrations/0010_auto_20200804_0913.py | f175b678b5857527caa863cd6db136e7bc3d803b | [] | no_license | binkesi/blogsgn | fb767b0d22e3eb1c32ea7ee8fd0796766e3a8600 | 579b374f802a5651d20c3b3f85d8ff6a22476bdd | refs/heads/master | 2022-11-27T23:24:45.574601 | 2020-08-04T10:06:28 | 2020-08-04T10:06:28 | 283,161,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # Generated by Django 3.0.6 on 2020-08-04 01:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogsgn', '0009_auto_20200804_0653'),
]
operations = [
migrations.AlterField(
model_name='author',
name='nation',
... | [
"sjtusgn@163.com"
] | sjtusgn@163.com |
7713fd10c64850e9770370122883e5b6ea01086f | e2ae96b74289a04a2386294bf51bacad92e2a830 | /city_scrapers_core/spiders/legistar.py | 29c3176db02b4b0851fd939f9f79845a629163c5 | [
"MIT"
] | permissive | will-snavely/city-scrapers-core | 6afa9d78fb1c325420baaae030633b01111f11bb | cb865069e49d09ab251b7f99247df5e13c5d0241 | refs/heads/main | 2022-12-11T21:39:03.307347 | 2020-09-09T13:29:53 | 2020-09-09T13:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | from datetime import datetime
from typing import Iterable, List, Mapping, Optional, Tuple
from urllib.parse import urlparse
import scrapy
from legistar.events import LegistarEventsScraper
from ..items import Meeting
from .spider import CityScrapersSpider
LINK_TYPES = ["Agenda", "Minutes", "Video", "Summary", "Captio... | [
"pjsier@gmail.com"
] | pjsier@gmail.com |
9d101de5dc8616d67f19ec37db6ac2e7ed86d8b1 | fde2a3a4858b37cafcd02cf917d3bd69680084b3 | /Spacegame/Spacegame/scoreboard.py | 7cb820bd2744867f4d0c0ffc58127b56a0c6463a | [] | no_license | CaptainBlowFish/AlienInvasion | 34b1e013e97c8f2a69aa82e9e51786ffc5e2f78f | 6ec7f399bbaa92901ad8b015047bc6ebe6dc708e | refs/heads/main | 2023-08-29T20:04:38.130623 | 2021-11-12T13:45:19 | 2021-11-12T13:45:19 | 422,559,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | from pygame import font
from pygame.sprite import Group
from ship import Ship
class Scoreboard:
"""A class to report scoreings information"""
def __init__(self, ai_game):
"""Initialize scorekeeping attributes"""
self.ai_game = ai_game
self.screen = ai_game.screen
... | [
"noreply@github.com"
] | CaptainBlowFish.noreply@github.com |
9f0d1351e1fd94cb4f0674d16df5403e9b562544 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7279.py | 7b346f67e4f794d398658cee0c9138683fa18c0b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,612 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3230d5448ef48ac2a50e98f9791b15a0ed770f9f | 0147677b611e40ac695ba07f914264b3470a7401 | /src/mac_address_info.py | 4ad9f15c04cbbf5909df457315f089a8c5f1a0cb | [] | no_license | mblomdahl/sniffer | a2aed3ee37bb9a39d3c13ad8455ce7c7a2fc58c7 | 9101c59f958bb94fe1443fd90e95d333a02b785f | refs/heads/master | 2021-01-24T00:23:30.318623 | 2015-08-14T12:56:33 | 2015-08-14T12:56:33 | 41,627,533 | 0 | 0 | null | 2015-08-30T12:11:01 | 2015-08-30T12:11:01 | null | UTF-8 | Python | false | false | 5,190 | py | import json
import urllib2
import os
class MacAddressInfo:
def __init__(self):
self.mac_address = ""
self.company = ""
self.address1 = ""
self.address2 = ""
self.address3 = ""
self.country = ""
class MacAddressStorage:
def __init__(self):
self.data = [] ... | [
"="
] | = |
49d5dabd0c8205c8eed6e8ec4291d98ee9d5549f | 6ff024bfa3078c0e7f9f2f502c27bb066ae4a862 | /ML_geron_1.py | f94f8cdbfe32e016666c5443242e0b396e8f9765 | [] | no_license | emvil/MLtraining | 920b0f6808e9b3c675a62c90c548608beae8c292 | 6c9f37d6c6151bcb75d07b3cd6ee684062c5a7ed | refs/heads/master | 2020-06-25T01:28:15.043324 | 2019-08-26T20:11:07 | 2019-08-26T20:11:07 | 199,154,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | # References:
# Book: Hands_on Machine Learning with Scikit-Learn and TensorFlow, Aurélien Géron, 2017.
# Chapter 2: End to end Machine Learning Project
# Objective: predict the district's median housing price in any block group of California.
# Current solution: manually estimated by experts, with a typical erro... | [
"e.villeneuve@outlook.com"
] | e.villeneuve@outlook.com |
4d6b4640228f33cec47a54841e46353e8e26d85d | 94f4b8a12cc09e3056cfc8d5304e5937b33ea6ec | /StemmingGUI.py | df3b3186cf7d4574b4fdb63f3d24f57296236b3b | [] | no_license | Ehtisham09/Machine-Learning-Projects | 8f1aaa7489bd84333491dbab8432cc76ed62915a | dd09308e555cc7aee0db74d91af6f5140e41d689 | refs/heads/master | 2020-07-13T03:12:27.513696 | 2019-10-20T18:25:43 | 2019-10-20T18:25:43 | 204,975,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
import tkinter.scrolledtext as tkscrolled
root = Tk()
root.title("Steming")
root.geometry("1160x600")
root.resizable(0,0)
def showOriginalText():
pass
def showStopWords():
pass
def showUniqueWords():
pas... | [
"noreply@github.com"
] | Ehtisham09.noreply@github.com |
f6d96854d2e988c2c0d5f5a1574b5cc6c67840af | f31630adc1e677065975a4b57902db5e0700e4e9 | /Exploratory Analysis.py | a0e87bf56446b76e8896020163885234c2d39435 | [] | no_license | kkoehncke/ML-Cheat-Sheets | 8a5847a88b49e8d6b92ce5168a637347453fb3c5 | 2e85180a432a3b4b9aa591f6ac65dcbfe7721d2c | refs/heads/master | 2020-03-11T20:08:33.822196 | 2018-04-19T14:40:55 | 2018-04-19T14:40:55 | 130,228,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | Exploratory Analysis:
# Dataframe dimensions
df.shape
# Column datatypes
df.dtypes
# Summarize numerical features
df.describe()
# Summarize categorical features
df.describe(include=['object'])
#Display first 5 rows; can speciy number inside to show n rows
df.head()
# Display last 5 rows of data
df.tail()
# Filte... | [
"kkoehncke@captechventures.com"
] | kkoehncke@captechventures.com |
1f905bbe4853784c2555aed917cc9767ada33140 | 5d0986d930daf567100130c66ae403e0d0cd043f | /train_segmentation.py | 8f4eb9123b4c3a0861ff829789f87178289f8f38 | [] | no_license | and-jonas/HaloDetector | 40d8f7d73cdd89f6c8aa51731ea29d79909a7ab1 | ba0a1bd6f9d060d5ba1e035cb63d7d16a513e60c | refs/heads/master | 2023-09-06T09:54:26.983910 | 2021-11-11T10:04:02 | 2021-11-11T10:04:02 | 426,910,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,049 | py |
# ======================================================================================================================
# Author: Jonas Anderegg, jonas.anderegg@usys.ethz.ch
# Extract training data from labelled patches and train segmentation algorithm
# Last modified: 2021-11-10
# ===================================... | [
"anjonas@student.ethz.ch"
] | anjonas@student.ethz.ch |
720b1ea6f006745bee5abcb72de9509ce028d5e6 | a73cbe345107af388253ab3437992f09b1a033ed | /Aula 8/Aula8-Tuplas.py | 04c116c1b911114ca5cfc5c9a746ea0c7bd79cc6 | [
"MIT"
] | permissive | ohanamirella/TrabalhosPython | 09c586f897cf4ae33a1e49c8340883b17df832d2 | 453a97848654b0391d0d717bf102f6c466f79b3d | refs/heads/master | 2020-09-05T22:54:46.245904 | 2020-02-03T14:51:39 | 2020-02-03T14:51:39 | 220,237,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Aula 8 - 18-11-2019
# Tuplas
numeros = [1,4,6]
usuario = {'nome':'user', 'passwd':123456 }
pessoa = ('maykon','granemann',0, 45.5, numeros)
# print(numeros)
# print(usuario)
# print(pessoa)
lista = [1]
numeros[1] = 5
usuario['passwd'] = 456123
lista_pessoas = []
lista_pessoas.append(pessoa)
#pessoa[4][1] = 6
print... | [
"900153@proway.treina"
] | 900153@proway.treina |
aa787dba2580b471a9d3b39d3d1b56d66c681e27 | 2d09e7e0b8c11e7a604580e54eb980fe7c97cffb | /ArrayOperation/canFinish.py | 93d31a2bfc9c42d83e9db164208fbb1a546f3466 | [] | no_license | Philex5/codingPractice | 8b67e53186c8f087c02214008269b3eb5d235d44 | 95dddb78bccd169d9d219a473627361fe739ab5e | refs/heads/master | 2020-04-24T02:22:05.663438 | 2019-10-09T02:19:25 | 2019-10-09T02:19:25 | 171,634,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | # -*- coding: utf-8 -*-
# @Time : 2019/6/14 下午9:22
# @Author : Philex
# @File : canFinish.py
# @Software: PyCharm
"""
给定一个整数数组和一个整数 k,你需要找到该数组中和为 k 的连续的子数组的个数。
示例 1 :
输入:nums = [1,1,1], k = 2
输出: 2 , [1,1] 与 [1,1] 为两种不同的情况。
说明 :
数组的长度为 [1, 20,000]。
数组中元素的范围是 [-1000, 1000] ,且整数 k 的范围是 [-1e7, 1e7]。
"""
class ... | [
"Philexwoo@gmail.com"
] | Philexwoo@gmail.com |
f4e31986896cc7a6b49e731bcc2f5d073c79c3e2 | 0a643bb9bb8e864a439b7302ac9432eae8313de1 | /main_app/migrations/0001_initial.py | 3bbcc8ba2afffa21afce1c97cae20d1a61f24659 | [] | no_license | jamesgarcia2020/assess_3 | f396a036cb04bb2f2b5b51c02702c8aabf0660ee | 2644481ca7affa66fa7258dfc31f2b1443e51c43 | refs/heads/master | 2022-12-17T14:08:44.615862 | 2020-09-25T21:39:59 | 2020-09-25T21:39:59 | 298,646,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # Generated by Django 3.1.1 on 2020-09-25 18:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Widget',
fields=[
('id', models.AutoField(a... | [
"jamesgarcia@Jamess-MacBook-Air.local"
] | jamesgarcia@Jamess-MacBook-Air.local |
4d6647ad50459cf616a4eaaa782651b3b18edf2d | 1af1f89eb9a178b95d1ba023b209b7538fb151f0 | /Algorithms/146. LRU Cache.py | 09989dad11e2256fc8b9ce1d4d8a754a15563be9 | [] | no_license | 0xtinyuk/LeetCode | 77d690161cc52738e63a4c4b6595a6012fa5c21e | 08bc96a0fc2b672282cda348c833c02218c356f1 | refs/heads/master | 2023-02-21T16:58:39.881908 | 2021-01-25T08:00:13 | 2021-01-25T08:00:13 | 292,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from collections import OrderedDict
class LRUCache():
def __init__(self, capacity):
self.memory = OrderedDict()
self.capacity = capacity
def get(self, key):
if key not in self.memory:
return - 1
self.memory.move_to_end(key)
return self.memory[key]
def pu... | [
"xliu301@uottawa.ca"
] | xliu301@uottawa.ca |
e64030f4bfdc9f2ecd066eaf1ad8e5e2b067c849 | e0eb81aef84ee0929aa3dfc166f29a343251c35b | /seafile-pro-server-7.0.10/pro/python/seafevents/tests/conftest.py | eadb20a149347ce0520fe528caab3c2e5768a7bc | [] | no_license | Sandra-Z/filesharing | 414fc56abe2f87b80ea390e0814a0bf86148a2bf | 0e4e637f0c78f96949796b480b51df72d859c4ff | refs/heads/master | 2022-12-11T12:28:07.155281 | 2019-11-19T08:39:51 | 2019-11-19T08:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,559 | py | import os
import sys
import ConfigParser
import subprocess
from sqlalchemy import create_engine, text
from sqlalchemy.exc import DisconnectionError
from sqlalchemy.event import contains as has_event_listener, listen as add_event_listener
from urllib import quote_plus
from pytest import yield_fixture
from sqlalchemy.po... | [
"deutschland.gray@gmail.com"
] | deutschland.gray@gmail.com |
85b871b51e585a914eea3800d452e2101a966e14 | e211fdfc6fe8b79840409f7e2a2ee5e738bf9393 | /main/migrations/0002_wishlist.py | 4fcac7a1a83bc649d9aa74f9fdd14ab4a171ac52 | [] | no_license | Kuuhaku11/wishlist | ec28416c628d1df2c1e4a4f2ec8f767e255c1d3f | c97346c30c364da30d224edccf87a548b396a24c | refs/heads/master | 2023-08-14T23:18:30.906645 | 2021-09-13T19:04:40 | 2021-09-13T19:04:40 | 404,098,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Generated by Django 3.2.7 on 2021-09-10 12:44
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),
('main', '0001_initial'),
... | [
"kuuhaku112121@gmail.com"
] | kuuhaku112121@gmail.com |
b5ca6f0bd9969bb338ebb2304402697b16cd66b8 | 78eea6b9b9ebada2d02360ff8747c804e4d3f2db | /load_image.py | 0ed8141232b37f4d890dce638696d3666a93d76d | [] | no_license | erkanercan/pyLogicGate | 74c81cd714dff969c3aae496aab3cc297f6c295f | df19777da4299720131565eece40eebb93546a6c | refs/heads/master | 2021-09-10T15:41:45.197118 | 2018-03-28T18:56:51 | 2018-03-28T18:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import pygame,os
def load_image(name, colorkey=None):
fullname = os.path.join('data', name)
print(name)
try:
image = pygame.image.load(fullname)
except pygame.error as message:
print('Cannot load image:', fullname)
raise SystemExit(message)
image = image.convert()
if colo... | [
"abajuradam@yahoo.com"
] | abajuradam@yahoo.com |
d090e5080697eb9ddc699d37c4656032fc8ef74a | 31f85926c1bbafdb0621a43b320f48be2a1090ff | /matrix-cuda/extract_gpu.py | 315584be16bc7aedece6334b2b66eb32c6cc9b13 | [] | no_license | subratpp/jetson_yolo | f1c3e32812c0c9c65883a4d58b817f5c0bdcc833 | 7e4c0edb55a70353a86e733914819077903b3f00 | refs/heads/main | 2023-03-03T10:28:01.331540 | 2021-02-12T17:17:22 | 2021-02-12T17:17:22 | 337,465,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import re
def gpu_workload(filename):
max_use = 0
with open(filename) as fp:
lines = fp.readlines()
for line in lines:
gpu = re.search(r'GR3D_FREQ (.*?)%', line).group(1)
if int(gpu) > max_use:
max_use = float(gpu)
return max_use
print(gpu_workla... | [
"subratprasad.mail@gmail.com"
] | subratprasad.mail@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.