blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23c887ec233ab7b130e0a23bd6c95cf6840e2a47 | 03cf9fd509477cc87910e1ba3f142b1b5fd57126 | /word.py | 2fe79223b60d475dd20feb6385fd388819c14190 | [] | no_license | shanmukr/interviews | 5f037c7339165a588e3e990096d24ddf34332a4c | aa691cc9edd436f62852591d5adf1834d093a777 | refs/heads/master | 2020-03-08T01:15:28.028409 | 2019-08-19T07:43:02 | 2019-08-19T07:43:02 | 127,825,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | import re
dict = {}
list = []
for i in open("ss.pl", "r").readlines():
for j in i.split(" "):
dict[j] = [dict.keys()].count(j)
print(dict)
#lines.close()
#print ("test\n") | [
"shanreddy@BLR.ALLEGISINDIA.COM"
] | shanreddy@BLR.ALLEGISINDIA.COM |
178333942be49bf2442bdb7bd9a1e54639df14fe | cc128e9804ce0cb659421d2b7c98ff4bfbb9d90b | /pgd_multiGPU.py | c5ef0e9a21aefeb139bcc90c52935d3d305458ee | [] | no_license | hope-yao/robust_attention | 6beb2de2c3b849c66e79ec71ae81ed127cee3079 | 905a32f02bb8d4709666036f6a6e1f82684f8716 | refs/heads/master | 2020-04-02T08:52:48.430423 | 2018-10-30T00:13:55 | 2018-10-30T00:13:55 | 154,265,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | py | """
Implementation of attack methods. Running this file as a program will
apply the attack to the model specified by the config file and store
the examples in an .npy file.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import nu... | [
"hope-yao@asu.edu"
] | hope-yao@asu.edu |
f081fdf614ade82a67062865d661692811a7435e | b73573ca1a718981144dae2b224ecb3efa388de2 | /Documents/TJ 2015-2016/AI/wordCheck.py | c9f0dbf4007c90382bedeff1f2864933cb5b1839 | [] | no_license | kcgirish11/AIOthello | 079cfb35b69689bd4cb6c3b145b65d89b4b87203 | 6e899bff93bf35f819f1b3769f5ccd9ae2d2546c | refs/heads/master | 2021-01-13T15:17:32.671362 | 2018-02-20T02:48:49 | 2018-02-20T02:48:49 | 79,284,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py |
def wordDifference(str1, str2):
diffCheck = False
if len(str1) == len(str2):
for i in range (len(str1)):
if str1[i] != str2[i] and diffCheck == False:
diffCheck = True
elif str1[i] != str2[i]:
return 0
return 1
else:
return -1
print wordDifference("kiran", "biran")
print wordDifference("monkey... | [
"Kiran@airbears2-10-142-147-175.airbears2.1918.berkeley.edu"
] | Kiran@airbears2-10-142-147-175.airbears2.1918.berkeley.edu |
99b268cf408aaaac1a2c69af91e2d5cbe6672722 | 3915a4fcd9eb67d7ca11392a8b3c8c0363dc8fee | /flipped.py | e519d78f44b631ae59f4ee351cb3c1ef302421fa | [
"MIT"
] | permissive | Chunhai-Yu/CarND-Behavioral-Cloning | 157a952e90120c22a82f790f051f929ba81c5020 | 809cd01a68c90a5f278635f760a5c38e98a7ad01 | refs/heads/master | 2022-11-17T20:04:17.564791 | 2020-07-18T21:16:10 | 2020-07-18T21:16:10 | 280,646,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | # example to show: How does the augmented data look like
import matplotlib.pyplot as plt
import cv2
import numpy as np
originalImage = cv2.imread('/home/workspace/CarND-Behavioral-Cloning-P3/center_2016_12_01_13_31_14_194.jpg')
image_original = cv2.cvtColor(originalImage, cv2.COLOR_BGR2RGB)
'''plt.imshow(image_origi... | [
"qingluchenliu123@gmail.com"
] | qingluchenliu123@gmail.com |
bc77b5206343972814d61896dbc370d8d24d3573 | a811daf7e8ecc3b50e41ae87b6d166067d80df64 | /src/ml/train_torch_mf_edges.py | 75e285f1819a7a9e12c80f1732464e7bdee4b8c9 | [] | no_license | hercules261188/recsys-nlp-graph | 48656acb7cfeffa9303e432c766d16c6d5c22275 | 647b88779739d39d0912916f3e88f81960ca2d8c | refs/heads/master | 2023-06-24T08:29:21.350155 | 2021-07-18T17:25:27 | 2021-07-18T17:25:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,331 | py | import argparse
import datetime
import numpy as np
import pandas as pd
import torch
from sklearn.metrics import roc_auc_score
from torch import optim
from torch.utils.data import DataLoader
from src.config import MODEL_PATH
from src.ml.data_loader_edges import Edges, EdgesDataset
from src.ml.mf import MF
from src.uti... | [
"eugeneyanziyou@gmail.com"
] | eugeneyanziyou@gmail.com |
522c6e557077154eb95e4b57d2e40a9f642a56d3 | 37532586142349cec8d2b88c927585522f34b288 | /110. Balanced Binary tree/isBalanced.py | 4cd6cd6ed9daf91d530b5b2d42e166acbb0aa5a4 | [] | no_license | wangshanmin/leetcode | 893da1113c97df7a49660dba04716c9e511fb81f | 1eb962b57fe9e21d98611f3f8ab2629b1f6a0096 | refs/heads/master | 2021-04-15T14:57:30.643735 | 2018-07-05T12:44:33 | 2018-07-05T12:44:33 | 126,417,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 13 14:54:44 2018
@author: wangshanmin
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def cal_depth(self, root... | [
"wangshanmin"
] | wangshanmin |
419991fe1dfba085648e6f42ecdb04586f9f14c2 | 1c52dae8197951434701b7bb53dce869417fc862 | /wicked/config.py | 65340ae9cf83a53938d0b26f68695852a4900db9 | [] | no_license | plone/wicked | 5abe9b1c2efa67c83b6aafc148c11e6dac06c153 | 0c093f8304f29c38fb0edb232220455f0f7728fa | refs/heads/master | 2023-04-19T06:09:37.354870 | 2023-04-09T15:48:08 | 2023-04-09T15:48:08 | 2,811,068 | 2 | 0 | null | 2014-06-12T09:09:19 | 2011-11-19T22:09:03 | Python | UTF-8 | Python | false | false | 151 | py | from txtfilter import WickedFilter
BACKLINK_RELATIONSHIP = 'Backlink->Source Doc'
FILTER_NAME = WickedFilter.name
GLOBALS = globals()
| [
"whit@openplans.org"
] | whit@openplans.org |
15cb51e3e84e8a1de6d69f92dfcd65c7efe6c5d9 | 714992d03221df9aa4adc659095041d3c89a49b4 | /pachong/test09_mongodb.py | 95dce2a36b00a6202d42c95eb53eba71bc1584f8 | [] | no_license | zzy0119/test | f7961408ce5564adb8ae905b941e7927af9429a0 | 53c1a43e4b106878d6d99ecf0ec9dd857fabb5b5 | refs/heads/master | 2021-09-05T18:31:03.279884 | 2018-01-30T08:36:14 | 2018-01-30T08:36:14 | 115,862,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding:utf-8 -*-
from pymongo import MongoClient
client = MongoClient()
db = client.test #连接test数据库,没有则自动创建
my_set = db.set # 使用set集合,没有则自动创建
my_set.insert({"name": "zhangzongyan", "age": 28})
| [
"1754590086@qq.com"
] | 1754590086@qq.com |
e247a62b5974daae0e78938e36a11e8ab88163bf | 0374f04d8b141e92bb6d48d3487cb608dde58b39 | /tests/providers/google/cloud/operators/test_datastore_system_helper.py | 1f90a47b44989f22a4b88625a4d5ce12281d5659 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause",
"Python-2.0"
] | permissive | HubBucket-Team/airflow | 941697776d2d73465a22889dcf93b23b2872d013 | dcf87435219307d4e916a8abc2b819ad75e2b1cf | refs/heads/master | 2021-01-14T05:31:16.531533 | 2020-02-24T00:05:07 | 2020-02-24T00:05:07 | 242,613,174 | 1 | 0 | Apache-2.0 | 2020-02-24T00:17:29 | 2020-02-24T00:17:28 | null | UTF-8 | Python | false | false | 1,405 | py | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... | [
"jarek@potiuk.com"
] | jarek@potiuk.com |
044e73b6d010ce93303ef15f0b71818981402414 | 6a601530859c0ad634d38ec9790ca064ba6eae78 | /app.py | 6d9e1abb2d6a1436eda691d5e91b8597b5923788 | [] | no_license | gyn7561/minglufenci | 32ab2eca0a23b9ef56d8e6ce56373f4bf9e253cf | 8d3968ac78aa9848506f2f4969d4b52d9ad047a8 | refs/heads/master | 2020-12-05T06:42:23.310758 | 2020-01-06T06:19:05 | 2020-01-06T06:19:05 | 232,037,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import pkuseg
import os
seg = pkuseg.pkuseg() # 以默认配置加载模型
def process(file):
filepath, tmpfilename = os.path.split(file)
shotname, extension = os.path.splitext(tmpfilename)
if os.path.exists(shotname + "-words" + extension):
print("跳过" + file)
return
print("开始处理" + file)
fp = op... | [
"200804632@qq.com"
] | 200804632@qq.com |
e085c826a3b7a9943196aa9e0497816be78dfbd9 | 9c37059737001d768c817601fdc28a53c8f0290c | /test.py | d33d6ee612be098144493e86518a850d6e71f2b0 | [
"MIT"
] | permissive | ribner/tooshort | 86cec421759ca5046e23a3e6638d16626ba9657f | ffa3eda83fa3756e24524a126378acc3f293fed5 | refs/heads/master | 2022-07-09T04:54:59.171933 | 2020-02-20T05:00:36 | 2020-02-20T05:00:36 | 240,808,043 | 0 | 0 | MIT | 2022-06-22T01:12:48 | 2020-02-16T00:28:30 | Python | UTF-8 | Python | false | false | 12,249 | py | import unittest
from sklearn.datasets import load_boston, load_iris, load_wine
import numpy as np
import pandas as pd
from pandas.util.testing import assert_frame_equal
from sklearn.linear_model import LinearRegression, SGDRegressor, SGDClassifier, LogisticRegression
from sklearn.svm import SVC
from too_short import T... | [
"elliottribner@Elliotts-MacBook-Pro.local"
] | elliottribner@Elliotts-MacBook-Pro.local |
8f875ea94e41164e8fde720f8fa32662def4ae83 | b184d2e5bd950da935d5585fd4b79a9f51b8130b | /src/cppyythonizations/tuple/__init__.py | 974d005bd5104f2f9678e6fd17fb58d11196e085 | [
"MIT"
] | permissive | flatsurf/cppyythonizations | 7bc2b5bce97923aae6f57c1e9d8d66c264585115 | 7169d7d0b11160edfaee782bf9c5c60ee32e4da2 | refs/heads/master | 2022-09-27T02:18:42.590304 | 2022-09-13T12:49:52 | 2022-09-13T12:49:52 | 214,221,798 | 3 | 0 | MIT | 2023-09-13T21:18:45 | 2019-10-10T15:39:21 | Python | UTF-8 | Python | false | false | 5,088 | py | r"""
Modifies some aspects std::tuple such as printing and indexing.
EXAMPLES::
>>> import cppyy
>>> from cppyythonizations.tuple import add_tuple_pythonizations
>>> add_tuple_pythonizations()
>>> t = cppyy.gbl.std.tuple[int, str, float](13, "x", 3.7)
>>> str(t)
"(13, b'x', 3.7...)"
Note that... | [
"julian.rueth@fsfe.org"
] | julian.rueth@fsfe.org |
70c49836b4d9fcdea82858e5b8d8e5f943de97a7 | 06420a51bd0498aaa29039a71de714ee661891bb | /base64.py | c6a9c5a3d7d67484b87a200ed68251a54e1e52c7 | [] | no_license | Security-Development/base64 | aeacea34a2ce4bf8ae90b168ac4444c8a680dfd3 | 2f4518ee1e66e2d03cba8e24ecfd6b63c80cf85b | refs/heads/main | 2023-08-21T13:12:09.779568 | 2021-10-12T04:22:53 | 2021-10-12T04:22:53 | 416,151,560 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | base64_box = {}
index = 0
args = {
"A": 26,
"a": 26,
"0": 10,
"+": 1,
"/": 1
}
def CreateBoxTool(string, length):
global index
ascii_string = None
for i in range(length):
ascii_string = ord(string) + i
base64_box[index] = chr(ascii_string)
ind... | [
"noreply@github.com"
] | Security-Development.noreply@github.com |
00b736a0d0d95265fdf3d417dbe4f5e683bf9f59 | 74d840ba895342c04c2a3b4946918a81ff7d55ed | /noge/preprocessors/__init__.py | e334e2d61826747685613a8c7647bac4c785336c | [
"MIT"
] | permissive | johny-c/noge | cbad8a8b08ec350021779e2e3319c3af69e8f5a9 | 88e68ba8c51ff0d63577991e233e9110cb76e228 | refs/heads/main | 2023-03-31T05:16:26.101441 | 2021-04-09T21:59:08 | 2021-04-09T21:59:08 | 333,765,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from .preprocessor import Preprocessor
from .input_meas import InputMeasPreprocessor
from .target_preprocessor import TargetPreprocessor
| [
"johnyc.code@gmail.com"
] | johnyc.code@gmail.com |
2e9abafbd5759bad9bf4631dfd11153c706d0708 | ac43ba65a0d2206f776c73c798aa4e2f0fa1579c | /apps/cn_a_stocks/migrations/0029_auto_20191216_1001.py | ee2aa11a5dca7f472fb17d3907c6c4c59e06ab44 | [] | no_license | xyq946692052/globalinvestor | d2b1616006f5bf9a4c268389f2d0a6bcc5b87bed | 180637300649d9b0a227f67794242a427296bc1f | refs/heads/master | 2022-12-12T18:44:16.969005 | 2020-03-19T09:21:29 | 2020-03-19T09:21:29 | 225,184,905 | 0 | 0 | null | 2022-12-08T03:15:28 | 2019-12-01T15:37:18 | Python | UTF-8 | Python | false | false | 1,023 | py | # Generated by Django 2.0 on 2019-12-16 02:01
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cn_a_stocks', '0028_merge_20191212_2017'),
]
operations = [
migrations.AlterModelOptions(
name='astocksprofit',
... | [
"kevin.xie@r-pac.com.cn"
] | kevin.xie@r-pac.com.cn |
35b0a6b8f508a407f7a4bbc749b088b3e5fac588 | 120d1252ba5a38018a14b22a494cdc22859850e2 | /Face Detection/Face Detection Loop.py | 14184ccb24cc9bc8b2dfd82ea5094dca2a0338ce | [] | no_license | KishoreR11/computer-vision | df8160b73f9a9bba94780ed89c510ae5102272bb | 556c224245b8015498345eca46e3ec27217572ed | refs/heads/master | 2023-08-31T13:49:10.286984 | 2021-10-21T13:05:41 | 2021-10-21T13:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | import numpy as np
import cv2 as cv
import os
import pathlib as Path
haar_cascade = cv.CascadeClassifier(r'D:\computer-vision\Face Detection\haar_face.xml')
people = ['Ben Afflek', 'Elton John', 'Jerry Seinfield', 'Madonna', 'Mindy Kaling']
# features = np.load('features.npy',allow_pickle=True)
# labels = np.load('la... | [
"souvikdatta123@gmail.com"
] | souvikdatta123@gmail.com |
be6cb17a337f83c070f47e8192c983039f1a71c7 | 8b634dc196162dff328d61bf6f8d4121dfb59bd4 | /Binary search/peakIndexInMountainArray.py | ec459692519bf962f4bb15b684b610fb7afb17dc | [] | no_license | kqg13/LeetCode | 84268b2146dc8323cb71f041b6664069baaa339c | 1c584f4ca4cda7a3fb3148801a1ff4c73befed24 | refs/heads/master | 2023-08-05T09:46:28.103910 | 2023-07-29T21:02:26 | 2023-07-29T21:02:26 | 165,123,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | # Easy binary search problem 852: Peak Index in a Mountain Array
# Let's call an array A a mountain if the following properties hold:
# A.length >= 3
# There exists some 0 < i < A.length - 1 such that
# A[0] < A[1] < ... A[i-1] < A[i] > A[i+1] > ... > A[A.length - 1]
# Given an array that is definitely a mountain, re... | [
"skg2016@nyu.edu"
] | skg2016@nyu.edu |
24685a49422fe576d8f35ff2f9f4aa17c81dfa6d | 4a4d27b3223eddbca904da0eb393204a2c76545e | /ex_10/ex_10_03.py | de034a1cd043a8a039c4acac7d15b8096fe3d2ef | [] | no_license | bassmannate/py4e-old | 24850bc1ea28a221ee02f1870222b2d67b00010d | 6d579efcda70880447b665216a4971efdad109af | refs/heads/master | 2023-08-26T02:44:42.121530 | 2021-10-30T20:18:54 | 2021-10-30T20:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | while True:
file = input("Please enter a file name or \"quit\" to quit: ")
if len(file) < 1:
fhand = open("../words.txt")
break
elif file.lower() == "quit":
exit()
else:
try:
fhand = open(file)
break
except:
print("You must enter a valid file name.")
continue
letterc... | [
"bassmannate@users.noreply.github.com"
] | bassmannate@users.noreply.github.com |
58d83cc7a2d421637fe7d8467c0e2f072f6125bb | 4e4885120cd7782ff14eee50e871e8c3c1d6978c | /app/migrations/0001_initial.py | 52848604f070944e39c9df996d94343f6a60e01c | [] | no_license | mkdirken/XMining | 62dd3d0b8f137596f7a18844118a6d06776ccd2f | b620ae36a7e84ea785cd0e5bf9cc2a6b1ecb6a22 | refs/heads/master | 2021-04-15T16:18:11.199133 | 2018-03-22T12:12:33 | 2018-03-22T12:12:33 | 126,329,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,025 | py | # Generated by Django 2.0.3 on 2018-03-21 13:54
import app.models
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies... | [
"mkdirken@gmail.com"
] | mkdirken@gmail.com |
180511e3cd7732736763b7ea99f296aa0cb45727 | fea15349ea09985eccd3ed630691efa9456445e1 | /presstatic/storage/s3.py | b3393015b2cdb755d053406a4ef2178c15707a76 | [
"MIT"
] | permissive | King-Maverick007/presstatic | f8c5dd383bf093a394e45001bd028c8bfde75725 | e912c5b5d6d759c15c1b0a11cf33cfc3f7163f4a | refs/heads/master | 2022-12-25T19:44:24.812894 | 2014-12-02T14:25:50 | 2014-12-02T14:25:50 | 300,202,505 | 0 | 0 | MIT | 2020-10-01T08:22:56 | 2020-10-01T08:21:14 | null | UTF-8 | Python | false | false | 906 | py | # -*- coding: utf-8 -*-
import os
from boto.s3.key import Key
from boto.s3.connection import S3Connection
from presstatic.storage import Storage, FileStorageIntent
class S3FileStorageIntent(FileStorageIntent):
def __init__(self, from_path, to_path, bucket):
super(S3FileStorageIntent, self).__init__(fr... | [
"filiperegadas@gmail.com"
] | filiperegadas@gmail.com |
4493917acfef8710f2a543f938e4d8828945823b | d0c521db0302002723b0fa03f55239e5b7d1a0b4 | /single_overlap_test.py | db6a3266d6f5cc4dc73d55e2169f22c51e4fbda6 | [
"MIT"
] | permissive | caslab-vt/DeepPaSTL | 4e028fb42ec1867de44512a788098966d526af3c | a928a0fc1f1bbe5a27f7bc1e7d1e320c023d13c6 | refs/heads/main | 2023-08-02T06:40:22.318280 | 2021-10-05T10:44:37 | 2021-10-05T10:44:37 | 413,774,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,922 | py | import torch
import torch.nn as nn
import warnings
import numpy as np
import matplotlib
import pandas as pd
import scipy.io
warnings.filterwarnings('ignore')
matplotlib.rcParams['figure.figsize'] = (12.0, 12.0)
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
from config_args import... | [
"murtazar@vt.edu"
] | murtazar@vt.edu |
28a7a95aef0ce520b596a4e1255e2750f99f75fe | 8fc3f131bbc4e9fed9b3e3d0797505b9d09c7642 | /login_app/views.py | 4014ad835d116475048c170404c93f603bfd582e | [] | no_license | reidyanabu/login_proj | 09f10df3170d9343a6fa8888be7ab7364817278b | a6773aa33a372a70c74a26abb528e6966e27e94d | refs/heads/master | 2023-04-08T10:17:02.415374 | 2021-04-19T15:35:17 | 2021-04-19T15:35:17 | 359,511,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,271 | py | from django.shortcuts import render, redirect
from .models import User, Message, Comment, Book
from datetime import datetime
from django.contrib import messages
from django.http import JsonResponse
import bcrypt
def show_login(request):
# remove previous session .. this is my prerogative :)
if 'user_first_name... | [
"reid.yanabu@gmail.com"
] | reid.yanabu@gmail.com |
d673178723d40a89edc0e07b8902ea56bd5ac6a1 | 02193ece59037456d298d519b38661b5dfd0ab17 | /3rd-year/semester-2/projet-dev/parser-pdf/sprint4/parser17.py | 667775439d8973d0758c6eaa51a750548edd404b | [] | no_license | pakpake/licence-informatique | 561558d00f012a536ae97f74ee705e6c04dcecda | c9877ad75d3c4ee6e3904fe8b457f8b3242c7c3f | refs/heads/main | 2023-05-09T06:33:19.927698 | 2021-05-26T19:49:03 | 2021-05-26T19:49:03 | 368,866,811 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,264 | py | #!/usr/bin/python3.9
"""
Programme parser pdf vers txt
@author: Team
Utilise la fonction /usr/bin/pdftotext ou /usr/bin/pdf2txt
"""
import sys # pour les parametres pris en compte
import os,glob # pour la manipulation de nom de fichier
import shutil # pour la manipulation des dossiers
import re # pour ... | [
"test13344@protonmail.com"
] | test13344@protonmail.com |
62a9d1cd2b8d4fc8e87befa78f7044a6d5a16698 | d5316aef8810866057590e64b4f5c4d8540a7a0f | /posts/migrations/0003_auto_20210419_0716.py | 104d49e39b10ebd08cc22f8ccb19152154c8643f | [] | no_license | waynecornwall/flashcard | a5e9ece247f596858e7295c8866dadea155acde0 | bcb78e68d320fa45b26f33632ad97edd90975488 | refs/heads/main | 2023-04-23T23:52:43.906722 | 2021-04-24T13:39:12 | 2021-04-24T13:39:12 | 360,993,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # Generated by Django 3.2 on 2021-04-19 11:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('posts', '0002_auto_20210413_1849'),
]
operations = [
migrations.RemoveField(
model_name='term',
... | [
"waynecornwall85@gmail.com"
] | waynecornwall85@gmail.com |
5faf5bdf31629aca50ee551d71810b822590a7f7 | 0d2f0d0f7720c004223531d0e72bce0b0f1a6253 | /MarkovModel/ParameterClasses.py | c849a4e181e99c544869e2069c1b27e6b0a59f8a | [] | no_license | ms3456/HPM573_SHE_HW11 | 11e83aae5bf77515fa0855ffb8db6ef5519b067b | 8218a02e5353ec042d1863ff009f8016d925d9c1 | refs/heads/master | 2020-03-12T12:53:56.397804 | 2018-04-23T02:28:50 | 2018-04-23T02:28:50 | 130,629,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | from enum import Enum
import numpy as np
import scipy.stats as stat
import math as math
import InputData as Data
import scr.MarkovClasses as MarkovCls
import scr.RandomVariantGenerators as Random
import scr.FittingProbDist_MM as Est
class HealthStats(Enum):
""" health states of patients with HIV """
WELL = 0
... | [
"meng.she@yale.edu"
] | meng.she@yale.edu |
2c81d1b33ccd79f204e82c7086e123bea925b6bb | 0e9a0a570921b0c5ffe967f2647556f1a3866237 | /custom_components/spacex/sensor.py | ebf7f7ec88cd5cc5f97fc4ff006fa1b5d1603321 | [] | no_license | aukjan/Home-Assistant_Config | 64e9b2eb35528f6be29566b49f2aaa1c0e83f339 | d95c0490c36c4ea428f7ede2db17a730d9482afd | refs/heads/master | 2022-12-22T00:18:17.641637 | 2020-09-19T09:37:17 | 2020-09-19T09:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,466 | py | """Definition and setup of the SpaceX Binary Sensors for Home Assistant."""
import datetime
import logging
from homeassistant.components.sensor import ENTITY_ID_FORMAT
from homeassistant.const import LENGTH_KILOMETERS, SPEED_KILOMETERS_PER_HOUR
from homeassistant.helpers.entity import Entity
from .const import COORD... | [
"inquiry@beardedtinker.com"
] | inquiry@beardedtinker.com |
ce1a587ed985770cef40e201c534f3b60bd48b02 | 4eb5d040b797f2b3b78f9d34ee6876d1b391336a | /Parallel_GAN_structure/sndcgan_zgp/ops/blocks/__init__.py | 2db9aa2b5bc7525845e6abc9d56f52b94299f6ea | [
"Apache-2.0"
] | permissive | skang29/GANs | 34587c9b5a356a90b94bfc939e6c67a9eb9cc509 | 83e3338bf3611aafbd75f0df1272276e3bc07d46 | refs/heads/master | 2020-04-03T19:12:00.530259 | 2019-12-12T06:29:18 | 2019-12-12T06:29:18 | 155,514,200 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from .residual_block import pre_activation_residual_block as residual_block
__all__ = ['residual_block']
| [
"noreply@github.com"
] | skang29.noreply@github.com |
5876f1dd982277fdd25ff90c3eeaee1cccf478ee | 56cf69e39e5dbf07a29966ae225ba3948187e57e | /smc/administration/access_rights.py | 00d93eeafb7905aa1da993b1b6e8ae98a201920d | [
"Apache-2.0"
] | permissive | gabstopper/smc-python | df587a6e71e7a466b3355138544fb4249c36d9f0 | 54386c8a710727cc1acf69334a57b155d2f5408c | refs/heads/master | 2021-06-06T09:40:24.456578 | 2021-04-06T14:16:41 | 2021-04-06T14:16:41 | 58,158,709 | 31 | 16 | Apache-2.0 | 2019-07-30T09:19:52 | 2016-05-05T20:30:33 | Python | UTF-8 | Python | false | false | 5,539 | py | """
Access Control Lists are assigned to SMC admin accounts to grant limited
access permissions to either Engines, Policies or Domains.
"""
from smc.base.model import Element, ElementCreator
from smc.base.structs import NestedDict
from smc.base.util import element_resolver
from smc.administration.system import AdminDo... | [
"dwlepage70@gmail.com"
] | dwlepage70@gmail.com |
100094a1d700bd6f69213fd67451a2c7c0791e94 | c2fc06b067ff429d1ffff373b62a7d862a54309f | /periodapi/views.py | 8710ae95c8bf3c53a4ab915d27eb38f653658b88 | [] | no_license | gerald-x/womans-period | f8b0bb44f37586a5c9e2d49fc3f9cccadb647df6 | 3b193c64bc43f7de83d3a09d482e407ffb9ed229 | refs/heads/main | 2023-08-26T04:22:57.798148 | 2021-10-15T13:36:01 | 2021-10-15T13:36:01 | 417,449,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,297 | py | from django.shortcuts import render
from django.http import JsonResponse
from datetime import datetime, timedelta
from .models import FertilityWindow, PeriodData, ProcessedData
# Create your views here.
def create_cycles(request):
if request.method == "GET":
data = PeriodData.objects.all()
return... | [
"64314917+gerald-x@users.noreply.github.com"
] | 64314917+gerald-x@users.noreply.github.com |
158f2e97bbfcd85ff6ecc67a53fd638df29262e6 | aafeb17c82282f064958003a0bed19ac651a6100 | /poi_id.py | 34de10e746e07f3aba8bef6bd91710d1365bbd6f | [] | no_license | Faylfire/identifying_enron_fraud_project_5_fang_lu | c3d78158c62910e955993cf7cce5418dc833861a | 974032915e7ff014ee8a87e706055f8a67ebf0a8 | refs/heads/master | 2021-01-10T21:18:04.297494 | 2015-11-27T22:49:38 | 2015-11-27T22:49:38 | 42,611,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,316 | py | #!/usr/bin/python
#Fang Lu
#Enron poi_id.py progression and testing
#
import sys
import pickle
sys.path.append("../tools/")
from scipy.stats import pearsonr as Pearson
from scipy.stats import pointbiserialr as Biserial
import numpy as np
import operator
from feature_format import featureFormat, targetFeatureSplit
fro... | [
"fanglu@Fangs-MacBook-Pro.local"
] | fanglu@Fangs-MacBook-Pro.local |
4a967eccec0bc29c4d36530ac28da34ffe6a069c | 42b82c2015a85e9e4e80f40988d588cb7fdc3098 | /tools/char2html.py | 7f47b5fa1ce2c2668eff0d0f3160d3d8fc46ac1d | [] | no_license | eric-lemesre/openerp-survey | 64fe9dc266f6d9216cec445c80826c97b8d9171c | c30668969fa883f290aa8daa88cacd8103f5ef60 | refs/heads/master | 2020-03-19T13:51:39.996523 | 2013-10-24T10:41:59 | 2013-10-24T10:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #!/usr/bin/python
import psycopg2
import re
import sys
re_path = re.compile(r'(\w+):(\w+)\.(\w+)')
def main(source, target):
parameters = zip(['src_db', 'src_table', 'src_field'], re_path.match(source).groups())
parameters.extend(zip(['tar_db', 'tar_table', 'tar_field'], re_path.match(target).groups()))
... | [
"cristian.rocha@moldeo.coop"
] | cristian.rocha@moldeo.coop |
81a5e811177a17107d7a5f9f267df26b2edfd4bd | bde06d0445ff0676168b6563ff98b94c3111b8d6 | /.ci/ci-generate-srcinfo.py | ac07da113273a07f777d41b35c01a228114122cb | [
"BSD-3-Clause"
] | permissive | pchemguy/MSYS2-packages | abf74f527de07706f10f0ae2ec50df62fa8646c1 | c3556295fbed8c823814d54b3980bd481916fc5e | refs/heads/master | 2021-06-11T01:35:16.161681 | 2021-04-08T06:47:18 | 2021-04-08T06:47:18 | 135,283,422 | 0 | 1 | BSD-3-Clause | 2018-05-29T11:03:16 | 2018-05-29T11:03:16 | null | UTF-8 | Python | false | false | 7,583 | py | #!/usr/bin/env python3
# Copyright 2017 Christoph Reiter
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify,... | [
"reiter.christoph@gmail.com"
] | reiter.christoph@gmail.com |
9577a6fdaa86cd4492c7057b0c940101e3d60cb8 | 0a5705dbd46dbe6fa876a0d6f9c66bfea2873658 | /driver_stats_uploader.py | 6c0ec1021d276f36acf91d3d60f456271b0738a2 | [
"MIT"
] | permissive | formulaj/formulaj.github.io | 1522a64fd19704bec562dd90670e1fdb52b1291b | 2e6a58c8d317eb3be64db51501c563a665827b64 | refs/heads/master | 2023-03-23T06:53:06.590428 | 2021-03-08T21:40:33 | 2021-03-08T21:40:33 | 337,518,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | from github import Github
import pandas as pd
from os import listdir
import sys
import datetime
g = Github("848013873a5d37a03ea9a1a133daf05d1cae3b86")
repo = g.get_user().get_repo("formulaj.github.io")
all_files = []
contents = repo.get_contents("")
while contents:
file_content = contents.pop(0)
if file_conte... | [
"noreply@github.com"
] | formulaj.noreply@github.com |
8cfe6075a39ae1cd2af77ea6985e9c367a1b5f8f | b6a2c6a345f7347d6d80d6ff633230af79270fa4 | /socialApp/middleware.py | 5394b43e259b52afc7b72f5f17b8d8864865c0d8 | [] | no_license | habib049/SocialApp | 636f7cdeb45981010dac7be7c4876da393504cf8 | ea9cd99d12d5314814c7643643f007738ee2efa0 | refs/heads/master | 2023-04-17T10:45:11.437079 | 2021-04-30T18:29:22 | 2021-04-30T18:29:22 | 338,523,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | import re
from django.conf import settings
from django.shortcuts import redirect
EXEMPT_URLS = [re.compile(settings.LOGIN_URL.lstrip('/'))]
if hasattr(settings, 'LOGIN_EXEMPT_URLS'):
EXEMPT_URLS += [re.compile(url) for url in settings.LOGIN_EXEMPT_URLS]
class LoginRequiredMiddleware:
def __init__(self, get_... | [
"59080575+habib049@users.noreply.github.com"
] | 59080575+habib049@users.noreply.github.com |
10fd355ee3e00142b8185d5407e0de179ba193cb | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/build/turtlebot3_simulations/turtlebot3_gazebo/catkin_generated/pkg.develspace.context.pc.py | 13dfd573221550b94ca6ec8fe3d5ee61c3276c43 | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/khoa/catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/include".split(';') if "/home/khoa/catkin_ws/src/turtlebot3_simulations/turtlebot3_gazebo/include" != "" else []
PROJECT_CATKIN_DEPENDS... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com |
b3184e75431152f062a10f0a7e5c2ac1ac6de8f8 | 7a6d8764f3b5ed06070a9b0c1480908300239930 | /testchild.py | bbc945727f27eff4109286d554756d38541c66b0 | [] | no_license | palon15/FirstTest | 00c62933d78db9016550b0ba2b90b43e811a6a5a | 5bd753d570d706ff993a4b77fe2729a9c5a6b4b9 | refs/heads/main | 2022-12-28T22:27:08.743179 | 2020-10-10T10:17:48 | 2020-10-10T10:17:48 | 302,871,426 | 0 | 0 | null | 2020-10-10T10:17:49 | 2020-10-10T10:02:02 | Python | UTF-8 | Python | false | false | 63 | py | # adding a file to a child branch
print("inside child branch")
| [
"noreply@github.com"
] | palon15.noreply@github.com |
bc4d123d8af032677feaf2a2704e98d5dfd202d3 | aabfbd4f6c940aa7c75195bd60d19a551fce3822 | /tutorials/path_planning/config_space_plot.py | a831575392f9d04415e251446cd914cb3e986735 | [] | no_license | daoran/eth_supermegabot | 9c5753507be243fc15133c9dfb1d0a5d4ff1d496 | 52b82300718c91344f41b4e11bbcf892d961af4b | refs/heads/master | 2020-07-28T13:42:08.906212 | 2019-12-04T16:51:42 | 2019-12-04T16:51:42 | 209,428,875 | 1 | 1 | null | 2019-09-19T00:36:33 | 2019-09-19T00:36:33 | null | UTF-8 | Python | false | false | 3,924 | py | import numpy as np
import matplotlib.pyplot as plt
import polygon_tools as poly
import robot_tools
from matplotlib.patches import Polygon as PlotPolygon
from matplotlib.collections import PatchCollection
from skimage import measure
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import copy
plt.rc('font',**{'fa... | [
"nicholas.lawrance@mavt.ethz.ch"
] | nicholas.lawrance@mavt.ethz.ch |
d86bb661f72c4f169529ab2a853fd25893d52509 | 1e38b6cb91885bf7219bdbb3f734591ff7e3541f | /p011.py | f7a5010cdd26fae1e1bc499b6e3d254a15eb0eda | [] | no_license | lajospajtek/thought-tracker.projecteuler | 9190c80888788435b99508cac617f7a5583e13b2 | 13b8bb18f893e9b839ab268f3c7ae8aee873ed10 | refs/heads/master | 2020-06-07T06:33:39.490117 | 2015-06-12T21:22:16 | 2015-06-12T21:22:16 | 33,399,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # project euler problem 011
# a quick hack
def read_square(filename):
square = []
file = open(filename)
for line in file:
numbers = line.strip().split(" ")
if numbers == ['']: break
tline = []
for i in numbers:
tline.append(int(i))
square.append(tline)
... | [
"lajos@localhost"
] | lajos@localhost |
4d9bf5fa2c1ea46bbb9d90855107455ca0d0b035 | 85057c6984ac2843bae8d8f4b2ee15ad6572ae4b | /STOCK_CHOOSE/standard_wave.py | b5cf8665a54e7591b416ecaad303119269933ed7 | [] | no_license | gxgjnn/live | 28eba90eb7fb9071b3ebf2632c349d9e73a2fc7e | f2c3a3a072669fe1c499db0a92d23010c143ff30 | refs/heads/master | 2020-03-24T02:37:41.484954 | 2018-07-27T09:41:55 | 2018-07-27T09:41:55 | 142,384,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,242 | py | # -*- coding: utf-8 -*-
from line import Line
import pandas as pd
import numpy as np
class Wave(Line):
"""
寻找满足平衡条件的配对波峰波谷的price值,以预测未来买卖参考价,(最后只会返回一对波峰波谷),如果不存在则全部返回0
第98行系数参数
"""
def __init__(self, stock_id):
super(Line, self).__init__(stock_id)
df_s, cv_s, price_s, stop_d... | [
"2320648142@qq.com"
] | 2320648142@qq.com |
c57f5680aefea93c74464ba567d23502665c32f7 | ae7a7e4e41b4834f1a66443579125a0b77000173 | /mmaction/models/tenons/segmental_consensuses/simple_consensus.py | 246b4f73dbdfeadf22532bde64bbb6389bcbe17f | [
"Apache-2.0"
] | permissive | Solo777/mmaction | 213192487fd5144baaecd63716fb189ea70e9628 | 40580ee6da148f639842d87edf899ac523060a49 | refs/heads/master | 2021-08-10T23:25:20.292879 | 2020-07-02T13:34:38 | 2020-07-02T13:34:38 | 198,738,105 | 1 | 0 | Apache-2.0 | 2019-07-25T01:59:13 | 2019-07-25T01:59:13 | null | UTF-8 | Python | false | false | 1,346 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from ...registry import SEGMENTAL_CONSENSUSES
class _SimpleConsensus(torch.autograd.Function):
"""Simplest segmental consensus module"""
def __init__(self,
consensus_type='avg',
dim=1):
super(_SimpleCo... | [
"thuzhaoyue@gmail.com"
] | thuzhaoyue@gmail.com |
dc1692b60cf7445a8f7c853dd76a1919a9afbaa5 | 1fabb8c605ee8187b2c637bc4a75ed35b1b53fc1 | /ccm/ui/htmltrace.py | 375d854da52cf4d12f69976f28ba692c20874097 | [] | no_license | ecphory/ccmsuite | dbc4c7e0495f47cfb46445a355c09eeaa0cf06a6 | 83081a786f749e6b298ade73253d178081dbfb96 | refs/heads/master | 2021-05-18T07:25:16.754476 | 2020-03-30T02:24:12 | 2020-03-30T02:24:12 | 251,178,559 | 1 | 0 | null | 2020-03-30T02:11:07 | 2020-03-30T02:11:06 | null | UTF-8 | Python | false | false | 5,068 | py | from ccm.ui.pytag import *
def splitKey(key):
r=[]
a=''
depth=0
for c in key:
if c=='.' and depth==0:
if a:
r.append(a)
a=''
elif c in '[(':
if a:
r.append(a)
a=''
depth+=1
elif c in '])':
if a:
r.append(a)
... | [
"tcstewar@uwaterloo.ca"
] | tcstewar@uwaterloo.ca |
538fd8b5f75edcefe005bfb2d255cb481cf45097 | d2c0c5d802fb408a869005d5c643a929555fffc9 | /RunAnalysis.py | 35ca39f76a006a5650c65dbef242bf791ee5cea0 | [] | no_license | erccarls/GammaLike_dev | 543f0d9dd2b746d932a574f8e48b53e6277309a1 | 3c376c94baa39e4af0d1e94910456edd0ed6ce0e | refs/heads/master | 2021-01-13T11:59:19.850403 | 2016-05-23T20:00:57 | 2016-05-23T20:00:57 | 27,199,955 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,813 | py | import numpy as np
import h5py
import Analysis
def AddFitMetadata(path, h5_path, A, extra_dict=None):
h5 = h5py.File(path)
try:
h5.create_group(h5_path)
except:
pass
fa = h5[h5_path].attrs
fit = A.SaveFit()
for key, val in fit.items(... | [
"erccarls@ucsc.edu"
] | erccarls@ucsc.edu |
d8aea5dfb60c756d1c5132576c380c3f6ff066e2 | 932bd971740cc46086af8ffa7be81d61a181a719 | /exercise/even_numbers.py | 68c1296e4b66589126005c7e1c3c898dec7b76c6 | [] | no_license | elohor/bc---python-v | 295ab4fff962957ad1899e0225e5c853c754fe81 | f647881c5bb8933816dfe6e0bbb876f7a2aa201b | refs/heads/master | 2021-01-10T12:34:50.464921 | 2016-02-18T20:28:10 | 2016-02-18T20:28:10 | 51,831,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # Detects and even number
def even_numbers(low, high):
even_nos = []
for item in range(low, high):
if item % 2 == 0:
print item
even_nos.append(item)
print even_nos
| [
"Jasmine"
] | Jasmine |
bbc978e0a52c37af0dd4c5a13f9a5dd6218f572d | 59479a796e2f5d02bb207b7fdedd31d67af0433d | /utils.py | f5dd09ae64d566987d430ebef382a004fbd84069 | [] | no_license | edupaz2/FCND-Motion-Planning | 12dbbbf89c96dcf67f284c32ae3f75ccbd3298b2 | df2680bb6865ed5557a393d43d9b0a06deb8cd3a | refs/heads/master | 2020-04-28T20:29:10.204572 | 2019-07-21T20:02:38 | 2019-07-21T20:02:38 | 175,545,855 | 0 | 0 | null | 2019-03-14T04:04:06 | 2019-03-14T04:04:06 | null | UTF-8 | Python | false | false | 8,631 | py | import networkx as nx
nx.__version__
import pickle
import matplotlib.pyplot as plt
from planning_utils import FLYING_ALTITUDE, SAFETY_DISTANCE, a_star_graph, heuristic
from bresenham import bresenham
import numpy as np
import numpy.linalg as LA
# Getting the largest connected subgraph
def remove_unconnected_subgraph... | [
"edupaz2@gmail.com"
] | edupaz2@gmail.com |
c18fa0521deea5d95377f3c2c179d339c8d9893f | 4dee997683137d7813db0e5b60ca59184f43d156 | /src/pipeline.py | ff4cf2ad7fcae254042f03ce2027daa792b5e20f | [] | no_license | TOSUKUi/cnn-trading | f8699388ef536c6472f19b90c6dbe6d00f5087a5 | 3344bff5c093fe36d8a0f52027d54ad30cb8049d | refs/heads/develop | 2020-05-04T09:55:24.682207 | 2020-02-22T09:29:59 | 2020-02-22T09:29:59 | 179,078,576 | 2 | 1 | null | 2020-02-08T07:28:33 | 2019-04-02T12:59:34 | Jupyter Notebook | UTF-8 | Python | false | false | 393 | py | from functools import reduce
from abc import ABCMeta, abstractmethod
from typing import List
class Procedure(metaclass=ABCMeta):
@abstractmethod
def run(self, x):
pass
class PipeLine():
def execute(self):
return reduce(lambda x, y: y.run(x), self.pipeline)
def __init__(self, first... | [
"am.businessmail.exp@gmail.com"
] | am.businessmail.exp@gmail.com |
f185325153f7d9caea871e1b341a08fa0dae1c46 | bbbb191a51b04b8f07c000c355697bebd9da9718 | /test.py | dd243fb8e9cd530eafcc8f534ad1e1ba4ed30003 | [] | no_license | 1newstar/mysql-tools-python2 | f255f62e10166677b27947530e0b3d0bfa9f1bc4 | 6ca164ece23f1a627894f880635f20390b8b937e | refs/heads/master | 2020-12-03T11:17:32.307632 | 2019-12-30T11:13:48 | 2019-12-30T11:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import json
myv = {}
for line in open('mysql_global_variables.sql').readlines():
line_list = map(lambda x: x.strip('"'), line.strip().split(',')[:2])
if len(line_list) == 1:
key = line_list[0]
value = None
else:
# print(line_list)
key, value = line_list
myv[key] = value
... | [
"rgweiyaping@hotmail.com"
] | rgweiyaping@hotmail.com |
200e50632fe2526205a78acb9e0910e3593a30e0 | 8b4c91e45e735814b4397be3e2e928f2a8f5831c | /channels_presence/admin.py | c924d753883858a65ceb802ca761c6dec418d3e9 | [
"MIT"
] | permissive | Roang-zero1/django-channels-presence | 008c2a121d4689db8312e06e8437d1942ba65335 | 3fbe34bdee3c41139808d880beb7f35441081be0 | refs/heads/master | 2021-03-02T09:22:59.444414 | 2020-03-08T17:23:30 | 2020-03-08T17:23:30 | 245,855,458 | 0 | 0 | MIT | 2020-03-08T17:14:08 | 2020-03-08T17:14:07 | null | UTF-8 | Python | false | false | 104 | py | from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
| [
"cfd@media.mit.edu"
] | cfd@media.mit.edu |
8a73b1e4d029d79a1ab132ca6bfd4632c65a3459 | 4c4f94e5cf7cf086ea5ded67a1013835440c9abb | /igwn-data-checker-visualizer.py | 93f20c64fc269ee069ee06543c056af875228299 | [] | no_license | gabrielefronze/igwn-data-checker | be96b6fc218e1b3578fcf224f4d24d87c4fba45b | 401f9c05e798a3f16904adf25e7dfeae7210f286 | refs/heads/master | 2023-04-08T11:05:08.081099 | 2021-04-15T14:59:31 | 2021-04-15T14:59:31 | 329,659,727 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,493 | py | #! /usr/bin/env python3
import os
import json
import argparse
import numpy as np
import pandas as pd
def main(json_path="output-PIC.json", normalize=False, title = None, save = None):
if save:
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib... | [
"sucre.91@hotmail.it"
] | sucre.91@hotmail.it |
9e4b54a7a538ea7deb35087bf807daf93e450126 | 523aa188102588b98cf11628ae48d77f3fad4936 | /lcm/crazyflie_t/dxyz_compare_t.py | d87e115c632812faefbafcc6b146c85609d01d5e | [
"MIT"
] | permissive | hanliumaozhi/crazyflie-tools | 52a5d9bceb9c9d0cccf543faa27232288551937f | ed3ca66d4efd77c7abb321e6f8deeb564da45862 | refs/heads/master | 2021-01-17T03:40:13.679643 | 2015-10-02T21:40:46 | 2015-10-02T21:40:46 | 52,494,119 | 3 | 0 | null | 2016-02-25T03:31:09 | 2016-02-25T03:31:09 | null | UTF-8 | Python | false | false | 1,983 | py | """LCM type definitions
This file automatically generated by lcm.
DO NOT MODIFY BY HAND!!!!
"""
try:
import cStringIO.StringIO as BytesIO
except ImportError:
from io import BytesIO
import struct
class dxyz_compare_t(object):
__slots__ = ["dxyzraw", "dxyzfiltered"]
def __init__(self):
self.dxy... | [
"landry@mit.edu"
] | landry@mit.edu |
c070c9016f4aa57aec665e2498aafa4ba987f917 | 41dc3e18de7d1f31e1ccbbe676d6326210045588 | /leetcode/find_smallest_letter_greater_than_target.py | c00bfd68cbf2161d0a51d176f4ffa1c23953b3f6 | [] | no_license | axiomiety/crashburn | 372dcfad57a078e4caf7b22d7ae6038162cf4ffb | eff78ed020c1ce309b7cf6e53dd613e7d9f259ef | refs/heads/master | 2023-09-01T00:53:08.969794 | 2023-08-30T11:23:32 | 2023-08-30T11:23:32 | 7,456,861 | 3 | 1 | null | 2023-02-11T10:44:01 | 2013-01-05T15:39:22 | Jupyter Notebook | UTF-8 | Python | false | false | 912 | py | class Solution:
def nextGreatestLetter(self, letters: List[str], target: str) -> str:
if target < letters[0] or target > letters[-1]:
return letters[0]
def find_idx():
count = 0
start, stop = 0, len(letters)-1
while start < stop:
... | [
"axiomiety@gmail.com"
] | axiomiety@gmail.com |
26ce304279c6822d477bfaf95ee90c06d0344824 | 47647705e42900dda6bdc88e17e18da9bd0cbf7e | /medical/views.py | 1b636b85ee144833850429a7a349152c963ecd81 | [] | no_license | jyi468/mysite | 1547b9ecf4cc1689ef2676d99869206fb2f30acd | 562aaa7c26f659983b99ff562118e5ccd5f8ac45 | refs/heads/master | 2020-12-30T10:10:46.319828 | 2014-12-29T23:38:51 | 2014-12-29T23:38:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template.context import RequestContext
# Create your views here.
def index(request):
return HttpResponse("Hello, world. You're at the Medical Info index.")
def home(request):
c... | [
"jyi468@gmail.com"
] | jyi468@gmail.com |
c8585bad9693dd8f16bc1d6a1549eaf476774968 | ef034334bdb3b8cbf514d4a2ca72059bc868b942 | /report_project/customers/migrations/0001_initial.py | d8f040eb64b955896dbc6716426c51b04a903dd5 | [] | no_license | sunnythakr/Sales-Report | 5205c8049906a830d471b94dee02d0e3fd466bf7 | b626b190ee56afaf8ca237d240499b0679935809 | refs/heads/master | 2023-04-22T04:29:28.398142 | 2021-05-15T16:42:00 | 2021-05-15T16:42:00 | 360,109,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.2 on 2021-04-27 18:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('id', models.AutoField(a... | [
"sunny@gmail.com"
] | sunny@gmail.com |
5c1d106d01784a5ebce903f0473c2a29c82ce2ea | 065840c8456faeb37d85a7611ec7fedf84943395 | /djangogirlsenv/bin/pygmentize | 097c5a179b979ee4d5ada4c27f94270adad1132b | [] | no_license | BMariscal/my-first-blog | 63eba4223151642880c8c3e545e58839ae9cdae8 | b9f215439437ad3068c8532d3ca8d0a338770e3e | refs/heads/master | 2021-01-12T11:31:47.971422 | 2016-11-08T19:13:43 | 2016-11-08T19:13:43 | 72,943,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/briceida/djangogirls/djangogirlsenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"briceidamariscal@gmail.com"
] | briceidamariscal@gmail.com | |
424aeba25c97138156422124e398717277f0769c | a654c37e3fa3647d700b785d6ae95c2009848582 | /算法/排序.py | 554bd7aa7f26e2ec07755072e9e466fcc6cacd42 | [] | no_license | whnet/study_python | 6cd47bf605b8a0d2b597520b0a55ddc6f94b4050 | 6e76637912c68ab89d05e308f1bb7bb496b02c93 | refs/heads/master | 2021-01-20T04:42:09.698364 | 2017-04-29T11:03:51 | 2017-04-29T11:03:51 | 89,715,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | # -*- coding: utf-8 -*-
'''
增长量级
O(1) : 常数级(constant)
O(logb^n) : 对象级(logarithmic)(对于任意b)
O(n) : 线性级(linear)
O(nlogb^n) : 线性对数级(linearithmic)
O(n^2) : 二次方级(quadratic)
O(n^3) : 三次方级(cubic)
O(c^n) : 指数级(exponential)(对于任意c)
[(\log n)^{c} 多对数
O(n!) : 阶乘
对于对数级数 【O(logb^n)】, 对数的基数并不影响增长量级。改变阶数等... | [
"896792616@qq.com"
] | 896792616@qq.com |
f873629a0c35d6e011a87f26f6a74458dd48718b | 9cbb624d93f029b41401efbcfd3e36ef47a7b757 | /PyDa_L4/functions.py | b66f0577575e884b2fd914359ea6e8da55f691d9 | [] | no_license | GezhinOleg/PyDa | 48f2c8acaebf007ae29f82ec4f8b8040129d9a45 | 3b641a4196cb7f0faf74cafc53fdb7cafb7ef4f4 | refs/heads/main | 2023-06-28T14:50:55.715817 | 2021-07-28T08:25:11 | 2021-07-28T08:25:11 | 389,911,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,455 | py | documents = [
{'type': 'passport', 'number': '2207 876234', 'name': 'Василий Гупкин'},
{'type': 'invoice', 'number': '11-2', 'name': 'Геннадий Покемонов'},
{'type': 'insurance', 'number': '10006', 'name': 'Аристарх Павлов'}
]
directories = {
'1': ['2207 876234', '11-2'],
'2': ['10006'],
'3': []
}
'''
... | [
"noreply@github.com"
] | GezhinOleg.noreply@github.com |
e78ca48d7fa0ca987b62b5179ff5a01ec09f3852 | f21a71a7829f44c63bf73005fba5b460c8e61925 | /daily/20201115-range-sum-bst..py | 56788998584f00f9f55d148fc6e308a04ab7da56 | [] | no_license | kapppa-joe/leetcode-practice | 2b8a14b5cf7a96a428cefdb0dd102e0a1ae82042 | 64fd7baf3543a7a32ebcbaadb39c11fcc152bf4c | refs/heads/master | 2023-03-13T09:05:55.631303 | 2021-02-04T12:04:59 | 2021-02-04T12:04:59 | 286,212,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def rangeSumBST(self, root: TreeNode, low: int, high: int) -> int:
def dfs(node: TreeNode) ... | [
"kapppa.joe@gmail.com"
] | kapppa.joe@gmail.com |
523af85399326e903c1e90757b3aaaed9d19917e | d0b2de49ef0ccaafa378d8ca855c356232098ee6 | /setup.py | d94322b6becbdbb44ea0cc845d816248286cf59a | [
"Apache-2.0"
] | permissive | Avalanche-io/pyc4_old | 24ffdb05dd48fd473539ec61faf06561ed47c3b2 | b6b048a3f09dfaab89204ad857e1fef8352c9987 | refs/heads/master | 2022-03-22T16:31:21.047218 | 2019-09-27T20:46:55 | 2019-09-27T20:46:55 | 48,461,864 | 2 | 0 | Apache-2.0 | 2019-09-27T20:46:56 | 2015-12-23T01:16:44 | Python | UTF-8 | Python | false | false | 1,207 | py | from setuptools import setup
from codecs import open
# get pip version
__version__ = __import__("pyc4").__version__
# Get the long description from the README file
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='pyc4',
version=__version__,
description='Python m... | [
"mikeh@blur.com"
] | mikeh@blur.com |
c35738db1e3d6699fab8c72d2c29de250dc84d10 | 811b2249dfd6e863b5e58698ad1d0676059f04c3 | /wikidata/lastname-alias.py | fec1a5676a8cc3b6737465c9e1fbbb8b506c827d | [] | no_license | edoderoo/Python4Wikipedia | b19a37283e1ef3e713d100d74ff3bc9415e91115 | 666a8285fc2f1559c053923e4412252f5d81f30f | refs/heads/master | 2022-04-29T02:21:01.097072 | 2022-04-02T13:25:07 | 2022-04-02T13:25:07 | 43,675,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import pywikibot
from pywikibot import pagegenerators as pg
#bij een achternaam PQ101352 met voorvoegsel (de Jong, van der Velde, van de Wetering, van Willigenburg, etc)
sqlQuery='select ?item where {?item wdt:P31 wd:Q101352}'
searchfor=['de ','van der ','van de ','van ','in het ']
someitems=['Q21494168','Q118... | [
"noreply@github.com"
] | edoderoo.noreply@github.com |
4c48bdaaebb994e7ab417ca88f8e06b2d83cbcf8 | 83084601900aaace157b9bbe8239c91d4d3fef5f | /smbportal/tracks/migrations/0004_data_migration_convert_timestamp_to_datetime.py | 79fd7eb69a0f5b260289fce26fb4e69703ae92c8 | [] | no_license | geosolutions-it/smb-portal | 0676d7e0009c5e30c91b6d9f934d72c9c34a1f30 | b816f23d9ae30abdb27e11e28d42c59b065e5c66 | refs/heads/dev | 2023-03-31T13:22:47.738222 | 2020-10-07T12:30:28 | 2020-10-07T12:30:28 | 132,459,456 | 1 | 4 | null | 2020-10-09T15:04:09 | 2018-05-07T12:46:35 | JavaScript | UTF-8 | Python | false | false | 810 | py | # Generated by Django 2.0 on 2018-07-18 21:41
import datetime as dt
from django.db import migrations
import pytz
def convert_timestamp_to_datetime(apps, schema_editor):
"""Convert a timestamp given in milliseconds to a datetime"""
collected_point_model = apps.get_model("tracks", "CollectedPoint")
for pt... | [
"ricardo.garcia.silva@gmail.com"
] | ricardo.garcia.silva@gmail.com |
dde161338c0e9cd80a6a883fb86abb5cf20c666c | 0370657ab53f3c74bdb4834c70b47068d590b4d4 | /employee_info.py | 7abce2406e58db2ba4a52d3b04f9f9610afc266d | [] | no_license | Antares2k16/python_learning | bcac02e97cb8e943706628d1c96f852fc141848b | 86c4c77787f99527b62f302988cb8cd5e90770a7 | refs/heads/master | 2020-03-30T21:15:14.776421 | 2018-11-24T00:37:36 | 2018-11-24T00:37:36 | 151,622,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 23 14:49:13 2018
@author: aliao
"""
class Employee():
def __init__(self, first_name, last_name, salary):
self.first_name = first_name
self.last_name = last_name
self.salary = salary
def give_raise(self, boos... | [
"aaron.liao17@gmail.com"
] | aaron.liao17@gmail.com |
140d94bdfffa9d83c2df215e3a46e7ec06dd7446 | 4dfec060e0f7476e00d1fea3b77adc888feb9dee | /scripts/was/tpvlogging.py | ebd635d31a815992ec61419dc75ab5217d2e744e | [
"Apache-2.0"
] | permissive | xguitian/problemdetermination | bf8ca33541898cf6a4db129ff0e0bc6fac8c60e1 | a723809884a1bdaa5a9ffcd7305d3846faee5e32 | refs/heads/master | 2021-01-11T14:23:11.282217 | 2016-12-28T21:22:25 | 2016-12-28T21:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,041 | py | # Start, stop, query, or configure TPV logging on a set of servers
# Example: wsadmin -username wsadmin -password wsadmin -lang jython -f tpvlogging.py -userprefs wsadmin -action start -server server1
def usage():
print "usage: wsadmin -lang jython -f tpvlogging.py -action [start|stop|list|setlevel] -userprefs USER [... | [
"kevin.grigorenko@us.ibm.com"
] | kevin.grigorenko@us.ibm.com |
1e581a2c8ebbc7ab2d1173fe0082025ee8f6bbf0 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/20-list-method_20200413041837.py | f8e3193ec4cc1aa4338efa0725c097663d2321fa | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | basket = [21, 12,33, 35, 99]
print(basket)
print(len(basket))
#33 gets pops because it is 2nd number in the array
print(basket.pop(2))
print(basket)
#extend
basket1 = [1000, 2000, 3000]
print(basket.extend(basket1))
print(basket)
#append - last to the list
print(basket.append(700))
print(basket)
#index
print(baske... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
29a18b4136cc087bb6bd975aaf093978e9230c4e | 0a6d2f67e5bef6608ab9d2b9a31de776020c501f | /oldstyle.py | d948ca989f293bb90a88a3031416f5ea466e8f41 | [] | no_license | lzwscu2/Sentiment-Analysis | 2cc519dfc618a726ccff49a2c8639f0f6a1b72a8 | 05f73f4b1721d9bc365431e99e90bfcfe350a227 | refs/heads/master | 2020-04-05T08:40:39.305343 | 2018-11-06T11:07:22 | 2018-11-06T11:07:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,628 | py | # Version python3.6
# -*- coding: utf-8 -*-
# @Time : 2018/10/16 8:43 PM
# @Author : zenRRan
# @Email : zenrran@qq.com
# @File : oldstyle.py
# @Software: PyCharm Community Edition
import torch
import torch.nn.functional as F
import torch.optim as oprim
from torch.autograd import Variable
import utils.Reader ... | [
"824203828@qq.com"
] | 824203828@qq.com |
5e2cc0f993c0e65ef76d296a291ea28374c7c3c1 | d7629239de1924d5d335f324952ecca9da6bb82b | /gomoku/pg-keras/environment.py | 367e5904d6d7d75a2eb7b26b9d2bbc9171ffc542 | [] | no_license | lacoonn/reinforcement-learning-study | f70b4c757196a7e69d84051c1b8cbd222c77e732 | c3faf322aaaa8fbd810c37b3281e502fc0b81800 | refs/heads/master | 2020-03-10T00:48:43.610465 | 2018-05-20T07:50:49 | 2018-05-20T07:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | '''
오목 게임 환경
'''
from board import Board
import numpy as np
import random
import math
import os
import sys
import time
#------------------------------------------------------------
# Environment
#------------------------------------------------------------
class Env(object):
def __init__(self):
self.grid_size = 10... | [
"teakan7179@gmail.com"
] | teakan7179@gmail.com |
3b1aeea7216c1fb7459ceb7745fb791f3be2099c | 8a97a2a39547ce9a8df4bf0addebb22c3148d64a | /runoff.py | 7285cb83ed01d8e4d5013d9a74f698441101b234 | [] | no_license | yashwant-nagarjuna/Reflections | a9e51d64b67245c2bad6b44096c97c66d5e639c5 | 25894b121fc3684e8530505f03fc8c97264bd951 | refs/heads/master | 2021-09-01T04:11:50.544660 | 2017-12-24T17:42:57 | 2017-12-24T17:42:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # def runoff(voters):
# l = {}
# key = []
# for i in range(len(voters)):
# key.append(voters[i][0])
# keys = set(key)
# l = dict.fromkeys(keys, 0)
# for i in range(len(voters)):
# l[voters[i][0]] += 1
# print(l)
# while True:
# max_votes = max(l.values(), de... | [
"nagarjuna.yashwanth1@gmail.com"
] | nagarjuna.yashwanth1@gmail.com |
86826058b9fa6860194735fd27cce74162b0ef15 | f15860a73bd450ae8e3582a8a0db8c1d0192fb69 | /analysis/0_retiles/6_mask_albers_tiles.py | d592982c6b7701bdf6d158ac2981138a2c755ac3 | [] | no_license | fykx/forest | 2472eceba0515cba272d0fc747bef30126f143d3 | ac97083bfc4d550c978b671fdb03b00e67534568 | refs/heads/main | 2023-08-01T00:55:17.163246 | 2021-09-13T01:56:17 | 2021-09-13T01:56:17 | 404,992,514 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | def read_tiles(tasks):
from osgeo import gdal,ogr,osr
tasks_ds = ogr.Open(tasks, 0)
tasks_lyr = tasks_ds.GetLayer(0)
tiles = []
for tile_feat in tasks_lyr:
tiles.append(tile_feat.GetField('tag'))
del tasks_ds
return tiles
def listdatas(pathin):
import os
a = []... | [
"noreply@github.com"
] | fykx.noreply@github.com |
1045f9c0042dc15d576f50a62617f40d418ada9a | 959971fa11eff2fc8dad6df15729ecfc90f2e289 | /tests/test_range.py | 5ab90b53ba1e5947e399717caa1b338d89ae3b4a | [
"MIT"
] | permissive | drykovanov/poker | cf15d9e9efa9f9ba4564e17d84a54a7c50f5ed64 | 9ab1db7de92a1138d14f538a83894bfab27a6f1d | refs/heads/master | 2021-04-12T05:18:25.001758 | 2014-10-16T08:19:55 | 2014-10-16T08:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,303 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import, division, print_function
import pickle
from pytest import raises, mark
from poker.card import Suit, Card
from poker.hand import Hand, Combo, Range, PAIR_HANDS
# from worse to best (suit matter)
DEUCE_COMBOS = (
Combo('2d2c'), Combo... | [
"kissgyorgy@me.com"
] | kissgyorgy@me.com |
ee2aed7ddc6385dce19e6b6f647ae016582cdadd | 77baa4d9305db86b92de26054df7a4d6d9e05dac | /opolo-baselines/stable_baselines/trpo_mpi/trpogail.py | ceefab558cfef9e8fd838f0917c42e814d4745f0 | [
"MIT"
] | permissive | illidanlab/opolo-code | 3c67a9b29f8cb720be118fc420c0906dfd36c70c | 89a7a0e8a06e7c8320acbdfef2069d6aadcb5863 | refs/heads/main | 2023-03-11T23:10:18.680147 | 2021-03-04T16:48:45 | 2021-03-04T16:48:45 | 302,173,477 | 28 | 2 | null | null | null | null | UTF-8 | Python | false | false | 28,538 | py | import time
from contextlib import contextmanager
from collections import deque
import gym
from mpi4py import MPI
import tensorflow as tf
import numpy as np
import stable_baselines.common.tf_util as tf_util
from stable_baselines.common import explained_variance, zipsame, dataset, fmt_row, colorize, ActorCriticRLModel... | [
"zhuangdizhu@yahoo.com"
] | zhuangdizhu@yahoo.com |
4d386fd1300322b507e6f1f1f34f942c879974a3 | 48f73b5b78da81c388d76d685ec47bb6387eefdd | /scrapeHackerrankCode/codes/s10-geometric-distribution-226.py | 3a10c689910f87f39f3dca15106ccca2acf25104 | [] | no_license | abidkhan484/hacerrankScraping | ad0ceda6c86d321d98768b169d63ea1ee7ccd861 | 487bbf115117bd5c293298e77f15ae810a50b82d | refs/heads/master | 2021-09-18T19:27:52.173164 | 2018-07-18T12:12:51 | 2018-07-18T12:12:51 | 111,005,462 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # Wrong Answer
# Python 3
m, n = map(int, input().split())
p = int(input().strip())
print(1-((1-(m/n))**p))
| [
"abidkhan484@gmail.com"
] | abidkhan484@gmail.com |
ac77fe5c302738244592e05e17947cf21ad5e7a9 | 34830496fc3ca119be3204d593d202bca2dc1334 | /kaprekar_cycles.py | c9d2002a55c8ea6597b4289b45681b0f09343420 | [] | no_license | kerem-kirici/Kaprekar-s-Cycles | a8f9ad85130bbed8f97bd4a27e7358e283632e24 | d8075b6d5cdfe775d01d2aee687664bb53ae1926 | refs/heads/main | 2023-04-12T07:59:09.195685 | 2021-05-22T17:23:17 | 2021-05-22T17:23:17 | 369,854,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | from collections import defaultdict
def cycle(number, number_of_digits):
difference = None
array = []
step = 0
while difference not in array:
if difference != None:
step += 1
array.append(difference)
string_number = str(difference)
else... | [
"noreply@github.com"
] | kerem-kirici.noreply@github.com |
829bbe778c610d8510a631364039563d386fabe2 | d36bedd98c99c60bbb6c71391ff6105ef57822d8 | /Algorithms/bubble_sort.py | dc2aa64fd9f8b48554dae57af33388d7dfb5881c | [] | no_license | akgunberk/sortingAlgorithms | 51e3799f010a9526b9980d2c89afd041bb769ba0 | 65ab9d12cd58368f1d223e68073c25d0052ca2a9 | refs/heads/master | 2021-06-26T21:10:51.516936 | 2020-12-30T13:15:03 | 2020-12-30T13:15:03 | 200,853,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py |
tobesorted = [9,3,89,0,5,7,-5]
b = 0
while b < len(tobesorted):
for index,i in enumerate(tobesorted):
if index != len(tobesorted) - 1:
while i > tobesorted[index + 1]:
new , old = index + 1, i
tobesorted.remove(old)
tobesorted.insert(new,i)
b += 1
print(tobesorted) | [
"noreply@github.com"
] | akgunberk.noreply@github.com |
6aa535eb62729f8c3c04ca243373e63862eb56e3 | e17f0a87393716bd74d41a30bda75b27a99089c0 | /median.py | 1a55169aa69b392485746e96d6d4fba34098d85d | [] | no_license | alexandrera/udacity_practice | 515faed72cef15e38baae600f61d356d276b3c7a | ea61631bdbad66aea89223087bf20569acba3fb0 | refs/heads/master | 2020-03-29T15:09:16.402949 | 2018-09-26T13:55:51 | 2018-09-26T13:55:51 | 150,047,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | def medianHard(a,b,c):
if a > b:
if a < c:
if b < a:
return a
else:
return b
else:
return c
else:
if b > c:
if a > c:
return a
else:
return c
else:
... | [
"alexandre.ra@gmail.com"
] | alexandre.ra@gmail.com |
06a079db10afe082602df7a32f55c4b27ab174ed | 052b7c164ac17cf38d2c39b52a63f583c8d2605b | /Assignment.py | d4c983c248f8076f12cc9c8a17d036e32356daf7 | [] | no_license | Adejare634/python | 74f399cee77e8714f71488b1f56533133d7db71c | a8d71529ee3f9aafce7b161d244d8c24e6801823 | refs/heads/master | 2022-12-15T16:33:45.304175 | 2020-09-18T23:28:27 | 2020-09-18T23:28:27 | 286,596,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | #creating file
New_file = open("Alphanumeric_nums.txt","w+")
New_file.write('64ja')
New_file.close()
num = int(input('Enter Number: '))
if num % 4 == 0:
print('Number is divisible by 4')
else:
print('Number is not divisible by 4') | [
"noreply@github.com"
] | Adejare634.noreply@github.com |
eb185cce7bfad29c7e0de4a472c3b0bb1e381663 | a71d3c3bce999ab22ff418cd89bc55242e9ae5d4 | /models/Item.py | 45aed3170a16b97a7aa22247da2d8e6e08eaf290 | [] | no_license | rowneee/ShoppingCart | 8dee69bbe28254ed7553cdc772647499267adc21 | 66d75c8ffb669b4c993ab0931f8a9d1d70f6e4f0 | refs/heads/main | 2023-04-22T09:16:14.899109 | 2021-05-05T12:44:03 | 2021-05-05T12:44:03 | 364,367,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | class Item:
def __init__(self, name, price, quantity):
self.name = name
self.price = price
self.quantity = quantity
def json(self):
return {'name': self.name, 'price': self.price, 'quantity': self.quantity}
| [
"noreply@github.com"
] | rowneee.noreply@github.com |
7c3510e856387f314b224eaf5e9fb808086e4952 | df4a821c939337d7686b7f14bb09df27324dec4d | /Back_End/youtube_clone_api/comments/urls.py | b9391b5b7b227381fc1cbd4ff3c2c6e2a8807656 | [] | no_license | cjones0429/Youtube_Clone | b212805278f028e88c9568f525afd98ebe807a6f | 48708fa8ded0564d4d7f0e1f7b859c8e532a65eb | refs/heads/main | 2023-06-07T21:15:41.869014 | 2021-06-24T15:46:16 | 2021-06-24T15:46:16 | 379,657,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.urls import path
from . import views
urlpatterns = [
path('comments/', views.CommentList.as_view()),
path('comments/<int:pk>/', views.CommentList.as_view())
] | [
"mrchrisfarrell@yahoo.com"
] | mrchrisfarrell@yahoo.com |
d946ad02b33b635e1a7c59b385ae4bded3702a84 | 62f0b6a3a2c929e97d87be6b81c6c7862c726030 | /familio/wsgi.py | a3164c1c57a913b67d8c39d6f7ea8070f38b5d6c | [] | no_license | zmunetsi/familio | 051aed6c388e57e629ac7a4575cedcb6d1b69e3c | 043afe483e2e7d6191b02b8582c9b60636cbe12e | refs/heads/main | 2023-06-13T22:15:11.479030 | 2021-07-01T12:39:30 | 2021-07-01T12:39:30 | 382,025,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for familio 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... | [
"dev@jetweb.onmicrosoft.com"
] | dev@jetweb.onmicrosoft.com |
2ac144d369a075a6cf027846879e08f162f8de2f | add5493b191adb5b6e52728854ae74378d8704c0 | /micro_video.py | 94e08b56e62991582d6b1a2eba6af75aec03c63a | [] | no_license | Grashes/Bilibili | 7896ebdeb08d72d32a8742c124069e280df39ede | 0ec4380453b7013c46fbc505843470b973b67aa8 | refs/heads/master | 2023-03-21T14:33:25.789488 | 2020-02-06T14:29:59 | 2020-02-06T14:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,692 | py | # -*- coding: utf-8 -*-
# @Time : 2019/4/8 20:46
# @Author : Nismison
# @FileName: micro_video.py
# @Description: Bilibili小视频爬取
# @Blog :https://blog.tryfang.cn
from functions.requests_func import url_get
from functions.deal_json import dict_get
from functions.database import Database
def micro_video_crawler(... | [
"2692789921@qq.com"
] | 2692789921@qq.com |
0a8b9ed5854b38b6e4149f77498bb4371228bb32 | 20f836620dc467dc0a9c79716fa278e0dbcda7b2 | /Coffee_Inspection_Service/Program/Save_Local_to_DB.py | 8bb5f225f24b183efd2e09c2b9c0becb398181e0 | [] | no_license | twohlee/coffeeproject | 1a953d85a382b918dfaaa5784c2e1f42df43f8ad | d967eb7203a36fd0370c048ae8a5901b3612e0fc | refs/heads/master | 2022-10-21T08:53:31.487421 | 2020-06-16T00:50:28 | 2020-06-16T00:50:28 | 272,574,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py |
import io
import pymongo
import os
import gridfs
from PIL import Image
import numpy as np
import glob
import matplotlib.pyplot as plt
conn = pymongo.MongoClient('127.0.0.1', 27017)
cnt = 0
categories = ['Normal', 'Broken', 'Black']
for idx, category in enumerate(categories):
path = './Data/' + category
db ... | [
"two_h_lee@naver.com"
] | two_h_lee@naver.com |
86e39f1afbfd5d93a6cfbe75798e4b3519a0e1b8 | 1f73dacc143cd7417f6b1e6a117ff13ac5c9632b | /utilities/pretty-ls/ex.py | 726c487000694afc38a60af91db9fed8c857c1d1 | [
"MIT"
] | permissive | BPHays/rc | 84fb5ee9abcbe96ba9d46f0b550f959f80f8c472 | fcf9770c6dd69caaaf3d55f446e37fa0183e866b | refs/heads/master | 2021-09-10T23:04:07.583690 | 2018-04-03T21:35:54 | 2018-04-03T21:35:54 | 68,263,895 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,612 | py | #!/usr/bin/python3
#-*- coding: utf-8 -*-
from os import path
import os
import glob
import stat
import sys
import shutil
from grp import getgrgid
from pwd import getpwuid
from optparse import OptionParser
BLUE ="159"
GREEN ="85"
YELLOW ="229"
LTGREY ="252"
DKGREY ="244"
INDIGO ="105"
ORANGE ="216"
RED ="... | [
"hays1@purdue.edu"
] | hays1@purdue.edu |
82395c5d7d5cf0a545e3a2c1884f6c4488bac288 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v1/model/usage_specified_custom_reports_data.py | 0580d3942865320614173f6c73c13d95102c0df5 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 2,197 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datado... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
97a1861384689b10d546eb6520eb506aea91e34b | 2b6116b967f6b02a6c62392058623ba8824f5ee2 | /deal/migrations/0063_historicalclient_sip_id.py | dd3ea4ee08b4ad08514c6270982ab3819aca3a4f | [] | no_license | tayursky/med-crm | 68a16d771a91a9a5ff3e61acd00c08ad6297c405 | 8e39904968a8217b9cd4593acc3afa27ff4584ba | refs/heads/master | 2023-01-11T08:28:23.762631 | 2020-03-15T20:53:59 | 2020-03-15T20:53:59 | 247,546,343 | 0 | 0 | null | 2023-01-06T02:27:23 | 2020-03-15T20:30:05 | Python | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.2.1 on 2019-10-11 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deal', '0062_auto_20190928_1432'),
]
operations = [
migrations.AddField(
model_name='historicalclient',
name='sip_id... | [
"tayursky@gmail.com"
] | tayursky@gmail.com |
63e7252b39dd8d37f305c7b9c0f27529768db58c | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/feature_column/__init__.pyi | 08e5b749b55c600ad152fbe19fe1ec44476eaff6 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | pyi | # Stubs for tensorflow.feature_column (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.feature_column.feature_column import bucketized_column as bucketized_column, categorical_column_with_hash_bucket as categorical_column_with_hash_bucket, categorical_colu... | [
"matangover@gmail.com"
] | matangover@gmail.com |
af660086772dd3ed9174234c1c8fba29d88bfd79 | 0b86600e0288c0fefc081a0f428277a68b14882e | /code/tortue/tortue_code_1_1.py | 0ee7c29c08f94de7e601d2d1a259e7798b140009 | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 246 | py | # Début du code
from turtle import *
width(5) # Epaisseur du trait
# Lettre "P"
color('red')
left(90) # 90 degrés à gauche
forward(200) # On avance
right(90)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
up() | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
8076aec57183287e6239dd2a6e1102b8731398df | a3cb1eacfb827e50098995362e84efa6b0f85988 | /23-Classes-Attributes-and-Methods/protected-attributes-and-methods.py | ed1f61abacd8ab8da76fe3f291708d4b06b69c7c | [] | no_license | zamudio/learning-python | 91e940660e58c8f663cdacfdd029a351b151940c | 402886b858f23d6000c59d4fd3ce7cad109d286d | refs/heads/master | 2022-04-16T04:01:42.403051 | 2020-04-06T07:09:08 | 2020-04-06T07:09:08 | 250,422,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | class SmartPhone():
def __init__(self):
self._company = 'Apple'
self._firmware = 10.0
def get_os_version(self):
return self._firmware
def update_firmware(self):
self._firmware += 1
iphone = SmartPhone()
# underscore means protected, no touchy touchy
| [
"github email address"
] | github email address |
a39fbaf80501c5b6a6fa69a9bde5bc2ad5dcb2b6 | 7cd9220fdaa5fb7ae9892b477b8600567c92b8e7 | /cortical_layers/__init__.py | 62ff347f97b95319a30278d72dbaa34d6dbf054a | [] | no_license | AlexTMallen/cortical-layers | 2264b3124d3bc97ebd63bfa2f43632f641547cd9 | e50631694660ddfb97e62e688ff3d87646218b48 | refs/heads/main | 2023-07-14T13:22:57.292063 | 2021-08-27T21:33:30 | 2021-08-27T21:33:30 | 386,097,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | __version__ = "0.1.0"
from . import LayerPredictor | [
"atmallen8@gmail.com"
] | atmallen8@gmail.com |
942c3fc4673eaafa403ee4cd88c000fc695d1ee0 | ae46919dc6d42ac7c198a25fc54cec3363fd3d02 | /lib/galaxy/jobs/runners/pulsar.py | dc4b6e5f1bb04ca6a83f86b24beae8895c0d6816 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | msGenDev/galaxy-central | 4720bce7d2108bdbb31d39908d3ba362bf36a5bb | 8db0963005f7f6e8ca3e3aca8ecc0be172a26957 | refs/heads/master | 2021-01-24T17:14:45.285919 | 2014-08-20T21:51:49 | 2014-08-20T21:51:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,898 | py | from __future__ import absolute_import # Need to import pulsar_client absolutely.
import logging
from galaxy import model
from galaxy.jobs.runners import AsynchronousJobState, AsynchronousJobRunner
from galaxy.jobs import ComputeEnvironment
from galaxy.jobs import JobDestination
from galaxy.jobs.command_factory impo... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
d55c901156848ed43ca51c04d3a5862ab4803e53 | 9eacea0d83735b18f3698c371045ce778dfac518 | /Code/max_entropy.py | 8c81b56aaf823f8fd4adf790be04061d5f814c23 | [] | no_license | zgood9527/Basic4AI | ef235d98cae39951da0dc89b64d72fab711b5ee2 | cc9520554682172ba690cbcf517ac8fc5ec180b0 | refs/heads/master | 2023-02-21T05:28:12.035593 | 2021-01-12T13:39:49 | 2021-01-12T13:39:49 | 329,815,142 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,136 | py | '''
最大熵模型
主要参考 李航《统计学习方法》 以及 https://www.pkudodo.com/2018/12/05/1-7/
代码主要是copy https://www.pkudodo.com/2018/12/05/1-7/ 中的,许多命名尚未修改至统一风格
'''
import time
import numpy as np
from collections import defaultdict
from sklearn.datasets import load_digits
from tqdm import tqdm
def load_data():
'''
加... | [
"1033020837@qq.com"
] | 1033020837@qq.com |
7cb427e3ff072b5451c32d0a9f6950112bfd49d1 | 0b193f4da7547d95b7c50fbc1b81276da8163372 | /images/views.py | 894ee4571baede4f1456d759e54a15017b903926 | [] | no_license | jzxyouok/bookmarks | 4b071023af57a2b87fb4fcb034affd5a16719e85 | c1bf5ce731f20c8771f6ff5038839c938a2562d8 | refs/heads/master | 2020-06-06T15:22:37.096495 | 2019-04-08T03:51:17 | 2019-04-08T03:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.http import JsonResponse, HttpResponse
from django.views.decorators.http import require_POST
from django.core.paginator import Paginator, EmptyPage, ... | [
"2582347430@qq.com"
] | 2582347430@qq.com |
ff6a536a0aab0c49ffe44f3890ca4e1f8f4e1e47 | 9851ec19fc07f92f0444c1e433607f28801f1e17 | /my_blog/article/models.py | aa9639da8db3a26699b1039bade4a73da1e2cbd9 | [] | no_license | yezigege/blog_yezi | d030dd2f286493697071fc231577d7fbb8304274 | 6b3e565444df33535fba2aab5621d07580687ad7 | refs/heads/master | 2020-04-11T08:33:26.471940 | 2020-01-10T15:24:12 | 2020-01-10T15:24:12 | 161,647,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | from django.db import models
from django.contrib.auth.models import User # 导入 django 自带的 User 模型
from django.utils import timezone # timezone 用于处理时间相关的事务
# 博客文章数据模型
class ArticlePost(models.Model):
"""
使用 ForeignKey定义一个关系。这将告诉 Django,每个(或多个) ArticlePost 对象都关联到一个 User 对象。
"""
author = models.ForeignK... | [
"18839136833@163.com"
] | 18839136833@163.com |
3bdfccb810864e94980fbc3a0c8947f023906a78 | 1da91735d1a4d19e62b2d19826d9a1e85d88d690 | /dxpy/dxpy/projects/mie/__init__.py | 1347b98e951e7bd5afbe3ce8aa30b68104dbc58b | [] | no_license | Hong-Xiang/dxl | 94229e4c20f0c97dfe21f8563889c991330df9c3 | 29aed778d1c699cc57d09666a20b4ca60196392f | refs/heads/master | 2021-01-02T22:49:20.298893 | 2018-05-22T13:42:20 | 2018-05-22T13:42:20 | 99,401,725 | 1 | 1 | null | 2018-05-22T13:42:21 | 2017-08-05T05:34:35 | Python | UTF-8 | Python | false | false | 74 | py | """Incident position estimation for monolithic crystal of PET scanners"""
| [
"hx.hongxiang@gmail.com"
] | hx.hongxiang@gmail.com |
70059dc0c084c43dad919428365e6b617c65bcd8 | edc6693ada84d2392bf6c1ac24097ab8b5a9d040 | /r2.apps/common.py | 999ef80e708971a4592314b3f840c6c69675d55b | [] | no_license | he-actlab/r2.code | e544a60ba6eb90a94023d09843574b23725a5c14 | b212d1e8fe90b87b5529bf01eb142d7b54c7325b | refs/heads/master | 2023-03-30T10:48:43.476138 | 2016-02-15T15:58:54 | 2016-02-15T15:58:54 | 354,711,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | #!/usr/local/bin/python2.7
import json
import sys
from collections import OrderedDict
VARNAMES = OrderedDict([
('INVPROB_DRAM_FLIP_PER_SECOND', 'DRAM'),
('INVPROB_SRAM_READ_UPSET', 'SRAM read'),
('INVPROB_SRAM_WRITE_FAILURE', 'SRAM write'),
('MB_FLOAT_APPROX', '\\texttt{float} bits'),
('MB_DOUBLE_... | [
"jspark@gatech.edu"
] | jspark@gatech.edu |
267ad789d05c45a3e0a753f039d54e290006e720 | b7252b8a1ba3b863fff638458f5beb186d2586b0 | /user_repo3/user_repo/urls.py | 4c8474375de53ee4095b0d0ecdd86ee4b593b50d | [] | no_license | jyothinaidu/user_management | dcee5a67106f0c1a5410124323bd31beaa29da00 | 5714b02deb0acc8fa185eb02bd6b561e2f5f185e | refs/heads/master | 2022-12-13T15:12:29.246904 | 2018-07-18T20:50:34 | 2018-07-18T20:50:34 | 141,488,381 | 1 | 0 | null | 2022-09-23T21:53:58 | 2018-07-18T20:46:25 | Python | UTF-8 | Python | false | false | 6,519 | py | from django.conf.urls import url, include
# from rest_framework import routers
from user_management import views
from user_management.user_management_api import *
# from user_management.user_management_api import FirebaseAuthentication
from user_management import user_management_api
# router = routers.DefaultRouter()
#... | [
"jyothi.nadu@gmail.com"
] | jyothi.nadu@gmail.com |
431bad1c8a17afaaa33860eac018fc8fee998c4b | 9db852981a2d4ff33d6f8e57f0894471be2f74d5 | /Black_Jack.py | 87f4951c64349fa0e1fc58457decff5b3e1158cf | [] | no_license | asi1234/Mini_Python_Projects | 4938f52a66967cbb39202468626e79acd8d0b4d4 | c529457bbe15eac50c062618f825d0ff26a06a76 | refs/heads/master | 2023-08-21T14:08:24.446423 | 2021-10-30T13:16:11 | 2021-10-30T13:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | from time import *
# BLACK JACK - CASINO
# PYTHON CODE BASE
# master
import random
deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11] * 4
random.shuffle(deck)
print(f'{"*"*58} \n Welcome to the game Casino - BLACK JACK ! \n{"*"*58}')
sleep(2)
print('So Finally You Are Here To Accept Your Fate')
sleep(2)
print... | [
"noreply@github.com"
] | asi1234.noreply@github.com |
4798d1b2de639b7e3a40b0058ff316b6d0ed97b3 | 308b8c6e8b33d56f23029f3039d2a8d8e8f9ba1f | /lab3/run.py | 1eb14b857ffbc0f29c0cd48e5b097944aa58149d | [] | no_license | myrlund/tdt4275-nlp | 029dd79b5366e30771f9cfd960324d538741071b | fce13d7cbb3dbba0494cab94f64c1b9a4f7e06a6 | refs/heads/master | 2021-01-19T07:09:25.870108 | 2013-04-23T13:14:36 | 2013-04-23T13:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | import nltk
def get_parser(f, debug):
trace = 2 if debug else 0
return nltk.load_parser(f, trace=trace)
def part1a(sentence, debug):
# grammar = nltk.parse_cfg(unifying_grammar)
fcfg = 'file:feat1.fcfg'
parser = get_parser(fcfg, debug)
# Give the parser pairs of correct/erronous sentences
... | [
"myrlund@gmail.com"
] | myrlund@gmail.com |
60fa1f9da726d6a1c98cfc38a87f607929db5f4d | e5d980804586d27a65bd2fe36b1039bf4599a635 | /pidgy/tests/__init__.py | 41de3cfc08e4d0deb8747c4761dbc929f29bdba3 | [
"BSD-3-Clause"
] | permissive | chrisjsewell/pidgy | e9dbc1a15ae0de4994e6e1d6a363036bc30a8eba | 17b4ffcd871528998fe4eb0434010ea55c53f9b2 | refs/heads/master | 2021-01-06T22:06:53.746592 | 2020-02-14T13:47:21 | 2020-02-14T13:47:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from .. import reuse
with reuse.pidgyLoader(lazy=True):
from . import interactive | [
"noreply@github.com"
] | chrisjsewell.noreply@github.com |
4f0e6b4a279037595cb60bbb51ed7a0c32640ce7 | ac5cae7fb66ea0924756c7aeaf190578ff5a6db5 | /vis_utils.py | 1f0556a5be7dd6e61fb868bf202c55b37d535dba | [] | no_license | pranjaldatta/creditcard-fraud-streamlit | db78f896d71f445eb755887ef8fbc57b1696475f | 0c4c200be1e6cfd889fab454e984815cc405750f | refs/heads/master | 2023-06-02T15:45:48.621294 | 2021-06-13T16:01:49 | 2021-06-13T16:01:49 | 365,283,207 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | import streamlit as st
| [
"pranjaldatta99@gmail.com"
] | pranjaldatta99@gmail.com |
88168cb031b0a457fb111140e9344ceca124f8fa | de9b8b7192a0a81e9249823bb2b86f0b7e452863 | /.history/main_20171106171513.py | 5378773f80c55c72622e6038de1967acec7208a8 | [
"MIT"
] | permissive | reecebenson/uwe-dadsa-tennis-a | f5eaeb1b96d4e61f29279514e68eeea8ad6533db | d0763f819b300fcd0ce27041f5bc4ef0519c00bf | refs/heads/master | 2023-07-08T16:13:23.963348 | 2017-11-30T12:07:01 | 2017-11-30T12:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # DADSA - Assignment 1
# Reece Benson
from classes import Handler as Handler
from classes import Player as Player
from classes import Season as Season
from classes import Tournament as Tournament
from classes import Round as Round
from classes import Match as Match
class App():
def __hold__(self):
input(">... | [
"business@reecebenson.me"
] | business@reecebenson.me |
cc3dca0113f1768a8d59a244a3c0b0b7514b7eec | 052b56514e5ea6837e088478fe1db882c2797c8d | /python_scripts/aws_security_group.py | 1ddc145bffa8777f36096de5507d2bf36815c34d | [] | no_license | pkumarbe/AWS-by-Ansible-and-Python | 33b846c95a243ff58d844e5c28498a668a1562df | 700a723eda8a445474c0818c02cf278a7bc62b76 | refs/heads/master | 2021-06-22T04:02:18.957989 | 2019-01-22T18:16:37 | 2019-01-22T18:16:37 | 163,870,848 | 2 | 1 | null | 2020-12-29T09:34:03 | 2019-01-02T17:41:11 | Python | UTF-8 | Python | false | false | 751 | py | import boto3
def create_add_rule_secgroup():
ec2= boto3.resource('ec2')
print "Creating Security Group..."
sec_group = ec2.create_security_group(
GroupName = "custom sec",
Description = "Allow http/s and SSH"
)
# Create the list rules to be allowed by this SG.
ip_ranges = [{... | [
"mymail8500@gmail.com"
] | mymail8500@gmail.com |
2c27bc02010bbcddfa0ac25fd5c8c0feb9dce22b | 9edffceeefab2f5a9beebeeace22a5e3783931e0 | /checkio_solutions/Elementary/popular_words.py | 7deab66d21c3a8d8b7895ca7cf0cc8d3ee382ba5 | [] | no_license | sunnirvana/py-checkio | 13b22a851cf285f34485aa6ac417c852785d96d7 | c7ebdc517ee26f1791391d584b9be67fc8c39660 | refs/heads/master | 2020-04-24T15:28:29.136611 | 2019-03-04T22:13:43 | 2019-03-04T22:13:43 | 172,069,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | #!/usr/bin/env checkio --domain=py run popular-words
# https://py.checkio.org/mission/popular-words/
# In this mission your task is to determine the popularity of certain words in the text.
#
# At the input of your function are given 2 arguments: the text and the array of words the popularity of which you need to de... | [
"yubogo@gmail.com"
] | yubogo@gmail.com |
110117acc0a89ab48991460b4d01aa08d976f653 | 64c890511437a9aa5c3911871177d8eab793107d | /main.py | e01647395bfe48e75c7048d84e5b7872ebe2798f | [] | no_license | victusfate/ChitChatRooms | 05e807212801b8a8b943f7ab658b50e8413e04a7 | a487a76e631ea0f3a60ef619e53b4b9feaa18b6e | refs/heads/master | 2020-12-25T09:38:16.512768 | 2011-04-05T09:19:53 | 2011-04-05T09:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,801 | py | #!/usr/bin/env python
#
# Copyright 2007 Google 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 o... | [
"julien.genestoux@gmail.com"
] | julien.genestoux@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.