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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2e47250d4455487aa3c48caa7120fc5eb17fd01f | e7320b622bd969779d8b6ce836d045c9ede7570a | /librosonline/urls.py | a6521ed1f9488df8afbdfd3930af144acb7ef640 | [] | no_license | cmrcardozo/Djanjo10 | 337aea605adb4cf0177fd4e26e23f0b256fb5d68 | 72fe1447f672cff5f3433f63d148e77ddc6c2222 | refs/heads/master | 2020-03-26T19:42:19.922930 | 2018-08-19T07:40:22 | 2018-08-19T07:40:22 | 145,281,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | """librosonline 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-... | [
"carinakary@gmail.com"
] | carinakary@gmail.com |
ba1688de52c9aed52049beab16fcbf7d463add7d | a04296ba7b09f3a7b7540a14e8ef6fcf683ed392 | /common/mergelist.py | dac26a7dac26dd95d77cfed036796fb50f267e7f | [
"MIT"
] | permissive | Hasi-liu/FXTest | 0a3acf9d27d9f784f378fc9f9c13deb9e678adbe | 150012f87021b6b8204fd342c62538c10d8dfa85 | refs/heads/master | 2023-05-11T00:27:57.224448 | 2020-05-10T02:58:11 | 2020-05-10T02:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | """
@author: lileilei
@file: mergelist.py
@time: 2018/1/29 13:55
"""
"""
list的合并
"""
def hebinglist(list1:list):
new=[]
for m in list1:
for h in m:
new.append(h)
return new
def listmax(list2:list):
list_int=[]
for i in list2:
try:
list_int.append(float(i))
... | [
"leileili126@163.com"
] | leileili126@163.com |
e8a66deaca4a86cd89f40a33e293daf79a905ad0 | 117eeab22c41e0df7880783b7ad439ab66a6ff7d | /03/scripts/PDC_3.py | 6e73f91fdd1667dcb2d30de2a8ddbb8f877db8a3 | [] | no_license | simonwicky/TCP-Labs | 8242cedea16a3fbbc674910bde394398058e60b1 | 2e24fa80c54dc36837e33474d0a61511e370e120 | refs/heads/master | 2023-01-31T02:52:08.490641 | 2020-12-16T16:19:07 | 2020-12-16T16:19:07 | 296,391,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | import socket
import argparse
import time
parser = argparse.ArgumentParser()
parser.add_argument(
"server", help="the IPv4 address of the server or its domain name.",
)
parser.add_argument(
"port", type=int, help="server port number.",
)
results = parser.parse_args()
command = "RESET:20"
sock4 = socket.so... | [
"simon.wicky@epfl.ch"
] | simon.wicky@epfl.ch |
e717926882834c27f673abba8c1158814d61a0df | 623eeea962900d0df20645624b06878726f0b998 | /src/symbol_table.py | 4c812f514a37498f84795fcb2ddb98255f30c0e6 | [
"MIT"
] | permissive | raghavnautiyal/Dip | adc76fec9d7ad4d105843eb9a82c68aea9b27d0b | eb3c821d9659b20456aead7c73dddbb3a2c3ba75 | refs/heads/master | 2023-03-05T08:02:45.576873 | 2021-02-15T04:00:41 | 2021-02-15T04:00:41 | 261,346,772 | 63 | 2 | MIT | 2020-10-02T19:09:53 | 2020-05-05T02:46:56 | Python | UTF-8 | Python | false | false | 622 | py | from parser import *
from tokens import *
from nodes import *
from lexer import *
from data_types import *
from interpreter import *
from context import *
from runtime_result import *
from position import *
class SymbolTable:
def __init__(self, parent=None):
self.symbols = {}
self.parent = parent
... | [
"raghavnautiyal26@gmail.com"
] | raghavnautiyal26@gmail.com |
baf708e314909392f9b21a7438729f05ede2a3fe | bf3d5dd23f46091aa7b76eef97b394a9664193b8 | /FaceD.py | fb97ccc0007f19193b7ab154730788cdf4cb2610 | [] | no_license | DEV-AB-03/FaceRecognition-using-SVM-and-OpenCV | d717a1e939a2c8f48f7face4b5d6ec74ce6c166e | 1b46aebca36831d4eedfd06fc33334accd3e0cf8 | refs/heads/master | 2023-07-25T06:20:34.000461 | 2021-09-06T08:45:34 | 2021-09-06T08:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | import cv2
import numpy as np
import os
cam = cv2.VideoCapture(0)
cl = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
name = input("Enter your Name: ")
frames = []
outputs = []
while True:
ret, frame = cam.read()
if ret:
faces = cl.detectMultiScale(frame)
for x,y,w,h in faces:... | [
"vaiditpatel01@gmail.com"
] | vaiditpatel01@gmail.com |
5e66744ad4708e85441db3bb050153bb35222b9a | 8a013bce3506b5ca627de50f61b51a11ac48df05 | /finances/fm_qiankang/IC/IC_JRQ/IC_HouseLoanCnt.py | a2d21a7ff1f92fecf980aa67db6808d5ae830e65 | [] | no_license | bigdata234/prefect-python | b8e327b5bd94db31c3366ed45ab6e67c5b0f8dbd | b3b69367d20a41c3fbf3105b5ede2ee173544321 | refs/heads/master | 2020-03-16T14:24:27.796994 | 2018-08-10T10:23:48 | 2018-08-10T10:23:48 | 132,715,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# @Time : 2018/4/21 15:46
# @Author : Jiao Ruiqiang
# @Email : jiaoruiqiang@bbdservice.com
# @File : IC_HouseLoanCnt.py
# @Software: PyCharm
'''eof
name:个人购房贷款笔数
code:IC_HouseLoanCnt
tableName:
columnName:
groups:个人征信
dependencies:IC
type:常用指标
datasourceType:在线指标
description:
eof'''
... | [
"qindeqiang@bbdservice.com"
] | qindeqiang@bbdservice.com |
e2a354f7de78bb119094313ee9b25118e374ca6c | ba2d449486c58578581b8de7b2b6f21074be6274 | /02 Linked Lists/2-8-Loop-Detection.py | 6af5ea7f052ea96436e98812922ad1180e7fa7bb | [] | no_license | theoliao1998/Cracking-the-Coding-Interview | 4e0abef8659a0abf33e09ee78ce2f445f8b5d591 | 814b9163f68795238d17aad5b91327fbceadf49e | refs/heads/master | 2020-12-09T12:46:10.845579 | 2020-07-25T05:39:19 | 2020-07-25T05:39:19 | 233,306,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # Loop Detection: Given a circular linked list, implement an algorithm that returns the node at the
# beginning of the loop.
# DEFINITION
# Circular linked list: A (corrupt) linked list in which a node's next pointer points to an earlier node, so
# as to make a loop in the linked list.
# EXAMPLE
# Input: A -> B -> C ... | [
"theoliao1998@gmail.com"
] | theoliao1998@gmail.com |
334020818b42ba8d14977db789dc6055115ea242 | 9bb6883e170e822a011096a993c8efa9e6af290a | /venv/bin/django-admin | 8a9d97684661f3e6e6f0043d19524a2d89192669 | [] | no_license | alexandersilvera/Centro | ab4182d8334e16c97a0e91d4230f298b9135cd9f | 1562e210d0788cca8f13c02b504523355667a3fa | refs/heads/master | 2023-04-29T09:06:35.033052 | 2020-07-26T23:00:05 | 2020-07-26T23:00:05 | 224,926,832 | 0 | 0 | null | 2023-04-21T20:41:40 | 2019-11-29T21:54:44 | Python | UTF-8 | Python | false | false | 304 | #!/home/alexander/PycharmProjects/Centro/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"alexandersilvera@hotmail.com"
] | alexandersilvera@hotmail.com | |
eec679bc8e8a903c116e1c4a9cc0fcfed3bde0af | f38c30595023f4f272121576b9e62ed2adbed7de | /contact_list.py | 8c047db9d0fd3e5d8d18d73a7614d2fe2b25233d | [] | no_license | devArist/contact_app_project | f1f19ed2cb4a9261575e5f182e4dcb28ba44e082 | 81d1d639d2e7a362490397d334345ce24a154789 | refs/heads/main | 2023-07-12T22:49:19.816760 | 2021-08-30T15:56:44 | 2021-08-30T15:56:44 | 401,285,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from kivymd.uix.boxlayout import MDBoxLayout
from kivy.lang import Builder
Builder.load_file('contact_list.kv')
class ContactBoxLayout(MDBoxLayout):
pass | [
"aridev97@gmail.com"
] | aridev97@gmail.com |
238e5c216e8f2186525a25554986f4209c1d13f8 | f1aafebdef5195b3654d9df533de8b28278ce087 | /Metodos-de-encadenamiento.py | 6f7a31787b813b3cdb473aafe33515844ebea57e | [] | no_license | clauchile/poo-python | 57347684eb6d34868ba01d1c4de3f06fb605bd31 | 57e42ba5fe584799cd59b57e707b58f7a4b4c8b8 | refs/heads/master | 2023-06-05T12:34:33.316931 | 2021-06-30T03:32:28 | 2021-06-30T03:32:28 | 377,326,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | class Usuario:
def __init__(self,name,apellido):
self.name = name
self.apellido = apellido
self.account_balance = 0
def __str__(self):
return f"El nombre del Usario es: {self.name}"
def make_deposit(self, amount):
self.account_balance += amount
return se... | [
"clauchile@gmail.com"
] | clauchile@gmail.com |
f0457b814ef72bf357cd55551afddde24bb8f179 | 9cbc458ae2fa1f2be6eeb6fb4f4dfc49db464f1b | /financial/productgroup/migrations/0001_initial.py | 14fd26e06c60016d2d9401b4c4f5ffac79deec65 | [] | no_license | reykennethdmolina/projectfinsys | 45f8bd3248ad4b11c78cee6beefab040e6d58343 | a8604b9450b890e26b8f59f6acd76d64c415ccce | refs/heads/master | 2021-01-11T17:36:01.648840 | 2017-01-23T11:21:04 | 2017-01-23T11:21:04 | 79,797,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2017-01-17 06:07
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"reykennethdmolina@gmail.com"
] | reykennethdmolina@gmail.com |
957ff1653c85cfecd70d02ebd89f8eacdd44670d | edadb81a126c0e683143ccd3e672978486077670 | /tf_eager/models/alexnet.py | 065a1a9e328cc3ed86236b3a0c45698c6de9e265 | [
"MIT"
] | permissive | SimmonsZhang/imagenet | 8ea3c662a667a2b3bea57340d527624ea0e2b94b | 3aba6440fc59296676b56fe25e5b8cb79b4af61e | refs/heads/master | 2020-08-25T01:00:56.557792 | 2019-10-24T11:58:00 | 2019-10-24T11:58:00 | 216,938,512 | 0 | 0 | MIT | 2019-10-23T01:04:27 | 2019-10-23T01:04:26 | null | UTF-8 | Python | false | false | 2,660 | py | """
Written by Matteo Dunnhofer - 2017
Definition of AlexNet architecture
"""
import tensorflow as tf
import tensorflow.contrib.eager as tfe
class AlexNet(tfe.Network):
def __init__(self, cfg, training):
super(AlexNet, self).__init__()
self.cfg = cfg
self.training = training
# convolutional layers
con... | [
"matteo@orso.io"
] | matteo@orso.io |
c9e8030c514263ec296fa2e2a9458e304eb83d2d | 66b3bef39a9e9c4b3b1cfedb456ab40060a29bcf | /crawler.py | 939cf26873791fcb8819dc2bfb3e64723e7b3f67 | [] | no_license | MiniHanWang/NASDAQ-crawler | e9f45e85c3c793c12d65a6989bf8f8d3f0062388 | 79072e8db46d94015caf5020ee45f1918bfc1e88 | refs/heads/main | 2023-03-30T04:13:42.757793 | 2021-03-08T09:16:02 | 2021-03-08T09:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,396 | py | #@Time:3/8/20212:19 PM
#@Author: Mini(Wang Han)
#@Site:
#@File:crawler.py
'''
目标:获取https://www.cnyes.com/usastock/stocks/NASDAQ.html
NASDAQ 使用當日開盤價; High: 當日最高價; Low: 當日最低價; Close: 當日收盤價; 成交量(Volume), 調整後股價(Adjust);
'''
import urllib.request
from bs4 import BeautifulSoup
import pymysql.cursors
from selenium.... | [
"noreply@github.com"
] | MiniHanWang.noreply@github.com |
5acd280678c9ecc4c64d14ff1131b8accbebe375 | 68850abdd5061455db54865817292a3362b1b3c7 | /tests/test_feature_file_writer.py | c9e552763d085b6a9b259a102c33a5c7f2db6506 | [
"MIT"
] | permissive | finbourne/lusid-features-python | ae87964d36e96ffb2e03a9939365908e909dcde8 | 3a9843ddc14e732ca14b88b2aa679131c7511010 | refs/heads/master | 2023-06-02T18:17:07.723321 | 2021-06-16T12:58:33 | 2021-06-16T12:58:33 | 295,369,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import unittest
from lusidfeature.feature_extractor import extract_all_features_from_package
from lusidfeature.features_temp_file_manager import FeaturesTempFileManager
from lusidfeature.get_project_root import get_project_root
class FeatureFileWriterTests(unittest.TestCase):
def test_if_writer_writes_test_featu... | [
"noreply@github.com"
] | finbourne.noreply@github.com |
b26c45b8a0ae7b082b96599a14f020f230ee3eca | 8b16bd61c79113ff575def261e12f0e2125e4d90 | /browser/migrations/0004_search_history.py | 44305eecb73f1f97b11f14b0373386db7ecccd80 | [] | no_license | alvarantson/veebikaabits2.0 | 88f99e2fff8d0ef76daec3d3d3f4d6e19ed6d274 | 412d7d2fdc35582ba7210ea6108087a0d5ac9d7e | refs/heads/master | 2020-12-02T10:59:05.173248 | 2020-01-03T10:00:36 | 2020-01-03T10:00:36 | 230,990,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | # Generated by Django 2.1.3 on 2018-11-28 11:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('browser', '0003_blacklist'),
]
operations = [
migrations.CreateModel(
name='search_history',
fields=[
... | [
"alvarantson@gmail.com"
] | alvarantson@gmail.com |
9337e099bf9ff81091912bb90e98f59afe773fe5 | d7ca36f20465870e67e7d6832f8e1b8348af12fc | /test/test_linear.py | ca9b35b8ac8886a9b4d3721c6f3eb6f8eb94d575 | [] | no_license | hlcr/LanguageNetworkAnalysis | c109e670534367c782fb71697a92a3ca95aba098 | 65f6c8086f3e4282b15359cc99cf57a682e6b814 | refs/heads/master | 2020-04-24T07:40:04.100213 | 2020-04-17T09:02:05 | 2020-04-17T09:02:05 | 171,805,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | from sklearn import linear_model
import numpy as np
import matplotlib.pyplot as plt
# 线性回归
clf = linear_model.LinearRegression()
# 训练
np.array([1, 2, 3])
clf.fit(np.array([2, 4, 6]).reshape(-1,1), np.array([0, 2, 4]).reshape(-1,1))
# 表达式参数
a, b = clf.coef_, clf.intercept_
print(a)
print(b)
# # 画图
# # 1.真实的点
# plt.sca... | [
"hongliryan@gmail.com"
] | hongliryan@gmail.com |
fa20e34aa90e79b9cf2ffac2b89a7b02a0584f2b | edec9c09c097543df95ba3852eac7f871f88d511 | /utilities/yuml_script.py | ab5138820ddf4470fff29d20c9acced1c3f4c3a0 | [] | no_license | elevans/Python-Scripts | f3bc95a07283178418dea8b5f911922391854e4b | e16a077d6104229b7434e8783892cda49b6220bf | refs/heads/master | 2021-01-16T19:49:25.117925 | 2020-06-08T19:57:56 | 2020-06-08T19:57:56 | 100,188,653 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,673 | py | import os
# TODO: Make pre-loop variables global
def GenerateYumlMapFolderFile(path):
# pre-loop variables
excluded_folders = ['main', 'java', '.ipynb_checkpoints', 'json', 'src', 'resources']
excluded_files = ['.project', '.factorypath', '.classpath', '.envrc','pom.xml', '.mailmap', 'environment.yml', '... | [
"elevans2@wisc.edu"
] | elevans2@wisc.edu |
3fac1ab5ba74db726d6c882728732192f1436cb1 | d4ae54e561ae64285366279c420d86684e04aa37 | /setup.py | f671c6f47778ed291797d818bab3c340eb794abc | [] | no_license | GrayDevs/Python4Security | f4886e022e07339cedcd0a5c86eefb5db6e25993 | f118f1547e16ef285e5af770d51d97356bcb19d3 | refs/heads/master | 2022-11-06T02:27:12.902588 | 2020-06-21T08:50:05 | 2020-06-21T08:50:05 | 263,555,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from setuptools import setup, find_packages
setup(
name='python4Security',
version='2.1.11',
description='Searches through git repositories for high entropy strings, digging deep into commit history.',
url='https://github.com/GrayDevs/Python4Security',
authors='Zakaria DJAZARI, Antoine PINON',
... | [
"anpino@ttu.ee"
] | anpino@ttu.ee |
f8fd819578cdf0c4ba25044707bcb670940df771 | 954c28ccc46aa1f50dd67e35a468321a8592bcf6 | /client/verta/verta/deployment/__init__.py | 21d01d9d293f8b5ad1c9326a7a2f59074b0cefa9 | [
"Apache-2.0"
] | permissive | takeo91/modeldb | b697604da5d396628c1da5b32905bc09fd97f8e6 | 696e9d62157a5dfbd5db28d149b135d34479d154 | refs/heads/master | 2022-11-23T14:56:25.048959 | 2020-07-24T23:38:56 | 2020-07-24T23:38:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # -*- coding: utf-8 -*-
from .deployedmodel import (
DeployedModel,
prediction_input_unpack,
prediction_io_cleanup,
)
| [
"noreply@github.com"
] | takeo91.noreply@github.com |
41a80caf90f70b43ffaf80ca74feb0b2d953f1af | c89e74b8ff66f9dbbadd2a683e0b50b7637edd46 | /src/datasets.py | 9558c69280ab2e46872718c3d97fb458e1fece1f | [] | no_license | mbran142/trump_tweet_generator | 37ebd390c6c1d4ba8f8df24383e745fc3e207068 | 3beafb8178d937c155d6ea515e80700eefff8511 | refs/heads/main | 2023-03-31T13:38:36.199177 | 2021-04-09T22:23:58 | 2021-04-09T22:23:58 | 325,672,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | import torch
import json
from torch.utils.data import Dataset, Subset
import numpy as np
import os
# dataset class. Used to obtain total dataset at each epoch of training.
class tweet_dataset(Dataset):
def __init__(self, tweet_list):
self.data = tweet_list
def __len__(self):
... | [
"mbran142@gmail.com"
] | mbran142@gmail.com |
7f559d2862ef1e3f93bcde50464d07a9767ac80e | 3d88748960deb31c674525df2bd9d79ba1d2db1a | /pythonlib/bin/pyfftr | 4127562195c91f40b757688d14d9e521c09d2ba6 | [
"BSD-2-Clause"
] | permissive | johnkerl/scripts-math | 1a0eb6ce86fd09d593c82540638252af5036c535 | cb29e52fec10dd00b33c3a697dec0267a87ab8bb | refs/heads/main | 2022-01-31T17:46:05.002494 | 2022-01-17T20:40:31 | 2022-01-17T20:40:31 | 13,338,494 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,546 | #!/usr/bin/python -Wall
# ----------------------------------------------------------------
# John Kerl
# kerl.john.r@gmail.com
# 2006-03-20
# (Ported to Python 2006-03-06)
#
# This is a radix-2 fast Fourier transform. Example:
#
# xxx cmts re real-to-complex transform; numerical recipes
# ----------------------------... | [
"kerl.john.r@gmail.com"
] | kerl.john.r@gmail.com | |
967b9b7a488621c301d0a13a06ac329ee1c59a89 | 3de732d6807286a0b9175b21f7c468482d5f656a | /nmr_analysis/nmran/dataio.py | 112f13cad9ac6debea7d3cd2beeede6f5db1da08 | [] | no_license | serjinio/python_tutors | bfc94c22ddf4f2bb93d94a4f28c0287dafe1f9eb | ee3919d24c2e7073c35491a1dfb00edea20af4be | refs/heads/master | 2021-01-17T10:32:31.194560 | 2016-04-20T12:36:56 | 2016-04-20T12:36:56 | 24,996,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """
Module with read & write procedures for datasets.
"""
import os
import pandas as pd
import numpy as np
import logging
import common
KNOWN_FORMATS = ['.smd', '.dat']
def loaddir(path):
"""Loads all known file formats in the specfied directory. """
files = listdir(path)
dataobjs = {}
logging.de... | [
"sergey.sergeyevich@gmail.com"
] | sergey.sergeyevich@gmail.com |
0b4c45ac94af4811b5d7aa498bdbb91498487d6e | 63c5d6d9a3a224a2668ea5cf7ed22024d4352057 | /Lab1/Task1/calculator.py | 85a8677a79ea296bc79a26a8c3ea1196b04d5bf4 | [] | no_license | ianlaiky/SITUniPython1002 | 973ff72a7b0e3eaaa0f6760a19524e5bf0b7d725 | 1245ea6a9213208594bce9ab8aead72212174303 | refs/heads/master | 2020-04-16T17:07:17.366569 | 2019-04-05T11:03:58 | 2019-04-05T11:03:58 | 165,763,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import sys
error = False
avg = float(0.0)
a = 0.0
b = 0.0
c = 0.0
try:
a = float(sys.argv[1])
b = float(sys.argv[2])
c = float(sys.argv[3])
except ValueError:
error = True
print "Your input is invalid!"
if not error:
avg = (float(a) + b + c) / 3
print "Average:%.2f" % avg
| [
"152772a@mymail.nyp.edu.sg"
] | 152772a@mymail.nyp.edu.sg |
55be3d9790defafee827f8d11c0671d535c13396 | 302f142abcb9cd8cc9a6f87cda1a3580cce8ad21 | /.env/lib/python3.6/site-packages/pygments/lexers/unicon.py | c27b7fe0cf8f2b46b226365542c31220719cf12e | [
"Apache-2.0"
] | permissive | Najafova/hls4ml_test | 7229a85d5759eac4b177a47f9af7c6b4899dd006 | 21f9951b3f0ca88cc2312a8863977c1477b9233e | refs/heads/master | 2023-01-19T15:11:18.861261 | 2020-11-22T17:17:51 | 2020-11-22T17:17:51 | 289,086,269 | 0 | 0 | Apache-2.0 | 2020-11-22T17:17:52 | 2020-08-20T18:59:09 | Python | UTF-8 | Python | false | false | 17,817 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.unicon
~~~~~~~~~~~~~~~~~~~~~~
Lexers for the Icon and Unicon languages, including ucode VM.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, ... | [
"gulnarnecefova1996@gmail.com"
] | gulnarnecefova1996@gmail.com |
4dba97d9673dcdda5542db94d65b9043335784e1 | e7ad0a29b006bae9bd39818631b1ceb27e617783 | /contrib/bitrpc/bitrpc.py | 103bc5694bcaf577208d8ded734bb626c6bdfacc | [
"MIT"
] | permissive | underline-project/underline-master | 5526d69b6481b1426237df020ff002d013cf9395 | 922cdcd36f3bb41bf645cbba5a393d5bd6e10ac4 | refs/heads/master | 2021-04-03T05:07:13.771086 | 2018-03-11T16:40:58 | 2018-03-11T16:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,840 | py | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:2332")
else:
access = Ser... | [
"xmrpoolmine@gmail.com"
] | xmrpoolmine@gmail.com |
9886045608f2213f99a41a0af0b8b79aa8486538 | 69a4db25d9f7d4e67cf2bcfe005e5cba9915180a | /examprep.py | 4eae0ad01d13431e655ff277605755e813e07ef2 | [] | no_license | riley-csp-2019-20/final-exam-semester-1-taylor77205 | ca3211a606819eab48d118bb6e5dc08dcf190b9c | ee37ca47c1090b8a23a6d3ed01448ed1494d9183 | refs/heads/master | 2020-11-25T12:22:28.536638 | 2019-12-19T16:39:33 | 2019-12-19T16:39:33 | 228,657,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | import turtle as trtl
shape = "arrow"
player = trtl.Turtle(shape = shape)
player.speed(0)
player.penup()
shape = "circle"
circle = trtl.Turtle(shape = shape)
circle.penup()
def up():
player.setheading(90)
player.forward(10)
circle.setheading(90)
circle.forward(10)
def down(... | [
"noreply@github.com"
] | riley-csp-2019-20.noreply@github.com |
46b00cb0f15c6822be74df51275fb2d9ba9d9311 | bf50a0d18521c904aa5f069cac7f16416b6dd93a | /DeSpeelhal-dag.py | 7498a057e6d1b9236f498875bf1e942780067f96 | [] | no_license | Alexcode100/van-input-naar-output | a5fbf792ae0d777f07369b3aaeea1bddb008a407 | 11e61dad4e512f1c2d58b79cd8955e57458082d5 | refs/heads/main | 2023-08-08T03:54:12.382141 | 2021-09-27T08:06:55 | 2021-09-27T08:06:55 | 404,743,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | toeganskaartjes = 7.45*3
VIPVR = (45/5)*0.37
answer = (toeganskaartjes + VIPVR)
print("Dit geweldige dagje-uit met 4 mensen in de Speelhal met 45 minuten VR kost je maar" + str(answer))
| [
"89846069+Alexcode100@users.noreply.github.com"
] | 89846069+Alexcode100@users.noreply.github.com |
38837fa30d68450ab5537a582f3c8dded81d532b | f4017c78dbf2c134eb32ebd6c9e787c7fa0bc2d5 | /07_django/base_prj/sns/urls.py | 531b75db595ae02d451805a5d20830b51f4aaf86 | [] | no_license | raccooncho/TIL-1 | 394a156935dbc7528ee4cf990db6a61f6a377cdb | f757178136bfafbc704b15d2891cec0302b33b2f | refs/heads/master | 2020-04-22T19:40:14.393893 | 2019-02-11T09:00:11 | 2019-02-11T09:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | from django.urls import path
from . import views
app_name = 'sns'
urlpatterns = [
path('', views.posting_list, name='posting_list'),
path('<int:posting_id>/', views.posting_detail, name='posting_detail'),
path('new/', views.create_posting, name='create_posting'),
path('<int:posting_id>/edit/', views.e... | [
"srs99125@naver.com"
] | srs99125@naver.com |
9421c7c230bd5255857e0c1b374614d0eb3f2649 | c4567902c0142f0b5cbf13c12d5ac6825af4d0af | /experiments/experiment.py | df46428889b8f5f95476c1a9414edfa048103358 | [] | no_license | jlwalke2/deep-reinforcement-learning | ec945334261b01de4eb03eb958883d6e00067e4e | 74ca4316fc995528409589fe5114e26e1f244543 | refs/heads/master | 2021-01-16T18:22:49.025946 | 2018-07-10T18:20:08 | 2018-07-10T18:20:08 | 100,067,311 | 0 | 0 | null | 2018-07-10T18:20:09 | 2017-08-11T20:18:24 | Python | UTF-8 | Python | false | false | 4,113 | py | from deeprl.utils.async import ModelManager
import multiprocessing
import os, os.path
from warnings import warn
from deeprl.utils import History
import logging, logging.handlers
import pickle
import matplotlib.pyplot as plt
def _run_agent(func, agent, queue):
# Get the root logger in the agent's process
logge... | [
"jlwalker@inbox.com"
] | jlwalker@inbox.com |
2ddcbebaa4ee0eaa393fdb136aa5b664b5bac984 | d52e51f473bf4eb62956cebdccd956ac4df6cccd | /Python_Part6/converters.py | 7cb6f915dab1bdbd54aa7b7205259a6f1e795f81 | [] | no_license | Tduderocks/PracticeProblems | 74ccafd50e6900a6ae138bb6c4d758735ee452e1 | eca1be589df9e513e4e0a6121245f4e8c9a3c214 | refs/heads/master | 2022-11-18T06:59:17.323121 | 2020-07-18T02:39:09 | 2020-07-18T02:39:09 | 265,915,337 | 0 | 1 | null | 2020-07-18T02:39:10 | 2020-05-21T17:51:11 | C++ | UTF-8 | Python | false | false | 227 | py | from streams import Processor
class Uppercase(Processor):
def converter(self, data):
return data.upper()
if __name__=="__main__":
import sys
obj = Uppercase(open('trispam.txt'), sys.stdout)
obj.process() | [
"theresashields8@gmail.com"
] | theresashields8@gmail.com |
42a948dbd46123b3c3dd592eb6d4fe160f02fae2 | 16e7f0588f0ac9f3f9c7e1272c82478ecbb14293 | /manage.py | 4f86d73217766ec133f68abda873a839feedd5db | [] | no_license | deena09/listOfBooks | 8ffc90edaa79b156487c7aac7258a7f326094f7b | 8cc692f83fe796b9290893a0aa6ba5c7b983f758 | refs/heads/master | 2020-07-28T23:35:04.756290 | 2014-03-31T08:38:14 | 2014-03-31T08:38:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "listOfBooks.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"krocozabr@gmail.com"
] | krocozabr@gmail.com |
338783eada3f8db553ed010a6cffd666dbb8ac77 | 4d95b102cea659cb24a58165a16238ce639dfd70 | /backend.py | a698433cac0b1f38624f89ea006564cf9d0c1dd5 | [] | no_license | apurv100/library-app- | 63f2eddeb9687cc60f78c2be8d105236de4554ae | 92516f3c003105feab43c7311b520eb217d3beba | refs/heads/master | 2022-11-22T03:49:12.046378 | 2020-07-22T07:48:02 | 2020-07-22T07:48:02 | 281,609,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import sqlite3
def connect():
conn=sqlite3.connect("books.db")
cur=conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS book (id INTEGER PRIMARY KEY , title text, author text, year integer, isbn intrger)")
conn.commit()
conn.close()
def insert(title,author,year,isbn):
conn=sqlite3.c... | [
"noreply@github.com"
] | apurv100.noreply@github.com |
b7dc54b2539acc9351aa7b5e664d819614a5d304 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/debug/lib/profiling.py | 1d60d22ff7008d67f2fdc68c9e659f0c0474b8a5 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 181 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/debug/lib/profiling.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
377bae42543144719de068e821985cbb2ae30779 | bfc0f551b5a58a7ca84cb0e69290a39f3b944d10 | /as/as/urls.py | 88bdc54f6daeabc279d79b9a5daeee84081fba0d | [] | no_license | saraswati789/skk | 07f8fc01c5dd6946205b4d4f4b4fe4fa23819756 | 8fb9c9651e1a987fc88e4e949bf7989bfd0f8161 | refs/heads/master | 2021-04-15T15:36:26.283994 | 2018-03-28T16:56:28 | 2018-03-28T16:56:28 | 126,667,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """as URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"noreply@github.com"
] | saraswati789.noreply@github.com |
250c628eb53cff177552f32732050b5b6bfc9d05 | 68e4826da5a714abb2c71b214db27ad6286acff1 | /ml_12_nlp/src/train.py | ca7399d1624364d18a6d6c8ddb4555be79987d93 | [] | no_license | danhphan/ApMLPs | ce3162c83d3c64a57a8f35e16caf4a9891e3f0ff | cf4f26ce5081b63827453f72e2d0339e27774f35 | refs/heads/main | 2023-03-16T01:43:41.227199 | 2021-03-05T07:44:11 | 2021-03-05T07:44:11 | 338,702,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | import io
import numpy as np
import pandas as pd
import torch
from torch.utils.data import DataLoader
import tensorflow as tf
from sklearn import metrics
import config, dataset, engine, lstm
def load_vectors(fname):
# Taken from: fasttext.cc/docs/en/english-vectors.html
fin = io.open(fname, 'r', encoding='utf... | [
"danh.phan.mq@gmail.com"
] | danh.phan.mq@gmail.com |
ffef5fe55cc0e74428eb17f91e5360d2181dec9f | 6016473a1b3ca2398d7418fa39d04f3c86903b90 | /color_distillation/utils/draw_curve.py | fe38e220631b6d196db630d87fd072a3136d911a | [] | no_license | isaak4/color_distillation_inference_example | ac9e23dcb3f95f85773c5c803447d029f5da227d | 829b03ce5848186f6a060106466c65b30eadb6d9 | refs/heads/main | 2023-06-15T10:45:06.857371 | 2021-07-02T11:32:02 | 2021-07-02T11:32:02 | 382,314,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import matplotlib.pyplot as plt
def draw_curve(path, x_epoch, train_loss, train_prec, og_test_loss, og_test_prec,
masked_test_loss=None, masked_test_prec=None, prec_labels=['train', 'test (og)', 'test (masked)'],
loss_labels=None):
fig = plt.figure()
ax0 = fig.add_subplot(121, ti... | [
"39300121+isaak4@users.noreply.github.com"
] | 39300121+isaak4@users.noreply.github.com |
8dc206ecc05711beff9e20fc9c645ee81ed652dd | 1abcd4686acf314a044a533d2a541e83da835af7 | /backjoon_level_python/1701.py | 4112638d3382c51244a90f87bed9c9d769c2e387 | [] | no_license | HoYoung1/backjoon-Level | 166061b2801514b697c9ec9013db883929bec77e | f8e49c8d2552f6d62be5fb904c3d6548065c7cb2 | refs/heads/master | 2022-05-01T05:17:11.305204 | 2022-04-30T06:01:45 | 2022-04-30T06:01:45 | 145,084,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | def get_failure_array(text):
failure = [0] * len(text)
j = 0
for i in range(1, len(text)):
while j > 0 and text[i] != text[j]:
j = failure[j - 1]
if text[i] == text[j]:
failure[i] = j + 1
j += 1
return failure
def solve(input_text):
max_value = ... | [
"empire1641@gmail.com"
] | empire1641@gmail.com |
0266fc2e290229ee4fb5b79ceec76bc0a22a0e42 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902TG/128-tideGauge.py | a22e221a52b78d90b03e7e76dfe5eb0acc6f5054 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
MERRAv2 netCDF extraction script - template
To create an extraction script for each tide gauge
@author: Michael Tadesse
"""
import os
import pandas as pd
from d_merra_define_grid import Coordinate, findPixels, findindx
from c_merra_read_netcdf import r... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
2447183c7ac3209683adb61de74f7f5c95cdd11f | dfa4f521a5aa0f828421dfc1fce6f568bad36b24 | /Piscine/02/ex04/first_child.py | 6703931c249b0b1c200421c799a75cfd1c6e38d2 | [] | no_license | 1337hunter/42Datascience | f467980fad23f3ea9222bfc5a98f56d9fcac5f0a | 5689426a64162b2e870b6c11a51a66ea84a631fb | refs/heads/main | 2023-06-09T10:54:20.528186 | 2021-06-30T15:31:28 | 2021-06-30T15:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | import sys
from random import randint
class Research:
class Calculations:
def __init__(self, data):
self.data = data
def counts(self):
heads = 0
tails = 0
for peace in self.data:
heads += peace[0]
tails += peace[1]
... | [
"ant.sergy@gmail.com"
] | ant.sergy@gmail.com |
571e4ffadec73e14c60280b824a93bdd21068930 | 23b280daf002610f05bc59bc09e24ce2c41594d5 | /Chapter 4/4_1_Pizzas.py | 12852e849a1d6e686934e19a1b9e473cd37c84b9 | [] | no_license | juliannepeeling/class-work | d4dfb0bc12989b31f91db975fcba0a48558c25c1 | b7114d9096fff380d1b2cfac6352df2ea1cf51de | refs/heads/master | 2020-04-10T03:41:54.128023 | 2018-12-07T06:04:06 | 2018-12-07T06:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | pizzas = ['margherita', 'mushroom', 'spinach']
for pizza in pizzas:
print(pizza)
for pizza in pizzas:
print("I like " + pizza + " pizza.")
print("I like pizza a lot." + "\nIn fact, I like it so much I have to avoid it." + "\nPizza is addictive.") | [
"jdpeeling@Juliannes-MacBook-Pro.local"
] | jdpeeling@Juliannes-MacBook-Pro.local |
b2b236a9c1db58d83bed685b97be121cf5684d1c | 11fe289ef112dba477399034458b7bdec061098f | /Avocados/Train_avocado.py | 1abc89fa9c431211be2297076e010f937b2aab77 | [] | no_license | HSIYJND/CSCI547_HSIProject | 34399c936d374f8e931b4858c33c536466d69bf1 | 63eb7c7a444290e548f6d1ee8f06f0e3fe72a383 | refs/heads/master | 2022-11-16T15:45:25.451851 | 2020-07-14T08:54:00 | 2020-07-14T08:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,985 | py | from keras.callbacks import ModelCheckpoint
# from keras.optimizers import Adam
from sklearn.model_selection import StratifiedKFold
import numpy as np
from operator import truediv
import h5py
import cv2
from sklearn.metrics import precision_recall_fscore_support, accuracy_score, cohen_kappa_score, confusion_matrix
impo... | [
"giorgiomoralesluna@gmail.com"
] | giorgiomoralesluna@gmail.com |
24456658a8e458ffa2be70f0c0307983658f39e6 | e1a97361711186574b44de6373f44cd3be59203e | /code/model/GATest.py | 3e546a1f33a089a506cc1c6f4f0b397bb69ac6e1 | [] | no_license | wawltor/Preudential | ba6e7673b4cf850f8a1d238b56ff94ae6730f8fe | 942d75265ca434bd926a858916b56787e192addf | refs/heads/master | 2021-01-10T01:39:49.683178 | 2016-03-06T02:19:41 | 2016-03-06T02:19:41 | 53,233,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,374 | py | import numpy as np
import pandas as pd
from sklearn.preprocessing import LabelEncoder, StandardScaler
from scipy.optimize import minimize
from ml_metrics import *
from utils import *
def MungeData(train, test):
le = LabelEncoder()
train.Product_Info_2.fillna('Z0', inplace=True)
test.Product_Info_2.fillna('... | [
"980627148@qq.com"
] | 980627148@qq.com |
1c7839058256268dba6c645505924064d175cd11 | 713fc732a037447897092722647e28cb7a9711a8 | /manage.py | 2bab7faec9fd6bbfa9821bc1234c21c80064773a | [] | no_license | jkachhadia/StatsBoy | 9612eec07b44cf34f76c63eddbb085daa7869640 | ad9bb1f921dcb4c74b1ba842b015445c1e0abe33 | refs/heads/master | 2021-01-18T00:46:20.848151 | 2016-07-26T22:09:10 | 2016-07-26T22:09:10 | 64,026,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import os
from app import create_app,db
from app.models import User, Role
from flask.ext.script import Manager,Shell
from flask.ext.migrate import Migrate, MigrateCommand
app=create_app(os.getenv('BLOGPOLE_CONFIG') or 'default')
manager=Manager(app)
migrate=Migrate(app,db)
def make_shell_context():
return dict(ap... | [
"jaykachhadia@hotmail.com"
] | jaykachhadia@hotmail.com |
2389bb8407f091ab646d6bfd9d0808422f80767c | 9abba9c3f3df3a79abcf437ae164387bbe70304c | /nb_author_id.py | 652771b5ff51260f9c72a339f56030987aad5e04 | [] | no_license | Amanchouhan192/MachineLearningProject1 | da3aecfdecffe35285ebe668f32c2f757b732bfd | 44f0ddf85207a652a9e2ac76338f4ed92adb9d95 | refs/heads/master | 2021-05-09T05:01:24.251888 | 2018-02-02T21:51:02 | 2018-02-02T21:51:02 | 119,297,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | #!/usr/bin/python
"""
This is the code to accompany the Lesson 1 (Naive Bayes) mini-project.
Use a Naive Bayes Classifier to identify emails by their authors
authors and labels:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../to... | [
"noreply@github.com"
] | Amanchouhan192.noreply@github.com |
30723c2e851a6064831ceee31779a2e0923f132d | 8de2a78facbdedb033e349692c71e33ce6f47315 | /string_format.py | bda55de3713cf8d1cf8a87976aba26d564aa51b8 | [] | no_license | KshitjMaheshwari/python38-GLA | 230e4ce96c4416bbc7b11477772a827ee0d62a46 | 4d29d377ab38f75510f995293f62b7c59229423b | refs/heads/master | 2022-04-17T05:17:15.205216 | 2020-02-18T19:21:18 | 2020-02-18T19:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | '''
str.format() is one of the string formatting methods in Python3,
which allows multiple substitutions and value formatting.
This method lets us concatenate elements within a string through positional formatting.
'''
a = 10
b = 30
c = a + b
temp = 'result is %d of %d and %d'
f = temp % (c, a, b)
print(f)
# t... | [
"amirkhan1092@gmail.com"
] | amirkhan1092@gmail.com |
bc33f82575efbebdfbe5f39f868ecd13e3a38d05 | 835886390ff946a32ce34f09da8f37830e3f8991 | /pipeline/welddettection/computervision/linedetection.py | 7bd9e1da571e3ab8b070d08da6559c21be80305e | [] | no_license | sauravag/marpi16 | 7180921885969258b8694838d0e6cd433078c088 | f58f9b481778ad401e34e76afaaad081c85f8090 | refs/heads/master | 2021-01-12T17:07:27.707233 | 2017-01-16T16:10:36 | 2017-01-16T16:10:36 | 71,513,518 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
import sys
import os
def line_detect(filepath):
print filepath
#Read the input image
# Input: image as .jpg
img = cv2.imread(filepath)
# make a copy of the image
# Input 1: image
# Input 2: top border width in number of pixels
... | [
"eliseth@tamu.edu"
] | eliseth@tamu.edu |
58c2eabab1455d6a5cabb4a86e37fce6b704531b | b1c7e19d412ee049a60da0fe3fdf3da19ea4afa9 | /gipsyClasses/Ui_regrid.py | 82c7a1651475b20ad8639fa18ba604a00eeb6104 | [] | no_license | susanasanchez/GUIPSY | 01af8f285fe86c07a3cb5f3d440f1ed34d0fb67a | 710abf18f312381a4903ec0d6ab9c0bb601a0050 | refs/heads/master | 2016-09-05T21:21:24.003911 | 2015-03-04T13:29:11 | 2015-03-04T13:29:11 | 9,743,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,636 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'regrid.ui'
#
# Created: Wed Jun 1 13:15:38 2011
# by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_regrid(object):
def setupUi(self, regrid):
... | [
"susanasanche@gmail.com"
] | susanasanche@gmail.com |
536b321d0b17e7122c19e06557caddcc1526eadb | 1bd0f1d2a83c8ff477f11e5b5e733857a4843110 | /news/BD.py | 03db7d3cb893191c47c86e586217e494b79d1e53 | [] | no_license | Kashyap10/NewsScrapping | 1034ab3c4b33682e22c8e0b13f89393a65bb1a6f | d099532920735f4283a35b63b60c257c5c464b89 | refs/heads/master | 2023-01-07T00:37:57.329450 | 2020-10-28T06:53:18 | 2020-10-28T06:53:18 | 299,408,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,855 | py | from os import path
import sys
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import datetime
from helper import Helper
import requests
from bs4 import BeautifulSoup
from crawler import *
from DbOps import DbOperations,QueryType
import hashlib
import logging
import urllib3
urllib3.disable_warnings... | [
"kashyap.rathod@vinculumgroup.com"
] | kashyap.rathod@vinculumgroup.com |
9fff28963650cf8d535041789a1b98c4bb5fc753 | 2d68ea9ea5311748254d2d4c3ba84da82b3171a1 | /mysite/settings.py | 3a978f09c5cd9fd39efbcdb7bb6916a2633be1d3 | [] | no_license | pm-3/mon-nouveau-blog | 4b8c6bb6bec7687f7e8a63db1c08050cc74c31b6 | a3f1d6ce15dd89a94f31345621f8ef4a9787dcc1 | refs/heads/master | 2022-06-11T16:02:54.347311 | 2020-05-09T15:36:37 | 2020-05-09T15:36:37 | 262,520,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"tp@gmail.com"
] | tp@gmail.com |
4dc29beff3a9cfeca71bdc1ab509235639e7ed7c | bc7ff82c5f86dace3a0ee5def97c95154ba8ae4e | /StreamlitDemo/summarizer.py | 27b2a4a3e3b0c8c9d0771ee33288f18f0efa1c0d | [] | no_license | peterson1999/AbstractGenerator | 9c1dff9f2c5dfe6ca7014eb3e5ec2b260e269b00 | d71ba19a4c9583880627edd337f04f8d3662577d | refs/heads/main | 2023-05-28T10:22:47.082386 | 2021-06-10T04:08:43 | 2021-06-10T04:08:43 | 368,217,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | from transformers import PegasusForConditionalGeneration, PegasusTokenizer
import torch
from summa import keywords,summarizer
from sentence_splitter import SentenceSplitter, split_text_into_sentences
import numpy as np
class Summarizer:
model_name = 'tuner007/pegasus_paraphrase'
torch_device = 'cuda' if torch... | [
"51360811+peterson1999@users.noreply.github.com"
] | 51360811+peterson1999@users.noreply.github.com |
e2e25e295253bb7104fd7c529de8684d9f0f5e42 | 74a0c77fed1c2815fb57c86657334a39044d9e35 | /draw-matches.py | 7329578bf781f1a0ef9dfca6db00672a822f58d5 | [] | no_license | alexkhrystoforov/3d-reconstruction | f17822db96c9b37a2924d1301fb313ce5de7c5b2 | 44614fd62179ecee148eeee33ad9836bf7280c1c | refs/heads/main | 2023-01-29T20:37:54.071759 | 2020-12-11T16:44:06 | 2020-12-11T16:44:06 | 320,629,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | import cv2
import numpy as np
class Matcher:
def __init__(self, algorithm, img0, img1):
self.algorithm = algorithm
self.kp1, self.des1 = algorithm.detectAndCompute(img0, None)
self.kp2, self.des2 = algorithm.detectAndCompute(img1, None)
self.norm_hamming = cv2.NORM_HAMMING2
... | [
"noreply@github.com"
] | alexkhrystoforov.noreply@github.com |
c5025700fd6858b320117ab2a06db5014ae2496a | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /python/022_Objective.py | 8b3d80fef29ab63035d097dd75d51e71daa5b828 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | #可以通过类名访问其属性
#类对象支持两种操作==>属性引用(obj.name)和实例化
#将对象创建为有初始状态的,定义一个名为__init__()的特殊方法(自动调用,构造方法)
#使用def关键字可以为类定义一个方法,类方法必须包含参数self,且为第一个参数
#支持类的继承,圆括号中基类的顺序,若是基类中有相同的方法名,从左到右查找基类中是否包含方法
#两个下划线开头声明该属和方法为私有,不能在类地外部被使用或直接访问
class people:
name = ""
age = 0
__weight = 0#私有属性,在类外部无法直接进行访问
def __init__(self, name,... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
563296302dbd9a726b0a6847c0d8a46d8ecf273c | 1e18eb6d58dd66cf4d9a8933b80d9dd6c5359c71 | /HELLOPYTHON/team1_api_email/common.py | 5606e9f62a14f57237597da9025a141384190352 | [] | no_license | YeogangLee/python | 3d1ca9e5724e9281965282f40d908b86b1c0b7d6 | a94cd540eb2b6ff9ec3cac9e46a73fcc6bbe1c72 | refs/heads/master | 2023-06-20T06:30:55.561942 | 2021-07-19T09:40:39 | 2021-07-19T09:40:39 | 381,004,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import os
import pickle
# Gmail API utils
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# Request all access (permission to read/send/receive emails, manage the inbox, and more)
SCOPES = ['https://mail.google.com/']... | [
"coffee357722@gmail.com"
] | coffee357722@gmail.com |
4ad8fd01c03a6ae1a29510b7ddaba5625e4d100c | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v6/nunetworkperformancebinding.py | 0c35e1c30289cec4db7f7ef8fd9e2d6a7936ffec | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 12,223 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
85e07113f27abb67535f11386589b525a89bcc03 | 85c499ad1daca3d9f40c4ab19fdef36622722393 | /ControlFarmacia2/Aplicaciones/clientes/migrations/0002_auto_20180520_1241.py | 7bef073168b3878c7b44c8402f4d513435b08348 | [] | no_license | eriksuarezsoto/controlinventario2 | 06247c6232ad7535b67d12e30cffce5c94991459 | 1d7fc1becbad0e347a0b1d8165f99f260bbff6dc | refs/heads/master | 2020-03-18T04:41:05.275094 | 2018-05-21T17:08:54 | 2018-05-21T17:08:54 | 134,300,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | # Generated by Django 2.0.4 on 2018-05-20 16:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('clientes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Clientes2',
... | [
"eriksuarezdjango@gmail.com"
] | eriksuarezdjango@gmail.com |
a43c61533385eb8038e78345c245682f7be310b5 | 02ea81644b2d68a08e2f33392a9e158f425a498b | /run.py | 8a4995e7f50094bed891fbee4dbdf3da0a6dcb55 | [] | no_license | BillyMan00/EA_ST | 58c53f9165139df19c29d64a3dd529bb6f9e8dad | 9c92399f02262a8439573141cfc62e9381c6dc50 | refs/heads/main | 2023-04-24T07:31:51.225031 | 2021-05-12T09:10:29 | 2021-05-12T09:10:29 | 366,655,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | import os
from app import app, fask_sqlachemy
if __name__ == '__main__':
app().run()
app.run(host='0.0.0.0', port=5000, debug=True) | [
"ec2-user@ip-172-31-20-5.ec2.internal"
] | ec2-user@ip-172-31-20-5.ec2.internal |
3d635f23f15d180a8acda2ef07e91f7f9fb3984e | 9818262abff066b528a4c24333f40bdbe0ae9e21 | /Day 60/TheBomberMan.py | 46f6d9fdaed89da0f250aff715ff45b108c9a598 | [
"MIT"
] | permissive | skdonepudi/100DaysOfCode | 749f62eef5826cb2ec2a9ab890fa23e784072703 | af4594fb6933e4281d298fa921311ccc07295a7c | refs/heads/master | 2023-02-01T08:51:33.074538 | 2020-12-20T14:02:36 | 2020-12-20T14:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | ''''
Bomberman lives in a rectangular grid. Each cell in the grid either contains a bomb or nothing at all.
Each bomb can be planted in any cell of the grid but once planted, it will detonate after exactly 3 seconds. Once a bomb detonates, it's destroyed — along with anything in its four neighboring cells. This means... | [
"sandeepiiitn@gmail.com"
] | sandeepiiitn@gmail.com |
6773f61b800ed243653848153717040551b46c5c | 56789f51d1feb757171b151b56c59143e74c6fe1 | /projects/examples/dragon_button_relay_push_only/pinButton.py | f0fc6e7fb8a5a84c6121ba1877377927a1833a31 | [] | no_license | aid402/micropython_project | 235926120e8a78033572386b9407a5eb6e7f473e | 9111398492f0cf511da8e6f83b34d8e4e4f90278 | refs/heads/master | 2020-07-21T10:29:16.935739 | 2018-11-02T22:07:14 | 2018-11-02T22:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py |
from machine import Pin
import time
import relay
class PinButton:
'''
B
'''
# init
def __init__(self, pinNum, Pull, debug=False, relay_control=None):
self._pin = Pin(pinNum, Pin.IN, Pull )
self.debug = debug
self.status = 0
self.value = None
self._value... | [
"vostraga@gmail.com"
] | vostraga@gmail.com |
85d0e15806dc792d31a9296899a3bdbc2c0db268 | 0f8909782b5150783b738df3875c91509a92a33b | /scena/c0450.bin.py | 94d0262c76e9b95ffec8999949ad301746850f0a | [] | no_license | uyjulian/ao_text | e40cd982bcdd5ea9ffd6f0f2e97ce9b92749b63a | 5cc5468aeb64fa97935f334a627357ec10e22307 | refs/heads/master | 2021-06-26T21:43:07.489898 | 2017-07-05T16:55:01 | 2017-07-05T16:55:01 | 96,562,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139,980 | py | from ScenarioHelper import *
def main():
CreateScenaFile(
"c0450.bin", # FileName
"c0450", # MapName
"c0450", # Location
0x0024, # MapIndex
"ed7113",
0x00002000, # Flag... | [
"uyjulian@gmail.com"
] | uyjulian@gmail.com |
a293a4c0f1bef50f86231c141441a29c0ea77f66 | b51fcaacf7a43cfc4e378b27090c652ed5bd8ee2 | /pyfx/tests/test_spreadhandler.py | 4dad32859c0dafba258a980ee780e00e99c632b1 | [] | no_license | tetocode/fxarb | 56526308eb91616eb60b13152ad03dab73de7ca4 | 00261dc6832047375499363af2db44efa2d36008 | refs/heads/master | 2022-10-18T16:45:51.971435 | 2020-06-03T16:19:39 | 2020-06-03T16:19:39 | 269,136,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | import copy
from collections import deque
from datetime import datetime, timedelta
import gevent
import pytest
import pytz
from pyfx.pricehandler import PriceHandler, Price
from pyfx.spreadhandler import SpreadHandler, Spread
def test_spread_handler():
h = SpreadHandler(PriceHandler())
assert h.prices == {... | [
"_"
] | _ |
f2d8d7ebc25d7b92a0ebe190b9bc4b2c5175a61f | ffce0e6cb6fd13e23b3ec71a2cb119bce10cb4da | /examples/mnist/train_mnist.py | 4273795a24322e31ab0bcd680993bffebe1fc1f9 | [
"MIT"
] | permissive | EricCJoyce/Neuron-C | 303e49423f0e0d2dbc897de0609ae192439032cb | 314c23612d486ac1bdac562cb7ad1d0dbad8472f | refs/heads/master | 2022-02-13T19:32:20.953472 | 2022-01-04T18:28:04 | 2022-01-04T18:28:04 | 254,206,027 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | '''
Eric C. Joyce, Stevens Institute of Technology, 2020
Train a convolutional neural network to classify hand-written digits using Keras and the MNIST data set.
Notice that if we are to convert weights learned in Keras to an independent C program, then we have to
control the arrangements of outputs. That is t... | [
"noreply@github.com"
] | EricCJoyce.noreply@github.com |
c950deb33595ab7513145a259c0dad0684cff22f | e5255d7588b117f000c8e11a57127d7bbb63a6e6 | /collection/j1/01_getImageJson.py | 6d1e626ddc17536930faed75ea9b0610302058d2 | [] | no_license | nakamura196/toyo_images | 4134e9ae7d5790e04c157195ecdea10f952dbbf2 | 60c71b23b6028c639c4f9b1ee3083c083421a336 | refs/heads/master | 2020-08-25T13:46:25.334222 | 2019-10-25T03:15:06 | 2019-10-25T03:15:06 | 216,973,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | import urllib.request
from bs4 import BeautifulSoup
from time import sleep
import json
import hashlib
import os
from PIL import Image
import requests
import shutil
import urllib.parse
def download_img(url, file_name):
print("img="+url)
r = requests.get(url, stream=True)
if r.status_code == 200:
wi... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
15f343f6f01d94e5c35889c1a366f57d920911d9 | c32f561f78f7b4aa39c9f3c9a1876a86551e6542 | /build/iiwa_stack_examples/two_iiwa/two_iiwa_gazebo/catkin_generated/pkg.develspace.context.pc.py | fe4486c9268ed5a231608695bdd83d17acb330da | [] | no_license | NexusReflex/Kuka_iiwa_needleForceControl | e34d665c0a3eec3acd60b391529751762e6cf5d8 | fe33ded9106816cc521f90518a16d43f2b3a3464 | refs/heads/master | 2021-05-07T07:43:45.165798 | 2017-12-01T13:49:22 | 2017-12-01T13:49:22 | 109,149,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "two_iiwa_gazebo"
PROJECT_SPACE_DIR = ... | [
"motte.b@hotmail.de"
] | motte.b@hotmail.de |
3e58c9590ed681e7f501c509360dd7178b5b6355 | e01fb71c991e57504fa745d0a29b4a84033db438 | /Market/GetNSECompanyCodes.py | fb96a44e9b20abdb8d6a7e83200fe354b102eddc | [] | no_license | NandaCj/Machine_Learning1 | 6707f36d71e26dcdca03fc11da27f724e21f265e | fc2255f6932d8fd7a0ec002e6885e5a45fd04fe5 | refs/heads/master | 2021-06-20T01:32:17.249662 | 2019-05-30T06:42:13 | 2019-05-30T06:42:13 | 134,279,997 | 2 | 0 | null | 2019-05-30T06:42:14 | 2018-05-21T14:25:13 | Jupyter Notebook | UTF-8 | Python | false | false | 548 | py | from nsepy import get_history
from datetime import date
from nsetools import Nse
nse = Nse()
import re
file = open("C:\\Users\\Ranjith\\Desktop\\NSE Scripts\\NSECodesList.txt", 'r')
OutputFile = open("C:\\Users\\Ranjith\\Desktop\\NSE Scripts\\NseHistory.txt", 'a+')
for line in file.readlines()[:1]:
Code = re.s... | [
"nandpara@cisco.com"
] | nandpara@cisco.com |
1de786fcadd53ed8cf3d4a953a6b1b9a234f5ca7 | 2ff4fbef275d02bafc0390fdf826d3819d0b4549 | /fabadmin/forms.py | 148bf7f3cc311d2f2077a7562e92140af163658e | [
"BSD-3-Clause"
] | permissive | fgallina/django-fabadmin | e186729178d8cf8ce685acd5952c56a0de26261c | c2fcd154cd57e2f62266b205279cebfed7853caa | refs/heads/master | 2020-05-19T16:17:15.661708 | 2011-11-03T18:41:04 | 2011-11-03T18:41:04 | 2,704,192 | 0 | 0 | NOASSERTION | 2021-05-14T15:09:32 | 2011-11-03T18:39:29 | Python | UTF-8 | Python | false | false | 2,473 | py | from itertools import chain
from django.utils import simplejson
from django import forms
from django.utils.encoding import force_unicode
from django.utils.html import conditional_escape, escape
from django.core.exceptions import ValidationError
from django.core import validators
from django.utils.encoding import smart_... | [
"fgallina@cuca"
] | fgallina@cuca |
e5c95f65e2d375ab804087caa24c1424a0aba734 | 291f0aa9a40eeca26fb08106c952b9347db7dba7 | /nz_crawl_demo/day2/requests/biquge.py | 4436df5628c3550c69cfc0f0492fb0cc28404bae | [
"Apache-2.0"
] | permissive | gaohj/nzflask_bbs | fad10b93f8f495a94d5d6db6f5c60d85c1c85518 | 36a94c380b78241ed5d1e07edab9618c3e8d477b | refs/heads/master | 2022-12-12T21:43:17.417294 | 2020-03-20T10:28:22 | 2020-03-20T10:28:22 | 239,702,874 | 0 | 2 | Apache-2.0 | 2022-12-08T03:50:07 | 2020-02-11T07:34:01 | JavaScript | UTF-8 | Python | false | false | 569 | py | import requests
url = "http://www.xbiquge.la/login.php?jumpurl=http://www.xbiquge.la/"
data = {
"LoginForm[username]":"kangbazi666",
"LoginForm[password]":'kangbazi666',
}
headers = {
'User-Agent':"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0"
}
#登录
session = requests.Session(... | [
"gaohj@163.com"
] | gaohj@163.com |
e2d074a9fa072d6fcaa7b8c2def0ff1c94fdbf34 | eb44b795c7462980fcc831bc4f3c8c4062a55a7c | /Raw/Cards.pyw | 80504c0ceea24cf65dd3186af73ee21d4cab7bef | [] | no_license | joshgreatuk/Revision-Helper | 1a8664b9189ebb6c2ac604d9ede9ce7c704f0297 | 9d92bd6466364349b6f92e21bc22a3b42b7d6f44 | refs/heads/master | 2020-08-29T14:40:16.026735 | 2019-10-28T14:45:13 | 2019-10-28T14:45:13 | 218,064,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,112 | pyw | import PySimpleGUI as gui
import os
import random
#Create Cards window
currentsubject = "No Subject"
gui.ChangeLookAndFeel("BlueMono")
subtreedata = gui.TreeData()
data = []
layout = [[gui.Button("New Subject"),gui.Button("Change Subject"),gui.Button("Delete Subject"),gui.Button("Show Random Card"),gui.Button("New Car... | [
"dadevs35@gmail.com"
] | dadevs35@gmail.com |
b3710ae9ec3af1c15b025ac8c04e99d880bafac7 | b72e35e103abf704ea2dd0bae547aeb4c48da81c | /augmentation/filtering.py | bfb3693ba6d6c842e068621fbaaf76c3389660ce | [
"MIT"
] | permissive | adrianB3/cv_labs | d1076eca4139446cdc35dedafea0e9e4c8689b32 | 38d9a28fd67f3e7e5e4247efd777c1bbaa6e552e | refs/heads/master | 2023-07-09T21:07:18.004040 | 2021-08-08T11:12:47 | 2021-08-08T11:12:47 | 298,360,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | import cv2
import numpy as np
from augmentation.data_types import Augmentation, Data
from ast import literal_eval as make_tuple
class Blur(Augmentation):
def __init__(self, params):
self.params = params
def process(self, data: Data):
kernel_size = make_tuple(self.params['kernel_size'])
... | [
"balanescuadrian71@gmail.com"
] | balanescuadrian71@gmail.com |
e9bb27222c38f40ffe7f88c5cf3722d5dd47c363 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/124/24836/submittedfiles/testes.py | 5775a4b04ac6e07e20b13628e10307df3311b756 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
def vabsol(x):
if x < 0:
x = -1*x
return x
def calculopi(y):
c = 3
d = 2
for i in range (0, y, 1):
if i%2 != 0:
c = c - (4/(d*(d+1)*(d+2)))
elif i%2 == 0:
c = c + (4/(d*(d+1)*(d+... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
01a4aa6337e6bc6ec2edab4573fca5afa99ee6a3 | 6144ef47ff27f761e92806d5dcf5e6bbe3c0e690 | /app/app/apps.py | 72cf624fbe41016985688fd409513d1562929766 | [] | no_license | dalai2/stellarpolaris | 8e53323bdfa25331ce2e2e2ec68dd039ae3d883d | 02f5f8c43fe7ab83dd879c96ca2a8db5dedc40a4 | refs/heads/main | 2023-04-11T08:46:35.152942 | 2021-04-21T03:38:05 | 2021-04-21T03:38:05 | 360,023,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django.apps import AppConfig
class MyAppConfig(AppConfig):
name = "app"
def ready(self):
from polaris.integrations import register_integrations
from .integrations import MyRailsIntegration
register_integrations(
rails=MyRailsIntegration()
)
| [
"dalai2123@hotmail.com"
] | dalai2123@hotmail.com |
3292495d148e6dbd5ae87db54b0fbd9e68c1a7cd | 650026ba1780612868fcaae9c7587f3eb1c61eac | /robot_localizer/scripts/particle_marker.py | 5171f46f4a899ffe2b6dcf9682f7578ed68f192f | [] | no_license | anilpatel38/robot_localization | b75478b3ece9119c090e9f8679cc0e3f0fdf3c84 | 609f2eab8ec0ea810cf9c8f0cc6445bc27e6ca03 | refs/heads/master | 2020-03-30T05:01:56.897608 | 2018-10-16T17:33:40 | 2018-10-16T17:33:40 | 150,776,225 | 0 | 0 | null | 2018-09-28T17:53:19 | 2018-09-28T17:53:19 | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/env python
from __future__ import print_function
from std_msgs.msg import Header
from neato_node.msg import Bump
from sensor_msgs.msg import LaserScan
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
from visualization_msgs.msg import Marker
from visualization_msgs.msg import MarkerArra... | [
"cedric.kim@students.olin.edu"
] | cedric.kim@students.olin.edu |
047e6f52be4c14be072c722d08822c707bf030c4 | 1c6eb66eb0f67b57a7c4a6d08bcd1ef2df8f436d | /website/auth.py | 5efc3c45ff51873fe47485f366861b0b4d7425ae | [] | no_license | TheKing-coder68/Flask-Website | 4778256b95aa6e8510a23180934876412687f52f | 24acd2687f81b03eda9bd73a1e2ac4b5eb50867f | refs/heads/master | 2023-04-18T08:58:07.417779 | 2021-04-16T17:31:30 | 2021-04-16T17:31:30 | 354,710,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from flask import Blueprint, render_template, request, flash
auth=Blueprint('auth', __name__)
@auth.route('/login', methods=['GET','POST'])
def login():
return render_template("login.html")
@auth.route('/logout')
def logout():
return "This is the logout page"
@auth.route('/sign-up', methods=['GET','POST'])
def si... | [
""
] | |
e76ac53ae8d12790b226c6ee9266556427575296 | 97aad4adb802cf41be7b79c83beb580759336f0f | /enviar_sms/settings.py | 4ffcc91cc9f95e3737addc0bc51e736e526f2e81 | [] | no_license | tatianno/enviar_sms_digivoice | cec91e8eb5dbb28a6e81c4a4fa03aa8787eb4132 | a6649f134f82b4520c9f5f81b9b25822b0a38fe6 | refs/heads/master | 2023-05-31T06:09:40.812920 | 2021-06-22T13:58:37 | 2021-06-22T13:58:37 | 343,479,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #Modo Debug
DEBUG = True
log_file = '/var/log/enviar_sms.log'
#log_file = '/home/tatianno/Projetos/enviar_sms_digivoice/enviar_sms.log'
#Diretorio monitorado com os arquivos csv com destino e mensagem do SMS
pasta_mensagens = '/media/sms'
#pasta_mensagens = '/home/tatianno/Projetos/enviar_sms_digivoice/sms/prod'
#Exte... | [
"tferreiraalves@gmail.com"
] | tferreiraalves@gmail.com |
08e02c1028708a6f7f2389f245deda91846e826a | b26160f064954498a8487c7542c4a6b09731eee5 | /Supplementary/Holland_MgCa/mg_funks/supp_figures.py | 587a00e2ed446c3e6784fc61b4c76a60607c3e81 | [] | no_license | oscarbranson/ForamGeochem | 1c78ee3055b3558a91a490752e17e514e357563a | f5d52b4d9963f9e53d4965e05b0834a9de9dc46c | refs/heads/master | 2021-07-22T23:33:24.883980 | 2020-02-03T17:06:15 | 2020-02-03T17:06:15 | 119,317,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,628 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from pandas import IndexSlice as idx
from scipy import stats
from scipy.optimize import curve_fit
import uncertainties as un
from uncertainties.unumpy import nominal_values as nom
from uncertainties.unumpy import std_devs as err
... | [
"oscarbranson@gmail.com"
] | oscarbranson@gmail.com |
08592906e415e04754f6338b2ac1811ec11d4c06 | 9b2bea687dbc18cc478318cefcc99122c54193df | /search/views.py | d0d59a0068f2f247a84e4faeb13b6d667d5aa30d | [] | no_license | Rath-san/wagtail_wasteland | 7669f4491d68d6175ebc2c54a1facac01077f2d2 | e2117b9abf7a41eead8c590d01344bb52b55a7ef | refs/heads/master | 2021-05-14T17:33:22.091931 | 2018-01-02T19:23:02 | 2018-01-02T19:23:02 | 116,049,150 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from __future__ import absolute_import, unicode_literals
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.shortcuts import render
from wagtail.wagtailcore.models import Page
from wagtail.wagtailsearch.models import Query
def search(request):
search_query = request.G... | [
"rim.kozlowski@gmail.com"
] | rim.kozlowski@gmail.com |
a6fb19b3c66c25a3ed7314ed3f0a4285ab02fbb3 | bf6061ce108aed02d1fa20670f1e751303ba689b | /granadatiles_project/apps/galleries/migrations/0004_auto_20160219_2112.py | f7a38f4f9cc8947b677c074942c75c7a638679b4 | [] | no_license | rogergaitan/granadatiles | 1dd320478407627ee940207e3cbcdeb015f8caa0 | 3bf26b77f4b99605a266e168c2c7f18d6b6360d5 | refs/heads/master | 2021-04-03T10:24:30.705477 | 2018-03-13T20:06:54 | 2018-03-13T20:06:54 | 125,105,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('galleries', '0003_galleryimage_tiles'),
]
operations = [
migrations.RemoveField(
model_name='galleryimage',
... | [
"roger@localhost.localdomain"
] | roger@localhost.localdomain |
818d347d5ad5029e8246fe46f97504bcf6646510 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_3.5.2/HSQL_RecordEditor1/TestCases/SaveAs/SaveAsXml1.py | 7e17d8d59bd69361fc57951c63a851daf3fe52ae | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | #{{{ Marathon
from default import *
#}}} Marathon
from Modules import commonBits
def test():
set_java_recorded_version("1.6.0_22")
if frame(' - Open File:0'):
select('File', commonBits.sampleDir() + 'DTAR020_tst1.bin')
click('Edit')
close()
if window('Record Editor'):... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
7a78ee18b6b71374ce96f2e7b9225a8918f69ce9 | 7edb4fa01d6325a5042dbcca6b7925513a5221b5 | /New folder/018_email_sender/email_sender_v2.py | ece67aa8d579d862bc40a71ce6d5aadcc10ccde3 | [] | no_license | KotRom/pythonProject1 | ae0919727fa3cabc9be5e04948d34d33c54711d7 | 0709802abfe0e998818099662e4cd56c01a545bf | refs/heads/master | 2023-08-30T09:57:57.614352 | 2021-11-05T19:01:00 | 2021-11-05T19:01:00 | 404,008,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # password dsf342asda
# python@mrartful.com
# smtp: smtp.zone.eu port 465 SSL/TLS or 587 STARTTLS
import smtplib
from email.message import EmailMessage
smtp = smtplib.SMTP_SSL('smtp.zone.eu', 465)
smtp.login('python@mrartful.com', 'dsf342asda')
msg = EmailMessage()
msg['Subject'] = 'Sample email sent by Python'
msg['... | [
"81020414+mhaitov@users.noreply.github.com"
] | 81020414+mhaitov@users.noreply.github.com |
0fb9e4222db7bfd1ec0943adcdbb63c79283c96f | 7ebead5cc471a17188dffd55fa922026ad7ef620 | /zajecia02/00-Podstawy-tablice.py | 7b6aea48972651342fce85100124afe53fc6e369 | [] | no_license | wojciechowskimarcin/piatkaCMI | 4eb71c6730b2e62f4dae50e5dbeda448b1c932e9 | a0265f2607ff46b0fd3b73b32442467d22616776 | refs/heads/master | 2023-01-09T01:33:57.640656 | 2020-11-03T16:26:07 | 2020-11-03T16:26:07 | 300,417,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,881 | py | # Tablice są obecne praktycznie w każdym języku programowania (C, C++, C#, JAVA, Java Script)
# Dzięki tablicom możemy w bardzo łatwy sposób agregować dane - umieszczać je w szufladach
# Adres każdej tablicy zaczyna się od zera np. tablica[0]. Kolejny element to tablica[1], tablica[2]
# Poniżej kilka przykładów wykorzy... | [
"mwojciechowski@zsp5kozuchow.pl"
] | mwojciechowski@zsp5kozuchow.pl |
bb9562a4ccb28a45756442fc794a6be5bf04f5ae | e392092eb5c90259630e2f3f5a463dae830493d1 | /email_reply_parser/__init__.py | c17e27938b6769353c3ef906ab66468431c75b5f | [
"MIT"
] | permissive | lukas-manduch/antispam-system | 2e038e69cfaec5707e7ecedd170ccfc9b5c3df8c | 1aac94a8fb03cf49564408248606d30a77ff284e | refs/heads/master | 2021-03-22T04:39:42.527534 | 2017-06-14T22:40:45 | 2017-06-14T22:40:51 | 83,908,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | __version__ = (0, 0, 1)
from .parser import read, parse_reply
__all__ = ('read', 'parse_reply')
| [
"manduch.lukas@gmail.com"
] | manduch.lukas@gmail.com |
6fd2f9cac3bf22b97948b2a190ce4a65f9c488ae | 4554f8d3ab1a6267b17dad2b4d2c47b0abe8d746 | /benchmarking/lab_driver.py | 03e7770f8347f387876b15dba21e7f83f446d948 | [
"Apache-2.0"
] | permissive | jteller/FAI-PEP | 44fead3ca26f4844067d455c86ac8c5bfaf79a14 | 73b8a08815675135e9da7d68375d1218cbd04eaa | refs/heads/master | 2020-04-29T06:04:19.197966 | 2019-03-15T23:32:54 | 2019-03-15T23:32:54 | 175,904,011 | 0 | 0 | Apache-2.0 | 2019-03-15T23:30:04 | 2019-03-15T23:30:04 | null | UTF-8 | Python | false | false | 5,441 | py | #!/usr/bin/env python
##############################################################################
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
################################... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4edc4a4117a2f5785f06ed7c041ecc6251e057d3 | 13f900b9dc0c3e838ff788febaa59514b97d1128 | /Proyecto/apps.py | 40c7b3b40f6d31687e5ba04a1ee90b01b19feb2f | [] | no_license | JorgitoR/App-Proyectos-Slabcode | 68439c5fe0dbe58a004b9f04be807f6756d84a7f | 173ea655bf00f8b5ae7fb0eb4ee0cf0ed5e6f3a7 | refs/heads/main | 2023-04-12T21:52:16.339073 | 2021-04-10T21:02:57 | 2021-04-10T21:02:57 | 356,660,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.apps import AppConfig
class ProyectoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Proyecto'
| [
"jorgitouribe133@gmail.com"
] | jorgitouribe133@gmail.com |
1f52885f118744862a082fd33704cd5b2e738fe8 | 56166a310098a15f65a6201e69c778e493374577 | /code/path_poisoning/modules/peeringtb.py | 23299613320ac78dd5597343506d8af0a6879681 | [] | no_license | nrodday/TAURIN-21 | bbb24986a3b7d1cdc9d86b2b8e2ad66c136a2075 | bbec9a0a9eb9d28164d20a62dffa6c360d2b6972 | refs/heads/main | 2023-08-23T23:23:10.772163 | 2021-10-19T17:00:44 | 2021-10-19T17:00:44 | 372,407,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | import subprocess
import shlex
import configparser
from modules.util import *
config = configparser.ConfigParser()
config.read('config.ini')
dir = config['general']['peering_testbed_dir']
ptb_asn = config['general']['ptb_asn']
if dir[-1] != "/":
dir = dir+"/"
def announce_prefix(prefix):
cmd = 'sudo ' + d... | [
"nils.rodday@unibw.de"
] | nils.rodday@unibw.de |
350341a7d34ec5a08e73d9e251f0969c31319e0c | 814ec330f84f8a3e4e03616224b618280a62b72d | /env/bin/wheel | 2d10ddc86e670c5a635a61952b808d513a5496b1 | [] | no_license | lennykamande/Shopping-List-V2 | f5cca145b7517c256f377df91c786264b44578a8 | bf49ea2ac4f3fe69c976b0f039b7a24bce4a539b | refs/heads/master | 2021-07-03T06:44:54.453204 | 2017-09-21T20:43:58 | 2017-09-21T20:43:58 | 104,333,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/lennykamande/Shopping_new/env/bin/python2
# -*- 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())
| [
"lennymanyeki@gmail.com"
] | lennymanyeki@gmail.com | |
9165fa645530445bd62b1dd6a0a62069ada7bff7 | 06e34e2dface0b87fa785cab7e65422a5f20ba18 | /Solutions/900-RLE-Iterator/python.py | df44e067f90f609efe109d47495f2673b48fe69d | [] | no_license | JerryHu1994/LeetCode-Practice | c9841b0ce70451c19c8a429a3898c05b6233e1d4 | b0ce69985c51a9a794397cd98a996fca0e91d7d1 | refs/heads/master | 2022-02-10T04:42:28.033364 | 2022-01-02T04:44:22 | 2022-01-02T04:44:22 | 117,118,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | class RLEIterator(object):
def __init__(self, A):
"""
:type A: List[int]
"""
self.li = A
def next(self, n):
"""
:type n: int
:rtype: int
"""
if len(self.li) == 0: return -1
cnt = n
while cnt > 0:
if len(self.... | [
"hjr01211@gmail.com"
] | hjr01211@gmail.com |
11aca772ad2e23f3a0b1e741e91be114c7a129b1 | 2bff702c0ba91580bdf48c79e9e9ba658877ac5c | /Unidad 3/ejerciciotarea2.py | 1a95b2bcf1952e0bb022c1552423aec82019db65 | [] | no_license | benjaltamirano/testayed2021 | 528356e76269f35d555a8f921c885375f16909b0 | ff9ef9e270cc617ba5a1a7adeaa8656919a1746f | refs/heads/main | 2023-08-13T18:01:47.098625 | 2021-09-15T21:15:53 | 2021-09-15T21:15:53 | 406,923,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | """
El programa debe:
* Pedir al usuario una cantidad de tramos de un viaje
* Pedir al usuario la duración en minutos de cada tramo
* Calcular el tiempo total de viaje
* No deben generar errores
"""
try:
usuario=int(input("ingrese cantidad de tramos del viaje: "))
minutos=float(input("ingrese minuto... | [
"benjiialtamirano@gmail.com"
] | benjiialtamirano@gmail.com |
207c49b46a02380d179e8e4579110635ef557edb | ae2a7e627fa60e625bdaf76163a1f8ac3cced29e | /migrations/versions/7ba92c15782e_create_table_questioner.py | 2808c22260459e1d1843ca0bccfbf881654dcb36 | [] | no_license | devsummit/backend | bcff998091a4ebfe3501d03bf490cead0ba9edc9 | e36afa9c8786db19b57c78cfc162ab734b653b33 | refs/heads/develop | 2021-01-01T16:53:15.428432 | 2017-11-15T07:19:05 | 2017-11-15T07:19:05 | 97,940,235 | 8 | 6 | null | 2017-11-10T04:38:37 | 2017-07-21T11:21:18 | HTML | UTF-8 | Python | false | false | 796 | py | """create table questioner
Revision ID: 7ba92c15782e
Revises: 645494c3895d
Create Date: 2017-11-13 12:28:36.981820
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7ba92c15782e'
down_revision = '645494c3895d'
branch_labels = None
depends_on = None
def upgrade... | [
"erdivartanovich@gmail.com"
] | erdivartanovich@gmail.com |
aa293e1ff78c775da8ee0d65c93d61dbe77e9ece | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch38_2020_06_18_18_19_09_636520.py | a1acd720111d63b2d1b433ca15896300cc635a3a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | def quantos_uns (n):
soma = 0
i=0
num = str(n)
while i <= len(num):
if num[i] == '1':
soma += 1
i +=1
return soma
| [
"you@example.com"
] | you@example.com |
e2f190730eeec9f17a97eb07432140fe4dedc841 | aa0c083cea57def1543bdefdb39d49555679c365 | /laba2/t11.3.py | ac34abf6471e5ecd4c6608fa1c77486b06f22679 | [] | no_license | RaiLinKey/EREMEEV-BSBO-08-17-LAB-PYTHON | fd2548d3ed7ecfda0b97fe14943e2b27dce01233 | 0f5aaeec4c7fa8ba9ac1d51382b925cc4da81b52 | refs/heads/master | 2020-07-31T22:22:58.313286 | 2019-11-28T15:31:31 | 2019-11-28T15:31:31 | 210,772,490 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | m = input('Введите строку: ')
n = int(input('Введите число: '))
b = input('Введите букву (или несколько): ')
if m[n-1] == b:
print('Да')
else:
print('Ошибка')
| [
"45506790+RaiLinKey@users.noreply.github.com"
] | 45506790+RaiLinKey@users.noreply.github.com |
1331463e04eacbba88e7bfe7a6abd22516264f96 | 474cbe0024e4337bacbfe83623d0392fc0d78cb8 | /tf2lib/specs/spectral_ops.py | 61e52a6dbf5a972948e3600e4693f804bf2827ae | [] | no_license | SoMA-group/style-drumsynth | 4408fe8fd3f96d381b3ea4578f31cc33ea4ef5cc | e6961e9cf85d42de79c4e6b07cb21e2f9d3dec74 | refs/heads/main | 2023-08-26T02:19:07.093638 | 2021-11-09T14:55:09 | 2021-11-09T14:55:09 | 416,120,833 | 27 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,839 | py | # Copyright 2021 The Magenta Authors.
#
# 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 ... | [
"drysdalejake95@gmail.com"
] | drysdalejake95@gmail.com |
2cc6fe236c84cda705a1b8fec0493df1b53fd497 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03026/s973955145.py | a2924f6209bebcf3663a5e647cd0aaf7dd7eaa40 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #実験用の写経
N = int(input())
g = {i: [] for i in range(N)}
for i in range(N - 1):
a, b = map(int, input().split())
g[a - 1].append(b - 1)
g[b - 1].append(a - 1)
c = list(map(int, input().split()))
c.sort()
print(sum(c[:-1]))
nums = [0] * N
stack = [0]
while stack:
d = stack.pop()
nums[d] = c.pop()
f... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
600464c5c8a6c68e94281103bd7f1c7802cb5c31 | b2da1bdd9134de99db5bb88f343400ec1b09f737 | /writer-ident/pooling.py | 53e50ef84cb77703212ea88898b948446fa82020 | [
"MIT"
] | permissive | lilujunai/dgmp | 677e9e217749ecbd3f167b7d6d5100b0263470ec | b04c0ec4289112f53903eb3429b0d8bc78231ceb | refs/heads/master | 2022-04-04T10:36:53.088987 | 2019-10-30T13:05:20 | 2019-10-30T13:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,630 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
def getPool(pool_type='avg', gmp_lambda=1e3, lse_r=10):
"""
# NOTE: this function is not used in writer_ident, s. constructor of
# ResNet50Encoder
params
pool_type: the allowed pool types
gmp_lambda: the initial regulari... | [
"vincent.christlein@fau.de"
] | vincent.christlein@fau.de |
bdfaaae3fb459abeb5243fc81224ea68ba5dc7db | f986393b6aa4e6557fce735e9f7f1efa76649463 | /migrations/versions/44e45369770c_.py | e86e8c13373479c2a6b18587ee746094a3ead8eb | [
"Apache-2.0"
] | permissive | claire0613/Scard | 6a0e1c8002c02e6806a000537ce2e6c2609b333b | 11c30084398860bc31326c56424d6794806245eb | refs/heads/master | 2023-08-29T00:38:27.198173 | 2021-10-20T05:40:54 | 2021-10-20T05:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | """empty message
Revision ID: 44e45369770c
Revises:
Create Date: 2021-06-12 14:08:33.017959
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '44e45369770c'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"73434165+skysea04@users.noreply.github.com"
] | 73434165+skysea04@users.noreply.github.com |
655c2a2f805cf993afaff63d6a4f19fb5d67fcca | 8891efac3ca3d7ab7b4034a6e1d0171ca0d48b71 | /1/stemming/stemming.py | b689f8ac1a0220e88e0ec3b5be0f142a7010bdd3 | [] | no_license | SZhaoBC/TextAnalysis | b2b8029b3fbae69ca481b0e3b0af1fd0305b546a | 28721e757a88ec65c8f080b0536b914815ec6489 | refs/heads/master | 2020-04-12T22:05:27.185292 | 2018-12-22T04:30:31 | 2018-12-22T04:30:31 | 162,781,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | from nltk.stem import PorterStemmer
from nltk.tokenize import word_tokenize
ps = PorterStemmer()
p_words = open('positive.txt','r')
pos_words = [line.rstrip('\n') for line in p_words]
n_words = open('negative.txt','r')
neg_words = [line.rstrip('\n') for line in n_words]
data = open('labeledDataset.csv','r')
d... | [
"zhao.sil@husky.neu.edu"
] | zhao.sil@husky.neu.edu |
9b1cc198ba049ed2a1e88ee56531681e0b4e438a | f4aec883b8073c4139046590d03907a751db6ab8 | /tests/snippets/pipeline/pipeline.py | 3d18442921f639077263c258ec8797f616f848ce | [] | no_license | turnhq/nucling | 1699d2a19154c4332c9836eace03ee21ae72ed41 | 56426954c6ca48e4f6d5314f9a7807dac986bce9 | refs/heads/master | 2020-03-28T06:56:30.360598 | 2019-04-10T21:10:33 | 2019-04-10T21:10:33 | 147,871,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | import unittest
from nucling.snippet.pipelines import (
Pipeline, Pipeline_manager, Transform_keys_camel_case_to_snake,
Remove_nones,
)
class Pipeline_with_FUN( Pipeline ):
def FUN( p, x ):
return x + 15
class Test_pipeline( unittest.TestCase ):
def setUp( self ):
self.p = Pipeline()... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
b86af03b4a3d06e33a2362c0b892d0b0423a6674 | a27226dc758b2922ee2068aec4134237b821eb5e | /Blogger/Blog/migrations/0005_likecomment_date.py | a63a2e173a735e954e4df96cf92fb016576c144f | [] | no_license | trilok002/myBlogger | 56a0d3eaa627777b0ceb2c3842e174a7da56c2e2 | 6cbfd70f506318e35e3b99e28dededd64fd4cc9a | refs/heads/master | 2023-01-09T04:42:30.465036 | 2020-11-12T10:21:27 | 2020-11-12T10:21:27 | 311,295,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.0 on 2020-01-10 11:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Blog', '0004_auto_20200110_1550'),
]
operations = [
migrations.AddField(
model_name='likecomment',
name='date',
... | [
"61768477+trilok002@users.noreply.github.com"
] | 61768477+trilok002@users.noreply.github.com |
3412bc422fb6235564f0b57b12435dcbc6b538bf | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/kms/v1/kms-v1-py/google/cloud/kms_v1/services/key_management_service/__init__.py | 728218e181e680e1d75ce85d1b9e2142874feb86 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
dd6f5f85aed5431dcc5d6f54a167b1a3ad008d74 | 07daef15cc1cfe45712811c83a771a044dd03ebf | /myvenv/Scripts/django-admin.py | 98020e79406622606dcd802efa3e5ce85fc40b4c | [] | no_license | rkdtmddnjs97/kmu_likelion_lesson_8th | c29024ccac54f623cd6cbf7ee3921ded54204eb5 | e9b2992b233c1d8a2e00f33d6716a6042ac49a19 | refs/heads/master | 2022-06-20T05:56:33.998526 | 2020-05-14T06:37:55 | 2020-05-14T06:37:55 | 263,804,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!c:\users\rkdtm\desktop\kmu_likelion8th\myvenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"rkdtmddnjs97@gmail.com"
] | rkdtmddnjs97@gmail.com |
de3e7c7a99d56bbcd47d532b61dd9abdb705c05a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncuthbert.py | 68a51f0d1e582e2bf577eed1be5fba6c8208bebd | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('PettTHE.py', 1), ('ClarGE2.py', 2), ('BuckWGM.py', 2), ('DibdTRL2.py', 1), ('WadeJEB.py', 1), ('MartHRW.py', 1), ('BrewDTO.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
0d85126ab946fc8001e0e2298bbab82fef2f38f3 | 2596290c3add5ed2f67f9524e9e38c8864e79f0c | /game_stats.py | af00a93d38c7c497b3f95a87eb33ad54b5ef1bac | [] | no_license | myrdstom/Alien-Invasion | af438f767b208e60c835c5eb74190a1ea9733a05 | 58eab9424b0831d6100e920fa7f62563c7270eef | refs/heads/master | 2021-01-25T13:34:51.908146 | 2019-05-06T07:00:30 | 2019-05-06T07:00:30 | 123,584,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | class GameStats():
"""Track statistics for alien invasion."""
def __init__(self, ai_settings):
"""Initialize statistics"""
self.ai_settings = ai_settings
self.reset_stats()
#High Score should never be reset.
self.high_score = 0
#Start Alien invasion in an inact... | [
"nserekopaul@gmail.com"
] | nserekopaul@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.