blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9352e5c3de7221e19341d9653e66e2ddcf74025 | f7f159ab82ab21b8e66b2d83df066b0595ad2d35 | /Main.py | 89db2083b3c5b59b7958eb35de98e8f0c91baec2 | [
"BSD-3-Clause"
] | permissive | Sniper199999/Password-Manager | c8f0eef6ee0a61257a12b6cec0856f3fd0e569d3 | 795fff6d44678b286e941c83a4d83000cab44556 | refs/heads/main | 2023-03-31T14:28:13.385409 | 2021-04-10T03:39:02 | 2021-04-10T03:39:02 | 356,033,352 | 0 | 3 | BSD-3-Clause | 2021-04-09T14:28:10 | 2021-04-08T19:59:58 | Python | UTF-8 | Python | false | false | 51,448 | py | import concurrent.futures
import gc
import pathlib
import sqlite3
import sys
import time
import traceback
import tracemalloc
import csv
from tqdm import tqdm
import PyQt5
from PyQt5 import QtGui, QtWidgets, QtCore
from PyQt5.QtCore import Qt, QDate, QThread, pyqtSignal, QRunnable, pyqtSlot, QThreadPool, QObject, QFileI... | [
"noreply@github.com"
] | noreply@github.com |
8a13bf6f8bab21730334859a21b3f20a969dc547 | 65486d85e29b03dafdfb77d3c9269242a7bbfb50 | /crsrc/select_control_window.py | 0d719a5f0297d06590f2c259eb7c8fe9423bff90 | [] | no_license | raysmith619/race_track | 97b6ee3399b635a52553fdba7a7e8a1a1a1d89d1 | 407d542e1c8b09718c6e931f1991562805f04607 | refs/heads/master | 2020-06-12T11:19:49.963670 | 2020-02-01T20:56:39 | 2020-02-01T20:56:39 | 194,281,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,360 | py | # command_file.py
"""
Base for independent control window
Provides a singleton which is universally accessible
Facilitates
setting and display of game controls
persistent storage of values
window positioning / sizing
Undo / Re-do of value setting
"""
from tkinter import *
import re
import os... | [
"noreply@github.com"
] | noreply@github.com |
2801b6138be3174ce98462cd3204d91f471887c9 | fb740011de1be1460209b0537c6372a9d68e6748 | /collection_extensions/models.py | 8d756d50ac7da9709c02494baf8ca5f786317b58 | [
"MIT"
] | permissive | 722C/saleor-collection-extensions | 8d029999b82fc6b455bf137e0bdf9eeb00950795 | 09e204e5e4b558a1e76ab9894c97691ce12cbc7f | refs/heads/master | 2020-03-27T01:50:05.390936 | 2019-02-06T19:52:22 | 2019-02-06T19:52:22 | 145,746,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.db import models
from django.utils.translation import pgettext_lazy
from saleor.core.permissions import MODELS_PERMISSIONS
# Add in the permissions specific to our models.
MODELS_PERMISSIONS += [
'collection_extensions.view',
'collection_extensions.edit'
]
class CollectionExtension(models.Mode... | [
"722C@users.noreply.github.com"
] | 722C@users.noreply.github.com |
96a668e090bc833ec8d2f7fe57670f773d0f9346 | 292df2fa02d5cf537af997ef638d672dee22b4e3 | /faceAPI/test.py | 5b7a6d3017fc652a0e9934cab810f72e63230de9 | [] | no_license | jyang94/FR | a832fce8bdc2bd157f6571ca2c6a88251f74b8fe | b4879e3c5b156387fff1612c74b4a2ef1325292d | refs/heads/master | 2020-12-03T02:06:17.759190 | 2017-08-24T21:08:47 | 2017-08-24T21:08:47 | 95,905,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import cognitive_face as CF
KEY = '891d1fb7-b6ec-4d35-905f-73f75d2e42aa' # Replace with a valid Subscription Key here.
CF.Key.set(KEY)
BASE_URL = 'https://westcentralus.api.cognitive.microsoft.com/face/v1.0' # Replace with your regional Base URL
CF.BaseUrl.set(BASE_URL)
img_url = 'https://raw.githubusercontent.com... | [
"jyang94@illinois.edu"
] | jyang94@illinois.edu |
8d33e252e31922acc964f3b7f5d15ed2675df2ea | 96ffe7b81a3c3a087b3c2c5006121521efb56a99 | /cgi-bin/Transfer.py | 9fd490fb04f77ca3a0f755869d60b4debb4e7d34 | [] | no_license | michaelchum/comp206 | 6f7ff20c86e25ebfe4fb915b6c29d0c224b71717 | 872b5c60bc2567e9da99b1fdbdf99b14d25b1b7e | refs/heads/master | 2016-09-06T18:26:26.643408 | 2013-12-07T02:41:02 | 2013-12-07T02:41:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,672 | py | #!/usr/bin/env python
import cgi, os, Cookie, datetime, string, csv
import cgitb;
cgitb.enable() # for debugging
CURRENT_PATH = os.getcwd() # For path
PROJECT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir))
INVENTORY_PATH = os.path.join(PROJECT_PATH, 'inventory.csv')
TEMP_PATH = os.path.join(PROJECT_PAT... | [
"michaelhochum@gmail.com"
] | michaelhochum@gmail.com |
215542ed50def057441c247b5590d6988df265e5 | f237e2e5b302cda47080cce9d881c2147a7980b2 | /deid_app/backend/model.py | 3f7f308e2f076df69750c9b3f6daa8dff8e58d81 | [
"Apache-2.0"
] | permissive | kamalpuri/healthcare-deid | aed36c447c42daf46994d81b46ecf2550526fb21 | 24ffa7548e851b3b3d62c115c2581840cb944ed9 | refs/heads/master | 2022-03-28T10:36:02.111989 | 2020-01-23T18:24:41 | 2020-01-23T20:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,435 | py | # Copyright 2018 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"jiyang@google.com"
] | jiyang@google.com |
54818474436351fbdc7a3eccdcb07cc02800b020 | 4ae10ef8387331cc135a3a3dad769d7ba21411b1 | /helpers/menu.py | 27d86cc4177fdcdc648b2140626f994a842c8d01 | [] | no_license | ghtt/coffeeforme | e952b7bb9d0a8b493cd254e66bc3dc53de945ffc | 9be6cccbed1dc9cd967392d283834fbec3f38a20 | refs/heads/master | 2020-09-14T13:54:36.062486 | 2019-11-21T10:29:03 | 2019-11-21T10:29:03 | 223,147,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | from __future__ import print_function
from builtins import input
from consolemenu import SelectionMenu
from helpers.user import Salesman
from helpers.utils import get_available_items
from helpers import log_action
class Menu:
YES_NO = (u"Yes", u"No")
def __init__(self, order, user):
self.beverage_li... | [
"Artem.Krasnoyarov2@harman.com"
] | Artem.Krasnoyarov2@harman.com |
114149fec0284de3f99d24c69da497de3a90a4b3 | b281bf077707e4618a438aaf044f863e188b88ea | /Scripts/static-script.py | bd7ee0edd297980177ea7d1970874e025f080c10 | [] | no_license | ale-demer/seg_env | 1189c52cc6f354f507d104517a7c47ece93d0ba1 | d273b45f1ea494ebd532c9e804906b53a4e0baf9 | refs/heads/master | 2021-07-03T22:21:34.580286 | 2019-10-22T19:26:52 | 2019-10-22T19:26:52 | 88,980,478 | 1 | 0 | null | 2021-06-10T18:19:06 | 2017-04-21T12:15:43 | Python | UTF-8 | Python | false | false | 400 | py | #!c:\django\seg_env\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'static3==0.7.0','console_scripts','static'
__requires__ = 'static3==0.7.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"ademergassi@univisiononline.com.ar"
] | ademergassi@univisiononline.com.ar |
864790084dc94b56d7eaa62e42e5751fcb846178 | 4982aed9799e01abdbfed543de70cc0b00a9c443 | /1-your-first-python-program/from_import_test.py | 32ba48ab3b96881f521462c0b7df03d0d39e75b7 | [] | no_license | amygdalama/dive-into-python3 | 17a6634a08699c1b99fbcf3ddb2ec96ab5b4ba77 | be1a9f158027eef359aa90b0b1b56ac45d83548f | refs/heads/master | 2021-01-22T11:42:09.545286 | 2014-04-21T21:26:40 | 2014-04-21T21:26:40 | 18,335,850 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | """This is a module intended to help learn what `from X import Y` does.
If we, in the Python interpreter, or in another module, type
>>> from thing import Foo
do we also have access to Bar? Will initializing a Foo object throw
an error, since we're only importing Foo and not Bar? Or does the
`from X import Y` s... | [
"amyehanlon@gmail.com"
] | amyehanlon@gmail.com |
33aab0bef83d47b8f1fc27e2c12897886964d167 | 2c1a8df1e853c4cd39ad790bc869d15ecfd08239 | /manage.py | 3b4092ded13edbf01d6528411bf8ded99de63d36 | [] | no_license | weyoume/wecheck | 566a17c3e18200248c36fe9e818f3fdf91b9981b | bab66736ea8e00d3228ee7e557afa93e7dc972c6 | refs/heads/master | 2020-03-28T03:37:36.093609 | 2017-11-03T14:40:22 | 2017-11-03T14:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nsfwchecker.prod_settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure ... | [
"paul.martynov@gmail.com"
] | paul.martynov@gmail.com |
c1a55c6dec87bb76583f986a99fcb0320f5af197 | 3a01d6f6e9f7db7428ae5dc286d6bc267c4ca13e | /examples/meshing/cubit_cellsize/geometry.jou | 4cd01773763136a0a61e7e9d00fb980c27587ea5 | [
"MIT"
] | permissive | youngsolar/pylith | 1ee9f03c2b01560706b44b4ccae99c3fb6b9fdf4 | 62c07b91fa7581641c7b2a0f658bde288fa003de | refs/heads/master | 2020-12-26T04:04:21.884785 | 2014-10-06T21:42:42 | 2014-10-06T21:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | jou | # -*- Python -*- (syntax highlighting)
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodyna... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
7f1536238a632602bddbbc5140100706c0ce8a7e | 9a9873fcfb6633beb0628ec6702ae3ab87dd3ac2 | /src/Myproject/myapp/admin.py | ba07e394ad540d78d8d8f052f855b5da78fc363b | [] | no_license | AmirDabir/profiles_rest_api | d710ac414a6f5581164d8f16329bf18da08ad669 | 1b28b8438c3ac763a2971f1b4bf02e8f78fee555 | refs/heads/master | 2021-06-18T05:00:35.975616 | 2019-05-24T11:01:37 | 2019-05-24T11:01:37 | 188,397,293 | 0 | 0 | null | 2021-06-10T21:30:38 | 2019-05-24T09:51:13 | Python | UTF-8 | Python | false | false | 139 | py | from django.contrib import admin
from . import models
admin.site.register(models.UserProfile)
admin.site.register(models.Profilefeeditem)
| [
"you@example.com"
] | you@example.com |
e44815f8d1c0bc5b211deb8151bdf74acf1ca914 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2405/60647/319754.py | dd4f05c63665116ceb7578073c1c26a630b6c804 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | a=int(input())
list=[]
for i in range(a):
temp=input().split()
list.append(temp)
if list==[['1', '2'], ['1', '3'], ['2', '5'], ['3', '4'], ['4', '6'], ['6', '5']]:
print(4)
print(2)
print(8,end='')
elif list==[['1', '2'], ['1', '3'], ['2', '4'], ['4', '3']]or list==[['1', '2'], ['1', '3'], ['2', '4... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
05cc75c1ebd292f90fc01c57d5099deae2908a39 | ed648a50848d19cfc1735f3c6ff107cd8d68ebfa | /Scripts/knn.py | ea5635b74166199d580fe64e5f5423ff18858b4b | [] | no_license | RTG8055/Breast-Cancer-Detection | a4471b67d8bf70da21cfa893b7590a4b10bc11da | 64e1e30b331680e65e9908f4d22d67318eeb357d | refs/heads/master | 2021-09-11T17:39:29.727978 | 2018-04-10T10:15:21 | 2018-04-10T10:15:21 | 126,067,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | # Example of kNN implemented from Scratch in Python
import csv
import random
import math
import operator
import numpy as np
def loadDataset(filename, split, trainingSet=[] , testSet=[]):
with open(filename, 'rb') as csvfile:
lines = csv.reader(csvfile)
dataset = list(lines)
for x in range(len(dataset... | [
"rahul.agarwal4@learner.manipal.edu"
] | rahul.agarwal4@learner.manipal.edu |
e9e0a04ef1f740c5cec50b516d7581d813ead068 | edbe52325160ee95abbf0fac056abda68f5263c7 | /scripts/max_qc_lens.py | 2c8e85acc561946ba35b6038cfdaec6bd0f119cd | [] | no_license | crachmanin/UtahSquad | 4eb455c3ca0a1bde16c4523f5edf3172796a6eea | 863aa4f58a8c2e2e28f26fc690ccbf13910ac23c | refs/heads/master | 2021-01-21T05:14:26.399378 | 2017-04-10T00:27:31 | 2017-04-10T00:27:31 | 83,155,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import json
from spacy.en import English
from collections import Counter
fn = "../data/train-v1.1.json"
with open(fn) as fp:
data = json.load(fp)
parser = English()
# data["data"][0]["paragraphs"][0]["qas"][0]["answers"][0]["text"]
context_len = Counter()
question_len = Counter()
with open("contexts.txt", 'w') as... | [
"rachman1@cs.utah.edu"
] | rachman1@cs.utah.edu |
9cbcdccf7504ce648def56c757e439d9ecb689a1 | 8dad7614cadd81c275e623ce422df717025f0e7a | /google_search_using_api_final.py | c040405b7a9d647874f6cbe6ce91819f77697f2a | [] | no_license | sumedhaagarwal/Phishing-Email-Detection | c0a498ea94b985b83106f74678b57614afff9c33 | 467929b762655f7e348a04c310132c43316adc24 | refs/heads/master | 2021-07-02T04:34:55.613227 | 2017-09-20T07:28:02 | 2017-09-20T07:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from googleapiclient.discovery import build
import pprint
my_api_key =
my_cse_id =
def google_search(search_term, api_key, cse_id, **kwargs):
ans = []
try:
service = build("customsearch", "v1", developerKey=api_key)
res = service.cse().list(q=search_term, cx=cse_id, **kwargs,start=1).execute... | [
"noreply@github.com"
] | noreply@github.com |
8ed3f12dce23a91b53c829180ac31bbda2655e43 | 4770c6f3aa2e7f2f861ddb65c87eaed3080e273a | /BoostedProducer/crab/config/QCD_Pt_120to170_TuneCUETP8M1_13TeV_pythia8.py | 6f33b3915b27043211d8f54f4821ebdc2a63a440 | [] | no_license | skudella/BoostedTTH | e62a6f0def7cb89d74405d9ce336ccb8641d2952 | 594abe59f50bee45411970d1848f4b935fc29aea | refs/heads/CMSSW_8_0_8 | 2020-12-28T09:27:03.643477 | 2016-08-16T08:03:54 | 2016-08-16T08:03:54 | 65,825,294 | 0 | 0 | null | 2016-08-16T14:05:12 | 2016-08-16T14:05:12 | null | UTF-8 | Python | false | false | 950 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'QCD_Pt_120to170_TuneCUETP8M1_13TeV_pythia8'
config.General.workArea = 'crab_projects'
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.psetName = '/nfs/dust/... | [
"shawn.williamson@kit.edu"
] | shawn.williamson@kit.edu |
a88bcdef5c8ce186e0de3d257e81ce99b7bb7b1d | d0a71b7783d2bcfb1dd889019ffbff1b896044b4 | /algorithms/insertion_sort/test_insertion_sort.py | d4e647cf707d8e55fd5928bedb11b04f9d4c2317 | [] | no_license | leeroywking/data-structures-and-algorithms-python | 18d86d19267ff714b7200462569485439bd37ff4 | b46a6778b18af2a7a302662ce0e7ef7b4be41aff | refs/heads/master | 2022-12-23T19:20:20.265685 | 2020-10-06T03:20:08 | 2020-10-06T03:20:08 | 268,134,728 | 0 | 0 | null | 2020-10-06T03:20:09 | 2020-05-30T18:09:58 | Python | UTF-8 | Python | false | false | 485 | py | import random
from insertion_sort import insertion_sort
def test_basic_insertion_sort():
sample_list = [1,5,4,2,3,6,7,0,9,8]
insertion_sort(sample_list)
assert sample_list == [0,1,2,3,4,5,6,7,8,9]
def test_weird_insertion_sort():
ints = [i for i in range(0,10000)]
mixed_ints = [i for i in range(0,... | [
"leeroywking@gmail.com"
] | leeroywking@gmail.com |
e4c11b013d3957dc9e12f4d8cfed95c45b84940b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03547/s578419228.py | 4b8e8510ebbb7289bec6709787b8f4a94ff54caf | [] | 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 | 141 | py | p, q =input().split()
alpha ="ABCDEF"
p1=alpha.index(p)
p2 =alpha.index(q)
if p1>p2:
print('>')
elif p1<p2:
print('<')
else:
print('=') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aaebd71b6375e0d24869c1ce8d3d9881aa37a209 | 0218712e24c1724702650c0ff2e8372575938e00 | /Bank_Account/gym.py | dbcbb16b0734e065759c3b6e11d1d99d94cf5fad | [] | no_license | saurabh9495/hackerearth | 6fed1e861c058ca3e65c23bb562191ea11dd2fde | 98ca5497c34105b4755c8b76510e1117430bd6c9 | refs/heads/master | 2021-04-14T14:37:19.790170 | 2020-06-08T23:47:37 | 2020-06-08T23:47:37 | 249,238,455 | 0 | 0 | null | 2021-01-06T13:07:17 | 2020-03-22T17:42:09 | JavaScript | UTF-8 | Python | false | false | 627 | py | # 1
# 7
# [0,1,1,0,0,1,1]
# [1,1,1,1,0,0,1]
test_cases = int(input())
for i in range(test_cases):
len_ = int(input())
str_ = [int(i) for i in input().split()]
streak = []
high = 0
ctr = 0
for ct,j in enumerate(str_):
if j == 0:
ctr += 1
high += 1
if ct... | [
"saurabhkumar4829@gmail.com"
] | saurabhkumar4829@gmail.com |
701b23e333f709b0d9060c421a62902df0ca6b47 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_signalising.py | 03096497b28f5713a20a0b166bddfdc797f34490 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py |
#calss header
class _SIGNALISING():
def __init__(self,):
self.name = "SIGNALISING"
self.definitions = signalise
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['signalise']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2b58648327a977744d81c7ad109b27f53d11d00f | 57dde3a84ad02c57c66650c78eba2331ad4a8eb4 | /train_pnet.py | 19286fbc4250ba85afe84e849ae3106aaefa406e | [] | no_license | zxm111222333/MTCNN_pytorch | ca1b72d4b2e49deed081e329fb713d8fbd037688 | e0cd7a2da4e9f0818aad8dcba8cd9de5eacf35a4 | refs/heads/main | 2023-02-10T08:48:53.084634 | 2020-12-30T09:28:55 | 2020-12-30T09:28:55 | 325,508,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | # 训练PNet
from train import Trainer
from nets import PNet
if __name__ == '__main__':
# normal
trainer = Trainer(r"D:\MTCNN\data\MTCNN-Pytorch\normal\gen\CelebA\12",
512, PNet(),
r"result/normal/checkpoint/p",
r"result/normal/logs/p",
... | [
"469618871@qq.com"
] | 469618871@qq.com |
e8dbfc8a47e6bbbdfeb295298045cf5499cd43f2 | 490ffe1023a601760ae7288e86723f0c6e366bba | /kolla-docker/zun/zun/api/controllers/versions.py | 6ac4471f78f92e874a764f591196c259369ed098 | [
"Apache-2.0"
] | permissive | bopopescu/Cloud-User-Management | 89696a5ea5d2f95191327fbeab6c3e400bbfb2b8 | 390988bf4915a276c7bf8d96b62c3051c17d9e6e | refs/heads/master | 2022-11-19T10:09:36.662906 | 2018-11-07T20:28:31 | 2018-11-07T20:28:31 | 281,786,345 | 0 | 0 | null | 2020-07-22T21:26:07 | 2020-07-22T21:26:06 | null | UTF-8 | Python | false | false | 5,654 | py | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"Mr.Qinlichao@hotmail.com"
] | Mr.Qinlichao@hotmail.com |
636f294cd320f0f58a4faff1e27ed74b56e0de9a | aa3ae29ccfa13c20d7fa6e3a0ab17efadfb7d5d3 | /archive/word.py | b9d3c2547d317a7925dcbf4fd25fdd189e2e24d5 | [] | no_license | iamjehaklee/MIS3640 | c34c95d6405e4b309b801bd6a807af95941aa47c | 223d32309010b76a45029b68b46b3239b7ca152d | refs/heads/master | 2020-06-30T18:02:34.305024 | 2016-10-20T03:57:44 | 2016-10-20T03:57:44 | 67,155,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | # fin = open('words.txt')
# 1
# def read_long_words():
# """
# prints only the words with more than 20 characters
# """
# for word in fin:
# words = word.strip()
# if len(words) > 20:
# print(words)
# read_long_words()
# 2
# def has_no_e(word):
# """
# retur... | [
"jlee24@babson.edu"
] | jlee24@babson.edu |
dae5583e81f8c6db030b66300c1708813ac07ad9 | df63db425e82621ba9a34c0852f94aab9deed18f | /TPs/TP3.py | e2766c9a51e0335502010141beb4642a39ec99eb | [] | no_license | catarinaopires/mnum_20_21 | dc80cf28a4b21e62097d0698568c33c5092de906 | fc96b5a82c0730bd7e826c42b94df68655600507 | refs/heads/main | 2023-02-20T02:35:32.609482 | 2021-01-23T18:07:22 | 2021-01-23T18:07:22 | 331,327,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | import math
def f(x):
return 3*x**3-x-10
def f_linha(x):
return 9*x**2-1
def metodo_newton(guess, precision):
x = guess
while True:
x1 = x - f(x)/f_linha(x)
t = abs(x1 - x)
if t < precision:
break
x = x1
return x
def metodo_picard1(g... | [
"catarina.o.pires@hotmail.com"
] | catarina.o.pires@hotmail.com |
9c72326a1bbeebc84b0b7882fcc858c6f747372b | b5c9d425982739e39da571e37dd6ebf5f408a975 | /jump/00/A/jump01.py | 7566b43d87bb746335f5cfe6557a3e9c8a86eb9f | [] | no_license | gitnimo/noob | 58e84bf57b117e815ff373929953790e7b7ffbad | 7aa2ce7d79d6f367a601f91a1ff5d7a4aa62cebc | refs/heads/master | 2023-02-03T05:36:44.147164 | 2020-12-27T13:14:42 | 2020-12-27T13:14:42 | 259,830,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import urllib.request as req
import json
import csv
ur='https://www.twse.com.tw/exchangeReport/BFT41U?response=json&date=&selectType=&_=1589434864462'
with req.urlopen(ur) as qq:
ioi=json.load(qq)
for line in ioi['data']:
print(line)
fn='jump.csv'
with open (fn,'w',newline='') as file:
wri... | [
"noreply@github.com"
] | noreply@github.com |
02a853983184d76df5f7624d38ae6489cfe08416 | 472a9b3fc58344d0f4b6fe8f01ac94fc8570a531 | /src/B/GAN/gan.py | d9bf36aea02ad8f3b658ca3409e4c076fd81af8d | [] | no_license | yooq/tensorflow_test | 70e21c0a7dcbf8b4f16e86201a61c2f454f1726c | 015917a975b173462e96da4e8eec49a2f425d91f | refs/heads/master | 2022-12-31T06:35:41.934962 | 2020-10-16T08:51:49 | 2020-10-16T08:51:49 | 277,729,486 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
class Generator(keras.Model):
def __init__(self):
super(Generator, self).__init__()
# z: [b, 100] => [b, 3*3*512] => [b, 3, 3, 512] => [b, 64, 64, 3]
self.fc = layers.Dense(3*3*512)
se... | [
"990250040@qq.com"
] | 990250040@qq.com |
d43c5ad6b55154421ba862c68aa5ce52c930a00d | 0144d5bfcc2f9af5a2eecae9bb763f8154e84134 | /app/models.py | f06a5ce2b44b062517a641582835ac6d77fc0f17 | [] | no_license | tund-hcmue/fl-myblog | 57f09466a104547c0db443c7102c1e16fcd67452 | 2a4d2ea6a71668516d1228e32678386559e3acc5 | refs/heads/master | 2023-03-08T15:47:34.191874 | 2021-02-05T02:15:20 | 2021-02-05T02:15:20 | 333,739,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | from app import db, login,app
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from hashlib import md5
import jwt
from time import time
followers = db.Table('followers',
db.Column('follower_id', db.Integer, db.ForeignKey('user... | [
"tund@pop-os.localdomain"
] | tund@pop-os.localdomain |
ca09b4be23b0d9780a7658b3ccc0b0a718ebe1af | 92162bd75bf7721c3c9a9789ff1d7001b7a93a7b | /Weather.py | 5acff82a4dec916a2598c73475e6d1f0d56c9fe0 | [] | no_license | serebrich/Telegram-Bot-travel- | 7569365fbd554aef2a3e8f3de792c2ed524ca045 | 1aa2a0658c11a9c1abf52dba393e567767607561 | refs/heads/master | 2022-12-19T05:54:17.593689 | 2020-09-28T17:55:05 | 2020-09-28T17:55:05 | 299,387,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import requests
import datetime
def weather():
data = requests.get('http://api.openweathermap.org/data/2.5/weather?q=Kyiv&appid=e6125469fdc9299b59d07b130ac1b38e')
description = data.json()['weather'][0]['description']
celcius = round(data.json()['main']['temp'] - 273.15, 1)
return 'Today is {}\n... | [
"noreply@github.com"
] | noreply@github.com |
836c36c00cd3e452e9505c7fbed11ff09b7d6602 | 4222d388849d1769939e2164a82dc69f0432dd10 | /mysite/settings.py | ffe89f2dba54631286a766e22373d0afe032cb52 | [] | no_license | Kirsten29/my-first-blog | 1d708514b9fbb35a7d4b7f71eb6e06a711b7e2f1 | 5021b76ce60a7156fc7ce3a7954a1838e494c230 | refs/heads/master | 2020-09-02T06:14:34.455761 | 2020-02-21T21:24:46 | 2020-02-21T21:24:46 | 219,153,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.6.
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
# ... | [
"kirsten.ferwerda.github@gmail.com"
] | kirsten.ferwerda.github@gmail.com |
6f90c7577b150bcc6dd5ed8bfcdd50072771b61c | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /network/connection/rfkill/actions.py | 5bad0b2e48b47475b826255fc28b1405fbb1b8fc | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get
de... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
1908c93ff6adac1664998b245835adecb683b3f7 | 002307ff9d548b5d6914d792b51b32fa2fa8aef2 | /edgeDilate.py | 29b5f4f5d05373aef91e5ceab9a4a2369102b3a0 | [
"MIT"
] | permissive | YellowPaint/Cartoon-Style-Transfer | d0a430a852fcc6bd81e7b0de4dadb9e446feed09 | b20dc1ebc98a1ebc245935274510b06b1b68e895 | refs/heads/master | 2023-01-11T13:31:13.482287 | 2020-11-19T07:12:23 | 2020-11-19T07:12:23 | 314,115,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,031 | py | import cv2 as cv
import math
import numpy as np
import os
def edge_detect(image):
blurred = cv.GaussianBlur(image, (3, 3), 0)
gray = cv.cvtColor(blurred, cv.COLOR_RGB2GRAY)
edge_output = cv.Canny(gray, 50, 100)
return edge_output
def edge_dilate(image,edge_output):
image_dilate = image;
... | [
"1965952293@qq.com"
] | 1965952293@qq.com |
5d2980203c637c3ef1694e88a48a5742d1163ee1 | 1372e9667b953207eb883fc641340f835d6ab70b | /dialoGPT.py | c58466d2479d6f650d70d0615cf1a71f97f8ba7b | [
"MIT"
] | permissive | Awesome12-arch/Conversational-AI_Chatbot | 97a65ede22a65053dec564b9afcf9a3242fcf3e3 | 977531526cfc45cc25e84375e5ff2d648ee9e644 | refs/heads/main | 2023-04-23T22:14:35.119941 | 2021-05-17T12:17:17 | 2021-05-17T12:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,739 | py | # -*- coding: utf-8 -*-
"""DialoGPT.ipynb
Automatically generated by Colaboratory.
"""
# !pip install transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# model_name = "microsoft/DialoGPT-large"
model_name = "microsoft/DialoGPT-medium"
# model_name = "microsoft/DialoGPT-small"
t... | [
"noreply@github.com"
] | noreply@github.com |
36a6cb060598aabcc7b3957417de8713e2e07f71 | 2fb896c6dc62bcdc0f1ea475a1f5bb12f6a25d10 | /test.py | f20e5cc0baf28e45bb979f0d016e0177ec16fcda | [
"MIT"
] | permissive | Croip3/3d_packing | 53aeb4a896734d67f2ba03215a14370d7204301b | 57be9ca0d0e7b5264cbc6200cfb45e5ccaedd9d7 | refs/heads/main | 2023-03-23T06:51:43.431130 | 2021-03-13T18:49:41 | 2021-03-13T18:49:41 | 347,396,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import requests
url = 'http://localhost:3000/'
with open("test_request.json", "r") as f:
payload = f.read()
headers = {'content-type': 'application/json'}
r = requests.post(url, data=payload, headers=headers)
print(r.json()) | [
"ossitech@googlemail.com"
] | ossitech@googlemail.com |
ff57e51d7d8c7900f41850b0491bf04745cd8a60 | 921c3abdb2478b15eb38667e50114b563780dffa | /automationpractice/WebDriverWaitConcepts.py | 7f2900a074e09d2d32ded948cd9536bbee3343e6 | [] | no_license | maheshkafle/Selenium-Concepts | 0c126ca11a2253c10a96b70003f880ebdffe929e | 8ad31d4bd4c0d158991e9c6897498fe783773170 | refs/heads/main | 2023-07-06T15:37:00.417338 | 2021-07-11T12:23:34 | 2021-07-11T12:23:34 | 384,937,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
drive... | [
"mahesh.kafle@smarsh.com"
] | mahesh.kafle@smarsh.com |
f79e101889ab19e2f579de301543f22f9a29a160 | 2de1aaa4d9bde03e21601bfeddf7e85863b0d54a | /Python/plus/Process/process_class.py | 4e8bb9548a4a90ef8566c47da963f2aaa21837db | [] | no_license | jasondzy/Python | d0a0ffad8aaac1f75d9e7c5ecd5cc9c33bd712ea | 9fe9cf23f7defa3581e7bcfe4cf8ec6a830b6cd7 | refs/heads/master | 2021-01-01T18:46:00.739387 | 2018-02-11T14:59:26 | 2018-02-11T14:59:26 | 98,430,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py |
from multiprocessing import Process
import time
class New_process(Process):#这里定义了一个新的Newprocess类,这个类继承了Process这个父类,即可通过这个新建的类来创建一个自定义的进程
def __init__(self,value):
Process.__init__(self)#初始化调用了父类中的init函数,同时也加入了自定义的value的变量
self.value = value
def run(self):#定义了一个run方法,切记:此处定义的run方法是对父类Process中的run方法的一种重写,接下来的父类... | [
"812724347@qq.com"
] | 812724347@qq.com |
9c7e98340e2d2c04f3abc411926e9aaaac820ac3 | 3332147f4b94dead946368d700af4ff9f9d1ccfb | /myjob/scrapy_item/innocom/innocom/debug.py | 1558b21757b90b87c379eb87b5caec0dced33072 | [] | no_license | zsl1105/work | ee76cb2b9af2711196e4605e10b50ffe17abb5da | e468f68652a653864f4629f50e267ab65c633c6a | refs/heads/master | 2020-08-27T04:35:14.330657 | 2020-04-14T03:19:27 | 2020-04-14T03:19:27 | 217,186,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from scrapy import cmdline
cmdline.execute(['scrapy', 'crawl', 'innocomspider'])
| [
"18203693349@163.com"
] | 18203693349@163.com |
a3f1dbdb0b54fdceca459084b874b4fa5fa2ffd6 | 70840b7cc0aed28ff4ad4c865d2541f466cdcd18 | /hashthat/hashing/views.py | 360711ae79f19b5de791e5d7ceb47f6c8fa996d3 | [] | no_license | kimebmen/Test-Driven-Development | 2a49d4bb96f28e7f31aa6940c9f59d4aa98669b5 | 2b27b9467531251c6e47ba37aaf41698401f98f2 | refs/heads/master | 2022-11-22T12:38:03.656746 | 2020-07-19T22:40:18 | 2020-07-19T22:40:18 | 280,962,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | from django.shortcuts import render, redirect
from .forms import HashForm
from .models import Hash
import hashlib
from django.http import JsonResponse
def home(request):
if request.method == 'POST':
filled_form = HashForm(request.POST)
if filled_form.is_valid():
text = filled_form.cleaned_data['text']
text_... | [
"simbolonkimebmen@gmail.com"
] | simbolonkimebmen@gmail.com |
7d6b73c0cd67996ed65f9c40f741c96abd18095c | 79e6161d09be67655d3a6beb6c5d63a1392cb079 | /test_udp_server.py | c62dc825dfae63a6c62be5e38aaeb0bb2c861f15 | [] | no_license | antonvh/RobotCameraGPS | 69fc07d788dcc53a71bfbb7c0b8c73443fb3599e | 853156a6847f34c2c3ae9bcdc1ffbf4919f6087e | refs/heads/master | 2021-01-15T19:06:33.878830 | 2017-12-23T15:00:50 | 2017-12-23T15:00:50 | 99,808,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import socket
import time
try:
import cPickle as pickle
except:
import pickle
# Create an UDP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
PORT = 50008
# Bind the socket to t... | [
"Anton@fabrique.nl"
] | Anton@fabrique.nl |
799bf438eda7a4ed0f8881dac88297ae616de6cc | 58f68e1e21a437cfa332b6e84c098233a36d36e4 | /GestionPedidos/migrations/0003_auto_20210110_2159.py | cacaa8ace3e0489f4beb5d31d1414480826cf96f | [] | no_license | Aderlin-Cruz/Tienda-Online-en-Django-con-Pyhton | d0a97cb2036a9dfe5ec12d919f5f65d38279f8fa | 1eaa4593f0945a79cd7775affce6b9f2b303ddec | refs/heads/main | 2023-03-02T05:25:43.876877 | 2021-02-08T23:18:20 | 2021-02-08T23:18:20 | 335,744,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.1.5 on 2021-01-11 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('GestionPedidos', '0002_auto_20210110_2137'),
]
operations = [
migrations.AlterField(
model_name='clientes',
name='di... | [
"aderlin.cruz95@gmail.com"
] | aderlin.cruz95@gmail.com |
a5c1d5d239e5c78d0bf7a0d14fcc5bf984ccb671 | 75e36620cdcfcce1f5a13378d8c1814990a7c48f | /src/deadbyzombie/misc_lib.py | fc48044f00bd979214e41a037da4f5c7988d2471 | [] | no_license | mkramlich/Dead_By_Zombie | aa916e164e075303badb4f6c1eb2869561a5ce24 | a4c80276d90f88dde0ba965c167f016548b6ae57 | refs/heads/master | 2021-06-07T07:17:30.637950 | 2017-09-18T19:00:16 | 2017-09-18T19:00:16 | 13,845,377 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,455 | py | import datetime
import math
import random
import time
logfile = None
cfg = {}
currentTick = 0
debug_enabled = False
#refactor away the currentTick and other ganymede-isms that shouldn't be here
def init_logfile():
global logfile
print 'init_logfile() called'
logfile = file('log.txt','w')
print 'lo... | [
"groglogic@gmail.com"
] | groglogic@gmail.com |
573203a09293bf705160fe3679230281477da313 | a379f99513def3a4cebc095ca191243c5414d608 | /test_sparse_field/__manifest__.py | 2d9acc375f5dd353e572d3c0302a706a52519c8d | [] | no_license | florian-dacosta/sparse-field | 47e81a0e0c3f71315ad374544c6f820daa5adef5 | 48d140f932a5a13a5cacde2a0f48532855fac729 | refs/heads/master | 2021-05-07T21:27:53.385436 | 2017-10-31T15:59:08 | 2017-10-31T17:20:10 | 109,017,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | {
"name": "Test Sparse field",
"version": "11.0.1.0.0",
"category": "Uncategorized",
"website": "https://akretion.com/",
"author": "Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"base_sparse_field_sea... | [
"florian.dacosta@akretion.com"
] | florian.dacosta@akretion.com |
e96c34b5a2752d637a9630f5f8751d799f91d06d | 3826f007cd4b018b8ae679397ca5cfd173f90b12 | /medicamento/urls.py | 784d29394c334d9e5bcd376ba352ce10ee0b5375 | [] | no_license | crashorbo/consultorio | 36695ec7a558b9d9a6c48fb43d7e2ca9652a9c76 | ccdb06790bc70380a22d7731e667b022a87f908a | refs/heads/master | 2023-08-27T16:38:49.976154 | 2021-10-25T04:05:39 | 2021-10-25T04:05:39 | 298,436,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from django.urls import path
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from .views import AjaxListView, TableAsJSON, AjaxCrearView, AjaxEditarView, AjaxEliminarView, MedicamentoAutocomplete
urlpatterns = [
url(r'^as_json/$',login_required(TableAsJSON.as_view()), name... | [
"alexander.calani.apaza@gmail.com"
] | alexander.calani.apaza@gmail.com |
80340e6ec345bd948e0f49145820524e5629dc42 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/ConvertBinaryNumberinaLinkedListtoInteger.py | 5d29f321b243398b982ae634a6a2575a4f4f9b1c | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | """
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.
Return the decimal value of the number in the linked list.
Example 1:
Input: head = [1,0,1]
Output: 5
Explanation: (101) in ba... | [
"here0009@163.com"
] | here0009@163.com |
6ddb7cad28e46a5304c0ca42fd98faef739aa48d | 44449222a88f8254659655204def425653b75d06 | /algo_and_data_structures/a3200-2015-algs/lab7/Kabanova/radixsort.py | 4fa42953bd53484002534fddf7b38dee3e3dbe0a | [] | no_license | catr1ne55/ITMO_14_18 | 15fc5b991ffefa8dbe89aa23b4e2f70dcc45eef6 | e3e6b619cf8613d8840bec3c2055e48a2b47c58b | refs/heads/master | 2020-05-27T21:01:59.144029 | 2019-05-27T08:01:40 | 2019-05-27T08:01:40 | 188,788,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | import sys
import math
__author__ = 'catherinekabanova'
def simple_radix_sort(array):
max_length = -1
for number in array:
number_len = int(math.log10(number)) + 1
if number_len > max_length:
max_length = number_len
buckets = [[] for i in range(0, 10)]
for digit in range(0... | [
"noreply@github.com"
] | noreply@github.com |
4158694127a050d841b165f8bea5fbb2756f0578 | e2b06285043d964a557c3b1905c32d8500b6fc98 | /dev_blogs/python-projects/source/app1.py | d644ade7db6251d834a62c13fbc4ec104104579a | [] | no_license | yiqing95/py-space | 15a17c3dc0b1c8978111704ce2c4380afc5705ec | f6e1695c5932688de26a797fd919e87b4098c5de | refs/heads/master | 2021-01-10T01:05:50.478098 | 2015-10-16T23:14:06 | 2015-10-16T23:14:06 | 44,413,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | __author__ = 'yiqing'
# 语法 [variable] = [value]
aString = 'I love spam'
anotherString = 'I love spam'
# 只是name 一种绑定 标签label
aInt = 6
intAlias = aInt # 别名
# 是否相等 ?
print( aString == anotherString )
print(
anotherString is anotherString
)
| [
"yiqing_95@qq.com"
] | yiqing_95@qq.com |
bef3d379f4e7d8670d0d5bd58585ef586efd94c5 | 611ba585ff34ddd3f49bfec52887c466bab7fa9b | /P19 2-4.py | ac9d7dfc463e970e1db86b2f446243f074a3b9af | [] | no_license | Eamonnnnn/Eamonnnnn.github.io | f7b90bf6d84486f57d45791893c3c2060aa72ff1 | 35ba3bdcbe142a94835cc87c6e51b92ddef93d07 | refs/heads/main | 2023-06-05T00:00:14.405489 | 2021-06-23T00:47:22 | 2021-06-23T00:47:22 | 366,547,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from thinkdsp import TriangleSignal
from thinkdsp import decorate
import matplotlib.pyplot as plt
triangle = TriangleSignal().make_wave(duration=0.01)
#triangle.plot()
#decorate(xlabel='Time (s)')
#plt.show()
spectrum = triangle.make_spectrum()
#print(spectrum.hs[0])
spectrum.hs[0] = 100
triangle.plot(color='... | [
"noreply@github.com"
] | noreply@github.com |
5de8426ad12ee6f74167e7527e7d6194305ce8b3 | 1111412a700de2eff6aac87beeb7a157f2255e16 | /program/ascii_generator.py | a5d7187a69218564874c2aee4e9973510f628a92 | [] | no_license | yurkanin/project | 8a4005863e20d276e58e1114cda77563c30b5e19 | 4e70f5a75ab8de68fdced852de42ee9eabe87b82 | refs/heads/master | 2021-01-10T21:32:30.742276 | 2014-09-01T22:12:13 | 2014-09-01T22:12:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | class face:
def __init__(face):
from PIL import Image
pic = Image.open('/home/Justin/image.jpg', 'r')
pic = pic.resize((300, 150))
face.pic = pic.convert('L')
face.BAL = 0
def pixel_to_letter(face, value):
if(value in xrange(0, face.BAL)):
return '0'
elif(value... | [
"yurkanin321@yahoo.com"
] | yurkanin321@yahoo.com |
ef1d029d21795328d7d3b05cec1d55b48bf5f0fd | 30d2035626907509328494bdce8394d268b6e8b5 | /oldjaratest/billy/scripts/spikeAnalysis_tuning.py | 5df6d9b4e2a40cc96ec6c93e3ff4bf105269bb6b | [] | no_license | sjara/jaratoolbox | 5f32b81b04002ce2ee736970701ced4a370e4ccc | 0a4a0d2700427acf00de0b9ed66f0b64c02fdc43 | refs/heads/master | 2023-08-19T14:54:39.612875 | 2023-08-13T00:05:28 | 2023-08-13T00:05:28 | 21,258,341 | 3 | 4 | null | 2018-11-01T04:16:13 | 2014-06-26T23:43:44 | Python | UTF-8 | Python | false | false | 3,694 | py |
'''
Example of using spikesorting module (which uses KlustaKwik) for spike sorting
'''
from jaratoolbox import spikesorting
from jaratoolbox import settings
import numpy as np
import sys
import importlib
mouseName = str(sys.argv[1]) #the first argument is the mouse name to tell the script which allcells file to use... | [
"nickponvert@gmail.com"
] | nickponvert@gmail.com |
418e7fffede6d5fefeb3177718d7d68110f0aa63 | 301d3cc70e90e921019b0c02588607ad5f3939d8 | /eim/small_problems_dists.py | b12ccb8c9abd1e18a7742aac9135e0e34fa9c4c9 | [
"Apache-2.0"
] | permissive | chiragjn/google-research | d96c7dc0224ddd7fe21ea4df8bd4c2b43057393e | 9a71a0efd41d5a1478a1c4f2603efaf64c1c33fd | refs/heads/master | 2020-08-31T06:02:59.434670 | 2019-10-31T05:48:01 | 2019-10-31T05:48:01 | 218,616,849 | 1 | 0 | Apache-2.0 | 2019-10-30T20:18:07 | 2019-10-30T20:18:07 | null | UTF-8 | Python | false | false | 4,729 | py | # coding=utf-8
# Copyright 2019 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
229dfc91036abacf688643e3664c3a8fcba54fd9 | addb5d0110b9b39ff5479e7637743943293e1c96 | /perf_corr.py | d0e443c092fabbcaad38bd9ff466b0eae226bb73 | [
"MIT"
] | permissive | jefftrull/MyParallelAlg | 5bc3f817a4b8eccbdbdc8f5ed5aba87e69a29404 | 87ca7ce89152c70c46ffabad897f4d8ed82a6e24 | refs/heads/master | 2020-07-08T11:20:13.704708 | 2019-10-10T04:30:03 | 2019-10-10T04:30:03 | 203,657,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,899 | py | #!/usr/bin/env python
"""Plotting (and otherwise analyzing) the results of "perf stat" as applied to my benchmarks"""
# Copyright (c) 2019 Jeff Trull
# 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 ... | [
"jeff.trull@ciere.com"
] | jeff.trull@ciere.com |
49fbcb4f59f7436c48d7de55d5b7a6b878bb748c | cd1a6453435950d6a6a975e415d78a892a8d3554 | /test_git/git_demo.py | 622e3b31242332369fa6ce5265086230841f9e15 | [] | no_license | LastingN/HogwartsLG5 | 3edc957af96d05a3ac135b94749fc110abe16c1a | 399af3d621e079d9cdd4b20ea4b5c6c3dc512e10 | refs/heads/main | 2023-01-30T08:00:27.054220 | 2020-12-16T02:39:22 | 2020-12-16T02:39:22 | 321,843,757 | 0 | 0 | null | 2020-12-16T02:20:08 | 2020-12-16T02:20:04 | null | UTF-8 | Python | false | false | 39 | py | print('seveniruby')
print('yunbosheng') | [
"bosheng.yun@mosoink.com"
] | bosheng.yun@mosoink.com |
a9e8b7e3fbd3b6994f53f7a59a4ff8dc21656765 | 80366d2cea3183e372e9b69ac91272d7bee94d0a | /Scrapy/novel/novel/settings.py | 9134bc785d190d5d89a4388df626eef837682523 | [] | no_license | lanvce/spider | 300bac5755ffd3ba367621189bb00c61fa9f6a70 | b7b4ab95f76b42932fcd200c999652a217a1069a | refs/heads/master | 2020-08-06T18:30:16.100643 | 2019-10-06T04:51:48 | 2019-10-06T04:51:48 | 213,107,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | # -*- coding: utf-8 -*-
# Scrapy settings for novel project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topic... | [
"1569101820@qq.com"
] | 1569101820@qq.com |
323cb43f75cbb9c3439848d4669a824f94236131 | f1e5f93b04a2b4bb328c6f46409faa540afb110b | /dbHandle.py | 5e12ae1a1e092e27b1417d8e8b1985df39df28db | [] | no_license | MukulKadaskar/Document_Processing | 11ff2c210cd1ac37b026bb48b720a0d7d4236587 | 17a74a9fb16877933ea602be21a7b0cb9555cd88 | refs/heads/main | 2023-03-31T05:57:59.342261 | 2021-04-04T10:09:51 | 2021-04-04T10:09:51 | 354,495,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import config
import sqlite3
def connectDB():
return sqlite3.connect(config.DATABASE_NAME)
def authenticateUser(username, password):
connection = connectDB()
dbcursor = connection.cursor()
userCount = dbcursor.execute(
'''SELECT COUNT(*) from users WHERE username=? AND password=?''', (userna... | [
"mukulkadaskar@gmail.com"
] | mukulkadaskar@gmail.com |
48b09f3f8e4f41f68b94712aaa3d44d0419eedf3 | 722e7b462fc5f5a776c3d2891193304f5c41e1e1 | /tensor-decomposition/decompose.py | ba334f4a21f55e4311ff0b71d096438efea18243 | [
"MIT"
] | permissive | tjufan/keras-deep-compression | afe0c6426ba0e0bc2190e08681d908454444c6e2 | 8abf638e969f72d979879b7477c9bb651cf7c702 | refs/heads/master | 2022-11-22T12:51:53.457521 | 2020-07-26T01:43:43 | 2020-07-26T01:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | from warnings import filterwarnings
filterwarnings("ignore")
# Data loading and pre-processing
from keras.datasets import cifar10
from keras.utils import np_utils
from keras.optimizers import Adam
import tensorflow as tf
import numpy as np
import os
import csv
# Model related imports
from utils.hyperparams import p... | [
"taruj95@gmail.com"
] | taruj95@gmail.com |
752355892fba107da3cb4f9b05a8f2659f93c887 | 3fa613ea51721892a7cc80ea681a4b331f7f1dd5 | /30 Days Challenge/maximun_sum_path.py | 817d4a03a636aa6d77926f061bedc53825bdc3df | [] | no_license | sandy836/LeetCode | 3b1fbbcdc057b8cff8bd6884cbcd924ba12c0649 | ef87d08c37f31df113b09ba4ecb42f51dd0b69b7 | refs/heads/master | 2022-05-24T00:53:47.315127 | 2020-04-30T19:00:57 | 2020-04-30T19:00:57 | 255,095,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def maxPathSum(self, root: TreeNode) -> int:
self._sum = -float('inf')
def helper(root):
if not root:
... | [
"sandeepshrivastava518@gmail.com"
] | sandeepshrivastava518@gmail.com |
8600965422e7fcfe675570ed2c7ec5783ed7f540 | 3178bf3d83f0afa9859a4a7faeeb66becb93f122 | /tf_lib_restlet_post_example.py | 2ccc81ab2c1a11eadaebdd64708904c592e729cd | [] | no_license | eriawan/TokenBasedAuthentication | 98245dbcc73600b53a993ed789c4ca631a2a2f50 | 3e4b9cdbcc481207eca0839233b5ac1ac8762b68 | refs/heads/master | 2020-04-21T12:10:20.666905 | 2017-10-30T20:17:21 | 2017-10-30T20:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | #
# Copyright (c) 2014-2017 Techfino, LLC
# 1900 Market Street, 8th Floor, Philadelphia, PA 19103, USA
# All Rights Reserved.
#
# This software is the confidential and proprietary information of Techfino LLC.
# ("Confidential Information") - You shall not disclose such Confidential Information
# without prior written p... | [
"luke.pirtle@gmail.com"
] | luke.pirtle@gmail.com |
d849e7d094a163664d0d12e4b25892bafd277218 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/new_short/true_random/job20.py | 79840e70bfc91cf948425c0b30be364dffa1aef5 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,999 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
1b62bf9ecb032caad9aa4b3f21477ede52ef0788 | e3b98b7e69a1c0868840288ba11f09c658085e67 | /helper/factors.py | e987bb88ca2aececf77d863a80695dc3b9d3423a | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LaminarIR/framework | 994b5b8f87d04da0e430f169ac849c8d46619839 | fc65bea693e0e842e9af16529cede181e53878f8 | refs/heads/master | 2021-01-22T11:21:06.912484 | 2016-02-29T13:08:14 | 2016-02-29T13:08:14 | 34,259,205 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from fractions import gcd
def lcm(a,b):
"""Compute least common multiplier of two numbers"""
return a * b / gcd(a,b)
def listgcd(l):
"""Compute the gcd of a list of numbers"""
if len(l) == 0:
return 0
elif len(l) == 1:
return l[0]
elif len(l) == 2:
return gcd(l[0],l[1])... | [
"yousun.ko@cs.yonsei.ac.kr"
] | yousun.ko@cs.yonsei.ac.kr |
8b2b8eaf8b31c4926c83f376c10a44592ac90278 | ec916ca0fb23cf9c667be17f8ef7e713decbc794 | /.venv/bin/pyrsa-sign | a8b7500c1a4bb87e272fc6ab849d112f78625a76 | [] | no_license | BazioDEV/djangovueauth0 | b82935e866cd2d185f715b57426336c5c341a887 | 6caf2f4190fceca0c50520e7082eb7866cdf6970 | refs/heads/master | 2023-03-27T19:36:28.158672 | 2021-04-02T12:07:44 | 2021-04-02T12:07:44 | 354,005,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/Bazio/Desktop/BazioProject/BazioProject/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import sign
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
| [
"bazio.apple@gmail.com"
] | bazio.apple@gmail.com | |
5e9fcbb08741923755d31a2f9b79bb364acba592 | 7ccc79f3f024c883836686b56a958363167a3a74 | /examples/nat.py | f556972631a44b7a8162bdaf6dfc36192fc3c8b7 | [] | no_license | sarum9in/DEPRECATED_iptables_python | 4d90730e0ece8aa002b03f1e010985dcf5cf436e | f0f005fc81af18aa8a694d4a2c220ab5127a200b | refs/heads/master | 2021-01-01T18:29:05.839194 | 2014-03-17T06:13:18 | 2014-03-17T06:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from iptables.profile import *
iptables = IPTables()
iptables.set_debug()
router = Router(
iptables=iptables,
local_ip=None,
local_iface="internal",
local_net="192.168.0.0/24",
inet_ip=None,
inet_iface="external"
)
router.set_tcpmss()
router.masquer... | [
"sarum9in@gmail.com"
] | sarum9in@gmail.com |
a2ed2f5ee23537aae209f324e79800a9b06a5f11 | 226ba07c53d105a7696bff2c3d3f25124f589dd9 | /app/helper/parse.py | 04252e4cdc60895d8974fbbeacc7f108a5841c81 | [] | no_license | legenhand/Nana-API | d7d2aac16c832192a79e20560d3dd410abdd4339 | 6e8109a2cd72c3ce1e1a76013ade72fb7779d9c6 | refs/heads/master | 2022-12-23T06:40:39.718090 | 2020-09-26T13:35:10 | 2020-09-26T13:35:10 | 293,725,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import json
def parse_json(path):
f = open(f'app/{path}')
data = json.load(f)
f.close()
return data | [
"firman@sagita.tech"
] | firman@sagita.tech |
92623d22b99744d2d8fc18cd85ee1bff64b326e3 | a02bff59ae0b35c6b109de7ab98690eeb25b4a1f | /huimwvs-scan/plugin_demo.py | da9c050ea3239a5afc074a79c95f297c78ba0041 | [] | no_license | n1f2c3/huimwvs | 44efd438aaa65fa361a107b59744cd35e13a5e1d | 7103ca8f5eae1f88a7f2d4d120bc79896fcfd26e | refs/heads/master | 2021-09-15T00:23:05.682782 | 2018-05-22T19:35:39 | 2018-05-22T19:35:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from modules.scan import MePlugin
import urlparse
class MeScan(MePlugin):
"""
类名不可修改,而且需要继承于plugin
"""
def __init__(self,flow_data=0):
super(self.__class__, self).__init__()
if flow_data != 0:
self.flow_data=flow_data #如果接收到扫描器... | [
"641031823@qq.com"
] | 641031823@qq.com |
0aabade0be9a746d16c826bebd6c8781e4c8ca94 | 46d2fe5661f08161c025e4fb292dfe18bd16ccae | /dataloader.py | ec12e3aa2bce8bdae08e00bee0e63f42b5b21c3f | [] | no_license | severinL96/OCR | 91d38782b3aee51a43c8e1b6412c22c1ee9a0ef5 | 56a9a9707ec5289a887a55edecd3a77ee7ebb2c1 | refs/heads/main | 2023-08-01T15:13:21.103387 | 2021-09-09T15:29:29 | 2021-09-09T15:29:29 | 403,867,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | import pickle
import random
import string
from torch.utils.data import DataLoader
from PIL import Image
from helperFunctions import *
################################################
class DataSet():
def __init__(self, vocabulary, batch, images, words, boxes):
self.vocabulary = vocabulary
self.bat... | [
"severin.laicher@web.de"
] | severin.laicher@web.de |
8960a6eb3e55943df0d3a9749230b90ba824897e | d8ae9ae613cbd3b678c69a74aa4f0b3d48e75543 | /ajax/wsgi.py | bd12aef3249c1118323b96494fc1a2c287197ad1 | [] | no_license | kyrios213/django-ajax2 | d270520943bc42685b014029730a2b3d3036031b | ac4bed6dc9d61f62bbf224bf844717c37f182d50 | refs/heads/main | 2023-06-04T12:29:18.909949 | 2021-06-26T12:39:39 | 2021-06-26T12:39:39 | 379,134,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for ajax project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"kyrios213@gmail.com"
] | kyrios213@gmail.com |
3d5eff4ece689484cc780f5e6e49ab5a114fc2ba | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArCnv/LArByteStream/share/TBReadLArDigits_jobOptions.py | f2aca9be2644e4d6a34a91a7b9933a0eab82682f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | # Location & number of raw data file:
runnumber=1000066
RawDataDir="/castor/cern.ch/atlas/testbeam/combined/2004/"
RawDataFilePrefix="daq_SFI-51_calo"
#Gain, set HIGH,MEDIUM,LOW or FREE
GainKey="FREE"
# Number of events to be processed
theApp.EvtMax = 100
#Result location (full path name, no ~ and trailing / please!)
... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
2218d68267cf2025d4e8b1425e51032e6268a099 | edb69ef057593343c86bfc08024422cd8292207f | /learning_logs/forms.py | 632a828108316e943f5b4e8fe467ba85b88c63d8 | [] | no_license | MVNDAY/LearningLog | 27005b3a411bdabaa56c23258d893e06f09caa0d | 1d4436fdea5610b0e63cdb55ebbd2d112115d74a | refs/heads/master | 2023-04-13T10:22:05.160792 | 2021-04-26T17:46:26 | 2021-04-26T17:46:26 | 361,832,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django import forms
from .models import Topic, Entry
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields = ['text']
labels = {'text':''}
class EntryForm(forms.ModelForm):
class Meta:
model = Entry
fields = ['text']
labesl = {'text':''}
widgets = {'text':forms.Textarea(attrs={'cols'... | [
"83238300+MVNDAY@users.noreply.github.com"
] | 83238300+MVNDAY@users.noreply.github.com |
eb7f866be569d3768fbfc46c84cae0e10531b259 | 5aac2f6c2c17ef7db8b6d8d0638b8fc49b609ad9 | /python/dynamic programming/lcs_w_subseq.py | d30758663957fe3141593caeba6a41e3925861bf | [] | no_license | jeaniebean/General-Coding | 39231b5c715cad83481afdc167b9cc3433f20c04 | 17871a86bcd8e0a93cec2515f8818effe5807cb9 | refs/heads/master | 2020-04-06T07:10:34.669667 | 2015-07-07T02:57:04 | 2015-07-07T02:57:04 | 38,557,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | from collections import defaultdict
from sys import stdin
# LCS with subsequence
def lcs(a,b,c):
opt, back = defaultdict(int), defaultdict(int)
len_a, len_b, len_c = len(a), len(b), len(c)
for i in xrange(1, len_a+1):
for j in xrange(1, len_b+1):
for k in xrange(1, len_c+1):
if a[i-1] == b[j-1]:
fi... | [
"hjl1011@gmail.com"
] | hjl1011@gmail.com |
a7ee608f051ba30410101ed1d6b4a6c8569ebf0f | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/87c62f4088a0424bb58160c5100fae14.py | 3e39b0d85f86b9886cb05623a0e4159d654581df | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 607 | py | from re import search
class Bob():
"""Speech in the eyes of Mighty Bob"""
def hey(s, speech):
"""hey(speech) will return response"""
# Speech may be in unicode - will interfere with Yelling
speech = speech.decode('unicode-escape')
empty_speech = search(r"^\s*$", speech)
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1ef26af31307dda04ef2b82987de30f296a7289d | e85ef6454e3237a50fbed0c57a0096952aa415b9 | /HomeWork7/ex2.py | 0085ae2ee287ef892ca25ff9bdddc74c70806146 | [] | no_license | mazh661/distonslessons | b4098093969319d8465b61cdd1fa2f8fe8f9456e | 040aacf5b710462e78326b05f468fccd35817ef8 | refs/heads/master | 2022-06-20T22:09:05.793342 | 2020-05-12T12:48:05 | 2020-05-12T12:48:05 | 250,292,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from random import randint
def sel_sort(array):
for i in range(len(array) - 1):
m = i
j = i + 1
while j < len(array):
if array[j] < array[m]:
m = j
j = j + 1
array[i], array[m] = array[m], array[i]
a = []
for i in range(10):
a.appen... | [
"56090629+mazh661@users.noreply.github.com"
] | 56090629+mazh661@users.noreply.github.com |
2dc3d133dff1965bf2ef33a60d5273159f63b35b | 10154a211cf46bd5161f849d42ebb5a065633600 | /src/chapter03/logclient1.py | cedcf447d8bd0a3188bf4dacb3c72ad7699edda2 | [] | no_license | akitanak/tcpip_socket_programming_by_python | 2f7f1ff731614ecc642af18a2d7427ded7183737 | c3ada712ec71ddcc2c33fdf0ca57a9f8f41342f0 | refs/heads/master | 2022-12-30T19:13:32.270165 | 2020-10-19T12:49:36 | 2020-10-19T12:49:44 | 294,952,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import socket
import sys
HOST = "localhost"
PORT = 50000
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
client.connect((HOST, PORT))
except Exception as ex:
print(f"cannot connect server. {ex}")
sys.exit(-1)
while True:
msg = input()
if msg == "q":
break
client.sendal... | [
"akihito_tanaka@me.com"
] | akihito_tanaka@me.com |
e260630b10228a6c87c6e7e3b1fed1758bf70df6 | 73c2d498769265d359b129899fe3288559617358 | /config/settings.py | a18421b134dbd6cec3237cc03e8fece956c6b041 | [] | no_license | seiya0723/assets_manager_02 | 5ae94634c576a69c575a7372be90dd9bf3b5e01d | c8045ee525e17181d10b11cebebb661cfeec426f | refs/heads/master | 2023-05-24T15:17:21.221179 | 2021-06-26T01:08:22 | 2021-06-26T01:08:22 | 380,166,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.6.
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/
"""
... | [
"seiya@asahina"
] | seiya@asahina |
2eda07bf02819c05da11d1a94fd0a7706798cd08 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/materialistic/testcase/interestcases/testcase0_4_1_016.py | 91259aaa8195df59a1eef4d665319b70059c3af3 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,072 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
63132fcbb62843e51c44bd4314bd6e9b20c9b746 | 3b05502b5daded001558007ad474ae6fa4cd5001 | /virtual/bin/django-admin | 00de6bcff4c3f17d137a99cc8abd9aead9eec8ff | [
"MIT"
] | permissive | sharon0812/Instagram | 3317d02df5adc229814080d378d832fde9725521 | 727de920ef5ae1bf2ce3ff4dab908991b3b60ea6 | refs/heads/master | 2023-02-20T17:30:20.078518 | 2021-01-18T18:52:09 | 2021-01-18T18:52:09 | 330,000,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/moringa/Desktop/Instagram/virtual/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())
| [
"anyangosharon@gmail.com"
] | anyangosharon@gmail.com | |
43d617c482d3746efa0d42d70aec11705491f2e0 | c4ecbe5850c81dcc7c382fa1f579ce7715ac79f7 | /Python/Python第8讲/chapter8_5_1.py | ee2f5faf6573bf131473ecdf60978d2b17c65f03 | [
"MIT"
] | permissive | Text-Related/reference-materials-for-review | ef47126a7df5a53abe1cb8a55b8be69e55d3b84d | 75795dae531adb57408d0c5a67dd7a6a9985dae4 | refs/heads/master | 2022-11-10T22:47:36.864755 | 2020-06-28T02:32:36 | 2020-06-28T02:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | class Person: # 基类
def __init__(self,name,age): # 构造函数
self.name = name
self.age = age
def say_hi(self):
print("Hello, My name is {0}, I'm {1}".format(self.name,self.age))
class Student(Person): # 派生类
def __init__(self,name,age,stu_id):
Person.__init__(self,name,age)... | [
"jingyang@iisjy.cn"
] | jingyang@iisjy.cn |
993f11bbd3b432faf87ee54d7e09f7832748f98b | 84290c584128de3e872e66dc99b5b407a7a4612f | /Statistical Thinking in Python (Part 1)/hinking probabilistically-- Continuous variables/The Normal CDF.py | 37f4e63e736c79ea2d0e24ae46a6aa24ff144e39 | [] | no_license | BautizarCodigo/DataAnalyticEssentials | 91eddc56dd1b457e9e3e1e3db5fbbb2a85d3b789 | 7f5f3d8936dd4945ee0fd854ef17f04a04eb7b57 | refs/heads/main | 2023-04-11T04:42:17.977491 | 2021-03-21T19:05:17 | 2021-03-21T19:05:17 | 349,784,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generate CDFs
x_std1, y_std1 = ecdf(samples_std1)
x_std3, y_std3 = ecdf(samples_std3)
x_std10, y_std10 = ecdf(samples_std10)
# Plot CDFs
_ = plt.plot(x_std1, y_std1, marker='.', linestyle='none')
_ = plt.plot(x_std3, y_std3, marker='.', linestyle='none')
_ = plt.plot(x_std10, y_std10, marker='.', linestyle='none')
... | [
"78171986+BautizarCodigo@users.noreply.github.com"
] | 78171986+BautizarCodigo@users.noreply.github.com |
8fc1eecf108777b0bed1a119ea374a8fef2a052c | fb553880396ea9dc22b3726c0b9b67ea18f6e129 | /jobapp/migrations/0019_applicant_image.py | 6654906806e70c71f2a6acd25a1f0198ea831cac | [] | no_license | Chessy11/joblisting | 3e051176b9aa4c578af239230d8dc63d8f064ab5 | 9454bc24264b1593e03d1e5a990a7915de846f58 | refs/heads/main | 2023-06-30T12:36:19.342819 | 2021-08-07T12:28:50 | 2021-08-07T12:28:50 | 393,678,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 3.2.5 on 2021-08-03 14:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobapp', '0018_alter_job_header_image'),
]
operations = [
migrations.AddField(
model_name='applicant',
name='image',... | [
"zurabsx@gmail.com"
] | zurabsx@gmail.com |
c9b93f157a3e964bceaecb67720ffe65138722e6 | 84b28b409b1795b477368ea9fb3768b004c0f71c | /vgg16ModelTransferLearning.py | 3a5487753f259fd6a3e2a8f3bb456ebfaae454ee | [] | no_license | Zumbalamambo/cancer_nn | 284a9d801677bb9ce57687f431b59b8c59ba0121 | 27ca45fb0f92606e25b50c4698dba3973d12a75e | refs/heads/master | 2021-06-29T00:55:19.675876 | 2017-09-19T08:21:33 | 2017-09-19T08:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,376 | py | import numpy as np
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense
from keras import applications
from keras import regularizers
from keras import optimizers
img_width, img_height = 224, 224
t... | [
"tanmoy.openroot@gmail.com"
] | tanmoy.openroot@gmail.com |
0e961088587c4d26499d0e50d40a84d62c3939ac | ce6ad72a93b27015af32549bb28828bb78f5acf4 | /heap/test_Heap.py | becfac88c39017600ad028418589f9b55e7ff0aa | [] | no_license | shaowei1/algorithms | 5c012a9550fe5c307c33ac69f0928822e3847c71 | 6c6419fa794b4d4cf6f464256af39ee10d96ba2f | refs/heads/master | 2020-04-16T02:31:29.309388 | 2020-03-28T12:27:50 | 2020-03-28T12:27:50 | 165,199,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from heap.Heap import swap, Heap
def test_swap():
data = [1, 2, 3]
swap(data, 0, 2)
assert data == [3, 2, 1]
def test_math():
assert 2 / 2 == 1.0
def test_heap():
given = [33, 17, 21, 16, 13, 15, 9, 5, 6, 7, 8, 1, 2, 22]
heap = Heap(capacity=len(given))
for key in given:
heap.... | [
"shaowei@infimind.com"
] | shaowei@infimind.com |
2b708896244dc81483ba670c605a1aeb71aca52f | 3bc67ddddaee36ee63daf25cfd802629d30ac22a | /films/migrations/0001_initial.py | e4846b0acfa4cb009ceaaefa9f9ed05b37af8847 | [] | no_license | Santa29/films_blog | 57430d47767f9caf4e1e65113311d98e6ccae2c8 | 7611c8bc28864a4c5128538e2e39dabbb3d99c66 | refs/heads/master | 2022-12-22T08:36:05.157317 | 2020-09-28T16:57:26 | 2020-09-28T16:57:26 | 298,570,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # Generated by Django 3.1.1 on 2020-09-25 11:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FilmReview',
fields=[
('id', models.AutoFie... | [
"michaels17525@mail.ru"
] | michaels17525@mail.ru |
8e45431cafbed8d8492dfbf9e778047ab20269c4 | cd5077e11b651758ebd4b5b5d164762dc34d3efe | /smart_ads/main_app/client/views.py | 423e05167f068c05517382a191f31c49c9a80250 | [] | no_license | abhijitbangera/smart_ads | 72b333aca6034538af724d2a48e91b9c76fe759a | 6b54ac6ed6615b6ec3866f0573443baa9ac92ed3 | refs/heads/master | 2020-03-28T16:56:30.851291 | 2018-10-01T10:50:52 | 2018-10-01T10:50:52 | 148,743,166 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from client.models import adsDetails, clientDetails
from client.forms import adsDetailsForm, clientDetailsForm
from django.contrib import messages
from django.shortcuts import render
from django.http import Http404
fro... | [
"abangera@juniper.net"
] | abangera@juniper.net |
9f25f23e4a3b38e0b1707293624c45509668fa73 | ca1e432c66ca9289cc25039f6c035c292e298d15 | /content_management_portal/tests/interactors/test_delete_prefilled_code_interactor.py | 6fb0d6be8ca9884c895d26570a10ebb0604b1d5f | [] | no_license | raviteja1766/ib_mini_projects | 9bf091acf34e87d7a44bec51a504bdb81aceae27 | 3fa36b97cfa90b5f5853253480934cf27714aa15 | refs/heads/master | 2022-11-19T07:08:27.061315 | 2020-07-02T16:54:42 | 2020-07-02T16:54:42 | 272,033,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,707 | py | import pytest
from unittest.mock import create_autospec
from django_swagger_utils.drf_server.exceptions import NotFound, Forbidden
from content_management_portal.interactors.presenters.presenter_interface\
import PresenterInterface
from content_management_portal.interactors.storages\
.question_storage_interface... | [
"ravitejak125@gmail.com"
] | ravitejak125@gmail.com |
e603fc70dd7dba09f23e20f9c6dd48458e6c39c7 | a4f8fc197c9bf6cd451ec11769a6a95609ef6b01 | /Mainlab3.py | cbbe955b6bb2c45d83e36804484e447675905d1b | [] | no_license | Abhimagic1/Labs-Final-project | 17802f52ba43fc52e716aaf2178659c7aeb2b4fd | 5909872565b60bfd9e80e91f8fd7187fdc5e160b | refs/heads/main | 2023-05-13T20:20:42.282759 | 2021-06-10T03:10:00 | 2021-06-10T03:10:00 | 362,699,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from Lab3 import CircularQueue
queue = CircularQueue()
for number in range(5):
queue.enqueue(number)
print(queue.get_raw_contents())
queue.dequeue()
queue.dequeue()
print(queue.get_raw_contents())
for number in range(7):
queue.enqueue(number)
print(queue.get_raw_contents())
queue.dequeue()
queue.dequeue(... | [
"noreply@github.com"
] | noreply@github.com |
c643ad462dac111c5a51019399f2510ddf02e6ef | 57edf4fc537a162a940c3342ebdec5d17ead086c | /ros_src/cv_ros/devel/lib/python3/dist-packages/cv_bridge/__init__.py | f26954034eca47a5bb21364dab9ead3ed9c2545a | [] | no_license | chindimaga/MoPAT_Design | f7da614680f8be8a03a7119971dd4857ac039496 | 048b260ca2f9ac49384a05fd3840c2e40126acb5 | refs/heads/master | 2022-12-18T21:08:54.099146 | 2020-10-03T02:42:22 | 2020-10-03T02:42:22 | 285,557,414 | 0 | 0 | null | 2020-08-06T11:49:30 | 2020-08-06T11:49:29 | null | UTF-8 | Python | false | false | 94 | py | /home/otoshuki/cv_ros/devel/.private/cv_bridge/lib/python3/dist-packages/cv_bridge/__init__.py | [
"guining.pertin.iitg@gmail.com"
] | guining.pertin.iitg@gmail.com |
d088cf5bd12cc6c2c1ef60a1887186e1c10d4cf5 | af7050b659e48a979809a705066baf7cd1a84255 | /107_Binary Tree Level Order Traversal II.py | bf88bc31854dd8320e7de7b9655975222e3854b1 | [] | no_license | zyk930/leetcode | b9547cbbeaf0202c2bb3e1a22d30f1ecddd4244e | 27c9da844550080c41fae60906274347f9e62919 | refs/heads/master | 2020-04-10T15:13:45.886717 | 2019-06-04T01:37:10 | 2019-06-04T01:37:10 | 161,101,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/14 21:12
# @Author : zyk
# 给定一个二叉树,返回其节点值自底向上的层次遍历。 (即按从叶子节点所在层到根节点所在的层,逐层从左向右遍历)
#
# 例如:
# 给定二叉树 [3,9,20,null,null,15,7],
#
# 3
# / \
# 9 20
# / \
# 15 7
# 返回其自底向上的层次遍历为:
#
# [
# [15,7],
# [9,20],
# [3]
# ]
# Definition for... | [
"zhouyk@buaa.edu.cn"
] | zhouyk@buaa.edu.cn |
18dca538aae212a269fd1272386df357db3f819d | ec33d47aaf946c0ef7aefe5bd8c01ab72beacedf | /z_training.py | cb538d5f5dae7b05d89fd57993a400097f136dfc | [] | no_license | shivampandoh2000/Chatbot-Recommendation-Sys | 881346438c6644b9d4a57abe5aa6c4c10082b77d | 0fcdab74f8071b34aaecc90245007cd2328fe2fd | refs/heads/master | 2022-12-17T03:31:24.131733 | 2020-01-03T09:16:10 | 2020-01-03T09:16:10 | 231,544,212 | 1 | 1 | null | 2022-11-29T16:28:04 | 2020-01-03T08:22:20 | Python | UTF-8 | Python | false | false | 1,698 | py | from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
import os
import random
def get_feedback():
text = input()
if 'yes' in text.lower():
return True
elif 'no' in text.lower():
return False
else:
print('Please type either "Yes" or "No"')
return ge... | [
"shivampandoh2000@gmail.com"
] | shivampandoh2000@gmail.com |
736b79623797c54f3348fce18f4d3da4d49d040c | d4a34fcbf5125168f08222d7814196b23fa1ef39 | /setup.py | e8b59831856fdebfa2fb44e4fb17a25b8f39250b | [
"Apache-2.0"
] | permissive | ntk148v/hypercontainer-py | 41772fed1b9021db4285c935c33a7a5f306dc261 | e1ea21b986d0d8d4339e9b3ddf8ac23954f13a56 | refs/heads/master | 2022-05-16T01:35:39.133653 | 2022-03-22T04:24:33 | 2022-03-22T04:24:33 | 100,349,612 | 0 | 0 | NOASSERTION | 2022-03-22T04:24:33 | 2017-08-15T07:09:22 | Python | UTF-8 | Python | false | false | 1,671 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
# TODO: put package requirements... | [
"kiennt@vn.fujitsu.com"
] | kiennt@vn.fujitsu.com |
dda5a58793d1aabda39f28987589f813332b4b85 | 43f31db07775d1552193b8d05aca098b4ee5a659 | /dice_or_no_dice/dice_dataset.py | fd6da80eae23398ece4948633acf95971ef9beaf | [] | no_license | edinpeter/ftfd | 9a3b955ab13065d773a0e1c3b006fc739a7ba93e | 23e85d7d67706be71802a16c1099f7cc334ca7a3 | refs/heads/master | 2021-09-15T02:34:03.603117 | 2018-03-04T14:26:49 | 2018-03-04T14:26:49 | 122,796,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import os
import torch
import random
import torchvision
import numpy as np
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from skimage import io, transform, color
import matplotlib.pyplot as plt
from dice_image_dataset import DiceImageDataset
from no_dice_image_dataset impor... | [
"edin.3@osu.edu"
] | edin.3@osu.edu |
1829d719397e47c63fad2fb9281e14daca1b201d | fb5554eeaf170ff2939ca716d158bafe5f17455f | /formats/__init__.py | 7c36463bc23d0aedcd267efd88d807f73473c995 | [] | no_license | hmacdope/QMTOOLS | 438cc0adba917a87c1b0c3dfed836b554e12ef2e | b16634decb123b338424d9458063a1a6ac2d2764 | refs/heads/master | 2020-05-28T09:48:31.760914 | 2019-05-28T05:44:10 | 2019-05-28T05:44:10 | 188,961,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from .gaussian import GaussianInp as _g
from .molpro import MolProInp as _m
from .qchem import QChemInp as _qc
from .qmoutp import PKARef
from .gaussian_ import mass_read
qm_packages = dict(
gaussian = _g,
molpro = _m,
qchem = _qc
) | [
"hugomacdermott@gmail.com"
] | hugomacdermott@gmail.com |
43ce7a654a6759c19001b3a60945926d1e5e70c0 | 77275c84cc29d09527199edd9f120b920e781e66 | /reg.py | 00564c69b2b90a43c18a601521e870f70b085d28 | [] | no_license | hyong2016/hyong | dccaeabda6547a83e0a77353bf2dd2f047da2273 | 9ea4b28f5f5498dfae7f1988c44a3436f8ab4163 | refs/heads/master | 2020-03-12T03:57:32.976494 | 2018-04-20T15:21:56 | 2018-04-20T15:21:56 | 130,434,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,918 | py | #coding=UTF-8
import logging, traceback
import time, md5, random
import datetime
import MySQLdb
import simplejson as json
import config, db_util, tool
logger = logging.getLogger(__name__)
_g_uid = 0
def do_add_user(phone,uid,reg_pwd,agentId,expireDate,itype):
if (itype == 0):
atype = 0 #0:分钟数帐户
... | [
"root@bogon.(none)"
] | root@bogon.(none) |
76a6fea80e4b22bc5819066d3818f8e550984c3b | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_pz811.py | dce8157fdb79198a3fc175afd088f4c6978c1fe9 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from xcp2k.inputsection import InputSection
class _pz811(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Parametrization = None
self.Scale_c = None
self._name = "PZ81"
self._keywords = {'Scale_c': 'SCALE_C', 'Parame... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a2780c1dd829a1ceec61444b55ce78e22514d36e | 356684be03e7e2538cfbfb586d0fcd502ce9ecfd | /results_server/setup.py | c2107825b23b660d1b957d181239afba1eef8525 | [] | no_license | jonstewart/picarus | b31ef9d7a7aa9582317bf695289abc18dc06a86d | e141996f24cc66023cafb3f9033932ab1dce0484 | refs/heads/master | 2021-01-23T22:06:55.831163 | 2011-08-15T02:40:35 | 2011-08-15T02:40:35 | 1,944,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name='results_server',
version='0.0.1',
packages=['results_server'],
author='Andrew Miller',
author_email='amiller@dappervision.com',
license='GPL',
package_data={'results_server':['static/*/*','*.html']}
)
| [
"amiller@dappervision.com"
] | amiller@dappervision.com |
08b6e91749c63df89a1ebe4e8765d80330714a7b | 6871a311cc143af01542f21811e8ff385fe10ecb | /tools/classifi_mode/classifi_data_process.py | f750ab1b7151ae56afe6df88ace1c503eb674bd3 | [] | no_license | freak-junhao/igarss2021_dse | 1534a40f824df70f1bf329c3f92781851e2a5a20 | dd37a504e7cee335e52d86f02284f8b9a1fec62f | refs/heads/main | 2023-03-24T03:54:30.447811 | 2021-03-21T11:23:52 | 2021-03-21T11:23:52 | 349,913,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,629 | py | from skimage.io import imread
from PIL import Image
import numpy as np
import random
import os
from os.path import join
import shutil
import tqdm
import argparse
def make_dirs(path):
if os.path.exists(path) is not True:
os.makedirs(path)
def read_txt(txt_dir):
txt_list = open(txt_dir)
txt = txt_... | [
"jhniu_1@stu.xidian.edu.cn"
] | jhniu_1@stu.xidian.edu.cn |
ee9d810a2db28974058a23b562e6a40f9e7955ff | 00cc592e2c1bda6b77ab11e9f6aed7ed02b95dfe | /scripts/publishBoatPosition.py | 4a3cc3adc5cd469ae949f1ac8167002c279d6cd0 | [] | no_license | ChristianHorst/hippocampus_trajectory | 101f516390ff27d11376800d8a8048bfa009f693 | 9b5d221f572726d3592be8e6ed1534e798c424f6 | refs/heads/master | 2023-02-10T07:20:51.510178 | 2021-01-08T18:02:03 | 2021-01-08T18:02:03 | 276,424,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | #!/usr/bin/env python
import numpy as np
from pyquaternion import Quaternion
import rospy
import tf
from geometry_msgs.msg import Pose, PoseArray, PoseStamped
from visualization_msgs.msg import Marker, MarkerArray
publisher_marker = rospy.Publisher('/pose_boat_NED', Marker, queue_size=1)
def callback(msg):
"""""... | [
"christian.horst@tuhh.de"
] | christian.horst@tuhh.de |
45afff34446a7a9e266886806b4cf379237e3bf8 | 5e8b4f7feff7e02e83ca7f0d96e0047861984936 | /leetcode/leetcode_intervals.py | dece262e04127ae9724b73e216bb997671575035 | [
"Apache-2.0"
] | permissive | yenbohuang/online-contest-python | 2f494809c50e2daff377f4c3fee5daa1140f368a | c60b332866caa28e1ae5e216cbfc2c6f869a751a | refs/heads/master | 2022-12-01T11:00:40.888395 | 2020-08-05T06:59:29 | 2020-08-05T06:59:29 | 277,729,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | class IntervalQuestions:
def overlap(self, i1, i2):
"""
:type i1: List[]
:type i1: List[]
:rtype: boolean
"""
front = i1
end = i2
if i1[0] > i2[0]:
front = i2
end = i1
return (front[0] <= end[0] and front[1] >= end[1]... | [
"yenbo.huang@ctci.com"
] | yenbo.huang@ctci.com |
3f468c8ac6451af651eee3e26dfcf89fa14ffa1e | 89201cc4dd51fc4f8c7b29d10e12e571031bcb63 | /Project3/functions_z1.py | dae8464d8e3f583e99ee1f70324fc6903f7f4b02 | [] | no_license | Ada1248/Grafy | ad9321b1a693f83bbddd9b65bfb17d96e5fb05d4 | cb9e3598bc8c4a2e882911efe33a14fd69bc044a | refs/heads/master | 2022-07-31T22:23:07.058305 | 2020-05-21T13:37:49 | 2020-05-21T13:37:49 | 246,426,119 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | ######################################
# funkcja transponująca macierz
def transpose(matrix):
t_matrix = [[0 for _ in range(len(matrix))] for _ in range(len(matrix[0]))]
for i in range(len(matrix)):
for j in range(len(matrix[0])):
t_matrix[j][i] = matrix[i][j]
return t_matrix
#zmiana li... | [
"mark-now@wp.pl"
] | mark-now@wp.pl |
2bfdf5f05d657a916d3b89394a6bdd2003099665 | 093945c186582c63552ce61505a1d368c546b890 | /Desafios/045.py | 55ac801dd6e9ab51900fbe091d4fc7e4b57f937c | [] | no_license | erickapsilva1/desafios-python3-cev | 11b9619765cbecd97e7d6481144658967a5f0040 | ed1e607b905a24676d477b6777bff9743d4d30cc | refs/heads/master | 2023-07-03T22:52:38.726401 | 2021-08-03T23:09:30 | 2021-08-03T23:09:30 | 392,478,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # programa que jogue jokenpô
import random
opcao = int(input('''Escolha:
--- 1. Pedra
--- 2. Papel
--- 3. Tesoura
--->'''))
sorteio = int(random.randrange(1, 3))
if opcao == 1:
escolha = 'Pedra'
elif opcao == 2:
escolha = 'Papel'
elif opcao == 3:
escolha = 'Tesoura'
if sorteio == 1:
escolha2 = 'Ped... | [
"erick.ap.silva@gmail.com"
] | erick.ap.silva@gmail.com |
1d9dc2360837dc70533d48d4fb614d7f3899017a | ea352574d99c65e70662473815467b9638fee821 | /wsgiapp.py | 5d0b2da729ca0524c2e9c4f35c790b003325d152 | [] | no_license | dogezhou/simple_web_server | 360eafff013641ac8b232927d87a4e0acf97d9cc | 7375e7f12de0533807702c31b4515ef1c8f98257 | refs/heads/master | 2021-01-12T14:51:09.507176 | 2016-10-28T13:00:39 | 2016-10-28T13:00:39 | 72,107,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import urllib.parse
def run_application(application):
"""Server code."""
# This is where an application/framework stores
# an HTTP status and HTTP response headers for the server
# to transmit to the client
headers_set = []
# Environment dictionar... | [
"doge.zhou@outlook.com"
] | doge.zhou@outlook.com |
543826d5d0d30a109322d67293b3f853877f7b14 | fb33b689b8ebd54695828dab3f9d1db074203d34 | /practice/test/testadb/test_threading.py | c75e487ad28080f27e89632b45fcc412e4ca8bd9 | [] | no_license | takumikaka/workspace | 471ab6e60d47f61ae36e4b95e8d58b0840188f65 | f72946ff5f46b549dfab51a0038f05478b301490 | refs/heads/master | 2021-05-06T11:58:24.334256 | 2019-03-22T08:32:18 | 2019-03-22T08:32:18 | 113,008,406 | 1 | 0 | null | 2018-02-23T12:28:54 | 2017-12-04T07:14:00 | Python | UTF-8 | Python | false | false | 201 | py | # coding:UTF-8 -*-
import time
import threading
def run():
print("this is test....")
def tick():
run()
timer = threading.Timer(5, tick)
timer.start()
def main():
tick()
main()
| [
"qk2006qk@163.com"
] | qk2006qk@163.com |
4cf6029856b2d611bf0468b0fc89f179b151ac7c | 624ef425d93cca8639e7b3adc82b3165b815c61e | /utils/Anova.py | 6938842688cd84532a7916e989bd65827ba4a773 | [
"MIT"
] | permissive | pptrick/Fittslaw-Analyzer | ee7eec7453667612151cb779aaf2c1561b2f11a4 | 3ee34aff6d8fd28a93fc111d2c721d1653da74b9 | refs/heads/main | 2023-02-28T21:11:42.042152 | 2021-02-03T03:30:37 | 2021-02-03T03:30:37 | 312,497,020 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | import pandas as pd
from statsmodels.formula.api import ols
from statsmodels.stats.anova import anova_lm
def multi_analyze(raw_data, params):
# change data format to string
for d in raw_data:
d['width'] = str(d['width'])
d['distance'] = str(d['distance'])
pd_data = pd.DataFrame(raw_data)
... | [
"2017012268@secoder.net"
] | 2017012268@secoder.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.