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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aee7eabf7781ed30733384bfaf63f308e574921d | ed7aca20613e02a78700913098158a3c57417cb3 | /datasets.py | f6881aa70b30bf1456c8451fcaf0b826df18a542 | [] | no_license | emmajiang66/hello-world | bfdf31a1b13138bed624c778e66575a69abdb307 | 0474129791fc3072ad569c3b1a177cd0e3623f1d | refs/heads/master | 2020-04-25T13:22:38.758208 | 2019-02-27T19:53:20 | 2019-02-27T19:53:20 | 172,807,177 | 0 | 0 | null | 2019-02-26T23:47:28 | 2019-02-26T23:29:35 | null | UTF-8 | Python | false | false | 1,782 | py | from sklearn import preprocessing
import numpy as np
import pandas as pd
def get_data(name="power"):
if name == "power":
return get_power_data()
elif name == "communities":
return get_communities_data()
else:
return None
def get_power_data():
"""
Read the Individual hous... | [
"noreply@github.com"
] | noreply@github.com |
f8f21eec51b0c2c2fa216f748f08d579ac9e4373 | eabd4d989a79eab9ca205c5bf1cdfafb121fbefa | /src/demos/googleapi_basic/manage.py | 57e840d1fd10ea148722d0a5da4a63c47952b470 | [
"MIT"
] | permissive | NIAGroup/PyStockAnalyze-2019 | aab63a97a28951fa7b83138e4fddc364f493d9d5 | 49a92b3b9ff487295bb3a30a88f1ca388281a77f | refs/heads/develop | 2022-12-25T15:49:03.104861 | 2019-06-03T16:59:19 | 2019-06-03T16:59:19 | 171,166,258 | 2 | 1 | MIT | 2022-12-08T01:37:27 | 2019-02-17T20:04:13 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'googleapi_basic.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"lennard.streat@intel.com"
] | lennard.streat@intel.com |
acc13682525a5d6c53ac6e923eb9108a6e63fd79 | 829cb3a78825cf9886023072b9d67b50c7a1c291 | /pandas/second.py | d502b551528e6b64276f98302566b70940a40144 | [] | no_license | prabhudayala/MachineLeaningPython | 236210f6735752f14341606b92fd4f6148d1c68e | b369a94a3a0a6e21b5138a7c1c4779007974c4c1 | refs/heads/master | 2020-03-08T04:58:03.411614 | 2018-05-01T08:12:47 | 2018-05-01T08:12:47 | 127,935,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,301 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 3 22:01:29 2018
@author: prabhudayala
"""
import pandas as pd
import math
import numpy as np
def clean_income(value):
if value == "$200,000 and up":
return 200000
elif value == "Prefer not to answer":
return np.nan
elif isinstance(value, fl... | [
"prabhudayala@gmail.com"
] | prabhudayala@gmail.com |
6ae525c2fbe84804b8945a4d08ccd316ef632dea | 4a70132877ad05da670d9664bf02fc6e1eaeb268 | /AI/Classifiers/classifier.py | cc2fc38a383833c8e9fac5463c33928eed4175f8 | [] | no_license | XLab-Tongji/SemanticAnalysis | 70ff6dbb4b9e742601d0f3eb3ba8b3a5d326646c | 41f58c8feef969995a5835422cb7057bc4f6a540 | refs/heads/master | 2020-04-28T09:17:11.894769 | 2019-08-07T02:54:00 | 2019-08-07T02:54:00 | 175,162,158 | 1 | 1 | null | 2019-04-23T06:45:59 | 2019-03-12T07:59:23 | Python | UTF-8 | Python | false | false | 625 | py | class Classifier:
words_list = []
UNCHANGED = -1
INITIAL = 0
QUERIED = 0.5
INTRODUCTION = 1
END = 2
next_state = UNCHANGED
def __init__(self):
self.classified = False
self.next_state = self.UNCHANGED
return
def is_classified(self):
... | [
"1163515336@qq.com"
] | 1163515336@qq.com |
fe77307c10826767f4a93ad01ed3cf5e045eb4e2 | dbba41c8e6d7a8aafbea6b83b14badfaefa09fdc | /neutron/db/securitygroups_db.py | bfc98a216f288d33074bf18eefdd9a1545f1a64e | [] | no_license | jixianbo/openstack-mitaka | 5ceeb3965629b10eee11fbd3db42e559eb0b1c9e | 68558cd3f014b621538befcf477f1bd6cb1815e6 | refs/heads/master | 2021-06-05T08:18:52.100179 | 2016-09-16T08:24:05 | 2016-09-16T08:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,411 | py | # Copyright 2012 VMware, 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 a... | [
"root@eoc-expe-01.(none)"
] | root@eoc-expe-01.(none) |
1951fc3fb3dea92912e11145b84166a87a708daf | 009147e9b2c1f8bf410d4f60955b90e4a8a001dd | /app/android_default/__init__.py | b4583cc20db642edcea06690d2d07c87cd5e56b2 | [
"Apache-2.0"
] | permissive | AliOrabi/oee_server | 8d43e731303fccf1b61dba7122d9b2d8c74ac6f9 | e8f7982fb7ac7dfee2b311b4dbd07d4b1f9e3555 | refs/heads/master | 2023-01-20T09:52:57.608069 | 2020-11-19T17:14:09 | 2020-11-19T17:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from flask import Blueprint
bp = Blueprint('android_default', __name__)
# noinspection PyPep8
from app.android_default import routes
| [
"sambannister@gmail.com"
] | sambannister@gmail.com |
2fa889825df3de8dbd63fc80f98ae14c92d9148a | a12324340451d8ace518683d1f07c1316278b613 | /Programs/set5/T_Shapes.py | 08ba834f55298aaa36fb161be2b4ca8f9b218669 | [] | no_license | iniyan-kannappan/python | 326ea8458794870f87bc84264afe12b4653d0605 | 204435411618765a3d21dbdbdbc8268754d3d459 | refs/heads/master | 2021-01-19T08:09:47.170924 | 2017-05-23T00:28:05 | 2017-05-23T00:28:05 | 87,606,643 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def rectangle():
print('You are in rectangle.')
def triangle():
print('You are in triangle.')
def circle():
print('You are in circle.')
| [
"iniyan.kannappan@gmail.com"
] | iniyan.kannappan@gmail.com |
3ddac5d0043c1c26ff2578686412fd41f81052d7 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/eis.py | e4c8c63e6e63638a617334a48198e48d02f03318 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
60135afa8310c4caa29ac45b39f577b35df506fc | 12110b981a0143a9ec8b6bf7aff01a20f675cd25 | /sources/misc/python/poker/driver.py | 6763ae554af7b64d046ad22b94d61255b1cf9282 | [] | no_license | gabhijit/gabhijit-github-io-blog | d1d604cbb663f14e9ab6879f58175483346789a6 | 51a5f58b2957e5589049b6408de446598e4177a5 | refs/heads/master | 2021-04-27T04:50:26.856017 | 2021-04-21T05:59:33 | 2021-04-21T05:59:33 | 122,586,490 | 0 | 0 | null | 2021-03-29T17:18:58 | 2018-02-23T07:16:31 | Python | UTF-8 | Python | false | false | 1,016 | py | from pokerhand import PokerHand
import time
if __name__ == '__main__':
with open('poker.txt', 'r') as f:
then = time.time()
scores = []
for line in f:
hand1 = line[0:14]
hand2 = line[15:]
pass #print "Hand 1:", hand1, "Hand 2:", hand2.strip()
... | [
"gabhijit@iitbombay.org"
] | gabhijit@iitbombay.org |
22c577217301c191b4d44fd8db9ea4e06b3e4e6d | d8673a8b9a34292b54285edbf900d7e130ec39b8 | /instant_generator/migrations/0006_auto_20200514_1040.py | 16f69bd9642ca9b3b15c7801742a1d7161ef6bae | [] | no_license | AzeezBello/toolx | 7383f43e500f300062193d8b43254c0b7af53dbf | daf6a7d585a4b72ace47b24ec86828fc6a2d2982 | refs/heads/master | 2022-03-07T10:12:32.915043 | 2022-02-16T00:01:18 | 2022-02-16T00:01:18 | 253,473,631 | 0 | 0 | null | 2022-02-16T00:02:45 | 2020-04-06T11:11:21 | HTML | UTF-8 | Python | false | false | 426 | py | # Generated by Django 2.2.9 on 2020-05-14 09:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instant_generator', '0005_auto_20200425_0018'),
]
operations = [
migrations.AlterField(
model_name='instantgenerator',
... | [
"azeez@scholarx.co"
] | azeez@scholarx.co |
c19f904de9a97b543b6004c262c2547d86b53cec | 1db3c1185eae9974424112af2765c3bd72cb93c0 | /iteraciones.py | a5651879ebd55ae0cb48271f7c65e771fe3e22ef | [] | no_license | joselmjl19/pensamiento_computacional | 60c2b99f73c073dc96e15aa87a6580f33545d563 | b7d752c3cc22a3630861ddeb4fe25b7390c6f2ae | refs/heads/main | 2023-08-31T12:11:14.498201 | 2021-03-31T23:45:54 | 2021-03-31T23:45:54 | 326,279,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
contador_externo = 0
contador_interno = 0
while contador_externo < 5:
while contador_interno < 6:
print(contador_interno, contador_externo)
contador_interno += 1
contador_externo +=1
contador_interno = 0 | [
"joselm.jl19@gmail.com"
] | joselm.jl19@gmail.com |
6f6fc969903da8255cd070878ac4ff1c591dc85e | 269947d0229470ecbabc35a336bf702de2c77fe2 | /pirate/toys/transform/funcs.py | 930bf0b45e02cd9ce70049f117d2c65ebce79a39 | [] | no_license | tangentstorm/pirate | c7f3333f4363f21c2a02e777f59e6ae16bc14897 | a84252ff2ed62f9eab3957afac34a068aef4edaa | refs/heads/master | 2020-04-14T02:55:16.103880 | 2008-10-08T14:10:59 | 2008-10-08T14:10:59 | 11,627,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | def func():
if 1 == 1:
while 1 == 1:
for i in range(10):
if(i > 8):
while 2 == 2:
if 1 == 1:
return 1
else:
return 2
return 3
... | [
"curt"
] | curt |
3f6e133f644352b3fe995533907bd61c722d5595 | ee869722a7e1ccd9fc13c3a30410bd125b2abc78 | /algorithms/kruskal.py | 8c5cc39dbee16dfc75510efb13543a186b02fed9 | [] | no_license | samuelwu90/mooc-algo2-003 | 8b186031ef852660a29f62e36e2deb6a0ed18b0a | c2689107cc5e767fc70a21759d8bca9b725e1871 | refs/heads/master | 2016-09-06T02:01:12.753255 | 2014-10-24T23:50:13 | 2014-10-24T23:50:13 | 23,481,093 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | #!/usr/bin/env python
"""
kruskal.py
~~~~~~~~~~~~
"""
from collections import defaultdict
from data_structures.union_find import UnionFind
from itertools import combinations
import string
def kruskal(node_list, edge_list):
edge_list.sort()
mst = defaultdict(dict) # minimum spanning tree
union_... | [
"samuelwu90@users.noreply.github.com"
] | samuelwu90@users.noreply.github.com |
6a41ac4da0a4249fd1d41690d96273dcb339ba6e | 8a8f79e1eeec61e6b41dd59c60d110a68da38348 | /python3/koans/about_string_manipulation.py | 5cbc353b93c834b6093bf8e5cbee50343299ed56 | [
"MIT"
] | permissive | alejandroloda/python_koans | 6772fb129f9eb57d0bb5d429c9a1ce09369faa75 | c9995951a547cd89555a8aa6eef0051f37c6ff6f | refs/heads/master | 2022-11-16T11:13:52.747184 | 2020-07-16T17:31:47 | 2020-07-16T17:31:47 | 280,103,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutStringManipulation(Koan):
def test_use_format_to_interpolate_variables(self):
value1 = 'one'
value2 = 2
string = "The values are {0} and {1}".format(value1, value2)
self.assertEqual("The values are ... | [
"alejandroloda@gmail.com"
] | alejandroloda@gmail.com |
9179b84db599e6da0675c058233c170fbb66ce2f | c4c4223a2698349b234316e358de8f68ede0caf9 | /puma_CNN__analyze_data.py | 171f9a9688cfa84161c7caf74f58c7c4d1ae6259 | [
"MIT"
] | permissive | GT-Master/simple-gcm-deep-learning | e90bc759636291fca3f6cd5856be97482dca8420 | a705c6e16dd0dbdb8192dc55f27f4107ccb9eb31 | refs/heads/master | 2020-07-31T03:47:32.608608 | 2019-02-22T16:20:02 | 2019-02-22T16:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,295 | py |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 10:25:01 2018
train a CNN for puma. The cnn configuration used is the one obtained
in the tuning process.
At the moment, this script is for a training set which is small
enough to fit into memory in one go.
This is the main experiment, which do... | [
"noreply@github.com"
] | noreply@github.com |
c41a8a3c97568c0f098dbb43a50bcf87af787237 | b742abb440174ec59f56a334f14871f3accc1743 | /util/IpUtil.py | ab987e3cf1d64a0ca66c52b6985f7680bc9bd341 | [] | no_license | sunshineywz123/baymax | 00e92b71b599df6ce39902652b78167a51100002 | 25518474cb09644c34febaf556fe8a0449dc7da4 | refs/heads/master | 2021-12-30T06:37:13.224221 | 2018-02-07T08:25:03 | 2018-02-07T08:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
__author__ = 'likangwei'
import socket
def get_ip_address():
return socket.gethostbyname(socket.gethostname())#得到本地ip
def get_host_name():
return socket.gethostname()
print get_ip_address() | [
"262708239@qq.com"
] | 262708239@qq.com |
fca597f0b509f567f3012a32b04035f6f8d78635 | 5774d19178440ad98210542d770bd490c64360a0 | /95.不同的二叉搜索树-ii.py | a07e28d8b0628e98f7978f93022e104c5cb1ca92 | [] | no_license | Zeyu-Zhuo/BrowserSecurityHW2 | 3594b8bc74d15a7e59b04d427490b7148e078b6e | fb23caf7dac21c484d7503d77001c9af941b3174 | refs/heads/master | 2021-02-07T23:19:15.743310 | 2020-03-15T07:24:47 | 2020-03-15T07:24:47 | 244,086,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #
# @lc app=leetcode.cn id=95 lang=python3
#
# [95] 不同的二叉搜索树 II
#
# @lc code=start
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def generateTrees(self, n: int) -> List[TreeNode]:
if n... | [
"578101568@qq.com"
] | 578101568@qq.com |
bb6766d4e899400b10dc8c6a1e5523d3f3da51b1 | c984b805d8801ae22fc3217f0cf83a4c27f4960c | /src/A3C/train.py | 32e4b77fc0097c78118f8167d13727895a5a8fa4 | [] | no_license | liyo6397/openai | 86e67742d6d97eed15aa6680de857d27cac7b10b | f5dff4dbc510615f60ddf5d0611a3650925db471 | refs/heads/master | 2023-03-01T06:49:34.931678 | 2021-01-21T22:29:40 | 2021-01-21T22:29:40 | 292,945,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,301 | py | import tensorflow as tf
import numpy as np
from typing import Any, List, Sequence, Tuple
import utils
import tqdm
import threading
from threading import Lock, Thread
from model import Networks
import gym
from time import sleep
import queue
class trainer:
#class trainer():
def __init__(self, env, par, i=0, lock=N... | [
"liyo7397@colorado.edu"
] | liyo7397@colorado.edu |
bc0d81b1ee81036284754b43d0b61f136b61cdfd | 664ff8385935fceb929af076e48396a063099c7a | /intro_samples/mnist.py | 4fff01467d0ffbe37c859ac1b30b88420aacd0a8 | [] | no_license | hex-hex/nni-experiments | da164636b9b45f29ec9d164a0f8a02079cf30dee | 405cc4893433efaa10e73a3f50100c2f7e228cdb | refs/heads/develop | 2022-12-13T07:04:48.051281 | 2021-03-04T07:37:55 | 2021-03-04T07:37:55 | 245,555,024 | 0 | 0 | null | 2022-12-08T10:41:28 | 2020-03-07T02:33:55 | Jupyter Notebook | UTF-8 | Python | false | false | 21,192 | py | """A deep MNIST classifier using convolutional layers."""
import argparse
import collections
import gzip
import logging
import math
import os
import tempfile
import time
import urllib
import numpy
import tensorflow.compat.v1 as tf
from six.moves import xrange # pylint: disable=redefined-builtin
from tensorflow.pyth... | [
"he.x.working@gmail.com"
] | he.x.working@gmail.com |
1621cf3a726afd00a984fbe5f944b76d8c9bd50d | b22bfcaa69367ac98ad873fc058732aed31fe01a | /resize_images.py | 059a60c8cb46f6c7b53d60f7af7ce9228a51b9c2 | [
"MIT"
] | permissive | rehakomoon/VRC_PhotoRotation_Estimation | f28b49c2a769645a4f6dd3cde112960bf0dc2188 | fdb90a93888eb13148123d22b3a46442fe5dd111 | refs/heads/master | 2020-08-16T21:32:58.035707 | 2019-11-02T08:17:47 | 2019-11-02T08:17:47 | 215,556,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 16 15:27:35 2019
@author: rehakomoon
"""
import torchvision
from pathlib import Path
from PIL import Image
input_dir = Path("E:/vrc_rotation/dataset/anotated/")
output_dir = Path("E:/vrc_rotation/dataset/anotated_resized/")
#input_dir = Path("E:/vrc_rotation/dataset/an... | [
"re.hako.moon@gmail.com"
] | re.hako.moon@gmail.com |
fa6ea858aea876e832ae81add2f38ce800b715ea | 06af35570c9b3217d06a4348d887bffd288275c1 | /Lecture_02/Numpy&matplotlib.py | ce5c4f97e960255fe574173479964b177727b865 | [] | no_license | stonedcoder/MachineLearning | 846d4c0f08eb516318fe53c22b3c5f2879cc05d5 | 398b27a21409c3d9d03702f45f032ac447eeb58b | refs/heads/master | 2018-11-19T02:56:37.508667 | 2018-09-03T12:07:23 | 2018-09-03T12:07:23 | 119,348,876 | 6 | 1 | null | 2018-09-03T12:07:24 | 2018-01-29T07:40:50 | Python | UTF-8 | Python | false | false | 796 | py | import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
my_list = [1,2,3,4]
print type(my_list)
my_listarr = np.array(my_list)
print my_listarr
print type(my_listarr)
print my_listarr.shape
arr = np.zeros((4,2), dtype=np.uint8)
print arr.shape
print arr.dtype
my_arr = np.zeros((4,2))
print my_arr.shape... | [
"vraunaq1213@ghmail.com"
] | vraunaq1213@ghmail.com |
5cd126bb1cdc22a39e4e7dadeaf664ac0af88786 | fccd08684ad24cc8eb9268c2060189953b73d15f | /crawl_ui.py | 121a0d2b00d754cecade961e8b2f605eb22c3133 | [] | no_license | caothetoan/Crawler-Python | cf35865b90ac125882b6968c27da78cb09993ae1 | a3b461c25ade7f3fc7673a14f2e15443e721bcc0 | refs/heads/master | 2020-07-17T17:16:29.039375 | 2017-06-15T01:56:18 | 2017-06-15T01:56:18 | 94,322,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | # import libraries
import urllib2
from bs4 import BeautifulSoup
import csv
from datetime import datetime
#sudo python servo.py:
from Tkinter import *
import time
class App:
def __init__(self, master):
# create Frame tkinter
frame = Frame(master)
frame.pack()
... | [
"noreply@github.com"
] | noreply@github.com |
cd1daf3792292d81939d20fd43646c2f8e20e311 | 35014ecc433080492e7a9e89950cd1a1fb1cb13e | /src/test_case/20200520.py | 6240ecf5d7f55b1c529e10fbee73df757a0dd673 | [] | no_license | qianyu1988/myTEST | 8f95fa997f7d78768a846ad3bb2d661dbf327d93 | fd169d012c1c18c9984d788e8ffbfba1c1fd5b0c | refs/heads/master | 2022-07-22T06:41:19.202321 | 2020-05-21T12:59:48 | 2020-05-21T12:59:48 | 265,849,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | #!/usr/bin/env python
# coding:utf-8
from turtle import *
import time
def setTurtle():
# 窗口大小
screensize (900 , 700 , 'pink')
# 颜色
color ('red' , 'pink')
# 笔粗细
pensize (3)
# 速度
speed (6)
# 提笔
penup ( )
def getStart(h):
# 去到的坐标,窗口中心为0,0
goto (0 , -180)
r = h / 5
... | [
"5020046@qq.com"
] | 5020046@qq.com |
c1df85a96ef0b722358424bacc55977d782984ff | 28fa405b0270a2608434a8ce075133942db75d9f | /pages/Manager_Admin_ManageAlarm.py | d20b8a8bd2846b8159614d9e7e1ed8a4d4392029 | [] | no_license | kumarsarwan046/Test_Automation_Framework_EOT_C_GUI | 1fbf24dbe7898747ff249db45bd062b7d934a5d0 | f2133282ec78145e4cce7fde8a87b075f8570c9d | refs/heads/master | 2020-12-10T12:07:01.319244 | 2020-01-13T12:18:49 | 2020-01-13T12:18:49 | 233,588,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | from selenium.webdriver.common.action_chains import ActionChains
class Manage_Alarm():
def __init__(self, driver):
self.driver = driver
self.Admin_click_xpath = "/html/body/aside/nav/ul/li[8]/a/span"
self.ManageAlarm_click_xpath = "/html/body/aside/nav/ul/li[8]/ul/li[2]/a"
self.Delet... | [
"kumarsarwan046@gmail.com"
] | kumarsarwan046@gmail.com |
9387b090f415ac6bd94547a628f202a55f5d3426 | d3affdb6b8b5aa683444af084fe4f371d25681c8 | /Intro_to_Machine_Learning/Neural_Network_Scratch/2015MT10585/neural.py | 3c004a18385aaa84221bc918968b869cab1d0e67 | [] | no_license | abhi-yad15/IITD_Courses | b8e5d7cac97f7914cbfa21fdc375f5e0a0f133b3 | da91aef6641ff3ffc20ec2c4857115826002a8df | refs/heads/master | 2020-07-21T16:11:37.009836 | 2019-09-07T07:36:54 | 2019-09-07T07:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | import load_mnist_data
import numpy as np
import matplotlib.pyplot as plt
import gzip
import random
def sigmoid (x):
return 1/(1 + np.exp(-x))
def derivatives_sigmoid(x):
return x * (1 - x)
def visualize(image):
img=np.squeeze(image,axis=0)
print(img)
plt.imshow(img)
plt... | [
"asabhishekyadav15@gmail.com"
] | asabhishekyadav15@gmail.com |
aa36db3c4bda8b4f0e11e5c33443ea1758cc41a3 | e773a47b9e78e0f967392fc3e8f260e10a4ee737 | /lesson_9_task_1.py | 2a2811183235b87d69b9dc4374c1fd67abcb9bee | [] | no_license | JohnyXXX/Python-Quick-Start | e71299b5963a65c059ff598cd10713c13f8b3304 | b5c6b4a3daaf34e3d10eeb0e5082f5fca2b16acc | refs/heads/master | 2022-04-21T19:00:04.437947 | 2020-04-22T16:42:19 | 2020-04-22T16:42:19 | 255,893,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | """
Написать программу, которая на
любой вопрос отвечает "да" или "нет"
"""
import random
def answer():
x = random.choice(['Да', 'Нет'])
return x
for i in range(10):
question = input('Введите вопрос: ')
print('Ответ:', answer())
| [
"johnyeev@gmail.com"
] | johnyeev@gmail.com |
1db37e515d9d521b9357a03aa107cd0f47755db8 | 67bc47910717e50935945c7c4cae554ba3764113 | /python/leetcode/lc_274_m_h_index_1.py | 6c4414ce0e660eb3348ee4bcbe919e021dfe7adf | [] | no_license | cryptonym0/noDatesJustUpdates | 2f72564b67aee38ecfac18aca982d6e71ec5f646 | 04fa62d32e7d0f80354755b244ec9daf70d18aa6 | refs/heads/master | 2022-12-02T04:56:09.553891 | 2022-11-29T00:18:03 | 2022-11-29T00:18:03 | 193,148,088 | 1 | 0 | null | 2021-11-03T19:36:51 | 2019-06-21T19:10:25 | C | UTF-8 | Python | false | false | 733 | py | # https://leetcode.com/submissions/detail/670212761/
class Solution:
def hIndex(self, citations: List[int]) -> int:
# naiever itterative
# sort in order
# keep highest number, removed and number of elements that are greater than 0
# compare current_hightst_total_greater_than_0 to las... | [
"elycia.finch@teck.com"
] | elycia.finch@teck.com |
ab0a48e8e158603c69e87e939cc032f040e5e0c4 | cf31d697af0dfde14a82d6460c87be58ec2c5906 | /app_homework1/page/addmenberpage.py | 4835cfa14d1c6e1dc4807524bbcf81933c891070 | [] | no_license | nancymaster/2020study | 0c732c3e7b63520e0c4cb7ae290567270af17e0b | b9d35d143f922ba68db9c007b98a37474cb85756 | refs/heads/master | 2022-12-05T05:22:23.138168 | 2020-08-19T15:27:20 | 2020-08-19T15:27:20 | 283,901,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | from appium.webdriver.common.mobileby import MobileBy
from selenium.webdriver.support.wait import WebDriverWait
from app_homework1.page.basepage import BasePage
from app_homework1.page.contactaddpage import ContactAddPage
class AddMenberPage(BasePage):
add_manual_element = (MobileBy.XPATH,
... | [
"xiao_nv_wu@126.com"
] | xiao_nv_wu@126.com |
4dea8e4050c11335133b13d2bf8a787b411c0a36 | a4fb11a27cc55ebffe2c155573d03675ec527123 | /preprocessing-ems-data.py | 8e4c1c54b84efbf9ba158d18706d07308a958cc8 | [] | no_license | Shred13/AnalyzingHospitalArrivalRates | 587386417341eda64bc4aa7249ef848df3c454f4 | a184b5b9bd121fa4502b31d236aa7ff00fe939b8 | refs/heads/master | 2020-07-05T20:54:17.105417 | 2019-08-21T15:24:40 | 2019-08-21T15:24:40 | 202,772,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,056 | py | import pandas as pd
import numpy as np
from PythonWork import export_to_csv
from _datetime import datetime, timedelta
from matplotlib import pyplot as plt
def isLeap(year):
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
return True
else:
... | [
"noreply@github.com"
] | noreply@github.com |
4d74753a8bacc16b4e84fa281189fd98da9ae3a7 | f32f279ce25b7dda96548f358c55650f50220bd3 | /pycoin/scripts/genwallet.py | 4aa49b85e9d0841060d87e5ce7ac38645c94a46e | [
"MIT"
] | permissive | cryptoproofinfo/pycoin | a6e6d19f79f3b5cf489f88afe7201fa1ca9d70ec | d0202f3592cf95b43342a67616da3a6411de8863 | refs/heads/master | 2016-09-13T04:09:37.512203 | 2016-04-17T00:34:18 | 2016-04-17T00:34:18 | 56,410,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | #!/usr/bin/env python
import argparse
import binascii
import json
import subprocess
import sys
import os
from pycoin.key.BIP32Node import BIP32Node, PublicPrivateMismatchError
from pycoin.networks import full_network_name_for_netcode
def gpg_entropy():
output = os.urandom(64)
#output = subprocess.Popen(["gpg... | [
"derrend@yahoo.co.uk"
] | derrend@yahoo.co.uk |
db738c5f357a26b7ad2ce9a41f90e95d6375b0d2 | cd16566a40dde34f376772d0048ec1381f5fd4cf | /hero.py | 9aeecef8bb0e6d84a3d82d7b7c19422bb6bac9d0 | [] | no_license | austindryden/hero-game | 4d31ffa28fe42d2880eda9f2bece2ef941203393 | c86d49cfa9c292195f8a4600b7638b454925b8f2 | refs/heads/master | 2020-09-14T02:02:37.001196 | 2019-11-21T14:10:45 | 2019-11-21T14:10:45 | 222,977,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,353 | py | import random
stat_map = {"sword" : 'power', "armor": 'defense', "helmet": 'defense', "shoes": 'evade' }
class Character:
def __init__(self,name, health, power, coins = 0, bounty = 0,speed = 10, inventory = []):
self.name = name
self.health = health
self.maxhealth = health
self.power... | [
"austinisnorobot@gmail.com"
] | austinisnorobot@gmail.com |
aea2a11c558f6d77352612ae652f939b70faed4e | 5fa90e787bf38cdca8c7402f0e000bdc9576b409 | /class_project/urls.py | dfdd82cb5f96650967db59e165aea681db79dbbb | [] | no_license | CSE312/Course_Project | 9278e362d408697190f1645f3c8edc31522665b2 | bc5e136aee350a0c808f0dc412c698d9ab7f138c | refs/heads/dev | 2023-04-29T15:06:53.806651 | 2021-05-13T17:30:52 | 2021-05-13T17:30:52 | 336,142,255 | 0 | 0 | null | 2021-09-08T20:30:58 | 2021-02-05T02:33:46 | Python | UTF-8 | Python | false | false | 1,260 | py | """class_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"Jbritto@buffalo.edu"
] | Jbritto@buffalo.edu |
7570fb3bb7d13173c86545c05e5965ec64f35c4c | 1b1190a127a21bfd096529d3a3f20d05151b2276 | /opsweb4/common/urls.py | d7b6911ed326a13da88a4b690cf0f28bab08413b | [] | no_license | cucy/zrdops4 | a9d37d9dd7cfba5a3ecb1180094621754d97c5e9 | f0609e90e5a944d30a65d6918b2bfcfd63a92c26 | refs/heads/master | 2021-01-19T14:39:54.315360 | 2017-09-24T04:01:27 | 2017-09-24T04:01:27 | 88,176,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from common.views import success_view, error_view, IndexView
urlpatterns = [
# 通用视图
# 主页
url(r'^$', IndexView.as_view(), name='index'),... | [
"292016176@qq.com"
] | 292016176@qq.com |
0f027f96109a103be36c9052cedf50cf10e88590 | f996a789ac491f7de2af22182705b6b205bef781 | /WebSite/stat01/_research/views.py | d1404e3abc3bdbaaf962971123efaed1c8f95974 | [] | no_license | ak4775989/SIS.DjangoWebsite | bdf6a93a62248f02c431449b9a12ff9c523c9924 | 598c453963efd64b8533c834213f3934a4ff6420 | refs/heads/master | 2020-08-31T03:04:14.224793 | 2019-10-31T08:03:15 | 2019-10-31T08:03:15 | 218,565,689 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from django.shortcuts import render
# Create your views here.
def index(request):
section={"title":"title"}
return render(request,"index.html",locals())
def research_01(request):
return render(request,"01_research.html",locals())
def research_02(request):
return render(request,'02_research.html',loc... | [
"bessy110576@gmail.com"
] | bessy110576@gmail.com |
127896ca3a344d3dd44552ad1b7cffbf20fa0333 | 637d4c07c5b5bd304d75e1da3b0177954508e94e | /leetcode_73.py | fa5ac9e052673005ddb3525ec13dfe679395199a | [] | no_license | JayWu7/Code | cc1c9c20612f483438e0e9a81172cf3a7ce457c3 | 621c579c76e9f6b926354a9c25c0b0ed66890800 | refs/heads/master | 2023-06-09T02:27:18.434634 | 2023-05-29T05:38:31 | 2023-05-29T05:38:31 | 142,000,087 | 3 | 0 | null | 2023-05-29T05:41:04 | 2018-07-23T10:37:24 | Python | UTF-8 | Python | false | false | 924 | py | # method 1 时间复杂度: O(m*n) 空间复杂度: O(m+n)
class Solution(object):
def setZeroes(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
思路: 先遍历矩阵每一行判断0是否在此行,并生成一个列表来记录
然后以列为单位遍历矩阵,判断每一列是否有0
... | [
"noreply@github.com"
] | noreply@github.com |
dab9e8d491635c7edd55a935d2c83f78d513b171 | 1685ef93e492681bfb744709cb1edfdac5314bc3 | /django_five/learning_users/learning_users/settings.py | 3a6d9b36053f091b6c3995dbfe6fb57af994be01 | [] | no_license | neil-saunders/django-deployment-example | 5fe46ed081150635f7c98a9490c860ad0bd03136 | 82976d93c184b53cb32a42603a2da6c364eb05f4 | refs/heads/master | 2022-12-11T04:04:12.028168 | 2020-08-18T19:41:04 | 2020-08-18T19:41:04 | 288,546,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | """
Django settings for learning_users project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"neil@neilsaunders.co.uk"
] | neil@neilsaunders.co.uk |
9b41491e4e7d599a67b737859dffd5cde3856d5d | c0d37744a570efc87f774bb6fc9dd651e3991eac | /02-04-2021/List/list.py | 712704f9bb330b685e95bafb53924788bb9de4bc | [] | no_license | Parth1267/PythonAssignment | 61f1dd9d8ed34aa4110c9f3612c60c855fb66dea | 555f9db2679c821f6a34eb98334313293fd59bfd | refs/heads/master | 2023-04-09T06:28:29.001823 | 2021-04-07T12:26:43 | 2021-04-07T12:26:43 | 351,516,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # list = ['apple','cacke','banana','chocolate',2,True]
# print(len(list))
# print(type(list))
#---------Access item-------------
# print(type(list[-1]))
# print(type(list[1]))
# print(type(list[-3]))
# -------------Using the list() constructor to make a List------------
# thislist =list(('apple','cacke','banana','c... | [
"parthdlangaliya@gmail.com"
] | parthdlangaliya@gmail.com |
b097f8c6c5fe672605d813f8ce041f642f998378 | b6fbe7353d2634cf6945793fca9dd16b37d57152 | /potentialproject/potential.py | 39b0b293118cdf1ea4b3f0451f3d76f3493ca571 | [] | no_license | Maxim137/Python | 0fdbb09d307fa9199a00a51899093ab561e0305f | 33175cddce074bacf44a216c306c6058f5f7eb8a | refs/heads/main | 2023-04-10T14:52:54.860035 | 2021-04-13T19:00:19 | 2021-04-13T19:00:19 | 324,352,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py |
__enter__ = ('enter')
__check__ = ('check')
__grid__ = ('grid')
__integ__ = ('integ')
__plot__ = ('plot')
__main__ = ('main')
def enter():
print('Enter a1')
a1 = float(input())
print('Enter a2<=a1')
a2 = float(input())
print('Enter a3<=a2')
a3 = float(input())
print('Enter x_min >= a1')
... | [
"noreply@github.com"
] | noreply@github.com |
5165510eb755ef46726bc681266665ea37f4ec1e | dede2bec79d7cce93c8303a5856e1f8bdd565867 | /Tree/tree_exercise2.py | c631b47367e5fee9a633a89989c7f9e58609b564 | [] | no_license | kartikey1998/Data-structures-python | 17a1dcf86d4f77b055f2361e6cdae19e6dcc5aa5 | 2eda7410a2b6e47fa55dbcb9dd92d3d0fd9a1dee | refs/heads/main | 2023-05-24T05:45:37.209661 | 2021-06-13T17:18:11 | 2021-06-13T17:18:11 | 370,315,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | class TreeNode():
def __init__(self, data):
self.data = data
self.parent = None
self.children = []
def add_child(self, child):
self.children.append(child)
child.parent = self
def get_level(self):
p = self.parent
level = 0
while p... | [
"noreply@github.com"
] | noreply@github.com |
05de05f98b13696c28efefd3872f4a88c6775b67 | 7c257fb50de1b962625f9b41327c7272a922f87f | /test_sample_sizer.py | 03ac1187c0102ce20278e2b402fd892b38980f9b | [] | no_license | jldork/ABTestUtils | c8be25c0182eb6a83b5a01f83b34fcd1e343cfa2 | 63d94b2ffbe8b48d1e2f65ae3f0851bc9db72629 | refs/heads/master | 2022-11-19T21:03:07.027020 | 2020-07-15T14:19:28 | 2020-07-15T14:19:28 | 279,932,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | from scipy.stats import chi2_contingency
from sample_sizer import p_value, Variant, sample_size
from expects import *
from unittest import TestCase
class TestSampleSizeCalculator(TestCase):
def test_variant_can_check_unconverted(self):
variant = Variant(conversions=1000,population=2000)
expect(vari... | [
"jleung@stashinvest.com"
] | jleung@stashinvest.com |
0836e573aa4481584e1e90d85f8fdd361e1044c6 | 05596d96cffc70496e7de8976f9f4803e0d92199 | /flask/bin/pip3.7 | 912e6d77a06d35fdf173928ca30236ead256a409 | [] | no_license | adelDjidji/Talent-Performance-fullstack | d3ba8a51f3cc8f9c6e813412e1726a3e703c4ae3 | d8477d45771a538fb7ec51f3062bcc8d7c533d8c | refs/heads/master | 2022-10-27T07:47:06.914971 | 2020-06-08T06:46:29 | 2020-06-08T06:46:29 | 270,562,211 | 0 | 0 | null | 2020-06-08T06:57:59 | 2020-06-08T06:52:31 | Python | UTF-8 | Python | false | false | 241 | 7 | #!/Users/mac/Documents/DEV/flask/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ea_djidjik@esi.dz"
] | ea_djidjik@esi.dz |
b777b90b8c4d43020358a78a812096974840803d | 851143e3efdcb761f3690591c967e7a9a9e38e0f | /source/tools/import_helper.py | df170ac2f589152eb2f0b562d8e75e10a55aaed1 | [
"Apache-2.0"
] | permissive | chopin1993/protocolmaster-20210731 | 268f762a97a9502ea29166220d095564350ea248 | e23e235ee00b940a4161c606415574d2a52c701c | refs/heads/master | 2023-06-27T04:11:26.437113 | 2021-07-31T01:35:18 | 2021-07-31T01:35:18 | 391,228,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import os
import importlib
def import_all_python(path):
for file in os.listdir(path):
if file.endswith(".py"):
module_name = os.path.splitext(os.path.split(file)[1])[0]
importlib.import_module(module_name)
| [
"yuantl@eastsoft.com.cn"
] | yuantl@eastsoft.com.cn |
2c8fd82b96bcce8525e2c6b77dc898330a296a38 | 45b8de95b83484481a825f8ce3985ea427338a5c | /datalogger.py | 70dc3c97126007b04dc4b2f93ec271434eeb8010 | [] | no_license | ubcbraincircuits/NaturalMouseTracker_rpi | e25f6c7efd83f5a41a6be0e61beb26c2acee5b99 | f167ff6453a0074da544a4a92ad0a4f8ba01945c | refs/heads/master | 2021-01-26T07:09:33.351112 | 2020-04-28T00:47:07 | 2020-04-28T00:47:07 | 243,358,633 | 0 | 1 | null | 2020-02-26T20:26:55 | 2020-02-26T20:26:54 | null | UTF-8 | Python | false | false | 1,587 | py | import sys
sys.path.append('..')
import os
import time
from datetime import datetime
import pi_video_stream
class datalogger():
def __init__(self, file_name, data_path):
"""Opens a txt file for writing and writes a banner
:param file_name: name of file to write to, in this case the I... | [
"alicexxx0516@gmail.com"
] | alicexxx0516@gmail.com |
47bfcf0b643a946c7fdd64357993ae722e0afc73 | 14324a581c4f22c7ea8a96cc79725cdb84960e43 | /trees/utils/Standard_CART/CART_Continuous.py | 3b7032ee5bb900794c9dc9104f4b7ad9640fa519 | [] | no_license | dogger123/django-treeapi | a3f141f87bb515e4af4f820a80daf6bacc40199d | 942da122d6c9909c21321a1aea2849428ba47120 | refs/heads/master | 2020-05-22T13:20:22.798164 | 2019-05-13T06:45:13 | 2019-05-13T06:45:13 | 186,357,054 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,772 | py | import operator
import re
import json
import pymysql
#------------------------I.数据读取----------------------------
def readFromCSV(filename='data'):
f = open(filename+".csv")
datas = []
# 开始读取数据集
for line in f:
newline = line.strip('\n').split(',')
# 插入到datas
datas.append(newline) ... | [
"="
] | = |
5fbe5a1bfc9e491ef9f1597760db1d4c54b41b56 | f7ca89772fc3b19424f537895957cbf3fcafece3 | /nusa/version.py | b855b1a6a59a93d4da0487fc4064f1fdbc94ba7d | [
"MIT"
] | permissive | OrganizationUsername/nusa | d829d341da09bb7d10e7d4f630d63333c96ed2e0 | 05623a72b892330e4b0e059a03ac4614da934ce9 | refs/heads/master | 2022-12-20T11:51:14.221422 | 2020-10-07T19:10:25 | 2020-10-07T19:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | """
NuSA (Numerical Structural Analysis in Python)
Author: Pedro Jorge De Los Santos
E-mail: delossantosmfq@gmail.com
License: MIT License
"""
__version__ = "0.3.dev0" | [
"delossantosmfq@gmail.com"
] | delossantosmfq@gmail.com |
88ed3e880375b4ac57d177eeb203532e60954ef0 | 2881ffb6c09769baa406ba9abcd97d84a1f6565b | /operation.py | 216efa8d95062104f71ce7bb7f408a26cda7c7d0 | [] | no_license | doubleQ2018/Deep-learning-for-contact_map_v1 | e9c57bf076a6c876a4c8e862845dd4362a435017 | cf7c8534a0d48342ce377b648801e9ca36d69474 | refs/heads/master | 2021-07-24T05:15:51.334347 | 2017-11-02T03:16:28 | 2017-11-02T03:16:28 | 106,917,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,959 | py | #!/usr/bin/env python
import tensorflow as tf
def weight_variable(shape, regularizer, name="W"):
if regularizer == None:
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial, name)
else:
return tf.get_variable(name, shape, initializer=tf.random_normal_initializer... | [
"qizhang2017@gmail.com"
] | qizhang2017@gmail.com |
781e3a3220dfce5f932fcaca21e7ef3c5aca7dfc | c5eaa50971285f253b4de99856f4f74af9d166b4 | /src/readability_lxml/client.py | 0319764b5296ba890fe6bd745613ec342543771e | [
"Apache-2.0"
] | permissive | mitechie/python-readability | 93a1ae392f359649c468fca8d8c73f36aef26d66 | 7dc373e9c5592ccf2086f7c5f6acdf3c8f7480c1 | refs/heads/master | 2020-12-25T09:47:12.511404 | 2012-04-21T14:08:00 | 2012-04-21T14:08:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | import argparse
import sys
from readability_lxml import VERSION
from readability_lxml.readability import Document
def parse_args():
desc = "fast python port of arc90's readability tool"
parser = argparse.ArgumentParser(description=desc)
parser.add_argument('--version',
action='version', version=V... | [
"rharding@mitechie.com"
] | rharding@mitechie.com |
ee494fd318c550505865399823598fd333b54246 | 55edbd8f76d1e30548666b1ebfc2977741668fea | /backend/chart8_file_cleaner.py | 4ff726adafaa2a656aa2016734b0cc46d0e96f19 | [] | no_license | iagocc/datavis-project | b84071e52be705afa5316936e512dfa7ede98499 | 872ed831d447ba16c6855d37b21182ca3542ec20 | refs/heads/master | 2020-04-07T13:51:02.085165 | 2018-12-04T21:39:50 | 2018-12-04T21:39:50 | 158,424,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | import pandas as pd
# Read data
data = pd.read_csv("../src/data/data.csv", sep=",")
# Name of the required columns
data_columns = ["What are you most excited about as we move toward a more digitally connected future?"]
# Select required columns and dropping NaN values
data = data[data_columns].dropna()
# Name of th... | [
"iagocc@gmail.com"
] | iagocc@gmail.com |
3a7cc58cc07a935ae7060b98847c1c7426781201 | e88b3a60b420717b9b6e9f50832f06048fc8f938 | /zuisearch/search/migrations/0007_auto_20170212_1303.py | 838f431dba9d6250045799c38325af393f2285be | [] | no_license | Fartown/Python-Project | 9b94a4151b31de38f47da1a44c76951915e1079d | e64e83014de8cfca68b5bc7befd655c1e828e7f6 | refs/heads/master | 2021-06-13T18:05:23.568592 | 2017-04-26T15:54:05 | 2017-04-26T15:54:05 | 68,887,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('search', '0006_auto_20170212_1303'),
]
operations = [
migrations.AlterField(
model_name='site',
name... | [
"zchao@Fartown.(none)"
] | zchao@Fartown.(none) |
99f2007699fac309252f2ad6a6a3ff4f4a1c4d24 | eb5b8fbdbf36030fca49812acdfb68d04c1fb54e | /application/controllers/categorias/config.py | 075f9ecbd82c2325ae58af4c51bfa3d3559db156 | [] | no_license | jireh14/tienda_online | 81d30a0a6f1a6a9e2819abfd7d8626a8f843e815 | ad8db13a913c40f89ec04993ff892fcd304dd442 | refs/heads/master | 2023-04-05T04:44:05.134751 | 2021-04-15T05:56:23 | 2021-04-15T05:56:23 | 358,139,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import web
import hmac
import application.models.model_categorias
render = web.template.render('application/views/categorias/', base='master')
model = application.models.model_categorias
secret_key = "kuorra_key"
def hash_str(s):
return hmac.new(secret_key, s).hexdigest()
def make_secure_val(s):
return "%... | [
"jirehc813@gmail.com"
] | jirehc813@gmail.com |
f6bf6331f670fe740fe68bf2a883416777a1465e | f1800e8a1b0c2dea5616730e3cfc7ce57b0773e7 | /backend/apps/users/migrations/0002_auto_20210910_1654.py | 4b044f800ce12c49cd32c3585a0ce085a01307a6 | [] | no_license | RohanPawar02/fueled_up | 4a453870c33eee0191db2f997cca478e98b26339 | ba01c56a14a4c40de5a3aa71a68f3a69475f267a | refs/heads/main | 2023-08-21T17:45:40.234780 | 2021-10-18T21:16:43 | 2021-10-18T21:16:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # Generated by Django 3.1.1 on 2021-09-10 16:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='id',
field=mod... | [
"deekshith@musubi-management.com"
] | deekshith@musubi-management.com |
76ef72856b29c9b544f901a5a6262f4cbd8a7087 | 1800cb5504e04282c48bc4780d2b2a5da6dd9801 | /django_xsede_warehouse/monitoring_db/apps.py | af5e226feb6764fdf607b83c63e8d453fbf2f171 | [
"Apache-2.0"
] | permissive | XSEDE/XSEDE_Information_Warehouse | 67ec2ce2230e136d31a9016720628ad42c468292 | 30dcf322823a33afe6567cfdc9e467304ea3d69f | refs/heads/master | 2022-10-01T18:57:45.704348 | 2022-09-04T09:27:34 | 2022-09-04T09:27:34 | 218,333,467 | 1 | 0 | Apache-2.0 | 2021-06-30T17:15:37 | 2019-10-29T16:30:36 | Python | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class MonitoringDbConfig(AppConfig):
name = 'monitoring_db' | [
"navarro@anl.gov"
] | navarro@anl.gov |
5d85feea87db2cd7b9f58a5a1fb29a01ab6a72f2 | 32bae996c594282515193ecb2357feb4f3004944 | /sap/cli/datadefinition.py | 8ec403e875616f73661a190f86cd5fe392adeaa4 | [
"Apache-2.0"
] | permissive | corani/sapcli | 2559c59073d64285dfe606c0afe491826d2a72ea | 7e81776afa08be0c454c0f86754c8a9b5d938522 | refs/heads/master | 2022-11-13T12:27:44.016007 | 2020-06-08T11:19:40 | 2020-06-08T11:20:09 | 273,421,126 | 1 | 0 | Apache-2.0 | 2020-06-19T06:29:13 | 2020-06-19T06:29:12 | null | UTF-8 | Python | false | false | 954 | py | """ADT proxy for Data Definition (CDS)"""
import sap.adt
import sap.adt.wb
import sap.cli.core
import sap.cli.object
class CommandGroup(sap.cli.core.CommandGroup):
"""Adapter converting command line parameters to sap.adt.DataDefinition
methods calls.
"""
def __init__(self):
super(CommandG... | [
"jakub@thefilaks.net"
] | jakub@thefilaks.net |
ea9725570acf25a1c0e83210109157119160c522 | 60c0646c66f0e2d3a61c7e76b31fdcca9d783d1d | /Model/model/model_module_video.py | 3c114d39f70cae1acb27304ed4522d2b8c73aca2 | [] | no_license | Nayoung-Kim-ICP/VQAC | 6dcd6bf7a866f9e551076d3de9e18d73c2bfffa6 | 4bcf79de953d8bd6ce08e4fe70b61629ef52ba74 | refs/heads/master | 2023-08-14T12:48:33.007117 | 2021-08-03T02:05:29 | 2021-08-03T02:05:29 | 391,040,202 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 16,920 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import pdb
def conv3x3(in_channels, out_channels, stride=1):
return nn.Conv2d(in_channels, out_channels, kernel_size=3,
stride=stride, padding=1, bias=True)
class VideoEncoderLSTM(nn.Module):
def __init__(self,input_siz... | [
"1210513skdud@ewhain.net"
] | 1210513skdud@ewhain.net |
9af6e42d83edadd6a400d931ac653f5aef03369c | c4cde4e3538b455e558f8896f90f05ea39408a4d | /helpers/rovershare.py | f6da69a9b6a767b6821333845c72ca02aac1d2d7 | [] | no_license | sumsted/rover | 0380b26b3eb0bf6426d28221f077169bb740456d | d658c35d45cf887b23e299d3ff570d9cdc856ab2 | refs/heads/master | 2021-01-01T20:01:37.512806 | 2017-12-04T12:16:04 | 2017-12-04T12:16:04 | 98,741,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,941 | py | from datetime import datetime
import json
import time
import redis
from helpers import settings
# todo make singleton
class RoverShare:
host = settings.share.host
port = settings.share.port
command_queue_key = settings.share.command_queue_key
sense_key = settings.share.sense_key
sense_queue_key =... | [
"scottumsted@gmail.com"
] | scottumsted@gmail.com |
a6f24f778f88de730dc5cb61dd32980ef650f00f | de8649d505b4497221c9d9e751c2683b252b5566 | /preparation/generate_sent_cls_ws.py | b1162919218cf0cfb32a9159e7819b66efe1cdc7 | [] | no_license | Poonamspatil/WSD_GlossBERT | ee44f2239feda8051b7bfa6b62e1feeffec7e112 | 3b839c36785505d6c4af3472262d467b5e2f89f8 | refs/heads/main | 2023-05-28T14:43:00.641208 | 2021-06-11T23:34:15 | 2021-06-11T23:34:15 | 319,145,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | import pandas as pd
def generate_auxiliary(gold_key_file_name, train_file_name, train_file_final_name):
sense_data = pd.read_csv("./wordnet/index.sense.gloss",sep="\t",header=None).values
print(len(sense_data))
print(sense_data[1])
d = dict()
for i in range(len(sense_data)):
s = sense_d... | [
"poonam.s.patil24@gmail.com"
] | poonam.s.patil24@gmail.com |
70e32ce9e16ab49b8ed98fc827fb803e1281bc52 | 088bca9cb2b1f45c03f86275b5e7340d4c149391 | /general_python_commands_helper.py | a2372689184bded059f4e30d568078014ea3e67e | [] | no_license | brbarba/DevNet_Test | e187bdb81fc3cec7a3cc63cb1bfe111172c215cd | 0ccf73a46bc4a39d95a0d7dc4fb57a11745c982d | refs/heads/main | 2023-06-08T21:31:56.455386 | 2021-06-18T17:00:53 | 2021-06-18T17:00:53 | 336,384,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | Bruno Barba (brbarba)
bruno.barba@gmail.com
curl https://deckofcardsapi.com/api/deck/new/
curl https://deckofcardsapi.com/api/deck/new/ | python -m json.tool
85oy87cxjene
curl https://deckofcardsapi.com/api/deck/85oy87cxjene/shuffle/
curl https://deckofcardsapi.com/api/deck/85oy87cxjene/draw/?count=3 | pytho... | [
"noreply@github.com"
] | noreply@github.com |
67776f4721c51c4ac3461d3e0f39900c8b9da38f | 75ed1a94024e4f4d71080784a45382bc706f72f3 | /lib/TrainTransforms.py | 1737927623289eadef69c148a2a134905c6609ce | [
"MIT"
] | permissive | karrirasinmaki/Deep-Exemplar-based-Video-Colorization | f0dbb1f0009b64c5184c833ef49631b3b27b1d2b | 178d3be1eae9707de2a56a278b6651fae3c4a06c | refs/heads/main | 2023-07-29T01:59:53.952150 | 2021-09-05T19:55:46 | 2021-09-05T19:55:46 | 403,400,539 | 0 | 0 | MIT | 2021-09-05T19:54:11 | 2021-09-05T19:54:11 | null | UTF-8 | Python | false | false | 10,114 | py | from __future__ import division
import collections
import numbers
import random
import torch
from PIL import Image
from skimage import color
import lib.functional as F
__all__ = [
"Compose",
"Concatenate",
"ToTensor",
"Normalize",
"Resize",
"Scale",
"CenterCrop",
"Pad",
"RandomCr... | [
"zhangboknight@gmail.com"
] | zhangboknight@gmail.com |
9a9deb90c6765a6bc613f4f39852d1b3fc01d628 | 0f850c7a6746174c3ecc20884e6dc7b2aa6bcce1 | /model.py | ca0e76717541a32c12900d843baad3651fbc293f | [] | no_license | wnd2da/launcher_gateone | 9e1831637606885374dcfeca36637b20fdcfcbbb | 601b00cdaf179e7cdd96e63f9aa8abd427f52cf9 | refs/heads/master | 2022-12-04T13:38:14.346940 | 2020-08-23T04:02:27 | 2020-08-23T04:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # -*- coding: utf-8 -*-
#########################################################
# python
import os
import traceback
import json
# third-party
# sjva 공용
from framework.logger import get_logger
from framework import db, app, path_app_root
# 패키지
from .plugin import package_name, logger
db_file = os.path.join(path_app... | [
"cybersol@naver.com"
] | cybersol@naver.com |
60a83fbe0010450f8a95ef1138802bc95b62c8fa | 67b5c4a03c3da2808054cfabc4001f05c7fdac49 | /dataset/cifar_dataset.py | 7e78aa20301bc7fdaf7dd7f7f646b65b59594f87 | [] | no_license | dannieldwt/deep_learning_algorithm | 411b1ffef4fdea1e0a42a09bee82c68bab17bffc | e2a37a378c88e20560ef6c0e8187a751905a51b1 | refs/heads/master | 2022-04-10T03:46:19.788919 | 2020-01-18T14:16:14 | 2020-01-18T14:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 11 17:54:50 2019
@author: ubuntu
"""
import pickle
import numpy as np
from dataset.base_dataset import BasePytorchDataset
class Cifar10Dataset(BasePytorchDataset):
"""原版数据集地址http://www.cs.toronto.edu/~kriz/cifar.html
cifar10: 10个类别,每个... | [
"ximitiejiang@163.com"
] | ximitiejiang@163.com |
78421668c8113cc8e4b31e0ba9f309587628adf4 | 0a571ef7c253fea732ea78e4b60e0036ea691e35 | /ex32.py | 19a9a82c964838d3211c8077a85df169644145b0 | [] | no_license | rickyliang/LearnPythonTheHardWay | 195f52d1348ef0b0c6965c6a5a4e6980a8711fcf | c2c03e0d2db0f708b5ea3b8133b0c3fdb9ac8cb2 | refs/heads/master | 2021-01-19T07:40:48.993649 | 2013-07-22T16:37:33 | 2013-07-22T16:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
# This kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# Same as above
for fruit in fruits:
print("A fruit of type: %s" % fruit)
# Als... | [
"auroricshiva@gmail.com"
] | auroricshiva@gmail.com |
d44823306bf40a15ec636e8ba74c741bb09b99de | 5598bac15d368797bff05c980e0b593da2561a6e | /20201/an toan thong tin - 118581/BTL_AN Toan Thong Tin/Nhóm 19 - Bảo mật cho Web Services/code/database_setup.py | db6ed09ee10b1640ec85642ff79aceab879df60a | [] | no_license | somsith201902/2020 | ce994edfc5ceaf85a39348b2b625fd81a4c7d532 | b8f8dfd0ac9d9d571ae0899949051e9910ff622c | refs/heads/master | 2022-12-22T11:02:17.059139 | 2020-09-22T00:27:26 | 2020-09-22T00:27:26 | 297,055,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import datetime as dt
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
# set up a database
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///bookdb.db'
app.config['SQLALCHEM... | [
"62319067+somsith201902@users.noreply.github.com"
] | 62319067+somsith201902@users.noreply.github.com |
5539727e73e5e18f47b699068762515e65a513b1 | 0e0a0716d24440ab9dc4a2562db1802d0f26e81a | /gis_111/wsgi.py | fdb124d522cf3d18e283bed774f9b6d81c32d5b9 | [] | no_license | WOOONGGG/gis_1 | e490842b8cb86464c80c41fd38b4162b7a3979ca | a36ef66bd128105d795926f114fe05d38fe6df42 | refs/heads/master | 2023-06-17T12:15:10.028744 | 2021-07-12T05:53:08 | 2021-07-12T05:53:08 | 381,541,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for gis_111 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_SETTI... | [
"dndrl0504@naver.com"
] | dndrl0504@naver.com |
d88cf0d0164f97245ca06664603f5919c72fdfc1 | 7218199f8a9dc8442a273dd0ec2341e5658ac4c8 | /situacao/urls_api.py | ee55a0e3c7b0063e29e584edd8aaca13838baff3 | [] | no_license | catalunha/cata_django | c96fddb36941cc84f3abd91491dcac217cfa3034 | 47056d5ba760346e24861fdcc595fb816eeae597 | refs/heads/master | 2023-05-25T17:30:34.451476 | 2019-04-23T21:27:16 | 2019-04-23T21:27:16 | 180,234,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from django.urls import path, include
from rest_framework import routers
from .views_api import (
IndiceViewSet,
ProblemaViewSet,
SimulacaoViewSet,
ValorAleatorioViewSet,
RespostaViewSet,
ArquivoViewSet,
TextoViewSet,
ProgramaViewSet,
PropostaViewSet,
TesteViewSet,
)
situacao_r... | [
"nextlevel.servidores@gmail.com"
] | nextlevel.servidores@gmail.com |
87de100575ee539f20a920efe0619af7280ce396 | 1fda1664be3b19e0edf08f93bd69e358d40f49d6 | /sitioweb_sasor/ordenes_y_pedidos/migrations/0001_initial.py | 10ae9134e31fdc59f74688f9f69409c1ea1653f5 | [] | no_license | DanielRosasPerez/SitioWeb_Restaurante | b3b45ddfce86f0759bb1d8f64e612e1939a1ab30 | d5041229d2ddd223a818020efa2ea4efb4339429 | refs/heads/main | 2023-04-03T10:36:40.290978 | 2021-04-10T21:03:20 | 2021-04-10T21:03:20 | 355,366,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | # Generated by Django 3.1.3 on 2021-04-06 23:07
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='OrdenCli... | [
"daniel020197s@gmail.com"
] | daniel020197s@gmail.com |
bae48855210e299852060c2088e67bd9f761ceaa | f8b5aafac15f408a48fabf853a918015c927e6fe | /bk_tomo/venv/venv27/lib/python2.7/site-packages/ansible/plugins/connection/docker.py | f49d12bcc74208905d92af64bbc82e6a9ebf119d | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,357 | py | # Based on the chroot connection plugin by Maykel Moya
#
# Connection plugin for configuring docker containers
# (c) 2014, Lorin Hochstein
# (c) 2015, Leendert Brouwer
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#
# Maintainer: Leendert Brouwer (https://github.com/objectified)
#
# This file is part of Ansible
#... | [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp |
111ad7759a7b64fcebd8e479d0b995ed69e7a11a | 6aac446b1bdcb78fddb9d30a479bd151d5678288 | /django-salesforce-master/salesforce/backend/features.py | 3dae9cc2d483e7278644727dcf5e773e1196c017 | [
"MIT"
] | permissive | patelurvesh995/django-salesforce-master | 280cf5b69d9f3ee0ee6c65194d3612066f97e733 | 9a2c10e7338f2e42f39433b998a1e77c2c62b4c1 | refs/heads/master | 2022-10-19T11:36:46.735910 | 2020-06-11T10:19:00 | 2020-06-11T10:19:00 | 271,515,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | """
Database features (like django.db.backends.*.features)
"""
from django.db.backends.base.features import BaseDatabaseFeatures
from salesforce.backend import DJANGO_30_PLUS
class DatabaseFeatures(BaseDatabaseFeatures):
"""
Features this database provides.
"""
allows_group_by_pk = True
supports_... | [
"patelurvesh995@gmail.com"
] | patelurvesh995@gmail.com |
61a48c806bd338b16b2b38e7ad2975e6901b5b30 | a7c0cc71e6da4615eca2c3d75117dad5b8dce8d3 | /export.py | 177102ba06cd51436420f1940dfd4e0c28205977 | [
"Apache-2.0"
] | permissive | CTFd/CTFd | 4b75207aeea3ed8d761cc6269c27a070693ab3ec | d8f0b9e602fca109cabe1895e847d39a46ce7429 | refs/heads/master | 2023-09-01T19:19:19.767862 | 2023-08-29T18:46:53 | 2023-08-29T18:46:53 | 28,681,142 | 4,593 | 2,273 | Apache-2.0 | 2023-09-13T18:24:37 | 2015-01-01T05:36:55 | Python | UTF-8 | Python | false | false | 770 | py | from CTFd import create_app
from CTFd.utils import config
from CTFd.utils.exports import export_ctf
import datetime
import sys
import shutil
app = create_app()
with app.app_context():
print(
"This file will be deleted in CTFd v4.0. Switch to using `python manage.py export_ctf`"
)
backup = export_... | [
"noreply@github.com"
] | noreply@github.com |
30b010d2049deb9889ac634c2f45af497d8f3046 | 5a281cb78335e06c631181720546f6876005d4e5 | /ec2-api-8.0.0/ec2api/tests/unit/test_customer_gateway.py | e4dfd8ae776ef4561c265897a509d233ecc7cf74 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 5,305 | py | # Copyright 2014
# The Cloudscaling Group, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
73e820238602b07be66d8baca6c56e49aceb71d3 | 21fb3959c72ac78b9d32424b438317ea576b6815 | /Kaggle-PyTorch/PyTorch-Ensembler/main-seedlings.py | f0b60d2b52550ac10cd2c7ff7168bfc550cac553 | [
"MIT"
] | permissive | elviswf/Deep-Learning-Boot-Camp | 2a44af4818b029ac90981e6827323e1b91aa7f8d | 7d850114b6d6190e3c6102f07894ae8401bd21d8 | refs/heads/master | 2021-08-23T22:16:21.443458 | 2017-12-06T20:35:48 | 2017-12-06T20:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,767 | py | from __future__ import print_function
import argparse
import sys
import torch.backends.cudnn as cudnn
from torch.utils.data import DataLoader
from tqdm import tqdm
from kdataset import *
from utils import *
from pycrayon import *
# Random seed
model_names = sorted(name for name in nnmodels.__dict__
... | [
"shlomokashani@gmail.com"
] | shlomokashani@gmail.com |
47c7f38df6616f44f27f20887988c3be622a9975 | 0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7 | /Contest/weekly-contest-179/A.py | ebd41441c424c583e8fdc4369c9093db724bcbc3 | [] | no_license | LuoJiaji/LeetCode-Demo | 193f27ba36c93f9030435874a145c63a81d3c0f8 | 78e6e87c01848a1dc71b7dc0716029ece5f35863 | refs/heads/master | 2020-06-24T03:03:33.366537 | 2020-04-05T02:09:41 | 2020-04-05T02:09:41 | 198,830,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | class Solution(object):
def generateTheString(self, n):
"""
:type n: int
:rtype: str
"""
ans = ''
if n % 2 == 1:
ans = 'a'*n
else:
ans = 'a'*(n-1) + 'b'
return ans
res = Solution().generateTheString(4)
print(res)
| [
"lt920@126.com"
] | lt920@126.com |
bc6531c4310965f94b1414cff0269c73dd34becd | f71305e931bb493c5dcc2ec1260e7f7e93f98641 | /DOD-main-server/dod/notice/views.py | 7ac17dc9868093028e49d83271306426b2b565ef | [
"MIT"
] | permissive | ChanYeongShin/DOD-main-deploy | e63ef761693ec5cdec20655551e3fbf45bd5bc1c | 8dddf619ef713bdf532b0fbda704c515bee55e96 | refs/heads/main | 2023-06-12T15:53:28.938336 | 2021-07-08T04:17:15 | 2021-07-08T04:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | from django.shortcuts import render
# Create your views here.
from rest_framework import viewsets, mixins, status
from rest_framework.permissions import AllowAny, IsAuthenticated
from rest_framework.response import Response
from notice.models import MainPageDodExplanation, FAQLink, NoticeLink, SuggestionLink, Privacy... | [
"cyshin@yonsei.ac.kr"
] | cyshin@yonsei.ac.kr |
9fce71be596e167cbdbd8b915b98f9c62c586643 | a90aa4871684f6f24aa5b0daf2ece384418c748b | /basic/python/2_applica/3_scrapy/2_process/multiprocess.py | c422da3970f695c4de502a064be611270dd06869 | [] | no_license | Martians/code | fed5735b106963de79b18cc546624893665066cd | 653e2c595f4ac011aed7102ca26b842d4f6beaaf | refs/heads/master | 2021-07-11T19:22:24.858037 | 2019-02-22T13:04:55 | 2019-02-22T13:04:55 | 110,106,407 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | # coding=utf-8
'''
方案:数据库记录网址信息,本地多进程拉取, 第三课
参考:https://github.com/hezhen/spider-course-4/multi-process
## Install
pip install ConfigParser
~/.pyenv/versions/3.6.5/lib/python3.6$ cp configparser.py ConfigParser.py
pip install mysql-connector
## Question
1. 下载过程中,发生的编码问题等
2. 遇... | [
"liudong@daowoo.com"
] | liudong@daowoo.com |
9d279089a77135fbc10064fd3a579b800d03cf17 | 2d3a495a2bf910d2776f63df4339625e5a9e8413 | /markovobfuscate/obfuscation.py | a633ba8fd671d5a13f369d8e9d29a3cc40f36be3 | [
"MIT"
] | permissive | saltire/markovobfuscate | 65a898dd8146fffdd0195389e72a7afb1433d67f | 5aa66da955a246eb6dbc24ac9136beae87b58f14 | refs/heads/master | 2020-12-27T15:15:05.893111 | 2015-11-21T21:55:57 | 2015-11-21T21:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,350 | py | __author__ = 'bwall'
import re
import operator
import random
import logging
# Exception to throw if the algorithm breaks like a condom on prom night
class AlgorithmFailException(Exception):
def __init__(self):
Exception.__init__(self)
# The core class of this project, learns based off input of sentences... | [
"bwall9809@gmail.com"
] | bwall9809@gmail.com |
448821fd867e22fbfcb0723698f12a8cebd159f7 | 55c630ff8bb68f8193e87f9756710231caaafe00 | /users/migrations/0002_customuser.py | 92e8e21d9f7d2ec68d2582f3c005a92ce39889eb | [] | no_license | perevalova/news-site | 17ab82f53a689fffca4ef4647e94a91aac1c29aa | 6e7db75f37021405aaef3b3895223c7fafe6c7de | refs/heads/master | 2023-05-25T23:51:20.111756 | 2020-03-17T18:51:39 | 2020-03-17T18:51:39 | 223,809,250 | 0 | 0 | null | 2023-05-22T23:52:06 | 2019-11-24T20:58:46 | Python | UTF-8 | Python | false | false | 2,488 | py | # Generated by Django 2.2.8 on 2019-12-08 09:15
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
('users', '0001_initial'),
]
operations = [
... | [
"perev4n@gmail.com"
] | perev4n@gmail.com |
336f756bbb15086652c445a360b37418d8f15c84 | c5ae90a265c02eea8ed943e7b8d709f3d9344908 | /config/attention_full_64_exp.py | ac5e0e2fe07592de764a49c6adb21bedac93400c | [] | no_license | vicmancr/CardiacAging | 97a88bfdb0b9775ef5b48530bfdf5f59961edc78 | fcdd6e37bc70453ae145b3611d6f38e045ecdab5 | refs/heads/master | 2023-04-11T06:44:56.309495 | 2022-09-02T14:48:31 | 2022-09-02T14:48:31 | 530,682,739 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | '''
Model with attention fully (also for discriminator)
From Diffusion models beat GANs
https://arxiv.org/abs/2105.05233
Model originally introduced by Ho et al.
https://arxiv.org/abs/2006.11239
'''
import importlib
EXPERIMENT_PARAMS = importlib.import_module('config.attention_full_exp').get()
NEW_EXPERIMENT_PARAMS =... | [
"vicmancr@gmail.com"
] | vicmancr@gmail.com |
0bf0352478427828fb804fca85fa0cdeba3fab31 | 66deb72d5e4b21fb1689f15ded2eec7c056b0561 | /activityio/_util/xml_reading.py | 3010b4dc23249965a98ec3d33c3eb175bfe23f6d | [
"MIT"
] | permissive | clearinterface/activityio | 45a211759fb775317ca214cb8a989b502790a7b1 | 98e1dcba8be71deb1de93cb011699ee803efc08a | refs/heads/master | 2020-05-29T20:16:26.679286 | 2017-04-04T10:54:07 | 2017-04-04T10:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Functions for memory efficient XML parsing.
Note we need to name this ``xml_reading`` so as not to clobber the standard
library package.
"""
from xml.etree.cElementTree import iterparse
def gen_nodes(file_path, node_names, *, with_root=False):
"""Efficiently it... | [
"jordan.mackie48@googlemail.com"
] | jordan.mackie48@googlemail.com |
8bbb98c714fae1379a9dd24cdb73cd12c1fa67ae | 8c71b331b301956831c1f59d44cc980033080027 | /Older Versions/Release Version/Server-v1.5.1.app/Contents/Resources/Server.py | 431d497c5032efd53c73b4fa1dd91f40bf4c703c | [] | no_license | oliv10/Python-Server | ee3721681d2e0c99e86639d25ae4d698cadb9a81 | 7c4cc59b766290bccea9b83b6027de22cece535f | refs/heads/master | 2021-12-15T10:43:18.826935 | 2021-12-04T05:25:12 | 2021-12-04T05:25:12 | 112,391,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | ###Made by Oliver Scotten###
###Simple Command Server###
###Version 1.5###
###Imports***
import cmd
import socket
from threading import *
###Defined Variables###
ver = 1.5
buffer = 1024
ip = ''
port = 6000
userList = []
connectionList = []
socket_server = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
###Defined F... | [
"oscotten@parktudor.org"
] | oscotten@parktudor.org |
bf46db0b0b805194fe8e6a4f4fd9f6d2f6736559 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626130014.py | 2cde60173d6d8422f33af36b5ca36b8c888624ad | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 4,247 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
155eebe535e020599488870613e09cc4e72738ea | 42f5eaf16bfd7076cb5a598cf2f239faa575f28b | /05-grpc-google-cloud-speech/python/google/ads/googleads/v1/enums/user_list_size_range_pb2.py | 4a392319d68792e2fbe4bb17b0f164890059fed8 | [] | no_license | jiriklepl/IMW-2019 | ab0e1c791a794ccf8a6a8d8d4e732c29acee134c | 921c85d3c8132114ad90db8deb52eb5ddc06c720 | refs/heads/master | 2020-08-28T13:29:15.087785 | 2019-12-15T17:12:24 | 2019-12-15T17:12:24 | 217,711,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 6,690 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/enums/user_list_size_range.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.p... | [
"jiriklepl@seznam.cz"
] | jiriklepl@seznam.cz |
8ea7149573432ee174f89f0d06916bcecebac675 | 4336ae111a8f596c8025df0db67802b09d6c48b7 | /buildtools/im2h.py | 465e85ea6d7771a94d7a0ffa8baa23e3766ee7e9 | [] | no_license | seblovett/tools | d1ebb197f41bed9a5fbbfe8a61466b7178fa4506 | 8d57fa7fc967da75ffcd5e19bbb2496c00ef1f20 | refs/heads/master | 2021-03-12T20:26:09.751852 | 2015-02-10T18:07:51 | 2015-02-10T18:07:51 | 13,484,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | from PIL import Image
from optparse import OptionParser
def ConvertEndian16(value):
if value >= 2**16:
raise Exception("Value outside of 16 bit range")
retval = ( ( value & 0x00FF) << 8 ) | ( ( value & 0xFF00 ) >> 8 )
return retval
def Col2RGB565(red, green, blue, littleEndian = False):
'''Cover... | [
"seblovett"
] | seblovett |
f3e63027f9342d74004d07d382953b3b25209254 | 9fe52855491f9cb7316e6b5c182592157c02a5d3 | /train.py | f47d2cbc532cc21ddcba6584ad288b4d13d4d47a | [] | no_license | lazyfuzzypringle/OpenAI-GPT-tf.keras-generating-last-sentence | be6edd6ac7abf67f235850d98222f0711735ee2b | 74e98962b84a0c2010c22fa22d523bbdb432f7e4 | refs/heads/master | 2020-06-18T17:26:29.792373 | 2019-05-13T06:48:05 | 2019-05-13T06:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | import tensorflow as tf
import matplotlib.pyplot as plt
import pickle
from Transformer import Transformer
from Utils import iter_data, get_validation
import time
def train_plot(loss_results, accuracy_results):
fig, axes = plt.subplots(2, sharex=True, figsize=(12, 8))
fig.suptitle('Metrics')
axe... | [
"noreply@github.com"
] | noreply@github.com |
2977cd47d40d797be46e34e23febc392cced4b9b | 4216cc11ea349b2029a828ede0a5df18a805064e | /environmental/aus-enviro-topography/generate_layer_metadata.py | a5f60e03847f32eaf80b5bfdc9a510285259156f | [] | no_license | s2986104/data_conversion | 50b35f42d92f9c3834831e6f30005e790e7dc3de | b4fc40a80e39246e5ad1da9b8aee55e5f554895e | refs/heads/master | 2021-01-15T03:57:17.553408 | 2020-03-09T07:12:21 | 2020-03-09T07:12:21 | 242,870,516 | 0 | 0 | null | 2020-02-27T05:43:01 | 2020-02-25T00:02:28 | null | UTF-8 | Python | false | false | 9,237 | py | import json
import uuid
import copy
class MetadataGenerator:
COL_IDX_IN_GUIDE = 1 # collection index in guide.json
def __init__(self):
self.guide = {} # input json data serving as a guide
self.collection = {} # output json data, goes to collections.json
self.datasets = [] # outpu... | [
"d.guillen@griffith.edu.au"
] | d.guillen@griffith.edu.au |
7224866e7019a801e4866bedefa9c9e7f54e151a | 017cf997ef329b5cbcfa8c7becc533fb45620a14 | /models/preactresnet.py | 7a0c9e775a540d22af577f710841fee4bd4950ae | [] | no_license | ianwhale/pytorchnet | 331034f6c03427d090afdcc685660516427a511b | 0d67d7b584fa06c09a138f6f7bad8d5fdddc7c1f | refs/heads/master | 2021-05-12T10:28:45.739217 | 2018-05-02T17:10:58 | 2018-05-02T17:10:58 | 117,354,264 | 0 | 1 | null | 2018-01-13T15:24:20 | 2018-01-13T15:24:20 | null | UTF-8 | Python | false | false | 5,734 | py | # preactresnet.py
import torch.nn as nn
import torch.nn.functional as F
__all__ = ['PreActResNet', 'preactresnet18', 'preactresnet34',
'preactresnet50', 'preactresnet101', 'preactresnet152']
def conv3x3(inplanes, out_planes, stride=1):
"""3x3 convolution with padding"""
return nn.Conv2d(inplanes,... | [
"vishnu@msu.edu"
] | vishnu@msu.edu |
e497740b7d742060c247e2376d3bf36897074f9d | c01888eae849e92385217d804b9796a8d83646c4 | /0x01-python-if_else_loops_functions/100-print_tebahpla.py | 9f9b382a015cc907e8c1e2ed001ce18c61d567ae | [] | no_license | lucho1503/holbertonschool-higher_level_programming | 1de3e39de013499d2fa83b07c361dac6ae81c7b4 | 03de241ba63ffa425cbe089e69ebafac4d2c6e6e | refs/heads/master | 2020-07-23T04:12:48.262107 | 2020-05-13T02:46:19 | 2020-05-13T02:46:19 | 207,442,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #!/usr/bin/python3
for i in reversed(range(97, 123)):
if i % 2 != 0:
i = i - 32
print("{}".format(chr(i)), end='')
| [
"lmmc.1503@gmail.com"
] | lmmc.1503@gmail.com |
41d081c5e295fcddccd0310aa469c46bfcbe51c5 | a5a81bc468d2b9d6a87c49701441cf6dacdaf039 | /tester/grabAndPlotLimits.py | 61aedf06e2b49f6165e7a313ba5233e52cf45152 | [] | no_license | truggles/CombineHarvester | 396833e57afe2a203c9c4ee5117b87c3397eb795 | 8721ef6752006999c014a86bb13e81402cda0662 | refs/heads/master | 2020-04-05T08:19:11.877201 | 2016-02-01T14:39:17 | 2016-02-01T14:39:17 | 50,054,454 | 1 | 1 | null | 2016-01-20T19:26:20 | 2016-01-20T19:26:20 | null | UTF-8 | Python | false | false | 3,210 | py | import ROOT
import array
from ROOT import gPad
masses1 = [80, 90, 100, 110, 120, 130, 140, 160, 180, 600, 900, 1000, 1200, 1500, 2900, 3200]
ROOT.gROOT.SetBatch(True)
def plotLimits( signal, channel ) :
#if channel == 'em' or channel == 'tt' or channel == 'mt' : masses = masses1
masses = masses1
#limi... | [
"truggles@wisc.edu"
] | truggles@wisc.edu |
72da9895727941ad7fc7cff90e1e150329f57ce8 | 8631f23c1e92529f1e88c76fc3ddcd33b8df0abf | /messenger_bot/main.py | ba82c41de46f2fd7ea62bf4893075cfa9736e9af | [] | no_license | bluehacks2020/ralph_angels | a41b8d5ef0849a2ffabee8e1517dcaf8503de13a | 3680aa21ca9d9dd0b9d8c7dd70268d5c043280ab | refs/heads/master | 2021-07-15T17:17:47.654221 | 2021-03-25T14:01:06 | 2021-03-25T14:01:06 | 242,446,611 | 0 | 0 | null | 2021-03-25T14:01:07 | 2020-02-23T02:58:24 | Python | UTF-8 | Python | false | false | 9,148 | py | import random
import time
import hashlib
from flask import Flask, request
from pymessenger.bot import Bot
from google.cloud import storage
app = Flask(__name__)
ACCESS_TOKEN = 'EAAHUZB2qKO78BANHbqf3MqWweYNoRe6f1BeNFNoS4LMZBN5rZAvbZBQ1hADYlA5ggzZAete52pvPYkZCebUdT2Xa72frKekEsykjD3ykl3F9RI9TxPIM7qPK99AFY5ZBkYy5E2JCBnWz9... | [
"franzlouiscesista@gmail.com"
] | franzlouiscesista@gmail.com |
cbd3a59f621b2c00b5344f6c6972f24176821513 | 55e983caea1643efaf6cd449f12317a13ca28b2d | /matsidestats/settings.py | 6bed13c3c9a2ed5d0da79451991abb775dfe5cf4 | [] | no_license | kharron/matsidestats | a040bf0d1c7d2a0a25280e2ca425ad077d9ad12f | 9587439480525d39eca2ea3ccc1d08fb372c51fd | refs/heads/master | 2021-01-19T00:12:33.373320 | 2014-12-19T05:02:46 | 2014-12-19T05:02:46 | 28,146,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,432 | py | # Django settings for matsidestats project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'mat... | [
"kreid@kharron.com"
] | kreid@kharron.com |
58c7ff2a6067216bc0386f2a43ff30ae25929f09 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/ankiandroid/testcase/interestcases/testcase1_3_0_3_3_004.py | a03762f34cada6a568fc0fd1d438871d03d00428 | [] | 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 | 9,309 | 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 |
ca33b8c178a7953c3e2008ed937eba9c965c0404 | 5ebdc260835a123a016f1f8d8788ed6bb1d85178 | /Python/src/bqs/bag.py | 90db89979eecc2bc7f1a31d58a0a45461f20dc6b | [
"Apache-2.0"
] | permissive | Sunil-Y/INFO6205 | 099dd59a399f38839064be97180e2dcc3cd46d7b | 7d22f0dd3fa8661df49dbc5aad805d8e09143c73 | refs/heads/master | 2023-01-15T16:02:19.973196 | 2020-11-19T18:19:33 | 2020-11-19T18:19:33 | 294,549,446 | 1 | 0 | Apache-2.0 | 2020-11-19T18:19:34 | 2020-09-11T00:00:42 | Java | UTF-8 | Python | false | false | 398 | py | from abc import abstractmethod, ABC
from typing import Generic
from util.generic_type import T
class Bag(ABC, Generic[T]):
@abstractmethod
def add(self, item):
pass
@abstractmethod
def is_empty(self) -> bool:
pass
@abstractmethod
def contains(self, item) -> bool:
pa... | [
"meda.s@husky.neu.edu"
] | meda.s@husky.neu.edu |
b46c371be04180ff1c90ce7e65e4529d1baa99cb | 8d7f550b541fc586da3738408864f2e588a92967 | /Yoon/main.py | a09cf6836c9a5ec333b03ffb18095e1700b81f91 | [] | no_license | GhibliField/pyTorch-text-classification | d7851f7b967f5b0dae4ac5d4d628fc339f059a1a | a5d5ea0efe071c48eb1cd2cc85f6e44f5aa57225 | refs/heads/master | 2020-03-22T08:41:10.010689 | 2017-12-06T11:35:16 | 2017-12-06T11:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,160 | py | import sys
import os
import time
import math
import argparse
import datetime
import numpy as np
import torch
import torch.nn.functional as F
from torch.autograd import Variable
from sklearn.metrics import confusion_matrix, auc, roc_curve
from Yoon.build_dataset import Databuilder
from Yoon.model import TextCNN
from Yoo... | [
"noreply@github.com"
] | noreply@github.com |
14b7aae7767aad49409ab0944c50817bd8fbdaee | 70ab3ee89cafa7f4882a6944e6ec335210875d30 | /run_single_basketball_leyou.py | 6ccf32d3874091547ad3bd0b9bab6d23628562ba | [] | no_license | SXL5519/caipiao1.0_1 | 3fa1fecd00576c36f37e6af21f0fe9b326289a6a | 2db4387c5bad536cce99417041fbd34a699aa2cc | refs/heads/master | 2021-10-10T07:39:45.127902 | 2019-01-08T09:32:47 | 2019-01-08T09:32:59 | 164,613,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import unittest,time
from HTMLTestRunner_jpg import HTMLTestRunner
from modle.function import send_mail,screen_shot,logfile
case_dir = "./test_case/Leyou"
pattern="*_single_basketball_*.py"
discover = unittest.defaultTestLoader.discover(case_dir,pattern)
logfile()
if __name__ =='__main__':
#日期格式化
times = tim... | [
"shaoxinlin5519@163.com"
] | shaoxinlin5519@163.com |
d8dfb393f45d53651ab330a2bbb3f8f5ee094591 | a1f28a63fcea3f42ecd56f26173870b377f91768 | /core/utils/rcnn/lib/model/faster_rcnn/resnet.py | 6ad5f40776b5cad6f6d9b6bc902abdd1013f3fd5 | [
"Apache-2.0",
"MIT"
] | permissive | ahmedcs/REFL | a91b8bdcdf2f947396101cadce4813a584ac1329 | aa7e6425fe8b888bccfcc722a086df120cbd833e | refs/heads/main | 2023-04-17T16:05:42.596907 | 2023-01-13T22:52:24 | 2023-01-13T22:52:24 | 526,689,316 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,975 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import math
import torch
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
from model.faster_rcnn.faster_rcnn import _fasterRCNN
from model.utils.config import cfg
__all__ = ['ResNet', 'resnet18... | [
"ahmedcs982@gmail.com"
] | ahmedcs982@gmail.com |
7de2ff8c5dee4549c5a75df660ade2cd3a46a8a9 | 0de63bbad4dbb22e9f078380d3cb670f3fd43e3a | /sa/lab5/lab5v2.py | d9eceeb44035671a25ff79c028cfff918db4c31d | [] | no_license | znifer/archive | 696ed3455f614425eb43c0bd44542ce8272c3867 | 25213a91b272a2929325e271b0554eacb4a2d4e0 | refs/heads/master | 2021-07-06T20:48:00.720205 | 2021-04-28T11:24:38 | 2021-04-28T11:24:38 | 235,637,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,679 | py | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
x_vectors = [
(8.0, 12.0),
(7.0, 4.0),
(9.0, 11.0),
(5.0, 9.0),
(8.0, 8.0),
(4.0, 6.0),
(5.0, 11.0),
(10.0, 17.0),
(6.0, 11.0),
(4.0, 9.0),
(5.0, 16.0),
(4.0, 7.0),
]
Y_vector = [
... | [
"40485236+znifer@users.noreply.github.com"
] | 40485236+znifer@users.noreply.github.com |
7bcfd4631acd6ec1a94cf9cbb5708ab1c8d51c81 | ad5542c705938d1d52ab14e363035b4575e8abcd | /i2b2tools/lib/rules/__init__.py | 3836381fb30476f552f180d8951ba208c75f89c7 | [
"Apache-2.0"
] | permissive | cjliux/i2b2tools | 0811236675ef83277a8784c000d46fff8dd9501a | 305f2555121de4f09780ca13c018644b8759e363 | refs/heads/master | 2020-05-04T15:35:29.498884 | 2019-04-25T08:13:19 | 2019-04-25T08:13:19 | 179,247,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from .postprocessors import *
from .predicates import *
from .rules import *
| [
"cjliux@gmail.com"
] | cjliux@gmail.com |
cdaeb44339a121395e5d1c1aa1d3aaefd3dd0adc | a7b9c745ade6a1becf73b879063a0aa3191b3db2 | /homectl/cli.py | 0bcbbb91e826021c52610150a91432e6e52701b7 | [
"MIT"
] | permissive | cmccandless/homectl | fcd47a252ead6840400f744a32f9c39159ac4432 | 338b09583b9817a11bf55df7c4db6143b43d74f9 | refs/heads/master | 2020-03-27T11:37:36.066580 | 2018-10-30T13:53:26 | 2018-10-30T13:53:26 | 146,498,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | import argparse
import os
import sys
from functools import partial
from .__version__ import VERSION
global_parser = argparse.ArgumentParser(add_help=False)
global_parser.add_argument(
'--config',
help='homectl config file',
default=os.path.expanduser(
os.path.join(
'~',
'.... | [
"corey.mccandless@atlasied.com"
] | corey.mccandless@atlasied.com |
9ca64739dcafdeb5794a98a4c215f1cf7a1a2dbf | 8ba4e30d81a56f926096f603846f01593e7f71ba | /CP3/Mandelvoodooless.py | 5e7580524af97652c504234fa442b87f10649e08 | [] | no_license | douglascoenen/CompSci | b07fa739dd9f8a96389ec9e9117ce2b39a9cf5ce | 4b520e8b4c29cd4cc0007d19f553a8df5c9aa60c | refs/heads/master | 2022-03-28T20:07:03.100623 | 2020-01-15T09:46:38 | 2020-01-15T09:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py |
"""
Douglas Coenen
Mandelbrot set
"""
import matplotlib.pyplot as plt
import numpy as np
class Mandelbrot(object):
def __init__(self, lim, creamin, creamax, cimamin, cimamax):
self.lim = lim
self.c_reamin = creamin
self.c_reamax = creamax
self.c_imamin = cimamin
self.c_i... | [
"douglascoenen@yahoo.fr"
] | douglascoenen@yahoo.fr |
52e5f02be0348d286eaa45d1457e68ff9698b3b6 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/kpi/battleeventjoindaily.py | 579ff996a58470e10b0a683fa40021637adbad39 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.mgr.kpi.base import KpiHandler
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.models.battleevent.BattleEvent import BattleEventMaster
from platinumegg.app.cabaret.views.mgr.model_edit import AppModelChoiceFi... | [
"shangye@mail.com"
] | shangye@mail.com |
e7735a2f162d22018a881a6fbbbf15c2154e356e | 2f37aef159ac15e36d748125a63de5fd9591773b | /modules/modules.py | 39398e3472bdfb0839342dc9ff5850dc35c3c59a | [] | no_license | Zedidle/learn-python | 8ab944c785b1f8bbd0a402f097a9ebe91f19199d | 618e6ad768caa4c0a734363a9a4d09c952d745f6 | refs/heads/master | 2020-05-20T05:53:53.205711 | 2019-05-07T14:21:45 | 2019-05-07T14:21:45 | 185,417,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # import fibo
# fibo.fib(100)
# print(fibo.fib2(1000))
# from fibo import fib, fib2
# from fibo import *
# fib(100)
# print(fib2(1000))
# import fibo as fib
# fib.fib(100)
# print(fib.fib2(1000))
from fibo import fib as fibonacci
fibonacci(500)
print(__name__) | [
"476409251@qq.com"
] | 476409251@qq.com |
5539073d89f51be559dc7501feb7d5871d7a0f4d | 93871aa837531e447e2bfeb591ac9cdefae964ee | /pwd_endcrypt.py | 098929316ad2f55522bb88b2060271c0a05b23c8 | [] | no_license | romli2020/mzmzmsms | 744ff6691501ae89a1848e7287dc0293f55233ba | 34bfb9c2ec8d78b35f880d5dbf224a22e450cc56 | refs/heads/main | 2023-01-04T01:13:20.973345 | 2020-10-22T21:55:02 | 2020-10-22T21:55:02 | 306,466,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,015 | py | # ENCRIP BY : Romli
# YOUTUBE : AVATAR ID
# RECODE SILAKAN IZIN DLU YA
import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00@\x00\x00\x00s\xc7\x01\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.