blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d322d5dc70bed899b520514e91c769f33bb18e3f | 3889c3a64ad420da5a3a4e3f5e8e7439cadbe3bf | /猪脚饭_Baseline.py | b72014ac35ffa31456a67ca2e8fd98dcc028192e | [] | no_license | JasonCh17/Intrusion_Detection_20171220 | 6ddf276e030c90a0278310fa5dd92a7aad7cd899 | b9743593c008741416169fad9dde98abc197effc | refs/heads/master | 2021-08-31T05:59:09.861065 | 2017-12-20T13:22:44 | 2017-12-20T13:22:44 | 114,890,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,213 | py | # 读取数据
import time
import pandas as pd #数据分析
import matplotlib.pyplot as plt
import numpy as np
#混淆矩阵
def plot_confusion_matrix(cm, classes,
title='Confusion matrix',
cmap=plt.cm.Blues):
"""
This function prints and plots the confusion matrix.
"""
impo... | [
"695534569@qq.com"
] | 695534569@qq.com |
42829685c7aeee0859301a0b72e523061be7c28b | c2b5f4907acba44e3bb03211380d77eb2f766f80 | /Chapter_12/commandLineEmail.py | e29888c6a4958324b74ae9bc0da4cd22a96706c0 | [] | no_license | CheeShyan96/atbs2-projects | 1c265f123e390175557aa623da4577969d4a40a4 | 8bed18bf953f8f5584d0a71816eb7a9bd0e55c5f | refs/heads/master | 2023-03-17T18:01:39.139724 | 2020-02-02T17:13:43 | 2020-02-02T17:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | '''
Chapter 12 Web Scraping
Command Line Emailer
Write a program that takes an email address and string of text on the
command line and then, using selenium, logs in to your email account
and sends an email of the string to the provided address. (You might
want to set up a separate email account for this program.)
Th... | [
"git@sebastian-drewke.de"
] | git@sebastian-drewke.de |
30d31003bf6cebc8d04d6661918a3d77df66010b | 8515c78aa6d012b24ee7e517be669ef7d55f1658 | /addons/website/controllers/main.py | 25c0b5d94ea0d738881580991a5551fe703b7d8d | [] | no_license | rmenendezdaw/Onewave-Odoo12 | fe8fe9b2b85a223f89a5730a8ad2e6d39a9f7587 | 348e989a41519b02d75c08743cee7f79e2d1d2b6 | refs/heads/master | 2023-05-02T00:13:21.682531 | 2021-05-21T19:11:14 | 2021-05-21T19:11:14 | 369,597,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,566 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base64
import datetime
import json
import os
import logging
import requests
import werkzeug.utils
import werkzeug.wrappers
from itertools import islice
from xml.etree import ElementTree as ET
import odoo
from od... | [
"rmenendeziestacio@gmail.com"
] | rmenendeziestacio@gmail.com |
f7a8f67bd155343ccd8a3054bfd9525b0aefee87 | 1180ca70d6dc55afced0b1141c839a7cb94e30e2 | /TS-Tempotron-DVS-python/modules/tempotron.py | 0c046bceca2a8e21bbca9e2adcc40b17c5d2d210 | [] | no_license | LuLu0616/NCRC-Realtime-Recognition | 325c8799b7c867f9d98a96e447c8df54fecbef51 | cf6fa5ed7b52cd4f4474c2b46b1ec1a28b0b524f | refs/heads/master | 2021-01-25T22:11:51.046726 | 2020-03-06T08:25:08 | 2020-03-06T08:25:08 | 243,200,811 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,555 | py | # coding=utf-8
'''
@Author : Noah
@Version : v1.0.0
@Date : 2020-02-27 21:06:34
@LastEditors: Please set LastEditors
@LastEditTime: 2020-02-29 22:31:28
@FilePath : \WorkSpace\Local\Tempotron-python\modules\tempotron.py
@CopyRight (c): 2019 NCRC, SCU. All rights reserv... | [
"noreply@github.com"
] | noreply@github.com |
2a584f9236deef0fff0a5aa9cb278ebbfd511473 | 1fcb004f2bc330a8e1b3b78317880d912b1c5be1 | /scripts/build/build/targets.py | 72e7496e4c6a6652eea06567c2048f98074bbe28 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nykh2010/connectedhomeip | 09a5364ccbf696739fd3dc43f8a1ced321b2fcc7 | f8d689b746f81c2a30d03da5b6a1f64f50f9f2e1 | refs/heads/master | 2023-08-15T22:42:19.625689 | 2021-10-10T18:02:20 | 2021-10-10T18:02:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | # Copyright (c) 2021 Project CHIP 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 ... | [
"noreply@github.com"
] | noreply@github.com |
ffd3b9d9d940171b060575665f8f9ade3bd3101c | 3e787b102daa62c52c0e5a8772ac314795b6ef3d | /Binary Search Tree/Binary Search Tree.py | 26baa1737ff433bae921d803f9ca1315e49f1acb | [] | no_license | AkilaSachin/Binary-Tree | 13c89ba58a75730c7922d809055228591474fe5a | 768692f06ab226c2692aa776a8de2a1461193901 | refs/heads/main | 2023-07-21T19:14:12.921691 | 2021-09-05T03:35:13 | 2021-09-05T03:35:13 | 403,203,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | # Creating the Binary node class
class binaryNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
# Adding new child to node
def addChild(self, data):
if data == self.data:
return
if data < self.data:
if self.le... | [
"noreply@github.com"
] | noreply@github.com |
98aeabaaaf519429b130475bfc89622324abd910 | af90afcbafd74e88711c4a62af8b15785e318db2 | /line/bin/pyreverse | e54bf3901ace6022d21086ecd5e7c3597e1f484e | [] | no_license | MItsusawa-5/Aibot | 470dffa9a863cf6834064d8ff5e012ac3d98d147 | 5b87781d8534e4cdbb130efe33ca4da978e228d4 | refs/heads/master | 2022-12-13T11:06:20.653444 | 2020-09-08T17:30:31 | 2020-09-08T17:30:31 | 293,590,174 | 0 | 0 | null | 2020-09-08T17:30:33 | 2020-09-07T17:25:13 | Python | UTF-8 | Python | false | false | 264 | #!/Users/igarashikazuya/projects/Aibot/line/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"aigacyo1989@gmail.com"
] | aigacyo1989@gmail.com | |
7aae7f6a39a8d2e44b0dbcc836e11dc5b34293bd | 7b8c5df8a4debb33f5a73f591dea6d64de986bc1 | /TestPackage/GraphTest.py | f122ede58ba659e0f059571a7cbde974112f42f5 | [] | no_license | YanisSong/ConsumerDataAnalyzing | 456b36a48b7e570ed4a60da9d31886e3d89f1adc | 08cd7884dbfbe134f0474b66b90ca4e1c80d0235 | refs/heads/master | 2021-04-18T22:22:22.590311 | 2018-03-29T06:00:14 | 2018-03-29T06:00:14 | 126,567,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import re
import matplotlib.pyplot as plt
import sys
import xlrd as xlrd
from xlwt import *
from xlutils.copy import copy
# x = [0, 1]
# y = [0, 1]
# plt.figure()
# plt.plot(x, y)
# plt.show()
# f = "123"
# price = re.findall(r"\d{2,3}", f)
# print(int(price[0]))
#
# for i in range(10):
# print(i)
# p = input... | [
"iamsioa@163.com"
] | iamsioa@163.com |
dd633dbe664bdd17e365d4b9ffac79bd43e6d18a | 75303fe036561248f5e938d654e4c6e901d61c25 | /Model For Time Series data/Keras/m7_lstm_keras.py | 25bf7f982b05f1c8cc6a482f9205f569b5f63063 | [] | no_license | nnguyen1602/DeepLearning-Project | 8523255f993605fd7c9ff1794022930a835e0087 | 53a762a25a9ebc14d9fe0ce48e5377a5d8d700ce | refs/heads/master | 2021-08-20T08:50:27.164055 | 2017-11-28T16:58:27 | 2017-11-28T16:58:27 | 112,188,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | from keras.models import Sequential
from keras.layers import LSTM, Dense
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cross_validation import train_test_split
#########################################################################################################################
... | [
"ngochieu1993@gmail.com"
] | ngochieu1993@gmail.com |
0acd20c314fc21919e02ee09efdc56900995e995 | 69e767e3de62f130df6ad71504bc94cc5a1f7aef | /Ebix-DS-master/Ebix-DS-master/1. Python/ML-introduction1.py | 3aede568f0854a1d1d5f2ee964f63d4ed239d8db | [] | no_license | charanseeram/Data-Science | bea068e1f918abd6ad89866280fab4cb3c220ad3 | fb912da90ff3b49015d5588d558e1b3f1d764906 | refs/heads/master | 2021-08-24T21:06:31.118028 | 2017-11-21T12:14:20 | 2017-11-21T12:14:20 | 111,082,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 25 14:27:23 2017
@author: Sreenivas.J
"""
import os
import pandas as pd
from sklearn import tree
import io
import pydot #if we need to use any external .exe files.... Here we are using dot.exe
os.environ["PATH"] += os.pathsep + 'C:/Program Files (x86)/Graphviz2.38/bin/'... | [
"Saicharan.S@pbsystems.biz"
] | Saicharan.S@pbsystems.biz |
2df22224aa226dc75cbe956bcad704c9efbeb719 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /uhd_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/dhcpv6serverglobals/dhcpv6serverglobals.py | 321f4303de80c42f3b8c01d087612a4cd30a8aff | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,767 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
d2b7fded9f82e2c5c82a5ae7d58b3066c94a0234 | f5fcbc71f746ebce64ae17aa182d221884e0161d | /env/bin/easy_install | 4a24f00c57ada18d4898edadc3895ca8bed3532b | [] | no_license | t3chboy/python_imdb_restapi | f6cdaf2882e1ca91a52d566fcdb6b58fda982d6d | 2c1e0e7b28df0b03113ea897ff73a9668969e7f4 | refs/heads/master | 2020-05-27T17:49:12.088827 | 2019-05-26T20:49:05 | 2019-05-26T20:49:05 | 188,727,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/var/python/pyimdb/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mail2techboy@gmail.com"
] | mail2techboy@gmail.com | |
13b12e44d58045c0dc4db3d6c78aeef89fbfa1c0 | 753228dcb67b00b410b4a1e894bc92781cf152d3 | /test2.py | 672cebda649954988446f294c1cb5c4a15c82efd | [] | no_license | milo7hao/GCN_Project | c8c94476425fffbed64d22d37e0301220a380ac2 | 1c59d404a186a512d58e105ac5340eee73afada1 | refs/heads/master | 2020-09-11T15:34:53.796896 | 2019-11-12T19:42:09 | 2019-11-12T19:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py |
from transformers import BertTokenizer
from pathlib import Path
import torch
from box import Box
import pandas as pd
import collections
import os
from tqdm import tqdm, trange
import sys
import random
import numpy as np
import apex
from sklearn.model_selection import train_test_split
import datetime
from fast_bert... | [
"noreply@github.com"
] | noreply@github.com |
f2427f13f588cf7376778e89b011741ee33122e9 | 24eeb28433680606f9d1e099b19ec595552cf06b | /repo/plugin.video.shadow/resources/modules/mediaurl.py | e9b928533b79bd2f69b6f54703a5a709481a89e7 | [] | no_license | irmu/arda | d8ecdedc17bb01650b538dc9e00f438b6d0eed5a | 9b7cab3656c2497c812ab101a56ed661dd8cf4a7 | refs/heads/main | 2023-09-01T08:48:02.823681 | 2023-08-29T18:11:28 | 2023-08-29T18:11:28 | 151,835,016 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | '''
Copyright (C) 2014-2016 ddurdle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is di... | [
"zacharias.sama@gmail.com"
] | zacharias.sama@gmail.com |
b0ffcda0390055f3150501a684274619f22878f8 | 6878c8e8188aff7c44921b12e71217e7c9503a20 | /code/test_profiles_and_season_ids_synchronizer.py | 9cafa55e9d8a5d0007535c7d7f7281bef21d5895 | [] | no_license | JustNicosh/Historische-Tennis-Daten | 5ad346810f5b8bead95011e94ceabec7a8be8dc7 | 58a9883f1d381c93b9f046f70157828dc90588e2 | refs/heads/master | 2021-09-11T23:54:56.805259 | 2018-04-13T10:00:17 | 2018-04-13T10:00:17 | 108,378,144 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | #!/usr/bin/python3
# -*- coding: iso-8859-1 -*-
import profiles_and_season_ids_synchronizer
import os
import unittest
import csv_handler
class TestProfilesAndSeasonIdsSynchronizer(unittest.TestCase):
"""Unittests for the class ProfilesAndSeasonIdsSynchronizer.
"""
def test_return_profiles_and_seasons(self):
"""... | [
"nicolas.schmidt@heimspiel.de"
] | nicolas.schmidt@heimspiel.de |
230c396e722a95fd29ac4f4e2dd8fda5a3201e55 | 41d0c61780a0649ee4de88f1554bbec2570ba5da | /camera-test2.py | 560bcc5170d8aada0e8c61f4473fd407d9f08fee | [] | no_license | Mmat97/BrandScanner | 6ecc9fca53c6cae20c17014c83da0ae207470199 | 873ed6ac877379c8577595089a896fbe11faf8c4 | refs/heads/master | 2020-06-03T13:39:46.946160 | 2019-08-19T18:51:45 | 2019-08-19T18:51:45 | 191,589,421 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,085 | py | # USAGE
# python text_recognition.py --east frozen_east_text_detection.pb --image images/example_01.jpg
# python text_recognition.py --east frozen_east_text_detection.pb --image images/example_04.jpg --padding 0.05
# import the necessary packages
import numpy as np
import pytesseract
import argparse
import cv2
import ... | [
"michael.mathew@stonybrook.edu"
] | michael.mathew@stonybrook.edu |
fead7cadab30b14db5429d1711553a9327b5b85a | d192a6df01f81d576a32bdc5d00fc0c22a08686e | /qa/rpc-tests/fundrawtransaction-hd.py | 5bb187dbbfe96e48a6ec22fb8164ebdb466e7d66 | [
"MIT"
] | permissive | soom-4th-blockchain/soom-core | e477892419337c20727bae1724e580d7e74fc53f | 7018e66445b9c156efb2c46dc4ea360cc61b1c0e | refs/heads/master | 2020-03-25T04:37:24.648970 | 2019-01-10T05:17:12 | 2019-01-10T05:17:12 | 143,404,975 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 25,446 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
# Creat... | [
"jhhong@soompay.net"
] | jhhong@soompay.net |
8b9a2b5796faf71dffc63f756f7e86a683e06f02 | 706d5ff4707793a225f41c469f19a4f1891078da | /tianlang_yingshi/Spider.py | f14757f1dbc0586922085fefef2a2dd6acbc548d | [] | no_license | dcc668/PyDemo1.2 | eb5f13a19343e4d9d82fdd7c54f6f45622c5c00e | f883ca1d9bc04673beb9b40d889da74d2aaa5095 | refs/heads/master | 2020-04-15T02:23:16.000157 | 2019-01-30T23:57:41 | 2019-01-30T23:57:41 | 164,312,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | #! /usr/bin/env python
#ecoding=utf-8
from utils.http_utils import HttpUtils
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
class TianLang():
def __init__(self):
self.index_href='http://... | [
"dcc668@163.com"
] | dcc668@163.com |
6f93644b62f826f4386575458db4d779b67aa909 | 6cb589e0c530971d80588eafc4f8b5cf56c8e069 | /FX Optimiser.py | 8f71e42b58646e48b4f75c1268f2d0c337d55914 | [] | no_license | aakashpatel12345/FunProjects | 4fad3ab213b3467e17286ee1d59c72e3abdb4e78 | dc4a4db238a333ed0ca7457c68cdc707a2755aff | refs/heads/master | 2023-01-10T11:04:39.759678 | 2020-11-14T22:40:38 | 2020-11-14T22:40:38 | 255,095,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | # -*- coding: utf-8 -*-
"""
@author: Aakash
"""
import pandas as pd
best_chain = None
best_value = 0.0
currency_summary = {}
path_summary = {}
def build_rates_dict(data):
global currency_summary
rates_dict = dict.fromkeys(data['Quote'].unique())
for currency1 in rates_dict:
rates ... | [
"noreply@github.com"
] | noreply@github.com |
3c5c3b6af7cab8706b3c0870f1e5a3238fa80070 | 5a9b0877e8ed73679bcb84bb359365c52d3d7372 | /old_code/refine_topo_.py | 8134b1a28c7c6426f9cea8738015e777aefc5901 | [] | no_license | orpheus92/CyQuery | 1d2537275c08a7836ae1be2135a4a19484ed1efb | 1b89c599eb5c8c848b632739cdbb066f530ec9bf | refs/heads/master | 2020-03-27T16:48:38.555790 | 2018-10-29T20:37:33 | 2018-10-29T20:37:33 | 146,807,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,276 | py | import queue
from sklearn.linear_model import LinearRegression
from sklearn.metrics.pairwise import cosine_similarity
import pandas as pd
def check_fit(*args, **kwargs):
"""
arg: threshold
kwargs:
"check_attr": attr to check, if none passed, will compute parent similarity
"greater... | [
"dwang0127@gmail.com"
] | dwang0127@gmail.com |
db3fd4da914b2266eec1cfb491375b54ab697719 | 214360e4a5671022ae3a68cc1f279453ea2b5d1a | /merger/error.py | f35d4a3f538f315e41d7a95aa52c22ac5da34dcc | [] | no_license | dnsl48/silverstripe-patch-merger | 80aad754c97bba8a33cf3dbb9a4c2b16bba67958 | a5e526c5c180741a67d4669239d60b7db44308c2 | refs/heads/master | 2020-08-29T19:58:19.775946 | 2020-03-13T04:00:24 | 2020-03-13T04:00:24 | 218,156,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | class UnresolvedConflictsError(Exception):
pass | [
"dnsl48@gmail.com"
] | dnsl48@gmail.com |
12558bfc3ee3b95aafba147fed938ed62cb79fff | 02c67e8b9a5910bbc47948e73e0abb057170f639 | /migrations/versions/be3a149bbf64_.py | 3363374f5768ec9056f6e2e3e86f1fc1a26ab00e | [] | no_license | Jizga/StarWarsBlogAPI | 7cd064d81ac3125ef75442b744f34f8ccc8a7978 | 34ca7241fc19c34e5c0aa1efb6e8c16a5aab5bd7 | refs/heads/main | 2023-06-07T14:33:15.841401 | 2021-07-10T22:38:17 | 2021-07-10T22:38:17 | 383,483,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """empty message
Revision ID: be3a149bbf64
Revises: 0aa7c993ad66
Create Date: 2021-07-10 18:30:01.960715
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'be3a149bbf64'
down_revision = '0aa7c993ad66'
branch_labels = None
depe... | [
"jizga93@gmail.com"
] | jizga93@gmail.com |
4b176aa836322383c348c0c2b77897e540a72463 | bc62e2283333c6f0cefd4d0566e8d3bf4a7204d2 | /python-ar_drone2/libardrone/arnetwork.py | 1d70da2f258d598655a6068e9ba735131d50f1c1 | [
"MIT"
] | permissive | Temennigru/TPRM03 | 0907622c48dbf2e1f03ec6736996f343da251536 | fb7a033da9ee4b41fbc36873a35b194f9dd1a46f | refs/heads/master | 2016-09-10T11:11:12.577080 | 2014-11-19T01:19:38 | 2014-11-19T01:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,561 | py | # Copyright (c) 2011 Bastian Venthur
#
# 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
# to use, copy, modify, merge, publish, dis... | [
"temennigru@github.com"
] | temennigru@github.com |
e78aa00cb52895bc7eced85dce63abce441f801a | 947d1ecfddb42f9defa0beb69c34d481432bf0e2 | /day7.py | 8397e5fda230999da4b5628510bfd3e408f75bb0 | [] | no_license | alexresiga/advent-of-code-2018 | 0344dab92919d5fa301d9f5f60e61d57aadcb8d0 | 3266908558cc3e063bac6d26b26b8adb3c0bab6d | refs/heads/master | 2020-04-13T03:06:29.399102 | 2018-12-23T20:59:42 | 2018-12-23T20:59:42 | 162,921,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # with open('data.in', 'r') as f:
# pairs = [(x.split(" ")[1], x.split(" ")[-3]) for x in [x.strip() for x in f.readlines()]]
# steps = set(x[0] for x in pairs).union(set(x[1] for x in pairs))
# stack = [sorted(list(steps.difference(set(x[1] for x in pairs))))[0]]
# ready = sorted(list(steps.difference(... | [
"resiga.alex@gmail.com"
] | resiga.alex@gmail.com |
97f8c1bd9f49a88501eae437cfcc1356f2b1e396 | 64eca1e4f3958325120bf25d060e36a5acd2fa29 | /csc131/ch09/student.py | 65ac0bd4c8d0d07438035448e449eac490d308c6 | [
"MIT"
] | permissive | kk14409/lectures | 7b1b05e693993ae55dd296d763ecc14da6e062d1 | a75c21e69e076437137503d85f62976cc3ab5410 | refs/heads/master | 2020-03-17T22:28:17.150025 | 2018-03-22T02:58:52 | 2018-03-22T02:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | """
File: student.py
Resources to manage a student's name and test scores.
"""
class Student(object):
"""Represents a student."""
def __init__(self, name: str, number: float):
"""
Initialize a Student instance with given name and the number of scores to associate with the given Student.
... | [
"jdaehn@missouristate.edu"
] | jdaehn@missouristate.edu |
a15f74f8fcdbd7a574d08924d9208e099735d437 | 882e97d3392f11692d8cae815439cd2609c3b96b | /LinkedList/LList.py | 538145e8024b237a941429ad93eafdf6221cf294 | [] | no_license | springrolldippedinsoysauce/pythonshit | af0a48ee99838df35da4cdb9d1990ae41ccb07c4 | 340f9d9aab0f75914d3306694f73b821808702e2 | refs/heads/master | 2020-07-18T17:28:42.122560 | 2019-09-04T09:42:24 | 2019-09-04T09:42:24 | 206,284,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | from LinkedList import ListNode
class LinkedList:
def __init__(self):
self._head = None
self._tail = None
self._count = 0
def is_empty(self):
empty = (self._head is None)
return empty
def insert_first(self, value):
new_nd = ListNode.ListNode(... | [
"noreply@github.com"
] | noreply@github.com |
a7376cb9c16d643647caa204b56b259ea74c9399 | 0ef4371c87c2196d9c2d2706e51f4b452f6e9d19 | /4_Curso/Proyecto_Sistemas_Informáticos/model_exam_2/venv/lib/python3.7/site-packages/flake8/style_guide.py | c617f5ab89ccd6731e3ec8f31da49e238d4f9549 | [
"Apache-2.0"
] | permissive | AlejandroSantorum/Apuntes_Mat_IngInf | 49c41002314216a994aa60db04062e34abc065eb | c047e41d086f3028ec78ac3a663b9848862e52df | refs/heads/master | 2023-05-15T03:02:56.882342 | 2023-04-20T20:19:54 | 2023-04-20T20:19:54 | 212,392,195 | 29 | 10 | Apache-2.0 | 2023-09-09T13:03:45 | 2019-10-02T16:44:22 | Jupyter Notebook | UTF-8 | Python | false | false | 21,018 | py | """Implementation of the StyleGuide used by Flake8."""
import collections
import contextlib
import copy
import enum
import itertools
import linecache
import logging
import sys
from typing import Optional, Union
from flake8 import defaults
from flake8 import statistics
from flake8 import utils
__all__ = ("StyleGuide",... | [
"alejandro.santorum@gmail.com"
] | alejandro.santorum@gmail.com |
c2344449a55215020bf1c24bc68c488d99186456 | ed114e6737c8a8ac6e01374a7bb916e0c90b37b6 | /18_dynamic_programming/yh_triangle.py | 9e492b5617f3b83310e24495211017c96bf7037a | [] | no_license | Neilgxz/Data-structure-python | 5b6dcf9b4463a921b4594ad37a31fa68d0733a05 | cb666a9d9b224a9811b967cdbb01a07f3a3f2e77 | refs/heads/master | 2022-12-11T22:59:41.593156 | 2020-08-26T18:17:18 | 2020-08-26T18:17:18 | 286,888,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from typing import List
Layer_nums = List[int]
def yh_triangle(nums: List[Layer_nums]) -> int:
"""
从根节点开始向下走,过程中经过的节点,只需存储经过它时最小的路径和
:param nums:
:return:
"""
assert len(nums) > 0
n = len(nums) # 层数
memo = [[0]*n for i in range(n)]
memo... | [
"43714202+Neilgxz@users.noreply.github.com"
] | 43714202+Neilgxz@users.noreply.github.com |
02c50cce79051ef6b107c81ece6815018bb9a720 | f38393395c36e49ff346e3f335e23bb45a4e224b | /fibonacci.py | da9ab9b7fe8435c386cc8a04a4606ae17257c263 | [] | no_license | bishajitchakraborty/Python_Basic | fb34386c615398b6e0abcfa217829aeec31d65d5 | 1120d44ca8d2a64217d91c038c979480befeb231 | refs/heads/master | 2023-07-11T08:58:13.154129 | 2021-08-22T14:56:13 | 2021-08-22T14:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | print("Enter you number:")
number=int(input())
a=0
b=1
count=0
while(count<number):
print(a)
c=a+b
a=b
b=c
count=count+1 | [
"2018000000010@seu.edu.bd"
] | 2018000000010@seu.edu.bd |
4d86b3b9f9738d7dd518438a5b723b44d957916a | cf586b7b2d21d1bb8c39ac43a0080f17e5c2a81d | /searchAPI.py | f4373a2e6e9b7ada984b62fef46667e7eed21a2e | [] | no_license | ranjithkumar8352/NotesCC | fbc08bda71b87e8b00a8adc65ade5af035f36bcb | 5b334ec5ecde30ac2cef5f4a58bd4c43cc0194b9 | refs/heads/master | 2020-12-31T05:24:40.862792 | 2016-08-20T11:32:58 | 2016-08-20T11:32:58 | 63,763,797 | 0 | 0 | null | 2016-07-20T08:21:08 | 2016-07-20T08:21:08 | null | UTF-8 | Python | false | false | 5,353 | py | from models import CourseListResponse, CourseResponse, NoteBookResponse, NoteBookListResponse
from google.appengine.api import search
from google.appengine.ext import ndb
def createCourseDoc(request, key):
courseName = getattr(request, 'courseName')
professorName = getattr(request, 'professorName')
cours... | [
"saurav24081996@gmail.com"
] | saurav24081996@gmail.com |
66e630aaf6f9596f35c23f7163f6a901d541858e | a7fa1f8dd7ed8ad5cab92b5c79818294c6aec239 | /c03_comment.py | ebdce06091ce3856be9d065f129b2c62c6dc31c1 | [] | no_license | Sum-Sovann2018/Python-Bootcamp_week_1 | b1227f263919f8e704ca2c265e1f7c139a7cd00c | c61178169e9774341117116f96e7c160a3e5a718 | refs/heads/master | 2022-07-18T16:12:13.241151 | 2020-05-24T05:40:22 | 2020-05-24T05:40:22 | 266,477,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py |
# Work compete
print("Work complete!") | [
"noreply@github.com"
] | noreply@github.com |
e5e887f9f6be5e7dab70cd8d34e952852a6932a8 | 0f42fc3044e87fd63a23e4cf123a0a4374c20c99 | /ThreeFinal/ProOne/settings.py | c133fd736d650be5d9415000de328c9b2bb8ea10 | [] | no_license | Jackychen8/udemy_django | f894c4bf080e519c9fc6e7d452897ee78ddb71fd | a484b82ea222c67adfa68e9551f2d5cbc1e9ae23 | refs/heads/master | 2021-10-28T03:42:07.280348 | 2019-04-21T15:27:47 | 2019-04-21T15:27:47 | 108,762,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | """
Django settings for ProOne project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"chenjacky9@gmail.com"
] | chenjacky9@gmail.com |
6796ebc283396b84c6eb01a47ee91715aac89cfd | ee4ae7e2a0279269d3cf726ac7c77158d2aca5db | /source/mysite/mysite/settings2.py | 717ab524721aa0a9d3568878ef45fcc8ae292e67 | [] | no_license | ramkumarreddy/Movieo | 2e790cd9effce33fcda61c606586196665d42f44 | 61024f2291625a2f91ffa1d3f55377b76a7df7a4 | refs/heads/master | 2021-04-25T16:17:17.080010 | 2015-11-24T08:27:08 | 2015-11-24T08:27:59 | 109,568,288 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | #import MySQLdb
"""Con = MySQLdb.Connect(
host="localhost",
port=8000,
user="root",
passwd="password",
db="movieo_DB"
)"""
#Cursor = Con.cursor()
#sql = "SELECT * FROM test.testing"
#Cursor.execute(sql)
"""
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more inf... | [
"punyaslok.pattnaik@research.iiit.ac.in"
] | punyaslok.pattnaik@research.iiit.ac.in |
012a9c7b8f122e660f09df57cc0dc27ddc8cdb67 | de3476e02a870395282602db4419c37870a87c66 | /PYTHONSCRIPTS/Hist_2D_Runs_2_runs.py | dd6bff1c88f78eaab2c04979347a035a21f78efa | [] | no_license | MartinHagman/WRF_Low_Cloud_Case | 5d19b11b238872af4a1c721609af2ac83c107d02 | 4c84ff7873934a0b3c9415695952f0b39dd5f20f | refs/heads/main | 2022-12-28T16:51:01.633894 | 2020-10-16T11:14:55 | 2020-10-16T11:14:55 | 304,572,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,426 | py | import numpy as N
import scipy.io.netcdf as S
import netCDF4 as N4
import matplotlib as mpl
import matplotlib.pyplot as plt
import mpl_toolkits.basemap as bm
import os
import pandas as pd
from math import *
import sys
from matplotlib.colors import LogNorm
from pylab import *
#18 Feb
Filobjekt_Ref = N4.Dataset('/nobac... | [
"noreply@github.com"
] | noreply@github.com |
ae5b1ee0270b6f94e9949bdfda9d616a64d35370 | 4987884a7985695f1d80c3ff71ef897931cef3ec | /src_dir/backend.py | b1b4c0f6bbc93503098ef2001b2b7170a1f64b55 | [
"MIT"
] | permissive | knyghtmare/bookstore-management-system | 4b31577827c4d9ab911350552604643b24b43d5b | 6e496abeecea05c03c6229f253e28152102f31a6 | refs/heads/master | 2021-02-07T00:58:21.794678 | 2020-02-29T21:49:03 | 2020-02-29T21:49:03 | 243,964,597 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | import psycopg2
import sys
def connect_to_database():
try:
conn = psycopg2.connect(
host='localhost',
database='bookstore',
user='postgres',
password='root',
port=5432
)
except Exception as e:
print(e)
cursor = conn.curso... | [
"tahsinjahinkhalid@gmail.com"
] | tahsinjahinkhalid@gmail.com |
92e10f88e8943c08131b84fc6b784f7a1d0973a6 | 70c583be13fb1f9ee4c4ba1a7a2f73494972f514 | /travel_buddy_app/migrations/0003_auto_20200426_2020.py | 4eff2fe1e3e15ef7445790948bcfbd301085426a | [] | no_license | nathannewyen/Python | ef757441bc0aecdf451ad64f5160d080c8e1681a | d4d20d5df5ec40cea13f25e09b395d16f78ce2b8 | refs/heads/master | 2022-04-24T13:37:26.550766 | 2020-04-27T15:41:33 | 2020-04-27T15:41:33 | 259,376,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # Generated by Django 2.2.4 on 2020-04-26 20:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('travel_buddy_app', '0002_auto_20200426_2018'),
]
operations = [
migrations.AlterField(
model_name='trip',
name='trav... | [
"nathan13574@gmail.com"
] | nathan13574@gmail.com |
c52b0ed01555bbbabf76d7e7f60b44ba51f093e6 | cbb3d5ba1e67f1b5fb5b3b1baa3c18d7c58355fd | /dmv.py | 2170cd18ec518b331809ea2fc6651a08830cd7d3 | [] | no_license | dduong42/DMV-BTW | 5bab752775143685f9633516cefa7011dd5ac0f3 | 81285de483fc0dfc6c295adaa7c0784577a2b6fa | refs/heads/master | 2021-01-10T11:55:19.021241 | 2015-11-27T01:26:44 | 2015-11-27T01:26:52 | 46,953,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,764 | py | from bs4 import BeautifulSoup
from collections import namedtuple
from contextlib import suppress
from datetime import datetime
import logging
import requests
logger = logging.getLogger(__name__)
DMV_BY_ID = {
537: 'ALTURAS',
587: 'ARLETA',
661: 'ARVIN',
570: 'AUBURN',
529: 'BAKERSFIELD',
679... | [
"daniel.duong@outlook.com"
] | daniel.duong@outlook.com |
14791f13fdf3fa4e329ccc041c58e7431102c8e7 | bda85a240d9ed2a6e744046d48c341ab2ff64505 | /people/migrations/0004_auto_20201120_1348.py | 2924e84f8aae4bcea34c24cd8bed374cc07b469e | [] | no_license | sangjunyoon/Django_People_DB | 95f663409a9aa6f070579eb02c47e13338d3298a | 612ba8076a1d4596aba606a1983361f69f746ec5 | refs/heads/master | 2023-01-19T21:39:26.505317 | 2020-11-24T07:00:52 | 2020-11-24T07:00:52 | 315,545,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.1.15 on 2020-11-20 18:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('people', '0003_auto_20201120_0405'),
]
operations = [
migrations.RemoveField(
model_name='subject_matter_expert',
name='sme... | [
"65435025+sangjunyoon@users.noreply.github.com"
] | 65435025+sangjunyoon@users.noreply.github.com |
f57ac532798e09393e1b24fab20cc04d6d62504b | b841daa53e72ffe3aff0d6bf788261b519c880f6 | /pythongeojson.py | 5b05163b8fe314484394fd6b16b7b190272afcd2 | [] | no_license | SenorLancelot/GeoDataAPIMapping | 9432396deb892cc49516356f379f8f1881cb7ee5 | ca9467da85f7ef707582c8903e06957460fc445c | refs/heads/master | 2023-02-18T15:43:56.395510 | 2021-01-18T18:19:45 | 2021-01-18T18:19:45 | 330,751,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import urllib.request, urllib.parse, urllib.error
import json
import ssl
api_key = False
# If you have a Google Places API key, enter it here
# api_key = 'AIzaSy___IDByT70'
# https://developers.google.com/maps/documentation/geocoding/intro
if api_key is False:
api_key = 42
serviceurl = 'http://py4e-data.dr-ch... | [
"amarshendkar.as@gmail.com"
] | amarshendkar.as@gmail.com |
a0de4f1a90228e16d2b1c4b408664e1662c286e8 | f97d843bf44db7d8afebd0490f40bd0c201c0327 | /BNT/solidity/python/EmulationTestPurchase.py | 010d7651c7cf506685e2433dbde5635d09e1a994 | [
"Apache-2.0"
] | permissive | 4000D/tokens | 6053608964e2dc407d90ad4fc0666b72ed8c9b23 | 683171d95bbb3cc5286086cb45a768fce7daf75a | refs/heads/master | 2021-01-15T23:22:18.670211 | 2017-08-28T02:12:53 | 2017-08-28T02:12:53 | 99,935,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | import web3
import json
import math
import FormulaSolidityPort
MINIMUM_VALUE_SUPPLY = 100
MAXIMUM_VALUE_SUPPLY = 10**34
GROWTH_FACTOR_SUPPLY = 2.5
MINIMUM_VALUE_RESERVE = 100
MAXIMUM_VALUE_RESERVE = 10**34
GROWTH_FACTOR_RESERVE = 2.5
MINIMUM_VALUE_RATIO = 10
MAXIMUM_VALUE_RATIO = 90
GROWTH_FACTOR_RATIO =... | [
"dkdkajej@gmail.com"
] | dkdkajej@gmail.com |
32e3ba7f14b1d312171af5719b0d645094cb5fcf | 19cbf0742344fe6f69de30b61538b5c8eb56c6ee | /PyramidFrontEnd/src/routes.py | 8323152fee2ab92e39655409ebaf0c4915541d0f | [] | no_license | brianmafu/SiyavulaProject | 3d4d49d1c433133fdb7226c2bc13d389e7a1bd08 | 79c42e7cfc55a6f8a6d7fc3445b0d662fcc56ddf | refs/heads/main | 2023-07-13T15:47:04.869538 | 2021-08-25T18:22:12 | 2021-08-25T18:22:12 | 399,381,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def includeme(config):
config.add_static_view("static", "static", cache_max_age=3600)
config.add_route("todo_index", "/")
config.add_route("api_todo", "/api/todo")
config.add_route("api_todo_search", "/api/todo/{name}")
| [
"zeus01@localhost.localdomain"
] | zeus01@localhost.localdomain |
995248ec77ec98b6e79e3f04330b2db456a1d145 | f089470f6d272c5587a711c2bf0442055f47de57 | /kick.py | dbc242f48e619d34a360009049378a94fc6342d8 | [
"MIT"
] | permissive | realyinmo/kickv2 | 2ca9d0eacb3f64ffe4fed4678cb58bcb9155a379 | e8cf2df2bf9b1dff44fd04425a3f5e14b6c9835b | refs/heads/master | 2020-04-10T00:17:30.679024 | 2018-12-06T13:53:57 | 2018-12-06T13:53:57 | 160,680,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | from kickpy import *
from time import sleep
from datetime import datetime, timedelta
import time, string, asyncio, json, os, ast, re, sys, traceback
cl = LINE()
cl.log("Auth Token : " + str(cl.authToken))
cl.log("Mid : " + str(cl.getProfile().mid))
print("登入成功")
oepoll = OEPoll(cl)
clID = cl.getProfile().mid
Me = [clID... | [
"noreply@github.com"
] | noreply@github.com |
10d43faffcf81b8dde6fa7ea3ea774c52a986c6b | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Heat_Transfer_and_Fluid_Flow_Patankar/CFD_books_codes-master/Patnakar/2D_SIMPLE_algorithm.py | 1ede47be2bee4e11dc15afb666b92bb83cea0fe6 | [] | 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 | 4,324 | py | import numpy as np
from matplotlib import pyplot as plt
# Peclet function scheme
def funcPeclet(P, n):
if n == 1:
# Central Difference
return 1 - 0.5*np.mod(P, 1)
if n == 2:
# Upwind
return 1
if n == 3:
# Hybrid
return max(0, 1 - (0.1 * pow(np.... | [
"me@yomama.com"
] | me@yomama.com |
b9d874a3c49d258fd8217ba238ad471f631b0566 | 6b5bf225a8453c5f190d8ab0e55978bb3eb7a904 | /dllutils.py | d61988930f6c224d1d149293f583a98d01e8aa4d | [
"BSD-3-Clause"
] | permissive | GrinnyManyform/pyzo | 2ffeb45d7743cc0cf88ca8606e60d12cef5c6158 | e15e4220dc33570f3f55ca9e47a24005fb6988f5 | refs/heads/master | 2021-01-20T16:42:16.496531 | 2016-09-16T11:26:12 | 2016-09-16T11:26:12 | 68,451,901 | 1 | 0 | null | 2016-09-17T12:51:13 | 2016-09-17T12:51:13 | null | UTF-8 | Python | false | false | 9,034 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2012 Almar Klein
# This module is distributed under the terms of the (new) BSD License.
""" Various utilities to modify Dynamic Link libraries.
Needed to build the Pyzo distro, and it's possible that this
functionality is needed to fix extension modules after installation in
a ... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
479102c319b9e34f07c960131a9b5d78f9b49b8f | 5bd12174cb97e26108cd388fb9e4642117775f4a | /Hard-Level/Multilingual Online Translator/Stage 2 Over the internet/translator.py | d22f8d8f406ccdff12c71daff721cc088f9314f3 | [] | no_license | Qaminono/JetBrains-Academy | e33a7fc9eedff35ce7def49cf13139e92cde43d4 | 97b42fe5051ab02a0bbd8b15e21e6f688bd6301d | refs/heads/main | 2023-04-24T06:38:33.787202 | 2021-04-25T20:28:12 | 2021-04-25T20:28:12 | 321,183,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import requests
from bs4 import BeautifulSoup
language_choice = input('Type "en" if you want to translate from French into English, '
'or "fr" if you want to translate from English into French:')
language = {"en": "french-english",
"fr": "english-french"}
word_choice = input("Type ... | [
"qaminono@gmail.com"
] | qaminono@gmail.com |
634ad36ed581010b14d03be5ee25fdb30b2adc68 | d29046d7cb50f69ed993f668478ed5cf3c527355 | /leetcode_algorithm151/chapter3/3_8_longest_common_prefix.py | fd0846265f3bb2c315e4d69765295a6f5346858a | [] | no_license | 836304831/leetcode | 6a8efa3d52ceb84b11e8893a55e0e086cdb1f83d | 16a84d8b0087a9761660ca5cfa7dbee1ff61a0e4 | refs/heads/master | 2021-07-24T13:37:20.229996 | 2021-05-16T08:07:22 | 2021-05-16T08:07:22 | 249,977,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class Solution(object):
def longestCommonPrefix(self, strs):
"""
:type strs: List[str]
:rtype: str
"""
# 24 ms
# 12.8 MB
if len(strs) == 0:
return ""
if len(strs) == 1:
return strs[0]
shortest_len = len(strs[0])
... | [
"836304831@qq.com"
] | 836304831@qq.com |
7864ee4973a26fb92dac10a132763892fb308197 | b54eb04ec2de1dec11a7143c6b5049a1d031ddaf | /test/baselines/bench/monitor.py | de942e56796664c57ce2c88a82de1e85341665de | [] | no_license | Jerryxiaoyu/CR_CPG_RL | 78c4c6e7539f08465b1f55125e04f982b1323bf2 | 69213cc48440ea66c42fbe3ace35163174686321 | refs/heads/master | 2020-03-28T12:11:51.491796 | 2018-09-14T04:32:33 | 2018-09-14T04:32:33 | 148,277,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,832 | py | __all__ = ['Monitor', 'get_monitor_files', 'load_results']
import gym
from gym.core import Wrapper
import time
from glob import glob
import csv
import os.path as osp
import json
import numpy as np
class Monitor(Wrapper):
EXT = "monitor.csv"
f = None
def __init__(self, env, filename, allow_early_resets=Fa... | [
"drl@wjy.com"
] | drl@wjy.com |
28562b3bf21f9a8b3de2b4b95dfeca552ff60532 | 0d37bd2718b5facf483e659354e025a5b01ae0de | /search_picture.py | c4640c9b4e9332873d1df84c67d5b5bc9e8bc470 | [] | no_license | jiangxiaoyu610/CBIR-with-vocabulary-tree | 4719cccf7c2af320ef2ef7374fa01b8a2f76b25b | 5f0ff343cf31ffe7a4c541854ed6e8b7293dba3e | refs/heads/master | 2022-10-07T06:30:34.542628 | 2020-06-13T10:10:49 | 2020-06-13T10:10:49 | 267,216,753 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,904 | py | import time
import matplotlib.pyplot as plt
from common import *
from logger import Logger
from build_feature_base import get_extractor, get_image_feature
# 由于展示时每行 3 张图片,因此建议 TOP N 为 3 的倍数。
TOP_N = 6
def bgr2rgb(im):
im = im.copy()
temp = im[:, :, 0].copy()
im[:, :, 0] = im[:, :, 2].copy(... | [
"noreply@github.com"
] | noreply@github.com |
2595238a2510ebed2d6eb2e627d4901a1a1b2833 | 71557c81a7896830e4fdc7eae783013a8708711c | /pattern.py | 8626ae12860f11a868c2035e7ddcad26f45aac0b | [] | no_license | harshika18/Jet-Pack-Joy-Ride-Game | 5f8dc34e73a8a7fc37a6a164111a6ca5b3d24f97 | 735fdb3f53a0cd0a596fcefe5499f68f9ca30a01 | refs/heads/master | 2022-04-05T16:28:01.079869 | 2020-01-22T19:10:57 | 2020-01-22T19:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | from back import *
from globalfunc import *
class pattern:
def __init__(self,x,y):
self._matrix=[]
self.__length=26
self.__width=26
self.x=x
self.y=y
for i in range(0,26):
self._matrix.append([])
for j in range(0,26):
self._matrix[i].append(' ')
def Set_pos(self,x,y,background):
Fit_in(self,x... | [
"harshikaj18@gmail.com"
] | harshikaj18@gmail.com |
88983ba58579d66596f8efac20102f270c9fba97 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code-Python 3.0.1/ch405.py | 6791b224e8992f7ce92ddf7376f1155f90e2870e | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## 宣告user變數與passwd變數來接收使用者輸入的帳號與密碼
user = input("login:")
passwd = input("password (empty for guest):")
## 使用string.strip()函數將使用者輸入的空白字元刪除, 因為使用者可能會輸入空白字元
user = user.strip()
passwd = passwd.strip()
if (user == "" and passwd == "") or (user =="" and passwd !=""):
prin... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
1467738d94268d1874bd1e4d0b6332ed1382ff9a | 3052660f8a9c4e17ba5e93e863f89cb40811640a | /node_modules/opencv/build/config.gypi | 7c6772de832c00d4c156d2df0a0996afc44b0436 | [
"MIT"
] | permissive | KwangJongJeon/FruitRecognition | 3368d43448cdc98864adf1f0c3ebef956fd8af02 | 417d5f8c04abe89a17959a58034db456736257be | refs/heads/master | 2023-06-07T02:07:40.717878 | 2021-07-03T11:13:20 | 2021-07-03T11:13:20 | 382,594,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,986 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v142",
"msvs_windows_target_platform_version": "10.0.18362.0"
},
"variables"... | [
"abc8339265@gmail.com"
] | abc8339265@gmail.com |
5d73acd96034f8bcfb122c5a8fd790141f859aa3 | 50b2a447cccfbad70ca2f7d19d4550a708a74cbe | /blog/urls.py | 6bfee92f9dce6c0387b338a007edade69a9decda | [] | no_license | halsayed/portfolio_project | c07fa9f21f252d5cce130c78220ceefed2504675 | c22c3d219b126b71951377285b18ce1b438a1b1d | refs/heads/master | 2020-03-20T11:25:37.333806 | 2018-06-17T21:18:50 | 2018-06-17T21:18:50 | 137,402,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.allblogs, name='allblogs', ),
path('<int:blog_id>/', views.blogdetail, name='blogdetail')
] | [
"husain@alsayed.ws"
] | husain@alsayed.ws |
43a33f8e0057f017e0ab310503696d141d92e460 | 15168af29eb436538a0ca10d799af86614e6cd83 | /0102. 二叉树的层次遍历.py | 819491d71fa79cefd6b3a7042ae6a6d074c8357c | [] | no_license | surika/Leetcode_Python3 | 2688ddec73e37404535673522164e4940ca5fa22 | 7bb1ef8640afa2026dfb3914028e7ba34e73b528 | refs/heads/master | 2020-08-05T12:36:00.699592 | 2020-02-05T13:41:54 | 2020-02-05T13:41:54 | 212,507,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #递归
class Solution:
def levelOrder(self, root: TreeNode) -> List[List[int]]:
res = []
def helper(root, depth):
if not root: return
if len(res) == depth:
res.append([])
res[depth].append(root.val)
helper(root.left, depth + 1)
... | [
"526235290@qq.com"
] | 526235290@qq.com |
6deae79670de46fe616c0f169dbeb44bfdf4964a | 221f25dd6548e83bc1b4ab148cbd96048631c71e | /ccpd_addons/ccpd_bank_statement/models/account_bank_statement.py | eaac97d0449e83726b282dbfe527a6d1164189fb | [] | no_license | kossovo/ccpdsarl | 686a28037f0c596c7b5df8ccf3de1c1e0d22f800 | 22764ab21642bf005ea1708d861e6c2e608c9e53 | refs/heads/master | 2020-04-13T19:37:36.939228 | 2019-09-30T10:29:10 | 2019-09-30T10:29:10 | 163,408,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from odoo import api, fields, models
class AccountBankStatement(models.Model):
"""
Surcharge de la gestion des relevés bancaires pour qu'elles fonctionnent
comme la caisse dans la version 8.0
"""
_inherit = 'account.bank.statement'
| [
"clovis@anybox.fr"
] | clovis@anybox.fr |
19c5ae7636942eb89cfaae41a4317182b380e750 | bf3c460d60ffc9b036167ccd40be6e88c381e134 | /sit_core/templates/subscribe2.html.py | 4196055c68f69ea7b1c6306dff4a9455049b1ce0 | [] | no_license | DjangoCrypto/SIT-messenger-backend | c20188a7722cc8ef9e87d1e9a8aa475a0d006cc3 | a0ebea0ba24b1da75b714a49e14e389bc2b53b23 | refs/heads/main | 2023-05-06T08:56:27.723731 | 2021-04-09T13:29:12 | 2021-04-09T13:29:12 | 371,139,609 | 0 | 0 | null | 2021-05-31T06:25:01 | 2021-05-26T18:55:36 | Python | UTF-8 | Python | false | false | 3,179 | py | XXXXX XXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXX
BBBBBBBBBB
XXXX XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX
XXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXX... | [
"kamil.marczak@insoh.pl"
] | kamil.marczak@insoh.pl |
6c04ed9d151a7bd672fa94d24da5c68676b8669c | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /cogdominium/CogdoBarrelRoom.py | 2bda0b18b835d5204d88476acf5c89a676ed85f0 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 7,736 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.cogdominium.CogdoBarrelRoom
from panda3d.core import Camera, Fog, Lens, Light, Point3, Vec3
import random
from direct.interval.IntervalGlobal import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import ToontownGlobals... | [
"noreply@github.com"
] | noreply@github.com |
aa5990d801b5599003ca44cc8874705e33f4bcd9 | 6e4203cd6f731ee3ff8402e081b69f3564a4cbef | /tests/v2/test_user_register.py | 9644189ab07f3c06f15363a39e97e81889647ea1 | [
"MIT"
] | permissive | Bakley/Questioner-ADC | 2085804c96ed61c38f0a086cb8b6eaa8a5e71e6a | bfc9f99224005437ad92d914faafdcc5155d71b9 | refs/heads/develop_v1 | 2022-12-10T01:51:38.261682 | 2019-01-25T07:42:16 | 2019-01-25T07:42:16 | 164,590,353 | 1 | 5 | MIT | 2022-12-08T01:31:49 | 2019-01-08T07:30:13 | Python | UTF-8 | Python | false | false | 3,604 | py | import unittest
import json
from tests.v2.basecases import TestBaseCase
class AuthTestCase(TestBaseCase):
"""
test class for the registration endpoint
"""
def setUp(self):
TestBaseCase.setUp(self)
def test_signup(self):
"""Test if a user can signup"""
response = self.clie... | [
"barclaykoin@gmail.com"
] | barclaykoin@gmail.com |
8095cc84cfc4b37ea7f734d5310af1bc2b00783f | 993f3007bb276616a60688f5ff7933aaa9396d74 | /vowel_consonant.py | b8494053b74a559e0be7707e832626b14933dab7 | [] | no_license | Zahed75/Python_practice | d3fa60e8b475e216fc542fe5321993baa4410679 | 224eed0b8f8fa0ab02e523837540dd05ed8690ff | refs/heads/master | 2022-12-26T20:54:54.286075 | 2020-10-16T16:19:48 | 2020-10-16T16:19:48 | 298,867,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | letter = input("please enter your word:")
if letter== 'a' or letter == 'b' or letter == 'e' or letter == 'i' or letter == 'o' or letter == 'u':
print("vowel")
else:
print("consanant") | [
"56452604+Zahed75@users.noreply.github.com"
] | 56452604+Zahed75@users.noreply.github.com |
c9703a4244c4e8fd8fcb39987da72eb407756a38 | b0369aa24ff07750571a72265e1a28e97807ec23 | /csifter/database/db.py | 838dc477594d4490cea56e000f341cc06048c83f | [] | no_license | Angus-C-git/csifter | 1eab337b46479602106a83a48596ac66667e1918 | 9083f262b4760976e205fe3a550f4f7e521e3b3e | refs/heads/main | 2023-08-11T10:36:13.618668 | 2021-09-23T05:06:01 | 2021-09-23T05:06:01 | 386,239,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py | signatures = [
# << Bad APIs >>
{
"name": "Format String",
"type": "risk",
"description": "An variable is supplied directly to the format argument of the function, " +
"if the variable is user controlled a format string exploit my be possible.",
... | [
"anguscornall@gmail.com"
] | anguscornall@gmail.com |
46fe97177f3bbbce62cfb44bf9651cb61d005666 | 39d17148ac0517af1b0fdfc9e0f2d962183b7953 | /dev/benchmarks/bench_check.py | d393c4fdb7662e18e06543bc2386b656eabe00af | [
"Apache-2.0"
] | permissive | Erotemic/progiter | a784f69fbca990a53d7f5abd56527f56b720c7f1 | 2d8e1a90b2de59e74c21b5f026832a119aa840e1 | refs/heads/main | 2023-06-22T05:01:03.177353 | 2023-06-20T17:36:08 | 2023-06-20T17:36:08 | 134,924,299 | 15 | 2 | Apache-2.0 | 2023-06-11T21:35:08 | 2018-05-26T02:59:51 | Python | UTF-8 | Python | false | false | 3,753 | py | import ubelt as ub
import progiter
import timerit
def basic_benchmark():
"""
Run the simplest benchmark where we iterate over nothing and compare the
slowdown of using a progress iterator versus doing nothing.
"""
N = 100_000
ti = timerit.Timerit(21, bestof=3, verbose=2)
for timer in ti.r... | [
"erotemic@gmail.com"
] | erotemic@gmail.com |
64b5a847f9463a91bd9efb546c74636a4fb7aec1 | 8c73955b7b3b8e7893e8ff3d78341a99a66f6c12 | /src/train.py | 8c7ed1b65cf8e7129a30f83b730aafb482fdd906 | [] | no_license | akiFQC/shinra-attribute-extraction | ba9452d005830b6c24c80d166a8ff3bcf82a70b8 | 633f65ec5b61b8937fdf9cf24fe4ae07960e93fd | refs/heads/main | 2023-07-14T03:22:16.927915 | 2021-08-12T08:34:03 | 2021-08-12T08:34:03 | 396,015,806 | 0 | 0 | null | 2021-08-14T13:22:14 | 2021-08-14T13:22:13 | null | UTF-8 | Python | false | false | 5,631 | py | import argparse
import sys
from pathlib import Path
import json
import torch
from torch.utils.data import DataLoader
from torch.nn.utils.rnn import pad_sequence
import torch.optim as optim
from transformers import AutoTokenizer, AutoModel
from tqdm import tqdm
from seqeval.metrics import f1_score, classification_repor... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
f5de72cf404f5a4c9a8a837f76614ec933f62052 | adf542906b91dc55aaa5e3abdcc9842fe0b2b922 | /Lesson 2 List Based Collections/02.LinkedLists_mysolution.py | 15512e1ceaeabf1ebc84cf72eb6552c1b19ed5fa | [
"MIT"
] | permissive | buraksatar/data_structures_algorithms | 0e12a57ca90b8872003d8cd5b7dd9dc9e97c26c5 | f99be0ac094b891ac86382c0a4ae946350f1973a | refs/heads/master | 2021-10-26T10:35:47.007401 | 2019-04-12T05:23:38 | 2019-04-12T05:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | """
Linkedlist is an extension of a list but it is definetly not an array.
There are no indices.
In linkedlist, we store a reference to the next element in the list.
Advantage;
adding and removing O(1)
Disadvantage:
To add an element, remember to not to lose your next element(reference) in the list. So, first
"""
... | [
"buraksatar@gmail.com"
] | buraksatar@gmail.com |
10bff657f77e8452395e5ab98e301ed6a131f2d1 | 5a9420ec24ff892d5bf3e7b438ddcffe4bbe1956 | /r18_main.py | 96a22ce7d284daa9c50ccebb125112860450b9e9 | [] | no_license | canfoderiskii/r18comic_spider | cb178bfa204f936bc2f82a4e0a67cee54bea0f00 | edecb99b0e3e9fe470fa4fa25325fab35d7f58fc | refs/heads/master | 2021-12-13T16:27:10.356423 | 2021-12-03T14:03:50 | 2021-12-03T14:03:50 | 133,222,290 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,345 | py | # -*- coding: utf-8 -*-
"""
Used to download comic automatically from r18 comic site
@author: Geminii
"""
import os
import sys
import re
import datetime
import json
import time
import http.client
import urllib.request
import ssl
import urllib3
import certifi
import requests
# local imports
import r18_comics as comics... | [
"wch007@msn.com"
] | wch007@msn.com |
955eea22beba8cfe3811b51df8133e7d932dc980 | 871ebb2aa6b0066ac2d007c7ed6413432370e516 | /performance_framework/tests/test_controller.py | 2bdc47ce957d6e9270da7605f89d2aa8782ba977 | [] | no_license | hsaikia555/performance_repos | 89333d94ffabab93589df2dcb8a2cbe941f352ef | 12288eb8ab9c9102ec84ea890b63b2464078f21f | refs/heads/master | 2020-03-27T15:34:47.708917 | 2019-03-18T09:35:42 | 2019-03-18T09:35:42 | 146,726,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # Entity Section:
NO_OF_ENTITIES = 2
#Workflow Create Section:
NO_OF_UTF_WORKFLOW = 3
UTF_INPUT_PATH = "/user/zaloni/Provision_51_Test/UTF_Automation_check_101"
WORKFLOW_BASE_PATH = "/user/zaloni/Provision_51_Test/"
#Workflow Execute Section:
WORKFLOW_EXECUTION_FREQUENCY = 3
WORKFLOW_ID = 39
WORKFLOW_NAME = "Auto_UT... | [
"hsaikia555@gmail.com"
] | hsaikia555@gmail.com |
0126daf12a1efd2afd8532e34a027f265d0ea555 | 99818c8b0296ff1b15b832f2474d0861b508f53a | /src/dn_plot.py | d542abf61ad1a206d0eafc9e06cad3b3673edccc | [
"Apache-2.0"
] | permissive | sqsxwj520/DeepNotebooks | 97ecb81ffc9cace876586127a1dbd72a829b52b2 | 036c807753254504c8546fbdfc91a86cd94e6a3d | refs/heads/master | 2023-04-26T13:22:07.612137 | 2019-09-15T14:59:07 | 2019-09-15T14:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,541 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
import plotly.tools as tls
import plotly.plotly as py
from plotly.graph_objs import Heatmap, Layout, Scatter, Bar, Table, Histogram, ColorBar
import src.ba_graphs as g
from src.util.spn_util import func_from_spn
from spn.algorithms.Marginali... | [
"claas@voelcker.net"
] | claas@voelcker.net |
7d50a7a37341ea6a35aa9aa76438bdb72d17073d | 3fabe7a730bcf413bc4d036f056d45925011c5c6 | /python_games/slidepuzzle.py | bf6bfac2074564b1423e4b5c1f59bab4b627d25b | [] | no_license | moralss/sisonkerising | edfb651fea09c24624aad52c8504ed667e62032d | 1782e06a8342b422f9832044a586b952ec395c30 | refs/heads/master | 2020-04-04T07:02:49.075182 | 2017-01-03T00:13:06 | 2017-01-03T00:13:06 | 42,348,763 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,324 | py | # Slide Puzzle
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
import pygame, sys, random
from pygame.locals import *
# Create the constants (go ahead and experiment with different values)
Board_Width = 4 # number of columns in the board
Board... | [
"jeramoral@gmail.com"
] | jeramoral@gmail.com |
b8a2eaf62ca7c277a26624b6653f80c23f278573 | b4a432efb00d5810accce78814f78402cf50b4b0 | /firstpython.py | 8ff53c63d1e1ed131706f746d986dac339546069 | [] | no_license | rubystanley/testrepo | 5036856bc503beb66d75be13ac4d775d2db6fb5d | 4fb7e6e72333013224ed01402f8ddb84e2263309 | refs/heads/main | 2023-02-08T20:34:39.112092 | 2021-01-02T03:40:50 | 2021-01-02T03:40:50 | 325,671,955 | 0 | 0 | null | 2021-01-02T03:42:36 | 2020-12-30T23:53:02 | Python | UTF-8 | Python | false | false | 45 | py | # display the file
print ("New Python file")
| [
"noreply@github.com"
] | noreply@github.com |
93b678058a71e6771be47a04bd1790e2246fbffb | bbac91977974702ce52fc0be2e279dc7750f7401 | /backend/serializers.py | 435150b1d1ced60909c704c0a6783b467c8af0fc | [] | no_license | Occy88/BiddingSystem | bbb0cc85a3621622cbbcb1313fbe1f1fc74a8f72 | a8619bad0efee8d2256ef11f358d99c21e5a67b2 | refs/heads/master | 2023-01-13T08:53:16.450312 | 2019-12-19T18:19:59 | 2019-12-19T18:19:59 | 226,520,713 | 0 | 0 | null | 2022-12-13T00:50:21 | 2019-12-07T13:48:08 | JavaScript | UTF-8 | Python | false | false | 2,235 | py | from rest_framework import serializers
from .models import Bid, Session
from django.contrib.auth.models import Group
from django.conf import settings
from pydoc import locate
from guardian.shortcuts import assign_perm, remove_perm
class BidSerializer(serializers.ModelSerializer):
# to work out all the fk relatio... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
f55d7af40af38b6fe52d88b3be35e07b1a908891 | 11a0a655fd1c1a5949fb5e9d2539a0e59081fe7b | /scripts/stats/print_stats.py | cf841791b2d4405d1cddb2e8c355f1f497af4f13 | [] | no_license | SravaniTeeparthi/harp | 066bc7a871d548daa9ac49b1c8f98019b118d0df | 32e072c9bf53533ec38ec2c4f873f00a263421d6 | refs/heads/main | 2023-03-30T13:25:48.909781 | 2021-03-31T03:23:08 | 2021-03-31T03:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import pdb
import pandas as pd
import cv2
import argparse
from harp import fdops
import numpy as np
def _arguments():
""" Parses input arguments """
# Initialize arguments instance
args_inst = argparse.ArgumentParser(description=(
"Prints activity label summary to standard console"))
args_ins... | [
"venkatesh.jatla@gmail.com"
] | venkatesh.jatla@gmail.com |
8bfdb3cbf1dc09cdbd84f0cc160f2a0e204b843e | 81ced6d61009208c923134002a97b99f9b95c955 | /python基础/邮件阅读器.py | 051a1520eb61b49fc6d589738528ac62c57ee041 | [] | no_license | sz-winner/myStore | f7a56f77f37af28cf737b7d3fb86c50f6cc83399 | 775a01157c0ca2b9f10a7e46700cc9082ec2cb67 | refs/heads/master | 2020-09-28T20:15:14.650688 | 2020-04-20T09:08:22 | 2020-04-20T09:08:22 | 226,854,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | import email
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.header import Header
fp = open("D:\\Python\\test_mail.eml", "r")
msg = email.message_from_file(fp) # 直接文件创建message对象,这个时候也会做初步的解码
subject = msg.get("subject") # 取信件头里的sub... | [
"sz_winner@msn.com"
] | sz_winner@msn.com |
9ef29961f26a8da8006d6b5e60b61e46c0c62589 | 50500f7e7afc0a401cfa99bdaf438d3db90072f2 | /biothings_explorer/tests/test_biolink.py | 4e4ee740fe09c60983633aab11272b78500c4821 | [
"Apache-2.0"
] | permissive | andrewsu/bte_schema | 903112b8344512bfe608d77948d864bb134596df | b727dfded0d10b32ef215094715171ef94c38e34 | refs/heads/master | 2020-07-27T02:59:40.552124 | 2019-11-12T17:48:18 | 2019-11-12T17:48:18 | 208,845,945 | 0 | 0 | Apache-2.0 | 2019-09-16T16:23:42 | 2019-09-16T16:23:42 | null | UTF-8 | Python | false | false | 7,109 | py | import unittest
from biothings_explorer.registry import Registry
from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher
class TestSingleHopQuery(unittest.TestCase):
def setUp(self):
self.reg = Registry()
def test_anatomy2gene(self):
# test <chemical, interactswith, ana... | [
"kevinxin@scripps.edu"
] | kevinxin@scripps.edu |
99b09c19a30500c879af84a5e14333a8526fd977 | c24867ed81cba933ed38e6c6e764c076d5e898e2 | /tools/visualize_dataset.py | 73d8a8cde129988a21cca2efa9448943e3291ab6 | [
"MIT"
] | permissive | taheritajar/experts-group | 1fd8ac76cf45522445d9bcea6451da4a25eeec53 | 3351617c516213e9463e2f187af60d5f9fb3aa02 | refs/heads/main | 2023-02-18T13:28:01.665222 | 2021-01-18T19:49:04 | 2021-01-18T19:49:04 | 329,234,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | import time
import sys
sys.path.append('./')
from absl import app, flags, logging
from absl.flags import FLAGS
import cv2
import numpy as np
import tensorflow as tf
from yolov3_tf2.models import (
YoloV3, YoloV3Tiny
)
from yolov3_tf2.dataset import load_tfrecord_dataset, transform_images
from yolov3_tf2.utils impor... | [
"shahab@example.com"
] | shahab@example.com |
a29bf358b2f1f6d160a599d4439d0c1e34df1d3c | 83c7857e9a73a5609c8210e4228490dbedd5b644 | /_spaun/modules/motor/data.py | 4461030a7b91fde79371f0c88433cf151b94ba66 | [] | no_license | hunse/spaun2.0 | 9fe0d8f050177c5b252020f42ad3632cebed26a6 | 7bfd6f1628565dde03bb06385bbc2ee1a9ae3808 | refs/heads/master | 2021-01-15T17:46:02.002600 | 2016-11-23T21:36:45 | 2016-11-23T21:36:45 | 44,840,625 | 0 | 0 | null | 2015-10-23T21:55:15 | 2015-10-23T21:55:14 | null | UTF-8 | Python | false | false | 1,287 | py | import os
import numpy as np
from ..._networks import convert_func_2_diff_func
class MotorDataObject(object):
def __init__(self):
self.filepath = os.path.join('_spaun', 'modules', 'motor')
canonical_paths = np.load(os.path.join(self.filepath,
'canon... | [
"xchoo.mainframe@gmail.com"
] | xchoo.mainframe@gmail.com |
0fffee121dfdc4cc663a2873fe8074efa2428d6e | eb838906264a85ddda2d222e1827c4bd435f37ed | /conversion/injectable_file.py | a59f60142597d9d2e32a2e710e041f3e0cf2ada6 | [
"MIT"
] | permissive | UUDigitalHumanitieslab/AnnCor-scripts | 3b929ef76d16a3f1094ac4a04e98a5cd3f67ec07 | 68228c1daddd2641e9a40d922471767bc33a1eee | refs/heads/master | 2023-07-06T17:16:24.226652 | 2021-08-30T07:25:26 | 2021-08-30T07:25:26 | 93,640,811 | 0 | 0 | MIT | 2023-06-22T12:19:07 | 2017-06-07T13:53:15 | Python | UTF-8 | Python | false | false | 2,727 | py | #!/usr/bin/env python3
"""
Classes for modifying a file by line.
"""
class InjectableFile:
"""
Open a file and allow new lines to be inserted into a copy of the file.
Use write() to write the modified file with the inserted lines.
Note: this assumes the read file did not change during operation.
At... | [
"s.j.j.spoel@uu.nl"
] | s.j.j.spoel@uu.nl |
b8c389cec7435e9a38a89769021c5743030c48e0 | def0e74cdbe194832f2447ab96c2085454434dfd | /project_files/cooperative/cooperative_dirichle_gui.py | 878825d9fd4c7b26c40cf4f2f672fb790dfe7335 | [] | no_license | MherBaghinyan/python_differential | c2e7217a88d5f088c0a73bdb4a2101061cf6c4e7 | 3e0200792ec19e722e5bbaa7a3a874347f37ee35 | refs/heads/master | 2020-03-26T10:33:47.349875 | 2017-06-24T08:23:02 | 2017-06-24T08:23:02 | 41,693,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # http://www.java2s.com/Code/Python/GUI-Tk/2dtableofinputfields.htm
# http://www.java2s.com/Code/Python/GUI-Tk/LabelborderRAISEDSUNKENFLATRIDGEGROOVESOLID.htm
from project_files.cooperative.cooperative_dirichle import *
from project_files.services.graph_gui import *
def graph_cd_window(root, matrix, t_value):
gra... | [
"mbaghinyan@gmail.com"
] | mbaghinyan@gmail.com |
24c7cde95cb243bd0ab3415ba3830960f9507538 | d366f39f8af34b3f7ff6b6218fffcaefa55c1cf8 | /trash/OLD/leereq.py31012013-2 | e4c15f09956220006cc35bad19978ee45c0509c4 | [] | no_license | cgarita/cgarita | a570227d3b8bbfeab07819e69b337987a16a2532 | 6849fe9844818b1a9d96af362f4cb05fd78a6c91 | refs/heads/master | 2021-01-22T12:08:07.339213 | 2014-10-30T17:08:32 | 2014-10-30T17:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,591 | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
# Modulos importados
import os
import shutil
import string
import time
import MySQLdb
import getopt, sys, math
from os.path import exists, join, abspath
from os import pathsep
from string import split
from datetime import datetime
import pytz, dateutil.parser
import smt... | [
"cgarita@una.cr"
] | cgarita@una.cr | |
432af1adae5221923d21ccdc7f807e0904ee5fbd | 52cf1ef2964542a7962044df4df6d1fbf59ef2f0 | /abc.py | 5ea8b01ebd01ad83431745679a36af058af12386 | [] | no_license | X20435668/CS5250_Assign_4 | 4a403325472cb5a473213b849dae22f0aa5e5149 | 8144f7b97fa1fe4560589945f2e402a351b98eb6 | refs/heads/master | 2020-03-09T18:55:00.256200 | 2020-02-15T09:46:21 | 2020-02-15T09:46:21 | 128,944,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | li = [1,2,3,4]
print(isinstance(1,int))
print(li[2*1])
| [
"justinxydat@gmail.com"
] | justinxydat@gmail.com |
eb9772c76d85a328c853a5ef5607b805327fa09f | cd6ef99cd4b18e4335cf5d65033cef6deffb1468 | /insta_clone/insta_clone/urls.py | 4a26eb53e6e92807fe8ed95f0815ee78d35dd70a | [] | no_license | measterpojo/insta_clone | 8a510d9ae5a40268772bc45af2634867797d5f26 | aed8aea7312685bab1a0246a91a84fc840ef7c67 | refs/heads/main | 2023-04-20T10:08:18.245492 | 2021-05-12T19:02:41 | 2021-05-12T19:02:41 | 366,797,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
from authy.views import userprofile, follow
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('posts.urls')),
path('authy/', include('authy.... | [
"peterperez847@yahoo.com"
] | peterperez847@yahoo.com |
6dbe66f2e7088b2afb7a2e9fb880a634eb1c4c0b | 626157a5f1c4440b47f53e673b1332ea9360ca60 | /emlak/urls.py | 8decc9418f5128726397dab42e76219918a9083b | [] | no_license | emrahsahan/firma | fb6bf54931c065a6551d6ba90a4256d6cb7302f3 | 23c1eee861f4712d3e7603584cfdd42abafeeed5 | refs/heads/master | 2020-03-28T17:57:25.937092 | 2018-10-02T23:17:04 | 2018-10-02T23:17:04 | 148,839,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django.conf.urls import url
from .views import *
app_name = 'emlak'
urlpatterns = [
url(r'^kiralik/$', emlak_index_kiralik, name='kiralik'),
url(r'^satilik/$', emlak_index_satilik, name='satilik'),
url(r'^create/$', emlak_create, name='create'),
url(r'^(?P<id>\d+).html$', emlak_detai... | [
"noreply@github.com"
] | noreply@github.com |
3ffaa9adfc101e07ad05a1009bd90c9f436236e6 | 8ecf4930f9aa90c35e5199d117068b64a8d779dd | /TopQuarkAnalysis/SingleTop/test/Mu_2011A_08Nov_part_13_cfg.py | c75a13863b8955018a45775a881133abc70b43f0 | [] | no_license | fabozzi/ST_44 | 178bd0829b1aff9d299528ba8e85dc7b7e8dd216 | 0becb8866a7c758d515e70ba0b90c99f6556fef3 | refs/heads/master | 2021-01-20T23:27:07.398661 | 2014-04-14T15:12:32 | 2014-04-14T15:12:32 | 18,765,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SingleTopSystematics")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True),
FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch')
)
process.load(... | [
"Francesco.Fabozzi@cern.ch"
] | Francesco.Fabozzi@cern.ch |
16ce9942ac108ba010f56159e324668c2e5b87a2 | bd353bf49367e84c78a464509a7b977e6a67b166 | /tmp/call.py | 5cb75824604c1e1013383f62b059be2d6b76ae4f | [
"MIT"
] | permissive | godontop/python | 5c8ce79bcf833cbf715e632f4223d936bc2e04a2 | e8238b3fc46e0874124febfa0ac8276d27bee18e | refs/heads/master | 2022-10-01T18:40:49.765473 | 2022-09-05T03:37:23 | 2022-09-05T03:37:23 | 122,028,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # call.py
import called
def callback():
print('in callback')
def main():
# called.test()
called.test_call(callback)
print('in call.py')
main()
| [
"tosony@126.com"
] | tosony@126.com |
35663816d738485bdf96919fc9ce7de0352203df | aa7de5b75b65404715676121d61a9b06348d5f62 | /dashboard/dashboard/add_point_queue.py | 5bfbef37ce63c0d91e299373ded283810fc6d96b | [
"BSD-3-Clause"
] | permissive | benschmaus/catapult | 3ca2ede51e4a23082e634fa07a03c11158bd6d9a | f388b1f6b90c670b6524fd68a295bae26ba8db70 | refs/heads/master | 2021-01-20T07:53:45.431708 | 2017-07-17T18:03:09 | 2017-07-17T18:03:09 | 90,060,605 | 0 | 1 | null | 2017-05-02T17:38:42 | 2017-05-02T17:38:41 | null | UTF-8 | Python | false | false | 12,511 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""URL endpoint to add new graph data to the datastore."""
import json
import logging
from google.appengine.api import datastore_errors
from google.appengi... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
352e3c026ac9e26500a33e7d5012aeabdb121d71 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/ospfv3/domaf.py | 02ac83a1a12bc7d0b567879cf7630854453672ad | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,405 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
3af640c10c618c213096da4a3e0c079fd458f61c | 96e5eb521b14a10b26e2419e02e4943bcb91379a | /Chapter1/123.py | 2e3fadefa720c89768805a7a2791155a73491cfb | [] | no_license | squall0851/PythonBasic | ed02c35187d326bc63e5fee1603912caf825ff91 | 1f48d680874d175612295b44bcf19787b5e1a678 | refs/heads/master | 2020-03-22T23:35:50.389454 | 2018-07-13T08:38:38 | 2018-07-13T08:38:38 | 140,819,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from scapy.all import *
ping_one_reply = sr1(IP(dst='192.168.188.1')/ICMP(), timeout = 1, verbose=False)
ping_one_reply.show() | [
"squall0851@gmail.com"
] | squall0851@gmail.com |
37a675e425fa3cbe10da417616a0508661f75da4 | d99e6210df356d7ec27aa32259be30bfeba867f9 | /Erails/asgi.py | 065409c0a688d6e1675381e24eec0108b1fa178d | [] | no_license | ErailsTm/erails2 | 87f3b0f7f295a914065ee961da7c00ab5d2ed9de | b729c817374d2a2e4a2f9066960d6da9589eb286 | refs/heads/master | 2023-05-31T14:16:11.450706 | 2021-06-20T05:39:17 | 2021-06-20T05:39:17 | 378,484,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for Erails project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"pmali4939@gmail.com"
] | pmali4939@gmail.com |
a27e412070741824b5c9051ee93fa96c1edc0930 | fd2e6ad2c91240c20b56d3dc7fa27e17934e8040 | /web.py | efd27ed880de4da75bfc51a64436afff10e3de8a | [] | no_license | hclivess/verihash | 1ded4583228e722cb3e17ef556b6b589d76bef42 | b906802ac53a390f7d4dbd0ba98aa2b5fcaeb231 | refs/heads/master | 2020-05-03T07:10:03.069063 | 2019-04-03T01:30:40 | 2019-04-03T01:30:40 | 178,490,698 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import tornado.ioloop
import tornado.web
import json
from main import compare
class MainHandler(tornado.web.RequestHandler):
def get(self):
pass
class WinHandler(tornado.web.RequestHandler):
pass
class AllHandler(tornado.web.RequestHandler):
def get(self, data):
feed = data.split(";")
... | [
"admin@bismuth.cz"
] | admin@bismuth.cz |
bbaa68dfa7f9442542c8ff9cf53cd20605e8ed0b | 8c2c17b25b148e7257c2cae29f6ea602f279a7f5 | /renlian/__init__.py | 183e5bee4fc8eb57a154b4383d4bfca5c2583148 | [] | no_license | yuec621/python_project | c9673b6056ed3bc584ec2b37cca5185cb876fd9c | 010694a9ad3df13d0f3118cd1e6331322b609a9d | refs/heads/main | 2022-12-27T09:35:30.762556 | 2020-10-15T08:34:34 | 2020-10-15T08:34:34 | 302,561,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | # 哔站python学习教程
# 听讲人 cy
# 开发时间:2020/10/14 0014 9:27
| [
"yuec621@outlook.com"
] | yuec621@outlook.com |
79a2dcfdc833d2523738bd7fe10500a39d165e8d | 4714a874e3491d82a59aa3c4157bc5a67ed9ea66 | /homeassistant/components/zwave_js/const.py | 9e6e37b4ee7a031e957e1863548bf5e6d9b96b37 | [
"Apache-2.0"
] | permissive | FrederikBolding/home-assistant | e1acf76803b0d0b1bf13d823750998e386672f49 | 4a94ed8f5a2b99da7b771bf740e5dc67349fc8b1 | refs/heads/dev | 2023-03-09T06:09:05.074488 | 2021-06-30T19:24:19 | 2021-06-30T19:24:19 | 121,178,973 | 2 | 0 | Apache-2.0 | 2023-02-22T06:16:43 | 2018-02-11T23:44:43 | Python | UTF-8 | Python | false | false | 2,005 | py | """Constants for the Z-Wave JS integration."""
import logging
CONF_ADDON_DEVICE = "device"
CONF_ADDON_EMULATE_HARDWARE = "emulate_hardware"
CONF_ADDON_LOG_LEVEL = "log_level"
CONF_ADDON_NETWORK_KEY = "network_key"
CONF_INTEGRATION_CREATED_ADDON = "integration_created_addon"
CONF_NETWORK_KEY = "network_key"
CONF_USB_PA... | [
"noreply@github.com"
] | noreply@github.com |
d2059670b77c0fc1dde1de8b1d7e451c5a4decd8 | bfea58e81ef27af99442c7d61635af4b65807b45 | /Stacks_Queues/python/StackMin.py | 31244967e10a5a9e78cb29492eea0f3521319840 | [] | no_license | n0execution/Cracking-the-code-interview | 1f7bd47a3e0d056a0fb888cfdacad81c6dd7c706 | 48702c058cdedbe9e1e05fc65637c7eb08c6fa38 | refs/heads/master | 2022-12-15T21:39:44.883095 | 2020-09-10T14:43:55 | 2020-09-10T14:43:55 | 275,937,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | from DoublyLinkedList import DoublyLinkedList
class StackMin(object):
def __init__(self):
self.elements = []
self.mins = DoublyLinkedList()
self.top = None
def push(self, x):
self.elements.append(x)
self.top = x
if self.mins.head == None:
self.mins... | [
"dimichkit@gmail.com"
] | dimichkit@gmail.com |
80343e2ef1678618bd6e94dcee9ff867d9228005 | 4ea07009f70a3a1fba19970b5e9edf76a71401ef | /Stock_List.py | 4c90d5f0451cca3f1f52e8094d4b712e93dd73df | [] | no_license | joaquincoitino/python_group2 | 4e5f2537f91cbebea2b9c6c0051251ea36e81e09 | 06b0ac933dd01379587375790d81b0b2dcaf45c4 | refs/heads/master | 2021-01-10T23:54:28.490785 | 2016-10-16T13:59:09 | 2016-10-16T13:59:09 | 70,787,157 | 0 | 0 | null | 2016-10-13T08:48:38 | 2016-10-13T08:48:38 | null | UTF-8 | Python | false | false | 12,129 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 13 16:27:06 2016
@author: lukaswolff
"""
import Stock as st
import Graph as g
class Stock_List():
def __init__(self, stock_list):
self.stock_list = stock_list
self.corr_tuples = []
def findStock(self, symbol):
for i in range(le... | [
"lukaswolff@Lukass-Air-2.local"
] | lukaswolff@Lukass-Air-2.local |
0c1eaf6ef7a2bb9f5dddea73b74a3522c161aa8e | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /release/ray_release/cluster_manager/full.py | 766362e1e86753db1292ea1840b740d60951cc41 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 4,391 | py | import time
from ray_release.exception import (
ClusterCreationError,
ClusterStartupError,
ClusterStartupTimeout,
ClusterStartupFailed,
)
from ray_release.logger import logger
from ray_release.cluster_manager.minimal import MinimalClusterManager
from ray_release.util import format_link, anyscale_cluste... | [
"noreply@github.com"
] | noreply@github.com |
ddce670d767f93002e8d4bf8043d71eab1477f7d | f72ecf85bc1d6b4014af4b35f7677adb7c3a77f3 | /venv/bin/flask | 86ab5e43da087b90a51022571fa6526c52effbb4 | [] | no_license | PropeReferio/covid19dashapp | cef5a803a26a00fc5a7adca57625d7f3de8710f8 | aea672aca23e0d6782080c966b24da6d826e1f91 | refs/heads/master | 2022-07-14T23:09:21.063273 | 2020-11-01T18:46:14 | 2020-11-01T18:46:14 | 253,976,374 | 0 | 0 | null | 2022-06-22T01:41:02 | 2020-04-08T03:32:05 | Python | UTF-8 | Python | false | false | 264 | #!/home/bo/Desktop/Freelance/cloud-covid-dash/covid19-dash/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lemuel.b.stevens@gmail.com"
] | lemuel.b.stevens@gmail.com | |
ec0101048d2b9d2d54f760a313917e0509b234f0 | 13e676bddb81f61f0a79493694e067b5d8042def | /src/1_imbalance_data/1_get_usersID_trainCheckins.py | db2f6f68d4590a0e65cd3860b2f50e4e89407214 | [] | no_license | calxu/small_paper | 8ec13e2589cbde5ac8ebfcdf5c64d0be681aab15 | 4518bf50074480bbe6310d6cff142acb915c27f4 | refs/heads/master | 2020-08-23T12:43:05.976655 | 2020-02-13T07:34:53 | 2020-02-13T07:34:53 | 216,619,592 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | #!/usr/bin/env python3
# encoding:utf8
"""
Task: Get users id and train checkins.
Author: Calvin,Xu.
"""
import os
import numpy as np
import sys
def getUsers(leastCheckins):
""" get usersID according users checkins >= leastCheckins. """
os.system("cut -d' ' -f1 US_Checkins | sort -n > US_IDs")
with open(... | [
"csxucaixu@gmail.com"
] | csxucaixu@gmail.com |
63e729706b9247f4d7c3f8fe34277918569d4823 | 7f8b095a46606baa97178178e6e466872119c288 | /src/avia/forms.py | 01b14f8ebfebc032720b1f031427933b7a011a6d | [] | no_license | idevin/tms-django | 10938b59e75fcd51b6b857a3044482ca777f65bd | 37f41d1ef053a3e3b878f0710c13864309765614 | refs/heads/master | 2022-07-10T00:17:51.290120 | 2019-05-23T17:59:44 | 2019-05-23T17:59:44 | 186,658,033 | 0 | 0 | null | 2022-06-21T22:01:11 | 2019-05-14T16:14:02 | HTML | UTF-8 | Python | false | false | 435 | py | from django import forms
class AviaForm(forms.Form):
avia_name = forms.CharField(label='имя', max_length=100)
avia_from = forms.CharField(label='откуда', max_length=100)
avia_to = forms.CharField(label='куда', max_length=100)
avia_passengers = forms.IntegerField(label='количество человек', min_value=1... | [
"ppp0.at@gmail.com"
] | ppp0.at@gmail.com |
475b8631c82add28bac0708d5e5b19e161ecc05f | 6e4030a5c438231442111e48d82df0a78c007e7a | /溫溼度.md | 8aa4e8ce87aec005fdc4d8db4bbf78255cce15a0 | [] | no_license | 06050704/-1 | 5088ba2fc08788eb39482974590e70ca9dd24630 | 5c0626e93264bf6dcadf6f09a977e8670798855d | refs/heads/master | 2020-09-07T19:30:12.658513 | 2019-11-11T03:18:41 | 2019-11-11T03:18:41 | 220,892,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | md | #!/usr/bin/python3
import sys
import time, RPi.GPIO as GPIO
import Adafruit_DHT
# Parse command line parameters.
sensor_args = { '11': Adafruit_DHT.DHT11,
'22': Adafruit_DHT.DHT22,
'2302': Adafruit_DHT.AM2302 }
if len(sys.argv) == 3 and sys.argv[1] in sensor_args:
sensor = sensor_a... | [
"noreply@github.com"
] | noreply@github.com |
0442ab56fce29c6079c0f3f6cc3752c5a8703db6 | c9bdc4bc96c7e9500a8f0f54527dec669d09ca67 | /python/p1.py | 896941932d85ce72ee1ecf2eb7546d9d0b444288 | [] | no_license | BenWarwick-Champion/Euler | 31deec8a4af2bbe6422f9e149dcb5638bae0960f | eb977e64123558ef7503e28485ee03cf14e05adc | refs/heads/main | 2023-03-23T04:18:06.044448 | 2021-03-15T21:53:03 | 2021-03-15T21:53:03 | 326,068,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Project Euler
# Problem 1: Multiples of 3 and 5
answer = sum([num for num in range(1000) if (num % 3 == 0) or (num % 5 == 0)])
print("Problem 1 solution is:", answer) | [
"ben.w-c@sky.com"
] | ben.w-c@sky.com |
b1aea5b2f2324b328b4e2530965f48498ca819cd | 478c3f341644effdf5d35b3f7674a77289396796 | /.local/bin/pyrsa-verify | 1987c5d2dd330ab19d6e7c4dc725858b559dcf09 | [] | no_license | devopstest17/devopstest17 | c1ac2e59d619087068208b25474654277e30e238 | 385761f7977e971e7d007eea5d3f985c4d1374c2 | refs/heads/master | 2021-09-24T23:37:03.744143 | 2018-10-15T16:52:28 | 2018-10-15T16:52:28 | 113,407,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"root@ip-172-31-92-184.ec2.internal"
] | root@ip-172-31-92-184.ec2.internal | |
8113383fefccf206fe5f6d87adab415315fb3db4 | 43fc3cef176c967a267b51ad61c20b1e8eb886c0 | /app/urls.py | 35035da4a2ab7f1b60d64b374fb42cbe6bec7ff9 | [] | no_license | uenotomoki/dockerdjango | 4f7c0278d064637a2d483ba9f275e3af8c22132a | d1a87cbaac13a1cb4237bfcf77b86f21f74e18b7 | refs/heads/main | 2023-03-10T03:06:00.185192 | 2021-02-17T00:55:41 | 2021-02-17T00:55:41 | 339,262,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.urls import path
from . import views
from .views import HelloView
urlpatterns = [
path('', HelloView.as_view(),name='index'),
#path('form', views.form,name='form'),
] | [
"noreply@github.com"
] | noreply@github.com |
48bab39c5a243ecef4065d47d455d1dbd10d2e53 | 9013d3326424b4923ce204834b42c9594583d638 | /cadastros/urls.py | e01e14fc8e857be79b03a518229e4af3ebdadc7d | [] | no_license | eliezerneris/djagorestframework | 82a57db91d2c3f5a0cd32ffd35e857b4770308b7 | b55c9bec2526faafd3a85d1a77c69137b4278125 | refs/heads/main | 2023-05-02T02:35:04.252683 | 2021-05-24T04:30:43 | 2021-05-24T04:30:43 | 370,226,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from rest_framework.routers import DefaultRouter
from cadastros.views import Ufs, Cidades, Usuarios
router = DefaultRouter()
router.register(r'ufs', Ufs)
router.register(r'cidades', Cidades)
router.register(r'usuarios', Usuarios)
urlpatterns = router.urls | [
"eliezerneris@gmail.com"
] | eliezerneris@gmail.com |
ea3ff6ee4a99f8908a3beb6ceab046be79bce78a | 2bef82d96285c9dda75f366aa9c6044afc166305 | /game_map.py | 22b43edbad557ca576dec64b2a65ef94c06396f0 | [] | no_license | enzo-mandine/rogue | 9eea8d51659ffe70d777ffe9bb4750e24c91fe43 | 7903462c74ef4a4e91d46ca30ed354a82125539a | refs/heads/main | 2023-09-03T06:25:55.378951 | 2021-10-29T13:55:19 | 2021-10-29T13:55:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | import numpy as np # type: ignore
from tcod.console import Console
import tile_types
class GameMap:
def __init__(self, width: int, height: int):
self.width, self.height = width, height
self.tiles = np.full((width, height), fill_value=tile_types.wall, order="F")
self.visible = np.full((wi... | [
"55873067+hugo-cerezo@users.noreply.github.com"
] | 55873067+hugo-cerezo@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.